UnitTestProtoFile.cs 545 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. using pb = global::Google.ProtocolBuffers;
  3. using pbc = global::Google.ProtocolBuffers.Collections;
  4. using pbd = global::Google.ProtocolBuffers.Descriptors;
  5. using scg = global::System.Collections.Generic;
  6. using self = global::Google.ProtocolBuffers.TestProtos;
  7. namespace Google.ProtocolBuffers.TestProtos {
  8. public static partial class UnitTestProtoFile {
  9. #region Descriptor
  10. public static pbd::FileDescriptor Descriptor {
  11. get { return descriptor; }
  12. }
  13. private static readonly pbd::FileDescriptor descriptor = pbd::FileDescriptor.InternalBuildGeneratedFileFrom (
  14. new byte[] {
  15. 0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x75, 0x6e,
  16. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  17. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
  18. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d,
  19. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbb, 0x15, 0x0a, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x41,
  20. 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f,
  21. 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x16, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f,
  22. 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x12, 0x17, 0x0a, 0x0f, 0x6f,
  23. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d,
  24. 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18,
  25. 0x04, 0x20, 0x01, 0x28, 0x04, 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x69,
  26. 0x6e, 0x74, 0x33, 0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x11, 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  27. 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x06, 0x20, 0x01, 0x28, 0x12, 0x12, 0x18, 0x0a, 0x10, 0x6f,
  28. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28,
  29. 0x07, 0x12, 0x18, 0x0a, 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36,
  30. 0x34, 0x18, 0x08, 0x20, 0x01, 0x28, 0x06, 0x12, 0x19, 0x0a, 0x11, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f,
  31. 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0f, 0x12, 0x19, 0x0a, 0x11, 0x6f, 0x70,
  32. 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, 0x28,
  33. 0x10, 0x12, 0x16, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18,
  34. 0x0b, 0x20, 0x01, 0x28, 0x02, 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x6f,
  35. 0x75, 0x62, 0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x01, 0x12, 0x15, 0x0a, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  36. 0x61, 0x6c, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74,
  37. 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x12, 0x16,
  38. 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01,
  39. 0x28, 0x0c, 0x12, 0x44, 0x0a, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18,
  40. 0x10, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  41. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4f,
  42. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x4e, 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69,
  43. 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
  44. 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  45. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e,
  46. 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x43, 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x69,
  47. 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  48. 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  49. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  50. 0x65, 0x12, 0x48, 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74,
  51. 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f,
  52. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72,
  53. 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x14, 0x6f,
  54. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18,
  55. 0x15, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  56. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e,
  57. 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x3d, 0x0a, 0x15, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  58. 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e,
  59. 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  60. 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x42, 0x0a, 0x14, 0x6f, 0x70, 0x74, 0x69,
  61. 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x17, 0x20, 0x01,
  62. 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  63. 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d,
  64. 0x12, 0x21, 0x0a, 0x15, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f,
  65. 0x70, 0x69, 0x65, 0x63, 0x65, 0x18, 0x18, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x12, 0x19, 0x0a, 0x0d, 0x6f,
  66. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02,
  67. 0x08, 0x01, 0x12, 0x16, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32,
  68. 0x18, 0x1f, 0x20, 0x03, 0x28, 0x05, 0x12, 0x16, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69,
  69. 0x6e, 0x74, 0x36, 0x34, 0x18, 0x20, 0x20, 0x03, 0x28, 0x03, 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  70. 0x65, 0x64, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x21, 0x20, 0x03, 0x28, 0x0d, 0x12, 0x17, 0x0a, 0x0f, 0x72,
  71. 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x22, 0x20, 0x03, 0x28, 0x04,
  72. 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18,
  73. 0x23, 0x20, 0x03, 0x28, 0x11, 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x69,
  74. 0x6e, 0x74, 0x36, 0x34, 0x18, 0x24, 0x20, 0x03, 0x28, 0x12, 0x12, 0x18, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  75. 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x25, 0x20, 0x03, 0x28, 0x07, 0x12, 0x18, 0x0a, 0x10,
  76. 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x26, 0x20, 0x03,
  77. 0x28, 0x06, 0x12, 0x19, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65,
  78. 0x64, 0x33, 0x32, 0x18, 0x27, 0x20, 0x03, 0x28, 0x0f, 0x12, 0x19, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65,
  79. 0x64, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x28, 0x20, 0x03, 0x28, 0x10, 0x12, 0x16, 0x0a, 0x0e,
  80. 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x29, 0x20, 0x03, 0x28, 0x02,
  81. 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18,
  82. 0x2a, 0x20, 0x03, 0x28, 0x01, 0x12, 0x15, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x6f,
  83. 0x6f, 0x6c, 0x18, 0x2b, 0x20, 0x03, 0x28, 0x08, 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64,
  84. 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x2c, 0x20, 0x03, 0x28, 0x09, 0x12, 0x16, 0x0a, 0x0e, 0x72, 0x65, 0x70,
  85. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x2d, 0x20, 0x03, 0x28, 0x0c, 0x12, 0x44, 0x0a,
  86. 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x2e, 0x20, 0x03, 0x28, 0x0a,
  87. 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  88. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74,
  89. 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x4e, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  90. 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x30, 0x20, 0x03, 0x28, 0x0b,
  91. 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  92. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
  93. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x43, 0x0a, 0x18, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  94. 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x31, 0x20, 0x03, 0x28,
  95. 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  96. 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x17,
  97. 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73,
  98. 0x61, 0x67, 0x65, 0x18, 0x32, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  99. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70,
  100. 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  101. 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x33, 0x20, 0x03, 0x28, 0x0e,
  102. 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  103. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
  104. 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x3d, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72,
  105. 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x34, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72,
  106. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65,
  107. 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x42, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  108. 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x35, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x24, 0x2e,
  109. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d,
  110. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x21, 0x0a, 0x15, 0x72,
  111. 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65,
  112. 0x18, 0x36, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x12, 0x19, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  113. 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x37, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x01, 0x12, 0x19, 0x0a,
  114. 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x3d, 0x20, 0x01, 0x28, 0x05,
  115. 0x3a, 0x02, 0x34, 0x31, 0x12, 0x19, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x36,
  116. 0x34, 0x18, 0x3e, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x02, 0x34, 0x32, 0x12, 0x1a, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75,
  117. 0x6c, 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x3f, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x02, 0x34, 0x33, 0x12,
  118. 0x1a, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x40, 0x20,
  119. 0x01, 0x28, 0x04, 0x3a, 0x02, 0x34, 0x34, 0x12, 0x1b, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73,
  120. 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x41, 0x20, 0x01, 0x28, 0x11, 0x3a, 0x03, 0x2d, 0x34, 0x35, 0x12, 0x1a, 0x0a, 0x0e,
  121. 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x42, 0x20, 0x01, 0x28, 0x12,
  122. 0x3a, 0x02, 0x34, 0x36, 0x12, 0x1b, 0x0a, 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65,
  123. 0x64, 0x33, 0x32, 0x18, 0x43, 0x20, 0x01, 0x28, 0x07, 0x3a, 0x02, 0x34, 0x37, 0x12, 0x1b, 0x0a, 0x0f, 0x64, 0x65, 0x66,
  124. 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x44, 0x20, 0x01, 0x28, 0x06, 0x3a, 0x02,
  125. 0x34, 0x38, 0x12, 0x1c, 0x0a, 0x10, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64,
  126. 0x33, 0x32, 0x18, 0x45, 0x20, 0x01, 0x28, 0x0f, 0x3a, 0x02, 0x34, 0x39, 0x12, 0x1d, 0x0a, 0x10, 0x64, 0x65, 0x66, 0x61,
  127. 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x46, 0x20, 0x01, 0x28, 0x10, 0x3a, 0x03,
  128. 0x2d, 0x35, 0x30, 0x12, 0x1b, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74,
  129. 0x18, 0x47, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x04, 0x35, 0x31, 0x2e, 0x35, 0x12, 0x1d, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61,
  130. 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x48, 0x20, 0x01, 0x28, 0x01, 0x3a, 0x05, 0x35, 0x32,
  131. 0x30, 0x30, 0x30, 0x12, 0x1a, 0x0a, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18,
  132. 0x49, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x04, 0x74, 0x72, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75,
  133. 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x4a, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x05, 0x68, 0x65, 0x6c,
  134. 0x6c, 0x6f, 0x12, 0x1c, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18,
  135. 0x4b, 0x20, 0x01, 0x28, 0x0c, 0x3a, 0x05, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x12, 0x4c, 0x0a, 0x13, 0x64, 0x65, 0x66, 0x61,
  136. 0x75, 0x6c, 0x74, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x51, 0x20, 0x01, 0x28,
  137. 0x0e, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  138. 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65,
  139. 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x03, 0x42, 0x41, 0x52, 0x12, 0x49, 0x0a, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c,
  140. 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x52, 0x20, 0x01, 0x28, 0x0e,
  141. 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  142. 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x0b, 0x46, 0x4f, 0x52, 0x45, 0x49, 0x47,
  143. 0x4e, 0x5f, 0x42, 0x41, 0x52, 0x12, 0x4d, 0x0a, 0x13, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6d, 0x70,
  144. 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x53, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  145. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72,
  146. 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x0a, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54,
  147. 0x5f, 0x42, 0x41, 0x52, 0x12, 0x25, 0x0a, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x69,
  148. 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65, 0x18, 0x54, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x03, 0x61, 0x62, 0x63, 0x42,
  149. 0x02, 0x08, 0x02, 0x12, 0x1d, 0x0a, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x18,
  150. 0x55, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x03, 0x31, 0x32, 0x33, 0x42, 0x02, 0x08, 0x01, 0x1a, 0x1b, 0x0a, 0x0d, 0x4e, 0x65,
  151. 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0a, 0x0a, 0x02, 0x62, 0x62, 0x18, 0x01, 0x20,
  152. 0x01, 0x28, 0x05, 0x1a, 0x1a, 0x0a, 0x0d, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70,
  153. 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x1a, 0x1a, 0x0a, 0x0d, 0x52, 0x65, 0x70, 0x65, 0x61,
  154. 0x74, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x2f, 0x20, 0x01, 0x28, 0x05, 0x22,
  155. 0x27, 0x0a, 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x07, 0x0a, 0x03, 0x46, 0x4f, 0x4f,
  156. 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41, 0x52, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41, 0x5a, 0x10, 0x03,
  157. 0x22, 0x1b, 0x0a, 0x0e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x09,
  158. 0x0a, 0x01, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x22, 0x1d, 0x0a, 0x11, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c,
  159. 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0x08, 0x08, 0x01, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02,
  160. 0x22, 0x24, 0x0a, 0x17, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78,
  161. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x22, 0x24,
  162. 0x0a, 0x17, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65,
  163. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x2f, 0x20, 0x01, 0x28, 0x05, 0x22, 0xd5, 0x05, 0x0a,
  164. 0x0c, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x01,
  165. 0x20, 0x02, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
  166. 0x12, 0x09, 0x0a, 0x01, 0x62, 0x18, 0x03, 0x20, 0x02, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79,
  167. 0x34, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x35, 0x18, 0x05, 0x20,
  168. 0x01, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x36, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x12,
  169. 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x37, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64,
  170. 0x75, 0x6d, 0x6d, 0x79, 0x38, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79,
  171. 0x39, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x30, 0x18, 0x0a,
  172. 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x31, 0x18, 0x0b, 0x20, 0x01, 0x28,
  173. 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x32, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f,
  174. 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x33, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64,
  175. 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x34, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d,
  176. 0x79, 0x31, 0x35, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x36,
  177. 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x37, 0x18, 0x11, 0x20,
  178. 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x38, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05,
  179. 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x39, 0x18, 0x13, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a,
  180. 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x30, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75,
  181. 0x6d, 0x6d, 0x79, 0x32, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79,
  182. 0x32, 0x32, 0x18, 0x16, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x33, 0x18,
  183. 0x17, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x34, 0x18, 0x18, 0x20, 0x01,
  184. 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x35, 0x18, 0x19, 0x20, 0x01, 0x28, 0x05, 0x12,
  185. 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x36, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07,
  186. 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x37, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d,
  187. 0x6d, 0x79, 0x32, 0x38, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32,
  188. 0x39, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x33, 0x30, 0x18, 0x1e,
  189. 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x33, 0x31, 0x18, 0x1f, 0x20, 0x01, 0x28,
  190. 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x33, 0x32, 0x18, 0x20, 0x20, 0x01, 0x28, 0x05, 0x12, 0x09,
  191. 0x0a, 0x01, 0x63, 0x18, 0x21, 0x20, 0x02, 0x28, 0x05, 0x32, 0x56, 0x0a, 0x06, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x12,
  192. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  193. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe8, 0x07,
  194. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74,
  195. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x32, 0x55, 0x0a,
  196. 0x05, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  197. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
  198. 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe9, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  199. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75,
  200. 0x69, 0x72, 0x65, 0x64, 0x22, 0x9a, 0x01, 0x0a, 0x13, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
  201. 0x64, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x12, 0x39, 0x0a, 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c,
  202. 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f,
  203. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52,
  204. 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  205. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  206. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65,
  207. 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x0d, 0x0a, 0x05, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,
  208. 0x05, 0x22, 0x5a, 0x0a, 0x11, 0x54, 0x65, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4e, 0x65, 0x73, 0x74,
  209. 0x65, 0x64, 0x12, 0x45, 0x0a, 0x0e, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64,
  210. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  211. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e,
  212. 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x54, 0x65, 0x73,
  213. 0x74, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x2a, 0x0a, 0x1e, 0x54, 0x65, 0x73,
  214. 0x74, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x57, 0x69, 0x74, 0x68, 0x45, 0x78, 0x74,
  215. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0x08, 0x08, 0x01, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x34, 0x0a,
  216. 0x18, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x61, 0x6c, 0x6c, 0x79, 0x4c, 0x61, 0x72, 0x67, 0x65, 0x54, 0x61, 0x67, 0x4e,
  217. 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0d, 0x0a, 0x02,
  218. 0x62, 0x62, 0x18, 0xff, 0xff, 0xff, 0x7f, 0x20, 0x01, 0x28, 0x05, 0x22, 0x55, 0x0a, 0x14, 0x54, 0x65, 0x73, 0x74, 0x52,
  219. 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x32, 0x0a, 0x01, 0x61,
  220. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  221. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65,
  222. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x09, 0x0a, 0x01, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x22, 0x4b,
  223. 0x0a, 0x14, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x75, 0x74, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f,
  224. 0x6e, 0x41, 0x12, 0x33, 0x0a, 0x02, 0x62, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f,
  225. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d,
  226. 0x75, 0x74, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x22, 0x62, 0x0a, 0x14, 0x54,
  227. 0x65, 0x73, 0x74, 0x4d, 0x75, 0x74, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x12,
  228. 0x32, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  229. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x75, 0x74, 0x75, 0x61,
  230. 0x6c, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x12, 0x16, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f,
  231. 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x22, 0xb3, 0x01, 0x0a, 0x12,
  232. 0x54, 0x65, 0x73, 0x74, 0x44, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x09,
  233. 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x36, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x02, 0x20, 0x01,
  234. 0x28, 0x0a, 0x32, 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  235. 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x44, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65,
  236. 0x72, 0x2e, 0x46, 0x6f, 0x6f, 0x12, 0x36, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x29,
  237. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  238. 0x65, 0x73, 0x74, 0x44, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x42, 0x61,
  239. 0x72, 0x1a, 0x10, 0x0a, 0x03, 0x46, 0x6f, 0x6f, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x1a,
  240. 0x10, 0x0a, 0x03, 0x42, 0x61, 0x72, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x22, 0x80, 0x02,
  241. 0x0a, 0x18, 0x54, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48,
  242. 0x61, 0x73, 0x42, 0x69, 0x74, 0x73, 0x12, 0x5a, 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6e,
  243. 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  244. 0x39, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  245. 0x54, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x61, 0x73,
  246. 0x42, 0x69, 0x74, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x87,
  247. 0x01, 0x0a, 0x0d, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x1c,
  248. 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  249. 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x12, 0x50, 0x0a, 0x25, 0x6e, 0x65,
  250. 0x73, 0x74, 0x65, 0x64, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64,
  251. 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28,
  252. 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  253. 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xe5, 0x03, 0x0a,
  254. 0x17, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6d, 0x65, 0x6c, 0x43, 0x61, 0x73, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e,
  255. 0x61, 0x6d, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x0e, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x46, 0x69, 0x65,
  256. 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x13, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69,
  257. 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x12, 0x31, 0x0a, 0x09, 0x45, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65,
  258. 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f,
  259. 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d,
  260. 0x12, 0x37, 0x0a, 0x0c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x04, 0x20, 0x01,
  261. 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  262. 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a,
  263. 0x10, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x69, 0x65, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x05, 0x20,
  264. 0x01, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x12, 0x15, 0x0a, 0x09, 0x43, 0x6f, 0x72, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64,
  265. 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x08, 0x01, 0x12, 0x1e, 0x0a, 0x16, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74,
  266. 0x65, 0x64, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x07, 0x20, 0x03,
  267. 0x28, 0x05, 0x12, 0x1b, 0x0a, 0x13, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
  268. 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x12, 0x39, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x65, 0x61,
  269. 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e,
  270. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46,
  271. 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x3f, 0x0a, 0x14, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74,
  272. 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b,
  273. 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  274. 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x18, 0x52,
  275. 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x69, 0x65, 0x63, 0x65, 0x46, 0x69,
  276. 0x65, 0x6c, 0x64, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x12, 0x1d, 0x0a, 0x11, 0x52, 0x65, 0x70,
  277. 0x65, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x72, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09,
  278. 0x42, 0x02, 0x08, 0x01, 0x22, 0x55, 0x0a, 0x12, 0x54, 0x65, 0x73, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x72, 0x64,
  279. 0x65, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x11, 0x0a, 0x09, 0x6d, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18,
  280. 0x0b, 0x20, 0x01, 0x28, 0x09, 0x12, 0x0e, 0x0a, 0x06, 0x6d, 0x79, 0x5f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
  281. 0x03, 0x12, 0x10, 0x0a, 0x08, 0x6d, 0x79, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x65, 0x20, 0x01, 0x28, 0x02, 0x2a,
  282. 0x04, 0x08, 0x02, 0x10, 0x0b, 0x2a, 0x04, 0x08, 0x0c, 0x10, 0x65, 0x22, 0x90, 0x02, 0x0a, 0x18, 0x54, 0x65, 0x73, 0x74,
  283. 0x45, 0x78, 0x74, 0x72, 0x65, 0x6d, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73,
  284. 0x12, 0x3f, 0x0a, 0x0d, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20,
  285. 0x01, 0x28, 0x0c, 0x3a, 0x28, 0x5c, 0x30, 0x30, 0x30, 0x5c, 0x30, 0x30, 0x31, 0x5c, 0x30, 0x30, 0x37, 0x5c, 0x30, 0x31,
  286. 0x30, 0x5c, 0x30, 0x31, 0x34, 0x5c, 0x6e, 0x5c, 0x72, 0x5c, 0x74, 0x5c, 0x30, 0x31, 0x33, 0x5c, 0x5c, 0x5c, 0x27, 0x5c,
  287. 0x22, 0x5c, 0x33, 0x37, 0x36, 0x12, 0x20, 0x0a, 0x0c, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33,
  288. 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x0a, 0x34, 0x32, 0x39, 0x34, 0x39, 0x36, 0x37, 0x32, 0x39, 0x35, 0x12,
  289. 0x2a, 0x0a, 0x0c, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01, 0x28,
  290. 0x04, 0x3a, 0x14, 0x31, 0x38, 0x34, 0x34, 0x36, 0x37, 0x34, 0x34, 0x30, 0x37, 0x33, 0x37, 0x30, 0x39, 0x35, 0x35, 0x31,
  291. 0x36, 0x31, 0x35, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04,
  292. 0x20, 0x01, 0x28, 0x05, 0x3a, 0x0b, 0x2d, 0x32, 0x31, 0x34, 0x37, 0x34, 0x38, 0x33, 0x36, 0x34, 0x37, 0x12, 0x29, 0x0a,
  293. 0x0b, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x14,
  294. 0x2d, 0x39, 0x32, 0x32, 0x33, 0x33, 0x37, 0x32, 0x30, 0x33, 0x36, 0x38, 0x35, 0x34, 0x37, 0x37, 0x35, 0x38, 0x30, 0x37,
  295. 0x12, 0x18, 0x0a, 0x0b, 0x75, 0x74, 0x66, 0x38, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28,
  296. 0x09, 0x3a, 0x03, 0xe1, 0x88, 0xb4, 0x22, 0x0c, 0x0a, 0x0a, 0x46, 0x6f, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  297. 0x22, 0x0d, 0x0a, 0x0b, 0x46, 0x6f, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x42,
  298. 0x61, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x0d, 0x0a, 0x0b, 0x42, 0x61, 0x72, 0x52, 0x65, 0x73, 0x70,
  299. 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x40, 0x0a, 0x0b, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12,
  300. 0x0f, 0x0a, 0x0b, 0x46, 0x4f, 0x52, 0x45, 0x49, 0x47, 0x4e, 0x5f, 0x46, 0x4f, 0x4f, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b,
  301. 0x46, 0x4f, 0x52, 0x45, 0x49, 0x47, 0x4e, 0x5f, 0x42, 0x41, 0x52, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x46, 0x4f, 0x52,
  302. 0x45, 0x49, 0x47, 0x4e, 0x5f, 0x42, 0x41, 0x5a, 0x10, 0x06, 0x2a, 0x47, 0x0a, 0x14, 0x54, 0x65, 0x73, 0x74, 0x45, 0x6e,
  303. 0x75, 0x6d, 0x57, 0x69, 0x74, 0x68, 0x44, 0x75, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x4f,
  304. 0x4f, 0x31, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x41, 0x52, 0x31, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41,
  305. 0x5a, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x4f, 0x4f, 0x32, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x41, 0x52,
  306. 0x32, 0x10, 0x02, 0x2a, 0x89, 0x01, 0x0a, 0x0e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x70, 0x61, 0x72, 0x73, 0x65, 0x45, 0x6e,
  307. 0x75, 0x6d, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f, 0x41, 0x10, 0x7b, 0x12, 0x0e, 0x0a, 0x08,
  308. 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f, 0x42, 0x10, 0xa6, 0xe7, 0x03, 0x12, 0x0f, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52,
  309. 0x53, 0x45, 0x5f, 0x43, 0x10, 0xb2, 0xb1, 0x80, 0x06, 0x12, 0x15, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f,
  310. 0x44, 0x10, 0xf1, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x12, 0x15, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52,
  311. 0x53, 0x45, 0x5f, 0x45, 0x10, 0xb4, 0xde, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x53,
  312. 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f, 0x46, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f,
  313. 0x47, 0x10, 0x02, 0x32, 0x99, 0x01, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
  314. 0x44, 0x0a, 0x03, 0x46, 0x6f, 0x6f, 0x12, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  315. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e,
  316. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f,
  317. 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x03, 0x42, 0x61, 0x72, 0x12, 0x1d, 0x2e, 0x70,
  318. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x42, 0x61, 0x72,
  319. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  320. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x42, 0x61, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x3a,
  321. 0x46, 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78,
  322. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  323. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e,
  324. 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x46, 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x69, 0x6f,
  325. 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  326. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  327. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20,
  328. 0x01, 0x28, 0x03, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x69, 0x6e, 0x74,
  329. 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  330. 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c,
  331. 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x47, 0x0a, 0x19,
  332. 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65,
  333. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  334. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  335. 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  336. 0x6c, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  337. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  338. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01,
  339. 0x28, 0x11, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36,
  340. 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  341. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  342. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x12, 0x3a, 0x48, 0x0a, 0x1a, 0x6f,
  343. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65,
  344. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  345. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  346. 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x07, 0x3a, 0x48, 0x0a, 0x1a, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  347. 0x6c, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  348. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  349. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20,
  350. 0x01, 0x28, 0x06, 0x3a, 0x49, 0x0a, 0x1b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x66, 0x69, 0x78,
  351. 0x65, 0x64, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  352. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  353. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0f, 0x3a, 0x49,
  354. 0x0a, 0x1b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f,
  355. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  356. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  357. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x10, 0x3a, 0x46, 0x0a, 0x18, 0x6f, 0x70, 0x74,
  358. 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  359. 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  360. 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18,
  361. 0x0b, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x6f,
  362. 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  363. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  364. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x01, 0x3a, 0x45,
  365. 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65,
  366. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  367. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  368. 0x6f, 0x6e, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  369. 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  370. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  371. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0e, 0x20, 0x01,
  372. 0x28, 0x09, 0x3a, 0x46, 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73,
  373. 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  374. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78,
  375. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0c, 0x3a, 0x71, 0x0a, 0x17, 0x6f, 0x70,
  376. 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  377. 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  378. 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18,
  379. 0x10, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  380. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5f,
  381. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x7e, 0x0a, 0x21, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  382. 0x6c, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74,
  383. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  384. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
  385. 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  386. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79,
  387. 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x73, 0x0a,
  388. 0x22, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6d, 0x65,
  389. 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  390. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  391. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32,
  392. 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  393. 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x78, 0x0a, 0x21, 0x6f, 0x70,
  394. 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  395. 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  396. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  397. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72,
  398. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f,
  399. 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x78, 0x0a, 0x1e,
  400. 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d,
  401. 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  402. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78,
  403. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f,
  404. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  405. 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x6d,
  406. 0x0a, 0x1f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65,
  407. 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  408. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c,
  409. 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e,
  410. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f,
  411. 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x72, 0x0a, 0x1e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  412. 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  413. 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74,
  414. 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  415. 0x73, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  416. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72,
  417. 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x51, 0x0a, 0x1f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74,
  418. 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  419. 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  420. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x18,
  421. 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x3a, 0x49, 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c,
  422. 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  423. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  424. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x42,
  425. 0x02, 0x08, 0x01, 0x3a, 0x46, 0x0a, 0x18, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x33,
  426. 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  427. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  428. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x1f, 0x20, 0x03, 0x28, 0x05, 0x3a, 0x46, 0x0a, 0x18, 0x72,
  429. 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  430. 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74,
  431. 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  432. 0x73, 0x18, 0x20, 0x20, 0x03, 0x28, 0x03, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  433. 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70,
  434. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73,
  435. 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x21, 0x20, 0x03, 0x28, 0x0d,
  436. 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f,
  437. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  438. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  439. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x22, 0x20, 0x03, 0x28, 0x04, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70,
  440. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  441. 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  442. 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  443. 0x18, 0x23, 0x20, 0x03, 0x28, 0x11, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73,
  444. 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  445. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  446. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x24, 0x20, 0x03, 0x28, 0x12, 0x3a,
  447. 0x48, 0x0a, 0x1a, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x5f,
  448. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  449. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  450. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x25, 0x20, 0x03, 0x28, 0x07, 0x3a, 0x48, 0x0a, 0x1a, 0x72, 0x65, 0x70,
  451. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  452. 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74,
  453. 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  454. 0x73, 0x18, 0x26, 0x20, 0x03, 0x28, 0x06, 0x3a, 0x49, 0x0a, 0x1b, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  455. 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  456. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  457. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x27, 0x20, 0x03,
  458. 0x28, 0x0f, 0x3a, 0x49, 0x0a, 0x1b, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65,
  459. 0x64, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  460. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c,
  461. 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x28, 0x20, 0x03, 0x28, 0x10, 0x3a, 0x46, 0x0a,
  462. 0x18, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65,
  463. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  464. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  465. 0x6f, 0x6e, 0x73, 0x18, 0x29, 0x20, 0x03, 0x28, 0x02, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65,
  466. 0x64, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  467. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  468. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x2a, 0x20, 0x03,
  469. 0x28, 0x01, 0x3a, 0x45, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x5f,
  470. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  471. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  472. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x2b, 0x20, 0x03, 0x28, 0x08, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70,
  473. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  474. 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  475. 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  476. 0x18, 0x2c, 0x20, 0x03, 0x28, 0x09, 0x3a, 0x46, 0x0a, 0x18, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62,
  477. 0x79, 0x74, 0x65, 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  478. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  479. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x2d, 0x20, 0x03, 0x28, 0x0c, 0x3a, 0x71,
  480. 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65,
  481. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  482. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  483. 0x6f, 0x6e, 0x73, 0x18, 0x2e, 0x20, 0x03, 0x28, 0x0a, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  484. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x47, 0x72,
  485. 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x7e, 0x0a, 0x21, 0x72, 0x65, 0x70,
  486. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  487. 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  488. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78,
  489. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x30, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f,
  490. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  491. 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  492. 0x65, 0x3a, 0x73, 0x0a, 0x22, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67,
  493. 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  494. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  495. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x31, 0x20,
  496. 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74,
  497. 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x78,
  498. 0x0a, 0x21, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x65,
  499. 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  500. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  501. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x32, 0x20, 0x03, 0x28, 0x0b, 0x32,
  502. 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f,
  503. 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  504. 0x3a, 0x78, 0x0a, 0x1e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f,
  505. 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  506. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  507. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x33, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2a,
  508. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  509. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e,
  510. 0x75, 0x6d, 0x3a, 0x6d, 0x0a, 0x1f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69,
  511. 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e,
  512. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65,
  513. 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x34, 0x20, 0x03, 0x28,
  514. 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  515. 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x72, 0x0a, 0x1e, 0x72, 0x65, 0x70,
  516. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78,
  517. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  518. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e,
  519. 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x35, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  520. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49,
  521. 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x51, 0x0a, 0x1f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65,
  522. 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
  523. 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74,
  524. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  525. 0x6e, 0x73, 0x18, 0x36, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x3a, 0x49, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65,
  526. 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  527. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  528. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x37, 0x20,
  529. 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x01, 0x3a, 0x49, 0x0a, 0x17, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69,
  530. 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  531. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  532. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x3d, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x02,
  533. 0x34, 0x31, 0x3a, 0x49, 0x0a, 0x17, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f,
  534. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  535. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  536. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x3e, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x02, 0x34, 0x32, 0x3a, 0x4a, 0x0a,
  537. 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65,
  538. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  539. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  540. 0x6f, 0x6e, 0x73, 0x18, 0x3f, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x02, 0x34, 0x33, 0x3a, 0x4a, 0x0a, 0x18, 0x64, 0x65, 0x66,
  541. 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  542. 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  543. 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18,
  544. 0x40, 0x20, 0x01, 0x28, 0x04, 0x3a, 0x02, 0x34, 0x34, 0x3a, 0x4b, 0x0a, 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
  545. 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e,
  546. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65,
  547. 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x41, 0x20, 0x01, 0x28,
  548. 0x11, 0x3a, 0x03, 0x2d, 0x34, 0x35, 0x3a, 0x4a, 0x0a, 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x69,
  549. 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  550. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  551. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x42, 0x20, 0x01, 0x28, 0x12, 0x3a, 0x02,
  552. 0x34, 0x36, 0x3a, 0x4b, 0x0a, 0x19, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33,
  553. 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  554. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  555. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x43, 0x20, 0x01, 0x28, 0x07, 0x3a, 0x02, 0x34, 0x37, 0x3a,
  556. 0x4b, 0x0a, 0x19, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f, 0x65,
  557. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f,
  558. 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65,
  559. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x44, 0x20, 0x01, 0x28, 0x06, 0x3a, 0x02, 0x34, 0x38, 0x3a, 0x4c, 0x0a, 0x1a,
  560. 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74,
  561. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  562. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
  563. 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x45, 0x20, 0x01, 0x28, 0x0f, 0x3a, 0x02, 0x34, 0x39, 0x3a, 0x4d, 0x0a, 0x1a, 0x64, 0x65,
  564. 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
  565. 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74,
  566. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  567. 0x6e, 0x73, 0x18, 0x46, 0x20, 0x01, 0x28, 0x10, 0x3a, 0x03, 0x2d, 0x35, 0x30, 0x3a, 0x4b, 0x0a, 0x17, 0x64, 0x65, 0x66,
  568. 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  569. 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  570. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x47,
  571. 0x20, 0x01, 0x28, 0x02, 0x3a, 0x04, 0x35, 0x31, 0x2e, 0x35, 0x3a, 0x4d, 0x0a, 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c,
  572. 0x74, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  573. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  574. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x48, 0x20, 0x01,
  575. 0x28, 0x01, 0x3a, 0x05, 0x35, 0x32, 0x30, 0x30, 0x30, 0x3a, 0x4a, 0x0a, 0x16, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
  576. 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  577. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  578. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x49, 0x20, 0x01, 0x28, 0x08, 0x3a,
  579. 0x04, 0x74, 0x72, 0x75, 0x65, 0x3a, 0x4d, 0x0a, 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72,
  580. 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  581. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c,
  582. 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x4a, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x05, 0x68,
  583. 0x65, 0x6c, 0x6c, 0x6f, 0x3a, 0x4c, 0x0a, 0x17, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x79, 0x74, 0x65,
  584. 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  585. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  586. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x4b, 0x20, 0x01, 0x28, 0x0c, 0x3a, 0x05, 0x77, 0x6f, 0x72,
  587. 0x6c, 0x64, 0x3a, 0x7c, 0x0a, 0x1d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64,
  588. 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  589. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  590. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x51, 0x20, 0x01, 0x28, 0x0e, 0x32,
  591. 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  592. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45,
  593. 0x6e, 0x75, 0x6d, 0x3a, 0x03, 0x42, 0x41, 0x52, 0x3a, 0x79, 0x0a, 0x1e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f,
  594. 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  595. 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  596. 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  597. 0x18, 0x52, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  598. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x0b,
  599. 0x46, 0x4f, 0x52, 0x45, 0x49, 0x47, 0x4e, 0x5f, 0x42, 0x41, 0x52, 0x3a, 0x7d, 0x0a, 0x1d, 0x64, 0x65, 0x66, 0x61, 0x75,
  600. 0x6c, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
  601. 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74,
  602. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  603. 0x6e, 0x73, 0x18, 0x53, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f,
  604. 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f,
  605. 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x0a, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x42, 0x41, 0x52, 0x3a, 0x55,
  606. 0x0a, 0x1e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65,
  607. 0x63, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  608. 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c,
  609. 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x54, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x03, 0x61, 0x62,
  610. 0x63, 0x42, 0x02, 0x08, 0x02, 0x3a, 0x4d, 0x0a, 0x16, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x72,
  611. 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  612. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  613. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x55, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x03, 0x31, 0x32, 0x33,
  614. 0x42, 0x02, 0x08, 0x01, 0x3a, 0x42, 0x0a, 0x13, 0x6d, 0x79, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  615. 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  616. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x72, 0x64,
  617. 0x65, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x32, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x3f, 0x0a, 0x10, 0x6d, 0x79, 0x5f, 0x65,
  618. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  619. 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x46, 0x69, 0x65,
  620. 0x6c, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x42, 0x49, 0x42,
  621. 0x0d, 0x55, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x48, 0x01, 0xc2, 0x3e, 0x21, 0x47,
  622. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72,
  623. 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0xca, 0x3e, 0x11, 0x55, 0x6e, 0x69, 0x74, 0x54,
  624. 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x46, 0x69, 0x6c, 0x65,
  625. }, new pbd::FileDescriptor[] {
  626. self::UnitTestImportProtoFile.Descriptor,
  627. });
  628. #endregion
  629. #region Extensions
  630. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, int> OptionalInt32Extension =
  631. pb::GeneratedSingleExtension<self::TestAllExtensions, int>.CreateInstance(Descriptor.Extensions[0]);
  632. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, long> OptionalInt64Extension =
  633. pb::GeneratedSingleExtension<self::TestAllExtensions, long>.CreateInstance(Descriptor.Extensions[1]);
  634. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, uint> OptionalUint32Extension =
  635. pb::GeneratedSingleExtension<self::TestAllExtensions, uint>.CreateInstance(Descriptor.Extensions[2]);
  636. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, ulong> OptionalUint64Extension =
  637. pb::GeneratedSingleExtension<self::TestAllExtensions, ulong>.CreateInstance(Descriptor.Extensions[3]);
  638. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, int> OptionalSint32Extension =
  639. pb::GeneratedSingleExtension<self::TestAllExtensions, int>.CreateInstance(Descriptor.Extensions[4]);
  640. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, long> OptionalSint64Extension =
  641. pb::GeneratedSingleExtension<self::TestAllExtensions, long>.CreateInstance(Descriptor.Extensions[5]);
  642. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, uint> OptionalFixed32Extension =
  643. pb::GeneratedSingleExtension<self::TestAllExtensions, uint>.CreateInstance(Descriptor.Extensions[6]);
  644. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, ulong> OptionalFixed64Extension =
  645. pb::GeneratedSingleExtension<self::TestAllExtensions, ulong>.CreateInstance(Descriptor.Extensions[7]);
  646. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, int> OptionalSfixed32Extension =
  647. pb::GeneratedSingleExtension<self::TestAllExtensions, int>.CreateInstance(Descriptor.Extensions[8]);
  648. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, long> OptionalSfixed64Extension =
  649. pb::GeneratedSingleExtension<self::TestAllExtensions, long>.CreateInstance(Descriptor.Extensions[9]);
  650. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, float> OptionalFloatExtension =
  651. pb::GeneratedSingleExtension<self::TestAllExtensions, float>.CreateInstance(Descriptor.Extensions[10]);
  652. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, double> OptionalDoubleExtension =
  653. pb::GeneratedSingleExtension<self::TestAllExtensions, double>.CreateInstance(Descriptor.Extensions[11]);
  654. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, bool> OptionalBoolExtension =
  655. pb::GeneratedSingleExtension<self::TestAllExtensions, bool>.CreateInstance(Descriptor.Extensions[12]);
  656. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, string> OptionalStringExtension =
  657. pb::GeneratedSingleExtension<self::TestAllExtensions, string>.CreateInstance(Descriptor.Extensions[13]);
  658. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, pb::ByteString> OptionalBytesExtension =
  659. pb::GeneratedSingleExtension<self::TestAllExtensions, pb::ByteString>.CreateInstance(Descriptor.Extensions[14]);
  660. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, self::OptionalGroup_extension> OptionalGroupExtension =
  661. pb::GeneratedSingleExtension<self::TestAllExtensions, self::OptionalGroup_extension>.CreateInstance(Descriptor.Extensions[15]);
  662. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, self::TestAllTypes.Types.NestedMessage> OptionalNestedMessageExtension =
  663. pb::GeneratedSingleExtension<self::TestAllExtensions, self::TestAllTypes.Types.NestedMessage>.CreateInstance(Descriptor.Extensions[16]);
  664. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, self::ForeignMessage> OptionalForeignMessageExtension =
  665. pb::GeneratedSingleExtension<self::TestAllExtensions, self::ForeignMessage>.CreateInstance(Descriptor.Extensions[17]);
  666. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, self::ImportMessage> OptionalImportMessageExtension =
  667. pb::GeneratedSingleExtension<self::TestAllExtensions, self::ImportMessage>.CreateInstance(Descriptor.Extensions[18]);
  668. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, self::TestAllTypes.Types.NestedEnum> OptionalNestedEnumExtension =
  669. pb::GeneratedSingleExtension<self::TestAllExtensions, self::TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[19]);
  670. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, self::ForeignEnum> OptionalForeignEnumExtension =
  671. pb::GeneratedSingleExtension<self::TestAllExtensions, self::ForeignEnum>.CreateInstance(Descriptor.Extensions[20]);
  672. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, self::ImportEnum> OptionalImportEnumExtension =
  673. pb::GeneratedSingleExtension<self::TestAllExtensions, self::ImportEnum>.CreateInstance(Descriptor.Extensions[21]);
  674. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, string> OptionalStringPieceExtension =
  675. pb::GeneratedSingleExtension<self::TestAllExtensions, string>.CreateInstance(Descriptor.Extensions[22]);
  676. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, string> OptionalCordExtension =
  677. pb::GeneratedSingleExtension<self::TestAllExtensions, string>.CreateInstance(Descriptor.Extensions[23]);
  678. public static readonly
  679. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<int>> RepeatedInt32Extension =
  680. pb::GeneratedRepeatExtension<self::TestAllExtensions, int>.CreateInstance(Descriptor.Extensions[24]);
  681. public static readonly
  682. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<long>> RepeatedInt64Extension =
  683. pb::GeneratedRepeatExtension<self::TestAllExtensions, long>.CreateInstance(Descriptor.Extensions[25]);
  684. public static readonly
  685. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<uint>> RepeatedUint32Extension =
  686. pb::GeneratedRepeatExtension<self::TestAllExtensions, uint>.CreateInstance(Descriptor.Extensions[26]);
  687. public static readonly
  688. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<ulong>> RepeatedUint64Extension =
  689. pb::GeneratedRepeatExtension<self::TestAllExtensions, ulong>.CreateInstance(Descriptor.Extensions[27]);
  690. public static readonly
  691. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<int>> RepeatedSint32Extension =
  692. pb::GeneratedRepeatExtension<self::TestAllExtensions, int>.CreateInstance(Descriptor.Extensions[28]);
  693. public static readonly
  694. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<long>> RepeatedSint64Extension =
  695. pb::GeneratedRepeatExtension<self::TestAllExtensions, long>.CreateInstance(Descriptor.Extensions[29]);
  696. public static readonly
  697. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<uint>> RepeatedFixed32Extension =
  698. pb::GeneratedRepeatExtension<self::TestAllExtensions, uint>.CreateInstance(Descriptor.Extensions[30]);
  699. public static readonly
  700. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<ulong>> RepeatedFixed64Extension =
  701. pb::GeneratedRepeatExtension<self::TestAllExtensions, ulong>.CreateInstance(Descriptor.Extensions[31]);
  702. public static readonly
  703. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<int>> RepeatedSfixed32Extension =
  704. pb::GeneratedRepeatExtension<self::TestAllExtensions, int>.CreateInstance(Descriptor.Extensions[32]);
  705. public static readonly
  706. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<long>> RepeatedSfixed64Extension =
  707. pb::GeneratedRepeatExtension<self::TestAllExtensions, long>.CreateInstance(Descriptor.Extensions[33]);
  708. public static readonly
  709. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<float>> RepeatedFloatExtension =
  710. pb::GeneratedRepeatExtension<self::TestAllExtensions, float>.CreateInstance(Descriptor.Extensions[34]);
  711. public static readonly
  712. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<double>> RepeatedDoubleExtension =
  713. pb::GeneratedRepeatExtension<self::TestAllExtensions, double>.CreateInstance(Descriptor.Extensions[35]);
  714. public static readonly
  715. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<bool>> RepeatedBoolExtension =
  716. pb::GeneratedRepeatExtension<self::TestAllExtensions, bool>.CreateInstance(Descriptor.Extensions[36]);
  717. public static readonly
  718. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<string>> RepeatedStringExtension =
  719. pb::GeneratedRepeatExtension<self::TestAllExtensions, string>.CreateInstance(Descriptor.Extensions[37]);
  720. public static readonly
  721. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<pb::ByteString>> RepeatedBytesExtension =
  722. pb::GeneratedRepeatExtension<self::TestAllExtensions, pb::ByteString>.CreateInstance(Descriptor.Extensions[38]);
  723. public static readonly
  724. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<self::RepeatedGroup_extension>> RepeatedGroupExtension =
  725. pb::GeneratedRepeatExtension<self::TestAllExtensions, self::RepeatedGroup_extension>.CreateInstance(Descriptor.Extensions[39]);
  726. public static readonly
  727. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<self::TestAllTypes.Types.NestedMessage>> RepeatedNestedMessageExtension =
  728. pb::GeneratedRepeatExtension<self::TestAllExtensions, self::TestAllTypes.Types.NestedMessage>.CreateInstance(Descriptor.Extensions[40]);
  729. public static readonly
  730. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<self::ForeignMessage>> RepeatedForeignMessageExtension =
  731. pb::GeneratedRepeatExtension<self::TestAllExtensions, self::ForeignMessage>.CreateInstance(Descriptor.Extensions[41]);
  732. public static readonly
  733. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<self::ImportMessage>> RepeatedImportMessageExtension =
  734. pb::GeneratedRepeatExtension<self::TestAllExtensions, self::ImportMessage>.CreateInstance(Descriptor.Extensions[42]);
  735. public static readonly
  736. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<self::TestAllTypes.Types.NestedEnum>> RepeatedNestedEnumExtension =
  737. pb::GeneratedRepeatExtension<self::TestAllExtensions, self::TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[43]);
  738. public static readonly
  739. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<self::ForeignEnum>> RepeatedForeignEnumExtension =
  740. pb::GeneratedRepeatExtension<self::TestAllExtensions, self::ForeignEnum>.CreateInstance(Descriptor.Extensions[44]);
  741. public static readonly
  742. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<self::ImportEnum>> RepeatedImportEnumExtension =
  743. pb::GeneratedRepeatExtension<self::TestAllExtensions, self::ImportEnum>.CreateInstance(Descriptor.Extensions[45]);
  744. public static readonly
  745. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<string>> RepeatedStringPieceExtension =
  746. pb::GeneratedRepeatExtension<self::TestAllExtensions, string>.CreateInstance(Descriptor.Extensions[46]);
  747. public static readonly
  748. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<string>> RepeatedCordExtension =
  749. pb::GeneratedRepeatExtension<self::TestAllExtensions, string>.CreateInstance(Descriptor.Extensions[47]);
  750. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, int> DefaultInt32Extension =
  751. pb::GeneratedSingleExtension<self::TestAllExtensions, int>.CreateInstance(Descriptor.Extensions[48]);
  752. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, long> DefaultInt64Extension =
  753. pb::GeneratedSingleExtension<self::TestAllExtensions, long>.CreateInstance(Descriptor.Extensions[49]);
  754. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, uint> DefaultUint32Extension =
  755. pb::GeneratedSingleExtension<self::TestAllExtensions, uint>.CreateInstance(Descriptor.Extensions[50]);
  756. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, ulong> DefaultUint64Extension =
  757. pb::GeneratedSingleExtension<self::TestAllExtensions, ulong>.CreateInstance(Descriptor.Extensions[51]);
  758. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, int> DefaultSint32Extension =
  759. pb::GeneratedSingleExtension<self::TestAllExtensions, int>.CreateInstance(Descriptor.Extensions[52]);
  760. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, long> DefaultSint64Extension =
  761. pb::GeneratedSingleExtension<self::TestAllExtensions, long>.CreateInstance(Descriptor.Extensions[53]);
  762. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, uint> DefaultFixed32Extension =
  763. pb::GeneratedSingleExtension<self::TestAllExtensions, uint>.CreateInstance(Descriptor.Extensions[54]);
  764. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, ulong> DefaultFixed64Extension =
  765. pb::GeneratedSingleExtension<self::TestAllExtensions, ulong>.CreateInstance(Descriptor.Extensions[55]);
  766. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, int> DefaultSfixed32Extension =
  767. pb::GeneratedSingleExtension<self::TestAllExtensions, int>.CreateInstance(Descriptor.Extensions[56]);
  768. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, long> DefaultSfixed64Extension =
  769. pb::GeneratedSingleExtension<self::TestAllExtensions, long>.CreateInstance(Descriptor.Extensions[57]);
  770. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, float> DefaultFloatExtension =
  771. pb::GeneratedSingleExtension<self::TestAllExtensions, float>.CreateInstance(Descriptor.Extensions[58]);
  772. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, double> DefaultDoubleExtension =
  773. pb::GeneratedSingleExtension<self::TestAllExtensions, double>.CreateInstance(Descriptor.Extensions[59]);
  774. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, bool> DefaultBoolExtension =
  775. pb::GeneratedSingleExtension<self::TestAllExtensions, bool>.CreateInstance(Descriptor.Extensions[60]);
  776. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, string> DefaultStringExtension =
  777. pb::GeneratedSingleExtension<self::TestAllExtensions, string>.CreateInstance(Descriptor.Extensions[61]);
  778. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, pb::ByteString> DefaultBytesExtension =
  779. pb::GeneratedSingleExtension<self::TestAllExtensions, pb::ByteString>.CreateInstance(Descriptor.Extensions[62]);
  780. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, self::TestAllTypes.Types.NestedEnum> DefaultNestedEnumExtension =
  781. pb::GeneratedSingleExtension<self::TestAllExtensions, self::TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[63]);
  782. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, self::ForeignEnum> DefaultForeignEnumExtension =
  783. pb::GeneratedSingleExtension<self::TestAllExtensions, self::ForeignEnum>.CreateInstance(Descriptor.Extensions[64]);
  784. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, self::ImportEnum> DefaultImportEnumExtension =
  785. pb::GeneratedSingleExtension<self::TestAllExtensions, self::ImportEnum>.CreateInstance(Descriptor.Extensions[65]);
  786. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, string> DefaultStringPieceExtension =
  787. pb::GeneratedSingleExtension<self::TestAllExtensions, string>.CreateInstance(Descriptor.Extensions[66]);
  788. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, string> DefaultCordExtension =
  789. pb::GeneratedSingleExtension<self::TestAllExtensions, string>.CreateInstance(Descriptor.Extensions[67]);
  790. public static readonly pb::GeneratedExtensionBase<self::TestFieldOrderings, string> MyExtensionString =
  791. pb::GeneratedSingleExtension<self::TestFieldOrderings, string>.CreateInstance(Descriptor.Extensions[68]);
  792. public static readonly pb::GeneratedExtensionBase<self::TestFieldOrderings, int> MyExtensionInt =
  793. pb::GeneratedSingleExtension<self::TestFieldOrderings, int>.CreateInstance(Descriptor.Extensions[69]);
  794. #endregion
  795. #region Static variables
  796. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes__Descriptor
  797. = Descriptor.MessageTypes[0];
  798. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable
  799. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestAllTypes__Descriptor,
  800. 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", },
  801. typeof (self::TestAllTypes),
  802. typeof (self::TestAllTypes.Builder));
  803. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor
  804. = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[0];
  805. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable
  806. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor,
  807. new string[] { "Bb", },
  808. typeof (self::TestAllTypes.Types.NestedMessage),
  809. typeof (self::TestAllTypes.Types.NestedMessage.Builder));
  810. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor
  811. = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[1];
  812. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable
  813. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor,
  814. new string[] { "A", },
  815. typeof (self::TestAllTypes.Types.OptionalGroup),
  816. typeof (self::TestAllTypes.Types.OptionalGroup.Builder));
  817. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor
  818. = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[2];
  819. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable
  820. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor,
  821. new string[] { "A", },
  822. typeof (self::TestAllTypes.Types.RepeatedGroup),
  823. typeof (self::TestAllTypes.Types.RepeatedGroup.Builder));
  824. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_ForeignMessage__Descriptor
  825. = Descriptor.MessageTypes[1];
  826. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable
  827. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_ForeignMessage__Descriptor,
  828. new string[] { "C", },
  829. typeof (self::ForeignMessage),
  830. typeof (self::ForeignMessage.Builder));
  831. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllExtensions__Descriptor
  832. = Descriptor.MessageTypes[2];
  833. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable
  834. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestAllExtensions__Descriptor,
  835. new string[] { },
  836. typeof (self::TestAllExtensions),
  837. typeof (self::TestAllExtensions.Builder));
  838. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor
  839. = Descriptor.MessageTypes[3];
  840. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable
  841. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor,
  842. new string[] { "A", },
  843. typeof (self::OptionalGroup_extension),
  844. typeof (self::OptionalGroup_extension.Builder));
  845. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor
  846. = Descriptor.MessageTypes[4];
  847. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable
  848. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor,
  849. new string[] { "A", },
  850. typeof (self::RepeatedGroup_extension),
  851. typeof (self::RepeatedGroup_extension.Builder));
  852. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequired__Descriptor
  853. = Descriptor.MessageTypes[5];
  854. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestRequired__FieldAccessorTable
  855. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestRequired__Descriptor,
  856. 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", },
  857. typeof (self::TestRequired),
  858. typeof (self::TestRequired.Builder));
  859. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequiredForeign__Descriptor
  860. = Descriptor.MessageTypes[6];
  861. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable
  862. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestRequiredForeign__Descriptor,
  863. new string[] { "OptionalMessage", "RepeatedMessage", "Dummy", },
  864. typeof (self::TestRequiredForeign),
  865. typeof (self::TestRequiredForeign.Builder));
  866. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestForeignNested__Descriptor
  867. = Descriptor.MessageTypes[7];
  868. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable
  869. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestForeignNested__Descriptor,
  870. new string[] { "ForeignNested", },
  871. typeof (self::TestForeignNested),
  872. typeof (self::TestForeignNested.Builder));
  873. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessage__Descriptor
  874. = Descriptor.MessageTypes[8];
  875. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable
  876. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestEmptyMessage__Descriptor,
  877. new string[] { },
  878. typeof (self::TestEmptyMessage),
  879. typeof (self::TestEmptyMessage.Builder));
  880. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor
  881. = Descriptor.MessageTypes[9];
  882. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable
  883. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor,
  884. new string[] { },
  885. typeof (self::TestEmptyMessageWithExtensions),
  886. typeof (self::TestEmptyMessageWithExtensions.Builder));
  887. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor
  888. = Descriptor.MessageTypes[10];
  889. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable
  890. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor,
  891. new string[] { "A", "Bb", },
  892. typeof (self::TestReallyLargeTagNumber),
  893. typeof (self::TestReallyLargeTagNumber.Builder));
  894. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor
  895. = Descriptor.MessageTypes[11];
  896. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable
  897. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor,
  898. new string[] { "A", "I", },
  899. typeof (self::TestRecursiveMessage),
  900. typeof (self::TestRecursiveMessage.Builder));
  901. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor
  902. = Descriptor.MessageTypes[12];
  903. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable
  904. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor,
  905. new string[] { "Bb", },
  906. typeof (self::TestMutualRecursionA),
  907. typeof (self::TestMutualRecursionA.Builder));
  908. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor
  909. = Descriptor.MessageTypes[13];
  910. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable
  911. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor,
  912. new string[] { "A", "OptionalInt32", },
  913. typeof (self::TestMutualRecursionB),
  914. typeof (self::TestMutualRecursionB.Builder));
  915. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor
  916. = Descriptor.MessageTypes[14];
  917. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable
  918. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor,
  919. new string[] { "A", "Foo", "Bar", },
  920. typeof (self::TestDupFieldNumber),
  921. typeof (self::TestDupFieldNumber.Builder));
  922. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor
  923. = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[0];
  924. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable
  925. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor,
  926. new string[] { "A", },
  927. typeof (self::TestDupFieldNumber.Types.Foo),
  928. typeof (self::TestDupFieldNumber.Types.Foo.Builder));
  929. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor
  930. = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[1];
  931. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable
  932. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor,
  933. new string[] { "A", },
  934. typeof (self::TestDupFieldNumber.Types.Bar),
  935. typeof (self::TestDupFieldNumber.Types.Bar.Builder));
  936. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor
  937. = Descriptor.MessageTypes[15];
  938. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable
  939. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor,
  940. new string[] { "OptionalNestedMessage", },
  941. typeof (self::TestNestedMessageHasBits),
  942. typeof (self::TestNestedMessageHasBits.Builder));
  943. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor
  944. = internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor.NestedTypes[0];
  945. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable
  946. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor,
  947. new string[] { "NestedmessageRepeatedInt32", "NestedmessageRepeatedForeignmessage", },
  948. typeof (self::TestNestedMessageHasBits.Types.NestedMessage),
  949. typeof (self::TestNestedMessageHasBits.Types.NestedMessage.Builder));
  950. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor
  951. = Descriptor.MessageTypes[16];
  952. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable
  953. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor,
  954. new string[] { "PrimitiveField", "StringField", "EnumField", "MessageField", "StringPieceField", "CordField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedStringPieceField", "RepeatedCordField", },
  955. typeof (self::TestCamelCaseFieldNames),
  956. typeof (self::TestCamelCaseFieldNames.Builder));
  957. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestFieldOrderings__Descriptor
  958. = Descriptor.MessageTypes[17];
  959. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable
  960. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestFieldOrderings__Descriptor,
  961. new string[] { "MyString", "MyInt", "MyFloat", },
  962. typeof (self::TestFieldOrderings),
  963. typeof (self::TestFieldOrderings.Builder));
  964. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor
  965. = Descriptor.MessageTypes[18];
  966. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable
  967. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor,
  968. new string[] { "EscapedBytes", "LargeUint32", "LargeUint64", "SmallInt32", "SmallInt64", "Utf8String", },
  969. typeof (self::TestExtremeDefaultValues),
  970. typeof (self::TestExtremeDefaultValues.Builder));
  971. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_FooRequest__Descriptor
  972. = Descriptor.MessageTypes[19];
  973. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooRequest__FieldAccessorTable
  974. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_FooRequest__Descriptor,
  975. new string[] { },
  976. typeof (self::FooRequest),
  977. typeof (self::FooRequest.Builder));
  978. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_FooResponse__Descriptor
  979. = Descriptor.MessageTypes[20];
  980. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooResponse__FieldAccessorTable
  981. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_FooResponse__Descriptor,
  982. new string[] { },
  983. typeof (self::FooResponse),
  984. typeof (self::FooResponse.Builder));
  985. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_BarRequest__Descriptor
  986. = Descriptor.MessageTypes[21];
  987. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_BarRequest__FieldAccessorTable
  988. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_BarRequest__Descriptor,
  989. new string[] { },
  990. typeof (self::BarRequest),
  991. typeof (self::BarRequest.Builder));
  992. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_BarResponse__Descriptor
  993. = Descriptor.MessageTypes[22];
  994. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_BarResponse__FieldAccessorTable
  995. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_BarResponse__Descriptor,
  996. new string[] { },
  997. typeof (self::BarResponse),
  998. typeof (self::BarResponse.Builder));
  999. #endregion
  1000. }
  1001. #region Enums
  1002. public enum ForeignEnum {
  1003. FOREIGN_FOO = 4,
  1004. FOREIGN_BAR = 5,
  1005. FOREIGN_BAZ = 6,
  1006. }
  1007. public enum TestEnumWithDupValue {
  1008. FOO1 = 1,
  1009. BAR1 = 2,
  1010. BAZ = 3,
  1011. }
  1012. public enum TestSparseEnum {
  1013. SPARSE_A = 123,
  1014. SPARSE_B = 62374,
  1015. SPARSE_C = 12589234,
  1016. SPARSE_D = -15,
  1017. SPARSE_E = -53452,
  1018. SPARSE_F = 0,
  1019. SPARSE_G = 2,
  1020. }
  1021. #endregion
  1022. #region Messages
  1023. public sealed partial class TestAllTypes : pb::GeneratedMessage<TestAllTypes, TestAllTypes.Builder> {
  1024. // Use TestAllTypes.CreateBuilder() to construct.
  1025. private TestAllTypes() {}
  1026. private static readonly TestAllTypes defaultInstance = new TestAllTypes();
  1027. public static TestAllTypes DefaultInstance {
  1028. get { return defaultInstance; }
  1029. }
  1030. public override TestAllTypes DefaultInstanceForType {
  1031. get { return defaultInstance; }
  1032. }
  1033. public static pbd::MessageDescriptor Descriptor {
  1034. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__Descriptor; }
  1035. }
  1036. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  1037. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable; }
  1038. }
  1039. #region Nested types
  1040. public static class Types {
  1041. public enum NestedEnum {
  1042. FOO = 1,
  1043. BAR = 2,
  1044. BAZ = 3,
  1045. }
  1046. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  1047. // Use NestedMessage.CreateBuilder() to construct.
  1048. private NestedMessage() {}
  1049. private static readonly NestedMessage defaultInstance = new NestedMessage();
  1050. public static NestedMessage DefaultInstance {
  1051. get { return defaultInstance; }
  1052. }
  1053. public override NestedMessage DefaultInstanceForType {
  1054. get { return defaultInstance; }
  1055. }
  1056. public static pbd::MessageDescriptor Descriptor {
  1057. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor; }
  1058. }
  1059. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  1060. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable; }
  1061. }
  1062. // optional int32 bb = 1;
  1063. private bool hasBb;
  1064. private int bb_ = 0;
  1065. public bool HasBb {
  1066. get { return hasBb; }
  1067. }
  1068. public int Bb {
  1069. get { return bb_; }
  1070. }
  1071. public override bool IsInitialized {
  1072. get {
  1073. return true;
  1074. }
  1075. }
  1076. public override void WriteTo(pb::CodedOutputStream output) {
  1077. if (HasBb) {
  1078. output.WriteInt32(1, Bb);
  1079. }
  1080. UnknownFields.WriteTo(output);
  1081. }
  1082. private int memoizedSerializedSize = -1;
  1083. public override int SerializedSize {
  1084. get {
  1085. int size = memoizedSerializedSize;
  1086. if (size != -1) return size;
  1087. size = 0;
  1088. if (HasBb) {
  1089. size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
  1090. }
  1091. size += UnknownFields.SerializedSize;
  1092. memoizedSerializedSize = size;
  1093. return size;
  1094. }
  1095. }
  1096. public static self::TestAllTypes.Types.NestedMessage ParseFrom(pb::ByteString data) {
  1097. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1098. }
  1099. public static self::TestAllTypes.Types.NestedMessage ParseFrom(pb::ByteString data,
  1100. pb::ExtensionRegistry extensionRegistry) {
  1101. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1102. .BuildParsed();
  1103. }
  1104. public static self::TestAllTypes.Types.NestedMessage ParseFrom(byte[] data) {
  1105. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1106. }
  1107. public static self::TestAllTypes.Types.NestedMessage parseFrom(byte[] data,
  1108. pb::ExtensionRegistry extensionRegistry) {
  1109. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1110. .BuildParsed();
  1111. }
  1112. public static self::TestAllTypes.Types.NestedMessage ParseFrom(global::System.IO.Stream input) {
  1113. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1114. }
  1115. public static self::TestAllTypes.Types.NestedMessage ParseFrom(
  1116. global::System.IO.Stream input,
  1117. pb::ExtensionRegistry extensionRegistry) {
  1118. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1119. .BuildParsed();
  1120. }
  1121. public static self::TestAllTypes.Types.NestedMessage ParseFrom(pb::CodedInputStream input) {
  1122. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1123. }
  1124. public static self::TestAllTypes.Types.NestedMessage ParseFrom(pb::CodedInputStream input,
  1125. pb::ExtensionRegistry extensionRegistry) {
  1126. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1127. .BuildParsed();
  1128. }
  1129. public static Builder CreateBuilder() { return new Builder(); }
  1130. public override IBuilder<self::TestAllTypes.Types.NestedMessage> CreateBuilderForType() { return new Builder(); }
  1131. public static Builder CreateBuilder(self::TestAllTypes.Types.NestedMessage prototype) {
  1132. return (Builder) new Builder().MergeFrom(prototype);
  1133. }
  1134. public sealed partial class Builder : pb::GeneratedBuilder<self::TestAllTypes.Types.NestedMessage, Builder> {
  1135. // Construct using self::TestAllTypes.Types.NestedMessage.CreateBuilder()
  1136. internal Builder() {}
  1137. self::TestAllTypes.Types.NestedMessage result = new self::TestAllTypes.Types.NestedMessage();
  1138. protected override self::TestAllTypes.Types.NestedMessage MessageBeingBuilt {
  1139. get { return result; }
  1140. }
  1141. public override IBuilder<self::TestAllTypes.Types.NestedMessage> Clear() {
  1142. result = new self::TestAllTypes.Types.NestedMessage();
  1143. return this;
  1144. }
  1145. public override IBuilder<self::TestAllTypes.Types.NestedMessage> Clone() {
  1146. return new Builder().MergeFrom(result);
  1147. }
  1148. public override pbd::MessageDescriptor DescriptorForType {
  1149. get { return self::TestAllTypes.Types.NestedMessage.Descriptor; }
  1150. }
  1151. public override self::TestAllTypes.Types.NestedMessage DefaultInstanceForType {
  1152. get { return self::TestAllTypes.Types.NestedMessage.DefaultInstance; }
  1153. }
  1154. public override self::TestAllTypes.Types.NestedMessage BuildPartial() {
  1155. self::TestAllTypes.Types.NestedMessage returnMe = result;
  1156. result = null;
  1157. return returnMe;
  1158. }
  1159. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  1160. return MergeFrom(data, extensionRegistry);
  1161. }
  1162. public override IBuilder MergeFrom(pb::IMessage other) {
  1163. if (other is self::TestAllTypes.Types.NestedMessage) {
  1164. return MergeFrom((self::TestAllTypes.Types.NestedMessage) other);
  1165. } else {
  1166. base.MergeFrom(other);
  1167. return this;
  1168. }
  1169. }
  1170. public override IBuilder<self::TestAllTypes.Types.NestedMessage> MergeFrom(self::TestAllTypes.Types.NestedMessage other) {
  1171. if (other == self::TestAllTypes.Types.NestedMessage.DefaultInstance) return this;
  1172. if (other.HasBb) {
  1173. Bb = other.Bb;
  1174. }
  1175. this.MergeUnknownFields(other.UnknownFields);
  1176. return this;
  1177. }
  1178. public override IBuilder<self::TestAllTypes.Types.NestedMessage> MergeFrom(pb::CodedInputStream input) {
  1179. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1180. }
  1181. public override IBuilder<self::TestAllTypes.Types.NestedMessage> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1182. pb::UnknownFieldSet.Builder unknownFields =
  1183. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1184. while (true) {
  1185. uint tag = input.ReadTag();
  1186. switch (tag) {
  1187. case 0:
  1188. this.UnknownFields = unknownFields.Build();
  1189. return this;
  1190. default: {
  1191. if (!ParseUnknownField(input, unknownFields,
  1192. extensionRegistry, tag)) {
  1193. this.UnknownFields = unknownFields.Build();
  1194. return this;
  1195. }
  1196. break;
  1197. }
  1198. case 8: {
  1199. Bb = input.ReadInt32();
  1200. break;
  1201. }
  1202. }
  1203. }
  1204. }
  1205. // optional int32 bb = 1;
  1206. public bool HasBb {
  1207. get { return result.HasBb; }
  1208. }
  1209. public int Bb {
  1210. get { return result.Bb; }
  1211. set { SetBb(value); }
  1212. }
  1213. public Builder SetBb(int value) {
  1214. result.hasBb = true;
  1215. result.bb_ = value;
  1216. return this;
  1217. }
  1218. public Builder ClearBb() {
  1219. result.hasBb = false;
  1220. result.bb_ = 0;
  1221. return this;
  1222. }
  1223. }
  1224. }
  1225. public sealed partial class OptionalGroup : pb::GeneratedMessage<OptionalGroup, OptionalGroup.Builder> {
  1226. // Use OptionalGroup.CreateBuilder() to construct.
  1227. private OptionalGroup() {}
  1228. private static readonly OptionalGroup defaultInstance = new OptionalGroup();
  1229. public static OptionalGroup DefaultInstance {
  1230. get { return defaultInstance; }
  1231. }
  1232. public override OptionalGroup DefaultInstanceForType {
  1233. get { return defaultInstance; }
  1234. }
  1235. public static pbd::MessageDescriptor Descriptor {
  1236. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor; }
  1237. }
  1238. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  1239. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable; }
  1240. }
  1241. // optional int32 a = 17;
  1242. private bool hasA;
  1243. private int a_ = 0;
  1244. public bool HasA {
  1245. get { return hasA; }
  1246. }
  1247. public int A {
  1248. get { return a_; }
  1249. }
  1250. public override bool IsInitialized {
  1251. get {
  1252. return true;
  1253. }
  1254. }
  1255. public override void WriteTo(pb::CodedOutputStream output) {
  1256. if (HasA) {
  1257. output.WriteInt32(17, A);
  1258. }
  1259. UnknownFields.WriteTo(output);
  1260. }
  1261. private int memoizedSerializedSize = -1;
  1262. public override int SerializedSize {
  1263. get {
  1264. int size = memoizedSerializedSize;
  1265. if (size != -1) return size;
  1266. size = 0;
  1267. if (HasA) {
  1268. size += pb::CodedOutputStream.ComputeInt32Size(17, A);
  1269. }
  1270. size += UnknownFields.SerializedSize;
  1271. memoizedSerializedSize = size;
  1272. return size;
  1273. }
  1274. }
  1275. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(pb::ByteString data) {
  1276. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1277. }
  1278. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(pb::ByteString data,
  1279. pb::ExtensionRegistry extensionRegistry) {
  1280. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1281. .BuildParsed();
  1282. }
  1283. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(byte[] data) {
  1284. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1285. }
  1286. public static self::TestAllTypes.Types.OptionalGroup parseFrom(byte[] data,
  1287. pb::ExtensionRegistry extensionRegistry) {
  1288. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1289. .BuildParsed();
  1290. }
  1291. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(global::System.IO.Stream input) {
  1292. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1293. }
  1294. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(
  1295. global::System.IO.Stream input,
  1296. pb::ExtensionRegistry extensionRegistry) {
  1297. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1298. .BuildParsed();
  1299. }
  1300. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(pb::CodedInputStream input) {
  1301. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1302. }
  1303. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(pb::CodedInputStream input,
  1304. pb::ExtensionRegistry extensionRegistry) {
  1305. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1306. .BuildParsed();
  1307. }
  1308. public static Builder CreateBuilder() { return new Builder(); }
  1309. public override IBuilder<self::TestAllTypes.Types.OptionalGroup> CreateBuilderForType() { return new Builder(); }
  1310. public static Builder CreateBuilder(self::TestAllTypes.Types.OptionalGroup prototype) {
  1311. return (Builder) new Builder().MergeFrom(prototype);
  1312. }
  1313. public sealed partial class Builder : pb::GeneratedBuilder<self::TestAllTypes.Types.OptionalGroup, Builder> {
  1314. // Construct using self::TestAllTypes.Types.OptionalGroup.CreateBuilder()
  1315. internal Builder() {}
  1316. self::TestAllTypes.Types.OptionalGroup result = new self::TestAllTypes.Types.OptionalGroup();
  1317. protected override self::TestAllTypes.Types.OptionalGroup MessageBeingBuilt {
  1318. get { return result; }
  1319. }
  1320. public override IBuilder<self::TestAllTypes.Types.OptionalGroup> Clear() {
  1321. result = new self::TestAllTypes.Types.OptionalGroup();
  1322. return this;
  1323. }
  1324. public override IBuilder<self::TestAllTypes.Types.OptionalGroup> Clone() {
  1325. return new Builder().MergeFrom(result);
  1326. }
  1327. public override pbd::MessageDescriptor DescriptorForType {
  1328. get { return self::TestAllTypes.Types.OptionalGroup.Descriptor; }
  1329. }
  1330. public override self::TestAllTypes.Types.OptionalGroup DefaultInstanceForType {
  1331. get { return self::TestAllTypes.Types.OptionalGroup.DefaultInstance; }
  1332. }
  1333. public override self::TestAllTypes.Types.OptionalGroup BuildPartial() {
  1334. self::TestAllTypes.Types.OptionalGroup returnMe = result;
  1335. result = null;
  1336. return returnMe;
  1337. }
  1338. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  1339. return MergeFrom(data, extensionRegistry);
  1340. }
  1341. public override IBuilder MergeFrom(pb::IMessage other) {
  1342. if (other is self::TestAllTypes.Types.OptionalGroup) {
  1343. return MergeFrom((self::TestAllTypes.Types.OptionalGroup) other);
  1344. } else {
  1345. base.MergeFrom(other);
  1346. return this;
  1347. }
  1348. }
  1349. public override IBuilder<self::TestAllTypes.Types.OptionalGroup> MergeFrom(self::TestAllTypes.Types.OptionalGroup other) {
  1350. if (other == self::TestAllTypes.Types.OptionalGroup.DefaultInstance) return this;
  1351. if (other.HasA) {
  1352. A = other.A;
  1353. }
  1354. this.MergeUnknownFields(other.UnknownFields);
  1355. return this;
  1356. }
  1357. public override IBuilder<self::TestAllTypes.Types.OptionalGroup> MergeFrom(pb::CodedInputStream input) {
  1358. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1359. }
  1360. public override IBuilder<self::TestAllTypes.Types.OptionalGroup> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1361. pb::UnknownFieldSet.Builder unknownFields =
  1362. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1363. while (true) {
  1364. uint tag = input.ReadTag();
  1365. switch (tag) {
  1366. case 0:
  1367. this.UnknownFields = unknownFields.Build();
  1368. return this;
  1369. default: {
  1370. if (!ParseUnknownField(input, unknownFields,
  1371. extensionRegistry, tag)) {
  1372. this.UnknownFields = unknownFields.Build();
  1373. return this;
  1374. }
  1375. break;
  1376. }
  1377. case 136: {
  1378. A = input.ReadInt32();
  1379. break;
  1380. }
  1381. }
  1382. }
  1383. }
  1384. // optional int32 a = 17;
  1385. public bool HasA {
  1386. get { return result.HasA; }
  1387. }
  1388. public int A {
  1389. get { return result.A; }
  1390. set { SetA(value); }
  1391. }
  1392. public Builder SetA(int value) {
  1393. result.hasA = true;
  1394. result.a_ = value;
  1395. return this;
  1396. }
  1397. public Builder ClearA() {
  1398. result.hasA = false;
  1399. result.a_ = 0;
  1400. return this;
  1401. }
  1402. }
  1403. }
  1404. public sealed partial class RepeatedGroup : pb::GeneratedMessage<RepeatedGroup, RepeatedGroup.Builder> {
  1405. // Use RepeatedGroup.CreateBuilder() to construct.
  1406. private RepeatedGroup() {}
  1407. private static readonly RepeatedGroup defaultInstance = new RepeatedGroup();
  1408. public static RepeatedGroup DefaultInstance {
  1409. get { return defaultInstance; }
  1410. }
  1411. public override RepeatedGroup DefaultInstanceForType {
  1412. get { return defaultInstance; }
  1413. }
  1414. public static pbd::MessageDescriptor Descriptor {
  1415. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor; }
  1416. }
  1417. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  1418. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable; }
  1419. }
  1420. // optional int32 a = 47;
  1421. private bool hasA;
  1422. private int a_ = 0;
  1423. public bool HasA {
  1424. get { return hasA; }
  1425. }
  1426. public int A {
  1427. get { return a_; }
  1428. }
  1429. public override bool IsInitialized {
  1430. get {
  1431. return true;
  1432. }
  1433. }
  1434. public override void WriteTo(pb::CodedOutputStream output) {
  1435. if (HasA) {
  1436. output.WriteInt32(47, A);
  1437. }
  1438. UnknownFields.WriteTo(output);
  1439. }
  1440. private int memoizedSerializedSize = -1;
  1441. public override int SerializedSize {
  1442. get {
  1443. int size = memoizedSerializedSize;
  1444. if (size != -1) return size;
  1445. size = 0;
  1446. if (HasA) {
  1447. size += pb::CodedOutputStream.ComputeInt32Size(47, A);
  1448. }
  1449. size += UnknownFields.SerializedSize;
  1450. memoizedSerializedSize = size;
  1451. return size;
  1452. }
  1453. }
  1454. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(pb::ByteString data) {
  1455. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1456. }
  1457. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(pb::ByteString data,
  1458. pb::ExtensionRegistry extensionRegistry) {
  1459. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1460. .BuildParsed();
  1461. }
  1462. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(byte[] data) {
  1463. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1464. }
  1465. public static self::TestAllTypes.Types.RepeatedGroup parseFrom(byte[] data,
  1466. pb::ExtensionRegistry extensionRegistry) {
  1467. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1468. .BuildParsed();
  1469. }
  1470. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(global::System.IO.Stream input) {
  1471. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1472. }
  1473. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(
  1474. global::System.IO.Stream input,
  1475. pb::ExtensionRegistry extensionRegistry) {
  1476. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1477. .BuildParsed();
  1478. }
  1479. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(pb::CodedInputStream input) {
  1480. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1481. }
  1482. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(pb::CodedInputStream input,
  1483. pb::ExtensionRegistry extensionRegistry) {
  1484. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1485. .BuildParsed();
  1486. }
  1487. public static Builder CreateBuilder() { return new Builder(); }
  1488. public override IBuilder<self::TestAllTypes.Types.RepeatedGroup> CreateBuilderForType() { return new Builder(); }
  1489. public static Builder CreateBuilder(self::TestAllTypes.Types.RepeatedGroup prototype) {
  1490. return (Builder) new Builder().MergeFrom(prototype);
  1491. }
  1492. public sealed partial class Builder : pb::GeneratedBuilder<self::TestAllTypes.Types.RepeatedGroup, Builder> {
  1493. // Construct using self::TestAllTypes.Types.RepeatedGroup.CreateBuilder()
  1494. internal Builder() {}
  1495. self::TestAllTypes.Types.RepeatedGroup result = new self::TestAllTypes.Types.RepeatedGroup();
  1496. protected override self::TestAllTypes.Types.RepeatedGroup MessageBeingBuilt {
  1497. get { return result; }
  1498. }
  1499. public override IBuilder<self::TestAllTypes.Types.RepeatedGroup> Clear() {
  1500. result = new self::TestAllTypes.Types.RepeatedGroup();
  1501. return this;
  1502. }
  1503. public override IBuilder<self::TestAllTypes.Types.RepeatedGroup> Clone() {
  1504. return new Builder().MergeFrom(result);
  1505. }
  1506. public override pbd::MessageDescriptor DescriptorForType {
  1507. get { return self::TestAllTypes.Types.RepeatedGroup.Descriptor; }
  1508. }
  1509. public override self::TestAllTypes.Types.RepeatedGroup DefaultInstanceForType {
  1510. get { return self::TestAllTypes.Types.RepeatedGroup.DefaultInstance; }
  1511. }
  1512. public override self::TestAllTypes.Types.RepeatedGroup BuildPartial() {
  1513. self::TestAllTypes.Types.RepeatedGroup returnMe = result;
  1514. result = null;
  1515. return returnMe;
  1516. }
  1517. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  1518. return MergeFrom(data, extensionRegistry);
  1519. }
  1520. public override IBuilder MergeFrom(pb::IMessage other) {
  1521. if (other is self::TestAllTypes.Types.RepeatedGroup) {
  1522. return MergeFrom((self::TestAllTypes.Types.RepeatedGroup) other);
  1523. } else {
  1524. base.MergeFrom(other);
  1525. return this;
  1526. }
  1527. }
  1528. public override IBuilder<self::TestAllTypes.Types.RepeatedGroup> MergeFrom(self::TestAllTypes.Types.RepeatedGroup other) {
  1529. if (other == self::TestAllTypes.Types.RepeatedGroup.DefaultInstance) return this;
  1530. if (other.HasA) {
  1531. A = other.A;
  1532. }
  1533. this.MergeUnknownFields(other.UnknownFields);
  1534. return this;
  1535. }
  1536. public override IBuilder<self::TestAllTypes.Types.RepeatedGroup> MergeFrom(pb::CodedInputStream input) {
  1537. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1538. }
  1539. public override IBuilder<self::TestAllTypes.Types.RepeatedGroup> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1540. pb::UnknownFieldSet.Builder unknownFields =
  1541. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1542. while (true) {
  1543. uint tag = input.ReadTag();
  1544. switch (tag) {
  1545. case 0:
  1546. this.UnknownFields = unknownFields.Build();
  1547. return this;
  1548. default: {
  1549. if (!ParseUnknownField(input, unknownFields,
  1550. extensionRegistry, tag)) {
  1551. this.UnknownFields = unknownFields.Build();
  1552. return this;
  1553. }
  1554. break;
  1555. }
  1556. case 376: {
  1557. A = input.ReadInt32();
  1558. break;
  1559. }
  1560. }
  1561. }
  1562. }
  1563. // optional int32 a = 47;
  1564. public bool HasA {
  1565. get { return result.HasA; }
  1566. }
  1567. public int A {
  1568. get { return result.A; }
  1569. set { SetA(value); }
  1570. }
  1571. public Builder SetA(int value) {
  1572. result.hasA = true;
  1573. result.a_ = value;
  1574. return this;
  1575. }
  1576. public Builder ClearA() {
  1577. result.hasA = false;
  1578. result.a_ = 0;
  1579. return this;
  1580. }
  1581. }
  1582. }
  1583. }
  1584. #endregion
  1585. // optional int32 optional_int32 = 1;
  1586. private bool hasOptionalInt32;
  1587. private int optionalInt32_ = 0;
  1588. public bool HasOptionalInt32 {
  1589. get { return hasOptionalInt32; }
  1590. }
  1591. public int OptionalInt32 {
  1592. get { return optionalInt32_; }
  1593. }
  1594. // optional int64 optional_int64 = 2;
  1595. private bool hasOptionalInt64;
  1596. private long optionalInt64_ = 0L;
  1597. public bool HasOptionalInt64 {
  1598. get { return hasOptionalInt64; }
  1599. }
  1600. public long OptionalInt64 {
  1601. get { return optionalInt64_; }
  1602. }
  1603. // optional uint32 optional_uint32 = 3;
  1604. private bool hasOptionalUint32;
  1605. private uint optionalUint32_ = 0;
  1606. public bool HasOptionalUint32 {
  1607. get { return hasOptionalUint32; }
  1608. }
  1609. public uint OptionalUint32 {
  1610. get { return optionalUint32_; }
  1611. }
  1612. // optional uint64 optional_uint64 = 4;
  1613. private bool hasOptionalUint64;
  1614. private ulong optionalUint64_ = 0UL;
  1615. public bool HasOptionalUint64 {
  1616. get { return hasOptionalUint64; }
  1617. }
  1618. public ulong OptionalUint64 {
  1619. get { return optionalUint64_; }
  1620. }
  1621. // optional sint32 optional_sint32 = 5;
  1622. private bool hasOptionalSint32;
  1623. private int optionalSint32_ = 0;
  1624. public bool HasOptionalSint32 {
  1625. get { return hasOptionalSint32; }
  1626. }
  1627. public int OptionalSint32 {
  1628. get { return optionalSint32_; }
  1629. }
  1630. // optional sint64 optional_sint64 = 6;
  1631. private bool hasOptionalSint64;
  1632. private long optionalSint64_ = 0L;
  1633. public bool HasOptionalSint64 {
  1634. get { return hasOptionalSint64; }
  1635. }
  1636. public long OptionalSint64 {
  1637. get { return optionalSint64_; }
  1638. }
  1639. // optional fixed32 optional_fixed32 = 7;
  1640. private bool hasOptionalFixed32;
  1641. private uint optionalFixed32_ = 0;
  1642. public bool HasOptionalFixed32 {
  1643. get { return hasOptionalFixed32; }
  1644. }
  1645. public uint OptionalFixed32 {
  1646. get { return optionalFixed32_; }
  1647. }
  1648. // optional fixed64 optional_fixed64 = 8;
  1649. private bool hasOptionalFixed64;
  1650. private ulong optionalFixed64_ = 0UL;
  1651. public bool HasOptionalFixed64 {
  1652. get { return hasOptionalFixed64; }
  1653. }
  1654. public ulong OptionalFixed64 {
  1655. get { return optionalFixed64_; }
  1656. }
  1657. // optional sfixed32 optional_sfixed32 = 9;
  1658. private bool hasOptionalSfixed32;
  1659. private int optionalSfixed32_ = 0;
  1660. public bool HasOptionalSfixed32 {
  1661. get { return hasOptionalSfixed32; }
  1662. }
  1663. public int OptionalSfixed32 {
  1664. get { return optionalSfixed32_; }
  1665. }
  1666. // optional sfixed64 optional_sfixed64 = 10;
  1667. private bool hasOptionalSfixed64;
  1668. private long optionalSfixed64_ = 0L;
  1669. public bool HasOptionalSfixed64 {
  1670. get { return hasOptionalSfixed64; }
  1671. }
  1672. public long OptionalSfixed64 {
  1673. get { return optionalSfixed64_; }
  1674. }
  1675. // optional float optional_float = 11;
  1676. private bool hasOptionalFloat;
  1677. private float optionalFloat_ = 0F;
  1678. public bool HasOptionalFloat {
  1679. get { return hasOptionalFloat; }
  1680. }
  1681. public float OptionalFloat {
  1682. get { return optionalFloat_; }
  1683. }
  1684. // optional double optional_double = 12;
  1685. private bool hasOptionalDouble;
  1686. private double optionalDouble_ = 0D;
  1687. public bool HasOptionalDouble {
  1688. get { return hasOptionalDouble; }
  1689. }
  1690. public double OptionalDouble {
  1691. get { return optionalDouble_; }
  1692. }
  1693. // optional bool optional_bool = 13;
  1694. private bool hasOptionalBool;
  1695. private bool optionalBool_ = false;
  1696. public bool HasOptionalBool {
  1697. get { return hasOptionalBool; }
  1698. }
  1699. public bool OptionalBool {
  1700. get { return optionalBool_; }
  1701. }
  1702. // optional string optional_string = 14;
  1703. private bool hasOptionalString;
  1704. private string optionalString_ = "";
  1705. public bool HasOptionalString {
  1706. get { return hasOptionalString; }
  1707. }
  1708. public string OptionalString {
  1709. get { return optionalString_; }
  1710. }
  1711. // optional bytes optional_bytes = 15;
  1712. private bool hasOptionalBytes;
  1713. private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
  1714. public bool HasOptionalBytes {
  1715. get { return hasOptionalBytes; }
  1716. }
  1717. public pb::ByteString OptionalBytes {
  1718. get { return optionalBytes_; }
  1719. }
  1720. // optional group OptionalGroup = 16 {
  1721. private bool hasOptionalGroup;
  1722. private self::TestAllTypes.Types.OptionalGroup optionalGroup_ = self::TestAllTypes.Types.OptionalGroup.DefaultInstance;
  1723. public bool HasOptionalGroup {
  1724. get { return hasOptionalGroup; }
  1725. }
  1726. public self::TestAllTypes.Types.OptionalGroup OptionalGroup {
  1727. get { return optionalGroup_; }
  1728. }
  1729. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  1730. private bool hasOptionalNestedMessage;
  1731. private self::TestAllTypes.Types.NestedMessage optionalNestedMessage_ = self::TestAllTypes.Types.NestedMessage.DefaultInstance;
  1732. public bool HasOptionalNestedMessage {
  1733. get { return hasOptionalNestedMessage; }
  1734. }
  1735. public self::TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  1736. get { return optionalNestedMessage_; }
  1737. }
  1738. // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
  1739. private bool hasOptionalForeignMessage;
  1740. private self::ForeignMessage optionalForeignMessage_ = self::ForeignMessage.DefaultInstance;
  1741. public bool HasOptionalForeignMessage {
  1742. get { return hasOptionalForeignMessage; }
  1743. }
  1744. public self::ForeignMessage OptionalForeignMessage {
  1745. get { return optionalForeignMessage_; }
  1746. }
  1747. // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  1748. private bool hasOptionalImportMessage;
  1749. private self::ImportMessage optionalImportMessage_ = self::ImportMessage.DefaultInstance;
  1750. public bool HasOptionalImportMessage {
  1751. get { return hasOptionalImportMessage; }
  1752. }
  1753. public self::ImportMessage OptionalImportMessage {
  1754. get { return optionalImportMessage_; }
  1755. }
  1756. // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  1757. private bool hasOptionalNestedEnum;
  1758. private self::TestAllTypes.Types.NestedEnum optionalNestedEnum_ = self::TestAllTypes.Types.NestedEnum.FOO;
  1759. public bool HasOptionalNestedEnum {
  1760. get { return hasOptionalNestedEnum; }
  1761. }
  1762. public self::TestAllTypes.Types.NestedEnum OptionalNestedEnum { get { return optionalNestedEnum_; }}
  1763. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  1764. private bool hasOptionalForeignEnum;
  1765. private self::ForeignEnum optionalForeignEnum_ = self::ForeignEnum.FOREIGN_FOO;
  1766. public bool HasOptionalForeignEnum {
  1767. get { return hasOptionalForeignEnum; }
  1768. }
  1769. public self::ForeignEnum OptionalForeignEnum { get { return optionalForeignEnum_; }}
  1770. // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
  1771. private bool hasOptionalImportEnum;
  1772. private self::ImportEnum optionalImportEnum_ = self::ImportEnum.IMPORT_FOO;
  1773. public bool HasOptionalImportEnum {
  1774. get { return hasOptionalImportEnum; }
  1775. }
  1776. public self::ImportEnum OptionalImportEnum { get { return optionalImportEnum_; }}
  1777. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  1778. private bool hasOptionalStringPiece;
  1779. private string optionalStringPiece_ = "";
  1780. public bool HasOptionalStringPiece {
  1781. get { return hasOptionalStringPiece; }
  1782. }
  1783. public string OptionalStringPiece {
  1784. get { return optionalStringPiece_; }
  1785. }
  1786. // optional string optional_cord = 25 [ctype = CORD];
  1787. private bool hasOptionalCord;
  1788. private string optionalCord_ = "";
  1789. public bool HasOptionalCord {
  1790. get { return hasOptionalCord; }
  1791. }
  1792. public string OptionalCord {
  1793. get { return optionalCord_; }
  1794. }
  1795. // repeated int32 repeated_int32 = 31;
  1796. private scg::IList<int> repeatedInt32_ = pbc::Lists<int>.Empty;
  1797. public scg::IList<int> RepeatedInt32List {
  1798. get { return repeatedInt32_; }
  1799. }
  1800. public int RepeatedInt32Count {
  1801. get { return repeatedInt32_.Count; }
  1802. }
  1803. public int GetRepeatedInt32(int index) {
  1804. return repeatedInt32_[index];
  1805. }
  1806. // repeated int64 repeated_int64 = 32;
  1807. private scg::IList<long> repeatedInt64_ = pbc::Lists<long>.Empty;
  1808. public scg::IList<long> RepeatedInt64List {
  1809. get { return repeatedInt64_; }
  1810. }
  1811. public int RepeatedInt64Count {
  1812. get { return repeatedInt64_.Count; }
  1813. }
  1814. public long GetRepeatedInt64(int index) {
  1815. return repeatedInt64_[index];
  1816. }
  1817. // repeated uint32 repeated_uint32 = 33;
  1818. private scg::IList<uint> repeatedUint32_ = pbc::Lists<uint>.Empty;
  1819. public scg::IList<uint> RepeatedUint32List {
  1820. get { return repeatedUint32_; }
  1821. }
  1822. public int RepeatedUint32Count {
  1823. get { return repeatedUint32_.Count; }
  1824. }
  1825. public uint GetRepeatedUint32(int index) {
  1826. return repeatedUint32_[index];
  1827. }
  1828. // repeated uint64 repeated_uint64 = 34;
  1829. private scg::IList<ulong> repeatedUint64_ = pbc::Lists<ulong>.Empty;
  1830. public scg::IList<ulong> RepeatedUint64List {
  1831. get { return repeatedUint64_; }
  1832. }
  1833. public int RepeatedUint64Count {
  1834. get { return repeatedUint64_.Count; }
  1835. }
  1836. public ulong GetRepeatedUint64(int index) {
  1837. return repeatedUint64_[index];
  1838. }
  1839. // repeated sint32 repeated_sint32 = 35;
  1840. private scg::IList<int> repeatedSint32_ = pbc::Lists<int>.Empty;
  1841. public scg::IList<int> RepeatedSint32List {
  1842. get { return repeatedSint32_; }
  1843. }
  1844. public int RepeatedSint32Count {
  1845. get { return repeatedSint32_.Count; }
  1846. }
  1847. public int GetRepeatedSint32(int index) {
  1848. return repeatedSint32_[index];
  1849. }
  1850. // repeated sint64 repeated_sint64 = 36;
  1851. private scg::IList<long> repeatedSint64_ = pbc::Lists<long>.Empty;
  1852. public scg::IList<long> RepeatedSint64List {
  1853. get { return repeatedSint64_; }
  1854. }
  1855. public int RepeatedSint64Count {
  1856. get { return repeatedSint64_.Count; }
  1857. }
  1858. public long GetRepeatedSint64(int index) {
  1859. return repeatedSint64_[index];
  1860. }
  1861. // repeated fixed32 repeated_fixed32 = 37;
  1862. private scg::IList<uint> repeatedFixed32_ = pbc::Lists<uint>.Empty;
  1863. public scg::IList<uint> RepeatedFixed32List {
  1864. get { return repeatedFixed32_; }
  1865. }
  1866. public int RepeatedFixed32Count {
  1867. get { return repeatedFixed32_.Count; }
  1868. }
  1869. public uint GetRepeatedFixed32(int index) {
  1870. return repeatedFixed32_[index];
  1871. }
  1872. // repeated fixed64 repeated_fixed64 = 38;
  1873. private scg::IList<ulong> repeatedFixed64_ = pbc::Lists<ulong>.Empty;
  1874. public scg::IList<ulong> RepeatedFixed64List {
  1875. get { return repeatedFixed64_; }
  1876. }
  1877. public int RepeatedFixed64Count {
  1878. get { return repeatedFixed64_.Count; }
  1879. }
  1880. public ulong GetRepeatedFixed64(int index) {
  1881. return repeatedFixed64_[index];
  1882. }
  1883. // repeated sfixed32 repeated_sfixed32 = 39;
  1884. private scg::IList<int> repeatedSfixed32_ = pbc::Lists<int>.Empty;
  1885. public scg::IList<int> RepeatedSfixed32List {
  1886. get { return repeatedSfixed32_; }
  1887. }
  1888. public int RepeatedSfixed32Count {
  1889. get { return repeatedSfixed32_.Count; }
  1890. }
  1891. public int GetRepeatedSfixed32(int index) {
  1892. return repeatedSfixed32_[index];
  1893. }
  1894. // repeated sfixed64 repeated_sfixed64 = 40;
  1895. private scg::IList<long> repeatedSfixed64_ = pbc::Lists<long>.Empty;
  1896. public scg::IList<long> RepeatedSfixed64List {
  1897. get { return repeatedSfixed64_; }
  1898. }
  1899. public int RepeatedSfixed64Count {
  1900. get { return repeatedSfixed64_.Count; }
  1901. }
  1902. public long GetRepeatedSfixed64(int index) {
  1903. return repeatedSfixed64_[index];
  1904. }
  1905. // repeated float repeated_float = 41;
  1906. private scg::IList<float> repeatedFloat_ = pbc::Lists<float>.Empty;
  1907. public scg::IList<float> RepeatedFloatList {
  1908. get { return repeatedFloat_; }
  1909. }
  1910. public int RepeatedFloatCount {
  1911. get { return repeatedFloat_.Count; }
  1912. }
  1913. public float GetRepeatedFloat(int index) {
  1914. return repeatedFloat_[index];
  1915. }
  1916. // repeated double repeated_double = 42;
  1917. private scg::IList<double> repeatedDouble_ = pbc::Lists<double>.Empty;
  1918. public scg::IList<double> RepeatedDoubleList {
  1919. get { return repeatedDouble_; }
  1920. }
  1921. public int RepeatedDoubleCount {
  1922. get { return repeatedDouble_.Count; }
  1923. }
  1924. public double GetRepeatedDouble(int index) {
  1925. return repeatedDouble_[index];
  1926. }
  1927. // repeated bool repeated_bool = 43;
  1928. private scg::IList<bool> repeatedBool_ = pbc::Lists<bool>.Empty;
  1929. public scg::IList<bool> RepeatedBoolList {
  1930. get { return repeatedBool_; }
  1931. }
  1932. public int RepeatedBoolCount {
  1933. get { return repeatedBool_.Count; }
  1934. }
  1935. public bool GetRepeatedBool(int index) {
  1936. return repeatedBool_[index];
  1937. }
  1938. // repeated string repeated_string = 44;
  1939. private scg::IList<string> repeatedString_ = pbc::Lists<string>.Empty;
  1940. public scg::IList<string> RepeatedStringList {
  1941. get { return repeatedString_; }
  1942. }
  1943. public int RepeatedStringCount {
  1944. get { return repeatedString_.Count; }
  1945. }
  1946. public string GetRepeatedString(int index) {
  1947. return repeatedString_[index];
  1948. }
  1949. // repeated bytes repeated_bytes = 45;
  1950. private scg::IList<pb::ByteString> repeatedBytes_ = pbc::Lists<pb::ByteString>.Empty;
  1951. public scg::IList<pb::ByteString> RepeatedBytesList {
  1952. get { return repeatedBytes_; }
  1953. }
  1954. public int RepeatedBytesCount {
  1955. get { return repeatedBytes_.Count; }
  1956. }
  1957. public pb::ByteString GetRepeatedBytes(int index) {
  1958. return repeatedBytes_[index];
  1959. }
  1960. // repeated group RepeatedGroup = 46 {
  1961. private scg::IList<self::TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty;
  1962. public scg::IList<self::TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
  1963. get { return repeatedGroup_; }
  1964. }
  1965. public int RepeatedGroupCount
  1966. { get { return repeatedGroup_.Count; }
  1967. }
  1968. public self::TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
  1969. return repeatedGroup_ [index];
  1970. }
  1971. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  1972. private scg::IList<self::TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty;
  1973. public scg::IList<self::TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
  1974. get { return repeatedNestedMessage_; }
  1975. }
  1976. public int RepeatedNestedMessageCount
  1977. { get { return repeatedNestedMessage_.Count; }
  1978. }
  1979. public self::TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
  1980. return repeatedNestedMessage_ [index];
  1981. }
  1982. // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
  1983. private scg::IList<self::ForeignMessage> repeatedForeignMessage_ = pbc::Lists<self::ForeignMessage>.Empty;
  1984. public scg::IList<self::ForeignMessage> RepeatedForeignMessageList {
  1985. get { return repeatedForeignMessage_; }
  1986. }
  1987. public int RepeatedForeignMessageCount
  1988. { get { return repeatedForeignMessage_.Count; }
  1989. }
  1990. public self::ForeignMessage GetRepeatedForeignMessage(int index) {
  1991. return repeatedForeignMessage_ [index];
  1992. }
  1993. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  1994. private scg::IList<self::ImportMessage> repeatedImportMessage_ = pbc::Lists<self::ImportMessage>.Empty;
  1995. public scg::IList<self::ImportMessage> RepeatedImportMessageList {
  1996. get { return repeatedImportMessage_; }
  1997. }
  1998. public int RepeatedImportMessageCount
  1999. { get { return repeatedImportMessage_.Count; }
  2000. }
  2001. public self::ImportMessage GetRepeatedImportMessage(int index) {
  2002. return repeatedImportMessage_ [index];
  2003. }
  2004. // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  2005. private scg::IList<self::TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new scg::List<self::TestAllTypes.Types.NestedEnum> ();
  2006. public scg.IList<self::TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
  2007. get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
  2008. }
  2009. public int RepeatedNestedEnumCount {
  2010. get { return repeatedNestedEnum_.Count; }
  2011. }
  2012. public self::TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
  2013. return repeatedNestedEnum_[index];
  2014. }
  2015. // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
  2016. private scg::IList<self::ForeignEnum> repeatedForeignEnum_ = new scg::List<self::ForeignEnum> ();
  2017. public scg.IList<self::ForeignEnum> RepeatedForeignEnumList {
  2018. get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
  2019. }
  2020. public int RepeatedForeignEnumCount {
  2021. get { return repeatedForeignEnum_.Count; }
  2022. }
  2023. public self::ForeignEnum GetRepeatedForeignEnum(int index) {
  2024. return repeatedForeignEnum_[index];
  2025. }
  2026. // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
  2027. private scg::IList<self::ImportEnum> repeatedImportEnum_ = new scg::List<self::ImportEnum> ();
  2028. public scg.IList<self::ImportEnum> RepeatedImportEnumList {
  2029. get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
  2030. }
  2031. public int RepeatedImportEnumCount {
  2032. get { return repeatedImportEnum_.Count; }
  2033. }
  2034. public self::ImportEnum GetRepeatedImportEnum(int index) {
  2035. return repeatedImportEnum_[index];
  2036. }
  2037. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  2038. private scg::IList<string> repeatedStringPiece_ = pbc::Lists<string>.Empty;
  2039. public scg::IList<string> RepeatedStringPieceList {
  2040. get { return repeatedStringPiece_; }
  2041. }
  2042. public int RepeatedStringPieceCount {
  2043. get { return repeatedStringPiece_.Count; }
  2044. }
  2045. public string GetRepeatedStringPiece(int index) {
  2046. return repeatedStringPiece_[index];
  2047. }
  2048. // repeated string repeated_cord = 55 [ctype = CORD];
  2049. private scg::IList<string> repeatedCord_ = pbc::Lists<string>.Empty;
  2050. public scg::IList<string> RepeatedCordList {
  2051. get { return repeatedCord_; }
  2052. }
  2053. public int RepeatedCordCount {
  2054. get { return repeatedCord_.Count; }
  2055. }
  2056. public string GetRepeatedCord(int index) {
  2057. return repeatedCord_[index];
  2058. }
  2059. // optional int32 default_int32 = 61 [default = 41];
  2060. private bool hasDefaultInt32;
  2061. private int defaultInt32_ = 41;
  2062. public bool HasDefaultInt32 {
  2063. get { return hasDefaultInt32; }
  2064. }
  2065. public int DefaultInt32 {
  2066. get { return defaultInt32_; }
  2067. }
  2068. // optional int64 default_int64 = 62 [default = 42];
  2069. private bool hasDefaultInt64;
  2070. private long defaultInt64_ = 42L;
  2071. public bool HasDefaultInt64 {
  2072. get { return hasDefaultInt64; }
  2073. }
  2074. public long DefaultInt64 {
  2075. get { return defaultInt64_; }
  2076. }
  2077. // optional uint32 default_uint32 = 63 [default = 43];
  2078. private bool hasDefaultUint32;
  2079. private uint defaultUint32_ = 43;
  2080. public bool HasDefaultUint32 {
  2081. get { return hasDefaultUint32; }
  2082. }
  2083. public uint DefaultUint32 {
  2084. get { return defaultUint32_; }
  2085. }
  2086. // optional uint64 default_uint64 = 64 [default = 44];
  2087. private bool hasDefaultUint64;
  2088. private ulong defaultUint64_ = 44UL;
  2089. public bool HasDefaultUint64 {
  2090. get { return hasDefaultUint64; }
  2091. }
  2092. public ulong DefaultUint64 {
  2093. get { return defaultUint64_; }
  2094. }
  2095. // optional sint32 default_sint32 = 65 [default = -45];
  2096. private bool hasDefaultSint32;
  2097. private int defaultSint32_ = -45;
  2098. public bool HasDefaultSint32 {
  2099. get { return hasDefaultSint32; }
  2100. }
  2101. public int DefaultSint32 {
  2102. get { return defaultSint32_; }
  2103. }
  2104. // optional sint64 default_sint64 = 66 [default = 46];
  2105. private bool hasDefaultSint64;
  2106. private long defaultSint64_ = 46L;
  2107. public bool HasDefaultSint64 {
  2108. get { return hasDefaultSint64; }
  2109. }
  2110. public long DefaultSint64 {
  2111. get { return defaultSint64_; }
  2112. }
  2113. // optional fixed32 default_fixed32 = 67 [default = 47];
  2114. private bool hasDefaultFixed32;
  2115. private uint defaultFixed32_ = 47;
  2116. public bool HasDefaultFixed32 {
  2117. get { return hasDefaultFixed32; }
  2118. }
  2119. public uint DefaultFixed32 {
  2120. get { return defaultFixed32_; }
  2121. }
  2122. // optional fixed64 default_fixed64 = 68 [default = 48];
  2123. private bool hasDefaultFixed64;
  2124. private ulong defaultFixed64_ = 48UL;
  2125. public bool HasDefaultFixed64 {
  2126. get { return hasDefaultFixed64; }
  2127. }
  2128. public ulong DefaultFixed64 {
  2129. get { return defaultFixed64_; }
  2130. }
  2131. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  2132. private bool hasDefaultSfixed32;
  2133. private int defaultSfixed32_ = 49;
  2134. public bool HasDefaultSfixed32 {
  2135. get { return hasDefaultSfixed32; }
  2136. }
  2137. public int DefaultSfixed32 {
  2138. get { return defaultSfixed32_; }
  2139. }
  2140. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  2141. private bool hasDefaultSfixed64;
  2142. private long defaultSfixed64_ = -50L;
  2143. public bool HasDefaultSfixed64 {
  2144. get { return hasDefaultSfixed64; }
  2145. }
  2146. public long DefaultSfixed64 {
  2147. get { return defaultSfixed64_; }
  2148. }
  2149. // optional float default_float = 71 [default = 51.5];
  2150. private bool hasDefaultFloat;
  2151. private float defaultFloat_ = 51.5F;
  2152. public bool HasDefaultFloat {
  2153. get { return hasDefaultFloat; }
  2154. }
  2155. public float DefaultFloat {
  2156. get { return defaultFloat_; }
  2157. }
  2158. // optional double default_double = 72 [default = 52000];
  2159. private bool hasDefaultDouble;
  2160. private double defaultDouble_ = 52000D;
  2161. public bool HasDefaultDouble {
  2162. get { return hasDefaultDouble; }
  2163. }
  2164. public double DefaultDouble {
  2165. get { return defaultDouble_; }
  2166. }
  2167. // optional bool default_bool = 73 [default = true];
  2168. private bool hasDefaultBool;
  2169. private bool defaultBool_ = true;
  2170. public bool HasDefaultBool {
  2171. get { return hasDefaultBool; }
  2172. }
  2173. public bool DefaultBool {
  2174. get { return defaultBool_; }
  2175. }
  2176. // optional string default_string = 74 [default = "hello"];
  2177. private bool hasDefaultString;
  2178. private string defaultString_ = "hello";
  2179. public bool HasDefaultString {
  2180. get { return hasDefaultString; }
  2181. }
  2182. public string DefaultString {
  2183. get { return defaultString_; }
  2184. }
  2185. // optional bytes default_bytes = 75 [default = "world"];
  2186. private bool hasDefaultBytes;
  2187. private pb::ByteString defaultBytes_ = ((pb::ByteString) self::TestAllTypes.Descriptor.Fields[62].DefaultValue);
  2188. public bool HasDefaultBytes {
  2189. get { return hasDefaultBytes; }
  2190. }
  2191. public pb::ByteString DefaultBytes {
  2192. get { return defaultBytes_; }
  2193. }
  2194. // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
  2195. private bool hasDefaultNestedEnum;
  2196. private self::TestAllTypes.Types.NestedEnum defaultNestedEnum_ = self::TestAllTypes.Types.NestedEnum.BAR;
  2197. public bool HasDefaultNestedEnum {
  2198. get { return hasDefaultNestedEnum; }
  2199. }
  2200. public self::TestAllTypes.Types.NestedEnum DefaultNestedEnum { get { return defaultNestedEnum_; }}
  2201. // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
  2202. private bool hasDefaultForeignEnum;
  2203. private self::ForeignEnum defaultForeignEnum_ = self::ForeignEnum.FOREIGN_BAR;
  2204. public bool HasDefaultForeignEnum {
  2205. get { return hasDefaultForeignEnum; }
  2206. }
  2207. public self::ForeignEnum DefaultForeignEnum { get { return defaultForeignEnum_; }}
  2208. // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
  2209. private bool hasDefaultImportEnum;
  2210. private self::ImportEnum defaultImportEnum_ = self::ImportEnum.IMPORT_BAR;
  2211. public bool HasDefaultImportEnum {
  2212. get { return hasDefaultImportEnum; }
  2213. }
  2214. public self::ImportEnum DefaultImportEnum { get { return defaultImportEnum_; }}
  2215. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  2216. private bool hasDefaultStringPiece;
  2217. private string defaultStringPiece_ = "abc";
  2218. public bool HasDefaultStringPiece {
  2219. get { return hasDefaultStringPiece; }
  2220. }
  2221. public string DefaultStringPiece {
  2222. get { return defaultStringPiece_; }
  2223. }
  2224. // optional string default_cord = 85 [default = "123", ctype = CORD];
  2225. private bool hasDefaultCord;
  2226. private string defaultCord_ = "123";
  2227. public bool HasDefaultCord {
  2228. get { return hasDefaultCord; }
  2229. }
  2230. public string DefaultCord {
  2231. get { return defaultCord_; }
  2232. }
  2233. public override bool IsInitialized {
  2234. get {
  2235. return true;
  2236. }
  2237. }
  2238. public override void WriteTo(pb::CodedOutputStream output) {
  2239. if (HasOptionalInt32) {
  2240. output.WriteInt32(1, OptionalInt32);
  2241. }
  2242. if (HasOptionalInt64) {
  2243. output.WriteInt64(2, OptionalInt64);
  2244. }
  2245. if (HasOptionalUint32) {
  2246. output.WriteUInt32(3, OptionalUint32);
  2247. }
  2248. if (HasOptionalUint64) {
  2249. output.WriteUInt64(4, OptionalUint64);
  2250. }
  2251. if (HasOptionalSint32) {
  2252. output.WriteSInt32(5, OptionalSint32);
  2253. }
  2254. if (HasOptionalSint64) {
  2255. output.WriteSInt64(6, OptionalSint64);
  2256. }
  2257. if (HasOptionalFixed32) {
  2258. output.WriteFixed32(7, OptionalFixed32);
  2259. }
  2260. if (HasOptionalFixed64) {
  2261. output.WriteFixed64(8, OptionalFixed64);
  2262. }
  2263. if (HasOptionalSfixed32) {
  2264. output.WriteSFixed32(9, OptionalSfixed32);
  2265. }
  2266. if (HasOptionalSfixed64) {
  2267. output.WriteSFixed64(10, OptionalSfixed64);
  2268. }
  2269. if (HasOptionalFloat) {
  2270. output.WriteFloat(11, OptionalFloat);
  2271. }
  2272. if (HasOptionalDouble) {
  2273. output.WriteDouble(12, OptionalDouble);
  2274. }
  2275. if (HasOptionalBool) {
  2276. output.WriteBool(13, OptionalBool);
  2277. }
  2278. if (HasOptionalString) {
  2279. output.WriteString(14, OptionalString);
  2280. }
  2281. if (HasOptionalBytes) {
  2282. output.WriteBytes(15, OptionalBytes);
  2283. }
  2284. if (HasOptionalGroup) {
  2285. output.WriteGroup(16, OptionalGroup);
  2286. }
  2287. if (HasOptionalNestedMessage) {
  2288. output.WriteMessage(18, OptionalNestedMessage);
  2289. }
  2290. if (HasOptionalForeignMessage) {
  2291. output.WriteMessage(19, OptionalForeignMessage);
  2292. }
  2293. if (HasOptionalImportMessage) {
  2294. output.WriteMessage(20, OptionalImportMessage);
  2295. }
  2296. if (HasOptionalNestedEnum) {
  2297. output.WriteEnum(21, (int) OptionalNestedEnum);
  2298. }
  2299. if (HasOptionalForeignEnum) {
  2300. output.WriteEnum(22, (int) OptionalForeignEnum);
  2301. }
  2302. if (HasOptionalImportEnum) {
  2303. output.WriteEnum(23, (int) OptionalImportEnum);
  2304. }
  2305. if (HasOptionalStringPiece) {
  2306. output.WriteString(24, OptionalStringPiece);
  2307. }
  2308. if (HasOptionalCord) {
  2309. output.WriteString(25, OptionalCord);
  2310. }
  2311. foreach (int element in RepeatedInt32List) {
  2312. output.WriteInt32(31, element);
  2313. }
  2314. foreach (long element in RepeatedInt64List) {
  2315. output.WriteInt64(32, element);
  2316. }
  2317. foreach (uint element in RepeatedUint32List) {
  2318. output.WriteUInt32(33, element);
  2319. }
  2320. foreach (ulong element in RepeatedUint64List) {
  2321. output.WriteUInt64(34, element);
  2322. }
  2323. foreach (int element in RepeatedSint32List) {
  2324. output.WriteSInt32(35, element);
  2325. }
  2326. foreach (long element in RepeatedSint64List) {
  2327. output.WriteSInt64(36, element);
  2328. }
  2329. foreach (uint element in RepeatedFixed32List) {
  2330. output.WriteFixed32(37, element);
  2331. }
  2332. foreach (ulong element in RepeatedFixed64List) {
  2333. output.WriteFixed64(38, element);
  2334. }
  2335. foreach (int element in RepeatedSfixed32List) {
  2336. output.WriteSFixed32(39, element);
  2337. }
  2338. foreach (long element in RepeatedSfixed64List) {
  2339. output.WriteSFixed64(40, element);
  2340. }
  2341. foreach (float element in RepeatedFloatList) {
  2342. output.WriteFloat(41, element);
  2343. }
  2344. foreach (double element in RepeatedDoubleList) {
  2345. output.WriteDouble(42, element);
  2346. }
  2347. foreach (bool element in RepeatedBoolList) {
  2348. output.WriteBool(43, element);
  2349. }
  2350. foreach (string element in RepeatedStringList) {
  2351. output.WriteString(44, element);
  2352. }
  2353. foreach (pb::ByteString element in RepeatedBytesList) {
  2354. output.WriteBytes(45, element);
  2355. }
  2356. foreach (self::TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
  2357. output.WriteGroup(46, element);
  2358. }
  2359. foreach (self::TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
  2360. output.WriteMessage(48, element);
  2361. }
  2362. foreach (self::ForeignMessage element in RepeatedForeignMessageList) {
  2363. output.WriteMessage(49, element);
  2364. }
  2365. foreach (self::ImportMessage element in RepeatedImportMessageList) {
  2366. output.WriteMessage(50, element);
  2367. }
  2368. foreach (self::TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) {
  2369. output.WriteEnum(51, (int) element);
  2370. }
  2371. foreach (self::ForeignEnum element in RepeatedForeignEnumList) {
  2372. output.WriteEnum(52, (int) element);
  2373. }
  2374. foreach (self::ImportEnum element in RepeatedImportEnumList) {
  2375. output.WriteEnum(53, (int) element);
  2376. }
  2377. foreach (string element in RepeatedStringPieceList) {
  2378. output.WriteString(54, element);
  2379. }
  2380. foreach (string element in RepeatedCordList) {
  2381. output.WriteString(55, element);
  2382. }
  2383. if (HasDefaultInt32) {
  2384. output.WriteInt32(61, DefaultInt32);
  2385. }
  2386. if (HasDefaultInt64) {
  2387. output.WriteInt64(62, DefaultInt64);
  2388. }
  2389. if (HasDefaultUint32) {
  2390. output.WriteUInt32(63, DefaultUint32);
  2391. }
  2392. if (HasDefaultUint64) {
  2393. output.WriteUInt64(64, DefaultUint64);
  2394. }
  2395. if (HasDefaultSint32) {
  2396. output.WriteSInt32(65, DefaultSint32);
  2397. }
  2398. if (HasDefaultSint64) {
  2399. output.WriteSInt64(66, DefaultSint64);
  2400. }
  2401. if (HasDefaultFixed32) {
  2402. output.WriteFixed32(67, DefaultFixed32);
  2403. }
  2404. if (HasDefaultFixed64) {
  2405. output.WriteFixed64(68, DefaultFixed64);
  2406. }
  2407. if (HasDefaultSfixed32) {
  2408. output.WriteSFixed32(69, DefaultSfixed32);
  2409. }
  2410. if (HasDefaultSfixed64) {
  2411. output.WriteSFixed64(70, DefaultSfixed64);
  2412. }
  2413. if (HasDefaultFloat) {
  2414. output.WriteFloat(71, DefaultFloat);
  2415. }
  2416. if (HasDefaultDouble) {
  2417. output.WriteDouble(72, DefaultDouble);
  2418. }
  2419. if (HasDefaultBool) {
  2420. output.WriteBool(73, DefaultBool);
  2421. }
  2422. if (HasDefaultString) {
  2423. output.WriteString(74, DefaultString);
  2424. }
  2425. if (HasDefaultBytes) {
  2426. output.WriteBytes(75, DefaultBytes);
  2427. }
  2428. if (HasDefaultNestedEnum) {
  2429. output.WriteEnum(81, (int) DefaultNestedEnum);
  2430. }
  2431. if (HasDefaultForeignEnum) {
  2432. output.WriteEnum(82, (int) DefaultForeignEnum);
  2433. }
  2434. if (HasDefaultImportEnum) {
  2435. output.WriteEnum(83, (int) DefaultImportEnum);
  2436. }
  2437. if (HasDefaultStringPiece) {
  2438. output.WriteString(84, DefaultStringPiece);
  2439. }
  2440. if (HasDefaultCord) {
  2441. output.WriteString(85, DefaultCord);
  2442. }
  2443. UnknownFields.WriteTo(output);
  2444. }
  2445. private int memoizedSerializedSize = -1;
  2446. public override int SerializedSize {
  2447. get {
  2448. int size = memoizedSerializedSize;
  2449. if (size != -1) return size;
  2450. size = 0;
  2451. if (HasOptionalInt32) {
  2452. size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32);
  2453. }
  2454. if (HasOptionalInt64) {
  2455. size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64);
  2456. }
  2457. if (HasOptionalUint32) {
  2458. size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32);
  2459. }
  2460. if (HasOptionalUint64) {
  2461. size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64);
  2462. }
  2463. if (HasOptionalSint32) {
  2464. size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32);
  2465. }
  2466. if (HasOptionalSint64) {
  2467. size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64);
  2468. }
  2469. if (HasOptionalFixed32) {
  2470. size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32);
  2471. }
  2472. if (HasOptionalFixed64) {
  2473. size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64);
  2474. }
  2475. if (HasOptionalSfixed32) {
  2476. size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32);
  2477. }
  2478. if (HasOptionalSfixed64) {
  2479. size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64);
  2480. }
  2481. if (HasOptionalFloat) {
  2482. size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat);
  2483. }
  2484. if (HasOptionalDouble) {
  2485. size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble);
  2486. }
  2487. if (HasOptionalBool) {
  2488. size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool);
  2489. }
  2490. if (HasOptionalString) {
  2491. size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString);
  2492. }
  2493. if (HasOptionalBytes) {
  2494. size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes);
  2495. }
  2496. if (HasOptionalGroup) {
  2497. size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup);
  2498. }
  2499. if (HasOptionalNestedMessage) {
  2500. size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage);
  2501. }
  2502. if (HasOptionalForeignMessage) {
  2503. size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage);
  2504. }
  2505. if (HasOptionalImportMessage) {
  2506. size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage);
  2507. }
  2508. if (HasOptionalNestedEnum) {
  2509. size += pb::CodedOutputStream
  2510. .ComputeEnumSize(21, (int) OptionalNestedEnum);
  2511. }
  2512. if (HasOptionalForeignEnum) {
  2513. size += pb::CodedOutputStream
  2514. .ComputeEnumSize(22, (int) OptionalForeignEnum);
  2515. }
  2516. if (HasOptionalImportEnum) {
  2517. size += pb::CodedOutputStream
  2518. .ComputeEnumSize(23, (int) OptionalImportEnum);
  2519. }
  2520. if (HasOptionalStringPiece) {
  2521. size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece);
  2522. }
  2523. if (HasOptionalCord) {
  2524. size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord);
  2525. }
  2526. foreach (int element in RepeatedInt32List) {
  2527. size += pb::CodedOutputStream
  2528. .ComputeInt32Size(31, element);
  2529. }
  2530. foreach (long element in RepeatedInt64List) {
  2531. size += pb::CodedOutputStream
  2532. .ComputeInt64Size(32, element);
  2533. }
  2534. foreach (uint element in RepeatedUint32List) {
  2535. size += pb::CodedOutputStream
  2536. .ComputeUInt32Size(33, element);
  2537. }
  2538. foreach (ulong element in RepeatedUint64List) {
  2539. size += pb::CodedOutputStream
  2540. .ComputeUInt64Size(34, element);
  2541. }
  2542. foreach (int element in RepeatedSint32List) {
  2543. size += pb::CodedOutputStream
  2544. .ComputeSInt32Size(35, element);
  2545. }
  2546. foreach (long element in RepeatedSint64List) {
  2547. size += pb::CodedOutputStream
  2548. .ComputeSInt64Size(36, element);
  2549. }
  2550. foreach (uint element in RepeatedFixed32List) {
  2551. size += pb::CodedOutputStream
  2552. .ComputeFixed32Size(37, element);
  2553. }
  2554. foreach (ulong element in RepeatedFixed64List) {
  2555. size += pb::CodedOutputStream
  2556. .ComputeFixed64Size(38, element);
  2557. }
  2558. foreach (int element in RepeatedSfixed32List) {
  2559. size += pb::CodedOutputStream
  2560. .ComputeSFixed32Size(39, element);
  2561. }
  2562. foreach (long element in RepeatedSfixed64List) {
  2563. size += pb::CodedOutputStream
  2564. .ComputeSFixed64Size(40, element);
  2565. }
  2566. foreach (float element in RepeatedFloatList) {
  2567. size += pb::CodedOutputStream
  2568. .ComputeFloatSize(41, element);
  2569. }
  2570. foreach (double element in RepeatedDoubleList) {
  2571. size += pb::CodedOutputStream
  2572. .ComputeDoubleSize(42, element);
  2573. }
  2574. foreach (bool element in RepeatedBoolList) {
  2575. size += pb::CodedOutputStream
  2576. .ComputeBoolSize(43, element);
  2577. }
  2578. foreach (string element in RepeatedStringList) {
  2579. size += pb::CodedOutputStream
  2580. .ComputeStringSize(44, element);
  2581. }
  2582. foreach (pb::ByteString element in RepeatedBytesList) {
  2583. size += pb::CodedOutputStream
  2584. .ComputeBytesSize(45, element);
  2585. }
  2586. foreach (self::TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
  2587. size += pb::CodedOutputStream.ComputeGroupSize(46, element);
  2588. }
  2589. foreach (self::TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
  2590. size += pb::CodedOutputStream.ComputeMessageSize(48, element);
  2591. }
  2592. foreach (self::ForeignMessage element in RepeatedForeignMessageList) {
  2593. size += pb::CodedOutputStream.ComputeMessageSize(49, element);
  2594. }
  2595. foreach (self::ImportMessage element in RepeatedImportMessageList) {
  2596. size += pb::CodedOutputStream.ComputeMessageSize(50, element);
  2597. }
  2598. foreach (self::TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) {
  2599. size += pb::CodedOutputStream
  2600. .ComputeEnumSize(51, (int) element);
  2601. }
  2602. foreach (self::ForeignEnum element in RepeatedForeignEnumList) {
  2603. size += pb::CodedOutputStream
  2604. .ComputeEnumSize(52, (int) element);
  2605. }
  2606. foreach (self::ImportEnum element in RepeatedImportEnumList) {
  2607. size += pb::CodedOutputStream
  2608. .ComputeEnumSize(53, (int) element);
  2609. }
  2610. foreach (string element in RepeatedStringPieceList) {
  2611. size += pb::CodedOutputStream
  2612. .ComputeStringSize(54, element);
  2613. }
  2614. foreach (string element in RepeatedCordList) {
  2615. size += pb::CodedOutputStream
  2616. .ComputeStringSize(55, element);
  2617. }
  2618. if (HasDefaultInt32) {
  2619. size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32);
  2620. }
  2621. if (HasDefaultInt64) {
  2622. size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64);
  2623. }
  2624. if (HasDefaultUint32) {
  2625. size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32);
  2626. }
  2627. if (HasDefaultUint64) {
  2628. size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64);
  2629. }
  2630. if (HasDefaultSint32) {
  2631. size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32);
  2632. }
  2633. if (HasDefaultSint64) {
  2634. size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64);
  2635. }
  2636. if (HasDefaultFixed32) {
  2637. size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32);
  2638. }
  2639. if (HasDefaultFixed64) {
  2640. size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64);
  2641. }
  2642. if (HasDefaultSfixed32) {
  2643. size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32);
  2644. }
  2645. if (HasDefaultSfixed64) {
  2646. size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64);
  2647. }
  2648. if (HasDefaultFloat) {
  2649. size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat);
  2650. }
  2651. if (HasDefaultDouble) {
  2652. size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble);
  2653. }
  2654. if (HasDefaultBool) {
  2655. size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool);
  2656. }
  2657. if (HasDefaultString) {
  2658. size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString);
  2659. }
  2660. if (HasDefaultBytes) {
  2661. size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes);
  2662. }
  2663. if (HasDefaultNestedEnum) {
  2664. size += pb::CodedOutputStream
  2665. .ComputeEnumSize(81, (int) DefaultNestedEnum);
  2666. }
  2667. if (HasDefaultForeignEnum) {
  2668. size += pb::CodedOutputStream
  2669. .ComputeEnumSize(82, (int) DefaultForeignEnum);
  2670. }
  2671. if (HasDefaultImportEnum) {
  2672. size += pb::CodedOutputStream
  2673. .ComputeEnumSize(83, (int) DefaultImportEnum);
  2674. }
  2675. if (HasDefaultStringPiece) {
  2676. size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece);
  2677. }
  2678. if (HasDefaultCord) {
  2679. size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord);
  2680. }
  2681. size += UnknownFields.SerializedSize;
  2682. memoizedSerializedSize = size;
  2683. return size;
  2684. }
  2685. }
  2686. public static self::TestAllTypes ParseFrom(pb::ByteString data) {
  2687. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2688. }
  2689. public static self::TestAllTypes ParseFrom(pb::ByteString data,
  2690. pb::ExtensionRegistry extensionRegistry) {
  2691. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2692. .BuildParsed();
  2693. }
  2694. public static self::TestAllTypes ParseFrom(byte[] data) {
  2695. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2696. }
  2697. public static self::TestAllTypes parseFrom(byte[] data,
  2698. pb::ExtensionRegistry extensionRegistry) {
  2699. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2700. .BuildParsed();
  2701. }
  2702. public static self::TestAllTypes ParseFrom(global::System.IO.Stream input) {
  2703. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2704. }
  2705. public static self::TestAllTypes ParseFrom(
  2706. global::System.IO.Stream input,
  2707. pb::ExtensionRegistry extensionRegistry) {
  2708. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2709. .BuildParsed();
  2710. }
  2711. public static self::TestAllTypes ParseFrom(pb::CodedInputStream input) {
  2712. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2713. }
  2714. public static self::TestAllTypes ParseFrom(pb::CodedInputStream input,
  2715. pb::ExtensionRegistry extensionRegistry) {
  2716. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2717. .BuildParsed();
  2718. }
  2719. public static Builder CreateBuilder() { return new Builder(); }
  2720. public override IBuilder<self::TestAllTypes> CreateBuilderForType() { return new Builder(); }
  2721. public static Builder CreateBuilder(self::TestAllTypes prototype) {
  2722. return (Builder) new Builder().MergeFrom(prototype);
  2723. }
  2724. public sealed partial class Builder : pb::GeneratedBuilder<self::TestAllTypes, Builder> {
  2725. // Construct using self::TestAllTypes.CreateBuilder()
  2726. internal Builder() {}
  2727. self::TestAllTypes result = new self::TestAllTypes();
  2728. protected override self::TestAllTypes MessageBeingBuilt {
  2729. get { return result; }
  2730. }
  2731. public override IBuilder<self::TestAllTypes> Clear() {
  2732. result = new self::TestAllTypes();
  2733. return this;
  2734. }
  2735. public override IBuilder<self::TestAllTypes> Clone() {
  2736. return new Builder().MergeFrom(result);
  2737. }
  2738. public override pbd::MessageDescriptor DescriptorForType {
  2739. get { return self::TestAllTypes.Descriptor; }
  2740. }
  2741. public override self::TestAllTypes DefaultInstanceForType {
  2742. get { return self::TestAllTypes.DefaultInstance; }
  2743. }
  2744. public override self::TestAllTypes BuildPartial() {
  2745. result.repeatedInt32_ = pbc::Lists<int>.AsReadOnly(result.repeatedInt32_);
  2746. result.repeatedInt64_ = pbc::Lists<long>.AsReadOnly(result.repeatedInt64_);
  2747. result.repeatedUint32_ = pbc::Lists<uint>.AsReadOnly(result.repeatedUint32_);
  2748. result.repeatedUint64_ = pbc::Lists<ulong>.AsReadOnly(result.repeatedUint64_);
  2749. result.repeatedSint32_ = pbc::Lists<int>.AsReadOnly(result.repeatedSint32_);
  2750. result.repeatedSint64_ = pbc::Lists<long>.AsReadOnly(result.repeatedSint64_);
  2751. result.repeatedFixed32_ = pbc::Lists<uint>.AsReadOnly(result.repeatedFixed32_);
  2752. result.repeatedFixed64_ = pbc::Lists<ulong>.AsReadOnly(result.repeatedFixed64_);
  2753. result.repeatedSfixed32_ = pbc::Lists<int>.AsReadOnly(result.repeatedSfixed32_);
  2754. result.repeatedSfixed64_ = pbc::Lists<long>.AsReadOnly(result.repeatedSfixed64_);
  2755. result.repeatedFloat_ = pbc::Lists<float>.AsReadOnly(result.repeatedFloat_);
  2756. result.repeatedDouble_ = pbc::Lists<double>.AsReadOnly(result.repeatedDouble_);
  2757. result.repeatedBool_ = pbc::Lists<bool>.AsReadOnly(result.repeatedBool_);
  2758. result.repeatedString_ = pbc::Lists<string>.AsReadOnly(result.repeatedString_);
  2759. result.repeatedBytes_ = pbc::Lists<pb::ByteString>.AsReadOnly(result.repeatedBytes_);
  2760. if (result.repeatedGroup_ != pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty) {
  2761. result.repeatedGroup_ = pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.AsReadOnly(result.repeatedGroup_);
  2762. }
  2763. if (result.repeatedNestedMessage_ != pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty) {
  2764. result.repeatedNestedMessage_ = pbc::Lists<self::TestAllTypes.Types.NestedMessage>.AsReadOnly(result.repeatedNestedMessage_);
  2765. }
  2766. if (result.repeatedForeignMessage_ != pbc::Lists<self::ForeignMessage>.Empty) {
  2767. result.repeatedForeignMessage_ = pbc::Lists<self::ForeignMessage>.AsReadOnly(result.repeatedForeignMessage_);
  2768. }
  2769. if (result.repeatedImportMessage_ != pbc::Lists<self::ImportMessage>.Empty) {
  2770. result.repeatedImportMessage_ = pbc::Lists<self::ImportMessage>.AsReadOnly(result.repeatedImportMessage_);
  2771. }
  2772. result.repeatedNestedEnum_ = pbc::Lists.AsReadOnly(result.repeatedNestedEnum_);
  2773. result.repeatedForeignEnum_ = pbc::Lists.AsReadOnly(result.repeatedForeignEnum_);
  2774. result.repeatedImportEnum_ = pbc::Lists.AsReadOnly(result.repeatedImportEnum_);
  2775. result.repeatedStringPiece_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringPiece_);
  2776. result.repeatedCord_ = pbc::Lists<string>.AsReadOnly(result.repeatedCord_);
  2777. self::TestAllTypes returnMe = result;
  2778. result = null;
  2779. return returnMe;
  2780. }
  2781. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  2782. return MergeFrom(data, extensionRegistry);
  2783. }
  2784. public override IBuilder MergeFrom(pb::IMessage other) {
  2785. if (other is self::TestAllTypes) {
  2786. return MergeFrom((self::TestAllTypes) other);
  2787. } else {
  2788. base.MergeFrom(other);
  2789. return this;
  2790. }
  2791. }
  2792. public override IBuilder<self::TestAllTypes> MergeFrom(self::TestAllTypes other) {
  2793. if (other == self::TestAllTypes.DefaultInstance) return this;
  2794. if (other.HasOptionalInt32) {
  2795. OptionalInt32 = other.OptionalInt32;
  2796. }
  2797. if (other.HasOptionalInt64) {
  2798. OptionalInt64 = other.OptionalInt64;
  2799. }
  2800. if (other.HasOptionalUint32) {
  2801. OptionalUint32 = other.OptionalUint32;
  2802. }
  2803. if (other.HasOptionalUint64) {
  2804. OptionalUint64 = other.OptionalUint64;
  2805. }
  2806. if (other.HasOptionalSint32) {
  2807. OptionalSint32 = other.OptionalSint32;
  2808. }
  2809. if (other.HasOptionalSint64) {
  2810. OptionalSint64 = other.OptionalSint64;
  2811. }
  2812. if (other.HasOptionalFixed32) {
  2813. OptionalFixed32 = other.OptionalFixed32;
  2814. }
  2815. if (other.HasOptionalFixed64) {
  2816. OptionalFixed64 = other.OptionalFixed64;
  2817. }
  2818. if (other.HasOptionalSfixed32) {
  2819. OptionalSfixed32 = other.OptionalSfixed32;
  2820. }
  2821. if (other.HasOptionalSfixed64) {
  2822. OptionalSfixed64 = other.OptionalSfixed64;
  2823. }
  2824. if (other.HasOptionalFloat) {
  2825. OptionalFloat = other.OptionalFloat;
  2826. }
  2827. if (other.HasOptionalDouble) {
  2828. OptionalDouble = other.OptionalDouble;
  2829. }
  2830. if (other.HasOptionalBool) {
  2831. OptionalBool = other.OptionalBool;
  2832. }
  2833. if (other.HasOptionalString) {
  2834. OptionalString = other.OptionalString;
  2835. }
  2836. if (other.HasOptionalBytes) {
  2837. OptionalBytes = other.OptionalBytes;
  2838. }
  2839. if (other.HasOptionalGroup) {
  2840. MergeOptionalGroup(other.OptionalGroup);
  2841. }
  2842. if (other.HasOptionalNestedMessage) {
  2843. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  2844. }
  2845. if (other.HasOptionalForeignMessage) {
  2846. MergeOptionalForeignMessage(other.OptionalForeignMessage);
  2847. }
  2848. if (other.HasOptionalImportMessage) {
  2849. MergeOptionalImportMessage(other.OptionalImportMessage);
  2850. }
  2851. if (other.HasOptionalNestedEnum) {
  2852. OptionalNestedEnum = other.OptionalNestedEnum;
  2853. }
  2854. if (other.HasOptionalForeignEnum) {
  2855. OptionalForeignEnum = other.OptionalForeignEnum;
  2856. }
  2857. if (other.HasOptionalImportEnum) {
  2858. OptionalImportEnum = other.OptionalImportEnum;
  2859. }
  2860. if (other.HasOptionalStringPiece) {
  2861. OptionalStringPiece = other.OptionalStringPiece;
  2862. }
  2863. if (other.HasOptionalCord) {
  2864. OptionalCord = other.OptionalCord;
  2865. }
  2866. if (other.repeatedInt32_.Count != 0) {
  2867. if (result.repeatedInt32_.Count == 0) {
  2868. result.repeatedInt32_ = new scg::List<int>();
  2869. }
  2870. base.AddRange(other.repeatedInt32_, result.repeatedInt32_);
  2871. }
  2872. if (other.repeatedInt64_.Count != 0) {
  2873. if (result.repeatedInt64_.Count == 0) {
  2874. result.repeatedInt64_ = new scg::List<long>();
  2875. }
  2876. base.AddRange(other.repeatedInt64_, result.repeatedInt64_);
  2877. }
  2878. if (other.repeatedUint32_.Count != 0) {
  2879. if (result.repeatedUint32_.Count == 0) {
  2880. result.repeatedUint32_ = new scg::List<uint>();
  2881. }
  2882. base.AddRange(other.repeatedUint32_, result.repeatedUint32_);
  2883. }
  2884. if (other.repeatedUint64_.Count != 0) {
  2885. if (result.repeatedUint64_.Count == 0) {
  2886. result.repeatedUint64_ = new scg::List<ulong>();
  2887. }
  2888. base.AddRange(other.repeatedUint64_, result.repeatedUint64_);
  2889. }
  2890. if (other.repeatedSint32_.Count != 0) {
  2891. if (result.repeatedSint32_.Count == 0) {
  2892. result.repeatedSint32_ = new scg::List<int>();
  2893. }
  2894. base.AddRange(other.repeatedSint32_, result.repeatedSint32_);
  2895. }
  2896. if (other.repeatedSint64_.Count != 0) {
  2897. if (result.repeatedSint64_.Count == 0) {
  2898. result.repeatedSint64_ = new scg::List<long>();
  2899. }
  2900. base.AddRange(other.repeatedSint64_, result.repeatedSint64_);
  2901. }
  2902. if (other.repeatedFixed32_.Count != 0) {
  2903. if (result.repeatedFixed32_.Count == 0) {
  2904. result.repeatedFixed32_ = new scg::List<uint>();
  2905. }
  2906. base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_);
  2907. }
  2908. if (other.repeatedFixed64_.Count != 0) {
  2909. if (result.repeatedFixed64_.Count == 0) {
  2910. result.repeatedFixed64_ = new scg::List<ulong>();
  2911. }
  2912. base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_);
  2913. }
  2914. if (other.repeatedSfixed32_.Count != 0) {
  2915. if (result.repeatedSfixed32_.Count == 0) {
  2916. result.repeatedSfixed32_ = new scg::List<int>();
  2917. }
  2918. base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_);
  2919. }
  2920. if (other.repeatedSfixed64_.Count != 0) {
  2921. if (result.repeatedSfixed64_.Count == 0) {
  2922. result.repeatedSfixed64_ = new scg::List<long>();
  2923. }
  2924. base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_);
  2925. }
  2926. if (other.repeatedFloat_.Count != 0) {
  2927. if (result.repeatedFloat_.Count == 0) {
  2928. result.repeatedFloat_ = new scg::List<float>();
  2929. }
  2930. base.AddRange(other.repeatedFloat_, result.repeatedFloat_);
  2931. }
  2932. if (other.repeatedDouble_.Count != 0) {
  2933. if (result.repeatedDouble_.Count == 0) {
  2934. result.repeatedDouble_ = new scg::List<double>();
  2935. }
  2936. base.AddRange(other.repeatedDouble_, result.repeatedDouble_);
  2937. }
  2938. if (other.repeatedBool_.Count != 0) {
  2939. if (result.repeatedBool_.Count == 0) {
  2940. result.repeatedBool_ = new scg::List<bool>();
  2941. }
  2942. base.AddRange(other.repeatedBool_, result.repeatedBool_);
  2943. }
  2944. if (other.repeatedString_.Count != 0) {
  2945. if (result.repeatedString_.Count == 0) {
  2946. result.repeatedString_ = new scg::List<string>();
  2947. }
  2948. base.AddRange(other.repeatedString_, result.repeatedString_);
  2949. }
  2950. if (other.repeatedBytes_.Count != 0) {
  2951. if (result.repeatedBytes_.Count == 0) {
  2952. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  2953. }
  2954. base.AddRange(other.repeatedBytes_, result.repeatedBytes_);
  2955. }
  2956. if (other.repeatedGroup_.Count != 0) {
  2957. if (result.repeatedGroup_.Count == 0) {
  2958. result.repeatedGroup_ = new scg::List<self::TestAllTypes.Types.RepeatedGroup>();
  2959. }
  2960. base.AddRange(other.repeatedGroup_, result.repeatedGroup_);
  2961. }
  2962. if (other.repeatedNestedMessage_.Count != 0) {
  2963. if (result.repeatedNestedMessage_.Count == 0) {
  2964. result.repeatedNestedMessage_ = new scg::List<self::TestAllTypes.Types.NestedMessage>();
  2965. }
  2966. base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_);
  2967. }
  2968. if (other.repeatedForeignMessage_.Count != 0) {
  2969. if (result.repeatedForeignMessage_.Count == 0) {
  2970. result.repeatedForeignMessage_ = new scg::List<self::ForeignMessage>();
  2971. }
  2972. base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_);
  2973. }
  2974. if (other.repeatedImportMessage_.Count != 0) {
  2975. if (result.repeatedImportMessage_.Count == 0) {
  2976. result.repeatedImportMessage_ = new scg::List<self::ImportMessage>();
  2977. }
  2978. base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_);
  2979. }
  2980. if (other.repeatedNestedEnum_.Count != 0) {
  2981. if (result.repeatedNestedEnum_.Count == 0) {
  2982. result.repeatedNestedEnum_ = new scg::List<self::TestAllTypes.Types.NestedEnum>();
  2983. }
  2984. base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_);
  2985. }
  2986. if (other.repeatedForeignEnum_.Count != 0) {
  2987. if (result.repeatedForeignEnum_.Count == 0) {
  2988. result.repeatedForeignEnum_ = new scg::List<self::ForeignEnum>();
  2989. }
  2990. base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_);
  2991. }
  2992. if (other.repeatedImportEnum_.Count != 0) {
  2993. if (result.repeatedImportEnum_.Count == 0) {
  2994. result.repeatedImportEnum_ = new scg::List<self::ImportEnum>();
  2995. }
  2996. base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_);
  2997. }
  2998. if (other.repeatedStringPiece_.Count != 0) {
  2999. if (result.repeatedStringPiece_.Count == 0) {
  3000. result.repeatedStringPiece_ = new scg::List<string>();
  3001. }
  3002. base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_);
  3003. }
  3004. if (other.repeatedCord_.Count != 0) {
  3005. if (result.repeatedCord_.Count == 0) {
  3006. result.repeatedCord_ = new scg::List<string>();
  3007. }
  3008. base.AddRange(other.repeatedCord_, result.repeatedCord_);
  3009. }
  3010. if (other.HasDefaultInt32) {
  3011. DefaultInt32 = other.DefaultInt32;
  3012. }
  3013. if (other.HasDefaultInt64) {
  3014. DefaultInt64 = other.DefaultInt64;
  3015. }
  3016. if (other.HasDefaultUint32) {
  3017. DefaultUint32 = other.DefaultUint32;
  3018. }
  3019. if (other.HasDefaultUint64) {
  3020. DefaultUint64 = other.DefaultUint64;
  3021. }
  3022. if (other.HasDefaultSint32) {
  3023. DefaultSint32 = other.DefaultSint32;
  3024. }
  3025. if (other.HasDefaultSint64) {
  3026. DefaultSint64 = other.DefaultSint64;
  3027. }
  3028. if (other.HasDefaultFixed32) {
  3029. DefaultFixed32 = other.DefaultFixed32;
  3030. }
  3031. if (other.HasDefaultFixed64) {
  3032. DefaultFixed64 = other.DefaultFixed64;
  3033. }
  3034. if (other.HasDefaultSfixed32) {
  3035. DefaultSfixed32 = other.DefaultSfixed32;
  3036. }
  3037. if (other.HasDefaultSfixed64) {
  3038. DefaultSfixed64 = other.DefaultSfixed64;
  3039. }
  3040. if (other.HasDefaultFloat) {
  3041. DefaultFloat = other.DefaultFloat;
  3042. }
  3043. if (other.HasDefaultDouble) {
  3044. DefaultDouble = other.DefaultDouble;
  3045. }
  3046. if (other.HasDefaultBool) {
  3047. DefaultBool = other.DefaultBool;
  3048. }
  3049. if (other.HasDefaultString) {
  3050. DefaultString = other.DefaultString;
  3051. }
  3052. if (other.HasDefaultBytes) {
  3053. DefaultBytes = other.DefaultBytes;
  3054. }
  3055. if (other.HasDefaultNestedEnum) {
  3056. DefaultNestedEnum = other.DefaultNestedEnum;
  3057. }
  3058. if (other.HasDefaultForeignEnum) {
  3059. DefaultForeignEnum = other.DefaultForeignEnum;
  3060. }
  3061. if (other.HasDefaultImportEnum) {
  3062. DefaultImportEnum = other.DefaultImportEnum;
  3063. }
  3064. if (other.HasDefaultStringPiece) {
  3065. DefaultStringPiece = other.DefaultStringPiece;
  3066. }
  3067. if (other.HasDefaultCord) {
  3068. DefaultCord = other.DefaultCord;
  3069. }
  3070. this.MergeUnknownFields(other.UnknownFields);
  3071. return this;
  3072. }
  3073. public override IBuilder<self::TestAllTypes> MergeFrom(pb::CodedInputStream input) {
  3074. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  3075. }
  3076. public override IBuilder<self::TestAllTypes> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3077. pb::UnknownFieldSet.Builder unknownFields =
  3078. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3079. while (true) {
  3080. uint tag = input.ReadTag();
  3081. switch (tag) {
  3082. case 0:
  3083. this.UnknownFields = unknownFields.Build();
  3084. return this;
  3085. default: {
  3086. if (!ParseUnknownField(input, unknownFields,
  3087. extensionRegistry, tag)) {
  3088. this.UnknownFields = unknownFields.Build();
  3089. return this;
  3090. }
  3091. break;
  3092. }
  3093. case 8: {
  3094. OptionalInt32 = input.ReadInt32();
  3095. break;
  3096. }
  3097. case 16: {
  3098. OptionalInt64 = input.ReadInt64();
  3099. break;
  3100. }
  3101. case 24: {
  3102. OptionalUint32 = input.ReadUInt32();
  3103. break;
  3104. }
  3105. case 32: {
  3106. OptionalUint64 = input.ReadUInt64();
  3107. break;
  3108. }
  3109. case 40: {
  3110. OptionalSint32 = input.ReadSInt32();
  3111. break;
  3112. }
  3113. case 48: {
  3114. OptionalSint64 = input.ReadSInt64();
  3115. break;
  3116. }
  3117. case 61: {
  3118. OptionalFixed32 = input.ReadFixed32();
  3119. break;
  3120. }
  3121. case 65: {
  3122. OptionalFixed64 = input.ReadFixed64();
  3123. break;
  3124. }
  3125. case 77: {
  3126. OptionalSfixed32 = input.ReadSFixed32();
  3127. break;
  3128. }
  3129. case 81: {
  3130. OptionalSfixed64 = input.ReadSFixed64();
  3131. break;
  3132. }
  3133. case 93: {
  3134. OptionalFloat = input.ReadFloat();
  3135. break;
  3136. }
  3137. case 97: {
  3138. OptionalDouble = input.ReadDouble();
  3139. break;
  3140. }
  3141. case 104: {
  3142. OptionalBool = input.ReadBool();
  3143. break;
  3144. }
  3145. case 114: {
  3146. OptionalString = input.ReadString();
  3147. break;
  3148. }
  3149. case 122: {
  3150. OptionalBytes = input.ReadBytes();
  3151. break;
  3152. }
  3153. case 131: {
  3154. self::TestAllTypes.Types.OptionalGroup.Builder subBuilder = self::TestAllTypes.Types.OptionalGroup.CreateBuilder();
  3155. if (HasOptionalGroup) {
  3156. subBuilder.MergeFrom(OptionalGroup);
  3157. }
  3158. input.ReadGroup(16, subBuilder, extensionRegistry);
  3159. OptionalGroup = subBuilder.BuildPartial();
  3160. break;
  3161. }
  3162. case 146: {
  3163. self::TestAllTypes.Types.NestedMessage.Builder subBuilder = self::TestAllTypes.Types.NestedMessage.CreateBuilder();
  3164. if (HasOptionalNestedMessage) {
  3165. subBuilder.MergeFrom(OptionalNestedMessage);
  3166. }
  3167. input.ReadMessage(subBuilder, extensionRegistry);
  3168. OptionalNestedMessage = subBuilder.BuildPartial();
  3169. break;
  3170. }
  3171. case 154: {
  3172. self::ForeignMessage.Builder subBuilder = self::ForeignMessage.CreateBuilder();
  3173. if (HasOptionalForeignMessage) {
  3174. subBuilder.MergeFrom(OptionalForeignMessage);
  3175. }
  3176. input.ReadMessage(subBuilder, extensionRegistry);
  3177. OptionalForeignMessage = subBuilder.BuildPartial();
  3178. break;
  3179. }
  3180. case 162: {
  3181. self::ImportMessage.Builder subBuilder = self::ImportMessage.CreateBuilder();
  3182. if (HasOptionalImportMessage) {
  3183. subBuilder.MergeFrom(OptionalImportMessage);
  3184. }
  3185. input.ReadMessage(subBuilder, extensionRegistry);
  3186. OptionalImportMessage = subBuilder.BuildPartial();
  3187. break;
  3188. }
  3189. case 168: {
  3190. int rawValue = input.ReadEnum();
  3191. if (!global::System.Enum.IsDefined(typeof(self::TestAllTypes.Types.NestedEnum), rawValue)) {
  3192. unknownFields.MergeVarintField(21, (ulong) rawValue);
  3193. } else {
  3194. OptionalNestedEnum = (self::TestAllTypes.Types.NestedEnum) rawValue;
  3195. }
  3196. break;
  3197. }
  3198. case 176: {
  3199. int rawValue = input.ReadEnum();
  3200. if (!global::System.Enum.IsDefined(typeof(self::ForeignEnum), rawValue)) {
  3201. unknownFields.MergeVarintField(22, (ulong) rawValue);
  3202. } else {
  3203. OptionalForeignEnum = (self::ForeignEnum) rawValue;
  3204. }
  3205. break;
  3206. }
  3207. case 184: {
  3208. int rawValue = input.ReadEnum();
  3209. if (!global::System.Enum.IsDefined(typeof(self::ImportEnum), rawValue)) {
  3210. unknownFields.MergeVarintField(23, (ulong) rawValue);
  3211. } else {
  3212. OptionalImportEnum = (self::ImportEnum) rawValue;
  3213. }
  3214. break;
  3215. }
  3216. case 194: {
  3217. OptionalStringPiece = input.ReadString();
  3218. break;
  3219. }
  3220. case 202: {
  3221. OptionalCord = input.ReadString();
  3222. break;
  3223. }
  3224. case 248: {
  3225. AddRepeatedInt32(input.ReadInt32());
  3226. break;
  3227. }
  3228. case 256: {
  3229. AddRepeatedInt64(input.ReadInt64());
  3230. break;
  3231. }
  3232. case 264: {
  3233. AddRepeatedUint32(input.ReadUInt32());
  3234. break;
  3235. }
  3236. case 272: {
  3237. AddRepeatedUint64(input.ReadUInt64());
  3238. break;
  3239. }
  3240. case 280: {
  3241. AddRepeatedSint32(input.ReadSInt32());
  3242. break;
  3243. }
  3244. case 288: {
  3245. AddRepeatedSint64(input.ReadSInt64());
  3246. break;
  3247. }
  3248. case 301: {
  3249. AddRepeatedFixed32(input.ReadFixed32());
  3250. break;
  3251. }
  3252. case 305: {
  3253. AddRepeatedFixed64(input.ReadFixed64());
  3254. break;
  3255. }
  3256. case 317: {
  3257. AddRepeatedSfixed32(input.ReadSFixed32());
  3258. break;
  3259. }
  3260. case 321: {
  3261. AddRepeatedSfixed64(input.ReadSFixed64());
  3262. break;
  3263. }
  3264. case 333: {
  3265. AddRepeatedFloat(input.ReadFloat());
  3266. break;
  3267. }
  3268. case 337: {
  3269. AddRepeatedDouble(input.ReadDouble());
  3270. break;
  3271. }
  3272. case 344: {
  3273. AddRepeatedBool(input.ReadBool());
  3274. break;
  3275. }
  3276. case 354: {
  3277. AddRepeatedString(input.ReadString());
  3278. break;
  3279. }
  3280. case 362: {
  3281. AddRepeatedBytes(input.ReadBytes());
  3282. break;
  3283. }
  3284. case 371: {
  3285. self::TestAllTypes.Types.RepeatedGroup.Builder subBuilder = self::TestAllTypes.Types.RepeatedGroup.CreateBuilder();
  3286. input.ReadGroup(46, subBuilder, extensionRegistry);
  3287. AddRepeatedGroup(subBuilder.BuildPartial());
  3288. break;
  3289. }
  3290. case 386: {
  3291. self::TestAllTypes.Types.NestedMessage.Builder subBuilder = self::TestAllTypes.Types.NestedMessage.CreateBuilder();
  3292. input.ReadMessage(subBuilder, extensionRegistry);
  3293. AddRepeatedNestedMessage(subBuilder.BuildPartial());
  3294. break;
  3295. }
  3296. case 394: {
  3297. self::ForeignMessage.Builder subBuilder = self::ForeignMessage.CreateBuilder();
  3298. input.ReadMessage(subBuilder, extensionRegistry);
  3299. AddRepeatedForeignMessage(subBuilder.BuildPartial());
  3300. break;
  3301. }
  3302. case 402: {
  3303. self::ImportMessage.Builder subBuilder = self::ImportMessage.CreateBuilder();
  3304. input.ReadMessage(subBuilder, extensionRegistry);
  3305. AddRepeatedImportMessage(subBuilder.BuildPartial());
  3306. break;
  3307. }
  3308. case 408: {
  3309. int rawValue = input.ReadEnum();
  3310. self::TestAllTypes.Types.NestedEnum value = (self::TestAllTypes.Types.NestedEnum) rawValue;
  3311. if (!global::System.Enum.IsDefined(typeof(self::TestAllTypes.Types.NestedEnum), value)) {
  3312. unknownFields.MergeVarintField(51, (ulong) rawValue);
  3313. } else {
  3314. AddRepeatedNestedEnum(value);
  3315. }
  3316. break;
  3317. }
  3318. case 416: {
  3319. int rawValue = input.ReadEnum();
  3320. self::ForeignEnum value = (self::ForeignEnum) rawValue;
  3321. if (!global::System.Enum.IsDefined(typeof(self::ForeignEnum), value)) {
  3322. unknownFields.MergeVarintField(52, (ulong) rawValue);
  3323. } else {
  3324. AddRepeatedForeignEnum(value);
  3325. }
  3326. break;
  3327. }
  3328. case 424: {
  3329. int rawValue = input.ReadEnum();
  3330. self::ImportEnum value = (self::ImportEnum) rawValue;
  3331. if (!global::System.Enum.IsDefined(typeof(self::ImportEnum), value)) {
  3332. unknownFields.MergeVarintField(53, (ulong) rawValue);
  3333. } else {
  3334. AddRepeatedImportEnum(value);
  3335. }
  3336. break;
  3337. }
  3338. case 434: {
  3339. AddRepeatedStringPiece(input.ReadString());
  3340. break;
  3341. }
  3342. case 442: {
  3343. AddRepeatedCord(input.ReadString());
  3344. break;
  3345. }
  3346. case 488: {
  3347. DefaultInt32 = input.ReadInt32();
  3348. break;
  3349. }
  3350. case 496: {
  3351. DefaultInt64 = input.ReadInt64();
  3352. break;
  3353. }
  3354. case 504: {
  3355. DefaultUint32 = input.ReadUInt32();
  3356. break;
  3357. }
  3358. case 512: {
  3359. DefaultUint64 = input.ReadUInt64();
  3360. break;
  3361. }
  3362. case 520: {
  3363. DefaultSint32 = input.ReadSInt32();
  3364. break;
  3365. }
  3366. case 528: {
  3367. DefaultSint64 = input.ReadSInt64();
  3368. break;
  3369. }
  3370. case 541: {
  3371. DefaultFixed32 = input.ReadFixed32();
  3372. break;
  3373. }
  3374. case 545: {
  3375. DefaultFixed64 = input.ReadFixed64();
  3376. break;
  3377. }
  3378. case 557: {
  3379. DefaultSfixed32 = input.ReadSFixed32();
  3380. break;
  3381. }
  3382. case 561: {
  3383. DefaultSfixed64 = input.ReadSFixed64();
  3384. break;
  3385. }
  3386. case 573: {
  3387. DefaultFloat = input.ReadFloat();
  3388. break;
  3389. }
  3390. case 577: {
  3391. DefaultDouble = input.ReadDouble();
  3392. break;
  3393. }
  3394. case 584: {
  3395. DefaultBool = input.ReadBool();
  3396. break;
  3397. }
  3398. case 594: {
  3399. DefaultString = input.ReadString();
  3400. break;
  3401. }
  3402. case 602: {
  3403. DefaultBytes = input.ReadBytes();
  3404. break;
  3405. }
  3406. case 648: {
  3407. int rawValue = input.ReadEnum();
  3408. if (!global::System.Enum.IsDefined(typeof(self::TestAllTypes.Types.NestedEnum), rawValue)) {
  3409. unknownFields.MergeVarintField(81, (ulong) rawValue);
  3410. } else {
  3411. DefaultNestedEnum = (self::TestAllTypes.Types.NestedEnum) rawValue;
  3412. }
  3413. break;
  3414. }
  3415. case 656: {
  3416. int rawValue = input.ReadEnum();
  3417. if (!global::System.Enum.IsDefined(typeof(self::ForeignEnum), rawValue)) {
  3418. unknownFields.MergeVarintField(82, (ulong) rawValue);
  3419. } else {
  3420. DefaultForeignEnum = (self::ForeignEnum) rawValue;
  3421. }
  3422. break;
  3423. }
  3424. case 664: {
  3425. int rawValue = input.ReadEnum();
  3426. if (!global::System.Enum.IsDefined(typeof(self::ImportEnum), rawValue)) {
  3427. unknownFields.MergeVarintField(83, (ulong) rawValue);
  3428. } else {
  3429. DefaultImportEnum = (self::ImportEnum) rawValue;
  3430. }
  3431. break;
  3432. }
  3433. case 674: {
  3434. DefaultStringPiece = input.ReadString();
  3435. break;
  3436. }
  3437. case 682: {
  3438. DefaultCord = input.ReadString();
  3439. break;
  3440. }
  3441. }
  3442. }
  3443. }
  3444. // optional int32 optional_int32 = 1;
  3445. public bool HasOptionalInt32 {
  3446. get { return result.HasOptionalInt32; }
  3447. }
  3448. public int OptionalInt32 {
  3449. get { return result.OptionalInt32; }
  3450. set { SetOptionalInt32(value); }
  3451. }
  3452. public Builder SetOptionalInt32(int value) {
  3453. result.hasOptionalInt32 = true;
  3454. result.optionalInt32_ = value;
  3455. return this;
  3456. }
  3457. public Builder ClearOptionalInt32() {
  3458. result.hasOptionalInt32 = false;
  3459. result.optionalInt32_ = 0;
  3460. return this;
  3461. }
  3462. // optional int64 optional_int64 = 2;
  3463. public bool HasOptionalInt64 {
  3464. get { return result.HasOptionalInt64; }
  3465. }
  3466. public long OptionalInt64 {
  3467. get { return result.OptionalInt64; }
  3468. set { SetOptionalInt64(value); }
  3469. }
  3470. public Builder SetOptionalInt64(long value) {
  3471. result.hasOptionalInt64 = true;
  3472. result.optionalInt64_ = value;
  3473. return this;
  3474. }
  3475. public Builder ClearOptionalInt64() {
  3476. result.hasOptionalInt64 = false;
  3477. result.optionalInt64_ = 0L;
  3478. return this;
  3479. }
  3480. // optional uint32 optional_uint32 = 3;
  3481. public bool HasOptionalUint32 {
  3482. get { return result.HasOptionalUint32; }
  3483. }
  3484. public uint OptionalUint32 {
  3485. get { return result.OptionalUint32; }
  3486. set { SetOptionalUint32(value); }
  3487. }
  3488. public Builder SetOptionalUint32(uint value) {
  3489. result.hasOptionalUint32 = true;
  3490. result.optionalUint32_ = value;
  3491. return this;
  3492. }
  3493. public Builder ClearOptionalUint32() {
  3494. result.hasOptionalUint32 = false;
  3495. result.optionalUint32_ = 0;
  3496. return this;
  3497. }
  3498. // optional uint64 optional_uint64 = 4;
  3499. public bool HasOptionalUint64 {
  3500. get { return result.HasOptionalUint64; }
  3501. }
  3502. public ulong OptionalUint64 {
  3503. get { return result.OptionalUint64; }
  3504. set { SetOptionalUint64(value); }
  3505. }
  3506. public Builder SetOptionalUint64(ulong value) {
  3507. result.hasOptionalUint64 = true;
  3508. result.optionalUint64_ = value;
  3509. return this;
  3510. }
  3511. public Builder ClearOptionalUint64() {
  3512. result.hasOptionalUint64 = false;
  3513. result.optionalUint64_ = 0UL;
  3514. return this;
  3515. }
  3516. // optional sint32 optional_sint32 = 5;
  3517. public bool HasOptionalSint32 {
  3518. get { return result.HasOptionalSint32; }
  3519. }
  3520. public int OptionalSint32 {
  3521. get { return result.OptionalSint32; }
  3522. set { SetOptionalSint32(value); }
  3523. }
  3524. public Builder SetOptionalSint32(int value) {
  3525. result.hasOptionalSint32 = true;
  3526. result.optionalSint32_ = value;
  3527. return this;
  3528. }
  3529. public Builder ClearOptionalSint32() {
  3530. result.hasOptionalSint32 = false;
  3531. result.optionalSint32_ = 0;
  3532. return this;
  3533. }
  3534. // optional sint64 optional_sint64 = 6;
  3535. public bool HasOptionalSint64 {
  3536. get { return result.HasOptionalSint64; }
  3537. }
  3538. public long OptionalSint64 {
  3539. get { return result.OptionalSint64; }
  3540. set { SetOptionalSint64(value); }
  3541. }
  3542. public Builder SetOptionalSint64(long value) {
  3543. result.hasOptionalSint64 = true;
  3544. result.optionalSint64_ = value;
  3545. return this;
  3546. }
  3547. public Builder ClearOptionalSint64() {
  3548. result.hasOptionalSint64 = false;
  3549. result.optionalSint64_ = 0L;
  3550. return this;
  3551. }
  3552. // optional fixed32 optional_fixed32 = 7;
  3553. public bool HasOptionalFixed32 {
  3554. get { return result.HasOptionalFixed32; }
  3555. }
  3556. public uint OptionalFixed32 {
  3557. get { return result.OptionalFixed32; }
  3558. set { SetOptionalFixed32(value); }
  3559. }
  3560. public Builder SetOptionalFixed32(uint value) {
  3561. result.hasOptionalFixed32 = true;
  3562. result.optionalFixed32_ = value;
  3563. return this;
  3564. }
  3565. public Builder ClearOptionalFixed32() {
  3566. result.hasOptionalFixed32 = false;
  3567. result.optionalFixed32_ = 0;
  3568. return this;
  3569. }
  3570. // optional fixed64 optional_fixed64 = 8;
  3571. public bool HasOptionalFixed64 {
  3572. get { return result.HasOptionalFixed64; }
  3573. }
  3574. public ulong OptionalFixed64 {
  3575. get { return result.OptionalFixed64; }
  3576. set { SetOptionalFixed64(value); }
  3577. }
  3578. public Builder SetOptionalFixed64(ulong value) {
  3579. result.hasOptionalFixed64 = true;
  3580. result.optionalFixed64_ = value;
  3581. return this;
  3582. }
  3583. public Builder ClearOptionalFixed64() {
  3584. result.hasOptionalFixed64 = false;
  3585. result.optionalFixed64_ = 0UL;
  3586. return this;
  3587. }
  3588. // optional sfixed32 optional_sfixed32 = 9;
  3589. public bool HasOptionalSfixed32 {
  3590. get { return result.HasOptionalSfixed32; }
  3591. }
  3592. public int OptionalSfixed32 {
  3593. get { return result.OptionalSfixed32; }
  3594. set { SetOptionalSfixed32(value); }
  3595. }
  3596. public Builder SetOptionalSfixed32(int value) {
  3597. result.hasOptionalSfixed32 = true;
  3598. result.optionalSfixed32_ = value;
  3599. return this;
  3600. }
  3601. public Builder ClearOptionalSfixed32() {
  3602. result.hasOptionalSfixed32 = false;
  3603. result.optionalSfixed32_ = 0;
  3604. return this;
  3605. }
  3606. // optional sfixed64 optional_sfixed64 = 10;
  3607. public bool HasOptionalSfixed64 {
  3608. get { return result.HasOptionalSfixed64; }
  3609. }
  3610. public long OptionalSfixed64 {
  3611. get { return result.OptionalSfixed64; }
  3612. set { SetOptionalSfixed64(value); }
  3613. }
  3614. public Builder SetOptionalSfixed64(long value) {
  3615. result.hasOptionalSfixed64 = true;
  3616. result.optionalSfixed64_ = value;
  3617. return this;
  3618. }
  3619. public Builder ClearOptionalSfixed64() {
  3620. result.hasOptionalSfixed64 = false;
  3621. result.optionalSfixed64_ = 0L;
  3622. return this;
  3623. }
  3624. // optional float optional_float = 11;
  3625. public bool HasOptionalFloat {
  3626. get { return result.HasOptionalFloat; }
  3627. }
  3628. public float OptionalFloat {
  3629. get { return result.OptionalFloat; }
  3630. set { SetOptionalFloat(value); }
  3631. }
  3632. public Builder SetOptionalFloat(float value) {
  3633. result.hasOptionalFloat = true;
  3634. result.optionalFloat_ = value;
  3635. return this;
  3636. }
  3637. public Builder ClearOptionalFloat() {
  3638. result.hasOptionalFloat = false;
  3639. result.optionalFloat_ = 0F;
  3640. return this;
  3641. }
  3642. // optional double optional_double = 12;
  3643. public bool HasOptionalDouble {
  3644. get { return result.HasOptionalDouble; }
  3645. }
  3646. public double OptionalDouble {
  3647. get { return result.OptionalDouble; }
  3648. set { SetOptionalDouble(value); }
  3649. }
  3650. public Builder SetOptionalDouble(double value) {
  3651. result.hasOptionalDouble = true;
  3652. result.optionalDouble_ = value;
  3653. return this;
  3654. }
  3655. public Builder ClearOptionalDouble() {
  3656. result.hasOptionalDouble = false;
  3657. result.optionalDouble_ = 0D;
  3658. return this;
  3659. }
  3660. // optional bool optional_bool = 13;
  3661. public bool HasOptionalBool {
  3662. get { return result.HasOptionalBool; }
  3663. }
  3664. public bool OptionalBool {
  3665. get { return result.OptionalBool; }
  3666. set { SetOptionalBool(value); }
  3667. }
  3668. public Builder SetOptionalBool(bool value) {
  3669. result.hasOptionalBool = true;
  3670. result.optionalBool_ = value;
  3671. return this;
  3672. }
  3673. public Builder ClearOptionalBool() {
  3674. result.hasOptionalBool = false;
  3675. result.optionalBool_ = false;
  3676. return this;
  3677. }
  3678. // optional string optional_string = 14;
  3679. public bool HasOptionalString {
  3680. get { return result.HasOptionalString; }
  3681. }
  3682. public string OptionalString {
  3683. get { return result.OptionalString; }
  3684. set { SetOptionalString(value); }
  3685. }
  3686. public Builder SetOptionalString(string value) {
  3687. result.hasOptionalString = true;
  3688. result.optionalString_ = value;
  3689. return this;
  3690. }
  3691. public Builder ClearOptionalString() {
  3692. result.hasOptionalString = false;
  3693. result.optionalString_ = "";
  3694. return this;
  3695. }
  3696. // optional bytes optional_bytes = 15;
  3697. public bool HasOptionalBytes {
  3698. get { return result.HasOptionalBytes; }
  3699. }
  3700. public pb::ByteString OptionalBytes {
  3701. get { return result.OptionalBytes; }
  3702. set { SetOptionalBytes(value); }
  3703. }
  3704. public Builder SetOptionalBytes(pb::ByteString value) {
  3705. result.hasOptionalBytes = true;
  3706. result.optionalBytes_ = value;
  3707. return this;
  3708. }
  3709. public Builder ClearOptionalBytes() {
  3710. result.hasOptionalBytes = false;
  3711. result.optionalBytes_ = pb::ByteString.Empty;
  3712. return this;
  3713. }
  3714. // optional group OptionalGroup = 16 {
  3715. public bool HasOptionalGroup {
  3716. get { return result.HasOptionalGroup; }
  3717. }
  3718. public self::TestAllTypes.Types.OptionalGroup OptionalGroup {
  3719. get { return result.OptionalGroup; }
  3720. set { SetOptionalGroup(value); }
  3721. }
  3722. public Builder SetOptionalGroup(self::TestAllTypes.Types.OptionalGroup value) {
  3723. result.hasOptionalGroup = true;
  3724. result.optionalGroup_ = value;
  3725. return this;
  3726. }
  3727. public Builder SetOptionalGroup(self::TestAllTypes.Types.OptionalGroup.Builder builderForValue) {
  3728. result.hasOptionalGroup = true;
  3729. result.optionalGroup_ = builderForValue.Build();
  3730. return this;
  3731. }
  3732. public Builder MergeOptionalGroup(self::TestAllTypes.Types.OptionalGroup value) {
  3733. if (result.HasOptionalGroup &&
  3734. result.optionalGroup_ != self::TestAllTypes.Types.OptionalGroup.DefaultInstance) {
  3735. result.optionalGroup_ =
  3736. self::TestAllTypes.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
  3737. } else {
  3738. result.optionalGroup_ = value;
  3739. }
  3740. result.hasOptionalGroup = true;
  3741. return this;
  3742. }
  3743. public Builder ClearOptionalGroup() {
  3744. result.hasOptionalGroup = false;
  3745. result.optionalGroup_ = self::TestAllTypes.Types.OptionalGroup.DefaultInstance;
  3746. return this;
  3747. }
  3748. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  3749. public bool HasOptionalNestedMessage {
  3750. get { return result.HasOptionalNestedMessage; }
  3751. }
  3752. public self::TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  3753. get { return result.OptionalNestedMessage; }
  3754. set { SetOptionalNestedMessage(value); }
  3755. }
  3756. public Builder SetOptionalNestedMessage(self::TestAllTypes.Types.NestedMessage value) {
  3757. result.hasOptionalNestedMessage = true;
  3758. result.optionalNestedMessage_ = value;
  3759. return this;
  3760. }
  3761. public Builder SetOptionalNestedMessage(self::TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  3762. result.hasOptionalNestedMessage = true;
  3763. result.optionalNestedMessage_ = builderForValue.Build();
  3764. return this;
  3765. }
  3766. public Builder MergeOptionalNestedMessage(self::TestAllTypes.Types.NestedMessage value) {
  3767. if (result.HasOptionalNestedMessage &&
  3768. result.optionalNestedMessage_ != self::TestAllTypes.Types.NestedMessage.DefaultInstance) {
  3769. result.optionalNestedMessage_ =
  3770. self::TestAllTypes.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  3771. } else {
  3772. result.optionalNestedMessage_ = value;
  3773. }
  3774. result.hasOptionalNestedMessage = true;
  3775. return this;
  3776. }
  3777. public Builder ClearOptionalNestedMessage() {
  3778. result.hasOptionalNestedMessage = false;
  3779. result.optionalNestedMessage_ = self::TestAllTypes.Types.NestedMessage.DefaultInstance;
  3780. return this;
  3781. }
  3782. // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
  3783. public bool HasOptionalForeignMessage {
  3784. get { return result.HasOptionalForeignMessage; }
  3785. }
  3786. public self::ForeignMessage OptionalForeignMessage {
  3787. get { return result.OptionalForeignMessage; }
  3788. set { SetOptionalForeignMessage(value); }
  3789. }
  3790. public Builder SetOptionalForeignMessage(self::ForeignMessage value) {
  3791. result.hasOptionalForeignMessage = true;
  3792. result.optionalForeignMessage_ = value;
  3793. return this;
  3794. }
  3795. public Builder SetOptionalForeignMessage(self::ForeignMessage.Builder builderForValue) {
  3796. result.hasOptionalForeignMessage = true;
  3797. result.optionalForeignMessage_ = builderForValue.Build();
  3798. return this;
  3799. }
  3800. public Builder MergeOptionalForeignMessage(self::ForeignMessage value) {
  3801. if (result.HasOptionalForeignMessage &&
  3802. result.optionalForeignMessage_ != self::ForeignMessage.DefaultInstance) {
  3803. result.optionalForeignMessage_ =
  3804. self::ForeignMessage.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial();
  3805. } else {
  3806. result.optionalForeignMessage_ = value;
  3807. }
  3808. result.hasOptionalForeignMessage = true;
  3809. return this;
  3810. }
  3811. public Builder ClearOptionalForeignMessage() {
  3812. result.hasOptionalForeignMessage = false;
  3813. result.optionalForeignMessage_ = self::ForeignMessage.DefaultInstance;
  3814. return this;
  3815. }
  3816. // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  3817. public bool HasOptionalImportMessage {
  3818. get { return result.HasOptionalImportMessage; }
  3819. }
  3820. public self::ImportMessage OptionalImportMessage {
  3821. get { return result.OptionalImportMessage; }
  3822. set { SetOptionalImportMessage(value); }
  3823. }
  3824. public Builder SetOptionalImportMessage(self::ImportMessage value) {
  3825. result.hasOptionalImportMessage = true;
  3826. result.optionalImportMessage_ = value;
  3827. return this;
  3828. }
  3829. public Builder SetOptionalImportMessage(self::ImportMessage.Builder builderForValue) {
  3830. result.hasOptionalImportMessage = true;
  3831. result.optionalImportMessage_ = builderForValue.Build();
  3832. return this;
  3833. }
  3834. public Builder MergeOptionalImportMessage(self::ImportMessage value) {
  3835. if (result.HasOptionalImportMessage &&
  3836. result.optionalImportMessage_ != self::ImportMessage.DefaultInstance) {
  3837. result.optionalImportMessage_ =
  3838. self::ImportMessage.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial();
  3839. } else {
  3840. result.optionalImportMessage_ = value;
  3841. }
  3842. result.hasOptionalImportMessage = true;
  3843. return this;
  3844. }
  3845. public Builder ClearOptionalImportMessage() {
  3846. result.hasOptionalImportMessage = false;
  3847. result.optionalImportMessage_ = self::ImportMessage.DefaultInstance;
  3848. return this;
  3849. }
  3850. // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  3851. public bool HasOptionalNestedEnum {
  3852. get { return result.HasOptionalNestedEnum; }
  3853. }
  3854. public self::TestAllTypes.Types.NestedEnum OptionalNestedEnum {
  3855. get { return result.OptionalNestedEnum; }
  3856. set { SetOptionalNestedEnum(value); }
  3857. }
  3858. public Builder SetOptionalNestedEnum(self::TestAllTypes.Types.NestedEnum value) {
  3859. result.hasOptionalNestedEnum = true;
  3860. result.optionalNestedEnum_ = value;
  3861. return this;
  3862. }
  3863. public Builder ClearOptionalNestedEnum() {
  3864. result.hasOptionalNestedEnum = false;
  3865. result.optionalNestedEnum_ = self::TestAllTypes.Types.NestedEnum.FOO;
  3866. return this;
  3867. }
  3868. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  3869. public bool HasOptionalForeignEnum {
  3870. get { return result.HasOptionalForeignEnum; }
  3871. }
  3872. public self::ForeignEnum OptionalForeignEnum {
  3873. get { return result.OptionalForeignEnum; }
  3874. set { SetOptionalForeignEnum(value); }
  3875. }
  3876. public Builder SetOptionalForeignEnum(self::ForeignEnum value) {
  3877. result.hasOptionalForeignEnum = true;
  3878. result.optionalForeignEnum_ = value;
  3879. return this;
  3880. }
  3881. public Builder ClearOptionalForeignEnum() {
  3882. result.hasOptionalForeignEnum = false;
  3883. result.optionalForeignEnum_ = self::ForeignEnum.FOREIGN_FOO;
  3884. return this;
  3885. }
  3886. // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
  3887. public bool HasOptionalImportEnum {
  3888. get { return result.HasOptionalImportEnum; }
  3889. }
  3890. public self::ImportEnum OptionalImportEnum {
  3891. get { return result.OptionalImportEnum; }
  3892. set { SetOptionalImportEnum(value); }
  3893. }
  3894. public Builder SetOptionalImportEnum(self::ImportEnum value) {
  3895. result.hasOptionalImportEnum = true;
  3896. result.optionalImportEnum_ = value;
  3897. return this;
  3898. }
  3899. public Builder ClearOptionalImportEnum() {
  3900. result.hasOptionalImportEnum = false;
  3901. result.optionalImportEnum_ = self::ImportEnum.IMPORT_FOO;
  3902. return this;
  3903. }
  3904. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  3905. public bool HasOptionalStringPiece {
  3906. get { return result.HasOptionalStringPiece; }
  3907. }
  3908. public string OptionalStringPiece {
  3909. get { return result.OptionalStringPiece; }
  3910. set { SetOptionalStringPiece(value); }
  3911. }
  3912. public Builder SetOptionalStringPiece(string value) {
  3913. result.hasOptionalStringPiece = true;
  3914. result.optionalStringPiece_ = value;
  3915. return this;
  3916. }
  3917. public Builder ClearOptionalStringPiece() {
  3918. result.hasOptionalStringPiece = false;
  3919. result.optionalStringPiece_ = "";
  3920. return this;
  3921. }
  3922. // optional string optional_cord = 25 [ctype = CORD];
  3923. public bool HasOptionalCord {
  3924. get { return result.HasOptionalCord; }
  3925. }
  3926. public string OptionalCord {
  3927. get { return result.OptionalCord; }
  3928. set { SetOptionalCord(value); }
  3929. }
  3930. public Builder SetOptionalCord(string value) {
  3931. result.hasOptionalCord = true;
  3932. result.optionalCord_ = value;
  3933. return this;
  3934. }
  3935. public Builder ClearOptionalCord() {
  3936. result.hasOptionalCord = false;
  3937. result.optionalCord_ = "";
  3938. return this;
  3939. }
  3940. // repeated int32 repeated_int32 = 31;
  3941. public scg::IList<int> RepeatedInt32List {
  3942. get { return pbc::Lists<int>.AsReadOnly(result.repeatedInt32_); }
  3943. }
  3944. public int RepeatedInt32Count {
  3945. get { return result.RepeatedInt32Count; }
  3946. }
  3947. public int GetRepeatedInt32(int index) {
  3948. return result.GetRepeatedInt32(index);
  3949. }
  3950. public Builder SetRepeatedInt32(int index, int value) {
  3951. result.repeatedInt32_[index] = value;
  3952. return this;
  3953. }
  3954. public Builder AddRepeatedInt32(int value) {
  3955. if (result.repeatedInt32_.Count == 0) {
  3956. result.repeatedInt32_ = new scg::List<int>();
  3957. }
  3958. result.repeatedInt32_.Add(value);
  3959. return this;
  3960. }
  3961. public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
  3962. if (result.repeatedInt32_.Count == 0) {
  3963. result.repeatedInt32_ = new scg::List<int>();
  3964. }
  3965. base.AddRange(values, result.repeatedInt32_);
  3966. return this;
  3967. }
  3968. public Builder ClearRepeatedInt32() {
  3969. result.repeatedInt32_ = pbc::Lists<int>.Empty;
  3970. return this;
  3971. }
  3972. // repeated int64 repeated_int64 = 32;
  3973. public scg::IList<long> RepeatedInt64List {
  3974. get { return pbc::Lists<long>.AsReadOnly(result.repeatedInt64_); }
  3975. }
  3976. public int RepeatedInt64Count {
  3977. get { return result.RepeatedInt64Count; }
  3978. }
  3979. public long GetRepeatedInt64(int index) {
  3980. return result.GetRepeatedInt64(index);
  3981. }
  3982. public Builder SetRepeatedInt64(int index, long value) {
  3983. result.repeatedInt64_[index] = value;
  3984. return this;
  3985. }
  3986. public Builder AddRepeatedInt64(long value) {
  3987. if (result.repeatedInt64_.Count == 0) {
  3988. result.repeatedInt64_ = new scg::List<long>();
  3989. }
  3990. result.repeatedInt64_.Add(value);
  3991. return this;
  3992. }
  3993. public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
  3994. if (result.repeatedInt64_.Count == 0) {
  3995. result.repeatedInt64_ = new scg::List<long>();
  3996. }
  3997. base.AddRange(values, result.repeatedInt64_);
  3998. return this;
  3999. }
  4000. public Builder ClearRepeatedInt64() {
  4001. result.repeatedInt64_ = pbc::Lists<long>.Empty;
  4002. return this;
  4003. }
  4004. // repeated uint32 repeated_uint32 = 33;
  4005. public scg::IList<uint> RepeatedUint32List {
  4006. get { return pbc::Lists<uint>.AsReadOnly(result.repeatedUint32_); }
  4007. }
  4008. public int RepeatedUint32Count {
  4009. get { return result.RepeatedUint32Count; }
  4010. }
  4011. public uint GetRepeatedUint32(int index) {
  4012. return result.GetRepeatedUint32(index);
  4013. }
  4014. public Builder SetRepeatedUint32(int index, uint value) {
  4015. result.repeatedUint32_[index] = value;
  4016. return this;
  4017. }
  4018. public Builder AddRepeatedUint32(uint value) {
  4019. if (result.repeatedUint32_.Count == 0) {
  4020. result.repeatedUint32_ = new scg::List<uint>();
  4021. }
  4022. result.repeatedUint32_.Add(value);
  4023. return this;
  4024. }
  4025. public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) {
  4026. if (result.repeatedUint32_.Count == 0) {
  4027. result.repeatedUint32_ = new scg::List<uint>();
  4028. }
  4029. base.AddRange(values, result.repeatedUint32_);
  4030. return this;
  4031. }
  4032. public Builder ClearRepeatedUint32() {
  4033. result.repeatedUint32_ = pbc::Lists<uint>.Empty;
  4034. return this;
  4035. }
  4036. // repeated uint64 repeated_uint64 = 34;
  4037. public scg::IList<ulong> RepeatedUint64List {
  4038. get { return pbc::Lists<ulong>.AsReadOnly(result.repeatedUint64_); }
  4039. }
  4040. public int RepeatedUint64Count {
  4041. get { return result.RepeatedUint64Count; }
  4042. }
  4043. public ulong GetRepeatedUint64(int index) {
  4044. return result.GetRepeatedUint64(index);
  4045. }
  4046. public Builder SetRepeatedUint64(int index, ulong value) {
  4047. result.repeatedUint64_[index] = value;
  4048. return this;
  4049. }
  4050. public Builder AddRepeatedUint64(ulong value) {
  4051. if (result.repeatedUint64_.Count == 0) {
  4052. result.repeatedUint64_ = new scg::List<ulong>();
  4053. }
  4054. result.repeatedUint64_.Add(value);
  4055. return this;
  4056. }
  4057. public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
  4058. if (result.repeatedUint64_.Count == 0) {
  4059. result.repeatedUint64_ = new scg::List<ulong>();
  4060. }
  4061. base.AddRange(values, result.repeatedUint64_);
  4062. return this;
  4063. }
  4064. public Builder ClearRepeatedUint64() {
  4065. result.repeatedUint64_ = pbc::Lists<ulong>.Empty;
  4066. return this;
  4067. }
  4068. // repeated sint32 repeated_sint32 = 35;
  4069. public scg::IList<int> RepeatedSint32List {
  4070. get { return pbc::Lists<int>.AsReadOnly(result.repeatedSint32_); }
  4071. }
  4072. public int RepeatedSint32Count {
  4073. get { return result.RepeatedSint32Count; }
  4074. }
  4075. public int GetRepeatedSint32(int index) {
  4076. return result.GetRepeatedSint32(index);
  4077. }
  4078. public Builder SetRepeatedSint32(int index, int value) {
  4079. result.repeatedSint32_[index] = value;
  4080. return this;
  4081. }
  4082. public Builder AddRepeatedSint32(int value) {
  4083. if (result.repeatedSint32_.Count == 0) {
  4084. result.repeatedSint32_ = new scg::List<int>();
  4085. }
  4086. result.repeatedSint32_.Add(value);
  4087. return this;
  4088. }
  4089. public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) {
  4090. if (result.repeatedSint32_.Count == 0) {
  4091. result.repeatedSint32_ = new scg::List<int>();
  4092. }
  4093. base.AddRange(values, result.repeatedSint32_);
  4094. return this;
  4095. }
  4096. public Builder ClearRepeatedSint32() {
  4097. result.repeatedSint32_ = pbc::Lists<int>.Empty;
  4098. return this;
  4099. }
  4100. // repeated sint64 repeated_sint64 = 36;
  4101. public scg::IList<long> RepeatedSint64List {
  4102. get { return pbc::Lists<long>.AsReadOnly(result.repeatedSint64_); }
  4103. }
  4104. public int RepeatedSint64Count {
  4105. get { return result.RepeatedSint64Count; }
  4106. }
  4107. public long GetRepeatedSint64(int index) {
  4108. return result.GetRepeatedSint64(index);
  4109. }
  4110. public Builder SetRepeatedSint64(int index, long value) {
  4111. result.repeatedSint64_[index] = value;
  4112. return this;
  4113. }
  4114. public Builder AddRepeatedSint64(long value) {
  4115. if (result.repeatedSint64_.Count == 0) {
  4116. result.repeatedSint64_ = new scg::List<long>();
  4117. }
  4118. result.repeatedSint64_.Add(value);
  4119. return this;
  4120. }
  4121. public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) {
  4122. if (result.repeatedSint64_.Count == 0) {
  4123. result.repeatedSint64_ = new scg::List<long>();
  4124. }
  4125. base.AddRange(values, result.repeatedSint64_);
  4126. return this;
  4127. }
  4128. public Builder ClearRepeatedSint64() {
  4129. result.repeatedSint64_ = pbc::Lists<long>.Empty;
  4130. return this;
  4131. }
  4132. // repeated fixed32 repeated_fixed32 = 37;
  4133. public scg::IList<uint> RepeatedFixed32List {
  4134. get { return pbc::Lists<uint>.AsReadOnly(result.repeatedFixed32_); }
  4135. }
  4136. public int RepeatedFixed32Count {
  4137. get { return result.RepeatedFixed32Count; }
  4138. }
  4139. public uint GetRepeatedFixed32(int index) {
  4140. return result.GetRepeatedFixed32(index);
  4141. }
  4142. public Builder SetRepeatedFixed32(int index, uint value) {
  4143. result.repeatedFixed32_[index] = value;
  4144. return this;
  4145. }
  4146. public Builder AddRepeatedFixed32(uint value) {
  4147. if (result.repeatedFixed32_.Count == 0) {
  4148. result.repeatedFixed32_ = new scg::List<uint>();
  4149. }
  4150. result.repeatedFixed32_.Add(value);
  4151. return this;
  4152. }
  4153. public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
  4154. if (result.repeatedFixed32_.Count == 0) {
  4155. result.repeatedFixed32_ = new scg::List<uint>();
  4156. }
  4157. base.AddRange(values, result.repeatedFixed32_);
  4158. return this;
  4159. }
  4160. public Builder ClearRepeatedFixed32() {
  4161. result.repeatedFixed32_ = pbc::Lists<uint>.Empty;
  4162. return this;
  4163. }
  4164. // repeated fixed64 repeated_fixed64 = 38;
  4165. public scg::IList<ulong> RepeatedFixed64List {
  4166. get { return pbc::Lists<ulong>.AsReadOnly(result.repeatedFixed64_); }
  4167. }
  4168. public int RepeatedFixed64Count {
  4169. get { return result.RepeatedFixed64Count; }
  4170. }
  4171. public ulong GetRepeatedFixed64(int index) {
  4172. return result.GetRepeatedFixed64(index);
  4173. }
  4174. public Builder SetRepeatedFixed64(int index, ulong value) {
  4175. result.repeatedFixed64_[index] = value;
  4176. return this;
  4177. }
  4178. public Builder AddRepeatedFixed64(ulong value) {
  4179. if (result.repeatedFixed64_.Count == 0) {
  4180. result.repeatedFixed64_ = new scg::List<ulong>();
  4181. }
  4182. result.repeatedFixed64_.Add(value);
  4183. return this;
  4184. }
  4185. public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
  4186. if (result.repeatedFixed64_.Count == 0) {
  4187. result.repeatedFixed64_ = new scg::List<ulong>();
  4188. }
  4189. base.AddRange(values, result.repeatedFixed64_);
  4190. return this;
  4191. }
  4192. public Builder ClearRepeatedFixed64() {
  4193. result.repeatedFixed64_ = pbc::Lists<ulong>.Empty;
  4194. return this;
  4195. }
  4196. // repeated sfixed32 repeated_sfixed32 = 39;
  4197. public scg::IList<int> RepeatedSfixed32List {
  4198. get { return pbc::Lists<int>.AsReadOnly(result.repeatedSfixed32_); }
  4199. }
  4200. public int RepeatedSfixed32Count {
  4201. get { return result.RepeatedSfixed32Count; }
  4202. }
  4203. public int GetRepeatedSfixed32(int index) {
  4204. return result.GetRepeatedSfixed32(index);
  4205. }
  4206. public Builder SetRepeatedSfixed32(int index, int value) {
  4207. result.repeatedSfixed32_[index] = value;
  4208. return this;
  4209. }
  4210. public Builder AddRepeatedSfixed32(int value) {
  4211. if (result.repeatedSfixed32_.Count == 0) {
  4212. result.repeatedSfixed32_ = new scg::List<int>();
  4213. }
  4214. result.repeatedSfixed32_.Add(value);
  4215. return this;
  4216. }
  4217. public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) {
  4218. if (result.repeatedSfixed32_.Count == 0) {
  4219. result.repeatedSfixed32_ = new scg::List<int>();
  4220. }
  4221. base.AddRange(values, result.repeatedSfixed32_);
  4222. return this;
  4223. }
  4224. public Builder ClearRepeatedSfixed32() {
  4225. result.repeatedSfixed32_ = pbc::Lists<int>.Empty;
  4226. return this;
  4227. }
  4228. // repeated sfixed64 repeated_sfixed64 = 40;
  4229. public scg::IList<long> RepeatedSfixed64List {
  4230. get { return pbc::Lists<long>.AsReadOnly(result.repeatedSfixed64_); }
  4231. }
  4232. public int RepeatedSfixed64Count {
  4233. get { return result.RepeatedSfixed64Count; }
  4234. }
  4235. public long GetRepeatedSfixed64(int index) {
  4236. return result.GetRepeatedSfixed64(index);
  4237. }
  4238. public Builder SetRepeatedSfixed64(int index, long value) {
  4239. result.repeatedSfixed64_[index] = value;
  4240. return this;
  4241. }
  4242. public Builder AddRepeatedSfixed64(long value) {
  4243. if (result.repeatedSfixed64_.Count == 0) {
  4244. result.repeatedSfixed64_ = new scg::List<long>();
  4245. }
  4246. result.repeatedSfixed64_.Add(value);
  4247. return this;
  4248. }
  4249. public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) {
  4250. if (result.repeatedSfixed64_.Count == 0) {
  4251. result.repeatedSfixed64_ = new scg::List<long>();
  4252. }
  4253. base.AddRange(values, result.repeatedSfixed64_);
  4254. return this;
  4255. }
  4256. public Builder ClearRepeatedSfixed64() {
  4257. result.repeatedSfixed64_ = pbc::Lists<long>.Empty;
  4258. return this;
  4259. }
  4260. // repeated float repeated_float = 41;
  4261. public scg::IList<float> RepeatedFloatList {
  4262. get { return pbc::Lists<float>.AsReadOnly(result.repeatedFloat_); }
  4263. }
  4264. public int RepeatedFloatCount {
  4265. get { return result.RepeatedFloatCount; }
  4266. }
  4267. public float GetRepeatedFloat(int index) {
  4268. return result.GetRepeatedFloat(index);
  4269. }
  4270. public Builder SetRepeatedFloat(int index, float value) {
  4271. result.repeatedFloat_[index] = value;
  4272. return this;
  4273. }
  4274. public Builder AddRepeatedFloat(float value) {
  4275. if (result.repeatedFloat_.Count == 0) {
  4276. result.repeatedFloat_ = new scg::List<float>();
  4277. }
  4278. result.repeatedFloat_.Add(value);
  4279. return this;
  4280. }
  4281. public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
  4282. if (result.repeatedFloat_.Count == 0) {
  4283. result.repeatedFloat_ = new scg::List<float>();
  4284. }
  4285. base.AddRange(values, result.repeatedFloat_);
  4286. return this;
  4287. }
  4288. public Builder ClearRepeatedFloat() {
  4289. result.repeatedFloat_ = pbc::Lists<float>.Empty;
  4290. return this;
  4291. }
  4292. // repeated double repeated_double = 42;
  4293. public scg::IList<double> RepeatedDoubleList {
  4294. get { return pbc::Lists<double>.AsReadOnly(result.repeatedDouble_); }
  4295. }
  4296. public int RepeatedDoubleCount {
  4297. get { return result.RepeatedDoubleCount; }
  4298. }
  4299. public double GetRepeatedDouble(int index) {
  4300. return result.GetRepeatedDouble(index);
  4301. }
  4302. public Builder SetRepeatedDouble(int index, double value) {
  4303. result.repeatedDouble_[index] = value;
  4304. return this;
  4305. }
  4306. public Builder AddRepeatedDouble(double value) {
  4307. if (result.repeatedDouble_.Count == 0) {
  4308. result.repeatedDouble_ = new scg::List<double>();
  4309. }
  4310. result.repeatedDouble_.Add(value);
  4311. return this;
  4312. }
  4313. public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) {
  4314. if (result.repeatedDouble_.Count == 0) {
  4315. result.repeatedDouble_ = new scg::List<double>();
  4316. }
  4317. base.AddRange(values, result.repeatedDouble_);
  4318. return this;
  4319. }
  4320. public Builder ClearRepeatedDouble() {
  4321. result.repeatedDouble_ = pbc::Lists<double>.Empty;
  4322. return this;
  4323. }
  4324. // repeated bool repeated_bool = 43;
  4325. public scg::IList<bool> RepeatedBoolList {
  4326. get { return pbc::Lists<bool>.AsReadOnly(result.repeatedBool_); }
  4327. }
  4328. public int RepeatedBoolCount {
  4329. get { return result.RepeatedBoolCount; }
  4330. }
  4331. public bool GetRepeatedBool(int index) {
  4332. return result.GetRepeatedBool(index);
  4333. }
  4334. public Builder SetRepeatedBool(int index, bool value) {
  4335. result.repeatedBool_[index] = value;
  4336. return this;
  4337. }
  4338. public Builder AddRepeatedBool(bool value) {
  4339. if (result.repeatedBool_.Count == 0) {
  4340. result.repeatedBool_ = new scg::List<bool>();
  4341. }
  4342. result.repeatedBool_.Add(value);
  4343. return this;
  4344. }
  4345. public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) {
  4346. if (result.repeatedBool_.Count == 0) {
  4347. result.repeatedBool_ = new scg::List<bool>();
  4348. }
  4349. base.AddRange(values, result.repeatedBool_);
  4350. return this;
  4351. }
  4352. public Builder ClearRepeatedBool() {
  4353. result.repeatedBool_ = pbc::Lists<bool>.Empty;
  4354. return this;
  4355. }
  4356. // repeated string repeated_string = 44;
  4357. public scg::IList<string> RepeatedStringList {
  4358. get { return pbc::Lists<string>.AsReadOnly(result.repeatedString_); }
  4359. }
  4360. public int RepeatedStringCount {
  4361. get { return result.RepeatedStringCount; }
  4362. }
  4363. public string GetRepeatedString(int index) {
  4364. return result.GetRepeatedString(index);
  4365. }
  4366. public Builder SetRepeatedString(int index, string value) {
  4367. result.repeatedString_[index] = value;
  4368. return this;
  4369. }
  4370. public Builder AddRepeatedString(string value) {
  4371. if (result.repeatedString_.Count == 0) {
  4372. result.repeatedString_ = new scg::List<string>();
  4373. }
  4374. result.repeatedString_.Add(value);
  4375. return this;
  4376. }
  4377. public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) {
  4378. if (result.repeatedString_.Count == 0) {
  4379. result.repeatedString_ = new scg::List<string>();
  4380. }
  4381. base.AddRange(values, result.repeatedString_);
  4382. return this;
  4383. }
  4384. public Builder ClearRepeatedString() {
  4385. result.repeatedString_ = pbc::Lists<string>.Empty;
  4386. return this;
  4387. }
  4388. // repeated bytes repeated_bytes = 45;
  4389. public scg::IList<pb::ByteString> RepeatedBytesList {
  4390. get { return pbc::Lists<pb::ByteString>.AsReadOnly(result.repeatedBytes_); }
  4391. }
  4392. public int RepeatedBytesCount {
  4393. get { return result.RepeatedBytesCount; }
  4394. }
  4395. public pb::ByteString GetRepeatedBytes(int index) {
  4396. return result.GetRepeatedBytes(index);
  4397. }
  4398. public Builder SetRepeatedBytes(int index, pb::ByteString value) {
  4399. result.repeatedBytes_[index] = value;
  4400. return this;
  4401. }
  4402. public Builder AddRepeatedBytes(pb::ByteString value) {
  4403. if (result.repeatedBytes_.Count == 0) {
  4404. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  4405. }
  4406. result.repeatedBytes_.Add(value);
  4407. return this;
  4408. }
  4409. public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) {
  4410. if (result.repeatedBytes_.Count == 0) {
  4411. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  4412. }
  4413. base.AddRange(values, result.repeatedBytes_);
  4414. return this;
  4415. }
  4416. public Builder ClearRepeatedBytes() {
  4417. result.repeatedBytes_ = pbc::Lists<pb::ByteString>.Empty;
  4418. return this;
  4419. }
  4420. // repeated group RepeatedGroup = 46 {
  4421. public scg::IList<self::TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
  4422. get { return pbc::Lists.AsReadOnly(result.repeatedGroup_); }
  4423. }
  4424. public int RepeatedGroupCount {
  4425. get { return result.RepeatedGroupCount; }
  4426. }
  4427. public self::TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
  4428. return result.GetRepeatedGroup(index);
  4429. }
  4430. public Builder SetRepeatedGroup(int index, self::TestAllTypes.Types.RepeatedGroup value) {
  4431. result.repeatedGroup_[index] = value;
  4432. return this;
  4433. }
  4434. public Builder SetRepeatedGroup(int index, self::TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
  4435. result.repeatedGroup_[index] = builderForValue.Build();
  4436. return this;
  4437. }
  4438. public Builder AddRepeatedGroup(self::TestAllTypes.Types.RepeatedGroup value) {
  4439. if (result.repeatedGroup_ == pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty) {
  4440. result.repeatedGroup_ = new scg::List<self::TestAllTypes.Types.RepeatedGroup>();
  4441. }
  4442. result.repeatedGroup_.Add(value);
  4443. return this;
  4444. }
  4445. public Builder AddRepeatedGroup(self::TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
  4446. if (result.repeatedGroup_ == pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty) {
  4447. result.repeatedGroup_ = new scg::List<self::TestAllTypes.Types.RepeatedGroup>();
  4448. }
  4449. result.repeatedGroup_.Add(builderForValue.Build());
  4450. return this;
  4451. }
  4452. public Builder AddRangeRepeatedGroup(scg::IEnumerable<self::TestAllTypes.Types.RepeatedGroup> values) {
  4453. if (result.repeatedGroup_ == pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty) {
  4454. result.repeatedGroup_ = new scg::List<self::TestAllTypes.Types.RepeatedGroup>();
  4455. }
  4456. base.AddRange(values, result.repeatedGroup_);
  4457. return this;
  4458. }
  4459. public Builder ClearRepeatedGroup() {
  4460. result.repeatedGroup_ = pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty;
  4461. return this;
  4462. }
  4463. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  4464. public scg::IList<self::TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
  4465. get { return pbc::Lists.AsReadOnly(result.repeatedNestedMessage_); }
  4466. }
  4467. public int RepeatedNestedMessageCount {
  4468. get { return result.RepeatedNestedMessageCount; }
  4469. }
  4470. public self::TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
  4471. return result.GetRepeatedNestedMessage(index);
  4472. }
  4473. public Builder SetRepeatedNestedMessage(int index, self::TestAllTypes.Types.NestedMessage value) {
  4474. result.repeatedNestedMessage_[index] = value;
  4475. return this;
  4476. }
  4477. public Builder SetRepeatedNestedMessage(int index, self::TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  4478. result.repeatedNestedMessage_[index] = builderForValue.Build();
  4479. return this;
  4480. }
  4481. public Builder AddRepeatedNestedMessage(self::TestAllTypes.Types.NestedMessage value) {
  4482. if (result.repeatedNestedMessage_ == pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty) {
  4483. result.repeatedNestedMessage_ = new scg::List<self::TestAllTypes.Types.NestedMessage>();
  4484. }
  4485. result.repeatedNestedMessage_.Add(value);
  4486. return this;
  4487. }
  4488. public Builder AddRepeatedNestedMessage(self::TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  4489. if (result.repeatedNestedMessage_ == pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty) {
  4490. result.repeatedNestedMessage_ = new scg::List<self::TestAllTypes.Types.NestedMessage>();
  4491. }
  4492. result.repeatedNestedMessage_.Add(builderForValue.Build());
  4493. return this;
  4494. }
  4495. public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<self::TestAllTypes.Types.NestedMessage> values) {
  4496. if (result.repeatedNestedMessage_ == pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty) {
  4497. result.repeatedNestedMessage_ = new scg::List<self::TestAllTypes.Types.NestedMessage>();
  4498. }
  4499. base.AddRange(values, result.repeatedNestedMessage_);
  4500. return this;
  4501. }
  4502. public Builder ClearRepeatedNestedMessage() {
  4503. result.repeatedNestedMessage_ = pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty;
  4504. return this;
  4505. }
  4506. // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
  4507. public scg::IList<self::ForeignMessage> RepeatedForeignMessageList {
  4508. get { return pbc::Lists.AsReadOnly(result.repeatedForeignMessage_); }
  4509. }
  4510. public int RepeatedForeignMessageCount {
  4511. get { return result.RepeatedForeignMessageCount; }
  4512. }
  4513. public self::ForeignMessage GetRepeatedForeignMessage(int index) {
  4514. return result.GetRepeatedForeignMessage(index);
  4515. }
  4516. public Builder SetRepeatedForeignMessage(int index, self::ForeignMessage value) {
  4517. result.repeatedForeignMessage_[index] = value;
  4518. return this;
  4519. }
  4520. public Builder SetRepeatedForeignMessage(int index, self::ForeignMessage.Builder builderForValue) {
  4521. result.repeatedForeignMessage_[index] = builderForValue.Build();
  4522. return this;
  4523. }
  4524. public Builder AddRepeatedForeignMessage(self::ForeignMessage value) {
  4525. if (result.repeatedForeignMessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  4526. result.repeatedForeignMessage_ = new scg::List<self::ForeignMessage>();
  4527. }
  4528. result.repeatedForeignMessage_.Add(value);
  4529. return this;
  4530. }
  4531. public Builder AddRepeatedForeignMessage(self::ForeignMessage.Builder builderForValue) {
  4532. if (result.repeatedForeignMessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  4533. result.repeatedForeignMessage_ = new scg::List<self::ForeignMessage>();
  4534. }
  4535. result.repeatedForeignMessage_.Add(builderForValue.Build());
  4536. return this;
  4537. }
  4538. public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<self::ForeignMessage> values) {
  4539. if (result.repeatedForeignMessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  4540. result.repeatedForeignMessage_ = new scg::List<self::ForeignMessage>();
  4541. }
  4542. base.AddRange(values, result.repeatedForeignMessage_);
  4543. return this;
  4544. }
  4545. public Builder ClearRepeatedForeignMessage() {
  4546. result.repeatedForeignMessage_ = pbc::Lists<self::ForeignMessage>.Empty;
  4547. return this;
  4548. }
  4549. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  4550. public scg::IList<self::ImportMessage> RepeatedImportMessageList {
  4551. get { return pbc::Lists.AsReadOnly(result.repeatedImportMessage_); }
  4552. }
  4553. public int RepeatedImportMessageCount {
  4554. get { return result.RepeatedImportMessageCount; }
  4555. }
  4556. public self::ImportMessage GetRepeatedImportMessage(int index) {
  4557. return result.GetRepeatedImportMessage(index);
  4558. }
  4559. public Builder SetRepeatedImportMessage(int index, self::ImportMessage value) {
  4560. result.repeatedImportMessage_[index] = value;
  4561. return this;
  4562. }
  4563. public Builder SetRepeatedImportMessage(int index, self::ImportMessage.Builder builderForValue) {
  4564. result.repeatedImportMessage_[index] = builderForValue.Build();
  4565. return this;
  4566. }
  4567. public Builder AddRepeatedImportMessage(self::ImportMessage value) {
  4568. if (result.repeatedImportMessage_ == pbc::Lists<self::ImportMessage>.Empty) {
  4569. result.repeatedImportMessage_ = new scg::List<self::ImportMessage>();
  4570. }
  4571. result.repeatedImportMessage_.Add(value);
  4572. return this;
  4573. }
  4574. public Builder AddRepeatedImportMessage(self::ImportMessage.Builder builderForValue) {
  4575. if (result.repeatedImportMessage_ == pbc::Lists<self::ImportMessage>.Empty) {
  4576. result.repeatedImportMessage_ = new scg::List<self::ImportMessage>();
  4577. }
  4578. result.repeatedImportMessage_.Add(builderForValue.Build());
  4579. return this;
  4580. }
  4581. public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<self::ImportMessage> values) {
  4582. if (result.repeatedImportMessage_ == pbc::Lists<self::ImportMessage>.Empty) {
  4583. result.repeatedImportMessage_ = new scg::List<self::ImportMessage>();
  4584. }
  4585. base.AddRange(values, result.repeatedImportMessage_);
  4586. return this;
  4587. }
  4588. public Builder ClearRepeatedImportMessage() {
  4589. result.repeatedImportMessage_ = pbc::Lists<self::ImportMessage>.Empty;
  4590. return this;
  4591. }
  4592. // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  4593. public scg::IList<self::TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
  4594. get { return pbc::Lists.AsReadOnly(result.repeatedNestedEnum_); }
  4595. }
  4596. public int RepeatedNestedEnumCount {
  4597. get { return result.RepeatedNestedEnumCount; }
  4598. }
  4599. public self::TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
  4600. return result.GetRepeatedNestedEnum(index);
  4601. }
  4602. public Builder SetRepeatedNestedEnum(int index, self::TestAllTypes.Types.NestedEnum value) {
  4603. result.repeatedNestedEnum_[index] = value;
  4604. return this;
  4605. }
  4606. public Builder AddRepeatedNestedEnum(self::TestAllTypes.Types.NestedEnum value) {
  4607. if (result.repeatedNestedEnum_.Count == 0) {
  4608. result.repeatedNestedEnum_ = new scg::List<self::TestAllTypes.Types.NestedEnum>();
  4609. }
  4610. result.repeatedNestedEnum_.Add(value);
  4611. return this;
  4612. }
  4613. public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<self::TestAllTypes.Types.NestedEnum> values) {
  4614. if (result.repeatedNestedEnum_.Count == 0) {
  4615. result.repeatedNestedEnum_ = new scg::List<self::TestAllTypes.Types.NestedEnum>();
  4616. }
  4617. base.AddRange(values, result.repeatedNestedEnum_);
  4618. return this;
  4619. }
  4620. public Builder ClearRepeatedNestedEnum() {
  4621. result.repeatedNestedEnum_ = pbc::Lists<self::TestAllTypes.Types.NestedEnum>.Empty;
  4622. return this;
  4623. }
  4624. // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
  4625. public scg::IList<self::ForeignEnum> RepeatedForeignEnumList {
  4626. get { return pbc::Lists.AsReadOnly(result.repeatedForeignEnum_); }
  4627. }
  4628. public int RepeatedForeignEnumCount {
  4629. get { return result.RepeatedForeignEnumCount; }
  4630. }
  4631. public self::ForeignEnum GetRepeatedForeignEnum(int index) {
  4632. return result.GetRepeatedForeignEnum(index);
  4633. }
  4634. public Builder SetRepeatedForeignEnum(int index, self::ForeignEnum value) {
  4635. result.repeatedForeignEnum_[index] = value;
  4636. return this;
  4637. }
  4638. public Builder AddRepeatedForeignEnum(self::ForeignEnum value) {
  4639. if (result.repeatedForeignEnum_.Count == 0) {
  4640. result.repeatedForeignEnum_ = new scg::List<self::ForeignEnum>();
  4641. }
  4642. result.repeatedForeignEnum_.Add(value);
  4643. return this;
  4644. }
  4645. public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<self::ForeignEnum> values) {
  4646. if (result.repeatedForeignEnum_.Count == 0) {
  4647. result.repeatedForeignEnum_ = new scg::List<self::ForeignEnum>();
  4648. }
  4649. base.AddRange(values, result.repeatedForeignEnum_);
  4650. return this;
  4651. }
  4652. public Builder ClearRepeatedForeignEnum() {
  4653. result.repeatedForeignEnum_ = pbc::Lists<self::ForeignEnum>.Empty;
  4654. return this;
  4655. }
  4656. // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
  4657. public scg::IList<self::ImportEnum> RepeatedImportEnumList {
  4658. get { return pbc::Lists.AsReadOnly(result.repeatedImportEnum_); }
  4659. }
  4660. public int RepeatedImportEnumCount {
  4661. get { return result.RepeatedImportEnumCount; }
  4662. }
  4663. public self::ImportEnum GetRepeatedImportEnum(int index) {
  4664. return result.GetRepeatedImportEnum(index);
  4665. }
  4666. public Builder SetRepeatedImportEnum(int index, self::ImportEnum value) {
  4667. result.repeatedImportEnum_[index] = value;
  4668. return this;
  4669. }
  4670. public Builder AddRepeatedImportEnum(self::ImportEnum value) {
  4671. if (result.repeatedImportEnum_.Count == 0) {
  4672. result.repeatedImportEnum_ = new scg::List<self::ImportEnum>();
  4673. }
  4674. result.repeatedImportEnum_.Add(value);
  4675. return this;
  4676. }
  4677. public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<self::ImportEnum> values) {
  4678. if (result.repeatedImportEnum_.Count == 0) {
  4679. result.repeatedImportEnum_ = new scg::List<self::ImportEnum>();
  4680. }
  4681. base.AddRange(values, result.repeatedImportEnum_);
  4682. return this;
  4683. }
  4684. public Builder ClearRepeatedImportEnum() {
  4685. result.repeatedImportEnum_ = pbc::Lists<self::ImportEnum>.Empty;
  4686. return this;
  4687. }
  4688. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  4689. public scg::IList<string> RepeatedStringPieceList {
  4690. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringPiece_); }
  4691. }
  4692. public int RepeatedStringPieceCount {
  4693. get { return result.RepeatedStringPieceCount; }
  4694. }
  4695. public string GetRepeatedStringPiece(int index) {
  4696. return result.GetRepeatedStringPiece(index);
  4697. }
  4698. public Builder SetRepeatedStringPiece(int index, string value) {
  4699. result.repeatedStringPiece_[index] = value;
  4700. return this;
  4701. }
  4702. public Builder AddRepeatedStringPiece(string value) {
  4703. if (result.repeatedStringPiece_.Count == 0) {
  4704. result.repeatedStringPiece_ = new scg::List<string>();
  4705. }
  4706. result.repeatedStringPiece_.Add(value);
  4707. return this;
  4708. }
  4709. public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) {
  4710. if (result.repeatedStringPiece_.Count == 0) {
  4711. result.repeatedStringPiece_ = new scg::List<string>();
  4712. }
  4713. base.AddRange(values, result.repeatedStringPiece_);
  4714. return this;
  4715. }
  4716. public Builder ClearRepeatedStringPiece() {
  4717. result.repeatedStringPiece_ = pbc::Lists<string>.Empty;
  4718. return this;
  4719. }
  4720. // repeated string repeated_cord = 55 [ctype = CORD];
  4721. public scg::IList<string> RepeatedCordList {
  4722. get { return pbc::Lists<string>.AsReadOnly(result.repeatedCord_); }
  4723. }
  4724. public int RepeatedCordCount {
  4725. get { return result.RepeatedCordCount; }
  4726. }
  4727. public string GetRepeatedCord(int index) {
  4728. return result.GetRepeatedCord(index);
  4729. }
  4730. public Builder SetRepeatedCord(int index, string value) {
  4731. result.repeatedCord_[index] = value;
  4732. return this;
  4733. }
  4734. public Builder AddRepeatedCord(string value) {
  4735. if (result.repeatedCord_.Count == 0) {
  4736. result.repeatedCord_ = new scg::List<string>();
  4737. }
  4738. result.repeatedCord_.Add(value);
  4739. return this;
  4740. }
  4741. public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) {
  4742. if (result.repeatedCord_.Count == 0) {
  4743. result.repeatedCord_ = new scg::List<string>();
  4744. }
  4745. base.AddRange(values, result.repeatedCord_);
  4746. return this;
  4747. }
  4748. public Builder ClearRepeatedCord() {
  4749. result.repeatedCord_ = pbc::Lists<string>.Empty;
  4750. return this;
  4751. }
  4752. // optional int32 default_int32 = 61 [default = 41];
  4753. public bool HasDefaultInt32 {
  4754. get { return result.HasDefaultInt32; }
  4755. }
  4756. public int DefaultInt32 {
  4757. get { return result.DefaultInt32; }
  4758. set { SetDefaultInt32(value); }
  4759. }
  4760. public Builder SetDefaultInt32(int value) {
  4761. result.hasDefaultInt32 = true;
  4762. result.defaultInt32_ = value;
  4763. return this;
  4764. }
  4765. public Builder ClearDefaultInt32() {
  4766. result.hasDefaultInt32 = false;
  4767. result.defaultInt32_ = 41;
  4768. return this;
  4769. }
  4770. // optional int64 default_int64 = 62 [default = 42];
  4771. public bool HasDefaultInt64 {
  4772. get { return result.HasDefaultInt64; }
  4773. }
  4774. public long DefaultInt64 {
  4775. get { return result.DefaultInt64; }
  4776. set { SetDefaultInt64(value); }
  4777. }
  4778. public Builder SetDefaultInt64(long value) {
  4779. result.hasDefaultInt64 = true;
  4780. result.defaultInt64_ = value;
  4781. return this;
  4782. }
  4783. public Builder ClearDefaultInt64() {
  4784. result.hasDefaultInt64 = false;
  4785. result.defaultInt64_ = 42L;
  4786. return this;
  4787. }
  4788. // optional uint32 default_uint32 = 63 [default = 43];
  4789. public bool HasDefaultUint32 {
  4790. get { return result.HasDefaultUint32; }
  4791. }
  4792. public uint DefaultUint32 {
  4793. get { return result.DefaultUint32; }
  4794. set { SetDefaultUint32(value); }
  4795. }
  4796. public Builder SetDefaultUint32(uint value) {
  4797. result.hasDefaultUint32 = true;
  4798. result.defaultUint32_ = value;
  4799. return this;
  4800. }
  4801. public Builder ClearDefaultUint32() {
  4802. result.hasDefaultUint32 = false;
  4803. result.defaultUint32_ = 43;
  4804. return this;
  4805. }
  4806. // optional uint64 default_uint64 = 64 [default = 44];
  4807. public bool HasDefaultUint64 {
  4808. get { return result.HasDefaultUint64; }
  4809. }
  4810. public ulong DefaultUint64 {
  4811. get { return result.DefaultUint64; }
  4812. set { SetDefaultUint64(value); }
  4813. }
  4814. public Builder SetDefaultUint64(ulong value) {
  4815. result.hasDefaultUint64 = true;
  4816. result.defaultUint64_ = value;
  4817. return this;
  4818. }
  4819. public Builder ClearDefaultUint64() {
  4820. result.hasDefaultUint64 = false;
  4821. result.defaultUint64_ = 44UL;
  4822. return this;
  4823. }
  4824. // optional sint32 default_sint32 = 65 [default = -45];
  4825. public bool HasDefaultSint32 {
  4826. get { return result.HasDefaultSint32; }
  4827. }
  4828. public int DefaultSint32 {
  4829. get { return result.DefaultSint32; }
  4830. set { SetDefaultSint32(value); }
  4831. }
  4832. public Builder SetDefaultSint32(int value) {
  4833. result.hasDefaultSint32 = true;
  4834. result.defaultSint32_ = value;
  4835. return this;
  4836. }
  4837. public Builder ClearDefaultSint32() {
  4838. result.hasDefaultSint32 = false;
  4839. result.defaultSint32_ = -45;
  4840. return this;
  4841. }
  4842. // optional sint64 default_sint64 = 66 [default = 46];
  4843. public bool HasDefaultSint64 {
  4844. get { return result.HasDefaultSint64; }
  4845. }
  4846. public long DefaultSint64 {
  4847. get { return result.DefaultSint64; }
  4848. set { SetDefaultSint64(value); }
  4849. }
  4850. public Builder SetDefaultSint64(long value) {
  4851. result.hasDefaultSint64 = true;
  4852. result.defaultSint64_ = value;
  4853. return this;
  4854. }
  4855. public Builder ClearDefaultSint64() {
  4856. result.hasDefaultSint64 = false;
  4857. result.defaultSint64_ = 46L;
  4858. return this;
  4859. }
  4860. // optional fixed32 default_fixed32 = 67 [default = 47];
  4861. public bool HasDefaultFixed32 {
  4862. get { return result.HasDefaultFixed32; }
  4863. }
  4864. public uint DefaultFixed32 {
  4865. get { return result.DefaultFixed32; }
  4866. set { SetDefaultFixed32(value); }
  4867. }
  4868. public Builder SetDefaultFixed32(uint value) {
  4869. result.hasDefaultFixed32 = true;
  4870. result.defaultFixed32_ = value;
  4871. return this;
  4872. }
  4873. public Builder ClearDefaultFixed32() {
  4874. result.hasDefaultFixed32 = false;
  4875. result.defaultFixed32_ = 47;
  4876. return this;
  4877. }
  4878. // optional fixed64 default_fixed64 = 68 [default = 48];
  4879. public bool HasDefaultFixed64 {
  4880. get { return result.HasDefaultFixed64; }
  4881. }
  4882. public ulong DefaultFixed64 {
  4883. get { return result.DefaultFixed64; }
  4884. set { SetDefaultFixed64(value); }
  4885. }
  4886. public Builder SetDefaultFixed64(ulong value) {
  4887. result.hasDefaultFixed64 = true;
  4888. result.defaultFixed64_ = value;
  4889. return this;
  4890. }
  4891. public Builder ClearDefaultFixed64() {
  4892. result.hasDefaultFixed64 = false;
  4893. result.defaultFixed64_ = 48UL;
  4894. return this;
  4895. }
  4896. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  4897. public bool HasDefaultSfixed32 {
  4898. get { return result.HasDefaultSfixed32; }
  4899. }
  4900. public int DefaultSfixed32 {
  4901. get { return result.DefaultSfixed32; }
  4902. set { SetDefaultSfixed32(value); }
  4903. }
  4904. public Builder SetDefaultSfixed32(int value) {
  4905. result.hasDefaultSfixed32 = true;
  4906. result.defaultSfixed32_ = value;
  4907. return this;
  4908. }
  4909. public Builder ClearDefaultSfixed32() {
  4910. result.hasDefaultSfixed32 = false;
  4911. result.defaultSfixed32_ = 49;
  4912. return this;
  4913. }
  4914. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  4915. public bool HasDefaultSfixed64 {
  4916. get { return result.HasDefaultSfixed64; }
  4917. }
  4918. public long DefaultSfixed64 {
  4919. get { return result.DefaultSfixed64; }
  4920. set { SetDefaultSfixed64(value); }
  4921. }
  4922. public Builder SetDefaultSfixed64(long value) {
  4923. result.hasDefaultSfixed64 = true;
  4924. result.defaultSfixed64_ = value;
  4925. return this;
  4926. }
  4927. public Builder ClearDefaultSfixed64() {
  4928. result.hasDefaultSfixed64 = false;
  4929. result.defaultSfixed64_ = -50L;
  4930. return this;
  4931. }
  4932. // optional float default_float = 71 [default = 51.5];
  4933. public bool HasDefaultFloat {
  4934. get { return result.HasDefaultFloat; }
  4935. }
  4936. public float DefaultFloat {
  4937. get { return result.DefaultFloat; }
  4938. set { SetDefaultFloat(value); }
  4939. }
  4940. public Builder SetDefaultFloat(float value) {
  4941. result.hasDefaultFloat = true;
  4942. result.defaultFloat_ = value;
  4943. return this;
  4944. }
  4945. public Builder ClearDefaultFloat() {
  4946. result.hasDefaultFloat = false;
  4947. result.defaultFloat_ = 51.5F;
  4948. return this;
  4949. }
  4950. // optional double default_double = 72 [default = 52000];
  4951. public bool HasDefaultDouble {
  4952. get { return result.HasDefaultDouble; }
  4953. }
  4954. public double DefaultDouble {
  4955. get { return result.DefaultDouble; }
  4956. set { SetDefaultDouble(value); }
  4957. }
  4958. public Builder SetDefaultDouble(double value) {
  4959. result.hasDefaultDouble = true;
  4960. result.defaultDouble_ = value;
  4961. return this;
  4962. }
  4963. public Builder ClearDefaultDouble() {
  4964. result.hasDefaultDouble = false;
  4965. result.defaultDouble_ = 52000D;
  4966. return this;
  4967. }
  4968. // optional bool default_bool = 73 [default = true];
  4969. public bool HasDefaultBool {
  4970. get { return result.HasDefaultBool; }
  4971. }
  4972. public bool DefaultBool {
  4973. get { return result.DefaultBool; }
  4974. set { SetDefaultBool(value); }
  4975. }
  4976. public Builder SetDefaultBool(bool value) {
  4977. result.hasDefaultBool = true;
  4978. result.defaultBool_ = value;
  4979. return this;
  4980. }
  4981. public Builder ClearDefaultBool() {
  4982. result.hasDefaultBool = false;
  4983. result.defaultBool_ = true;
  4984. return this;
  4985. }
  4986. // optional string default_string = 74 [default = "hello"];
  4987. public bool HasDefaultString {
  4988. get { return result.HasDefaultString; }
  4989. }
  4990. public string DefaultString {
  4991. get { return result.DefaultString; }
  4992. set { SetDefaultString(value); }
  4993. }
  4994. public Builder SetDefaultString(string value) {
  4995. result.hasDefaultString = true;
  4996. result.defaultString_ = value;
  4997. return this;
  4998. }
  4999. public Builder ClearDefaultString() {
  5000. result.hasDefaultString = false;
  5001. result.defaultString_ = "hello";
  5002. return this;
  5003. }
  5004. // optional bytes default_bytes = 75 [default = "world"];
  5005. public bool HasDefaultBytes {
  5006. get { return result.HasDefaultBytes; }
  5007. }
  5008. public pb::ByteString DefaultBytes {
  5009. get { return result.DefaultBytes; }
  5010. set { SetDefaultBytes(value); }
  5011. }
  5012. public Builder SetDefaultBytes(pb::ByteString value) {
  5013. result.hasDefaultBytes = true;
  5014. result.defaultBytes_ = value;
  5015. return this;
  5016. }
  5017. public Builder ClearDefaultBytes() {
  5018. result.hasDefaultBytes = false;
  5019. result.defaultBytes_ = ((pb::ByteString) self::TestAllTypes.Descriptor.Fields[62].DefaultValue);
  5020. return this;
  5021. }
  5022. // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
  5023. public bool HasDefaultNestedEnum {
  5024. get { return result.HasDefaultNestedEnum; }
  5025. }
  5026. public self::TestAllTypes.Types.NestedEnum DefaultNestedEnum {
  5027. get { return result.DefaultNestedEnum; }
  5028. set { SetDefaultNestedEnum(value); }
  5029. }
  5030. public Builder SetDefaultNestedEnum(self::TestAllTypes.Types.NestedEnum value) {
  5031. result.hasDefaultNestedEnum = true;
  5032. result.defaultNestedEnum_ = value;
  5033. return this;
  5034. }
  5035. public Builder ClearDefaultNestedEnum() {
  5036. result.hasDefaultNestedEnum = false;
  5037. result.defaultNestedEnum_ = self::TestAllTypes.Types.NestedEnum.BAR;
  5038. return this;
  5039. }
  5040. // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
  5041. public bool HasDefaultForeignEnum {
  5042. get { return result.HasDefaultForeignEnum; }
  5043. }
  5044. public self::ForeignEnum DefaultForeignEnum {
  5045. get { return result.DefaultForeignEnum; }
  5046. set { SetDefaultForeignEnum(value); }
  5047. }
  5048. public Builder SetDefaultForeignEnum(self::ForeignEnum value) {
  5049. result.hasDefaultForeignEnum = true;
  5050. result.defaultForeignEnum_ = value;
  5051. return this;
  5052. }
  5053. public Builder ClearDefaultForeignEnum() {
  5054. result.hasDefaultForeignEnum = false;
  5055. result.defaultForeignEnum_ = self::ForeignEnum.FOREIGN_BAR;
  5056. return this;
  5057. }
  5058. // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
  5059. public bool HasDefaultImportEnum {
  5060. get { return result.HasDefaultImportEnum; }
  5061. }
  5062. public self::ImportEnum DefaultImportEnum {
  5063. get { return result.DefaultImportEnum; }
  5064. set { SetDefaultImportEnum(value); }
  5065. }
  5066. public Builder SetDefaultImportEnum(self::ImportEnum value) {
  5067. result.hasDefaultImportEnum = true;
  5068. result.defaultImportEnum_ = value;
  5069. return this;
  5070. }
  5071. public Builder ClearDefaultImportEnum() {
  5072. result.hasDefaultImportEnum = false;
  5073. result.defaultImportEnum_ = self::ImportEnum.IMPORT_BAR;
  5074. return this;
  5075. }
  5076. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  5077. public bool HasDefaultStringPiece {
  5078. get { return result.HasDefaultStringPiece; }
  5079. }
  5080. public string DefaultStringPiece {
  5081. get { return result.DefaultStringPiece; }
  5082. set { SetDefaultStringPiece(value); }
  5083. }
  5084. public Builder SetDefaultStringPiece(string value) {
  5085. result.hasDefaultStringPiece = true;
  5086. result.defaultStringPiece_ = value;
  5087. return this;
  5088. }
  5089. public Builder ClearDefaultStringPiece() {
  5090. result.hasDefaultStringPiece = false;
  5091. result.defaultStringPiece_ = "abc";
  5092. return this;
  5093. }
  5094. // optional string default_cord = 85 [default = "123", ctype = CORD];
  5095. public bool HasDefaultCord {
  5096. get { return result.HasDefaultCord; }
  5097. }
  5098. public string DefaultCord {
  5099. get { return result.DefaultCord; }
  5100. set { SetDefaultCord(value); }
  5101. }
  5102. public Builder SetDefaultCord(string value) {
  5103. result.hasDefaultCord = true;
  5104. result.defaultCord_ = value;
  5105. return this;
  5106. }
  5107. public Builder ClearDefaultCord() {
  5108. result.hasDefaultCord = false;
  5109. result.defaultCord_ = "123";
  5110. return this;
  5111. }
  5112. }
  5113. }
  5114. public sealed partial class ForeignMessage : pb::GeneratedMessage<ForeignMessage, ForeignMessage.Builder> {
  5115. // Use ForeignMessage.CreateBuilder() to construct.
  5116. private ForeignMessage() {}
  5117. private static readonly ForeignMessage defaultInstance = new ForeignMessage();
  5118. public static ForeignMessage DefaultInstance {
  5119. get { return defaultInstance; }
  5120. }
  5121. public override ForeignMessage DefaultInstanceForType {
  5122. get { return defaultInstance; }
  5123. }
  5124. public static pbd::MessageDescriptor Descriptor {
  5125. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__Descriptor; }
  5126. }
  5127. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5128. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; }
  5129. }
  5130. // optional int32 c = 1;
  5131. private bool hasC;
  5132. private int c_ = 0;
  5133. public bool HasC {
  5134. get { return hasC; }
  5135. }
  5136. public int C {
  5137. get { return c_; }
  5138. }
  5139. public override bool IsInitialized {
  5140. get {
  5141. return true;
  5142. }
  5143. }
  5144. public override void WriteTo(pb::CodedOutputStream output) {
  5145. if (HasC) {
  5146. output.WriteInt32(1, C);
  5147. }
  5148. UnknownFields.WriteTo(output);
  5149. }
  5150. private int memoizedSerializedSize = -1;
  5151. public override int SerializedSize {
  5152. get {
  5153. int size = memoizedSerializedSize;
  5154. if (size != -1) return size;
  5155. size = 0;
  5156. if (HasC) {
  5157. size += pb::CodedOutputStream.ComputeInt32Size(1, C);
  5158. }
  5159. size += UnknownFields.SerializedSize;
  5160. memoizedSerializedSize = size;
  5161. return size;
  5162. }
  5163. }
  5164. public static self::ForeignMessage ParseFrom(pb::ByteString data) {
  5165. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5166. }
  5167. public static self::ForeignMessage ParseFrom(pb::ByteString data,
  5168. pb::ExtensionRegistry extensionRegistry) {
  5169. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5170. .BuildParsed();
  5171. }
  5172. public static self::ForeignMessage ParseFrom(byte[] data) {
  5173. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5174. }
  5175. public static self::ForeignMessage parseFrom(byte[] data,
  5176. pb::ExtensionRegistry extensionRegistry) {
  5177. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5178. .BuildParsed();
  5179. }
  5180. public static self::ForeignMessage ParseFrom(global::System.IO.Stream input) {
  5181. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5182. }
  5183. public static self::ForeignMessage ParseFrom(
  5184. global::System.IO.Stream input,
  5185. pb::ExtensionRegistry extensionRegistry) {
  5186. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5187. .BuildParsed();
  5188. }
  5189. public static self::ForeignMessage ParseFrom(pb::CodedInputStream input) {
  5190. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5191. }
  5192. public static self::ForeignMessage ParseFrom(pb::CodedInputStream input,
  5193. pb::ExtensionRegistry extensionRegistry) {
  5194. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5195. .BuildParsed();
  5196. }
  5197. public static Builder CreateBuilder() { return new Builder(); }
  5198. public override IBuilder<self::ForeignMessage> CreateBuilderForType() { return new Builder(); }
  5199. public static Builder CreateBuilder(self::ForeignMessage prototype) {
  5200. return (Builder) new Builder().MergeFrom(prototype);
  5201. }
  5202. public sealed partial class Builder : pb::GeneratedBuilder<self::ForeignMessage, Builder> {
  5203. // Construct using self::ForeignMessage.CreateBuilder()
  5204. internal Builder() {}
  5205. self::ForeignMessage result = new self::ForeignMessage();
  5206. protected override self::ForeignMessage MessageBeingBuilt {
  5207. get { return result; }
  5208. }
  5209. public override IBuilder<self::ForeignMessage> Clear() {
  5210. result = new self::ForeignMessage();
  5211. return this;
  5212. }
  5213. public override IBuilder<self::ForeignMessage> Clone() {
  5214. return new Builder().MergeFrom(result);
  5215. }
  5216. public override pbd::MessageDescriptor DescriptorForType {
  5217. get { return self::ForeignMessage.Descriptor; }
  5218. }
  5219. public override self::ForeignMessage DefaultInstanceForType {
  5220. get { return self::ForeignMessage.DefaultInstance; }
  5221. }
  5222. public override self::ForeignMessage BuildPartial() {
  5223. self::ForeignMessage returnMe = result;
  5224. result = null;
  5225. return returnMe;
  5226. }
  5227. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  5228. return MergeFrom(data, extensionRegistry);
  5229. }
  5230. public override IBuilder MergeFrom(pb::IMessage other) {
  5231. if (other is self::ForeignMessage) {
  5232. return MergeFrom((self::ForeignMessage) other);
  5233. } else {
  5234. base.MergeFrom(other);
  5235. return this;
  5236. }
  5237. }
  5238. public override IBuilder<self::ForeignMessage> MergeFrom(self::ForeignMessage other) {
  5239. if (other == self::ForeignMessage.DefaultInstance) return this;
  5240. if (other.HasC) {
  5241. C = other.C;
  5242. }
  5243. this.MergeUnknownFields(other.UnknownFields);
  5244. return this;
  5245. }
  5246. public override IBuilder<self::ForeignMessage> MergeFrom(pb::CodedInputStream input) {
  5247. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5248. }
  5249. public override IBuilder<self::ForeignMessage> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5250. pb::UnknownFieldSet.Builder unknownFields =
  5251. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5252. while (true) {
  5253. uint tag = input.ReadTag();
  5254. switch (tag) {
  5255. case 0:
  5256. this.UnknownFields = unknownFields.Build();
  5257. return this;
  5258. default: {
  5259. if (!ParseUnknownField(input, unknownFields,
  5260. extensionRegistry, tag)) {
  5261. this.UnknownFields = unknownFields.Build();
  5262. return this;
  5263. }
  5264. break;
  5265. }
  5266. case 8: {
  5267. C = input.ReadInt32();
  5268. break;
  5269. }
  5270. }
  5271. }
  5272. }
  5273. // optional int32 c = 1;
  5274. public bool HasC {
  5275. get { return result.HasC; }
  5276. }
  5277. public int C {
  5278. get { return result.C; }
  5279. set { SetC(value); }
  5280. }
  5281. public Builder SetC(int value) {
  5282. result.hasC = true;
  5283. result.c_ = value;
  5284. return this;
  5285. }
  5286. public Builder ClearC() {
  5287. result.hasC = false;
  5288. result.c_ = 0;
  5289. return this;
  5290. }
  5291. }
  5292. }
  5293. public sealed partial class TestAllExtensions : pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder> {
  5294. // Use TestAllExtensions.CreateBuilder() to construct.
  5295. private TestAllExtensions() {}
  5296. private static readonly TestAllExtensions defaultInstance = new TestAllExtensions();
  5297. public static TestAllExtensions DefaultInstance {
  5298. get { return defaultInstance; }
  5299. }
  5300. public override TestAllExtensions DefaultInstanceForType {
  5301. get { return defaultInstance; }
  5302. }
  5303. public static pbd::MessageDescriptor Descriptor {
  5304. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__Descriptor; }
  5305. }
  5306. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5307. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable; }
  5308. }
  5309. public override bool IsInitialized {
  5310. get {
  5311. if (!ExtensionsAreInitialized) return false;
  5312. return true;
  5313. }
  5314. }
  5315. public override void WriteTo(pb::CodedOutputStream output) {
  5316. pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  5317. extensionWriter.WriteUntil(536870912, output);
  5318. UnknownFields.WriteTo(output);
  5319. }
  5320. private int memoizedSerializedSize = -1;
  5321. public override int SerializedSize {
  5322. get {
  5323. int size = memoizedSerializedSize;
  5324. if (size != -1) return size;
  5325. size = 0;
  5326. size += ExtensionsSerializedSize;
  5327. size += UnknownFields.SerializedSize;
  5328. memoizedSerializedSize = size;
  5329. return size;
  5330. }
  5331. }
  5332. public static self::TestAllExtensions ParseFrom(pb::ByteString data) {
  5333. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5334. }
  5335. public static self::TestAllExtensions ParseFrom(pb::ByteString data,
  5336. pb::ExtensionRegistry extensionRegistry) {
  5337. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5338. .BuildParsed();
  5339. }
  5340. public static self::TestAllExtensions ParseFrom(byte[] data) {
  5341. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5342. }
  5343. public static self::TestAllExtensions parseFrom(byte[] data,
  5344. pb::ExtensionRegistry extensionRegistry) {
  5345. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5346. .BuildParsed();
  5347. }
  5348. public static self::TestAllExtensions ParseFrom(global::System.IO.Stream input) {
  5349. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5350. }
  5351. public static self::TestAllExtensions ParseFrom(
  5352. global::System.IO.Stream input,
  5353. pb::ExtensionRegistry extensionRegistry) {
  5354. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5355. .BuildParsed();
  5356. }
  5357. public static self::TestAllExtensions ParseFrom(pb::CodedInputStream input) {
  5358. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5359. }
  5360. public static self::TestAllExtensions ParseFrom(pb::CodedInputStream input,
  5361. pb::ExtensionRegistry extensionRegistry) {
  5362. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5363. .BuildParsed();
  5364. }
  5365. public static Builder CreateBuilder() { return new Builder(); }
  5366. public override IBuilder<self::TestAllExtensions> CreateBuilderForType() { return new Builder(); }
  5367. public static Builder CreateBuilder(self::TestAllExtensions prototype) {
  5368. return (Builder) new Builder().MergeFrom(prototype);
  5369. }
  5370. public sealed partial class Builder : pb::ExtendableBuilder<self::TestAllExtensions, self::TestAllExtensions.Builder> {
  5371. // Construct using self::TestAllExtensions.CreateBuilder()
  5372. internal Builder() {}
  5373. self::TestAllExtensions result = new self::TestAllExtensions();
  5374. protected override self::TestAllExtensions MessageBeingBuilt {
  5375. get { return result; }
  5376. }
  5377. public override IBuilder<self::TestAllExtensions> Clear() {
  5378. result = new self::TestAllExtensions();
  5379. return this;
  5380. }
  5381. public override IBuilder<self::TestAllExtensions> Clone() {
  5382. return new Builder().MergeFrom(result);
  5383. }
  5384. public override pbd::MessageDescriptor DescriptorForType {
  5385. get { return self::TestAllExtensions.Descriptor; }
  5386. }
  5387. public override self::TestAllExtensions DefaultInstanceForType {
  5388. get { return self::TestAllExtensions.DefaultInstance; }
  5389. }
  5390. public override self::TestAllExtensions BuildPartial() {
  5391. self::TestAllExtensions returnMe = result;
  5392. result = null;
  5393. return returnMe;
  5394. }
  5395. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  5396. return MergeFrom(data, extensionRegistry);
  5397. }
  5398. public override IBuilder MergeFrom(pb::IMessage other) {
  5399. if (other is self::TestAllExtensions) {
  5400. return MergeFrom((self::TestAllExtensions) other);
  5401. } else {
  5402. base.MergeFrom(other);
  5403. return this;
  5404. }
  5405. }
  5406. public override IBuilder<self::TestAllExtensions> MergeFrom(self::TestAllExtensions other) {
  5407. if (other == self::TestAllExtensions.DefaultInstance) return this;
  5408. this.MergeUnknownFields(other.UnknownFields);
  5409. return this;
  5410. }
  5411. public override IBuilder<self::TestAllExtensions> MergeFrom(pb::CodedInputStream input) {
  5412. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5413. }
  5414. public override IBuilder<self::TestAllExtensions> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5415. pb::UnknownFieldSet.Builder unknownFields =
  5416. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5417. while (true) {
  5418. uint tag = input.ReadTag();
  5419. switch (tag) {
  5420. case 0:
  5421. this.UnknownFields = unknownFields.Build();
  5422. return this;
  5423. default: {
  5424. if (!ParseUnknownField(input, unknownFields,
  5425. extensionRegistry, tag)) {
  5426. this.UnknownFields = unknownFields.Build();
  5427. return this;
  5428. }
  5429. break;
  5430. }
  5431. }
  5432. }
  5433. }
  5434. }
  5435. }
  5436. public sealed partial class OptionalGroup_extension : pb::GeneratedMessage<OptionalGroup_extension, OptionalGroup_extension.Builder> {
  5437. // Use OptionalGroup_extension.CreateBuilder() to construct.
  5438. private OptionalGroup_extension() {}
  5439. private static readonly OptionalGroup_extension defaultInstance = new OptionalGroup_extension();
  5440. public static OptionalGroup_extension DefaultInstance {
  5441. get { return defaultInstance; }
  5442. }
  5443. public override OptionalGroup_extension DefaultInstanceForType {
  5444. get { return defaultInstance; }
  5445. }
  5446. public static pbd::MessageDescriptor Descriptor {
  5447. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor; }
  5448. }
  5449. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5450. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable; }
  5451. }
  5452. // optional int32 a = 17;
  5453. private bool hasA;
  5454. private int a_ = 0;
  5455. public bool HasA {
  5456. get { return hasA; }
  5457. }
  5458. public int A {
  5459. get { return a_; }
  5460. }
  5461. public override bool IsInitialized {
  5462. get {
  5463. return true;
  5464. }
  5465. }
  5466. public override void WriteTo(pb::CodedOutputStream output) {
  5467. if (HasA) {
  5468. output.WriteInt32(17, A);
  5469. }
  5470. UnknownFields.WriteTo(output);
  5471. }
  5472. private int memoizedSerializedSize = -1;
  5473. public override int SerializedSize {
  5474. get {
  5475. int size = memoizedSerializedSize;
  5476. if (size != -1) return size;
  5477. size = 0;
  5478. if (HasA) {
  5479. size += pb::CodedOutputStream.ComputeInt32Size(17, A);
  5480. }
  5481. size += UnknownFields.SerializedSize;
  5482. memoizedSerializedSize = size;
  5483. return size;
  5484. }
  5485. }
  5486. public static self::OptionalGroup_extension ParseFrom(pb::ByteString data) {
  5487. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5488. }
  5489. public static self::OptionalGroup_extension ParseFrom(pb::ByteString data,
  5490. pb::ExtensionRegistry extensionRegistry) {
  5491. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5492. .BuildParsed();
  5493. }
  5494. public static self::OptionalGroup_extension ParseFrom(byte[] data) {
  5495. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5496. }
  5497. public static self::OptionalGroup_extension parseFrom(byte[] data,
  5498. pb::ExtensionRegistry extensionRegistry) {
  5499. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5500. .BuildParsed();
  5501. }
  5502. public static self::OptionalGroup_extension ParseFrom(global::System.IO.Stream input) {
  5503. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5504. }
  5505. public static self::OptionalGroup_extension ParseFrom(
  5506. global::System.IO.Stream input,
  5507. pb::ExtensionRegistry extensionRegistry) {
  5508. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5509. .BuildParsed();
  5510. }
  5511. public static self::OptionalGroup_extension ParseFrom(pb::CodedInputStream input) {
  5512. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5513. }
  5514. public static self::OptionalGroup_extension ParseFrom(pb::CodedInputStream input,
  5515. pb::ExtensionRegistry extensionRegistry) {
  5516. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5517. .BuildParsed();
  5518. }
  5519. public static Builder CreateBuilder() { return new Builder(); }
  5520. public override IBuilder<self::OptionalGroup_extension> CreateBuilderForType() { return new Builder(); }
  5521. public static Builder CreateBuilder(self::OptionalGroup_extension prototype) {
  5522. return (Builder) new Builder().MergeFrom(prototype);
  5523. }
  5524. public sealed partial class Builder : pb::GeneratedBuilder<self::OptionalGroup_extension, Builder> {
  5525. // Construct using self::OptionalGroup_extension.CreateBuilder()
  5526. internal Builder() {}
  5527. self::OptionalGroup_extension result = new self::OptionalGroup_extension();
  5528. protected override self::OptionalGroup_extension MessageBeingBuilt {
  5529. get { return result; }
  5530. }
  5531. public override IBuilder<self::OptionalGroup_extension> Clear() {
  5532. result = new self::OptionalGroup_extension();
  5533. return this;
  5534. }
  5535. public override IBuilder<self::OptionalGroup_extension> Clone() {
  5536. return new Builder().MergeFrom(result);
  5537. }
  5538. public override pbd::MessageDescriptor DescriptorForType {
  5539. get { return self::OptionalGroup_extension.Descriptor; }
  5540. }
  5541. public override self::OptionalGroup_extension DefaultInstanceForType {
  5542. get { return self::OptionalGroup_extension.DefaultInstance; }
  5543. }
  5544. public override self::OptionalGroup_extension BuildPartial() {
  5545. self::OptionalGroup_extension returnMe = result;
  5546. result = null;
  5547. return returnMe;
  5548. }
  5549. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  5550. return MergeFrom(data, extensionRegistry);
  5551. }
  5552. public override IBuilder MergeFrom(pb::IMessage other) {
  5553. if (other is self::OptionalGroup_extension) {
  5554. return MergeFrom((self::OptionalGroup_extension) other);
  5555. } else {
  5556. base.MergeFrom(other);
  5557. return this;
  5558. }
  5559. }
  5560. public override IBuilder<self::OptionalGroup_extension> MergeFrom(self::OptionalGroup_extension other) {
  5561. if (other == self::OptionalGroup_extension.DefaultInstance) return this;
  5562. if (other.HasA) {
  5563. A = other.A;
  5564. }
  5565. this.MergeUnknownFields(other.UnknownFields);
  5566. return this;
  5567. }
  5568. public override IBuilder<self::OptionalGroup_extension> MergeFrom(pb::CodedInputStream input) {
  5569. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5570. }
  5571. public override IBuilder<self::OptionalGroup_extension> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5572. pb::UnknownFieldSet.Builder unknownFields =
  5573. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5574. while (true) {
  5575. uint tag = input.ReadTag();
  5576. switch (tag) {
  5577. case 0:
  5578. this.UnknownFields = unknownFields.Build();
  5579. return this;
  5580. default: {
  5581. if (!ParseUnknownField(input, unknownFields,
  5582. extensionRegistry, tag)) {
  5583. this.UnknownFields = unknownFields.Build();
  5584. return this;
  5585. }
  5586. break;
  5587. }
  5588. case 136: {
  5589. A = input.ReadInt32();
  5590. break;
  5591. }
  5592. }
  5593. }
  5594. }
  5595. // optional int32 a = 17;
  5596. public bool HasA {
  5597. get { return result.HasA; }
  5598. }
  5599. public int A {
  5600. get { return result.A; }
  5601. set { SetA(value); }
  5602. }
  5603. public Builder SetA(int value) {
  5604. result.hasA = true;
  5605. result.a_ = value;
  5606. return this;
  5607. }
  5608. public Builder ClearA() {
  5609. result.hasA = false;
  5610. result.a_ = 0;
  5611. return this;
  5612. }
  5613. }
  5614. }
  5615. public sealed partial class RepeatedGroup_extension : pb::GeneratedMessage<RepeatedGroup_extension, RepeatedGroup_extension.Builder> {
  5616. // Use RepeatedGroup_extension.CreateBuilder() to construct.
  5617. private RepeatedGroup_extension() {}
  5618. private static readonly RepeatedGroup_extension defaultInstance = new RepeatedGroup_extension();
  5619. public static RepeatedGroup_extension DefaultInstance {
  5620. get { return defaultInstance; }
  5621. }
  5622. public override RepeatedGroup_extension DefaultInstanceForType {
  5623. get { return defaultInstance; }
  5624. }
  5625. public static pbd::MessageDescriptor Descriptor {
  5626. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor; }
  5627. }
  5628. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5629. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable; }
  5630. }
  5631. // optional int32 a = 47;
  5632. private bool hasA;
  5633. private int a_ = 0;
  5634. public bool HasA {
  5635. get { return hasA; }
  5636. }
  5637. public int A {
  5638. get { return a_; }
  5639. }
  5640. public override bool IsInitialized {
  5641. get {
  5642. return true;
  5643. }
  5644. }
  5645. public override void WriteTo(pb::CodedOutputStream output) {
  5646. if (HasA) {
  5647. output.WriteInt32(47, A);
  5648. }
  5649. UnknownFields.WriteTo(output);
  5650. }
  5651. private int memoizedSerializedSize = -1;
  5652. public override int SerializedSize {
  5653. get {
  5654. int size = memoizedSerializedSize;
  5655. if (size != -1) return size;
  5656. size = 0;
  5657. if (HasA) {
  5658. size += pb::CodedOutputStream.ComputeInt32Size(47, A);
  5659. }
  5660. size += UnknownFields.SerializedSize;
  5661. memoizedSerializedSize = size;
  5662. return size;
  5663. }
  5664. }
  5665. public static self::RepeatedGroup_extension ParseFrom(pb::ByteString data) {
  5666. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5667. }
  5668. public static self::RepeatedGroup_extension ParseFrom(pb::ByteString data,
  5669. pb::ExtensionRegistry extensionRegistry) {
  5670. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5671. .BuildParsed();
  5672. }
  5673. public static self::RepeatedGroup_extension ParseFrom(byte[] data) {
  5674. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5675. }
  5676. public static self::RepeatedGroup_extension parseFrom(byte[] data,
  5677. pb::ExtensionRegistry extensionRegistry) {
  5678. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5679. .BuildParsed();
  5680. }
  5681. public static self::RepeatedGroup_extension ParseFrom(global::System.IO.Stream input) {
  5682. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5683. }
  5684. public static self::RepeatedGroup_extension ParseFrom(
  5685. global::System.IO.Stream input,
  5686. pb::ExtensionRegistry extensionRegistry) {
  5687. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5688. .BuildParsed();
  5689. }
  5690. public static self::RepeatedGroup_extension ParseFrom(pb::CodedInputStream input) {
  5691. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5692. }
  5693. public static self::RepeatedGroup_extension ParseFrom(pb::CodedInputStream input,
  5694. pb::ExtensionRegistry extensionRegistry) {
  5695. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5696. .BuildParsed();
  5697. }
  5698. public static Builder CreateBuilder() { return new Builder(); }
  5699. public override IBuilder<self::RepeatedGroup_extension> CreateBuilderForType() { return new Builder(); }
  5700. public static Builder CreateBuilder(self::RepeatedGroup_extension prototype) {
  5701. return (Builder) new Builder().MergeFrom(prototype);
  5702. }
  5703. public sealed partial class Builder : pb::GeneratedBuilder<self::RepeatedGroup_extension, Builder> {
  5704. // Construct using self::RepeatedGroup_extension.CreateBuilder()
  5705. internal Builder() {}
  5706. self::RepeatedGroup_extension result = new self::RepeatedGroup_extension();
  5707. protected override self::RepeatedGroup_extension MessageBeingBuilt {
  5708. get { return result; }
  5709. }
  5710. public override IBuilder<self::RepeatedGroup_extension> Clear() {
  5711. result = new self::RepeatedGroup_extension();
  5712. return this;
  5713. }
  5714. public override IBuilder<self::RepeatedGroup_extension> Clone() {
  5715. return new Builder().MergeFrom(result);
  5716. }
  5717. public override pbd::MessageDescriptor DescriptorForType {
  5718. get { return self::RepeatedGroup_extension.Descriptor; }
  5719. }
  5720. public override self::RepeatedGroup_extension DefaultInstanceForType {
  5721. get { return self::RepeatedGroup_extension.DefaultInstance; }
  5722. }
  5723. public override self::RepeatedGroup_extension BuildPartial() {
  5724. self::RepeatedGroup_extension returnMe = result;
  5725. result = null;
  5726. return returnMe;
  5727. }
  5728. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  5729. return MergeFrom(data, extensionRegistry);
  5730. }
  5731. public override IBuilder MergeFrom(pb::IMessage other) {
  5732. if (other is self::RepeatedGroup_extension) {
  5733. return MergeFrom((self::RepeatedGroup_extension) other);
  5734. } else {
  5735. base.MergeFrom(other);
  5736. return this;
  5737. }
  5738. }
  5739. public override IBuilder<self::RepeatedGroup_extension> MergeFrom(self::RepeatedGroup_extension other) {
  5740. if (other == self::RepeatedGroup_extension.DefaultInstance) return this;
  5741. if (other.HasA) {
  5742. A = other.A;
  5743. }
  5744. this.MergeUnknownFields(other.UnknownFields);
  5745. return this;
  5746. }
  5747. public override IBuilder<self::RepeatedGroup_extension> MergeFrom(pb::CodedInputStream input) {
  5748. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5749. }
  5750. public override IBuilder<self::RepeatedGroup_extension> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5751. pb::UnknownFieldSet.Builder unknownFields =
  5752. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5753. while (true) {
  5754. uint tag = input.ReadTag();
  5755. switch (tag) {
  5756. case 0:
  5757. this.UnknownFields = unknownFields.Build();
  5758. return this;
  5759. default: {
  5760. if (!ParseUnknownField(input, unknownFields,
  5761. extensionRegistry, tag)) {
  5762. this.UnknownFields = unknownFields.Build();
  5763. return this;
  5764. }
  5765. break;
  5766. }
  5767. case 376: {
  5768. A = input.ReadInt32();
  5769. break;
  5770. }
  5771. }
  5772. }
  5773. }
  5774. // optional int32 a = 47;
  5775. public bool HasA {
  5776. get { return result.HasA; }
  5777. }
  5778. public int A {
  5779. get { return result.A; }
  5780. set { SetA(value); }
  5781. }
  5782. public Builder SetA(int value) {
  5783. result.hasA = true;
  5784. result.a_ = value;
  5785. return this;
  5786. }
  5787. public Builder ClearA() {
  5788. result.hasA = false;
  5789. result.a_ = 0;
  5790. return this;
  5791. }
  5792. }
  5793. }
  5794. public sealed partial class TestRequired : pb::GeneratedMessage<TestRequired, TestRequired.Builder> {
  5795. // Use TestRequired.CreateBuilder() to construct.
  5796. private TestRequired() {}
  5797. private static readonly TestRequired defaultInstance = new TestRequired();
  5798. public static TestRequired DefaultInstance {
  5799. get { return defaultInstance; }
  5800. }
  5801. public override TestRequired DefaultInstanceForType {
  5802. get { return defaultInstance; }
  5803. }
  5804. public static pbd::MessageDescriptor Descriptor {
  5805. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__Descriptor; }
  5806. }
  5807. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5808. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__FieldAccessorTable; }
  5809. }
  5810. #region Nested types
  5811. public static class Types {
  5812. public static readonly pb::GeneratedExtensionBase<self::TestAllExtensions, self::TestRequired> Single =
  5813. pb::GeneratedSingleExtension<self::TestAllExtensions, self::TestRequired>.CreateInstance(Descriptor.Extensions[0]);
  5814. public static readonly
  5815. pb::GeneratedExtensionBase<self::TestAllExtensions, scg::IList<self::TestRequired>> Multi =
  5816. pb::GeneratedRepeatExtension<self::TestAllExtensions, self::TestRequired>.CreateInstance(Descriptor.Extensions[1]);
  5817. }
  5818. #endregion
  5819. // required int32 a = 1;
  5820. private bool hasA;
  5821. private int a_ = 0;
  5822. public bool HasA {
  5823. get { return hasA; }
  5824. }
  5825. public int A {
  5826. get { return a_; }
  5827. }
  5828. // optional int32 dummy2 = 2;
  5829. private bool hasDummy2;
  5830. private int dummy2_ = 0;
  5831. public bool HasDummy2 {
  5832. get { return hasDummy2; }
  5833. }
  5834. public int Dummy2 {
  5835. get { return dummy2_; }
  5836. }
  5837. // required int32 b = 3;
  5838. private bool hasB;
  5839. private int b_ = 0;
  5840. public bool HasB {
  5841. get { return hasB; }
  5842. }
  5843. public int B {
  5844. get { return b_; }
  5845. }
  5846. // optional int32 dummy4 = 4;
  5847. private bool hasDummy4;
  5848. private int dummy4_ = 0;
  5849. public bool HasDummy4 {
  5850. get { return hasDummy4; }
  5851. }
  5852. public int Dummy4 {
  5853. get { return dummy4_; }
  5854. }
  5855. // optional int32 dummy5 = 5;
  5856. private bool hasDummy5;
  5857. private int dummy5_ = 0;
  5858. public bool HasDummy5 {
  5859. get { return hasDummy5; }
  5860. }
  5861. public int Dummy5 {
  5862. get { return dummy5_; }
  5863. }
  5864. // optional int32 dummy6 = 6;
  5865. private bool hasDummy6;
  5866. private int dummy6_ = 0;
  5867. public bool HasDummy6 {
  5868. get { return hasDummy6; }
  5869. }
  5870. public int Dummy6 {
  5871. get { return dummy6_; }
  5872. }
  5873. // optional int32 dummy7 = 7;
  5874. private bool hasDummy7;
  5875. private int dummy7_ = 0;
  5876. public bool HasDummy7 {
  5877. get { return hasDummy7; }
  5878. }
  5879. public int Dummy7 {
  5880. get { return dummy7_; }
  5881. }
  5882. // optional int32 dummy8 = 8;
  5883. private bool hasDummy8;
  5884. private int dummy8_ = 0;
  5885. public bool HasDummy8 {
  5886. get { return hasDummy8; }
  5887. }
  5888. public int Dummy8 {
  5889. get { return dummy8_; }
  5890. }
  5891. // optional int32 dummy9 = 9;
  5892. private bool hasDummy9;
  5893. private int dummy9_ = 0;
  5894. public bool HasDummy9 {
  5895. get { return hasDummy9; }
  5896. }
  5897. public int Dummy9 {
  5898. get { return dummy9_; }
  5899. }
  5900. // optional int32 dummy10 = 10;
  5901. private bool hasDummy10;
  5902. private int dummy10_ = 0;
  5903. public bool HasDummy10 {
  5904. get { return hasDummy10; }
  5905. }
  5906. public int Dummy10 {
  5907. get { return dummy10_; }
  5908. }
  5909. // optional int32 dummy11 = 11;
  5910. private bool hasDummy11;
  5911. private int dummy11_ = 0;
  5912. public bool HasDummy11 {
  5913. get { return hasDummy11; }
  5914. }
  5915. public int Dummy11 {
  5916. get { return dummy11_; }
  5917. }
  5918. // optional int32 dummy12 = 12;
  5919. private bool hasDummy12;
  5920. private int dummy12_ = 0;
  5921. public bool HasDummy12 {
  5922. get { return hasDummy12; }
  5923. }
  5924. public int Dummy12 {
  5925. get { return dummy12_; }
  5926. }
  5927. // optional int32 dummy13 = 13;
  5928. private bool hasDummy13;
  5929. private int dummy13_ = 0;
  5930. public bool HasDummy13 {
  5931. get { return hasDummy13; }
  5932. }
  5933. public int Dummy13 {
  5934. get { return dummy13_; }
  5935. }
  5936. // optional int32 dummy14 = 14;
  5937. private bool hasDummy14;
  5938. private int dummy14_ = 0;
  5939. public bool HasDummy14 {
  5940. get { return hasDummy14; }
  5941. }
  5942. public int Dummy14 {
  5943. get { return dummy14_; }
  5944. }
  5945. // optional int32 dummy15 = 15;
  5946. private bool hasDummy15;
  5947. private int dummy15_ = 0;
  5948. public bool HasDummy15 {
  5949. get { return hasDummy15; }
  5950. }
  5951. public int Dummy15 {
  5952. get { return dummy15_; }
  5953. }
  5954. // optional int32 dummy16 = 16;
  5955. private bool hasDummy16;
  5956. private int dummy16_ = 0;
  5957. public bool HasDummy16 {
  5958. get { return hasDummy16; }
  5959. }
  5960. public int Dummy16 {
  5961. get { return dummy16_; }
  5962. }
  5963. // optional int32 dummy17 = 17;
  5964. private bool hasDummy17;
  5965. private int dummy17_ = 0;
  5966. public bool HasDummy17 {
  5967. get { return hasDummy17; }
  5968. }
  5969. public int Dummy17 {
  5970. get { return dummy17_; }
  5971. }
  5972. // optional int32 dummy18 = 18;
  5973. private bool hasDummy18;
  5974. private int dummy18_ = 0;
  5975. public bool HasDummy18 {
  5976. get { return hasDummy18; }
  5977. }
  5978. public int Dummy18 {
  5979. get { return dummy18_; }
  5980. }
  5981. // optional int32 dummy19 = 19;
  5982. private bool hasDummy19;
  5983. private int dummy19_ = 0;
  5984. public bool HasDummy19 {
  5985. get { return hasDummy19; }
  5986. }
  5987. public int Dummy19 {
  5988. get { return dummy19_; }
  5989. }
  5990. // optional int32 dummy20 = 20;
  5991. private bool hasDummy20;
  5992. private int dummy20_ = 0;
  5993. public bool HasDummy20 {
  5994. get { return hasDummy20; }
  5995. }
  5996. public int Dummy20 {
  5997. get { return dummy20_; }
  5998. }
  5999. // optional int32 dummy21 = 21;
  6000. private bool hasDummy21;
  6001. private int dummy21_ = 0;
  6002. public bool HasDummy21 {
  6003. get { return hasDummy21; }
  6004. }
  6005. public int Dummy21 {
  6006. get { return dummy21_; }
  6007. }
  6008. // optional int32 dummy22 = 22;
  6009. private bool hasDummy22;
  6010. private int dummy22_ = 0;
  6011. public bool HasDummy22 {
  6012. get { return hasDummy22; }
  6013. }
  6014. public int Dummy22 {
  6015. get { return dummy22_; }
  6016. }
  6017. // optional int32 dummy23 = 23;
  6018. private bool hasDummy23;
  6019. private int dummy23_ = 0;
  6020. public bool HasDummy23 {
  6021. get { return hasDummy23; }
  6022. }
  6023. public int Dummy23 {
  6024. get { return dummy23_; }
  6025. }
  6026. // optional int32 dummy24 = 24;
  6027. private bool hasDummy24;
  6028. private int dummy24_ = 0;
  6029. public bool HasDummy24 {
  6030. get { return hasDummy24; }
  6031. }
  6032. public int Dummy24 {
  6033. get { return dummy24_; }
  6034. }
  6035. // optional int32 dummy25 = 25;
  6036. private bool hasDummy25;
  6037. private int dummy25_ = 0;
  6038. public bool HasDummy25 {
  6039. get { return hasDummy25; }
  6040. }
  6041. public int Dummy25 {
  6042. get { return dummy25_; }
  6043. }
  6044. // optional int32 dummy26 = 26;
  6045. private bool hasDummy26;
  6046. private int dummy26_ = 0;
  6047. public bool HasDummy26 {
  6048. get { return hasDummy26; }
  6049. }
  6050. public int Dummy26 {
  6051. get { return dummy26_; }
  6052. }
  6053. // optional int32 dummy27 = 27;
  6054. private bool hasDummy27;
  6055. private int dummy27_ = 0;
  6056. public bool HasDummy27 {
  6057. get { return hasDummy27; }
  6058. }
  6059. public int Dummy27 {
  6060. get { return dummy27_; }
  6061. }
  6062. // optional int32 dummy28 = 28;
  6063. private bool hasDummy28;
  6064. private int dummy28_ = 0;
  6065. public bool HasDummy28 {
  6066. get { return hasDummy28; }
  6067. }
  6068. public int Dummy28 {
  6069. get { return dummy28_; }
  6070. }
  6071. // optional int32 dummy29 = 29;
  6072. private bool hasDummy29;
  6073. private int dummy29_ = 0;
  6074. public bool HasDummy29 {
  6075. get { return hasDummy29; }
  6076. }
  6077. public int Dummy29 {
  6078. get { return dummy29_; }
  6079. }
  6080. // optional int32 dummy30 = 30;
  6081. private bool hasDummy30;
  6082. private int dummy30_ = 0;
  6083. public bool HasDummy30 {
  6084. get { return hasDummy30; }
  6085. }
  6086. public int Dummy30 {
  6087. get { return dummy30_; }
  6088. }
  6089. // optional int32 dummy31 = 31;
  6090. private bool hasDummy31;
  6091. private int dummy31_ = 0;
  6092. public bool HasDummy31 {
  6093. get { return hasDummy31; }
  6094. }
  6095. public int Dummy31 {
  6096. get { return dummy31_; }
  6097. }
  6098. // optional int32 dummy32 = 32;
  6099. private bool hasDummy32;
  6100. private int dummy32_ = 0;
  6101. public bool HasDummy32 {
  6102. get { return hasDummy32; }
  6103. }
  6104. public int Dummy32 {
  6105. get { return dummy32_; }
  6106. }
  6107. // required int32 c = 33;
  6108. private bool hasC;
  6109. private int c_ = 0;
  6110. public bool HasC {
  6111. get { return hasC; }
  6112. }
  6113. public int C {
  6114. get { return c_; }
  6115. }
  6116. public override bool IsInitialized {
  6117. get {
  6118. if (!hasA) return false;
  6119. if (!hasB) return false;
  6120. if (!hasC) return false;
  6121. return true;
  6122. }
  6123. }
  6124. public override void WriteTo(pb::CodedOutputStream output) {
  6125. if (HasA) {
  6126. output.WriteInt32(1, A);
  6127. }
  6128. if (HasDummy2) {
  6129. output.WriteInt32(2, Dummy2);
  6130. }
  6131. if (HasB) {
  6132. output.WriteInt32(3, B);
  6133. }
  6134. if (HasDummy4) {
  6135. output.WriteInt32(4, Dummy4);
  6136. }
  6137. if (HasDummy5) {
  6138. output.WriteInt32(5, Dummy5);
  6139. }
  6140. if (HasDummy6) {
  6141. output.WriteInt32(6, Dummy6);
  6142. }
  6143. if (HasDummy7) {
  6144. output.WriteInt32(7, Dummy7);
  6145. }
  6146. if (HasDummy8) {
  6147. output.WriteInt32(8, Dummy8);
  6148. }
  6149. if (HasDummy9) {
  6150. output.WriteInt32(9, Dummy9);
  6151. }
  6152. if (HasDummy10) {
  6153. output.WriteInt32(10, Dummy10);
  6154. }
  6155. if (HasDummy11) {
  6156. output.WriteInt32(11, Dummy11);
  6157. }
  6158. if (HasDummy12) {
  6159. output.WriteInt32(12, Dummy12);
  6160. }
  6161. if (HasDummy13) {
  6162. output.WriteInt32(13, Dummy13);
  6163. }
  6164. if (HasDummy14) {
  6165. output.WriteInt32(14, Dummy14);
  6166. }
  6167. if (HasDummy15) {
  6168. output.WriteInt32(15, Dummy15);
  6169. }
  6170. if (HasDummy16) {
  6171. output.WriteInt32(16, Dummy16);
  6172. }
  6173. if (HasDummy17) {
  6174. output.WriteInt32(17, Dummy17);
  6175. }
  6176. if (HasDummy18) {
  6177. output.WriteInt32(18, Dummy18);
  6178. }
  6179. if (HasDummy19) {
  6180. output.WriteInt32(19, Dummy19);
  6181. }
  6182. if (HasDummy20) {
  6183. output.WriteInt32(20, Dummy20);
  6184. }
  6185. if (HasDummy21) {
  6186. output.WriteInt32(21, Dummy21);
  6187. }
  6188. if (HasDummy22) {
  6189. output.WriteInt32(22, Dummy22);
  6190. }
  6191. if (HasDummy23) {
  6192. output.WriteInt32(23, Dummy23);
  6193. }
  6194. if (HasDummy24) {
  6195. output.WriteInt32(24, Dummy24);
  6196. }
  6197. if (HasDummy25) {
  6198. output.WriteInt32(25, Dummy25);
  6199. }
  6200. if (HasDummy26) {
  6201. output.WriteInt32(26, Dummy26);
  6202. }
  6203. if (HasDummy27) {
  6204. output.WriteInt32(27, Dummy27);
  6205. }
  6206. if (HasDummy28) {
  6207. output.WriteInt32(28, Dummy28);
  6208. }
  6209. if (HasDummy29) {
  6210. output.WriteInt32(29, Dummy29);
  6211. }
  6212. if (HasDummy30) {
  6213. output.WriteInt32(30, Dummy30);
  6214. }
  6215. if (HasDummy31) {
  6216. output.WriteInt32(31, Dummy31);
  6217. }
  6218. if (HasDummy32) {
  6219. output.WriteInt32(32, Dummy32);
  6220. }
  6221. if (HasC) {
  6222. output.WriteInt32(33, C);
  6223. }
  6224. UnknownFields.WriteTo(output);
  6225. }
  6226. private int memoizedSerializedSize = -1;
  6227. public override int SerializedSize {
  6228. get {
  6229. int size = memoizedSerializedSize;
  6230. if (size != -1) return size;
  6231. size = 0;
  6232. if (HasA) {
  6233. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  6234. }
  6235. if (HasDummy2) {
  6236. size += pb::CodedOutputStream.ComputeInt32Size(2, Dummy2);
  6237. }
  6238. if (HasB) {
  6239. size += pb::CodedOutputStream.ComputeInt32Size(3, B);
  6240. }
  6241. if (HasDummy4) {
  6242. size += pb::CodedOutputStream.ComputeInt32Size(4, Dummy4);
  6243. }
  6244. if (HasDummy5) {
  6245. size += pb::CodedOutputStream.ComputeInt32Size(5, Dummy5);
  6246. }
  6247. if (HasDummy6) {
  6248. size += pb::CodedOutputStream.ComputeInt32Size(6, Dummy6);
  6249. }
  6250. if (HasDummy7) {
  6251. size += pb::CodedOutputStream.ComputeInt32Size(7, Dummy7);
  6252. }
  6253. if (HasDummy8) {
  6254. size += pb::CodedOutputStream.ComputeInt32Size(8, Dummy8);
  6255. }
  6256. if (HasDummy9) {
  6257. size += pb::CodedOutputStream.ComputeInt32Size(9, Dummy9);
  6258. }
  6259. if (HasDummy10) {
  6260. size += pb::CodedOutputStream.ComputeInt32Size(10, Dummy10);
  6261. }
  6262. if (HasDummy11) {
  6263. size += pb::CodedOutputStream.ComputeInt32Size(11, Dummy11);
  6264. }
  6265. if (HasDummy12) {
  6266. size += pb::CodedOutputStream.ComputeInt32Size(12, Dummy12);
  6267. }
  6268. if (HasDummy13) {
  6269. size += pb::CodedOutputStream.ComputeInt32Size(13, Dummy13);
  6270. }
  6271. if (HasDummy14) {
  6272. size += pb::CodedOutputStream.ComputeInt32Size(14, Dummy14);
  6273. }
  6274. if (HasDummy15) {
  6275. size += pb::CodedOutputStream.ComputeInt32Size(15, Dummy15);
  6276. }
  6277. if (HasDummy16) {
  6278. size += pb::CodedOutputStream.ComputeInt32Size(16, Dummy16);
  6279. }
  6280. if (HasDummy17) {
  6281. size += pb::CodedOutputStream.ComputeInt32Size(17, Dummy17);
  6282. }
  6283. if (HasDummy18) {
  6284. size += pb::CodedOutputStream.ComputeInt32Size(18, Dummy18);
  6285. }
  6286. if (HasDummy19) {
  6287. size += pb::CodedOutputStream.ComputeInt32Size(19, Dummy19);
  6288. }
  6289. if (HasDummy20) {
  6290. size += pb::CodedOutputStream.ComputeInt32Size(20, Dummy20);
  6291. }
  6292. if (HasDummy21) {
  6293. size += pb::CodedOutputStream.ComputeInt32Size(21, Dummy21);
  6294. }
  6295. if (HasDummy22) {
  6296. size += pb::CodedOutputStream.ComputeInt32Size(22, Dummy22);
  6297. }
  6298. if (HasDummy23) {
  6299. size += pb::CodedOutputStream.ComputeInt32Size(23, Dummy23);
  6300. }
  6301. if (HasDummy24) {
  6302. size += pb::CodedOutputStream.ComputeInt32Size(24, Dummy24);
  6303. }
  6304. if (HasDummy25) {
  6305. size += pb::CodedOutputStream.ComputeInt32Size(25, Dummy25);
  6306. }
  6307. if (HasDummy26) {
  6308. size += pb::CodedOutputStream.ComputeInt32Size(26, Dummy26);
  6309. }
  6310. if (HasDummy27) {
  6311. size += pb::CodedOutputStream.ComputeInt32Size(27, Dummy27);
  6312. }
  6313. if (HasDummy28) {
  6314. size += pb::CodedOutputStream.ComputeInt32Size(28, Dummy28);
  6315. }
  6316. if (HasDummy29) {
  6317. size += pb::CodedOutputStream.ComputeInt32Size(29, Dummy29);
  6318. }
  6319. if (HasDummy30) {
  6320. size += pb::CodedOutputStream.ComputeInt32Size(30, Dummy30);
  6321. }
  6322. if (HasDummy31) {
  6323. size += pb::CodedOutputStream.ComputeInt32Size(31, Dummy31);
  6324. }
  6325. if (HasDummy32) {
  6326. size += pb::CodedOutputStream.ComputeInt32Size(32, Dummy32);
  6327. }
  6328. if (HasC) {
  6329. size += pb::CodedOutputStream.ComputeInt32Size(33, C);
  6330. }
  6331. size += UnknownFields.SerializedSize;
  6332. memoizedSerializedSize = size;
  6333. return size;
  6334. }
  6335. }
  6336. public static self::TestRequired ParseFrom(pb::ByteString data) {
  6337. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6338. }
  6339. public static self::TestRequired ParseFrom(pb::ByteString data,
  6340. pb::ExtensionRegistry extensionRegistry) {
  6341. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  6342. .BuildParsed();
  6343. }
  6344. public static self::TestRequired ParseFrom(byte[] data) {
  6345. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6346. }
  6347. public static self::TestRequired parseFrom(byte[] data,
  6348. pb::ExtensionRegistry extensionRegistry) {
  6349. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  6350. .BuildParsed();
  6351. }
  6352. public static self::TestRequired ParseFrom(global::System.IO.Stream input) {
  6353. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6354. }
  6355. public static self::TestRequired ParseFrom(
  6356. global::System.IO.Stream input,
  6357. pb::ExtensionRegistry extensionRegistry) {
  6358. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  6359. .BuildParsed();
  6360. }
  6361. public static self::TestRequired ParseFrom(pb::CodedInputStream input) {
  6362. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6363. }
  6364. public static self::TestRequired ParseFrom(pb::CodedInputStream input,
  6365. pb::ExtensionRegistry extensionRegistry) {
  6366. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  6367. .BuildParsed();
  6368. }
  6369. public static Builder CreateBuilder() { return new Builder(); }
  6370. public override IBuilder<self::TestRequired> CreateBuilderForType() { return new Builder(); }
  6371. public static Builder CreateBuilder(self::TestRequired prototype) {
  6372. return (Builder) new Builder().MergeFrom(prototype);
  6373. }
  6374. public sealed partial class Builder : pb::GeneratedBuilder<self::TestRequired, Builder> {
  6375. // Construct using self::TestRequired.CreateBuilder()
  6376. internal Builder() {}
  6377. self::TestRequired result = new self::TestRequired();
  6378. protected override self::TestRequired MessageBeingBuilt {
  6379. get { return result; }
  6380. }
  6381. public override IBuilder<self::TestRequired> Clear() {
  6382. result = new self::TestRequired();
  6383. return this;
  6384. }
  6385. public override IBuilder<self::TestRequired> Clone() {
  6386. return new Builder().MergeFrom(result);
  6387. }
  6388. public override pbd::MessageDescriptor DescriptorForType {
  6389. get { return self::TestRequired.Descriptor; }
  6390. }
  6391. public override self::TestRequired DefaultInstanceForType {
  6392. get { return self::TestRequired.DefaultInstance; }
  6393. }
  6394. public override self::TestRequired BuildPartial() {
  6395. self::TestRequired returnMe = result;
  6396. result = null;
  6397. return returnMe;
  6398. }
  6399. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  6400. return MergeFrom(data, extensionRegistry);
  6401. }
  6402. public override IBuilder MergeFrom(pb::IMessage other) {
  6403. if (other is self::TestRequired) {
  6404. return MergeFrom((self::TestRequired) other);
  6405. } else {
  6406. base.MergeFrom(other);
  6407. return this;
  6408. }
  6409. }
  6410. public override IBuilder<self::TestRequired> MergeFrom(self::TestRequired other) {
  6411. if (other == self::TestRequired.DefaultInstance) return this;
  6412. if (other.HasA) {
  6413. A = other.A;
  6414. }
  6415. if (other.HasDummy2) {
  6416. Dummy2 = other.Dummy2;
  6417. }
  6418. if (other.HasB) {
  6419. B = other.B;
  6420. }
  6421. if (other.HasDummy4) {
  6422. Dummy4 = other.Dummy4;
  6423. }
  6424. if (other.HasDummy5) {
  6425. Dummy5 = other.Dummy5;
  6426. }
  6427. if (other.HasDummy6) {
  6428. Dummy6 = other.Dummy6;
  6429. }
  6430. if (other.HasDummy7) {
  6431. Dummy7 = other.Dummy7;
  6432. }
  6433. if (other.HasDummy8) {
  6434. Dummy8 = other.Dummy8;
  6435. }
  6436. if (other.HasDummy9) {
  6437. Dummy9 = other.Dummy9;
  6438. }
  6439. if (other.HasDummy10) {
  6440. Dummy10 = other.Dummy10;
  6441. }
  6442. if (other.HasDummy11) {
  6443. Dummy11 = other.Dummy11;
  6444. }
  6445. if (other.HasDummy12) {
  6446. Dummy12 = other.Dummy12;
  6447. }
  6448. if (other.HasDummy13) {
  6449. Dummy13 = other.Dummy13;
  6450. }
  6451. if (other.HasDummy14) {
  6452. Dummy14 = other.Dummy14;
  6453. }
  6454. if (other.HasDummy15) {
  6455. Dummy15 = other.Dummy15;
  6456. }
  6457. if (other.HasDummy16) {
  6458. Dummy16 = other.Dummy16;
  6459. }
  6460. if (other.HasDummy17) {
  6461. Dummy17 = other.Dummy17;
  6462. }
  6463. if (other.HasDummy18) {
  6464. Dummy18 = other.Dummy18;
  6465. }
  6466. if (other.HasDummy19) {
  6467. Dummy19 = other.Dummy19;
  6468. }
  6469. if (other.HasDummy20) {
  6470. Dummy20 = other.Dummy20;
  6471. }
  6472. if (other.HasDummy21) {
  6473. Dummy21 = other.Dummy21;
  6474. }
  6475. if (other.HasDummy22) {
  6476. Dummy22 = other.Dummy22;
  6477. }
  6478. if (other.HasDummy23) {
  6479. Dummy23 = other.Dummy23;
  6480. }
  6481. if (other.HasDummy24) {
  6482. Dummy24 = other.Dummy24;
  6483. }
  6484. if (other.HasDummy25) {
  6485. Dummy25 = other.Dummy25;
  6486. }
  6487. if (other.HasDummy26) {
  6488. Dummy26 = other.Dummy26;
  6489. }
  6490. if (other.HasDummy27) {
  6491. Dummy27 = other.Dummy27;
  6492. }
  6493. if (other.HasDummy28) {
  6494. Dummy28 = other.Dummy28;
  6495. }
  6496. if (other.HasDummy29) {
  6497. Dummy29 = other.Dummy29;
  6498. }
  6499. if (other.HasDummy30) {
  6500. Dummy30 = other.Dummy30;
  6501. }
  6502. if (other.HasDummy31) {
  6503. Dummy31 = other.Dummy31;
  6504. }
  6505. if (other.HasDummy32) {
  6506. Dummy32 = other.Dummy32;
  6507. }
  6508. if (other.HasC) {
  6509. C = other.C;
  6510. }
  6511. this.MergeUnknownFields(other.UnknownFields);
  6512. return this;
  6513. }
  6514. public override IBuilder<self::TestRequired> MergeFrom(pb::CodedInputStream input) {
  6515. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  6516. }
  6517. public override IBuilder<self::TestRequired> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6518. pb::UnknownFieldSet.Builder unknownFields =
  6519. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6520. while (true) {
  6521. uint tag = input.ReadTag();
  6522. switch (tag) {
  6523. case 0:
  6524. this.UnknownFields = unknownFields.Build();
  6525. return this;
  6526. default: {
  6527. if (!ParseUnknownField(input, unknownFields,
  6528. extensionRegistry, tag)) {
  6529. this.UnknownFields = unknownFields.Build();
  6530. return this;
  6531. }
  6532. break;
  6533. }
  6534. case 8: {
  6535. A = input.ReadInt32();
  6536. break;
  6537. }
  6538. case 16: {
  6539. Dummy2 = input.ReadInt32();
  6540. break;
  6541. }
  6542. case 24: {
  6543. B = input.ReadInt32();
  6544. break;
  6545. }
  6546. case 32: {
  6547. Dummy4 = input.ReadInt32();
  6548. break;
  6549. }
  6550. case 40: {
  6551. Dummy5 = input.ReadInt32();
  6552. break;
  6553. }
  6554. case 48: {
  6555. Dummy6 = input.ReadInt32();
  6556. break;
  6557. }
  6558. case 56: {
  6559. Dummy7 = input.ReadInt32();
  6560. break;
  6561. }
  6562. case 64: {
  6563. Dummy8 = input.ReadInt32();
  6564. break;
  6565. }
  6566. case 72: {
  6567. Dummy9 = input.ReadInt32();
  6568. break;
  6569. }
  6570. case 80: {
  6571. Dummy10 = input.ReadInt32();
  6572. break;
  6573. }
  6574. case 88: {
  6575. Dummy11 = input.ReadInt32();
  6576. break;
  6577. }
  6578. case 96: {
  6579. Dummy12 = input.ReadInt32();
  6580. break;
  6581. }
  6582. case 104: {
  6583. Dummy13 = input.ReadInt32();
  6584. break;
  6585. }
  6586. case 112: {
  6587. Dummy14 = input.ReadInt32();
  6588. break;
  6589. }
  6590. case 120: {
  6591. Dummy15 = input.ReadInt32();
  6592. break;
  6593. }
  6594. case 128: {
  6595. Dummy16 = input.ReadInt32();
  6596. break;
  6597. }
  6598. case 136: {
  6599. Dummy17 = input.ReadInt32();
  6600. break;
  6601. }
  6602. case 144: {
  6603. Dummy18 = input.ReadInt32();
  6604. break;
  6605. }
  6606. case 152: {
  6607. Dummy19 = input.ReadInt32();
  6608. break;
  6609. }
  6610. case 160: {
  6611. Dummy20 = input.ReadInt32();
  6612. break;
  6613. }
  6614. case 168: {
  6615. Dummy21 = input.ReadInt32();
  6616. break;
  6617. }
  6618. case 176: {
  6619. Dummy22 = input.ReadInt32();
  6620. break;
  6621. }
  6622. case 184: {
  6623. Dummy23 = input.ReadInt32();
  6624. break;
  6625. }
  6626. case 192: {
  6627. Dummy24 = input.ReadInt32();
  6628. break;
  6629. }
  6630. case 200: {
  6631. Dummy25 = input.ReadInt32();
  6632. break;
  6633. }
  6634. case 208: {
  6635. Dummy26 = input.ReadInt32();
  6636. break;
  6637. }
  6638. case 216: {
  6639. Dummy27 = input.ReadInt32();
  6640. break;
  6641. }
  6642. case 224: {
  6643. Dummy28 = input.ReadInt32();
  6644. break;
  6645. }
  6646. case 232: {
  6647. Dummy29 = input.ReadInt32();
  6648. break;
  6649. }
  6650. case 240: {
  6651. Dummy30 = input.ReadInt32();
  6652. break;
  6653. }
  6654. case 248: {
  6655. Dummy31 = input.ReadInt32();
  6656. break;
  6657. }
  6658. case 256: {
  6659. Dummy32 = input.ReadInt32();
  6660. break;
  6661. }
  6662. case 264: {
  6663. C = input.ReadInt32();
  6664. break;
  6665. }
  6666. }
  6667. }
  6668. }
  6669. // required int32 a = 1;
  6670. public bool HasA {
  6671. get { return result.HasA; }
  6672. }
  6673. public int A {
  6674. get { return result.A; }
  6675. set { SetA(value); }
  6676. }
  6677. public Builder SetA(int value) {
  6678. result.hasA = true;
  6679. result.a_ = value;
  6680. return this;
  6681. }
  6682. public Builder ClearA() {
  6683. result.hasA = false;
  6684. result.a_ = 0;
  6685. return this;
  6686. }
  6687. // optional int32 dummy2 = 2;
  6688. public bool HasDummy2 {
  6689. get { return result.HasDummy2; }
  6690. }
  6691. public int Dummy2 {
  6692. get { return result.Dummy2; }
  6693. set { SetDummy2(value); }
  6694. }
  6695. public Builder SetDummy2(int value) {
  6696. result.hasDummy2 = true;
  6697. result.dummy2_ = value;
  6698. return this;
  6699. }
  6700. public Builder ClearDummy2() {
  6701. result.hasDummy2 = false;
  6702. result.dummy2_ = 0;
  6703. return this;
  6704. }
  6705. // required int32 b = 3;
  6706. public bool HasB {
  6707. get { return result.HasB; }
  6708. }
  6709. public int B {
  6710. get { return result.B; }
  6711. set { SetB(value); }
  6712. }
  6713. public Builder SetB(int value) {
  6714. result.hasB = true;
  6715. result.b_ = value;
  6716. return this;
  6717. }
  6718. public Builder ClearB() {
  6719. result.hasB = false;
  6720. result.b_ = 0;
  6721. return this;
  6722. }
  6723. // optional int32 dummy4 = 4;
  6724. public bool HasDummy4 {
  6725. get { return result.HasDummy4; }
  6726. }
  6727. public int Dummy4 {
  6728. get { return result.Dummy4; }
  6729. set { SetDummy4(value); }
  6730. }
  6731. public Builder SetDummy4(int value) {
  6732. result.hasDummy4 = true;
  6733. result.dummy4_ = value;
  6734. return this;
  6735. }
  6736. public Builder ClearDummy4() {
  6737. result.hasDummy4 = false;
  6738. result.dummy4_ = 0;
  6739. return this;
  6740. }
  6741. // optional int32 dummy5 = 5;
  6742. public bool HasDummy5 {
  6743. get { return result.HasDummy5; }
  6744. }
  6745. public int Dummy5 {
  6746. get { return result.Dummy5; }
  6747. set { SetDummy5(value); }
  6748. }
  6749. public Builder SetDummy5(int value) {
  6750. result.hasDummy5 = true;
  6751. result.dummy5_ = value;
  6752. return this;
  6753. }
  6754. public Builder ClearDummy5() {
  6755. result.hasDummy5 = false;
  6756. result.dummy5_ = 0;
  6757. return this;
  6758. }
  6759. // optional int32 dummy6 = 6;
  6760. public bool HasDummy6 {
  6761. get { return result.HasDummy6; }
  6762. }
  6763. public int Dummy6 {
  6764. get { return result.Dummy6; }
  6765. set { SetDummy6(value); }
  6766. }
  6767. public Builder SetDummy6(int value) {
  6768. result.hasDummy6 = true;
  6769. result.dummy6_ = value;
  6770. return this;
  6771. }
  6772. public Builder ClearDummy6() {
  6773. result.hasDummy6 = false;
  6774. result.dummy6_ = 0;
  6775. return this;
  6776. }
  6777. // optional int32 dummy7 = 7;
  6778. public bool HasDummy7 {
  6779. get { return result.HasDummy7; }
  6780. }
  6781. public int Dummy7 {
  6782. get { return result.Dummy7; }
  6783. set { SetDummy7(value); }
  6784. }
  6785. public Builder SetDummy7(int value) {
  6786. result.hasDummy7 = true;
  6787. result.dummy7_ = value;
  6788. return this;
  6789. }
  6790. public Builder ClearDummy7() {
  6791. result.hasDummy7 = false;
  6792. result.dummy7_ = 0;
  6793. return this;
  6794. }
  6795. // optional int32 dummy8 = 8;
  6796. public bool HasDummy8 {
  6797. get { return result.HasDummy8; }
  6798. }
  6799. public int Dummy8 {
  6800. get { return result.Dummy8; }
  6801. set { SetDummy8(value); }
  6802. }
  6803. public Builder SetDummy8(int value) {
  6804. result.hasDummy8 = true;
  6805. result.dummy8_ = value;
  6806. return this;
  6807. }
  6808. public Builder ClearDummy8() {
  6809. result.hasDummy8 = false;
  6810. result.dummy8_ = 0;
  6811. return this;
  6812. }
  6813. // optional int32 dummy9 = 9;
  6814. public bool HasDummy9 {
  6815. get { return result.HasDummy9; }
  6816. }
  6817. public int Dummy9 {
  6818. get { return result.Dummy9; }
  6819. set { SetDummy9(value); }
  6820. }
  6821. public Builder SetDummy9(int value) {
  6822. result.hasDummy9 = true;
  6823. result.dummy9_ = value;
  6824. return this;
  6825. }
  6826. public Builder ClearDummy9() {
  6827. result.hasDummy9 = false;
  6828. result.dummy9_ = 0;
  6829. return this;
  6830. }
  6831. // optional int32 dummy10 = 10;
  6832. public bool HasDummy10 {
  6833. get { return result.HasDummy10; }
  6834. }
  6835. public int Dummy10 {
  6836. get { return result.Dummy10; }
  6837. set { SetDummy10(value); }
  6838. }
  6839. public Builder SetDummy10(int value) {
  6840. result.hasDummy10 = true;
  6841. result.dummy10_ = value;
  6842. return this;
  6843. }
  6844. public Builder ClearDummy10() {
  6845. result.hasDummy10 = false;
  6846. result.dummy10_ = 0;
  6847. return this;
  6848. }
  6849. // optional int32 dummy11 = 11;
  6850. public bool HasDummy11 {
  6851. get { return result.HasDummy11; }
  6852. }
  6853. public int Dummy11 {
  6854. get { return result.Dummy11; }
  6855. set { SetDummy11(value); }
  6856. }
  6857. public Builder SetDummy11(int value) {
  6858. result.hasDummy11 = true;
  6859. result.dummy11_ = value;
  6860. return this;
  6861. }
  6862. public Builder ClearDummy11() {
  6863. result.hasDummy11 = false;
  6864. result.dummy11_ = 0;
  6865. return this;
  6866. }
  6867. // optional int32 dummy12 = 12;
  6868. public bool HasDummy12 {
  6869. get { return result.HasDummy12; }
  6870. }
  6871. public int Dummy12 {
  6872. get { return result.Dummy12; }
  6873. set { SetDummy12(value); }
  6874. }
  6875. public Builder SetDummy12(int value) {
  6876. result.hasDummy12 = true;
  6877. result.dummy12_ = value;
  6878. return this;
  6879. }
  6880. public Builder ClearDummy12() {
  6881. result.hasDummy12 = false;
  6882. result.dummy12_ = 0;
  6883. return this;
  6884. }
  6885. // optional int32 dummy13 = 13;
  6886. public bool HasDummy13 {
  6887. get { return result.HasDummy13; }
  6888. }
  6889. public int Dummy13 {
  6890. get { return result.Dummy13; }
  6891. set { SetDummy13(value); }
  6892. }
  6893. public Builder SetDummy13(int value) {
  6894. result.hasDummy13 = true;
  6895. result.dummy13_ = value;
  6896. return this;
  6897. }
  6898. public Builder ClearDummy13() {
  6899. result.hasDummy13 = false;
  6900. result.dummy13_ = 0;
  6901. return this;
  6902. }
  6903. // optional int32 dummy14 = 14;
  6904. public bool HasDummy14 {
  6905. get { return result.HasDummy14; }
  6906. }
  6907. public int Dummy14 {
  6908. get { return result.Dummy14; }
  6909. set { SetDummy14(value); }
  6910. }
  6911. public Builder SetDummy14(int value) {
  6912. result.hasDummy14 = true;
  6913. result.dummy14_ = value;
  6914. return this;
  6915. }
  6916. public Builder ClearDummy14() {
  6917. result.hasDummy14 = false;
  6918. result.dummy14_ = 0;
  6919. return this;
  6920. }
  6921. // optional int32 dummy15 = 15;
  6922. public bool HasDummy15 {
  6923. get { return result.HasDummy15; }
  6924. }
  6925. public int Dummy15 {
  6926. get { return result.Dummy15; }
  6927. set { SetDummy15(value); }
  6928. }
  6929. public Builder SetDummy15(int value) {
  6930. result.hasDummy15 = true;
  6931. result.dummy15_ = value;
  6932. return this;
  6933. }
  6934. public Builder ClearDummy15() {
  6935. result.hasDummy15 = false;
  6936. result.dummy15_ = 0;
  6937. return this;
  6938. }
  6939. // optional int32 dummy16 = 16;
  6940. public bool HasDummy16 {
  6941. get { return result.HasDummy16; }
  6942. }
  6943. public int Dummy16 {
  6944. get { return result.Dummy16; }
  6945. set { SetDummy16(value); }
  6946. }
  6947. public Builder SetDummy16(int value) {
  6948. result.hasDummy16 = true;
  6949. result.dummy16_ = value;
  6950. return this;
  6951. }
  6952. public Builder ClearDummy16() {
  6953. result.hasDummy16 = false;
  6954. result.dummy16_ = 0;
  6955. return this;
  6956. }
  6957. // optional int32 dummy17 = 17;
  6958. public bool HasDummy17 {
  6959. get { return result.HasDummy17; }
  6960. }
  6961. public int Dummy17 {
  6962. get { return result.Dummy17; }
  6963. set { SetDummy17(value); }
  6964. }
  6965. public Builder SetDummy17(int value) {
  6966. result.hasDummy17 = true;
  6967. result.dummy17_ = value;
  6968. return this;
  6969. }
  6970. public Builder ClearDummy17() {
  6971. result.hasDummy17 = false;
  6972. result.dummy17_ = 0;
  6973. return this;
  6974. }
  6975. // optional int32 dummy18 = 18;
  6976. public bool HasDummy18 {
  6977. get { return result.HasDummy18; }
  6978. }
  6979. public int Dummy18 {
  6980. get { return result.Dummy18; }
  6981. set { SetDummy18(value); }
  6982. }
  6983. public Builder SetDummy18(int value) {
  6984. result.hasDummy18 = true;
  6985. result.dummy18_ = value;
  6986. return this;
  6987. }
  6988. public Builder ClearDummy18() {
  6989. result.hasDummy18 = false;
  6990. result.dummy18_ = 0;
  6991. return this;
  6992. }
  6993. // optional int32 dummy19 = 19;
  6994. public bool HasDummy19 {
  6995. get { return result.HasDummy19; }
  6996. }
  6997. public int Dummy19 {
  6998. get { return result.Dummy19; }
  6999. set { SetDummy19(value); }
  7000. }
  7001. public Builder SetDummy19(int value) {
  7002. result.hasDummy19 = true;
  7003. result.dummy19_ = value;
  7004. return this;
  7005. }
  7006. public Builder ClearDummy19() {
  7007. result.hasDummy19 = false;
  7008. result.dummy19_ = 0;
  7009. return this;
  7010. }
  7011. // optional int32 dummy20 = 20;
  7012. public bool HasDummy20 {
  7013. get { return result.HasDummy20; }
  7014. }
  7015. public int Dummy20 {
  7016. get { return result.Dummy20; }
  7017. set { SetDummy20(value); }
  7018. }
  7019. public Builder SetDummy20(int value) {
  7020. result.hasDummy20 = true;
  7021. result.dummy20_ = value;
  7022. return this;
  7023. }
  7024. public Builder ClearDummy20() {
  7025. result.hasDummy20 = false;
  7026. result.dummy20_ = 0;
  7027. return this;
  7028. }
  7029. // optional int32 dummy21 = 21;
  7030. public bool HasDummy21 {
  7031. get { return result.HasDummy21; }
  7032. }
  7033. public int Dummy21 {
  7034. get { return result.Dummy21; }
  7035. set { SetDummy21(value); }
  7036. }
  7037. public Builder SetDummy21(int value) {
  7038. result.hasDummy21 = true;
  7039. result.dummy21_ = value;
  7040. return this;
  7041. }
  7042. public Builder ClearDummy21() {
  7043. result.hasDummy21 = false;
  7044. result.dummy21_ = 0;
  7045. return this;
  7046. }
  7047. // optional int32 dummy22 = 22;
  7048. public bool HasDummy22 {
  7049. get { return result.HasDummy22; }
  7050. }
  7051. public int Dummy22 {
  7052. get { return result.Dummy22; }
  7053. set { SetDummy22(value); }
  7054. }
  7055. public Builder SetDummy22(int value) {
  7056. result.hasDummy22 = true;
  7057. result.dummy22_ = value;
  7058. return this;
  7059. }
  7060. public Builder ClearDummy22() {
  7061. result.hasDummy22 = false;
  7062. result.dummy22_ = 0;
  7063. return this;
  7064. }
  7065. // optional int32 dummy23 = 23;
  7066. public bool HasDummy23 {
  7067. get { return result.HasDummy23; }
  7068. }
  7069. public int Dummy23 {
  7070. get { return result.Dummy23; }
  7071. set { SetDummy23(value); }
  7072. }
  7073. public Builder SetDummy23(int value) {
  7074. result.hasDummy23 = true;
  7075. result.dummy23_ = value;
  7076. return this;
  7077. }
  7078. public Builder ClearDummy23() {
  7079. result.hasDummy23 = false;
  7080. result.dummy23_ = 0;
  7081. return this;
  7082. }
  7083. // optional int32 dummy24 = 24;
  7084. public bool HasDummy24 {
  7085. get { return result.HasDummy24; }
  7086. }
  7087. public int Dummy24 {
  7088. get { return result.Dummy24; }
  7089. set { SetDummy24(value); }
  7090. }
  7091. public Builder SetDummy24(int value) {
  7092. result.hasDummy24 = true;
  7093. result.dummy24_ = value;
  7094. return this;
  7095. }
  7096. public Builder ClearDummy24() {
  7097. result.hasDummy24 = false;
  7098. result.dummy24_ = 0;
  7099. return this;
  7100. }
  7101. // optional int32 dummy25 = 25;
  7102. public bool HasDummy25 {
  7103. get { return result.HasDummy25; }
  7104. }
  7105. public int Dummy25 {
  7106. get { return result.Dummy25; }
  7107. set { SetDummy25(value); }
  7108. }
  7109. public Builder SetDummy25(int value) {
  7110. result.hasDummy25 = true;
  7111. result.dummy25_ = value;
  7112. return this;
  7113. }
  7114. public Builder ClearDummy25() {
  7115. result.hasDummy25 = false;
  7116. result.dummy25_ = 0;
  7117. return this;
  7118. }
  7119. // optional int32 dummy26 = 26;
  7120. public bool HasDummy26 {
  7121. get { return result.HasDummy26; }
  7122. }
  7123. public int Dummy26 {
  7124. get { return result.Dummy26; }
  7125. set { SetDummy26(value); }
  7126. }
  7127. public Builder SetDummy26(int value) {
  7128. result.hasDummy26 = true;
  7129. result.dummy26_ = value;
  7130. return this;
  7131. }
  7132. public Builder ClearDummy26() {
  7133. result.hasDummy26 = false;
  7134. result.dummy26_ = 0;
  7135. return this;
  7136. }
  7137. // optional int32 dummy27 = 27;
  7138. public bool HasDummy27 {
  7139. get { return result.HasDummy27; }
  7140. }
  7141. public int Dummy27 {
  7142. get { return result.Dummy27; }
  7143. set { SetDummy27(value); }
  7144. }
  7145. public Builder SetDummy27(int value) {
  7146. result.hasDummy27 = true;
  7147. result.dummy27_ = value;
  7148. return this;
  7149. }
  7150. public Builder ClearDummy27() {
  7151. result.hasDummy27 = false;
  7152. result.dummy27_ = 0;
  7153. return this;
  7154. }
  7155. // optional int32 dummy28 = 28;
  7156. public bool HasDummy28 {
  7157. get { return result.HasDummy28; }
  7158. }
  7159. public int Dummy28 {
  7160. get { return result.Dummy28; }
  7161. set { SetDummy28(value); }
  7162. }
  7163. public Builder SetDummy28(int value) {
  7164. result.hasDummy28 = true;
  7165. result.dummy28_ = value;
  7166. return this;
  7167. }
  7168. public Builder ClearDummy28() {
  7169. result.hasDummy28 = false;
  7170. result.dummy28_ = 0;
  7171. return this;
  7172. }
  7173. // optional int32 dummy29 = 29;
  7174. public bool HasDummy29 {
  7175. get { return result.HasDummy29; }
  7176. }
  7177. public int Dummy29 {
  7178. get { return result.Dummy29; }
  7179. set { SetDummy29(value); }
  7180. }
  7181. public Builder SetDummy29(int value) {
  7182. result.hasDummy29 = true;
  7183. result.dummy29_ = value;
  7184. return this;
  7185. }
  7186. public Builder ClearDummy29() {
  7187. result.hasDummy29 = false;
  7188. result.dummy29_ = 0;
  7189. return this;
  7190. }
  7191. // optional int32 dummy30 = 30;
  7192. public bool HasDummy30 {
  7193. get { return result.HasDummy30; }
  7194. }
  7195. public int Dummy30 {
  7196. get { return result.Dummy30; }
  7197. set { SetDummy30(value); }
  7198. }
  7199. public Builder SetDummy30(int value) {
  7200. result.hasDummy30 = true;
  7201. result.dummy30_ = value;
  7202. return this;
  7203. }
  7204. public Builder ClearDummy30() {
  7205. result.hasDummy30 = false;
  7206. result.dummy30_ = 0;
  7207. return this;
  7208. }
  7209. // optional int32 dummy31 = 31;
  7210. public bool HasDummy31 {
  7211. get { return result.HasDummy31; }
  7212. }
  7213. public int Dummy31 {
  7214. get { return result.Dummy31; }
  7215. set { SetDummy31(value); }
  7216. }
  7217. public Builder SetDummy31(int value) {
  7218. result.hasDummy31 = true;
  7219. result.dummy31_ = value;
  7220. return this;
  7221. }
  7222. public Builder ClearDummy31() {
  7223. result.hasDummy31 = false;
  7224. result.dummy31_ = 0;
  7225. return this;
  7226. }
  7227. // optional int32 dummy32 = 32;
  7228. public bool HasDummy32 {
  7229. get { return result.HasDummy32; }
  7230. }
  7231. public int Dummy32 {
  7232. get { return result.Dummy32; }
  7233. set { SetDummy32(value); }
  7234. }
  7235. public Builder SetDummy32(int value) {
  7236. result.hasDummy32 = true;
  7237. result.dummy32_ = value;
  7238. return this;
  7239. }
  7240. public Builder ClearDummy32() {
  7241. result.hasDummy32 = false;
  7242. result.dummy32_ = 0;
  7243. return this;
  7244. }
  7245. // required int32 c = 33;
  7246. public bool HasC {
  7247. get { return result.HasC; }
  7248. }
  7249. public int C {
  7250. get { return result.C; }
  7251. set { SetC(value); }
  7252. }
  7253. public Builder SetC(int value) {
  7254. result.hasC = true;
  7255. result.c_ = value;
  7256. return this;
  7257. }
  7258. public Builder ClearC() {
  7259. result.hasC = false;
  7260. result.c_ = 0;
  7261. return this;
  7262. }
  7263. }
  7264. }
  7265. public sealed partial class TestRequiredForeign : pb::GeneratedMessage<TestRequiredForeign, TestRequiredForeign.Builder> {
  7266. // Use TestRequiredForeign.CreateBuilder() to construct.
  7267. private TestRequiredForeign() {}
  7268. private static readonly TestRequiredForeign defaultInstance = new TestRequiredForeign();
  7269. public static TestRequiredForeign DefaultInstance {
  7270. get { return defaultInstance; }
  7271. }
  7272. public override TestRequiredForeign DefaultInstanceForType {
  7273. get { return defaultInstance; }
  7274. }
  7275. public static pbd::MessageDescriptor Descriptor {
  7276. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__Descriptor; }
  7277. }
  7278. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  7279. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable; }
  7280. }
  7281. // optional .protobuf_unittest.TestRequired optional_message = 1;
  7282. private bool hasOptionalMessage;
  7283. private self::TestRequired optionalMessage_ = self::TestRequired.DefaultInstance;
  7284. public bool HasOptionalMessage {
  7285. get { return hasOptionalMessage; }
  7286. }
  7287. public self::TestRequired OptionalMessage {
  7288. get { return optionalMessage_; }
  7289. }
  7290. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  7291. private scg::IList<self::TestRequired> repeatedMessage_ = pbc::Lists<self::TestRequired>.Empty;
  7292. public scg::IList<self::TestRequired> RepeatedMessageList {
  7293. get { return repeatedMessage_; }
  7294. }
  7295. public int RepeatedMessageCount
  7296. { get { return repeatedMessage_.Count; }
  7297. }
  7298. public self::TestRequired GetRepeatedMessage(int index) {
  7299. return repeatedMessage_ [index];
  7300. }
  7301. // optional int32 dummy = 3;
  7302. private bool hasDummy;
  7303. private int dummy_ = 0;
  7304. public bool HasDummy {
  7305. get { return hasDummy; }
  7306. }
  7307. public int Dummy {
  7308. get { return dummy_; }
  7309. }
  7310. public override bool IsInitialized {
  7311. get {
  7312. if (HasOptionalMessage) {
  7313. if (!OptionalMessage.IsInitialized) return false;
  7314. }
  7315. foreach (self::TestRequired element in RepeatedMessageList) {
  7316. if (!element.IsInitialized) return false;
  7317. }
  7318. return true;
  7319. }
  7320. }
  7321. public override void WriteTo(pb::CodedOutputStream output) {
  7322. if (HasOptionalMessage) {
  7323. output.WriteMessage(1, OptionalMessage);
  7324. }
  7325. foreach (self::TestRequired element in RepeatedMessageList) {
  7326. output.WriteMessage(2, element);
  7327. }
  7328. if (HasDummy) {
  7329. output.WriteInt32(3, Dummy);
  7330. }
  7331. UnknownFields.WriteTo(output);
  7332. }
  7333. private int memoizedSerializedSize = -1;
  7334. public override int SerializedSize {
  7335. get {
  7336. int size = memoizedSerializedSize;
  7337. if (size != -1) return size;
  7338. size = 0;
  7339. if (HasOptionalMessage) {
  7340. size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalMessage);
  7341. }
  7342. foreach (self::TestRequired element in RepeatedMessageList) {
  7343. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  7344. }
  7345. if (HasDummy) {
  7346. size += pb::CodedOutputStream.ComputeInt32Size(3, Dummy);
  7347. }
  7348. size += UnknownFields.SerializedSize;
  7349. memoizedSerializedSize = size;
  7350. return size;
  7351. }
  7352. }
  7353. public static self::TestRequiredForeign ParseFrom(pb::ByteString data) {
  7354. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7355. }
  7356. public static self::TestRequiredForeign ParseFrom(pb::ByteString data,
  7357. pb::ExtensionRegistry extensionRegistry) {
  7358. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7359. .BuildParsed();
  7360. }
  7361. public static self::TestRequiredForeign ParseFrom(byte[] data) {
  7362. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7363. }
  7364. public static self::TestRequiredForeign parseFrom(byte[] data,
  7365. pb::ExtensionRegistry extensionRegistry) {
  7366. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7367. .BuildParsed();
  7368. }
  7369. public static self::TestRequiredForeign ParseFrom(global::System.IO.Stream input) {
  7370. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7371. }
  7372. public static self::TestRequiredForeign ParseFrom(
  7373. global::System.IO.Stream input,
  7374. pb::ExtensionRegistry extensionRegistry) {
  7375. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7376. .BuildParsed();
  7377. }
  7378. public static self::TestRequiredForeign ParseFrom(pb::CodedInputStream input) {
  7379. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7380. }
  7381. public static self::TestRequiredForeign ParseFrom(pb::CodedInputStream input,
  7382. pb::ExtensionRegistry extensionRegistry) {
  7383. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7384. .BuildParsed();
  7385. }
  7386. public static Builder CreateBuilder() { return new Builder(); }
  7387. public override IBuilder<self::TestRequiredForeign> CreateBuilderForType() { return new Builder(); }
  7388. public static Builder CreateBuilder(self::TestRequiredForeign prototype) {
  7389. return (Builder) new Builder().MergeFrom(prototype);
  7390. }
  7391. public sealed partial class Builder : pb::GeneratedBuilder<self::TestRequiredForeign, Builder> {
  7392. // Construct using self::TestRequiredForeign.CreateBuilder()
  7393. internal Builder() {}
  7394. self::TestRequiredForeign result = new self::TestRequiredForeign();
  7395. protected override self::TestRequiredForeign MessageBeingBuilt {
  7396. get { return result; }
  7397. }
  7398. public override IBuilder<self::TestRequiredForeign> Clear() {
  7399. result = new self::TestRequiredForeign();
  7400. return this;
  7401. }
  7402. public override IBuilder<self::TestRequiredForeign> Clone() {
  7403. return new Builder().MergeFrom(result);
  7404. }
  7405. public override pbd::MessageDescriptor DescriptorForType {
  7406. get { return self::TestRequiredForeign.Descriptor; }
  7407. }
  7408. public override self::TestRequiredForeign DefaultInstanceForType {
  7409. get { return self::TestRequiredForeign.DefaultInstance; }
  7410. }
  7411. public override self::TestRequiredForeign BuildPartial() {
  7412. if (result.repeatedMessage_ != pbc::Lists<self::TestRequired>.Empty) {
  7413. result.repeatedMessage_ = pbc::Lists<self::TestRequired>.AsReadOnly(result.repeatedMessage_);
  7414. }
  7415. self::TestRequiredForeign returnMe = result;
  7416. result = null;
  7417. return returnMe;
  7418. }
  7419. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  7420. return MergeFrom(data, extensionRegistry);
  7421. }
  7422. public override IBuilder MergeFrom(pb::IMessage other) {
  7423. if (other is self::TestRequiredForeign) {
  7424. return MergeFrom((self::TestRequiredForeign) other);
  7425. } else {
  7426. base.MergeFrom(other);
  7427. return this;
  7428. }
  7429. }
  7430. public override IBuilder<self::TestRequiredForeign> MergeFrom(self::TestRequiredForeign other) {
  7431. if (other == self::TestRequiredForeign.DefaultInstance) return this;
  7432. if (other.HasOptionalMessage) {
  7433. MergeOptionalMessage(other.OptionalMessage);
  7434. }
  7435. if (other.repeatedMessage_.Count != 0) {
  7436. if (result.repeatedMessage_.Count == 0) {
  7437. result.repeatedMessage_ = new scg::List<self::TestRequired>();
  7438. }
  7439. base.AddRange(other.repeatedMessage_, result.repeatedMessage_);
  7440. }
  7441. if (other.HasDummy) {
  7442. Dummy = other.Dummy;
  7443. }
  7444. this.MergeUnknownFields(other.UnknownFields);
  7445. return this;
  7446. }
  7447. public override IBuilder<self::TestRequiredForeign> MergeFrom(pb::CodedInputStream input) {
  7448. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7449. }
  7450. public override IBuilder<self::TestRequiredForeign> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7451. pb::UnknownFieldSet.Builder unknownFields =
  7452. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7453. while (true) {
  7454. uint tag = input.ReadTag();
  7455. switch (tag) {
  7456. case 0:
  7457. this.UnknownFields = unknownFields.Build();
  7458. return this;
  7459. default: {
  7460. if (!ParseUnknownField(input, unknownFields,
  7461. extensionRegistry, tag)) {
  7462. this.UnknownFields = unknownFields.Build();
  7463. return this;
  7464. }
  7465. break;
  7466. }
  7467. case 10: {
  7468. self::TestRequired.Builder subBuilder = self::TestRequired.CreateBuilder();
  7469. if (HasOptionalMessage) {
  7470. subBuilder.MergeFrom(OptionalMessage);
  7471. }
  7472. input.ReadMessage(subBuilder, extensionRegistry);
  7473. OptionalMessage = subBuilder.BuildPartial();
  7474. break;
  7475. }
  7476. case 18: {
  7477. self::TestRequired.Builder subBuilder = self::TestRequired.CreateBuilder();
  7478. input.ReadMessage(subBuilder, extensionRegistry);
  7479. AddRepeatedMessage(subBuilder.BuildPartial());
  7480. break;
  7481. }
  7482. case 24: {
  7483. Dummy = input.ReadInt32();
  7484. break;
  7485. }
  7486. }
  7487. }
  7488. }
  7489. // optional .protobuf_unittest.TestRequired optional_message = 1;
  7490. public bool HasOptionalMessage {
  7491. get { return result.HasOptionalMessage; }
  7492. }
  7493. public self::TestRequired OptionalMessage {
  7494. get { return result.OptionalMessage; }
  7495. set { SetOptionalMessage(value); }
  7496. }
  7497. public Builder SetOptionalMessage(self::TestRequired value) {
  7498. result.hasOptionalMessage = true;
  7499. result.optionalMessage_ = value;
  7500. return this;
  7501. }
  7502. public Builder SetOptionalMessage(self::TestRequired.Builder builderForValue) {
  7503. result.hasOptionalMessage = true;
  7504. result.optionalMessage_ = builderForValue.Build();
  7505. return this;
  7506. }
  7507. public Builder MergeOptionalMessage(self::TestRequired value) {
  7508. if (result.HasOptionalMessage &&
  7509. result.optionalMessage_ != self::TestRequired.DefaultInstance) {
  7510. result.optionalMessage_ =
  7511. self::TestRequired.CreateBuilder(result.optionalMessage_).MergeFrom(value).BuildPartial();
  7512. } else {
  7513. result.optionalMessage_ = value;
  7514. }
  7515. result.hasOptionalMessage = true;
  7516. return this;
  7517. }
  7518. public Builder ClearOptionalMessage() {
  7519. result.hasOptionalMessage = false;
  7520. result.optionalMessage_ = self::TestRequired.DefaultInstance;
  7521. return this;
  7522. }
  7523. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  7524. public scg::IList<self::TestRequired> RepeatedMessageList {
  7525. get { return pbc::Lists.AsReadOnly(result.repeatedMessage_); }
  7526. }
  7527. public int RepeatedMessageCount {
  7528. get { return result.RepeatedMessageCount; }
  7529. }
  7530. public self::TestRequired GetRepeatedMessage(int index) {
  7531. return result.GetRepeatedMessage(index);
  7532. }
  7533. public Builder SetRepeatedMessage(int index, self::TestRequired value) {
  7534. result.repeatedMessage_[index] = value;
  7535. return this;
  7536. }
  7537. public Builder SetRepeatedMessage(int index, self::TestRequired.Builder builderForValue) {
  7538. result.repeatedMessage_[index] = builderForValue.Build();
  7539. return this;
  7540. }
  7541. public Builder AddRepeatedMessage(self::TestRequired value) {
  7542. if (result.repeatedMessage_ == pbc::Lists<self::TestRequired>.Empty) {
  7543. result.repeatedMessage_ = new scg::List<self::TestRequired>();
  7544. }
  7545. result.repeatedMessage_.Add(value);
  7546. return this;
  7547. }
  7548. public Builder AddRepeatedMessage(self::TestRequired.Builder builderForValue) {
  7549. if (result.repeatedMessage_ == pbc::Lists<self::TestRequired>.Empty) {
  7550. result.repeatedMessage_ = new scg::List<self::TestRequired>();
  7551. }
  7552. result.repeatedMessage_.Add(builderForValue.Build());
  7553. return this;
  7554. }
  7555. public Builder AddRangeRepeatedMessage(scg::IEnumerable<self::TestRequired> values) {
  7556. if (result.repeatedMessage_ == pbc::Lists<self::TestRequired>.Empty) {
  7557. result.repeatedMessage_ = new scg::List<self::TestRequired>();
  7558. }
  7559. base.AddRange(values, result.repeatedMessage_);
  7560. return this;
  7561. }
  7562. public Builder ClearRepeatedMessage() {
  7563. result.repeatedMessage_ = pbc::Lists<self::TestRequired>.Empty;
  7564. return this;
  7565. }
  7566. // optional int32 dummy = 3;
  7567. public bool HasDummy {
  7568. get { return result.HasDummy; }
  7569. }
  7570. public int Dummy {
  7571. get { return result.Dummy; }
  7572. set { SetDummy(value); }
  7573. }
  7574. public Builder SetDummy(int value) {
  7575. result.hasDummy = true;
  7576. result.dummy_ = value;
  7577. return this;
  7578. }
  7579. public Builder ClearDummy() {
  7580. result.hasDummy = false;
  7581. result.dummy_ = 0;
  7582. return this;
  7583. }
  7584. }
  7585. }
  7586. public sealed partial class TestForeignNested : pb::GeneratedMessage<TestForeignNested, TestForeignNested.Builder> {
  7587. // Use TestForeignNested.CreateBuilder() to construct.
  7588. private TestForeignNested() {}
  7589. private static readonly TestForeignNested defaultInstance = new TestForeignNested();
  7590. public static TestForeignNested DefaultInstance {
  7591. get { return defaultInstance; }
  7592. }
  7593. public override TestForeignNested DefaultInstanceForType {
  7594. get { return defaultInstance; }
  7595. }
  7596. public static pbd::MessageDescriptor Descriptor {
  7597. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__Descriptor; }
  7598. }
  7599. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  7600. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; }
  7601. }
  7602. // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
  7603. private bool hasForeignNested;
  7604. private self::TestAllTypes.Types.NestedMessage foreignNested_ = self::TestAllTypes.Types.NestedMessage.DefaultInstance;
  7605. public bool HasForeignNested {
  7606. get { return hasForeignNested; }
  7607. }
  7608. public self::TestAllTypes.Types.NestedMessage ForeignNested {
  7609. get { return foreignNested_; }
  7610. }
  7611. public override bool IsInitialized {
  7612. get {
  7613. return true;
  7614. }
  7615. }
  7616. public override void WriteTo(pb::CodedOutputStream output) {
  7617. if (HasForeignNested) {
  7618. output.WriteMessage(1, ForeignNested);
  7619. }
  7620. UnknownFields.WriteTo(output);
  7621. }
  7622. private int memoizedSerializedSize = -1;
  7623. public override int SerializedSize {
  7624. get {
  7625. int size = memoizedSerializedSize;
  7626. if (size != -1) return size;
  7627. size = 0;
  7628. if (HasForeignNested) {
  7629. size += pb::CodedOutputStream.ComputeMessageSize(1, ForeignNested);
  7630. }
  7631. size += UnknownFields.SerializedSize;
  7632. memoizedSerializedSize = size;
  7633. return size;
  7634. }
  7635. }
  7636. public static self::TestForeignNested ParseFrom(pb::ByteString data) {
  7637. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7638. }
  7639. public static self::TestForeignNested ParseFrom(pb::ByteString data,
  7640. pb::ExtensionRegistry extensionRegistry) {
  7641. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7642. .BuildParsed();
  7643. }
  7644. public static self::TestForeignNested ParseFrom(byte[] data) {
  7645. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7646. }
  7647. public static self::TestForeignNested parseFrom(byte[] data,
  7648. pb::ExtensionRegistry extensionRegistry) {
  7649. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7650. .BuildParsed();
  7651. }
  7652. public static self::TestForeignNested ParseFrom(global::System.IO.Stream input) {
  7653. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7654. }
  7655. public static self::TestForeignNested ParseFrom(
  7656. global::System.IO.Stream input,
  7657. pb::ExtensionRegistry extensionRegistry) {
  7658. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7659. .BuildParsed();
  7660. }
  7661. public static self::TestForeignNested ParseFrom(pb::CodedInputStream input) {
  7662. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7663. }
  7664. public static self::TestForeignNested ParseFrom(pb::CodedInputStream input,
  7665. pb::ExtensionRegistry extensionRegistry) {
  7666. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7667. .BuildParsed();
  7668. }
  7669. public static Builder CreateBuilder() { return new Builder(); }
  7670. public override IBuilder<self::TestForeignNested> CreateBuilderForType() { return new Builder(); }
  7671. public static Builder CreateBuilder(self::TestForeignNested prototype) {
  7672. return (Builder) new Builder().MergeFrom(prototype);
  7673. }
  7674. public sealed partial class Builder : pb::GeneratedBuilder<self::TestForeignNested, Builder> {
  7675. // Construct using self::TestForeignNested.CreateBuilder()
  7676. internal Builder() {}
  7677. self::TestForeignNested result = new self::TestForeignNested();
  7678. protected override self::TestForeignNested MessageBeingBuilt {
  7679. get { return result; }
  7680. }
  7681. public override IBuilder<self::TestForeignNested> Clear() {
  7682. result = new self::TestForeignNested();
  7683. return this;
  7684. }
  7685. public override IBuilder<self::TestForeignNested> Clone() {
  7686. return new Builder().MergeFrom(result);
  7687. }
  7688. public override pbd::MessageDescriptor DescriptorForType {
  7689. get { return self::TestForeignNested.Descriptor; }
  7690. }
  7691. public override self::TestForeignNested DefaultInstanceForType {
  7692. get { return self::TestForeignNested.DefaultInstance; }
  7693. }
  7694. public override self::TestForeignNested BuildPartial() {
  7695. self::TestForeignNested returnMe = result;
  7696. result = null;
  7697. return returnMe;
  7698. }
  7699. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  7700. return MergeFrom(data, extensionRegistry);
  7701. }
  7702. public override IBuilder MergeFrom(pb::IMessage other) {
  7703. if (other is self::TestForeignNested) {
  7704. return MergeFrom((self::TestForeignNested) other);
  7705. } else {
  7706. base.MergeFrom(other);
  7707. return this;
  7708. }
  7709. }
  7710. public override IBuilder<self::TestForeignNested> MergeFrom(self::TestForeignNested other) {
  7711. if (other == self::TestForeignNested.DefaultInstance) return this;
  7712. if (other.HasForeignNested) {
  7713. MergeForeignNested(other.ForeignNested);
  7714. }
  7715. this.MergeUnknownFields(other.UnknownFields);
  7716. return this;
  7717. }
  7718. public override IBuilder<self::TestForeignNested> MergeFrom(pb::CodedInputStream input) {
  7719. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7720. }
  7721. public override IBuilder<self::TestForeignNested> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7722. pb::UnknownFieldSet.Builder unknownFields =
  7723. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7724. while (true) {
  7725. uint tag = input.ReadTag();
  7726. switch (tag) {
  7727. case 0:
  7728. this.UnknownFields = unknownFields.Build();
  7729. return this;
  7730. default: {
  7731. if (!ParseUnknownField(input, unknownFields,
  7732. extensionRegistry, tag)) {
  7733. this.UnknownFields = unknownFields.Build();
  7734. return this;
  7735. }
  7736. break;
  7737. }
  7738. case 10: {
  7739. self::TestAllTypes.Types.NestedMessage.Builder subBuilder = self::TestAllTypes.Types.NestedMessage.CreateBuilder();
  7740. if (HasForeignNested) {
  7741. subBuilder.MergeFrom(ForeignNested);
  7742. }
  7743. input.ReadMessage(subBuilder, extensionRegistry);
  7744. ForeignNested = subBuilder.BuildPartial();
  7745. break;
  7746. }
  7747. }
  7748. }
  7749. }
  7750. // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
  7751. public bool HasForeignNested {
  7752. get { return result.HasForeignNested; }
  7753. }
  7754. public self::TestAllTypes.Types.NestedMessage ForeignNested {
  7755. get { return result.ForeignNested; }
  7756. set { SetForeignNested(value); }
  7757. }
  7758. public Builder SetForeignNested(self::TestAllTypes.Types.NestedMessage value) {
  7759. result.hasForeignNested = true;
  7760. result.foreignNested_ = value;
  7761. return this;
  7762. }
  7763. public Builder SetForeignNested(self::TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  7764. result.hasForeignNested = true;
  7765. result.foreignNested_ = builderForValue.Build();
  7766. return this;
  7767. }
  7768. public Builder MergeForeignNested(self::TestAllTypes.Types.NestedMessage value) {
  7769. if (result.HasForeignNested &&
  7770. result.foreignNested_ != self::TestAllTypes.Types.NestedMessage.DefaultInstance) {
  7771. result.foreignNested_ =
  7772. self::TestAllTypes.Types.NestedMessage.CreateBuilder(result.foreignNested_).MergeFrom(value).BuildPartial();
  7773. } else {
  7774. result.foreignNested_ = value;
  7775. }
  7776. result.hasForeignNested = true;
  7777. return this;
  7778. }
  7779. public Builder ClearForeignNested() {
  7780. result.hasForeignNested = false;
  7781. result.foreignNested_ = self::TestAllTypes.Types.NestedMessage.DefaultInstance;
  7782. return this;
  7783. }
  7784. }
  7785. }
  7786. public sealed partial class TestEmptyMessage : pb::GeneratedMessage<TestEmptyMessage, TestEmptyMessage.Builder> {
  7787. // Use TestEmptyMessage.CreateBuilder() to construct.
  7788. private TestEmptyMessage() {}
  7789. private static readonly TestEmptyMessage defaultInstance = new TestEmptyMessage();
  7790. public static TestEmptyMessage DefaultInstance {
  7791. get { return defaultInstance; }
  7792. }
  7793. public override TestEmptyMessage DefaultInstanceForType {
  7794. get { return defaultInstance; }
  7795. }
  7796. public static pbd::MessageDescriptor Descriptor {
  7797. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__Descriptor; }
  7798. }
  7799. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  7800. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable; }
  7801. }
  7802. public override bool IsInitialized {
  7803. get {
  7804. return true;
  7805. }
  7806. }
  7807. public override void WriteTo(pb::CodedOutputStream output) {
  7808. UnknownFields.WriteTo(output);
  7809. }
  7810. private int memoizedSerializedSize = -1;
  7811. public override int SerializedSize {
  7812. get {
  7813. int size = memoizedSerializedSize;
  7814. if (size != -1) return size;
  7815. size = 0;
  7816. size += UnknownFields.SerializedSize;
  7817. memoizedSerializedSize = size;
  7818. return size;
  7819. }
  7820. }
  7821. public static self::TestEmptyMessage ParseFrom(pb::ByteString data) {
  7822. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7823. }
  7824. public static self::TestEmptyMessage ParseFrom(pb::ByteString data,
  7825. pb::ExtensionRegistry extensionRegistry) {
  7826. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7827. .BuildParsed();
  7828. }
  7829. public static self::TestEmptyMessage ParseFrom(byte[] data) {
  7830. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7831. }
  7832. public static self::TestEmptyMessage parseFrom(byte[] data,
  7833. pb::ExtensionRegistry extensionRegistry) {
  7834. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7835. .BuildParsed();
  7836. }
  7837. public static self::TestEmptyMessage ParseFrom(global::System.IO.Stream input) {
  7838. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7839. }
  7840. public static self::TestEmptyMessage ParseFrom(
  7841. global::System.IO.Stream input,
  7842. pb::ExtensionRegistry extensionRegistry) {
  7843. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7844. .BuildParsed();
  7845. }
  7846. public static self::TestEmptyMessage ParseFrom(pb::CodedInputStream input) {
  7847. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7848. }
  7849. public static self::TestEmptyMessage ParseFrom(pb::CodedInputStream input,
  7850. pb::ExtensionRegistry extensionRegistry) {
  7851. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7852. .BuildParsed();
  7853. }
  7854. public static Builder CreateBuilder() { return new Builder(); }
  7855. public override IBuilder<self::TestEmptyMessage> CreateBuilderForType() { return new Builder(); }
  7856. public static Builder CreateBuilder(self::TestEmptyMessage prototype) {
  7857. return (Builder) new Builder().MergeFrom(prototype);
  7858. }
  7859. public sealed partial class Builder : pb::GeneratedBuilder<self::TestEmptyMessage, Builder> {
  7860. // Construct using self::TestEmptyMessage.CreateBuilder()
  7861. internal Builder() {}
  7862. self::TestEmptyMessage result = new self::TestEmptyMessage();
  7863. protected override self::TestEmptyMessage MessageBeingBuilt {
  7864. get { return result; }
  7865. }
  7866. public override IBuilder<self::TestEmptyMessage> Clear() {
  7867. result = new self::TestEmptyMessage();
  7868. return this;
  7869. }
  7870. public override IBuilder<self::TestEmptyMessage> Clone() {
  7871. return new Builder().MergeFrom(result);
  7872. }
  7873. public override pbd::MessageDescriptor DescriptorForType {
  7874. get { return self::TestEmptyMessage.Descriptor; }
  7875. }
  7876. public override self::TestEmptyMessage DefaultInstanceForType {
  7877. get { return self::TestEmptyMessage.DefaultInstance; }
  7878. }
  7879. public override self::TestEmptyMessage BuildPartial() {
  7880. self::TestEmptyMessage returnMe = result;
  7881. result = null;
  7882. return returnMe;
  7883. }
  7884. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  7885. return MergeFrom(data, extensionRegistry);
  7886. }
  7887. public override IBuilder MergeFrom(pb::IMessage other) {
  7888. if (other is self::TestEmptyMessage) {
  7889. return MergeFrom((self::TestEmptyMessage) other);
  7890. } else {
  7891. base.MergeFrom(other);
  7892. return this;
  7893. }
  7894. }
  7895. public override IBuilder<self::TestEmptyMessage> MergeFrom(self::TestEmptyMessage other) {
  7896. if (other == self::TestEmptyMessage.DefaultInstance) return this;
  7897. this.MergeUnknownFields(other.UnknownFields);
  7898. return this;
  7899. }
  7900. public override IBuilder<self::TestEmptyMessage> MergeFrom(pb::CodedInputStream input) {
  7901. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7902. }
  7903. public override IBuilder<self::TestEmptyMessage> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7904. pb::UnknownFieldSet.Builder unknownFields =
  7905. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7906. while (true) {
  7907. uint tag = input.ReadTag();
  7908. switch (tag) {
  7909. case 0:
  7910. this.UnknownFields = unknownFields.Build();
  7911. return this;
  7912. default: {
  7913. if (!ParseUnknownField(input, unknownFields,
  7914. extensionRegistry, tag)) {
  7915. this.UnknownFields = unknownFields.Build();
  7916. return this;
  7917. }
  7918. break;
  7919. }
  7920. }
  7921. }
  7922. }
  7923. }
  7924. }
  7925. public sealed partial class TestEmptyMessageWithExtensions : pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> {
  7926. // Use TestEmptyMessageWithExtensions.CreateBuilder() to construct.
  7927. private TestEmptyMessageWithExtensions() {}
  7928. private static readonly TestEmptyMessageWithExtensions defaultInstance = new TestEmptyMessageWithExtensions();
  7929. public static TestEmptyMessageWithExtensions DefaultInstance {
  7930. get { return defaultInstance; }
  7931. }
  7932. public override TestEmptyMessageWithExtensions DefaultInstanceForType {
  7933. get { return defaultInstance; }
  7934. }
  7935. public static pbd::MessageDescriptor Descriptor {
  7936. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor; }
  7937. }
  7938. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  7939. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable; }
  7940. }
  7941. public override bool IsInitialized {
  7942. get {
  7943. if (!ExtensionsAreInitialized) return false;
  7944. return true;
  7945. }
  7946. }
  7947. public override void WriteTo(pb::CodedOutputStream output) {
  7948. pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  7949. extensionWriter.WriteUntil(536870912, output);
  7950. UnknownFields.WriteTo(output);
  7951. }
  7952. private int memoizedSerializedSize = -1;
  7953. public override int SerializedSize {
  7954. get {
  7955. int size = memoizedSerializedSize;
  7956. if (size != -1) return size;
  7957. size = 0;
  7958. size += ExtensionsSerializedSize;
  7959. size += UnknownFields.SerializedSize;
  7960. memoizedSerializedSize = size;
  7961. return size;
  7962. }
  7963. }
  7964. public static self::TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data) {
  7965. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7966. }
  7967. public static self::TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data,
  7968. pb::ExtensionRegistry extensionRegistry) {
  7969. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7970. .BuildParsed();
  7971. }
  7972. public static self::TestEmptyMessageWithExtensions ParseFrom(byte[] data) {
  7973. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7974. }
  7975. public static self::TestEmptyMessageWithExtensions parseFrom(byte[] data,
  7976. pb::ExtensionRegistry extensionRegistry) {
  7977. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7978. .BuildParsed();
  7979. }
  7980. public static self::TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input) {
  7981. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7982. }
  7983. public static self::TestEmptyMessageWithExtensions ParseFrom(
  7984. global::System.IO.Stream input,
  7985. pb::ExtensionRegistry extensionRegistry) {
  7986. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7987. .BuildParsed();
  7988. }
  7989. public static self::TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input) {
  7990. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7991. }
  7992. public static self::TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input,
  7993. pb::ExtensionRegistry extensionRegistry) {
  7994. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7995. .BuildParsed();
  7996. }
  7997. public static Builder CreateBuilder() { return new Builder(); }
  7998. public override IBuilder<self::TestEmptyMessageWithExtensions> CreateBuilderForType() { return new Builder(); }
  7999. public static Builder CreateBuilder(self::TestEmptyMessageWithExtensions prototype) {
  8000. return (Builder) new Builder().MergeFrom(prototype);
  8001. }
  8002. public sealed partial class Builder : pb::ExtendableBuilder<self::TestEmptyMessageWithExtensions, self::TestEmptyMessageWithExtensions.Builder> {
  8003. // Construct using self::TestEmptyMessageWithExtensions.CreateBuilder()
  8004. internal Builder() {}
  8005. self::TestEmptyMessageWithExtensions result = new self::TestEmptyMessageWithExtensions();
  8006. protected override self::TestEmptyMessageWithExtensions MessageBeingBuilt {
  8007. get { return result; }
  8008. }
  8009. public override IBuilder<self::TestEmptyMessageWithExtensions> Clear() {
  8010. result = new self::TestEmptyMessageWithExtensions();
  8011. return this;
  8012. }
  8013. public override IBuilder<self::TestEmptyMessageWithExtensions> Clone() {
  8014. return new Builder().MergeFrom(result);
  8015. }
  8016. public override pbd::MessageDescriptor DescriptorForType {
  8017. get { return self::TestEmptyMessageWithExtensions.Descriptor; }
  8018. }
  8019. public override self::TestEmptyMessageWithExtensions DefaultInstanceForType {
  8020. get { return self::TestEmptyMessageWithExtensions.DefaultInstance; }
  8021. }
  8022. public override self::TestEmptyMessageWithExtensions BuildPartial() {
  8023. self::TestEmptyMessageWithExtensions returnMe = result;
  8024. result = null;
  8025. return returnMe;
  8026. }
  8027. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  8028. return MergeFrom(data, extensionRegistry);
  8029. }
  8030. public override IBuilder MergeFrom(pb::IMessage other) {
  8031. if (other is self::TestEmptyMessageWithExtensions) {
  8032. return MergeFrom((self::TestEmptyMessageWithExtensions) other);
  8033. } else {
  8034. base.MergeFrom(other);
  8035. return this;
  8036. }
  8037. }
  8038. public override IBuilder<self::TestEmptyMessageWithExtensions> MergeFrom(self::TestEmptyMessageWithExtensions other) {
  8039. if (other == self::TestEmptyMessageWithExtensions.DefaultInstance) return this;
  8040. this.MergeUnknownFields(other.UnknownFields);
  8041. return this;
  8042. }
  8043. public override IBuilder<self::TestEmptyMessageWithExtensions> MergeFrom(pb::CodedInputStream input) {
  8044. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8045. }
  8046. public override IBuilder<self::TestEmptyMessageWithExtensions> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8047. pb::UnknownFieldSet.Builder unknownFields =
  8048. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8049. while (true) {
  8050. uint tag = input.ReadTag();
  8051. switch (tag) {
  8052. case 0:
  8053. this.UnknownFields = unknownFields.Build();
  8054. return this;
  8055. default: {
  8056. if (!ParseUnknownField(input, unknownFields,
  8057. extensionRegistry, tag)) {
  8058. this.UnknownFields = unknownFields.Build();
  8059. return this;
  8060. }
  8061. break;
  8062. }
  8063. }
  8064. }
  8065. }
  8066. }
  8067. }
  8068. public sealed partial class TestReallyLargeTagNumber : pb::GeneratedMessage<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> {
  8069. // Use TestReallyLargeTagNumber.CreateBuilder() to construct.
  8070. private TestReallyLargeTagNumber() {}
  8071. private static readonly TestReallyLargeTagNumber defaultInstance = new TestReallyLargeTagNumber();
  8072. public static TestReallyLargeTagNumber DefaultInstance {
  8073. get { return defaultInstance; }
  8074. }
  8075. public override TestReallyLargeTagNumber DefaultInstanceForType {
  8076. get { return defaultInstance; }
  8077. }
  8078. public static pbd::MessageDescriptor Descriptor {
  8079. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor; }
  8080. }
  8081. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8082. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; }
  8083. }
  8084. // optional int32 a = 1;
  8085. private bool hasA;
  8086. private int a_ = 0;
  8087. public bool HasA {
  8088. get { return hasA; }
  8089. }
  8090. public int A {
  8091. get { return a_; }
  8092. }
  8093. // optional int32 bb = 268435455;
  8094. private bool hasBb;
  8095. private int bb_ = 0;
  8096. public bool HasBb {
  8097. get { return hasBb; }
  8098. }
  8099. public int Bb {
  8100. get { return bb_; }
  8101. }
  8102. public override bool IsInitialized {
  8103. get {
  8104. return true;
  8105. }
  8106. }
  8107. public override void WriteTo(pb::CodedOutputStream output) {
  8108. if (HasA) {
  8109. output.WriteInt32(1, A);
  8110. }
  8111. if (HasBb) {
  8112. output.WriteInt32(268435455, Bb);
  8113. }
  8114. UnknownFields.WriteTo(output);
  8115. }
  8116. private int memoizedSerializedSize = -1;
  8117. public override int SerializedSize {
  8118. get {
  8119. int size = memoizedSerializedSize;
  8120. if (size != -1) return size;
  8121. size = 0;
  8122. if (HasA) {
  8123. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  8124. }
  8125. if (HasBb) {
  8126. size += pb::CodedOutputStream.ComputeInt32Size(268435455, Bb);
  8127. }
  8128. size += UnknownFields.SerializedSize;
  8129. memoizedSerializedSize = size;
  8130. return size;
  8131. }
  8132. }
  8133. public static self::TestReallyLargeTagNumber ParseFrom(pb::ByteString data) {
  8134. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8135. }
  8136. public static self::TestReallyLargeTagNumber ParseFrom(pb::ByteString data,
  8137. pb::ExtensionRegistry extensionRegistry) {
  8138. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8139. .BuildParsed();
  8140. }
  8141. public static self::TestReallyLargeTagNumber ParseFrom(byte[] data) {
  8142. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8143. }
  8144. public static self::TestReallyLargeTagNumber parseFrom(byte[] data,
  8145. pb::ExtensionRegistry extensionRegistry) {
  8146. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8147. .BuildParsed();
  8148. }
  8149. public static self::TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input) {
  8150. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8151. }
  8152. public static self::TestReallyLargeTagNumber ParseFrom(
  8153. global::System.IO.Stream input,
  8154. pb::ExtensionRegistry extensionRegistry) {
  8155. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8156. .BuildParsed();
  8157. }
  8158. public static self::TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input) {
  8159. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8160. }
  8161. public static self::TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input,
  8162. pb::ExtensionRegistry extensionRegistry) {
  8163. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8164. .BuildParsed();
  8165. }
  8166. public static Builder CreateBuilder() { return new Builder(); }
  8167. public override IBuilder<self::TestReallyLargeTagNumber> CreateBuilderForType() { return new Builder(); }
  8168. public static Builder CreateBuilder(self::TestReallyLargeTagNumber prototype) {
  8169. return (Builder) new Builder().MergeFrom(prototype);
  8170. }
  8171. public sealed partial class Builder : pb::GeneratedBuilder<self::TestReallyLargeTagNumber, Builder> {
  8172. // Construct using self::TestReallyLargeTagNumber.CreateBuilder()
  8173. internal Builder() {}
  8174. self::TestReallyLargeTagNumber result = new self::TestReallyLargeTagNumber();
  8175. protected override self::TestReallyLargeTagNumber MessageBeingBuilt {
  8176. get { return result; }
  8177. }
  8178. public override IBuilder<self::TestReallyLargeTagNumber> Clear() {
  8179. result = new self::TestReallyLargeTagNumber();
  8180. return this;
  8181. }
  8182. public override IBuilder<self::TestReallyLargeTagNumber> Clone() {
  8183. return new Builder().MergeFrom(result);
  8184. }
  8185. public override pbd::MessageDescriptor DescriptorForType {
  8186. get { return self::TestReallyLargeTagNumber.Descriptor; }
  8187. }
  8188. public override self::TestReallyLargeTagNumber DefaultInstanceForType {
  8189. get { return self::TestReallyLargeTagNumber.DefaultInstance; }
  8190. }
  8191. public override self::TestReallyLargeTagNumber BuildPartial() {
  8192. self::TestReallyLargeTagNumber returnMe = result;
  8193. result = null;
  8194. return returnMe;
  8195. }
  8196. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  8197. return MergeFrom(data, extensionRegistry);
  8198. }
  8199. public override IBuilder MergeFrom(pb::IMessage other) {
  8200. if (other is self::TestReallyLargeTagNumber) {
  8201. return MergeFrom((self::TestReallyLargeTagNumber) other);
  8202. } else {
  8203. base.MergeFrom(other);
  8204. return this;
  8205. }
  8206. }
  8207. public override IBuilder<self::TestReallyLargeTagNumber> MergeFrom(self::TestReallyLargeTagNumber other) {
  8208. if (other == self::TestReallyLargeTagNumber.DefaultInstance) return this;
  8209. if (other.HasA) {
  8210. A = other.A;
  8211. }
  8212. if (other.HasBb) {
  8213. Bb = other.Bb;
  8214. }
  8215. this.MergeUnknownFields(other.UnknownFields);
  8216. return this;
  8217. }
  8218. public override IBuilder<self::TestReallyLargeTagNumber> MergeFrom(pb::CodedInputStream input) {
  8219. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8220. }
  8221. public override IBuilder<self::TestReallyLargeTagNumber> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8222. pb::UnknownFieldSet.Builder unknownFields =
  8223. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8224. while (true) {
  8225. uint tag = input.ReadTag();
  8226. switch (tag) {
  8227. case 0:
  8228. this.UnknownFields = unknownFields.Build();
  8229. return this;
  8230. default: {
  8231. if (!ParseUnknownField(input, unknownFields,
  8232. extensionRegistry, tag)) {
  8233. this.UnknownFields = unknownFields.Build();
  8234. return this;
  8235. }
  8236. break;
  8237. }
  8238. case 8: {
  8239. A = input.ReadInt32();
  8240. break;
  8241. }
  8242. case 2147483640: {
  8243. Bb = input.ReadInt32();
  8244. break;
  8245. }
  8246. }
  8247. }
  8248. }
  8249. // optional int32 a = 1;
  8250. public bool HasA {
  8251. get { return result.HasA; }
  8252. }
  8253. public int A {
  8254. get { return result.A; }
  8255. set { SetA(value); }
  8256. }
  8257. public Builder SetA(int value) {
  8258. result.hasA = true;
  8259. result.a_ = value;
  8260. return this;
  8261. }
  8262. public Builder ClearA() {
  8263. result.hasA = false;
  8264. result.a_ = 0;
  8265. return this;
  8266. }
  8267. // optional int32 bb = 268435455;
  8268. public bool HasBb {
  8269. get { return result.HasBb; }
  8270. }
  8271. public int Bb {
  8272. get { return result.Bb; }
  8273. set { SetBb(value); }
  8274. }
  8275. public Builder SetBb(int value) {
  8276. result.hasBb = true;
  8277. result.bb_ = value;
  8278. return this;
  8279. }
  8280. public Builder ClearBb() {
  8281. result.hasBb = false;
  8282. result.bb_ = 0;
  8283. return this;
  8284. }
  8285. }
  8286. }
  8287. public sealed partial class TestRecursiveMessage : pb::GeneratedMessage<TestRecursiveMessage, TestRecursiveMessage.Builder> {
  8288. // Use TestRecursiveMessage.CreateBuilder() to construct.
  8289. private TestRecursiveMessage() {}
  8290. private static readonly TestRecursiveMessage defaultInstance = new TestRecursiveMessage();
  8291. public static TestRecursiveMessage DefaultInstance {
  8292. get { return defaultInstance; }
  8293. }
  8294. public override TestRecursiveMessage DefaultInstanceForType {
  8295. get { return defaultInstance; }
  8296. }
  8297. public static pbd::MessageDescriptor Descriptor {
  8298. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor; }
  8299. }
  8300. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8301. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; }
  8302. }
  8303. // optional .protobuf_unittest.TestRecursiveMessage a = 1;
  8304. private bool hasA;
  8305. private self::TestRecursiveMessage a_ = self::TestRecursiveMessage.DefaultInstance;
  8306. public bool HasA {
  8307. get { return hasA; }
  8308. }
  8309. public self::TestRecursiveMessage A {
  8310. get { return a_; }
  8311. }
  8312. // optional int32 i = 2;
  8313. private bool hasI;
  8314. private int i_ = 0;
  8315. public bool HasI {
  8316. get { return hasI; }
  8317. }
  8318. public int I {
  8319. get { return i_; }
  8320. }
  8321. public override bool IsInitialized {
  8322. get {
  8323. return true;
  8324. }
  8325. }
  8326. public override void WriteTo(pb::CodedOutputStream output) {
  8327. if (HasA) {
  8328. output.WriteMessage(1, A);
  8329. }
  8330. if (HasI) {
  8331. output.WriteInt32(2, I);
  8332. }
  8333. UnknownFields.WriteTo(output);
  8334. }
  8335. private int memoizedSerializedSize = -1;
  8336. public override int SerializedSize {
  8337. get {
  8338. int size = memoizedSerializedSize;
  8339. if (size != -1) return size;
  8340. size = 0;
  8341. if (HasA) {
  8342. size += pb::CodedOutputStream.ComputeMessageSize(1, A);
  8343. }
  8344. if (HasI) {
  8345. size += pb::CodedOutputStream.ComputeInt32Size(2, I);
  8346. }
  8347. size += UnknownFields.SerializedSize;
  8348. memoizedSerializedSize = size;
  8349. return size;
  8350. }
  8351. }
  8352. public static self::TestRecursiveMessage ParseFrom(pb::ByteString data) {
  8353. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8354. }
  8355. public static self::TestRecursiveMessage ParseFrom(pb::ByteString data,
  8356. pb::ExtensionRegistry extensionRegistry) {
  8357. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8358. .BuildParsed();
  8359. }
  8360. public static self::TestRecursiveMessage ParseFrom(byte[] data) {
  8361. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8362. }
  8363. public static self::TestRecursiveMessage parseFrom(byte[] data,
  8364. pb::ExtensionRegistry extensionRegistry) {
  8365. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8366. .BuildParsed();
  8367. }
  8368. public static self::TestRecursiveMessage ParseFrom(global::System.IO.Stream input) {
  8369. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8370. }
  8371. public static self::TestRecursiveMessage ParseFrom(
  8372. global::System.IO.Stream input,
  8373. pb::ExtensionRegistry extensionRegistry) {
  8374. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8375. .BuildParsed();
  8376. }
  8377. public static self::TestRecursiveMessage ParseFrom(pb::CodedInputStream input) {
  8378. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8379. }
  8380. public static self::TestRecursiveMessage ParseFrom(pb::CodedInputStream input,
  8381. pb::ExtensionRegistry extensionRegistry) {
  8382. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8383. .BuildParsed();
  8384. }
  8385. public static Builder CreateBuilder() { return new Builder(); }
  8386. public override IBuilder<self::TestRecursiveMessage> CreateBuilderForType() { return new Builder(); }
  8387. public static Builder CreateBuilder(self::TestRecursiveMessage prototype) {
  8388. return (Builder) new Builder().MergeFrom(prototype);
  8389. }
  8390. public sealed partial class Builder : pb::GeneratedBuilder<self::TestRecursiveMessage, Builder> {
  8391. // Construct using self::TestRecursiveMessage.CreateBuilder()
  8392. internal Builder() {}
  8393. self::TestRecursiveMessage result = new self::TestRecursiveMessage();
  8394. protected override self::TestRecursiveMessage MessageBeingBuilt {
  8395. get { return result; }
  8396. }
  8397. public override IBuilder<self::TestRecursiveMessage> Clear() {
  8398. result = new self::TestRecursiveMessage();
  8399. return this;
  8400. }
  8401. public override IBuilder<self::TestRecursiveMessage> Clone() {
  8402. return new Builder().MergeFrom(result);
  8403. }
  8404. public override pbd::MessageDescriptor DescriptorForType {
  8405. get { return self::TestRecursiveMessage.Descriptor; }
  8406. }
  8407. public override self::TestRecursiveMessage DefaultInstanceForType {
  8408. get { return self::TestRecursiveMessage.DefaultInstance; }
  8409. }
  8410. public override self::TestRecursiveMessage BuildPartial() {
  8411. self::TestRecursiveMessage returnMe = result;
  8412. result = null;
  8413. return returnMe;
  8414. }
  8415. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  8416. return MergeFrom(data, extensionRegistry);
  8417. }
  8418. public override IBuilder MergeFrom(pb::IMessage other) {
  8419. if (other is self::TestRecursiveMessage) {
  8420. return MergeFrom((self::TestRecursiveMessage) other);
  8421. } else {
  8422. base.MergeFrom(other);
  8423. return this;
  8424. }
  8425. }
  8426. public override IBuilder<self::TestRecursiveMessage> MergeFrom(self::TestRecursiveMessage other) {
  8427. if (other == self::TestRecursiveMessage.DefaultInstance) return this;
  8428. if (other.HasA) {
  8429. MergeA(other.A);
  8430. }
  8431. if (other.HasI) {
  8432. I = other.I;
  8433. }
  8434. this.MergeUnknownFields(other.UnknownFields);
  8435. return this;
  8436. }
  8437. public override IBuilder<self::TestRecursiveMessage> MergeFrom(pb::CodedInputStream input) {
  8438. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8439. }
  8440. public override IBuilder<self::TestRecursiveMessage> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8441. pb::UnknownFieldSet.Builder unknownFields =
  8442. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8443. while (true) {
  8444. uint tag = input.ReadTag();
  8445. switch (tag) {
  8446. case 0:
  8447. this.UnknownFields = unknownFields.Build();
  8448. return this;
  8449. default: {
  8450. if (!ParseUnknownField(input, unknownFields,
  8451. extensionRegistry, tag)) {
  8452. this.UnknownFields = unknownFields.Build();
  8453. return this;
  8454. }
  8455. break;
  8456. }
  8457. case 10: {
  8458. self::TestRecursiveMessage.Builder subBuilder = self::TestRecursiveMessage.CreateBuilder();
  8459. if (HasA) {
  8460. subBuilder.MergeFrom(A);
  8461. }
  8462. input.ReadMessage(subBuilder, extensionRegistry);
  8463. A = subBuilder.BuildPartial();
  8464. break;
  8465. }
  8466. case 16: {
  8467. I = input.ReadInt32();
  8468. break;
  8469. }
  8470. }
  8471. }
  8472. }
  8473. // optional .protobuf_unittest.TestRecursiveMessage a = 1;
  8474. public bool HasA {
  8475. get { return result.HasA; }
  8476. }
  8477. public self::TestRecursiveMessage A {
  8478. get { return result.A; }
  8479. set { SetA(value); }
  8480. }
  8481. public Builder SetA(self::TestRecursiveMessage value) {
  8482. result.hasA = true;
  8483. result.a_ = value;
  8484. return this;
  8485. }
  8486. public Builder SetA(self::TestRecursiveMessage.Builder builderForValue) {
  8487. result.hasA = true;
  8488. result.a_ = builderForValue.Build();
  8489. return this;
  8490. }
  8491. public Builder MergeA(self::TestRecursiveMessage value) {
  8492. if (result.HasA &&
  8493. result.a_ != self::TestRecursiveMessage.DefaultInstance) {
  8494. result.a_ =
  8495. self::TestRecursiveMessage.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
  8496. } else {
  8497. result.a_ = value;
  8498. }
  8499. result.hasA = true;
  8500. return this;
  8501. }
  8502. public Builder ClearA() {
  8503. result.hasA = false;
  8504. result.a_ = self::TestRecursiveMessage.DefaultInstance;
  8505. return this;
  8506. }
  8507. // optional int32 i = 2;
  8508. public bool HasI {
  8509. get { return result.HasI; }
  8510. }
  8511. public int I {
  8512. get { return result.I; }
  8513. set { SetI(value); }
  8514. }
  8515. public Builder SetI(int value) {
  8516. result.hasI = true;
  8517. result.i_ = value;
  8518. return this;
  8519. }
  8520. public Builder ClearI() {
  8521. result.hasI = false;
  8522. result.i_ = 0;
  8523. return this;
  8524. }
  8525. }
  8526. }
  8527. public sealed partial class TestMutualRecursionA : pb::GeneratedMessage<TestMutualRecursionA, TestMutualRecursionA.Builder> {
  8528. // Use TestMutualRecursionA.CreateBuilder() to construct.
  8529. private TestMutualRecursionA() {}
  8530. private static readonly TestMutualRecursionA defaultInstance = new TestMutualRecursionA();
  8531. public static TestMutualRecursionA DefaultInstance {
  8532. get { return defaultInstance; }
  8533. }
  8534. public override TestMutualRecursionA DefaultInstanceForType {
  8535. get { return defaultInstance; }
  8536. }
  8537. public static pbd::MessageDescriptor Descriptor {
  8538. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor; }
  8539. }
  8540. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8541. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; }
  8542. }
  8543. // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
  8544. private bool hasBb;
  8545. private self::TestMutualRecursionB bb_ = self::TestMutualRecursionB.DefaultInstance;
  8546. public bool HasBb {
  8547. get { return hasBb; }
  8548. }
  8549. public self::TestMutualRecursionB Bb {
  8550. get { return bb_; }
  8551. }
  8552. public override bool IsInitialized {
  8553. get {
  8554. return true;
  8555. }
  8556. }
  8557. public override void WriteTo(pb::CodedOutputStream output) {
  8558. if (HasBb) {
  8559. output.WriteMessage(1, Bb);
  8560. }
  8561. UnknownFields.WriteTo(output);
  8562. }
  8563. private int memoizedSerializedSize = -1;
  8564. public override int SerializedSize {
  8565. get {
  8566. int size = memoizedSerializedSize;
  8567. if (size != -1) return size;
  8568. size = 0;
  8569. if (HasBb) {
  8570. size += pb::CodedOutputStream.ComputeMessageSize(1, Bb);
  8571. }
  8572. size += UnknownFields.SerializedSize;
  8573. memoizedSerializedSize = size;
  8574. return size;
  8575. }
  8576. }
  8577. public static self::TestMutualRecursionA ParseFrom(pb::ByteString data) {
  8578. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8579. }
  8580. public static self::TestMutualRecursionA ParseFrom(pb::ByteString data,
  8581. pb::ExtensionRegistry extensionRegistry) {
  8582. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8583. .BuildParsed();
  8584. }
  8585. public static self::TestMutualRecursionA ParseFrom(byte[] data) {
  8586. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8587. }
  8588. public static self::TestMutualRecursionA parseFrom(byte[] data,
  8589. pb::ExtensionRegistry extensionRegistry) {
  8590. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8591. .BuildParsed();
  8592. }
  8593. public static self::TestMutualRecursionA ParseFrom(global::System.IO.Stream input) {
  8594. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8595. }
  8596. public static self::TestMutualRecursionA ParseFrom(
  8597. global::System.IO.Stream input,
  8598. pb::ExtensionRegistry extensionRegistry) {
  8599. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8600. .BuildParsed();
  8601. }
  8602. public static self::TestMutualRecursionA ParseFrom(pb::CodedInputStream input) {
  8603. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8604. }
  8605. public static self::TestMutualRecursionA ParseFrom(pb::CodedInputStream input,
  8606. pb::ExtensionRegistry extensionRegistry) {
  8607. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8608. .BuildParsed();
  8609. }
  8610. public static Builder CreateBuilder() { return new Builder(); }
  8611. public override IBuilder<self::TestMutualRecursionA> CreateBuilderForType() { return new Builder(); }
  8612. public static Builder CreateBuilder(self::TestMutualRecursionA prototype) {
  8613. return (Builder) new Builder().MergeFrom(prototype);
  8614. }
  8615. public sealed partial class Builder : pb::GeneratedBuilder<self::TestMutualRecursionA, Builder> {
  8616. // Construct using self::TestMutualRecursionA.CreateBuilder()
  8617. internal Builder() {}
  8618. self::TestMutualRecursionA result = new self::TestMutualRecursionA();
  8619. protected override self::TestMutualRecursionA MessageBeingBuilt {
  8620. get { return result; }
  8621. }
  8622. public override IBuilder<self::TestMutualRecursionA> Clear() {
  8623. result = new self::TestMutualRecursionA();
  8624. return this;
  8625. }
  8626. public override IBuilder<self::TestMutualRecursionA> Clone() {
  8627. return new Builder().MergeFrom(result);
  8628. }
  8629. public override pbd::MessageDescriptor DescriptorForType {
  8630. get { return self::TestMutualRecursionA.Descriptor; }
  8631. }
  8632. public override self::TestMutualRecursionA DefaultInstanceForType {
  8633. get { return self::TestMutualRecursionA.DefaultInstance; }
  8634. }
  8635. public override self::TestMutualRecursionA BuildPartial() {
  8636. self::TestMutualRecursionA returnMe = result;
  8637. result = null;
  8638. return returnMe;
  8639. }
  8640. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  8641. return MergeFrom(data, extensionRegistry);
  8642. }
  8643. public override IBuilder MergeFrom(pb::IMessage other) {
  8644. if (other is self::TestMutualRecursionA) {
  8645. return MergeFrom((self::TestMutualRecursionA) other);
  8646. } else {
  8647. base.MergeFrom(other);
  8648. return this;
  8649. }
  8650. }
  8651. public override IBuilder<self::TestMutualRecursionA> MergeFrom(self::TestMutualRecursionA other) {
  8652. if (other == self::TestMutualRecursionA.DefaultInstance) return this;
  8653. if (other.HasBb) {
  8654. MergeBb(other.Bb);
  8655. }
  8656. this.MergeUnknownFields(other.UnknownFields);
  8657. return this;
  8658. }
  8659. public override IBuilder<self::TestMutualRecursionA> MergeFrom(pb::CodedInputStream input) {
  8660. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8661. }
  8662. public override IBuilder<self::TestMutualRecursionA> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8663. pb::UnknownFieldSet.Builder unknownFields =
  8664. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8665. while (true) {
  8666. uint tag = input.ReadTag();
  8667. switch (tag) {
  8668. case 0:
  8669. this.UnknownFields = unknownFields.Build();
  8670. return this;
  8671. default: {
  8672. if (!ParseUnknownField(input, unknownFields,
  8673. extensionRegistry, tag)) {
  8674. this.UnknownFields = unknownFields.Build();
  8675. return this;
  8676. }
  8677. break;
  8678. }
  8679. case 10: {
  8680. self::TestMutualRecursionB.Builder subBuilder = self::TestMutualRecursionB.CreateBuilder();
  8681. if (HasBb) {
  8682. subBuilder.MergeFrom(Bb);
  8683. }
  8684. input.ReadMessage(subBuilder, extensionRegistry);
  8685. Bb = subBuilder.BuildPartial();
  8686. break;
  8687. }
  8688. }
  8689. }
  8690. }
  8691. // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
  8692. public bool HasBb {
  8693. get { return result.HasBb; }
  8694. }
  8695. public self::TestMutualRecursionB Bb {
  8696. get { return result.Bb; }
  8697. set { SetBb(value); }
  8698. }
  8699. public Builder SetBb(self::TestMutualRecursionB value) {
  8700. result.hasBb = true;
  8701. result.bb_ = value;
  8702. return this;
  8703. }
  8704. public Builder SetBb(self::TestMutualRecursionB.Builder builderForValue) {
  8705. result.hasBb = true;
  8706. result.bb_ = builderForValue.Build();
  8707. return this;
  8708. }
  8709. public Builder MergeBb(self::TestMutualRecursionB value) {
  8710. if (result.HasBb &&
  8711. result.bb_ != self::TestMutualRecursionB.DefaultInstance) {
  8712. result.bb_ =
  8713. self::TestMutualRecursionB.CreateBuilder(result.bb_).MergeFrom(value).BuildPartial();
  8714. } else {
  8715. result.bb_ = value;
  8716. }
  8717. result.hasBb = true;
  8718. return this;
  8719. }
  8720. public Builder ClearBb() {
  8721. result.hasBb = false;
  8722. result.bb_ = self::TestMutualRecursionB.DefaultInstance;
  8723. return this;
  8724. }
  8725. }
  8726. }
  8727. public sealed partial class TestMutualRecursionB : pb::GeneratedMessage<TestMutualRecursionB, TestMutualRecursionB.Builder> {
  8728. // Use TestMutualRecursionB.CreateBuilder() to construct.
  8729. private TestMutualRecursionB() {}
  8730. private static readonly TestMutualRecursionB defaultInstance = new TestMutualRecursionB();
  8731. public static TestMutualRecursionB DefaultInstance {
  8732. get { return defaultInstance; }
  8733. }
  8734. public override TestMutualRecursionB DefaultInstanceForType {
  8735. get { return defaultInstance; }
  8736. }
  8737. public static pbd::MessageDescriptor Descriptor {
  8738. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor; }
  8739. }
  8740. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8741. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; }
  8742. }
  8743. // optional .protobuf_unittest.TestMutualRecursionA a = 1;
  8744. private bool hasA;
  8745. private self::TestMutualRecursionA a_ = self::TestMutualRecursionA.DefaultInstance;
  8746. public bool HasA {
  8747. get { return hasA; }
  8748. }
  8749. public self::TestMutualRecursionA A {
  8750. get { return a_; }
  8751. }
  8752. // optional int32 optional_int32 = 2;
  8753. private bool hasOptionalInt32;
  8754. private int optionalInt32_ = 0;
  8755. public bool HasOptionalInt32 {
  8756. get { return hasOptionalInt32; }
  8757. }
  8758. public int OptionalInt32 {
  8759. get { return optionalInt32_; }
  8760. }
  8761. public override bool IsInitialized {
  8762. get {
  8763. return true;
  8764. }
  8765. }
  8766. public override void WriteTo(pb::CodedOutputStream output) {
  8767. if (HasA) {
  8768. output.WriteMessage(1, A);
  8769. }
  8770. if (HasOptionalInt32) {
  8771. output.WriteInt32(2, OptionalInt32);
  8772. }
  8773. UnknownFields.WriteTo(output);
  8774. }
  8775. private int memoizedSerializedSize = -1;
  8776. public override int SerializedSize {
  8777. get {
  8778. int size = memoizedSerializedSize;
  8779. if (size != -1) return size;
  8780. size = 0;
  8781. if (HasA) {
  8782. size += pb::CodedOutputStream.ComputeMessageSize(1, A);
  8783. }
  8784. if (HasOptionalInt32) {
  8785. size += pb::CodedOutputStream.ComputeInt32Size(2, OptionalInt32);
  8786. }
  8787. size += UnknownFields.SerializedSize;
  8788. memoizedSerializedSize = size;
  8789. return size;
  8790. }
  8791. }
  8792. public static self::TestMutualRecursionB ParseFrom(pb::ByteString data) {
  8793. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8794. }
  8795. public static self::TestMutualRecursionB ParseFrom(pb::ByteString data,
  8796. pb::ExtensionRegistry extensionRegistry) {
  8797. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8798. .BuildParsed();
  8799. }
  8800. public static self::TestMutualRecursionB ParseFrom(byte[] data) {
  8801. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8802. }
  8803. public static self::TestMutualRecursionB parseFrom(byte[] data,
  8804. pb::ExtensionRegistry extensionRegistry) {
  8805. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8806. .BuildParsed();
  8807. }
  8808. public static self::TestMutualRecursionB ParseFrom(global::System.IO.Stream input) {
  8809. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8810. }
  8811. public static self::TestMutualRecursionB ParseFrom(
  8812. global::System.IO.Stream input,
  8813. pb::ExtensionRegistry extensionRegistry) {
  8814. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8815. .BuildParsed();
  8816. }
  8817. public static self::TestMutualRecursionB ParseFrom(pb::CodedInputStream input) {
  8818. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8819. }
  8820. public static self::TestMutualRecursionB ParseFrom(pb::CodedInputStream input,
  8821. pb::ExtensionRegistry extensionRegistry) {
  8822. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8823. .BuildParsed();
  8824. }
  8825. public static Builder CreateBuilder() { return new Builder(); }
  8826. public override IBuilder<self::TestMutualRecursionB> CreateBuilderForType() { return new Builder(); }
  8827. public static Builder CreateBuilder(self::TestMutualRecursionB prototype) {
  8828. return (Builder) new Builder().MergeFrom(prototype);
  8829. }
  8830. public sealed partial class Builder : pb::GeneratedBuilder<self::TestMutualRecursionB, Builder> {
  8831. // Construct using self::TestMutualRecursionB.CreateBuilder()
  8832. internal Builder() {}
  8833. self::TestMutualRecursionB result = new self::TestMutualRecursionB();
  8834. protected override self::TestMutualRecursionB MessageBeingBuilt {
  8835. get { return result; }
  8836. }
  8837. public override IBuilder<self::TestMutualRecursionB> Clear() {
  8838. result = new self::TestMutualRecursionB();
  8839. return this;
  8840. }
  8841. public override IBuilder<self::TestMutualRecursionB> Clone() {
  8842. return new Builder().MergeFrom(result);
  8843. }
  8844. public override pbd::MessageDescriptor DescriptorForType {
  8845. get { return self::TestMutualRecursionB.Descriptor; }
  8846. }
  8847. public override self::TestMutualRecursionB DefaultInstanceForType {
  8848. get { return self::TestMutualRecursionB.DefaultInstance; }
  8849. }
  8850. public override self::TestMutualRecursionB BuildPartial() {
  8851. self::TestMutualRecursionB returnMe = result;
  8852. result = null;
  8853. return returnMe;
  8854. }
  8855. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  8856. return MergeFrom(data, extensionRegistry);
  8857. }
  8858. public override IBuilder MergeFrom(pb::IMessage other) {
  8859. if (other is self::TestMutualRecursionB) {
  8860. return MergeFrom((self::TestMutualRecursionB) other);
  8861. } else {
  8862. base.MergeFrom(other);
  8863. return this;
  8864. }
  8865. }
  8866. public override IBuilder<self::TestMutualRecursionB> MergeFrom(self::TestMutualRecursionB other) {
  8867. if (other == self::TestMutualRecursionB.DefaultInstance) return this;
  8868. if (other.HasA) {
  8869. MergeA(other.A);
  8870. }
  8871. if (other.HasOptionalInt32) {
  8872. OptionalInt32 = other.OptionalInt32;
  8873. }
  8874. this.MergeUnknownFields(other.UnknownFields);
  8875. return this;
  8876. }
  8877. public override IBuilder<self::TestMutualRecursionB> MergeFrom(pb::CodedInputStream input) {
  8878. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8879. }
  8880. public override IBuilder<self::TestMutualRecursionB> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8881. pb::UnknownFieldSet.Builder unknownFields =
  8882. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8883. while (true) {
  8884. uint tag = input.ReadTag();
  8885. switch (tag) {
  8886. case 0:
  8887. this.UnknownFields = unknownFields.Build();
  8888. return this;
  8889. default: {
  8890. if (!ParseUnknownField(input, unknownFields,
  8891. extensionRegistry, tag)) {
  8892. this.UnknownFields = unknownFields.Build();
  8893. return this;
  8894. }
  8895. break;
  8896. }
  8897. case 10: {
  8898. self::TestMutualRecursionA.Builder subBuilder = self::TestMutualRecursionA.CreateBuilder();
  8899. if (HasA) {
  8900. subBuilder.MergeFrom(A);
  8901. }
  8902. input.ReadMessage(subBuilder, extensionRegistry);
  8903. A = subBuilder.BuildPartial();
  8904. break;
  8905. }
  8906. case 16: {
  8907. OptionalInt32 = input.ReadInt32();
  8908. break;
  8909. }
  8910. }
  8911. }
  8912. }
  8913. // optional .protobuf_unittest.TestMutualRecursionA a = 1;
  8914. public bool HasA {
  8915. get { return result.HasA; }
  8916. }
  8917. public self::TestMutualRecursionA A {
  8918. get { return result.A; }
  8919. set { SetA(value); }
  8920. }
  8921. public Builder SetA(self::TestMutualRecursionA value) {
  8922. result.hasA = true;
  8923. result.a_ = value;
  8924. return this;
  8925. }
  8926. public Builder SetA(self::TestMutualRecursionA.Builder builderForValue) {
  8927. result.hasA = true;
  8928. result.a_ = builderForValue.Build();
  8929. return this;
  8930. }
  8931. public Builder MergeA(self::TestMutualRecursionA value) {
  8932. if (result.HasA &&
  8933. result.a_ != self::TestMutualRecursionA.DefaultInstance) {
  8934. result.a_ =
  8935. self::TestMutualRecursionA.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
  8936. } else {
  8937. result.a_ = value;
  8938. }
  8939. result.hasA = true;
  8940. return this;
  8941. }
  8942. public Builder ClearA() {
  8943. result.hasA = false;
  8944. result.a_ = self::TestMutualRecursionA.DefaultInstance;
  8945. return this;
  8946. }
  8947. // optional int32 optional_int32 = 2;
  8948. public bool HasOptionalInt32 {
  8949. get { return result.HasOptionalInt32; }
  8950. }
  8951. public int OptionalInt32 {
  8952. get { return result.OptionalInt32; }
  8953. set { SetOptionalInt32(value); }
  8954. }
  8955. public Builder SetOptionalInt32(int value) {
  8956. result.hasOptionalInt32 = true;
  8957. result.optionalInt32_ = value;
  8958. return this;
  8959. }
  8960. public Builder ClearOptionalInt32() {
  8961. result.hasOptionalInt32 = false;
  8962. result.optionalInt32_ = 0;
  8963. return this;
  8964. }
  8965. }
  8966. }
  8967. public sealed partial class TestDupFieldNumber : pb::GeneratedMessage<TestDupFieldNumber, TestDupFieldNumber.Builder> {
  8968. // Use TestDupFieldNumber.CreateBuilder() to construct.
  8969. private TestDupFieldNumber() {}
  8970. private static readonly TestDupFieldNumber defaultInstance = new TestDupFieldNumber();
  8971. public static TestDupFieldNumber DefaultInstance {
  8972. get { return defaultInstance; }
  8973. }
  8974. public override TestDupFieldNumber DefaultInstanceForType {
  8975. get { return defaultInstance; }
  8976. }
  8977. public static pbd::MessageDescriptor Descriptor {
  8978. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor; }
  8979. }
  8980. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8981. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable; }
  8982. }
  8983. #region Nested types
  8984. public static class Types {
  8985. public sealed partial class Foo : pb::GeneratedMessage<Foo, Foo.Builder> {
  8986. // Use Foo.CreateBuilder() to construct.
  8987. private Foo() {}
  8988. private static readonly Foo defaultInstance = new Foo();
  8989. public static Foo DefaultInstance {
  8990. get { return defaultInstance; }
  8991. }
  8992. public override Foo DefaultInstanceForType {
  8993. get { return defaultInstance; }
  8994. }
  8995. public static pbd::MessageDescriptor Descriptor {
  8996. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor; }
  8997. }
  8998. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8999. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable; }
  9000. }
  9001. // optional int32 a = 1;
  9002. private bool hasA;
  9003. private int a_ = 0;
  9004. public bool HasA {
  9005. get { return hasA; }
  9006. }
  9007. public int A {
  9008. get { return a_; }
  9009. }
  9010. public override bool IsInitialized {
  9011. get {
  9012. return true;
  9013. }
  9014. }
  9015. public override void WriteTo(pb::CodedOutputStream output) {
  9016. if (HasA) {
  9017. output.WriteInt32(1, A);
  9018. }
  9019. UnknownFields.WriteTo(output);
  9020. }
  9021. private int memoizedSerializedSize = -1;
  9022. public override int SerializedSize {
  9023. get {
  9024. int size = memoizedSerializedSize;
  9025. if (size != -1) return size;
  9026. size = 0;
  9027. if (HasA) {
  9028. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  9029. }
  9030. size += UnknownFields.SerializedSize;
  9031. memoizedSerializedSize = size;
  9032. return size;
  9033. }
  9034. }
  9035. public static self::TestDupFieldNumber.Types.Foo ParseFrom(pb::ByteString data) {
  9036. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9037. }
  9038. public static self::TestDupFieldNumber.Types.Foo ParseFrom(pb::ByteString data,
  9039. pb::ExtensionRegistry extensionRegistry) {
  9040. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9041. .BuildParsed();
  9042. }
  9043. public static self::TestDupFieldNumber.Types.Foo ParseFrom(byte[] data) {
  9044. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9045. }
  9046. public static self::TestDupFieldNumber.Types.Foo parseFrom(byte[] data,
  9047. pb::ExtensionRegistry extensionRegistry) {
  9048. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9049. .BuildParsed();
  9050. }
  9051. public static self::TestDupFieldNumber.Types.Foo ParseFrom(global::System.IO.Stream input) {
  9052. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9053. }
  9054. public static self::TestDupFieldNumber.Types.Foo ParseFrom(
  9055. global::System.IO.Stream input,
  9056. pb::ExtensionRegistry extensionRegistry) {
  9057. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9058. .BuildParsed();
  9059. }
  9060. public static self::TestDupFieldNumber.Types.Foo ParseFrom(pb::CodedInputStream input) {
  9061. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9062. }
  9063. public static self::TestDupFieldNumber.Types.Foo ParseFrom(pb::CodedInputStream input,
  9064. pb::ExtensionRegistry extensionRegistry) {
  9065. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9066. .BuildParsed();
  9067. }
  9068. public static Builder CreateBuilder() { return new Builder(); }
  9069. public override IBuilder<self::TestDupFieldNumber.Types.Foo> CreateBuilderForType() { return new Builder(); }
  9070. public static Builder CreateBuilder(self::TestDupFieldNumber.Types.Foo prototype) {
  9071. return (Builder) new Builder().MergeFrom(prototype);
  9072. }
  9073. public sealed partial class Builder : pb::GeneratedBuilder<self::TestDupFieldNumber.Types.Foo, Builder> {
  9074. // Construct using self::TestDupFieldNumber.Types.Foo.CreateBuilder()
  9075. internal Builder() {}
  9076. self::TestDupFieldNumber.Types.Foo result = new self::TestDupFieldNumber.Types.Foo();
  9077. protected override self::TestDupFieldNumber.Types.Foo MessageBeingBuilt {
  9078. get { return result; }
  9079. }
  9080. public override IBuilder<self::TestDupFieldNumber.Types.Foo> Clear() {
  9081. result = new self::TestDupFieldNumber.Types.Foo();
  9082. return this;
  9083. }
  9084. public override IBuilder<self::TestDupFieldNumber.Types.Foo> Clone() {
  9085. return new Builder().MergeFrom(result);
  9086. }
  9087. public override pbd::MessageDescriptor DescriptorForType {
  9088. get { return self::TestDupFieldNumber.Types.Foo.Descriptor; }
  9089. }
  9090. public override self::TestDupFieldNumber.Types.Foo DefaultInstanceForType {
  9091. get { return self::TestDupFieldNumber.Types.Foo.DefaultInstance; }
  9092. }
  9093. public override self::TestDupFieldNumber.Types.Foo BuildPartial() {
  9094. self::TestDupFieldNumber.Types.Foo returnMe = result;
  9095. result = null;
  9096. return returnMe;
  9097. }
  9098. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  9099. return MergeFrom(data, extensionRegistry);
  9100. }
  9101. public override IBuilder MergeFrom(pb::IMessage other) {
  9102. if (other is self::TestDupFieldNumber.Types.Foo) {
  9103. return MergeFrom((self::TestDupFieldNumber.Types.Foo) other);
  9104. } else {
  9105. base.MergeFrom(other);
  9106. return this;
  9107. }
  9108. }
  9109. public override IBuilder<self::TestDupFieldNumber.Types.Foo> MergeFrom(self::TestDupFieldNumber.Types.Foo other) {
  9110. if (other == self::TestDupFieldNumber.Types.Foo.DefaultInstance) return this;
  9111. if (other.HasA) {
  9112. A = other.A;
  9113. }
  9114. this.MergeUnknownFields(other.UnknownFields);
  9115. return this;
  9116. }
  9117. public override IBuilder<self::TestDupFieldNumber.Types.Foo> MergeFrom(pb::CodedInputStream input) {
  9118. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9119. }
  9120. public override IBuilder<self::TestDupFieldNumber.Types.Foo> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9121. pb::UnknownFieldSet.Builder unknownFields =
  9122. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9123. while (true) {
  9124. uint tag = input.ReadTag();
  9125. switch (tag) {
  9126. case 0:
  9127. this.UnknownFields = unknownFields.Build();
  9128. return this;
  9129. default: {
  9130. if (!ParseUnknownField(input, unknownFields,
  9131. extensionRegistry, tag)) {
  9132. this.UnknownFields = unknownFields.Build();
  9133. return this;
  9134. }
  9135. break;
  9136. }
  9137. case 8: {
  9138. A = input.ReadInt32();
  9139. break;
  9140. }
  9141. }
  9142. }
  9143. }
  9144. // optional int32 a = 1;
  9145. public bool HasA {
  9146. get { return result.HasA; }
  9147. }
  9148. public int A {
  9149. get { return result.A; }
  9150. set { SetA(value); }
  9151. }
  9152. public Builder SetA(int value) {
  9153. result.hasA = true;
  9154. result.a_ = value;
  9155. return this;
  9156. }
  9157. public Builder ClearA() {
  9158. result.hasA = false;
  9159. result.a_ = 0;
  9160. return this;
  9161. }
  9162. }
  9163. }
  9164. public sealed partial class Bar : pb::GeneratedMessage<Bar, Bar.Builder> {
  9165. // Use Bar.CreateBuilder() to construct.
  9166. private Bar() {}
  9167. private static readonly Bar defaultInstance = new Bar();
  9168. public static Bar DefaultInstance {
  9169. get { return defaultInstance; }
  9170. }
  9171. public override Bar DefaultInstanceForType {
  9172. get { return defaultInstance; }
  9173. }
  9174. public static pbd::MessageDescriptor Descriptor {
  9175. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor; }
  9176. }
  9177. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  9178. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable; }
  9179. }
  9180. // optional int32 a = 1;
  9181. private bool hasA;
  9182. private int a_ = 0;
  9183. public bool HasA {
  9184. get { return hasA; }
  9185. }
  9186. public int A {
  9187. get { return a_; }
  9188. }
  9189. public override bool IsInitialized {
  9190. get {
  9191. return true;
  9192. }
  9193. }
  9194. public override void WriteTo(pb::CodedOutputStream output) {
  9195. if (HasA) {
  9196. output.WriteInt32(1, A);
  9197. }
  9198. UnknownFields.WriteTo(output);
  9199. }
  9200. private int memoizedSerializedSize = -1;
  9201. public override int SerializedSize {
  9202. get {
  9203. int size = memoizedSerializedSize;
  9204. if (size != -1) return size;
  9205. size = 0;
  9206. if (HasA) {
  9207. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  9208. }
  9209. size += UnknownFields.SerializedSize;
  9210. memoizedSerializedSize = size;
  9211. return size;
  9212. }
  9213. }
  9214. public static self::TestDupFieldNumber.Types.Bar ParseFrom(pb::ByteString data) {
  9215. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9216. }
  9217. public static self::TestDupFieldNumber.Types.Bar ParseFrom(pb::ByteString data,
  9218. pb::ExtensionRegistry extensionRegistry) {
  9219. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9220. .BuildParsed();
  9221. }
  9222. public static self::TestDupFieldNumber.Types.Bar ParseFrom(byte[] data) {
  9223. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9224. }
  9225. public static self::TestDupFieldNumber.Types.Bar parseFrom(byte[] data,
  9226. pb::ExtensionRegistry extensionRegistry) {
  9227. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9228. .BuildParsed();
  9229. }
  9230. public static self::TestDupFieldNumber.Types.Bar ParseFrom(global::System.IO.Stream input) {
  9231. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9232. }
  9233. public static self::TestDupFieldNumber.Types.Bar ParseFrom(
  9234. global::System.IO.Stream input,
  9235. pb::ExtensionRegistry extensionRegistry) {
  9236. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9237. .BuildParsed();
  9238. }
  9239. public static self::TestDupFieldNumber.Types.Bar ParseFrom(pb::CodedInputStream input) {
  9240. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9241. }
  9242. public static self::TestDupFieldNumber.Types.Bar ParseFrom(pb::CodedInputStream input,
  9243. pb::ExtensionRegistry extensionRegistry) {
  9244. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9245. .BuildParsed();
  9246. }
  9247. public static Builder CreateBuilder() { return new Builder(); }
  9248. public override IBuilder<self::TestDupFieldNumber.Types.Bar> CreateBuilderForType() { return new Builder(); }
  9249. public static Builder CreateBuilder(self::TestDupFieldNumber.Types.Bar prototype) {
  9250. return (Builder) new Builder().MergeFrom(prototype);
  9251. }
  9252. public sealed partial class Builder : pb::GeneratedBuilder<self::TestDupFieldNumber.Types.Bar, Builder> {
  9253. // Construct using self::TestDupFieldNumber.Types.Bar.CreateBuilder()
  9254. internal Builder() {}
  9255. self::TestDupFieldNumber.Types.Bar result = new self::TestDupFieldNumber.Types.Bar();
  9256. protected override self::TestDupFieldNumber.Types.Bar MessageBeingBuilt {
  9257. get { return result; }
  9258. }
  9259. public override IBuilder<self::TestDupFieldNumber.Types.Bar> Clear() {
  9260. result = new self::TestDupFieldNumber.Types.Bar();
  9261. return this;
  9262. }
  9263. public override IBuilder<self::TestDupFieldNumber.Types.Bar> Clone() {
  9264. return new Builder().MergeFrom(result);
  9265. }
  9266. public override pbd::MessageDescriptor DescriptorForType {
  9267. get { return self::TestDupFieldNumber.Types.Bar.Descriptor; }
  9268. }
  9269. public override self::TestDupFieldNumber.Types.Bar DefaultInstanceForType {
  9270. get { return self::TestDupFieldNumber.Types.Bar.DefaultInstance; }
  9271. }
  9272. public override self::TestDupFieldNumber.Types.Bar BuildPartial() {
  9273. self::TestDupFieldNumber.Types.Bar returnMe = result;
  9274. result = null;
  9275. return returnMe;
  9276. }
  9277. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  9278. return MergeFrom(data, extensionRegistry);
  9279. }
  9280. public override IBuilder MergeFrom(pb::IMessage other) {
  9281. if (other is self::TestDupFieldNumber.Types.Bar) {
  9282. return MergeFrom((self::TestDupFieldNumber.Types.Bar) other);
  9283. } else {
  9284. base.MergeFrom(other);
  9285. return this;
  9286. }
  9287. }
  9288. public override IBuilder<self::TestDupFieldNumber.Types.Bar> MergeFrom(self::TestDupFieldNumber.Types.Bar other) {
  9289. if (other == self::TestDupFieldNumber.Types.Bar.DefaultInstance) return this;
  9290. if (other.HasA) {
  9291. A = other.A;
  9292. }
  9293. this.MergeUnknownFields(other.UnknownFields);
  9294. return this;
  9295. }
  9296. public override IBuilder<self::TestDupFieldNumber.Types.Bar> MergeFrom(pb::CodedInputStream input) {
  9297. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9298. }
  9299. public override IBuilder<self::TestDupFieldNumber.Types.Bar> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9300. pb::UnknownFieldSet.Builder unknownFields =
  9301. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9302. while (true) {
  9303. uint tag = input.ReadTag();
  9304. switch (tag) {
  9305. case 0:
  9306. this.UnknownFields = unknownFields.Build();
  9307. return this;
  9308. default: {
  9309. if (!ParseUnknownField(input, unknownFields,
  9310. extensionRegistry, tag)) {
  9311. this.UnknownFields = unknownFields.Build();
  9312. return this;
  9313. }
  9314. break;
  9315. }
  9316. case 8: {
  9317. A = input.ReadInt32();
  9318. break;
  9319. }
  9320. }
  9321. }
  9322. }
  9323. // optional int32 a = 1;
  9324. public bool HasA {
  9325. get { return result.HasA; }
  9326. }
  9327. public int A {
  9328. get { return result.A; }
  9329. set { SetA(value); }
  9330. }
  9331. public Builder SetA(int value) {
  9332. result.hasA = true;
  9333. result.a_ = value;
  9334. return this;
  9335. }
  9336. public Builder ClearA() {
  9337. result.hasA = false;
  9338. result.a_ = 0;
  9339. return this;
  9340. }
  9341. }
  9342. }
  9343. }
  9344. #endregion
  9345. // optional int32 a = 1;
  9346. private bool hasA;
  9347. private int a_ = 0;
  9348. public bool HasA {
  9349. get { return hasA; }
  9350. }
  9351. public int A {
  9352. get { return a_; }
  9353. }
  9354. // optional group Foo = 2 {
  9355. private bool hasFoo;
  9356. private self::TestDupFieldNumber.Types.Foo foo_ = self::TestDupFieldNumber.Types.Foo.DefaultInstance;
  9357. public bool HasFoo {
  9358. get { return hasFoo; }
  9359. }
  9360. public self::TestDupFieldNumber.Types.Foo Foo {
  9361. get { return foo_; }
  9362. }
  9363. // optional group Bar = 3 {
  9364. private bool hasBar;
  9365. private self::TestDupFieldNumber.Types.Bar bar_ = self::TestDupFieldNumber.Types.Bar.DefaultInstance;
  9366. public bool HasBar {
  9367. get { return hasBar; }
  9368. }
  9369. public self::TestDupFieldNumber.Types.Bar Bar {
  9370. get { return bar_; }
  9371. }
  9372. public override bool IsInitialized {
  9373. get {
  9374. return true;
  9375. }
  9376. }
  9377. public override void WriteTo(pb::CodedOutputStream output) {
  9378. if (HasA) {
  9379. output.WriteInt32(1, A);
  9380. }
  9381. if (HasFoo) {
  9382. output.WriteGroup(2, Foo);
  9383. }
  9384. if (HasBar) {
  9385. output.WriteGroup(3, Bar);
  9386. }
  9387. UnknownFields.WriteTo(output);
  9388. }
  9389. private int memoizedSerializedSize = -1;
  9390. public override int SerializedSize {
  9391. get {
  9392. int size = memoizedSerializedSize;
  9393. if (size != -1) return size;
  9394. size = 0;
  9395. if (HasA) {
  9396. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  9397. }
  9398. if (HasFoo) {
  9399. size += pb::CodedOutputStream.ComputeGroupSize(2, Foo);
  9400. }
  9401. if (HasBar) {
  9402. size += pb::CodedOutputStream.ComputeGroupSize(3, Bar);
  9403. }
  9404. size += UnknownFields.SerializedSize;
  9405. memoizedSerializedSize = size;
  9406. return size;
  9407. }
  9408. }
  9409. public static self::TestDupFieldNumber ParseFrom(pb::ByteString data) {
  9410. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9411. }
  9412. public static self::TestDupFieldNumber ParseFrom(pb::ByteString data,
  9413. pb::ExtensionRegistry extensionRegistry) {
  9414. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9415. .BuildParsed();
  9416. }
  9417. public static self::TestDupFieldNumber ParseFrom(byte[] data) {
  9418. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9419. }
  9420. public static self::TestDupFieldNumber parseFrom(byte[] data,
  9421. pb::ExtensionRegistry extensionRegistry) {
  9422. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9423. .BuildParsed();
  9424. }
  9425. public static self::TestDupFieldNumber ParseFrom(global::System.IO.Stream input) {
  9426. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9427. }
  9428. public static self::TestDupFieldNumber ParseFrom(
  9429. global::System.IO.Stream input,
  9430. pb::ExtensionRegistry extensionRegistry) {
  9431. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9432. .BuildParsed();
  9433. }
  9434. public static self::TestDupFieldNumber ParseFrom(pb::CodedInputStream input) {
  9435. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9436. }
  9437. public static self::TestDupFieldNumber ParseFrom(pb::CodedInputStream input,
  9438. pb::ExtensionRegistry extensionRegistry) {
  9439. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9440. .BuildParsed();
  9441. }
  9442. public static Builder CreateBuilder() { return new Builder(); }
  9443. public override IBuilder<self::TestDupFieldNumber> CreateBuilderForType() { return new Builder(); }
  9444. public static Builder CreateBuilder(self::TestDupFieldNumber prototype) {
  9445. return (Builder) new Builder().MergeFrom(prototype);
  9446. }
  9447. public sealed partial class Builder : pb::GeneratedBuilder<self::TestDupFieldNumber, Builder> {
  9448. // Construct using self::TestDupFieldNumber.CreateBuilder()
  9449. internal Builder() {}
  9450. self::TestDupFieldNumber result = new self::TestDupFieldNumber();
  9451. protected override self::TestDupFieldNumber MessageBeingBuilt {
  9452. get { return result; }
  9453. }
  9454. public override IBuilder<self::TestDupFieldNumber> Clear() {
  9455. result = new self::TestDupFieldNumber();
  9456. return this;
  9457. }
  9458. public override IBuilder<self::TestDupFieldNumber> Clone() {
  9459. return new Builder().MergeFrom(result);
  9460. }
  9461. public override pbd::MessageDescriptor DescriptorForType {
  9462. get { return self::TestDupFieldNumber.Descriptor; }
  9463. }
  9464. public override self::TestDupFieldNumber DefaultInstanceForType {
  9465. get { return self::TestDupFieldNumber.DefaultInstance; }
  9466. }
  9467. public override self::TestDupFieldNumber BuildPartial() {
  9468. self::TestDupFieldNumber returnMe = result;
  9469. result = null;
  9470. return returnMe;
  9471. }
  9472. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  9473. return MergeFrom(data, extensionRegistry);
  9474. }
  9475. public override IBuilder MergeFrom(pb::IMessage other) {
  9476. if (other is self::TestDupFieldNumber) {
  9477. return MergeFrom((self::TestDupFieldNumber) other);
  9478. } else {
  9479. base.MergeFrom(other);
  9480. return this;
  9481. }
  9482. }
  9483. public override IBuilder<self::TestDupFieldNumber> MergeFrom(self::TestDupFieldNumber other) {
  9484. if (other == self::TestDupFieldNumber.DefaultInstance) return this;
  9485. if (other.HasA) {
  9486. A = other.A;
  9487. }
  9488. if (other.HasFoo) {
  9489. MergeFoo(other.Foo);
  9490. }
  9491. if (other.HasBar) {
  9492. MergeBar(other.Bar);
  9493. }
  9494. this.MergeUnknownFields(other.UnknownFields);
  9495. return this;
  9496. }
  9497. public override IBuilder<self::TestDupFieldNumber> MergeFrom(pb::CodedInputStream input) {
  9498. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9499. }
  9500. public override IBuilder<self::TestDupFieldNumber> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9501. pb::UnknownFieldSet.Builder unknownFields =
  9502. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9503. while (true) {
  9504. uint tag = input.ReadTag();
  9505. switch (tag) {
  9506. case 0:
  9507. this.UnknownFields = unknownFields.Build();
  9508. return this;
  9509. default: {
  9510. if (!ParseUnknownField(input, unknownFields,
  9511. extensionRegistry, tag)) {
  9512. this.UnknownFields = unknownFields.Build();
  9513. return this;
  9514. }
  9515. break;
  9516. }
  9517. case 8: {
  9518. A = input.ReadInt32();
  9519. break;
  9520. }
  9521. case 19: {
  9522. self::TestDupFieldNumber.Types.Foo.Builder subBuilder = self::TestDupFieldNumber.Types.Foo.CreateBuilder();
  9523. if (HasFoo) {
  9524. subBuilder.MergeFrom(Foo);
  9525. }
  9526. input.ReadGroup(2, subBuilder, extensionRegistry);
  9527. Foo = subBuilder.BuildPartial();
  9528. break;
  9529. }
  9530. case 27: {
  9531. self::TestDupFieldNumber.Types.Bar.Builder subBuilder = self::TestDupFieldNumber.Types.Bar.CreateBuilder();
  9532. if (HasBar) {
  9533. subBuilder.MergeFrom(Bar);
  9534. }
  9535. input.ReadGroup(3, subBuilder, extensionRegistry);
  9536. Bar = subBuilder.BuildPartial();
  9537. break;
  9538. }
  9539. }
  9540. }
  9541. }
  9542. // optional int32 a = 1;
  9543. public bool HasA {
  9544. get { return result.HasA; }
  9545. }
  9546. public int A {
  9547. get { return result.A; }
  9548. set { SetA(value); }
  9549. }
  9550. public Builder SetA(int value) {
  9551. result.hasA = true;
  9552. result.a_ = value;
  9553. return this;
  9554. }
  9555. public Builder ClearA() {
  9556. result.hasA = false;
  9557. result.a_ = 0;
  9558. return this;
  9559. }
  9560. // optional group Foo = 2 {
  9561. public bool HasFoo {
  9562. get { return result.HasFoo; }
  9563. }
  9564. public self::TestDupFieldNumber.Types.Foo Foo {
  9565. get { return result.Foo; }
  9566. set { SetFoo(value); }
  9567. }
  9568. public Builder SetFoo(self::TestDupFieldNumber.Types.Foo value) {
  9569. result.hasFoo = true;
  9570. result.foo_ = value;
  9571. return this;
  9572. }
  9573. public Builder SetFoo(self::TestDupFieldNumber.Types.Foo.Builder builderForValue) {
  9574. result.hasFoo = true;
  9575. result.foo_ = builderForValue.Build();
  9576. return this;
  9577. }
  9578. public Builder MergeFoo(self::TestDupFieldNumber.Types.Foo value) {
  9579. if (result.HasFoo &&
  9580. result.foo_ != self::TestDupFieldNumber.Types.Foo.DefaultInstance) {
  9581. result.foo_ =
  9582. self::TestDupFieldNumber.Types.Foo.CreateBuilder(result.foo_).MergeFrom(value).BuildPartial();
  9583. } else {
  9584. result.foo_ = value;
  9585. }
  9586. result.hasFoo = true;
  9587. return this;
  9588. }
  9589. public Builder ClearFoo() {
  9590. result.hasFoo = false;
  9591. result.foo_ = self::TestDupFieldNumber.Types.Foo.DefaultInstance;
  9592. return this;
  9593. }
  9594. // optional group Bar = 3 {
  9595. public bool HasBar {
  9596. get { return result.HasBar; }
  9597. }
  9598. public self::TestDupFieldNumber.Types.Bar Bar {
  9599. get { return result.Bar; }
  9600. set { SetBar(value); }
  9601. }
  9602. public Builder SetBar(self::TestDupFieldNumber.Types.Bar value) {
  9603. result.hasBar = true;
  9604. result.bar_ = value;
  9605. return this;
  9606. }
  9607. public Builder SetBar(self::TestDupFieldNumber.Types.Bar.Builder builderForValue) {
  9608. result.hasBar = true;
  9609. result.bar_ = builderForValue.Build();
  9610. return this;
  9611. }
  9612. public Builder MergeBar(self::TestDupFieldNumber.Types.Bar value) {
  9613. if (result.HasBar &&
  9614. result.bar_ != self::TestDupFieldNumber.Types.Bar.DefaultInstance) {
  9615. result.bar_ =
  9616. self::TestDupFieldNumber.Types.Bar.CreateBuilder(result.bar_).MergeFrom(value).BuildPartial();
  9617. } else {
  9618. result.bar_ = value;
  9619. }
  9620. result.hasBar = true;
  9621. return this;
  9622. }
  9623. public Builder ClearBar() {
  9624. result.hasBar = false;
  9625. result.bar_ = self::TestDupFieldNumber.Types.Bar.DefaultInstance;
  9626. return this;
  9627. }
  9628. }
  9629. }
  9630. public sealed partial class TestNestedMessageHasBits : pb::GeneratedMessage<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> {
  9631. // Use TestNestedMessageHasBits.CreateBuilder() to construct.
  9632. private TestNestedMessageHasBits() {}
  9633. private static readonly TestNestedMessageHasBits defaultInstance = new TestNestedMessageHasBits();
  9634. public static TestNestedMessageHasBits DefaultInstance {
  9635. get { return defaultInstance; }
  9636. }
  9637. public override TestNestedMessageHasBits DefaultInstanceForType {
  9638. get { return defaultInstance; }
  9639. }
  9640. public static pbd::MessageDescriptor Descriptor {
  9641. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor; }
  9642. }
  9643. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  9644. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable; }
  9645. }
  9646. #region Nested types
  9647. public static class Types {
  9648. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  9649. // Use NestedMessage.CreateBuilder() to construct.
  9650. private NestedMessage() {}
  9651. private static readonly NestedMessage defaultInstance = new NestedMessage();
  9652. public static NestedMessage DefaultInstance {
  9653. get { return defaultInstance; }
  9654. }
  9655. public override NestedMessage DefaultInstanceForType {
  9656. get { return defaultInstance; }
  9657. }
  9658. public static pbd::MessageDescriptor Descriptor {
  9659. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor; }
  9660. }
  9661. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  9662. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable; }
  9663. }
  9664. // repeated int32 nestedmessage_repeated_int32 = 1;
  9665. private scg::IList<int> nestedmessageRepeatedInt32_ = pbc::Lists<int>.Empty;
  9666. public scg::IList<int> NestedmessageRepeatedInt32List {
  9667. get { return nestedmessageRepeatedInt32_; }
  9668. }
  9669. public int NestedmessageRepeatedInt32Count {
  9670. get { return nestedmessageRepeatedInt32_.Count; }
  9671. }
  9672. public int GetNestedmessageRepeatedInt32(int index) {
  9673. return nestedmessageRepeatedInt32_[index];
  9674. }
  9675. // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
  9676. private scg::IList<self::ForeignMessage> nestedmessageRepeatedForeignmessage_ = pbc::Lists<self::ForeignMessage>.Empty;
  9677. public scg::IList<self::ForeignMessage> NestedmessageRepeatedForeignmessageList {
  9678. get { return nestedmessageRepeatedForeignmessage_; }
  9679. }
  9680. public int NestedmessageRepeatedForeignmessageCount
  9681. { get { return nestedmessageRepeatedForeignmessage_.Count; }
  9682. }
  9683. public self::ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
  9684. return nestedmessageRepeatedForeignmessage_ [index];
  9685. }
  9686. public override bool IsInitialized {
  9687. get {
  9688. return true;
  9689. }
  9690. }
  9691. public override void WriteTo(pb::CodedOutputStream output) {
  9692. foreach (int element in NestedmessageRepeatedInt32List) {
  9693. output.WriteInt32(1, element);
  9694. }
  9695. foreach (self::ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
  9696. output.WriteMessage(2, element);
  9697. }
  9698. UnknownFields.WriteTo(output);
  9699. }
  9700. private int memoizedSerializedSize = -1;
  9701. public override int SerializedSize {
  9702. get {
  9703. int size = memoizedSerializedSize;
  9704. if (size != -1) return size;
  9705. size = 0;
  9706. foreach (int element in NestedmessageRepeatedInt32List) {
  9707. size += pb::CodedOutputStream
  9708. .ComputeInt32Size(1, element);
  9709. }
  9710. foreach (self::ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
  9711. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  9712. }
  9713. size += UnknownFields.SerializedSize;
  9714. memoizedSerializedSize = size;
  9715. return size;
  9716. }
  9717. }
  9718. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::ByteString data) {
  9719. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9720. }
  9721. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::ByteString data,
  9722. pb::ExtensionRegistry extensionRegistry) {
  9723. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9724. .BuildParsed();
  9725. }
  9726. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(byte[] data) {
  9727. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9728. }
  9729. public static self::TestNestedMessageHasBits.Types.NestedMessage parseFrom(byte[] data,
  9730. pb::ExtensionRegistry extensionRegistry) {
  9731. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9732. .BuildParsed();
  9733. }
  9734. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(global::System.IO.Stream input) {
  9735. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9736. }
  9737. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(
  9738. global::System.IO.Stream input,
  9739. pb::ExtensionRegistry extensionRegistry) {
  9740. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9741. .BuildParsed();
  9742. }
  9743. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::CodedInputStream input) {
  9744. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9745. }
  9746. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::CodedInputStream input,
  9747. pb::ExtensionRegistry extensionRegistry) {
  9748. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9749. .BuildParsed();
  9750. }
  9751. public static Builder CreateBuilder() { return new Builder(); }
  9752. public override IBuilder<self::TestNestedMessageHasBits.Types.NestedMessage> CreateBuilderForType() { return new Builder(); }
  9753. public static Builder CreateBuilder(self::TestNestedMessageHasBits.Types.NestedMessage prototype) {
  9754. return (Builder) new Builder().MergeFrom(prototype);
  9755. }
  9756. public sealed partial class Builder : pb::GeneratedBuilder<self::TestNestedMessageHasBits.Types.NestedMessage, Builder> {
  9757. // Construct using self::TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder()
  9758. internal Builder() {}
  9759. self::TestNestedMessageHasBits.Types.NestedMessage result = new self::TestNestedMessageHasBits.Types.NestedMessage();
  9760. protected override self::TestNestedMessageHasBits.Types.NestedMessage MessageBeingBuilt {
  9761. get { return result; }
  9762. }
  9763. public override IBuilder<self::TestNestedMessageHasBits.Types.NestedMessage> Clear() {
  9764. result = new self::TestNestedMessageHasBits.Types.NestedMessage();
  9765. return this;
  9766. }
  9767. public override IBuilder<self::TestNestedMessageHasBits.Types.NestedMessage> Clone() {
  9768. return new Builder().MergeFrom(result);
  9769. }
  9770. public override pbd::MessageDescriptor DescriptorForType {
  9771. get { return self::TestNestedMessageHasBits.Types.NestedMessage.Descriptor; }
  9772. }
  9773. public override self::TestNestedMessageHasBits.Types.NestedMessage DefaultInstanceForType {
  9774. get { return self::TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; }
  9775. }
  9776. public override self::TestNestedMessageHasBits.Types.NestedMessage BuildPartial() {
  9777. result.nestedmessageRepeatedInt32_ = pbc::Lists<int>.AsReadOnly(result.nestedmessageRepeatedInt32_);
  9778. if (result.nestedmessageRepeatedForeignmessage_ != pbc::Lists<self::ForeignMessage>.Empty) {
  9779. result.nestedmessageRepeatedForeignmessage_ = pbc::Lists<self::ForeignMessage>.AsReadOnly(result.nestedmessageRepeatedForeignmessage_);
  9780. }
  9781. self::TestNestedMessageHasBits.Types.NestedMessage returnMe = result;
  9782. result = null;
  9783. return returnMe;
  9784. }
  9785. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  9786. return MergeFrom(data, extensionRegistry);
  9787. }
  9788. public override IBuilder MergeFrom(pb::IMessage other) {
  9789. if (other is self::TestNestedMessageHasBits.Types.NestedMessage) {
  9790. return MergeFrom((self::TestNestedMessageHasBits.Types.NestedMessage) other);
  9791. } else {
  9792. base.MergeFrom(other);
  9793. return this;
  9794. }
  9795. }
  9796. public override IBuilder<self::TestNestedMessageHasBits.Types.NestedMessage> MergeFrom(self::TestNestedMessageHasBits.Types.NestedMessage other) {
  9797. if (other == self::TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) return this;
  9798. if (other.nestedmessageRepeatedInt32_.Count != 0) {
  9799. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9800. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9801. }
  9802. base.AddRange(other.nestedmessageRepeatedInt32_, result.nestedmessageRepeatedInt32_);
  9803. }
  9804. if (other.nestedmessageRepeatedForeignmessage_.Count != 0) {
  9805. if (result.nestedmessageRepeatedForeignmessage_.Count == 0) {
  9806. result.nestedmessageRepeatedForeignmessage_ = new scg::List<self::ForeignMessage>();
  9807. }
  9808. base.AddRange(other.nestedmessageRepeatedForeignmessage_, result.nestedmessageRepeatedForeignmessage_);
  9809. }
  9810. this.MergeUnknownFields(other.UnknownFields);
  9811. return this;
  9812. }
  9813. public override IBuilder<self::TestNestedMessageHasBits.Types.NestedMessage> MergeFrom(pb::CodedInputStream input) {
  9814. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9815. }
  9816. public override IBuilder<self::TestNestedMessageHasBits.Types.NestedMessage> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9817. pb::UnknownFieldSet.Builder unknownFields =
  9818. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9819. while (true) {
  9820. uint tag = input.ReadTag();
  9821. switch (tag) {
  9822. case 0:
  9823. this.UnknownFields = unknownFields.Build();
  9824. return this;
  9825. default: {
  9826. if (!ParseUnknownField(input, unknownFields,
  9827. extensionRegistry, tag)) {
  9828. this.UnknownFields = unknownFields.Build();
  9829. return this;
  9830. }
  9831. break;
  9832. }
  9833. case 8: {
  9834. AddNestedmessageRepeatedInt32(input.ReadInt32());
  9835. break;
  9836. }
  9837. case 18: {
  9838. self::ForeignMessage.Builder subBuilder = self::ForeignMessage.CreateBuilder();
  9839. input.ReadMessage(subBuilder, extensionRegistry);
  9840. AddNestedmessageRepeatedForeignmessage(subBuilder.BuildPartial());
  9841. break;
  9842. }
  9843. }
  9844. }
  9845. }
  9846. // repeated int32 nestedmessage_repeated_int32 = 1;
  9847. public scg::IList<int> NestedmessageRepeatedInt32List {
  9848. get { return pbc::Lists<int>.AsReadOnly(result.nestedmessageRepeatedInt32_); }
  9849. }
  9850. public int NestedmessageRepeatedInt32Count {
  9851. get { return result.NestedmessageRepeatedInt32Count; }
  9852. }
  9853. public int GetNestedmessageRepeatedInt32(int index) {
  9854. return result.GetNestedmessageRepeatedInt32(index);
  9855. }
  9856. public Builder SetNestedmessageRepeatedInt32(int index, int value) {
  9857. result.nestedmessageRepeatedInt32_[index] = value;
  9858. return this;
  9859. }
  9860. public Builder AddNestedmessageRepeatedInt32(int value) {
  9861. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9862. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9863. }
  9864. result.nestedmessageRepeatedInt32_.Add(value);
  9865. return this;
  9866. }
  9867. public Builder AddRangeNestedmessageRepeatedInt32(scg::IEnumerable<int> values) {
  9868. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9869. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9870. }
  9871. base.AddRange(values, result.nestedmessageRepeatedInt32_);
  9872. return this;
  9873. }
  9874. public Builder ClearNestedmessageRepeatedInt32() {
  9875. result.nestedmessageRepeatedInt32_ = pbc::Lists<int>.Empty;
  9876. return this;
  9877. }
  9878. // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
  9879. public scg::IList<self::ForeignMessage> NestedmessageRepeatedForeignmessageList {
  9880. get { return pbc::Lists.AsReadOnly(result.nestedmessageRepeatedForeignmessage_); }
  9881. }
  9882. public int NestedmessageRepeatedForeignmessageCount {
  9883. get { return result.NestedmessageRepeatedForeignmessageCount; }
  9884. }
  9885. public self::ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
  9886. return result.GetNestedmessageRepeatedForeignmessage(index);
  9887. }
  9888. public Builder SetNestedmessageRepeatedForeignmessage(int index, self::ForeignMessage value) {
  9889. result.nestedmessageRepeatedForeignmessage_[index] = value;
  9890. return this;
  9891. }
  9892. public Builder SetNestedmessageRepeatedForeignmessage(int index, self::ForeignMessage.Builder builderForValue) {
  9893. result.nestedmessageRepeatedForeignmessage_[index] = builderForValue.Build();
  9894. return this;
  9895. }
  9896. public Builder AddNestedmessageRepeatedForeignmessage(self::ForeignMessage value) {
  9897. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  9898. result.nestedmessageRepeatedForeignmessage_ = new scg::List<self::ForeignMessage>();
  9899. }
  9900. result.nestedmessageRepeatedForeignmessage_.Add(value);
  9901. return this;
  9902. }
  9903. public Builder AddNestedmessageRepeatedForeignmessage(self::ForeignMessage.Builder builderForValue) {
  9904. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  9905. result.nestedmessageRepeatedForeignmessage_ = new scg::List<self::ForeignMessage>();
  9906. }
  9907. result.nestedmessageRepeatedForeignmessage_.Add(builderForValue.Build());
  9908. return this;
  9909. }
  9910. public Builder AddRangeNestedmessageRepeatedForeignmessage(scg::IEnumerable<self::ForeignMessage> values) {
  9911. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  9912. result.nestedmessageRepeatedForeignmessage_ = new scg::List<self::ForeignMessage>();
  9913. }
  9914. base.AddRange(values, result.nestedmessageRepeatedForeignmessage_);
  9915. return this;
  9916. }
  9917. public Builder ClearNestedmessageRepeatedForeignmessage() {
  9918. result.nestedmessageRepeatedForeignmessage_ = pbc::Lists<self::ForeignMessage>.Empty;
  9919. return this;
  9920. }
  9921. }
  9922. }
  9923. }
  9924. #endregion
  9925. // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
  9926. private bool hasOptionalNestedMessage;
  9927. private self::TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_ = self::TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
  9928. public bool HasOptionalNestedMessage {
  9929. get { return hasOptionalNestedMessage; }
  9930. }
  9931. public self::TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  9932. get { return optionalNestedMessage_; }
  9933. }
  9934. public override bool IsInitialized {
  9935. get {
  9936. return true;
  9937. }
  9938. }
  9939. public override void WriteTo(pb::CodedOutputStream output) {
  9940. if (HasOptionalNestedMessage) {
  9941. output.WriteMessage(1, OptionalNestedMessage);
  9942. }
  9943. UnknownFields.WriteTo(output);
  9944. }
  9945. private int memoizedSerializedSize = -1;
  9946. public override int SerializedSize {
  9947. get {
  9948. int size = memoizedSerializedSize;
  9949. if (size != -1) return size;
  9950. size = 0;
  9951. if (HasOptionalNestedMessage) {
  9952. size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalNestedMessage);
  9953. }
  9954. size += UnknownFields.SerializedSize;
  9955. memoizedSerializedSize = size;
  9956. return size;
  9957. }
  9958. }
  9959. public static self::TestNestedMessageHasBits ParseFrom(pb::ByteString data) {
  9960. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9961. }
  9962. public static self::TestNestedMessageHasBits ParseFrom(pb::ByteString data,
  9963. pb::ExtensionRegistry extensionRegistry) {
  9964. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9965. .BuildParsed();
  9966. }
  9967. public static self::TestNestedMessageHasBits ParseFrom(byte[] data) {
  9968. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9969. }
  9970. public static self::TestNestedMessageHasBits parseFrom(byte[] data,
  9971. pb::ExtensionRegistry extensionRegistry) {
  9972. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9973. .BuildParsed();
  9974. }
  9975. public static self::TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input) {
  9976. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9977. }
  9978. public static self::TestNestedMessageHasBits ParseFrom(
  9979. global::System.IO.Stream input,
  9980. pb::ExtensionRegistry extensionRegistry) {
  9981. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9982. .BuildParsed();
  9983. }
  9984. public static self::TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input) {
  9985. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9986. }
  9987. public static self::TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input,
  9988. pb::ExtensionRegistry extensionRegistry) {
  9989. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9990. .BuildParsed();
  9991. }
  9992. public static Builder CreateBuilder() { return new Builder(); }
  9993. public override IBuilder<self::TestNestedMessageHasBits> CreateBuilderForType() { return new Builder(); }
  9994. public static Builder CreateBuilder(self::TestNestedMessageHasBits prototype) {
  9995. return (Builder) new Builder().MergeFrom(prototype);
  9996. }
  9997. public sealed partial class Builder : pb::GeneratedBuilder<self::TestNestedMessageHasBits, Builder> {
  9998. // Construct using self::TestNestedMessageHasBits.CreateBuilder()
  9999. internal Builder() {}
  10000. self::TestNestedMessageHasBits result = new self::TestNestedMessageHasBits();
  10001. protected override self::TestNestedMessageHasBits MessageBeingBuilt {
  10002. get { return result; }
  10003. }
  10004. public override IBuilder<self::TestNestedMessageHasBits> Clear() {
  10005. result = new self::TestNestedMessageHasBits();
  10006. return this;
  10007. }
  10008. public override IBuilder<self::TestNestedMessageHasBits> Clone() {
  10009. return new Builder().MergeFrom(result);
  10010. }
  10011. public override pbd::MessageDescriptor DescriptorForType {
  10012. get { return self::TestNestedMessageHasBits.Descriptor; }
  10013. }
  10014. public override self::TestNestedMessageHasBits DefaultInstanceForType {
  10015. get { return self::TestNestedMessageHasBits.DefaultInstance; }
  10016. }
  10017. public override self::TestNestedMessageHasBits BuildPartial() {
  10018. self::TestNestedMessageHasBits returnMe = result;
  10019. result = null;
  10020. return returnMe;
  10021. }
  10022. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  10023. return MergeFrom(data, extensionRegistry);
  10024. }
  10025. public override IBuilder MergeFrom(pb::IMessage other) {
  10026. if (other is self::TestNestedMessageHasBits) {
  10027. return MergeFrom((self::TestNestedMessageHasBits) other);
  10028. } else {
  10029. base.MergeFrom(other);
  10030. return this;
  10031. }
  10032. }
  10033. public override IBuilder<self::TestNestedMessageHasBits> MergeFrom(self::TestNestedMessageHasBits other) {
  10034. if (other == self::TestNestedMessageHasBits.DefaultInstance) return this;
  10035. if (other.HasOptionalNestedMessage) {
  10036. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  10037. }
  10038. this.MergeUnknownFields(other.UnknownFields);
  10039. return this;
  10040. }
  10041. public override IBuilder<self::TestNestedMessageHasBits> MergeFrom(pb::CodedInputStream input) {
  10042. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  10043. }
  10044. public override IBuilder<self::TestNestedMessageHasBits> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10045. pb::UnknownFieldSet.Builder unknownFields =
  10046. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10047. while (true) {
  10048. uint tag = input.ReadTag();
  10049. switch (tag) {
  10050. case 0:
  10051. this.UnknownFields = unknownFields.Build();
  10052. return this;
  10053. default: {
  10054. if (!ParseUnknownField(input, unknownFields,
  10055. extensionRegistry, tag)) {
  10056. this.UnknownFields = unknownFields.Build();
  10057. return this;
  10058. }
  10059. break;
  10060. }
  10061. case 10: {
  10062. self::TestNestedMessageHasBits.Types.NestedMessage.Builder subBuilder = self::TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder();
  10063. if (HasOptionalNestedMessage) {
  10064. subBuilder.MergeFrom(OptionalNestedMessage);
  10065. }
  10066. input.ReadMessage(subBuilder, extensionRegistry);
  10067. OptionalNestedMessage = subBuilder.BuildPartial();
  10068. break;
  10069. }
  10070. }
  10071. }
  10072. }
  10073. // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
  10074. public bool HasOptionalNestedMessage {
  10075. get { return result.HasOptionalNestedMessage; }
  10076. }
  10077. public self::TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  10078. get { return result.OptionalNestedMessage; }
  10079. set { SetOptionalNestedMessage(value); }
  10080. }
  10081. public Builder SetOptionalNestedMessage(self::TestNestedMessageHasBits.Types.NestedMessage value) {
  10082. result.hasOptionalNestedMessage = true;
  10083. result.optionalNestedMessage_ = value;
  10084. return this;
  10085. }
  10086. public Builder SetOptionalNestedMessage(self::TestNestedMessageHasBits.Types.NestedMessage.Builder builderForValue) {
  10087. result.hasOptionalNestedMessage = true;
  10088. result.optionalNestedMessage_ = builderForValue.Build();
  10089. return this;
  10090. }
  10091. public Builder MergeOptionalNestedMessage(self::TestNestedMessageHasBits.Types.NestedMessage value) {
  10092. if (result.HasOptionalNestedMessage &&
  10093. result.optionalNestedMessage_ != self::TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) {
  10094. result.optionalNestedMessage_ =
  10095. self::TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  10096. } else {
  10097. result.optionalNestedMessage_ = value;
  10098. }
  10099. result.hasOptionalNestedMessage = true;
  10100. return this;
  10101. }
  10102. public Builder ClearOptionalNestedMessage() {
  10103. result.hasOptionalNestedMessage = false;
  10104. result.optionalNestedMessage_ = self::TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
  10105. return this;
  10106. }
  10107. }
  10108. }
  10109. public sealed partial class TestCamelCaseFieldNames : pb::GeneratedMessage<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> {
  10110. // Use TestCamelCaseFieldNames.CreateBuilder() to construct.
  10111. private TestCamelCaseFieldNames() {}
  10112. private static readonly TestCamelCaseFieldNames defaultInstance = new TestCamelCaseFieldNames();
  10113. public static TestCamelCaseFieldNames DefaultInstance {
  10114. get { return defaultInstance; }
  10115. }
  10116. public override TestCamelCaseFieldNames DefaultInstanceForType {
  10117. get { return defaultInstance; }
  10118. }
  10119. public static pbd::MessageDescriptor Descriptor {
  10120. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor; }
  10121. }
  10122. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  10123. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; }
  10124. }
  10125. // optional int32 PrimitiveField = 1;
  10126. private bool hasPrimitiveField;
  10127. private int primitiveField_ = 0;
  10128. public bool HasPrimitiveField {
  10129. get { return hasPrimitiveField; }
  10130. }
  10131. public int PrimitiveField {
  10132. get { return primitiveField_; }
  10133. }
  10134. // optional string StringField = 2;
  10135. private bool hasStringField;
  10136. private string stringField_ = "";
  10137. public bool HasStringField {
  10138. get { return hasStringField; }
  10139. }
  10140. public string StringField {
  10141. get { return stringField_; }
  10142. }
  10143. // optional .protobuf_unittest.ForeignEnum EnumField = 3;
  10144. private bool hasEnumField;
  10145. private self::ForeignEnum enumField_ = self::ForeignEnum.FOREIGN_FOO;
  10146. public bool HasEnumField {
  10147. get { return hasEnumField; }
  10148. }
  10149. public self::ForeignEnum EnumField { get { return enumField_; }}
  10150. // optional .protobuf_unittest.ForeignMessage MessageField = 4;
  10151. private bool hasMessageField;
  10152. private self::ForeignMessage messageField_ = self::ForeignMessage.DefaultInstance;
  10153. public bool HasMessageField {
  10154. get { return hasMessageField; }
  10155. }
  10156. public self::ForeignMessage MessageField {
  10157. get { return messageField_; }
  10158. }
  10159. // optional string StringPieceField = 5 [ctype = STRING_PIECE];
  10160. private bool hasStringPieceField;
  10161. private string stringPieceField_ = "";
  10162. public bool HasStringPieceField {
  10163. get { return hasStringPieceField; }
  10164. }
  10165. public string StringPieceField {
  10166. get { return stringPieceField_; }
  10167. }
  10168. // optional string CordField = 6 [ctype = CORD];
  10169. private bool hasCordField;
  10170. private string cordField_ = "";
  10171. public bool HasCordField {
  10172. get { return hasCordField; }
  10173. }
  10174. public string CordField {
  10175. get { return cordField_; }
  10176. }
  10177. // repeated int32 RepeatedPrimitiveField = 7;
  10178. private scg::IList<int> repeatedPrimitiveField_ = pbc::Lists<int>.Empty;
  10179. public scg::IList<int> RepeatedPrimitiveFieldList {
  10180. get { return repeatedPrimitiveField_; }
  10181. }
  10182. public int RepeatedPrimitiveFieldCount {
  10183. get { return repeatedPrimitiveField_.Count; }
  10184. }
  10185. public int GetRepeatedPrimitiveField(int index) {
  10186. return repeatedPrimitiveField_[index];
  10187. }
  10188. // repeated string RepeatedStringField = 8;
  10189. private scg::IList<string> repeatedStringField_ = pbc::Lists<string>.Empty;
  10190. public scg::IList<string> RepeatedStringFieldList {
  10191. get { return repeatedStringField_; }
  10192. }
  10193. public int RepeatedStringFieldCount {
  10194. get { return repeatedStringField_.Count; }
  10195. }
  10196. public string GetRepeatedStringField(int index) {
  10197. return repeatedStringField_[index];
  10198. }
  10199. // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
  10200. private scg::IList<self::ForeignEnum> repeatedEnumField_ = new scg::List<self::ForeignEnum> ();
  10201. public scg.IList<self::ForeignEnum> RepeatedEnumFieldList {
  10202. get { return pbc::Lists.AsReadOnly(repeatedEnumField_); }
  10203. }
  10204. public int RepeatedEnumFieldCount {
  10205. get { return repeatedEnumField_.Count; }
  10206. }
  10207. public self::ForeignEnum GetRepeatedEnumField(int index) {
  10208. return repeatedEnumField_[index];
  10209. }
  10210. // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
  10211. private scg::IList<self::ForeignMessage> repeatedMessageField_ = pbc::Lists<self::ForeignMessage>.Empty;
  10212. public scg::IList<self::ForeignMessage> RepeatedMessageFieldList {
  10213. get { return repeatedMessageField_; }
  10214. }
  10215. public int RepeatedMessageFieldCount
  10216. { get { return repeatedMessageField_.Count; }
  10217. }
  10218. public self::ForeignMessage GetRepeatedMessageField(int index) {
  10219. return repeatedMessageField_ [index];
  10220. }
  10221. // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
  10222. private scg::IList<string> repeatedStringPieceField_ = pbc::Lists<string>.Empty;
  10223. public scg::IList<string> RepeatedStringPieceFieldList {
  10224. get { return repeatedStringPieceField_; }
  10225. }
  10226. public int RepeatedStringPieceFieldCount {
  10227. get { return repeatedStringPieceField_.Count; }
  10228. }
  10229. public string GetRepeatedStringPieceField(int index) {
  10230. return repeatedStringPieceField_[index];
  10231. }
  10232. // repeated string RepeatedCordField = 12 [ctype = CORD];
  10233. private scg::IList<string> repeatedCordField_ = pbc::Lists<string>.Empty;
  10234. public scg::IList<string> RepeatedCordFieldList {
  10235. get { return repeatedCordField_; }
  10236. }
  10237. public int RepeatedCordFieldCount {
  10238. get { return repeatedCordField_.Count; }
  10239. }
  10240. public string GetRepeatedCordField(int index) {
  10241. return repeatedCordField_[index];
  10242. }
  10243. public override bool IsInitialized {
  10244. get {
  10245. return true;
  10246. }
  10247. }
  10248. public override void WriteTo(pb::CodedOutputStream output) {
  10249. if (HasPrimitiveField) {
  10250. output.WriteInt32(1, PrimitiveField);
  10251. }
  10252. if (HasStringField) {
  10253. output.WriteString(2, StringField);
  10254. }
  10255. if (HasEnumField) {
  10256. output.WriteEnum(3, (int) EnumField);
  10257. }
  10258. if (HasMessageField) {
  10259. output.WriteMessage(4, MessageField);
  10260. }
  10261. if (HasStringPieceField) {
  10262. output.WriteString(5, StringPieceField);
  10263. }
  10264. if (HasCordField) {
  10265. output.WriteString(6, CordField);
  10266. }
  10267. foreach (int element in RepeatedPrimitiveFieldList) {
  10268. output.WriteInt32(7, element);
  10269. }
  10270. foreach (string element in RepeatedStringFieldList) {
  10271. output.WriteString(8, element);
  10272. }
  10273. foreach (self::ForeignEnum element in RepeatedEnumFieldList) {
  10274. output.WriteEnum(9, (int) element);
  10275. }
  10276. foreach (self::ForeignMessage element in RepeatedMessageFieldList) {
  10277. output.WriteMessage(10, element);
  10278. }
  10279. foreach (string element in RepeatedStringPieceFieldList) {
  10280. output.WriteString(11, element);
  10281. }
  10282. foreach (string element in RepeatedCordFieldList) {
  10283. output.WriteString(12, element);
  10284. }
  10285. UnknownFields.WriteTo(output);
  10286. }
  10287. private int memoizedSerializedSize = -1;
  10288. public override int SerializedSize {
  10289. get {
  10290. int size = memoizedSerializedSize;
  10291. if (size != -1) return size;
  10292. size = 0;
  10293. if (HasPrimitiveField) {
  10294. size += pb::CodedOutputStream.ComputeInt32Size(1, PrimitiveField);
  10295. }
  10296. if (HasStringField) {
  10297. size += pb::CodedOutputStream.ComputeStringSize(2, StringField);
  10298. }
  10299. if (HasEnumField) {
  10300. size += pb::CodedOutputStream
  10301. .ComputeEnumSize(3, (int) EnumField);
  10302. }
  10303. if (HasMessageField) {
  10304. size += pb::CodedOutputStream.ComputeMessageSize(4, MessageField);
  10305. }
  10306. if (HasStringPieceField) {
  10307. size += pb::CodedOutputStream.ComputeStringSize(5, StringPieceField);
  10308. }
  10309. if (HasCordField) {
  10310. size += pb::CodedOutputStream.ComputeStringSize(6, CordField);
  10311. }
  10312. foreach (int element in RepeatedPrimitiveFieldList) {
  10313. size += pb::CodedOutputStream
  10314. .ComputeInt32Size(7, element);
  10315. }
  10316. foreach (string element in RepeatedStringFieldList) {
  10317. size += pb::CodedOutputStream
  10318. .ComputeStringSize(8, element);
  10319. }
  10320. foreach (self::ForeignEnum element in RepeatedEnumFieldList) {
  10321. size += pb::CodedOutputStream
  10322. .ComputeEnumSize(9, (int) element);
  10323. }
  10324. foreach (self::ForeignMessage element in RepeatedMessageFieldList) {
  10325. size += pb::CodedOutputStream.ComputeMessageSize(10, element);
  10326. }
  10327. foreach (string element in RepeatedStringPieceFieldList) {
  10328. size += pb::CodedOutputStream
  10329. .ComputeStringSize(11, element);
  10330. }
  10331. foreach (string element in RepeatedCordFieldList) {
  10332. size += pb::CodedOutputStream
  10333. .ComputeStringSize(12, element);
  10334. }
  10335. size += UnknownFields.SerializedSize;
  10336. memoizedSerializedSize = size;
  10337. return size;
  10338. }
  10339. }
  10340. public static self::TestCamelCaseFieldNames ParseFrom(pb::ByteString data) {
  10341. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10342. }
  10343. public static self::TestCamelCaseFieldNames ParseFrom(pb::ByteString data,
  10344. pb::ExtensionRegistry extensionRegistry) {
  10345. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10346. .BuildParsed();
  10347. }
  10348. public static self::TestCamelCaseFieldNames ParseFrom(byte[] data) {
  10349. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10350. }
  10351. public static self::TestCamelCaseFieldNames parseFrom(byte[] data,
  10352. pb::ExtensionRegistry extensionRegistry) {
  10353. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10354. .BuildParsed();
  10355. }
  10356. public static self::TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input) {
  10357. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10358. }
  10359. public static self::TestCamelCaseFieldNames ParseFrom(
  10360. global::System.IO.Stream input,
  10361. pb::ExtensionRegistry extensionRegistry) {
  10362. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10363. .BuildParsed();
  10364. }
  10365. public static self::TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input) {
  10366. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10367. }
  10368. public static self::TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input,
  10369. pb::ExtensionRegistry extensionRegistry) {
  10370. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10371. .BuildParsed();
  10372. }
  10373. public static Builder CreateBuilder() { return new Builder(); }
  10374. public override IBuilder<self::TestCamelCaseFieldNames> CreateBuilderForType() { return new Builder(); }
  10375. public static Builder CreateBuilder(self::TestCamelCaseFieldNames prototype) {
  10376. return (Builder) new Builder().MergeFrom(prototype);
  10377. }
  10378. public sealed partial class Builder : pb::GeneratedBuilder<self::TestCamelCaseFieldNames, Builder> {
  10379. // Construct using self::TestCamelCaseFieldNames.CreateBuilder()
  10380. internal Builder() {}
  10381. self::TestCamelCaseFieldNames result = new self::TestCamelCaseFieldNames();
  10382. protected override self::TestCamelCaseFieldNames MessageBeingBuilt {
  10383. get { return result; }
  10384. }
  10385. public override IBuilder<self::TestCamelCaseFieldNames> Clear() {
  10386. result = new self::TestCamelCaseFieldNames();
  10387. return this;
  10388. }
  10389. public override IBuilder<self::TestCamelCaseFieldNames> Clone() {
  10390. return new Builder().MergeFrom(result);
  10391. }
  10392. public override pbd::MessageDescriptor DescriptorForType {
  10393. get { return self::TestCamelCaseFieldNames.Descriptor; }
  10394. }
  10395. public override self::TestCamelCaseFieldNames DefaultInstanceForType {
  10396. get { return self::TestCamelCaseFieldNames.DefaultInstance; }
  10397. }
  10398. public override self::TestCamelCaseFieldNames BuildPartial() {
  10399. result.repeatedPrimitiveField_ = pbc::Lists<int>.AsReadOnly(result.repeatedPrimitiveField_);
  10400. result.repeatedStringField_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringField_);
  10401. result.repeatedEnumField_ = pbc::Lists.AsReadOnly(result.repeatedEnumField_);
  10402. if (result.repeatedMessageField_ != pbc::Lists<self::ForeignMessage>.Empty) {
  10403. result.repeatedMessageField_ = pbc::Lists<self::ForeignMessage>.AsReadOnly(result.repeatedMessageField_);
  10404. }
  10405. result.repeatedStringPieceField_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringPieceField_);
  10406. result.repeatedCordField_ = pbc::Lists<string>.AsReadOnly(result.repeatedCordField_);
  10407. self::TestCamelCaseFieldNames returnMe = result;
  10408. result = null;
  10409. return returnMe;
  10410. }
  10411. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  10412. return MergeFrom(data, extensionRegistry);
  10413. }
  10414. public override IBuilder MergeFrom(pb::IMessage other) {
  10415. if (other is self::TestCamelCaseFieldNames) {
  10416. return MergeFrom((self::TestCamelCaseFieldNames) other);
  10417. } else {
  10418. base.MergeFrom(other);
  10419. return this;
  10420. }
  10421. }
  10422. public override IBuilder<self::TestCamelCaseFieldNames> MergeFrom(self::TestCamelCaseFieldNames other) {
  10423. if (other == self::TestCamelCaseFieldNames.DefaultInstance) return this;
  10424. if (other.HasPrimitiveField) {
  10425. PrimitiveField = other.PrimitiveField;
  10426. }
  10427. if (other.HasStringField) {
  10428. StringField = other.StringField;
  10429. }
  10430. if (other.HasEnumField) {
  10431. EnumField = other.EnumField;
  10432. }
  10433. if (other.HasMessageField) {
  10434. MergeMessageField(other.MessageField);
  10435. }
  10436. if (other.HasStringPieceField) {
  10437. StringPieceField = other.StringPieceField;
  10438. }
  10439. if (other.HasCordField) {
  10440. CordField = other.CordField;
  10441. }
  10442. if (other.repeatedPrimitiveField_.Count != 0) {
  10443. if (result.repeatedPrimitiveField_.Count == 0) {
  10444. result.repeatedPrimitiveField_ = new scg::List<int>();
  10445. }
  10446. base.AddRange(other.repeatedPrimitiveField_, result.repeatedPrimitiveField_);
  10447. }
  10448. if (other.repeatedStringField_.Count != 0) {
  10449. if (result.repeatedStringField_.Count == 0) {
  10450. result.repeatedStringField_ = new scg::List<string>();
  10451. }
  10452. base.AddRange(other.repeatedStringField_, result.repeatedStringField_);
  10453. }
  10454. if (other.repeatedEnumField_.Count != 0) {
  10455. if (result.repeatedEnumField_.Count == 0) {
  10456. result.repeatedEnumField_ = new scg::List<self::ForeignEnum>();
  10457. }
  10458. base.AddRange(other.repeatedEnumField_, result.repeatedEnumField_);
  10459. }
  10460. if (other.repeatedMessageField_.Count != 0) {
  10461. if (result.repeatedMessageField_.Count == 0) {
  10462. result.repeatedMessageField_ = new scg::List<self::ForeignMessage>();
  10463. }
  10464. base.AddRange(other.repeatedMessageField_, result.repeatedMessageField_);
  10465. }
  10466. if (other.repeatedStringPieceField_.Count != 0) {
  10467. if (result.repeatedStringPieceField_.Count == 0) {
  10468. result.repeatedStringPieceField_ = new scg::List<string>();
  10469. }
  10470. base.AddRange(other.repeatedStringPieceField_, result.repeatedStringPieceField_);
  10471. }
  10472. if (other.repeatedCordField_.Count != 0) {
  10473. if (result.repeatedCordField_.Count == 0) {
  10474. result.repeatedCordField_ = new scg::List<string>();
  10475. }
  10476. base.AddRange(other.repeatedCordField_, result.repeatedCordField_);
  10477. }
  10478. this.MergeUnknownFields(other.UnknownFields);
  10479. return this;
  10480. }
  10481. public override IBuilder<self::TestCamelCaseFieldNames> MergeFrom(pb::CodedInputStream input) {
  10482. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  10483. }
  10484. public override IBuilder<self::TestCamelCaseFieldNames> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10485. pb::UnknownFieldSet.Builder unknownFields =
  10486. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10487. while (true) {
  10488. uint tag = input.ReadTag();
  10489. switch (tag) {
  10490. case 0:
  10491. this.UnknownFields = unknownFields.Build();
  10492. return this;
  10493. default: {
  10494. if (!ParseUnknownField(input, unknownFields,
  10495. extensionRegistry, tag)) {
  10496. this.UnknownFields = unknownFields.Build();
  10497. return this;
  10498. }
  10499. break;
  10500. }
  10501. case 8: {
  10502. PrimitiveField = input.ReadInt32();
  10503. break;
  10504. }
  10505. case 18: {
  10506. StringField = input.ReadString();
  10507. break;
  10508. }
  10509. case 24: {
  10510. int rawValue = input.ReadEnum();
  10511. if (!global::System.Enum.IsDefined(typeof(self::ForeignEnum), rawValue)) {
  10512. unknownFields.MergeVarintField(3, (ulong) rawValue);
  10513. } else {
  10514. EnumField = (self::ForeignEnum) rawValue;
  10515. }
  10516. break;
  10517. }
  10518. case 34: {
  10519. self::ForeignMessage.Builder subBuilder = self::ForeignMessage.CreateBuilder();
  10520. if (HasMessageField) {
  10521. subBuilder.MergeFrom(MessageField);
  10522. }
  10523. input.ReadMessage(subBuilder, extensionRegistry);
  10524. MessageField = subBuilder.BuildPartial();
  10525. break;
  10526. }
  10527. case 42: {
  10528. StringPieceField = input.ReadString();
  10529. break;
  10530. }
  10531. case 50: {
  10532. CordField = input.ReadString();
  10533. break;
  10534. }
  10535. case 56: {
  10536. AddRepeatedPrimitiveField(input.ReadInt32());
  10537. break;
  10538. }
  10539. case 66: {
  10540. AddRepeatedStringField(input.ReadString());
  10541. break;
  10542. }
  10543. case 72: {
  10544. int rawValue = input.ReadEnum();
  10545. self::ForeignEnum value = (self::ForeignEnum) rawValue;
  10546. if (!global::System.Enum.IsDefined(typeof(self::ForeignEnum), value)) {
  10547. unknownFields.MergeVarintField(9, (ulong) rawValue);
  10548. } else {
  10549. AddRepeatedEnumField(value);
  10550. }
  10551. break;
  10552. }
  10553. case 82: {
  10554. self::ForeignMessage.Builder subBuilder = self::ForeignMessage.CreateBuilder();
  10555. input.ReadMessage(subBuilder, extensionRegistry);
  10556. AddRepeatedMessageField(subBuilder.BuildPartial());
  10557. break;
  10558. }
  10559. case 90: {
  10560. AddRepeatedStringPieceField(input.ReadString());
  10561. break;
  10562. }
  10563. case 98: {
  10564. AddRepeatedCordField(input.ReadString());
  10565. break;
  10566. }
  10567. }
  10568. }
  10569. }
  10570. // optional int32 PrimitiveField = 1;
  10571. public bool HasPrimitiveField {
  10572. get { return result.HasPrimitiveField; }
  10573. }
  10574. public int PrimitiveField {
  10575. get { return result.PrimitiveField; }
  10576. set { SetPrimitiveField(value); }
  10577. }
  10578. public Builder SetPrimitiveField(int value) {
  10579. result.hasPrimitiveField = true;
  10580. result.primitiveField_ = value;
  10581. return this;
  10582. }
  10583. public Builder ClearPrimitiveField() {
  10584. result.hasPrimitiveField = false;
  10585. result.primitiveField_ = 0;
  10586. return this;
  10587. }
  10588. // optional string StringField = 2;
  10589. public bool HasStringField {
  10590. get { return result.HasStringField; }
  10591. }
  10592. public string StringField {
  10593. get { return result.StringField; }
  10594. set { SetStringField(value); }
  10595. }
  10596. public Builder SetStringField(string value) {
  10597. result.hasStringField = true;
  10598. result.stringField_ = value;
  10599. return this;
  10600. }
  10601. public Builder ClearStringField() {
  10602. result.hasStringField = false;
  10603. result.stringField_ = "";
  10604. return this;
  10605. }
  10606. // optional .protobuf_unittest.ForeignEnum EnumField = 3;
  10607. public bool HasEnumField {
  10608. get { return result.HasEnumField; }
  10609. }
  10610. public self::ForeignEnum EnumField {
  10611. get { return result.EnumField; }
  10612. set { SetEnumField(value); }
  10613. }
  10614. public Builder SetEnumField(self::ForeignEnum value) {
  10615. result.hasEnumField = true;
  10616. result.enumField_ = value;
  10617. return this;
  10618. }
  10619. public Builder ClearEnumField() {
  10620. result.hasEnumField = false;
  10621. result.enumField_ = self::ForeignEnum.FOREIGN_FOO;
  10622. return this;
  10623. }
  10624. // optional .protobuf_unittest.ForeignMessage MessageField = 4;
  10625. public bool HasMessageField {
  10626. get { return result.HasMessageField; }
  10627. }
  10628. public self::ForeignMessage MessageField {
  10629. get { return result.MessageField; }
  10630. set { SetMessageField(value); }
  10631. }
  10632. public Builder SetMessageField(self::ForeignMessage value) {
  10633. result.hasMessageField = true;
  10634. result.messageField_ = value;
  10635. return this;
  10636. }
  10637. public Builder SetMessageField(self::ForeignMessage.Builder builderForValue) {
  10638. result.hasMessageField = true;
  10639. result.messageField_ = builderForValue.Build();
  10640. return this;
  10641. }
  10642. public Builder MergeMessageField(self::ForeignMessage value) {
  10643. if (result.HasMessageField &&
  10644. result.messageField_ != self::ForeignMessage.DefaultInstance) {
  10645. result.messageField_ =
  10646. self::ForeignMessage.CreateBuilder(result.messageField_).MergeFrom(value).BuildPartial();
  10647. } else {
  10648. result.messageField_ = value;
  10649. }
  10650. result.hasMessageField = true;
  10651. return this;
  10652. }
  10653. public Builder ClearMessageField() {
  10654. result.hasMessageField = false;
  10655. result.messageField_ = self::ForeignMessage.DefaultInstance;
  10656. return this;
  10657. }
  10658. // optional string StringPieceField = 5 [ctype = STRING_PIECE];
  10659. public bool HasStringPieceField {
  10660. get { return result.HasStringPieceField; }
  10661. }
  10662. public string StringPieceField {
  10663. get { return result.StringPieceField; }
  10664. set { SetStringPieceField(value); }
  10665. }
  10666. public Builder SetStringPieceField(string value) {
  10667. result.hasStringPieceField = true;
  10668. result.stringPieceField_ = value;
  10669. return this;
  10670. }
  10671. public Builder ClearStringPieceField() {
  10672. result.hasStringPieceField = false;
  10673. result.stringPieceField_ = "";
  10674. return this;
  10675. }
  10676. // optional string CordField = 6 [ctype = CORD];
  10677. public bool HasCordField {
  10678. get { return result.HasCordField; }
  10679. }
  10680. public string CordField {
  10681. get { return result.CordField; }
  10682. set { SetCordField(value); }
  10683. }
  10684. public Builder SetCordField(string value) {
  10685. result.hasCordField = true;
  10686. result.cordField_ = value;
  10687. return this;
  10688. }
  10689. public Builder ClearCordField() {
  10690. result.hasCordField = false;
  10691. result.cordField_ = "";
  10692. return this;
  10693. }
  10694. // repeated int32 RepeatedPrimitiveField = 7;
  10695. public scg::IList<int> RepeatedPrimitiveFieldList {
  10696. get { return pbc::Lists<int>.AsReadOnly(result.repeatedPrimitiveField_); }
  10697. }
  10698. public int RepeatedPrimitiveFieldCount {
  10699. get { return result.RepeatedPrimitiveFieldCount; }
  10700. }
  10701. public int GetRepeatedPrimitiveField(int index) {
  10702. return result.GetRepeatedPrimitiveField(index);
  10703. }
  10704. public Builder SetRepeatedPrimitiveField(int index, int value) {
  10705. result.repeatedPrimitiveField_[index] = value;
  10706. return this;
  10707. }
  10708. public Builder AddRepeatedPrimitiveField(int value) {
  10709. if (result.repeatedPrimitiveField_.Count == 0) {
  10710. result.repeatedPrimitiveField_ = new scg::List<int>();
  10711. }
  10712. result.repeatedPrimitiveField_.Add(value);
  10713. return this;
  10714. }
  10715. public Builder AddRangeRepeatedPrimitiveField(scg::IEnumerable<int> values) {
  10716. if (result.repeatedPrimitiveField_.Count == 0) {
  10717. result.repeatedPrimitiveField_ = new scg::List<int>();
  10718. }
  10719. base.AddRange(values, result.repeatedPrimitiveField_);
  10720. return this;
  10721. }
  10722. public Builder ClearRepeatedPrimitiveField() {
  10723. result.repeatedPrimitiveField_ = pbc::Lists<int>.Empty;
  10724. return this;
  10725. }
  10726. // repeated string RepeatedStringField = 8;
  10727. public scg::IList<string> RepeatedStringFieldList {
  10728. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringField_); }
  10729. }
  10730. public int RepeatedStringFieldCount {
  10731. get { return result.RepeatedStringFieldCount; }
  10732. }
  10733. public string GetRepeatedStringField(int index) {
  10734. return result.GetRepeatedStringField(index);
  10735. }
  10736. public Builder SetRepeatedStringField(int index, string value) {
  10737. result.repeatedStringField_[index] = value;
  10738. return this;
  10739. }
  10740. public Builder AddRepeatedStringField(string value) {
  10741. if (result.repeatedStringField_.Count == 0) {
  10742. result.repeatedStringField_ = new scg::List<string>();
  10743. }
  10744. result.repeatedStringField_.Add(value);
  10745. return this;
  10746. }
  10747. public Builder AddRangeRepeatedStringField(scg::IEnumerable<string> values) {
  10748. if (result.repeatedStringField_.Count == 0) {
  10749. result.repeatedStringField_ = new scg::List<string>();
  10750. }
  10751. base.AddRange(values, result.repeatedStringField_);
  10752. return this;
  10753. }
  10754. public Builder ClearRepeatedStringField() {
  10755. result.repeatedStringField_ = pbc::Lists<string>.Empty;
  10756. return this;
  10757. }
  10758. // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
  10759. public scg::IList<self::ForeignEnum> RepeatedEnumFieldList {
  10760. get { return pbc::Lists.AsReadOnly(result.repeatedEnumField_); }
  10761. }
  10762. public int RepeatedEnumFieldCount {
  10763. get { return result.RepeatedEnumFieldCount; }
  10764. }
  10765. public self::ForeignEnum GetRepeatedEnumField(int index) {
  10766. return result.GetRepeatedEnumField(index);
  10767. }
  10768. public Builder SetRepeatedEnumField(int index, self::ForeignEnum value) {
  10769. result.repeatedEnumField_[index] = value;
  10770. return this;
  10771. }
  10772. public Builder AddRepeatedEnumField(self::ForeignEnum value) {
  10773. if (result.repeatedEnumField_.Count == 0) {
  10774. result.repeatedEnumField_ = new scg::List<self::ForeignEnum>();
  10775. }
  10776. result.repeatedEnumField_.Add(value);
  10777. return this;
  10778. }
  10779. public Builder AddRangeRepeatedEnumField(scg::IEnumerable<self::ForeignEnum> values) {
  10780. if (result.repeatedEnumField_.Count == 0) {
  10781. result.repeatedEnumField_ = new scg::List<self::ForeignEnum>();
  10782. }
  10783. base.AddRange(values, result.repeatedEnumField_);
  10784. return this;
  10785. }
  10786. public Builder ClearRepeatedEnumField() {
  10787. result.repeatedEnumField_ = pbc::Lists<self::ForeignEnum>.Empty;
  10788. return this;
  10789. }
  10790. // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
  10791. public scg::IList<self::ForeignMessage> RepeatedMessageFieldList {
  10792. get { return pbc::Lists.AsReadOnly(result.repeatedMessageField_); }
  10793. }
  10794. public int RepeatedMessageFieldCount {
  10795. get { return result.RepeatedMessageFieldCount; }
  10796. }
  10797. public self::ForeignMessage GetRepeatedMessageField(int index) {
  10798. return result.GetRepeatedMessageField(index);
  10799. }
  10800. public Builder SetRepeatedMessageField(int index, self::ForeignMessage value) {
  10801. result.repeatedMessageField_[index] = value;
  10802. return this;
  10803. }
  10804. public Builder SetRepeatedMessageField(int index, self::ForeignMessage.Builder builderForValue) {
  10805. result.repeatedMessageField_[index] = builderForValue.Build();
  10806. return this;
  10807. }
  10808. public Builder AddRepeatedMessageField(self::ForeignMessage value) {
  10809. if (result.repeatedMessageField_ == pbc::Lists<self::ForeignMessage>.Empty) {
  10810. result.repeatedMessageField_ = new scg::List<self::ForeignMessage>();
  10811. }
  10812. result.repeatedMessageField_.Add(value);
  10813. return this;
  10814. }
  10815. public Builder AddRepeatedMessageField(self::ForeignMessage.Builder builderForValue) {
  10816. if (result.repeatedMessageField_ == pbc::Lists<self::ForeignMessage>.Empty) {
  10817. result.repeatedMessageField_ = new scg::List<self::ForeignMessage>();
  10818. }
  10819. result.repeatedMessageField_.Add(builderForValue.Build());
  10820. return this;
  10821. }
  10822. public Builder AddRangeRepeatedMessageField(scg::IEnumerable<self::ForeignMessage> values) {
  10823. if (result.repeatedMessageField_ == pbc::Lists<self::ForeignMessage>.Empty) {
  10824. result.repeatedMessageField_ = new scg::List<self::ForeignMessage>();
  10825. }
  10826. base.AddRange(values, result.repeatedMessageField_);
  10827. return this;
  10828. }
  10829. public Builder ClearRepeatedMessageField() {
  10830. result.repeatedMessageField_ = pbc::Lists<self::ForeignMessage>.Empty;
  10831. return this;
  10832. }
  10833. // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
  10834. public scg::IList<string> RepeatedStringPieceFieldList {
  10835. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringPieceField_); }
  10836. }
  10837. public int RepeatedStringPieceFieldCount {
  10838. get { return result.RepeatedStringPieceFieldCount; }
  10839. }
  10840. public string GetRepeatedStringPieceField(int index) {
  10841. return result.GetRepeatedStringPieceField(index);
  10842. }
  10843. public Builder SetRepeatedStringPieceField(int index, string value) {
  10844. result.repeatedStringPieceField_[index] = value;
  10845. return this;
  10846. }
  10847. public Builder AddRepeatedStringPieceField(string value) {
  10848. if (result.repeatedStringPieceField_.Count == 0) {
  10849. result.repeatedStringPieceField_ = new scg::List<string>();
  10850. }
  10851. result.repeatedStringPieceField_.Add(value);
  10852. return this;
  10853. }
  10854. public Builder AddRangeRepeatedStringPieceField(scg::IEnumerable<string> values) {
  10855. if (result.repeatedStringPieceField_.Count == 0) {
  10856. result.repeatedStringPieceField_ = new scg::List<string>();
  10857. }
  10858. base.AddRange(values, result.repeatedStringPieceField_);
  10859. return this;
  10860. }
  10861. public Builder ClearRepeatedStringPieceField() {
  10862. result.repeatedStringPieceField_ = pbc::Lists<string>.Empty;
  10863. return this;
  10864. }
  10865. // repeated string RepeatedCordField = 12 [ctype = CORD];
  10866. public scg::IList<string> RepeatedCordFieldList {
  10867. get { return pbc::Lists<string>.AsReadOnly(result.repeatedCordField_); }
  10868. }
  10869. public int RepeatedCordFieldCount {
  10870. get { return result.RepeatedCordFieldCount; }
  10871. }
  10872. public string GetRepeatedCordField(int index) {
  10873. return result.GetRepeatedCordField(index);
  10874. }
  10875. public Builder SetRepeatedCordField(int index, string value) {
  10876. result.repeatedCordField_[index] = value;
  10877. return this;
  10878. }
  10879. public Builder AddRepeatedCordField(string value) {
  10880. if (result.repeatedCordField_.Count == 0) {
  10881. result.repeatedCordField_ = new scg::List<string>();
  10882. }
  10883. result.repeatedCordField_.Add(value);
  10884. return this;
  10885. }
  10886. public Builder AddRangeRepeatedCordField(scg::IEnumerable<string> values) {
  10887. if (result.repeatedCordField_.Count == 0) {
  10888. result.repeatedCordField_ = new scg::List<string>();
  10889. }
  10890. base.AddRange(values, result.repeatedCordField_);
  10891. return this;
  10892. }
  10893. public Builder ClearRepeatedCordField() {
  10894. result.repeatedCordField_ = pbc::Lists<string>.Empty;
  10895. return this;
  10896. }
  10897. }
  10898. }
  10899. public sealed partial class TestFieldOrderings : pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder> {
  10900. // Use TestFieldOrderings.CreateBuilder() to construct.
  10901. private TestFieldOrderings() {}
  10902. private static readonly TestFieldOrderings defaultInstance = new TestFieldOrderings();
  10903. public static TestFieldOrderings DefaultInstance {
  10904. get { return defaultInstance; }
  10905. }
  10906. public override TestFieldOrderings DefaultInstanceForType {
  10907. get { return defaultInstance; }
  10908. }
  10909. public static pbd::MessageDescriptor Descriptor {
  10910. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__Descriptor; }
  10911. }
  10912. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  10913. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; }
  10914. }
  10915. // optional string my_string = 11;
  10916. private bool hasMyString;
  10917. private string myString_ = "";
  10918. public bool HasMyString {
  10919. get { return hasMyString; }
  10920. }
  10921. public string MyString {
  10922. get { return myString_; }
  10923. }
  10924. // optional int64 my_int = 1;
  10925. private bool hasMyInt;
  10926. private long myInt_ = 0L;
  10927. public bool HasMyInt {
  10928. get { return hasMyInt; }
  10929. }
  10930. public long MyInt {
  10931. get { return myInt_; }
  10932. }
  10933. // optional float my_float = 101;
  10934. private bool hasMyFloat;
  10935. private float myFloat_ = 0F;
  10936. public bool HasMyFloat {
  10937. get { return hasMyFloat; }
  10938. }
  10939. public float MyFloat {
  10940. get { return myFloat_; }
  10941. }
  10942. public override bool IsInitialized {
  10943. get {
  10944. if (!ExtensionsAreInitialized) return false;
  10945. return true;
  10946. }
  10947. }
  10948. public override void WriteTo(pb::CodedOutputStream output) {
  10949. pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  10950. if (HasMyInt) {
  10951. output.WriteInt64(1, MyInt);
  10952. }
  10953. extensionWriter.WriteUntil(11, output);
  10954. if (HasMyString) {
  10955. output.WriteString(11, MyString);
  10956. }
  10957. extensionWriter.WriteUntil(101, output);
  10958. if (HasMyFloat) {
  10959. output.WriteFloat(101, MyFloat);
  10960. }
  10961. UnknownFields.WriteTo(output);
  10962. }
  10963. private int memoizedSerializedSize = -1;
  10964. public override int SerializedSize {
  10965. get {
  10966. int size = memoizedSerializedSize;
  10967. if (size != -1) return size;
  10968. size = 0;
  10969. if (HasMyInt) {
  10970. size += pb::CodedOutputStream.ComputeInt64Size(1, MyInt);
  10971. }
  10972. if (HasMyString) {
  10973. size += pb::CodedOutputStream.ComputeStringSize(11, MyString);
  10974. }
  10975. if (HasMyFloat) {
  10976. size += pb::CodedOutputStream.ComputeFloatSize(101, MyFloat);
  10977. }
  10978. size += ExtensionsSerializedSize;
  10979. size += UnknownFields.SerializedSize;
  10980. memoizedSerializedSize = size;
  10981. return size;
  10982. }
  10983. }
  10984. public static self::TestFieldOrderings ParseFrom(pb::ByteString data) {
  10985. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10986. }
  10987. public static self::TestFieldOrderings ParseFrom(pb::ByteString data,
  10988. pb::ExtensionRegistry extensionRegistry) {
  10989. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10990. .BuildParsed();
  10991. }
  10992. public static self::TestFieldOrderings ParseFrom(byte[] data) {
  10993. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10994. }
  10995. public static self::TestFieldOrderings parseFrom(byte[] data,
  10996. pb::ExtensionRegistry extensionRegistry) {
  10997. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10998. .BuildParsed();
  10999. }
  11000. public static self::TestFieldOrderings ParseFrom(global::System.IO.Stream input) {
  11001. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11002. }
  11003. public static self::TestFieldOrderings ParseFrom(
  11004. global::System.IO.Stream input,
  11005. pb::ExtensionRegistry extensionRegistry) {
  11006. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11007. .BuildParsed();
  11008. }
  11009. public static self::TestFieldOrderings ParseFrom(pb::CodedInputStream input) {
  11010. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11011. }
  11012. public static self::TestFieldOrderings ParseFrom(pb::CodedInputStream input,
  11013. pb::ExtensionRegistry extensionRegistry) {
  11014. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11015. .BuildParsed();
  11016. }
  11017. public static Builder CreateBuilder() { return new Builder(); }
  11018. public override IBuilder<self::TestFieldOrderings> CreateBuilderForType() { return new Builder(); }
  11019. public static Builder CreateBuilder(self::TestFieldOrderings prototype) {
  11020. return (Builder) new Builder().MergeFrom(prototype);
  11021. }
  11022. public sealed partial class Builder : pb::ExtendableBuilder<self::TestFieldOrderings, self::TestFieldOrderings.Builder> {
  11023. // Construct using self::TestFieldOrderings.CreateBuilder()
  11024. internal Builder() {}
  11025. self::TestFieldOrderings result = new self::TestFieldOrderings();
  11026. protected override self::TestFieldOrderings MessageBeingBuilt {
  11027. get { return result; }
  11028. }
  11029. public override IBuilder<self::TestFieldOrderings> Clear() {
  11030. result = new self::TestFieldOrderings();
  11031. return this;
  11032. }
  11033. public override IBuilder<self::TestFieldOrderings> Clone() {
  11034. return new Builder().MergeFrom(result);
  11035. }
  11036. public override pbd::MessageDescriptor DescriptorForType {
  11037. get { return self::TestFieldOrderings.Descriptor; }
  11038. }
  11039. public override self::TestFieldOrderings DefaultInstanceForType {
  11040. get { return self::TestFieldOrderings.DefaultInstance; }
  11041. }
  11042. public override self::TestFieldOrderings BuildPartial() {
  11043. self::TestFieldOrderings returnMe = result;
  11044. result = null;
  11045. return returnMe;
  11046. }
  11047. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  11048. return MergeFrom(data, extensionRegistry);
  11049. }
  11050. public override IBuilder MergeFrom(pb::IMessage other) {
  11051. if (other is self::TestFieldOrderings) {
  11052. return MergeFrom((self::TestFieldOrderings) other);
  11053. } else {
  11054. base.MergeFrom(other);
  11055. return this;
  11056. }
  11057. }
  11058. public override IBuilder<self::TestFieldOrderings> MergeFrom(self::TestFieldOrderings other) {
  11059. if (other == self::TestFieldOrderings.DefaultInstance) return this;
  11060. if (other.HasMyString) {
  11061. MyString = other.MyString;
  11062. }
  11063. if (other.HasMyInt) {
  11064. MyInt = other.MyInt;
  11065. }
  11066. if (other.HasMyFloat) {
  11067. MyFloat = other.MyFloat;
  11068. }
  11069. this.MergeUnknownFields(other.UnknownFields);
  11070. return this;
  11071. }
  11072. public override IBuilder<self::TestFieldOrderings> MergeFrom(pb::CodedInputStream input) {
  11073. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11074. }
  11075. public override IBuilder<self::TestFieldOrderings> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11076. pb::UnknownFieldSet.Builder unknownFields =
  11077. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11078. while (true) {
  11079. uint tag = input.ReadTag();
  11080. switch (tag) {
  11081. case 0:
  11082. this.UnknownFields = unknownFields.Build();
  11083. return this;
  11084. default: {
  11085. if (!ParseUnknownField(input, unknownFields,
  11086. extensionRegistry, tag)) {
  11087. this.UnknownFields = unknownFields.Build();
  11088. return this;
  11089. }
  11090. break;
  11091. }
  11092. case 8: {
  11093. MyInt = input.ReadInt64();
  11094. break;
  11095. }
  11096. case 90: {
  11097. MyString = input.ReadString();
  11098. break;
  11099. }
  11100. case 813: {
  11101. MyFloat = input.ReadFloat();
  11102. break;
  11103. }
  11104. }
  11105. }
  11106. }
  11107. // optional string my_string = 11;
  11108. public bool HasMyString {
  11109. get { return result.HasMyString; }
  11110. }
  11111. public string MyString {
  11112. get { return result.MyString; }
  11113. set { SetMyString(value); }
  11114. }
  11115. public Builder SetMyString(string value) {
  11116. result.hasMyString = true;
  11117. result.myString_ = value;
  11118. return this;
  11119. }
  11120. public Builder ClearMyString() {
  11121. result.hasMyString = false;
  11122. result.myString_ = "";
  11123. return this;
  11124. }
  11125. // optional int64 my_int = 1;
  11126. public bool HasMyInt {
  11127. get { return result.HasMyInt; }
  11128. }
  11129. public long MyInt {
  11130. get { return result.MyInt; }
  11131. set { SetMyInt(value); }
  11132. }
  11133. public Builder SetMyInt(long value) {
  11134. result.hasMyInt = true;
  11135. result.myInt_ = value;
  11136. return this;
  11137. }
  11138. public Builder ClearMyInt() {
  11139. result.hasMyInt = false;
  11140. result.myInt_ = 0L;
  11141. return this;
  11142. }
  11143. // optional float my_float = 101;
  11144. public bool HasMyFloat {
  11145. get { return result.HasMyFloat; }
  11146. }
  11147. public float MyFloat {
  11148. get { return result.MyFloat; }
  11149. set { SetMyFloat(value); }
  11150. }
  11151. public Builder SetMyFloat(float value) {
  11152. result.hasMyFloat = true;
  11153. result.myFloat_ = value;
  11154. return this;
  11155. }
  11156. public Builder ClearMyFloat() {
  11157. result.hasMyFloat = false;
  11158. result.myFloat_ = 0F;
  11159. return this;
  11160. }
  11161. }
  11162. }
  11163. public sealed partial class TestExtremeDefaultValues : pb::GeneratedMessage<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> {
  11164. // Use TestExtremeDefaultValues.CreateBuilder() to construct.
  11165. private TestExtremeDefaultValues() {}
  11166. private static readonly TestExtremeDefaultValues defaultInstance = new TestExtremeDefaultValues();
  11167. public static TestExtremeDefaultValues DefaultInstance {
  11168. get { return defaultInstance; }
  11169. }
  11170. public override TestExtremeDefaultValues DefaultInstanceForType {
  11171. get { return defaultInstance; }
  11172. }
  11173. public static pbd::MessageDescriptor Descriptor {
  11174. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor; }
  11175. }
  11176. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11177. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable; }
  11178. }
  11179. // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
  11180. private bool hasEscapedBytes;
  11181. private pb::ByteString escapedBytes_ = ((pb::ByteString) self::TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue);
  11182. public bool HasEscapedBytes {
  11183. get { return hasEscapedBytes; }
  11184. }
  11185. public pb::ByteString EscapedBytes {
  11186. get { return escapedBytes_; }
  11187. }
  11188. // optional uint32 large_uint32 = 2 [default = 4294967295];
  11189. private bool hasLargeUint32;
  11190. private uint largeUint32_ = 4294967295;
  11191. public bool HasLargeUint32 {
  11192. get { return hasLargeUint32; }
  11193. }
  11194. public uint LargeUint32 {
  11195. get { return largeUint32_; }
  11196. }
  11197. // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
  11198. private bool hasLargeUint64;
  11199. private ulong largeUint64_ = 18446744073709551615UL;
  11200. public bool HasLargeUint64 {
  11201. get { return hasLargeUint64; }
  11202. }
  11203. public ulong LargeUint64 {
  11204. get { return largeUint64_; }
  11205. }
  11206. // optional int32 small_int32 = 4 [default = -2147483647];
  11207. private bool hasSmallInt32;
  11208. private int smallInt32_ = -2147483647;
  11209. public bool HasSmallInt32 {
  11210. get { return hasSmallInt32; }
  11211. }
  11212. public int SmallInt32 {
  11213. get { return smallInt32_; }
  11214. }
  11215. // optional int64 small_int64 = 5 [default = -9223372036854775807];
  11216. private bool hasSmallInt64;
  11217. private long smallInt64_ = -9223372036854775807L;
  11218. public bool HasSmallInt64 {
  11219. get { return hasSmallInt64; }
  11220. }
  11221. public long SmallInt64 {
  11222. get { return smallInt64_; }
  11223. }
  11224. // optional string utf8_string = 6 [default = "\341\210\264"];
  11225. private bool hasUtf8String;
  11226. private string utf8String_ = ((string) self::TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue);
  11227. public bool HasUtf8String {
  11228. get { return hasUtf8String; }
  11229. }
  11230. public string Utf8String {
  11231. get { return utf8String_; }
  11232. }
  11233. public override bool IsInitialized {
  11234. get {
  11235. return true;
  11236. }
  11237. }
  11238. public override void WriteTo(pb::CodedOutputStream output) {
  11239. if (HasEscapedBytes) {
  11240. output.WriteBytes(1, EscapedBytes);
  11241. }
  11242. if (HasLargeUint32) {
  11243. output.WriteUInt32(2, LargeUint32);
  11244. }
  11245. if (HasLargeUint64) {
  11246. output.WriteUInt64(3, LargeUint64);
  11247. }
  11248. if (HasSmallInt32) {
  11249. output.WriteInt32(4, SmallInt32);
  11250. }
  11251. if (HasSmallInt64) {
  11252. output.WriteInt64(5, SmallInt64);
  11253. }
  11254. if (HasUtf8String) {
  11255. output.WriteString(6, Utf8String);
  11256. }
  11257. UnknownFields.WriteTo(output);
  11258. }
  11259. private int memoizedSerializedSize = -1;
  11260. public override int SerializedSize {
  11261. get {
  11262. int size = memoizedSerializedSize;
  11263. if (size != -1) return size;
  11264. size = 0;
  11265. if (HasEscapedBytes) {
  11266. size += pb::CodedOutputStream.ComputeBytesSize(1, EscapedBytes);
  11267. }
  11268. if (HasLargeUint32) {
  11269. size += pb::CodedOutputStream.ComputeUInt32Size(2, LargeUint32);
  11270. }
  11271. if (HasLargeUint64) {
  11272. size += pb::CodedOutputStream.ComputeUInt64Size(3, LargeUint64);
  11273. }
  11274. if (HasSmallInt32) {
  11275. size += pb::CodedOutputStream.ComputeInt32Size(4, SmallInt32);
  11276. }
  11277. if (HasSmallInt64) {
  11278. size += pb::CodedOutputStream.ComputeInt64Size(5, SmallInt64);
  11279. }
  11280. if (HasUtf8String) {
  11281. size += pb::CodedOutputStream.ComputeStringSize(6, Utf8String);
  11282. }
  11283. size += UnknownFields.SerializedSize;
  11284. memoizedSerializedSize = size;
  11285. return size;
  11286. }
  11287. }
  11288. public static self::TestExtremeDefaultValues ParseFrom(pb::ByteString data) {
  11289. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11290. }
  11291. public static self::TestExtremeDefaultValues ParseFrom(pb::ByteString data,
  11292. pb::ExtensionRegistry extensionRegistry) {
  11293. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11294. .BuildParsed();
  11295. }
  11296. public static self::TestExtremeDefaultValues ParseFrom(byte[] data) {
  11297. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11298. }
  11299. public static self::TestExtremeDefaultValues parseFrom(byte[] data,
  11300. pb::ExtensionRegistry extensionRegistry) {
  11301. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11302. .BuildParsed();
  11303. }
  11304. public static self::TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input) {
  11305. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11306. }
  11307. public static self::TestExtremeDefaultValues ParseFrom(
  11308. global::System.IO.Stream input,
  11309. pb::ExtensionRegistry extensionRegistry) {
  11310. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11311. .BuildParsed();
  11312. }
  11313. public static self::TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input) {
  11314. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11315. }
  11316. public static self::TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input,
  11317. pb::ExtensionRegistry extensionRegistry) {
  11318. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11319. .BuildParsed();
  11320. }
  11321. public static Builder CreateBuilder() { return new Builder(); }
  11322. public override IBuilder<self::TestExtremeDefaultValues> CreateBuilderForType() { return new Builder(); }
  11323. public static Builder CreateBuilder(self::TestExtremeDefaultValues prototype) {
  11324. return (Builder) new Builder().MergeFrom(prototype);
  11325. }
  11326. public sealed partial class Builder : pb::GeneratedBuilder<self::TestExtremeDefaultValues, Builder> {
  11327. // Construct using self::TestExtremeDefaultValues.CreateBuilder()
  11328. internal Builder() {}
  11329. self::TestExtremeDefaultValues result = new self::TestExtremeDefaultValues();
  11330. protected override self::TestExtremeDefaultValues MessageBeingBuilt {
  11331. get { return result; }
  11332. }
  11333. public override IBuilder<self::TestExtremeDefaultValues> Clear() {
  11334. result = new self::TestExtremeDefaultValues();
  11335. return this;
  11336. }
  11337. public override IBuilder<self::TestExtremeDefaultValues> Clone() {
  11338. return new Builder().MergeFrom(result);
  11339. }
  11340. public override pbd::MessageDescriptor DescriptorForType {
  11341. get { return self::TestExtremeDefaultValues.Descriptor; }
  11342. }
  11343. public override self::TestExtremeDefaultValues DefaultInstanceForType {
  11344. get { return self::TestExtremeDefaultValues.DefaultInstance; }
  11345. }
  11346. public override self::TestExtremeDefaultValues BuildPartial() {
  11347. self::TestExtremeDefaultValues returnMe = result;
  11348. result = null;
  11349. return returnMe;
  11350. }
  11351. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  11352. return MergeFrom(data, extensionRegistry);
  11353. }
  11354. public override IBuilder MergeFrom(pb::IMessage other) {
  11355. if (other is self::TestExtremeDefaultValues) {
  11356. return MergeFrom((self::TestExtremeDefaultValues) other);
  11357. } else {
  11358. base.MergeFrom(other);
  11359. return this;
  11360. }
  11361. }
  11362. public override IBuilder<self::TestExtremeDefaultValues> MergeFrom(self::TestExtremeDefaultValues other) {
  11363. if (other == self::TestExtremeDefaultValues.DefaultInstance) return this;
  11364. if (other.HasEscapedBytes) {
  11365. EscapedBytes = other.EscapedBytes;
  11366. }
  11367. if (other.HasLargeUint32) {
  11368. LargeUint32 = other.LargeUint32;
  11369. }
  11370. if (other.HasLargeUint64) {
  11371. LargeUint64 = other.LargeUint64;
  11372. }
  11373. if (other.HasSmallInt32) {
  11374. SmallInt32 = other.SmallInt32;
  11375. }
  11376. if (other.HasSmallInt64) {
  11377. SmallInt64 = other.SmallInt64;
  11378. }
  11379. if (other.HasUtf8String) {
  11380. Utf8String = other.Utf8String;
  11381. }
  11382. this.MergeUnknownFields(other.UnknownFields);
  11383. return this;
  11384. }
  11385. public override IBuilder<self::TestExtremeDefaultValues> MergeFrom(pb::CodedInputStream input) {
  11386. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11387. }
  11388. public override IBuilder<self::TestExtremeDefaultValues> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11389. pb::UnknownFieldSet.Builder unknownFields =
  11390. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11391. while (true) {
  11392. uint tag = input.ReadTag();
  11393. switch (tag) {
  11394. case 0:
  11395. this.UnknownFields = unknownFields.Build();
  11396. return this;
  11397. default: {
  11398. if (!ParseUnknownField(input, unknownFields,
  11399. extensionRegistry, tag)) {
  11400. this.UnknownFields = unknownFields.Build();
  11401. return this;
  11402. }
  11403. break;
  11404. }
  11405. case 10: {
  11406. EscapedBytes = input.ReadBytes();
  11407. break;
  11408. }
  11409. case 16: {
  11410. LargeUint32 = input.ReadUInt32();
  11411. break;
  11412. }
  11413. case 24: {
  11414. LargeUint64 = input.ReadUInt64();
  11415. break;
  11416. }
  11417. case 32: {
  11418. SmallInt32 = input.ReadInt32();
  11419. break;
  11420. }
  11421. case 40: {
  11422. SmallInt64 = input.ReadInt64();
  11423. break;
  11424. }
  11425. case 50: {
  11426. Utf8String = input.ReadString();
  11427. break;
  11428. }
  11429. }
  11430. }
  11431. }
  11432. // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
  11433. public bool HasEscapedBytes {
  11434. get { return result.HasEscapedBytes; }
  11435. }
  11436. public pb::ByteString EscapedBytes {
  11437. get { return result.EscapedBytes; }
  11438. set { SetEscapedBytes(value); }
  11439. }
  11440. public Builder SetEscapedBytes(pb::ByteString value) {
  11441. result.hasEscapedBytes = true;
  11442. result.escapedBytes_ = value;
  11443. return this;
  11444. }
  11445. public Builder ClearEscapedBytes() {
  11446. result.hasEscapedBytes = false;
  11447. result.escapedBytes_ = ((pb::ByteString) self::TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue);
  11448. return this;
  11449. }
  11450. // optional uint32 large_uint32 = 2 [default = 4294967295];
  11451. public bool HasLargeUint32 {
  11452. get { return result.HasLargeUint32; }
  11453. }
  11454. public uint LargeUint32 {
  11455. get { return result.LargeUint32; }
  11456. set { SetLargeUint32(value); }
  11457. }
  11458. public Builder SetLargeUint32(uint value) {
  11459. result.hasLargeUint32 = true;
  11460. result.largeUint32_ = value;
  11461. return this;
  11462. }
  11463. public Builder ClearLargeUint32() {
  11464. result.hasLargeUint32 = false;
  11465. result.largeUint32_ = 4294967295;
  11466. return this;
  11467. }
  11468. // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
  11469. public bool HasLargeUint64 {
  11470. get { return result.HasLargeUint64; }
  11471. }
  11472. public ulong LargeUint64 {
  11473. get { return result.LargeUint64; }
  11474. set { SetLargeUint64(value); }
  11475. }
  11476. public Builder SetLargeUint64(ulong value) {
  11477. result.hasLargeUint64 = true;
  11478. result.largeUint64_ = value;
  11479. return this;
  11480. }
  11481. public Builder ClearLargeUint64() {
  11482. result.hasLargeUint64 = false;
  11483. result.largeUint64_ = 18446744073709551615UL;
  11484. return this;
  11485. }
  11486. // optional int32 small_int32 = 4 [default = -2147483647];
  11487. public bool HasSmallInt32 {
  11488. get { return result.HasSmallInt32; }
  11489. }
  11490. public int SmallInt32 {
  11491. get { return result.SmallInt32; }
  11492. set { SetSmallInt32(value); }
  11493. }
  11494. public Builder SetSmallInt32(int value) {
  11495. result.hasSmallInt32 = true;
  11496. result.smallInt32_ = value;
  11497. return this;
  11498. }
  11499. public Builder ClearSmallInt32() {
  11500. result.hasSmallInt32 = false;
  11501. result.smallInt32_ = -2147483647;
  11502. return this;
  11503. }
  11504. // optional int64 small_int64 = 5 [default = -9223372036854775807];
  11505. public bool HasSmallInt64 {
  11506. get { return result.HasSmallInt64; }
  11507. }
  11508. public long SmallInt64 {
  11509. get { return result.SmallInt64; }
  11510. set { SetSmallInt64(value); }
  11511. }
  11512. public Builder SetSmallInt64(long value) {
  11513. result.hasSmallInt64 = true;
  11514. result.smallInt64_ = value;
  11515. return this;
  11516. }
  11517. public Builder ClearSmallInt64() {
  11518. result.hasSmallInt64 = false;
  11519. result.smallInt64_ = -9223372036854775807L;
  11520. return this;
  11521. }
  11522. // optional string utf8_string = 6 [default = "\341\210\264"];
  11523. public bool HasUtf8String {
  11524. get { return result.HasUtf8String; }
  11525. }
  11526. public string Utf8String {
  11527. get { return result.Utf8String; }
  11528. set { SetUtf8String(value); }
  11529. }
  11530. public Builder SetUtf8String(string value) {
  11531. result.hasUtf8String = true;
  11532. result.utf8String_ = value;
  11533. return this;
  11534. }
  11535. public Builder ClearUtf8String() {
  11536. result.hasUtf8String = false;
  11537. result.utf8String_ = ((string) self::TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue);
  11538. return this;
  11539. }
  11540. }
  11541. }
  11542. public sealed partial class FooRequest : pb::GeneratedMessage<FooRequest, FooRequest.Builder> {
  11543. // Use FooRequest.CreateBuilder() to construct.
  11544. private FooRequest() {}
  11545. private static readonly FooRequest defaultInstance = new FooRequest();
  11546. public static FooRequest DefaultInstance {
  11547. get { return defaultInstance; }
  11548. }
  11549. public override FooRequest DefaultInstanceForType {
  11550. get { return defaultInstance; }
  11551. }
  11552. public static pbd::MessageDescriptor Descriptor {
  11553. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__Descriptor; }
  11554. }
  11555. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11556. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; }
  11557. }
  11558. public override bool IsInitialized {
  11559. get {
  11560. return true;
  11561. }
  11562. }
  11563. public override void WriteTo(pb::CodedOutputStream output) {
  11564. UnknownFields.WriteTo(output);
  11565. }
  11566. private int memoizedSerializedSize = -1;
  11567. public override int SerializedSize {
  11568. get {
  11569. int size = memoizedSerializedSize;
  11570. if (size != -1) return size;
  11571. size = 0;
  11572. size += UnknownFields.SerializedSize;
  11573. memoizedSerializedSize = size;
  11574. return size;
  11575. }
  11576. }
  11577. public static self::FooRequest ParseFrom(pb::ByteString data) {
  11578. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11579. }
  11580. public static self::FooRequest ParseFrom(pb::ByteString data,
  11581. pb::ExtensionRegistry extensionRegistry) {
  11582. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11583. .BuildParsed();
  11584. }
  11585. public static self::FooRequest ParseFrom(byte[] data) {
  11586. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11587. }
  11588. public static self::FooRequest parseFrom(byte[] data,
  11589. pb::ExtensionRegistry extensionRegistry) {
  11590. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11591. .BuildParsed();
  11592. }
  11593. public static self::FooRequest ParseFrom(global::System.IO.Stream input) {
  11594. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11595. }
  11596. public static self::FooRequest ParseFrom(
  11597. global::System.IO.Stream input,
  11598. pb::ExtensionRegistry extensionRegistry) {
  11599. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11600. .BuildParsed();
  11601. }
  11602. public static self::FooRequest ParseFrom(pb::CodedInputStream input) {
  11603. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11604. }
  11605. public static self::FooRequest ParseFrom(pb::CodedInputStream input,
  11606. pb::ExtensionRegistry extensionRegistry) {
  11607. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11608. .BuildParsed();
  11609. }
  11610. public static Builder CreateBuilder() { return new Builder(); }
  11611. public override IBuilder<self::FooRequest> CreateBuilderForType() { return new Builder(); }
  11612. public static Builder CreateBuilder(self::FooRequest prototype) {
  11613. return (Builder) new Builder().MergeFrom(prototype);
  11614. }
  11615. public sealed partial class Builder : pb::GeneratedBuilder<self::FooRequest, Builder> {
  11616. // Construct using self::FooRequest.CreateBuilder()
  11617. internal Builder() {}
  11618. self::FooRequest result = new self::FooRequest();
  11619. protected override self::FooRequest MessageBeingBuilt {
  11620. get { return result; }
  11621. }
  11622. public override IBuilder<self::FooRequest> Clear() {
  11623. result = new self::FooRequest();
  11624. return this;
  11625. }
  11626. public override IBuilder<self::FooRequest> Clone() {
  11627. return new Builder().MergeFrom(result);
  11628. }
  11629. public override pbd::MessageDescriptor DescriptorForType {
  11630. get { return self::FooRequest.Descriptor; }
  11631. }
  11632. public override self::FooRequest DefaultInstanceForType {
  11633. get { return self::FooRequest.DefaultInstance; }
  11634. }
  11635. public override self::FooRequest BuildPartial() {
  11636. self::FooRequest returnMe = result;
  11637. result = null;
  11638. return returnMe;
  11639. }
  11640. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  11641. return MergeFrom(data, extensionRegistry);
  11642. }
  11643. public override IBuilder MergeFrom(pb::IMessage other) {
  11644. if (other is self::FooRequest) {
  11645. return MergeFrom((self::FooRequest) other);
  11646. } else {
  11647. base.MergeFrom(other);
  11648. return this;
  11649. }
  11650. }
  11651. public override IBuilder<self::FooRequest> MergeFrom(self::FooRequest other) {
  11652. if (other == self::FooRequest.DefaultInstance) return this;
  11653. this.MergeUnknownFields(other.UnknownFields);
  11654. return this;
  11655. }
  11656. public override IBuilder<self::FooRequest> MergeFrom(pb::CodedInputStream input) {
  11657. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11658. }
  11659. public override IBuilder<self::FooRequest> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11660. pb::UnknownFieldSet.Builder unknownFields =
  11661. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11662. while (true) {
  11663. uint tag = input.ReadTag();
  11664. switch (tag) {
  11665. case 0:
  11666. this.UnknownFields = unknownFields.Build();
  11667. return this;
  11668. default: {
  11669. if (!ParseUnknownField(input, unknownFields,
  11670. extensionRegistry, tag)) {
  11671. this.UnknownFields = unknownFields.Build();
  11672. return this;
  11673. }
  11674. break;
  11675. }
  11676. }
  11677. }
  11678. }
  11679. }
  11680. }
  11681. public sealed partial class FooResponse : pb::GeneratedMessage<FooResponse, FooResponse.Builder> {
  11682. // Use FooResponse.CreateBuilder() to construct.
  11683. private FooResponse() {}
  11684. private static readonly FooResponse defaultInstance = new FooResponse();
  11685. public static FooResponse DefaultInstance {
  11686. get { return defaultInstance; }
  11687. }
  11688. public override FooResponse DefaultInstanceForType {
  11689. get { return defaultInstance; }
  11690. }
  11691. public static pbd::MessageDescriptor Descriptor {
  11692. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__Descriptor; }
  11693. }
  11694. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11695. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; }
  11696. }
  11697. public override bool IsInitialized {
  11698. get {
  11699. return true;
  11700. }
  11701. }
  11702. public override void WriteTo(pb::CodedOutputStream output) {
  11703. UnknownFields.WriteTo(output);
  11704. }
  11705. private int memoizedSerializedSize = -1;
  11706. public override int SerializedSize {
  11707. get {
  11708. int size = memoizedSerializedSize;
  11709. if (size != -1) return size;
  11710. size = 0;
  11711. size += UnknownFields.SerializedSize;
  11712. memoizedSerializedSize = size;
  11713. return size;
  11714. }
  11715. }
  11716. public static self::FooResponse ParseFrom(pb::ByteString data) {
  11717. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11718. }
  11719. public static self::FooResponse ParseFrom(pb::ByteString data,
  11720. pb::ExtensionRegistry extensionRegistry) {
  11721. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11722. .BuildParsed();
  11723. }
  11724. public static self::FooResponse ParseFrom(byte[] data) {
  11725. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11726. }
  11727. public static self::FooResponse parseFrom(byte[] data,
  11728. pb::ExtensionRegistry extensionRegistry) {
  11729. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11730. .BuildParsed();
  11731. }
  11732. public static self::FooResponse ParseFrom(global::System.IO.Stream input) {
  11733. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11734. }
  11735. public static self::FooResponse ParseFrom(
  11736. global::System.IO.Stream input,
  11737. pb::ExtensionRegistry extensionRegistry) {
  11738. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11739. .BuildParsed();
  11740. }
  11741. public static self::FooResponse ParseFrom(pb::CodedInputStream input) {
  11742. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11743. }
  11744. public static self::FooResponse ParseFrom(pb::CodedInputStream input,
  11745. pb::ExtensionRegistry extensionRegistry) {
  11746. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11747. .BuildParsed();
  11748. }
  11749. public static Builder CreateBuilder() { return new Builder(); }
  11750. public override IBuilder<self::FooResponse> CreateBuilderForType() { return new Builder(); }
  11751. public static Builder CreateBuilder(self::FooResponse prototype) {
  11752. return (Builder) new Builder().MergeFrom(prototype);
  11753. }
  11754. public sealed partial class Builder : pb::GeneratedBuilder<self::FooResponse, Builder> {
  11755. // Construct using self::FooResponse.CreateBuilder()
  11756. internal Builder() {}
  11757. self::FooResponse result = new self::FooResponse();
  11758. protected override self::FooResponse MessageBeingBuilt {
  11759. get { return result; }
  11760. }
  11761. public override IBuilder<self::FooResponse> Clear() {
  11762. result = new self::FooResponse();
  11763. return this;
  11764. }
  11765. public override IBuilder<self::FooResponse> Clone() {
  11766. return new Builder().MergeFrom(result);
  11767. }
  11768. public override pbd::MessageDescriptor DescriptorForType {
  11769. get { return self::FooResponse.Descriptor; }
  11770. }
  11771. public override self::FooResponse DefaultInstanceForType {
  11772. get { return self::FooResponse.DefaultInstance; }
  11773. }
  11774. public override self::FooResponse BuildPartial() {
  11775. self::FooResponse returnMe = result;
  11776. result = null;
  11777. return returnMe;
  11778. }
  11779. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  11780. return MergeFrom(data, extensionRegistry);
  11781. }
  11782. public override IBuilder MergeFrom(pb::IMessage other) {
  11783. if (other is self::FooResponse) {
  11784. return MergeFrom((self::FooResponse) other);
  11785. } else {
  11786. base.MergeFrom(other);
  11787. return this;
  11788. }
  11789. }
  11790. public override IBuilder<self::FooResponse> MergeFrom(self::FooResponse other) {
  11791. if (other == self::FooResponse.DefaultInstance) return this;
  11792. this.MergeUnknownFields(other.UnknownFields);
  11793. return this;
  11794. }
  11795. public override IBuilder<self::FooResponse> MergeFrom(pb::CodedInputStream input) {
  11796. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11797. }
  11798. public override IBuilder<self::FooResponse> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11799. pb::UnknownFieldSet.Builder unknownFields =
  11800. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11801. while (true) {
  11802. uint tag = input.ReadTag();
  11803. switch (tag) {
  11804. case 0:
  11805. this.UnknownFields = unknownFields.Build();
  11806. return this;
  11807. default: {
  11808. if (!ParseUnknownField(input, unknownFields,
  11809. extensionRegistry, tag)) {
  11810. this.UnknownFields = unknownFields.Build();
  11811. return this;
  11812. }
  11813. break;
  11814. }
  11815. }
  11816. }
  11817. }
  11818. }
  11819. }
  11820. public sealed partial class BarRequest : pb::GeneratedMessage<BarRequest, BarRequest.Builder> {
  11821. // Use BarRequest.CreateBuilder() to construct.
  11822. private BarRequest() {}
  11823. private static readonly BarRequest defaultInstance = new BarRequest();
  11824. public static BarRequest DefaultInstance {
  11825. get { return defaultInstance; }
  11826. }
  11827. public override BarRequest DefaultInstanceForType {
  11828. get { return defaultInstance; }
  11829. }
  11830. public static pbd::MessageDescriptor Descriptor {
  11831. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__Descriptor; }
  11832. }
  11833. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11834. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; }
  11835. }
  11836. public override bool IsInitialized {
  11837. get {
  11838. return true;
  11839. }
  11840. }
  11841. public override void WriteTo(pb::CodedOutputStream output) {
  11842. UnknownFields.WriteTo(output);
  11843. }
  11844. private int memoizedSerializedSize = -1;
  11845. public override int SerializedSize {
  11846. get {
  11847. int size = memoizedSerializedSize;
  11848. if (size != -1) return size;
  11849. size = 0;
  11850. size += UnknownFields.SerializedSize;
  11851. memoizedSerializedSize = size;
  11852. return size;
  11853. }
  11854. }
  11855. public static self::BarRequest ParseFrom(pb::ByteString data) {
  11856. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11857. }
  11858. public static self::BarRequest ParseFrom(pb::ByteString data,
  11859. pb::ExtensionRegistry extensionRegistry) {
  11860. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11861. .BuildParsed();
  11862. }
  11863. public static self::BarRequest ParseFrom(byte[] data) {
  11864. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11865. }
  11866. public static self::BarRequest parseFrom(byte[] data,
  11867. pb::ExtensionRegistry extensionRegistry) {
  11868. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11869. .BuildParsed();
  11870. }
  11871. public static self::BarRequest ParseFrom(global::System.IO.Stream input) {
  11872. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11873. }
  11874. public static self::BarRequest ParseFrom(
  11875. global::System.IO.Stream input,
  11876. pb::ExtensionRegistry extensionRegistry) {
  11877. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11878. .BuildParsed();
  11879. }
  11880. public static self::BarRequest ParseFrom(pb::CodedInputStream input) {
  11881. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11882. }
  11883. public static self::BarRequest ParseFrom(pb::CodedInputStream input,
  11884. pb::ExtensionRegistry extensionRegistry) {
  11885. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11886. .BuildParsed();
  11887. }
  11888. public static Builder CreateBuilder() { return new Builder(); }
  11889. public override IBuilder<self::BarRequest> CreateBuilderForType() { return new Builder(); }
  11890. public static Builder CreateBuilder(self::BarRequest prototype) {
  11891. return (Builder) new Builder().MergeFrom(prototype);
  11892. }
  11893. public sealed partial class Builder : pb::GeneratedBuilder<self::BarRequest, Builder> {
  11894. // Construct using self::BarRequest.CreateBuilder()
  11895. internal Builder() {}
  11896. self::BarRequest result = new self::BarRequest();
  11897. protected override self::BarRequest MessageBeingBuilt {
  11898. get { return result; }
  11899. }
  11900. public override IBuilder<self::BarRequest> Clear() {
  11901. result = new self::BarRequest();
  11902. return this;
  11903. }
  11904. public override IBuilder<self::BarRequest> Clone() {
  11905. return new Builder().MergeFrom(result);
  11906. }
  11907. public override pbd::MessageDescriptor DescriptorForType {
  11908. get { return self::BarRequest.Descriptor; }
  11909. }
  11910. public override self::BarRequest DefaultInstanceForType {
  11911. get { return self::BarRequest.DefaultInstance; }
  11912. }
  11913. public override self::BarRequest BuildPartial() {
  11914. self::BarRequest returnMe = result;
  11915. result = null;
  11916. return returnMe;
  11917. }
  11918. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  11919. return MergeFrom(data, extensionRegistry);
  11920. }
  11921. public override IBuilder MergeFrom(pb::IMessage other) {
  11922. if (other is self::BarRequest) {
  11923. return MergeFrom((self::BarRequest) other);
  11924. } else {
  11925. base.MergeFrom(other);
  11926. return this;
  11927. }
  11928. }
  11929. public override IBuilder<self::BarRequest> MergeFrom(self::BarRequest other) {
  11930. if (other == self::BarRequest.DefaultInstance) return this;
  11931. this.MergeUnknownFields(other.UnknownFields);
  11932. return this;
  11933. }
  11934. public override IBuilder<self::BarRequest> MergeFrom(pb::CodedInputStream input) {
  11935. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11936. }
  11937. public override IBuilder<self::BarRequest> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11938. pb::UnknownFieldSet.Builder unknownFields =
  11939. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11940. while (true) {
  11941. uint tag = input.ReadTag();
  11942. switch (tag) {
  11943. case 0:
  11944. this.UnknownFields = unknownFields.Build();
  11945. return this;
  11946. default: {
  11947. if (!ParseUnknownField(input, unknownFields,
  11948. extensionRegistry, tag)) {
  11949. this.UnknownFields = unknownFields.Build();
  11950. return this;
  11951. }
  11952. break;
  11953. }
  11954. }
  11955. }
  11956. }
  11957. }
  11958. }
  11959. public sealed partial class BarResponse : pb::GeneratedMessage<BarResponse, BarResponse.Builder> {
  11960. // Use BarResponse.CreateBuilder() to construct.
  11961. private BarResponse() {}
  11962. private static readonly BarResponse defaultInstance = new BarResponse();
  11963. public static BarResponse DefaultInstance {
  11964. get { return defaultInstance; }
  11965. }
  11966. public override BarResponse DefaultInstanceForType {
  11967. get { return defaultInstance; }
  11968. }
  11969. public static pbd::MessageDescriptor Descriptor {
  11970. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__Descriptor; }
  11971. }
  11972. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11973. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; }
  11974. }
  11975. public override bool IsInitialized {
  11976. get {
  11977. return true;
  11978. }
  11979. }
  11980. public override void WriteTo(pb::CodedOutputStream output) {
  11981. UnknownFields.WriteTo(output);
  11982. }
  11983. private int memoizedSerializedSize = -1;
  11984. public override int SerializedSize {
  11985. get {
  11986. int size = memoizedSerializedSize;
  11987. if (size != -1) return size;
  11988. size = 0;
  11989. size += UnknownFields.SerializedSize;
  11990. memoizedSerializedSize = size;
  11991. return size;
  11992. }
  11993. }
  11994. public static self::BarResponse ParseFrom(pb::ByteString data) {
  11995. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11996. }
  11997. public static self::BarResponse ParseFrom(pb::ByteString data,
  11998. pb::ExtensionRegistry extensionRegistry) {
  11999. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  12000. .BuildParsed();
  12001. }
  12002. public static self::BarResponse ParseFrom(byte[] data) {
  12003. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  12004. }
  12005. public static self::BarResponse parseFrom(byte[] data,
  12006. pb::ExtensionRegistry extensionRegistry) {
  12007. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  12008. .BuildParsed();
  12009. }
  12010. public static self::BarResponse ParseFrom(global::System.IO.Stream input) {
  12011. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  12012. }
  12013. public static self::BarResponse ParseFrom(
  12014. global::System.IO.Stream input,
  12015. pb::ExtensionRegistry extensionRegistry) {
  12016. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  12017. .BuildParsed();
  12018. }
  12019. public static self::BarResponse ParseFrom(pb::CodedInputStream input) {
  12020. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  12021. }
  12022. public static self::BarResponse ParseFrom(pb::CodedInputStream input,
  12023. pb::ExtensionRegistry extensionRegistry) {
  12024. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  12025. .BuildParsed();
  12026. }
  12027. public static Builder CreateBuilder() { return new Builder(); }
  12028. public override IBuilder<self::BarResponse> CreateBuilderForType() { return new Builder(); }
  12029. public static Builder CreateBuilder(self::BarResponse prototype) {
  12030. return (Builder) new Builder().MergeFrom(prototype);
  12031. }
  12032. public sealed partial class Builder : pb::GeneratedBuilder<self::BarResponse, Builder> {
  12033. // Construct using self::BarResponse.CreateBuilder()
  12034. internal Builder() {}
  12035. self::BarResponse result = new self::BarResponse();
  12036. protected override self::BarResponse MessageBeingBuilt {
  12037. get { return result; }
  12038. }
  12039. public override IBuilder<self::BarResponse> Clear() {
  12040. result = new self::BarResponse();
  12041. return this;
  12042. }
  12043. public override IBuilder<self::BarResponse> Clone() {
  12044. return new Builder().MergeFrom(result);
  12045. }
  12046. public override pbd::MessageDescriptor DescriptorForType {
  12047. get { return self::BarResponse.Descriptor; }
  12048. }
  12049. public override self::BarResponse DefaultInstanceForType {
  12050. get { return self::BarResponse.DefaultInstance; }
  12051. }
  12052. public override self::BarResponse BuildPartial() {
  12053. self::BarResponse returnMe = result;
  12054. result = null;
  12055. return returnMe;
  12056. }
  12057. protected override IBuilder MergeFromImpl(CodedInputStream data, ExtensionRegistry extensionRegistry) {
  12058. return MergeFrom(data, extensionRegistry);
  12059. }
  12060. public override IBuilder MergeFrom(pb::IMessage other) {
  12061. if (other is self::BarResponse) {
  12062. return MergeFrom((self::BarResponse) other);
  12063. } else {
  12064. base.MergeFrom(other);
  12065. return this;
  12066. }
  12067. }
  12068. public override IBuilder<self::BarResponse> MergeFrom(self::BarResponse other) {
  12069. if (other == self::BarResponse.DefaultInstance) return this;
  12070. this.MergeUnknownFields(other.UnknownFields);
  12071. return this;
  12072. }
  12073. public override IBuilder<self::BarResponse> MergeFrom(pb::CodedInputStream input) {
  12074. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  12075. }
  12076. public override IBuilder<self::BarResponse> MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  12077. pb::UnknownFieldSet.Builder unknownFields =
  12078. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  12079. while (true) {
  12080. uint tag = input.ReadTag();
  12081. switch (tag) {
  12082. case 0:
  12083. this.UnknownFields = unknownFields.Build();
  12084. return this;
  12085. default: {
  12086. if (!ParseUnknownField(input, unknownFields,
  12087. extensionRegistry, tag)) {
  12088. this.UnknownFields = unknownFields.Build();
  12089. return this;
  12090. }
  12091. break;
  12092. }
  12093. }
  12094. }
  12095. }
  12096. }
  12097. }
  12098. #endregion
  12099. #region Services
  12100. public abstract class TestService : pb::IService {
  12101. public abstract void Foo(
  12102. pb::IRpcController controller,
  12103. self::FooRequest request,
  12104. global::System.Action<self::FooResponse> done);
  12105. public abstract void Bar(
  12106. pb::IRpcController controller,
  12107. self::BarRequest request,
  12108. global::System.Action<self::BarResponse> done);
  12109. public static pbd::ServiceDescriptor Descriptor {
  12110. get { return self::UnitTestProtoFile.Descriptor.Services[0]; }
  12111. }
  12112. public pbd::ServiceDescriptor DescriptorForType {
  12113. get { return Descriptor; }
  12114. }
  12115. public void CallMethod(
  12116. pbd::MethodDescriptor method,
  12117. pb::IRpcController controller,
  12118. pb::IMessage request,
  12119. global::System.Action<pb::IMessage> done) {
  12120. if (method.Service != Descriptor) {
  12121. throw new global::System.ArgumentException(
  12122. "Service.CallMethod() given method descriptor for wrong " +
  12123. "service type.");
  12124. }
  12125. switch(method.Index) {
  12126. case 0:
  12127. this.Foo(controller, (self::FooRequest)request,
  12128. pb::RpcUtil.SpecializeCallback<self::FooResponse>(
  12129. done));
  12130. return;
  12131. case 1:
  12132. this.Bar(controller, (self::BarRequest)request,
  12133. pb::RpcUtil.SpecializeCallback<self::BarResponse>(
  12134. done));
  12135. return;
  12136. default:
  12137. throw new global::System.InvalidOperationException("Can't get here.");
  12138. }
  12139. }
  12140. public pb::IMessage GetRequestPrototype(pbd::MethodDescriptor method) {
  12141. if (method.Service != Descriptor) {
  12142. throw new global::System.ArgumentException(
  12143. "Service.GetRequestPrototype() given method " +
  12144. "descriptor for wrong service type.");
  12145. }
  12146. switch(method.Index) {
  12147. case 0:
  12148. return self::FooRequest.DefaultInstance;
  12149. case 1:
  12150. return self::BarRequest.DefaultInstance;
  12151. default:
  12152. throw new global::System.ArgumentException("Can't get here.");
  12153. }
  12154. }
  12155. public pb::IMessage GetResponsePrototype(pbd::MethodDescriptor method) {
  12156. if (method.Service != Descriptor) {
  12157. throw new global::System.ArgumentException(
  12158. "Service.GetResponsePrototype() given method " +
  12159. "descriptor for wrong service type.");
  12160. }
  12161. switch(method.Index) {
  12162. case 0:
  12163. return self::FooResponse.DefaultInstance;
  12164. case 1:
  12165. return self::BarResponse.DefaultInstance;
  12166. default:
  12167. throw new global::System.ArgumentException("Can't get here.");
  12168. }
  12169. }
  12170. public static Stub CreateStub(
  12171. pb::IRpcChannel channel) {
  12172. return new Stub(channel);
  12173. }
  12174. public class Stub : self::TestService {
  12175. internal Stub(pb::IRpcChannel channel) {
  12176. this.channel = channel;
  12177. }
  12178. private readonly pb::IRpcChannel channel;
  12179. public pb::IRpcChannel Channel {
  12180. get { return channel; }
  12181. }
  12182. public override void Foo(
  12183. pb::IRpcController controller,
  12184. self::FooRequest request,
  12185. global::System.Action<self::FooResponse> done) {
  12186. channel.CallMethod(
  12187. Descriptor.Methods[0],
  12188. controller,
  12189. request,
  12190. self::FooResponse.DefaultInstance,
  12191. pb::RpcUtil.GeneralizeCallback(done, self::FooResponse.DefaultInstance));
  12192. }
  12193. public override void Bar(
  12194. pb::IRpcController controller,
  12195. self::BarRequest request,
  12196. global::System.Action<self::BarResponse> done) {
  12197. channel.CallMethod(
  12198. Descriptor.Methods[1],
  12199. controller,
  12200. request,
  12201. self::BarResponse.DefaultInstance,
  12202. pb::RpcUtil.GeneralizeCallback(done, self::BarResponse.DefaultInstance));
  12203. }
  12204. }
  12205. }
  12206. #endregion
  12207. }