UnitTestProtoFile.cs 531 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168
  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<int> OptionalInt32Extension =
  631. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[0]);
  632. public static readonly pb::GeneratedExtensionBase<long> OptionalInt64Extension =
  633. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[1]);
  634. public static readonly pb::GeneratedExtensionBase<uint> OptionalUint32Extension =
  635. pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[2]);
  636. public static readonly pb::GeneratedExtensionBase<ulong> OptionalUint64Extension =
  637. pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[3]);
  638. public static readonly pb::GeneratedExtensionBase<int> OptionalSint32Extension =
  639. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[4]);
  640. public static readonly pb::GeneratedExtensionBase<long> OptionalSint64Extension =
  641. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[5]);
  642. public static readonly pb::GeneratedExtensionBase<uint> OptionalFixed32Extension =
  643. pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[6]);
  644. public static readonly pb::GeneratedExtensionBase<ulong> OptionalFixed64Extension =
  645. pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[7]);
  646. public static readonly pb::GeneratedExtensionBase<int> OptionalSfixed32Extension =
  647. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[8]);
  648. public static readonly pb::GeneratedExtensionBase<long> OptionalSfixed64Extension =
  649. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[9]);
  650. public static readonly pb::GeneratedExtensionBase<float> OptionalFloatExtension =
  651. pb::GeneratedSingleExtension<float>.CreateInstance(Descriptor.Extensions[10]);
  652. public static readonly pb::GeneratedExtensionBase<double> OptionalDoubleExtension =
  653. pb::GeneratedSingleExtension<double>.CreateInstance(Descriptor.Extensions[11]);
  654. public static readonly pb::GeneratedExtensionBase<bool> OptionalBoolExtension =
  655. pb::GeneratedSingleExtension<bool>.CreateInstance(Descriptor.Extensions[12]);
  656. public static readonly pb::GeneratedExtensionBase<string> OptionalStringExtension =
  657. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[13]);
  658. public static readonly pb::GeneratedExtensionBase<pb::ByteString> OptionalBytesExtension =
  659. pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[14]);
  660. public static readonly pb::GeneratedExtensionBase<self::OptionalGroup_extension> OptionalGroupExtension =
  661. pb::GeneratedSingleExtension<self::OptionalGroup_extension>.CreateInstance(Descriptor.Extensions[15]);
  662. public static readonly pb::GeneratedExtensionBase<self::TestAllTypes.Types.NestedMessage> OptionalNestedMessageExtension =
  663. pb::GeneratedSingleExtension<self::TestAllTypes.Types.NestedMessage>.CreateInstance(Descriptor.Extensions[16]);
  664. public static readonly pb::GeneratedExtensionBase<self::ForeignMessage> OptionalForeignMessageExtension =
  665. pb::GeneratedSingleExtension<self::ForeignMessage>.CreateInstance(Descriptor.Extensions[17]);
  666. public static readonly pb::GeneratedExtensionBase<self::ImportMessage> OptionalImportMessageExtension =
  667. pb::GeneratedSingleExtension<self::ImportMessage>.CreateInstance(Descriptor.Extensions[18]);
  668. public static readonly pb::GeneratedExtensionBase<self::TestAllTypes.Types.NestedEnum> OptionalNestedEnumExtension =
  669. pb::GeneratedSingleExtension<self::TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[19]);
  670. public static readonly pb::GeneratedExtensionBase<self::ForeignEnum> OptionalForeignEnumExtension =
  671. pb::GeneratedSingleExtension<self::ForeignEnum>.CreateInstance(Descriptor.Extensions[20]);
  672. public static readonly pb::GeneratedExtensionBase<self::ImportEnum> OptionalImportEnumExtension =
  673. pb::GeneratedSingleExtension<self::ImportEnum>.CreateInstance(Descriptor.Extensions[21]);
  674. public static readonly pb::GeneratedExtensionBase<string> OptionalStringPieceExtension =
  675. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[22]);
  676. public static readonly pb::GeneratedExtensionBase<string> OptionalCordExtension =
  677. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[23]);
  678. public static readonly
  679. pb::GeneratedExtensionBase<scg::IList<int>> RepeatedInt32Extension =
  680. pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[24]);
  681. public static readonly
  682. pb::GeneratedExtensionBase<scg::IList<long>> RepeatedInt64Extension =
  683. pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[25]);
  684. public static readonly
  685. pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedUint32Extension =
  686. pb::GeneratedRepeatExtension<uint>.CreateInstance(Descriptor.Extensions[26]);
  687. public static readonly
  688. pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedUint64Extension =
  689. pb::GeneratedRepeatExtension<ulong>.CreateInstance(Descriptor.Extensions[27]);
  690. public static readonly
  691. pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSint32Extension =
  692. pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[28]);
  693. public static readonly
  694. pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSint64Extension =
  695. pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[29]);
  696. public static readonly
  697. pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedFixed32Extension =
  698. pb::GeneratedRepeatExtension<uint>.CreateInstance(Descriptor.Extensions[30]);
  699. public static readonly
  700. pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedFixed64Extension =
  701. pb::GeneratedRepeatExtension<ulong>.CreateInstance(Descriptor.Extensions[31]);
  702. public static readonly
  703. pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSfixed32Extension =
  704. pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[32]);
  705. public static readonly
  706. pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSfixed64Extension =
  707. pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[33]);
  708. public static readonly
  709. pb::GeneratedExtensionBase<scg::IList<float>> RepeatedFloatExtension =
  710. pb::GeneratedRepeatExtension<float>.CreateInstance(Descriptor.Extensions[34]);
  711. public static readonly
  712. pb::GeneratedExtensionBase<scg::IList<double>> RepeatedDoubleExtension =
  713. pb::GeneratedRepeatExtension<double>.CreateInstance(Descriptor.Extensions[35]);
  714. public static readonly
  715. pb::GeneratedExtensionBase<scg::IList<bool>> RepeatedBoolExtension =
  716. pb::GeneratedRepeatExtension<bool>.CreateInstance(Descriptor.Extensions[36]);
  717. public static readonly
  718. pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringExtension =
  719. pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[37]);
  720. public static readonly
  721. pb::GeneratedExtensionBase<scg::IList<pb::ByteString>> RepeatedBytesExtension =
  722. pb::GeneratedRepeatExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[38]);
  723. public static readonly
  724. pb::GeneratedExtensionBase<scg::IList<self::RepeatedGroup_extension>> RepeatedGroupExtension =
  725. pb::GeneratedRepeatExtension<self::RepeatedGroup_extension>.CreateInstance(Descriptor.Extensions[39]);
  726. public static readonly
  727. pb::GeneratedExtensionBase<scg::IList<self::TestAllTypes.Types.NestedMessage>> RepeatedNestedMessageExtension =
  728. pb::GeneratedRepeatExtension<self::TestAllTypes.Types.NestedMessage>.CreateInstance(Descriptor.Extensions[40]);
  729. public static readonly
  730. pb::GeneratedExtensionBase<scg::IList<self::ForeignMessage>> RepeatedForeignMessageExtension =
  731. pb::GeneratedRepeatExtension<self::ForeignMessage>.CreateInstance(Descriptor.Extensions[41]);
  732. public static readonly
  733. pb::GeneratedExtensionBase<scg::IList<self::ImportMessage>> RepeatedImportMessageExtension =
  734. pb::GeneratedRepeatExtension<self::ImportMessage>.CreateInstance(Descriptor.Extensions[42]);
  735. public static readonly
  736. pb::GeneratedExtensionBase<scg::IList<self::TestAllTypes.Types.NestedEnum>> RepeatedNestedEnumExtension =
  737. pb::GeneratedRepeatExtension<self::TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[43]);
  738. public static readonly
  739. pb::GeneratedExtensionBase<scg::IList<self::ForeignEnum>> RepeatedForeignEnumExtension =
  740. pb::GeneratedRepeatExtension<self::ForeignEnum>.CreateInstance(Descriptor.Extensions[44]);
  741. public static readonly
  742. pb::GeneratedExtensionBase<scg::IList<self::ImportEnum>> RepeatedImportEnumExtension =
  743. pb::GeneratedRepeatExtension<self::ImportEnum>.CreateInstance(Descriptor.Extensions[45]);
  744. public static readonly
  745. pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringPieceExtension =
  746. pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[46]);
  747. public static readonly
  748. pb::GeneratedExtensionBase<scg::IList<string>> RepeatedCordExtension =
  749. pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[47]);
  750. public static readonly pb::GeneratedExtensionBase<int> DefaultInt32Extension =
  751. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[48]);
  752. public static readonly pb::GeneratedExtensionBase<long> DefaultInt64Extension =
  753. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[49]);
  754. public static readonly pb::GeneratedExtensionBase<uint> DefaultUint32Extension =
  755. pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[50]);
  756. public static readonly pb::GeneratedExtensionBase<ulong> DefaultUint64Extension =
  757. pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[51]);
  758. public static readonly pb::GeneratedExtensionBase<int> DefaultSint32Extension =
  759. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[52]);
  760. public static readonly pb::GeneratedExtensionBase<long> DefaultSint64Extension =
  761. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[53]);
  762. public static readonly pb::GeneratedExtensionBase<uint> DefaultFixed32Extension =
  763. pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[54]);
  764. public static readonly pb::GeneratedExtensionBase<ulong> DefaultFixed64Extension =
  765. pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[55]);
  766. public static readonly pb::GeneratedExtensionBase<int> DefaultSfixed32Extension =
  767. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[56]);
  768. public static readonly pb::GeneratedExtensionBase<long> DefaultSfixed64Extension =
  769. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[57]);
  770. public static readonly pb::GeneratedExtensionBase<float> DefaultFloatExtension =
  771. pb::GeneratedSingleExtension<float>.CreateInstance(Descriptor.Extensions[58]);
  772. public static readonly pb::GeneratedExtensionBase<double> DefaultDoubleExtension =
  773. pb::GeneratedSingleExtension<double>.CreateInstance(Descriptor.Extensions[59]);
  774. public static readonly pb::GeneratedExtensionBase<bool> DefaultBoolExtension =
  775. pb::GeneratedSingleExtension<bool>.CreateInstance(Descriptor.Extensions[60]);
  776. public static readonly pb::GeneratedExtensionBase<string> DefaultStringExtension =
  777. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[61]);
  778. public static readonly pb::GeneratedExtensionBase<pb::ByteString> DefaultBytesExtension =
  779. pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[62]);
  780. public static readonly pb::GeneratedExtensionBase<self::TestAllTypes.Types.NestedEnum> DefaultNestedEnumExtension =
  781. pb::GeneratedSingleExtension<self::TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[63]);
  782. public static readonly pb::GeneratedExtensionBase<self::ForeignEnum> DefaultForeignEnumExtension =
  783. pb::GeneratedSingleExtension<self::ForeignEnum>.CreateInstance(Descriptor.Extensions[64]);
  784. public static readonly pb::GeneratedExtensionBase<self::ImportEnum> DefaultImportEnumExtension =
  785. pb::GeneratedSingleExtension<self::ImportEnum>.CreateInstance(Descriptor.Extensions[65]);
  786. public static readonly pb::GeneratedExtensionBase<string> DefaultStringPieceExtension =
  787. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[66]);
  788. public static readonly pb::GeneratedExtensionBase<string> DefaultCordExtension =
  789. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[67]);
  790. public static readonly pb::GeneratedExtensionBase<string> MyExtensionString =
  791. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[68]);
  792. public static readonly pb::GeneratedExtensionBase<int> MyExtensionInt =
  793. pb::GeneratedSingleExtension<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. private static readonly TestAllTypes defaultInstance = new TestAllTypes();
  1025. public static TestAllTypes DefaultInstance {
  1026. get { return defaultInstance; }
  1027. }
  1028. public override TestAllTypes DefaultInstanceForType {
  1029. get { return defaultInstance; }
  1030. }
  1031. public static pbd::MessageDescriptor Descriptor {
  1032. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__Descriptor; }
  1033. }
  1034. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  1035. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable; }
  1036. }
  1037. #region Nested types
  1038. public static class Types {
  1039. public enum NestedEnum {
  1040. FOO = 1,
  1041. BAR = 2,
  1042. BAZ = 3,
  1043. }
  1044. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  1045. private static readonly NestedMessage defaultInstance = new NestedMessage();
  1046. public static NestedMessage DefaultInstance {
  1047. get { return defaultInstance; }
  1048. }
  1049. public override NestedMessage DefaultInstanceForType {
  1050. get { return defaultInstance; }
  1051. }
  1052. public static pbd::MessageDescriptor Descriptor {
  1053. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor; }
  1054. }
  1055. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  1056. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable; }
  1057. }
  1058. // optional int32 bb = 1;
  1059. private bool hasBb;
  1060. private int bb_ = 0;
  1061. public bool HasBb {
  1062. get { return hasBb; }
  1063. }
  1064. public int Bb {
  1065. get { return bb_; }
  1066. }
  1067. public override bool IsInitialized {
  1068. get {
  1069. return true;
  1070. }
  1071. }
  1072. public override void WriteTo(pb::CodedOutputStream output) {
  1073. if (HasBb) {
  1074. output.WriteInt32(1, Bb);
  1075. }
  1076. UnknownFields.WriteTo(output);
  1077. }
  1078. private int memoizedSerializedSize = -1;
  1079. public override int SerializedSize {
  1080. get {
  1081. int size = memoizedSerializedSize;
  1082. if (size != -1) return size;
  1083. size = 0;
  1084. if (HasBb) {
  1085. size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
  1086. }
  1087. size += UnknownFields.SerializedSize;
  1088. memoizedSerializedSize = size;
  1089. return size;
  1090. }
  1091. }
  1092. public static self::TestAllTypes.Types.NestedMessage ParseFrom(pb::ByteString data) {
  1093. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1094. }
  1095. public static self::TestAllTypes.Types.NestedMessage ParseFrom(pb::ByteString data,
  1096. pb::ExtensionRegistry extensionRegistry) {
  1097. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1098. .BuildParsed();
  1099. }
  1100. public static self::TestAllTypes.Types.NestedMessage ParseFrom(byte[] data) {
  1101. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1102. }
  1103. public static self::TestAllTypes.Types.NestedMessage ParseFrom(byte[] data,
  1104. pb::ExtensionRegistry extensionRegistry) {
  1105. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1106. .BuildParsed();
  1107. }
  1108. public static self::TestAllTypes.Types.NestedMessage ParseFrom(global::System.IO.Stream input) {
  1109. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1110. }
  1111. public static self::TestAllTypes.Types.NestedMessage ParseFrom(
  1112. global::System.IO.Stream input,
  1113. pb::ExtensionRegistry extensionRegistry) {
  1114. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1115. .BuildParsed();
  1116. }
  1117. public static self::TestAllTypes.Types.NestedMessage ParseFrom(pb::CodedInputStream input) {
  1118. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1119. }
  1120. public static self::TestAllTypes.Types.NestedMessage ParseFrom(pb::CodedInputStream input,
  1121. pb::ExtensionRegistry extensionRegistry) {
  1122. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1123. .BuildParsed();
  1124. }
  1125. public static Builder CreateBuilder() { return new Builder(); }
  1126. public override Builder CreateBuilderForType() { return new Builder(); }
  1127. public static Builder CreateBuilder(self::TestAllTypes.Types.NestedMessage prototype) {
  1128. return (Builder) new Builder().MergeFrom(prototype);
  1129. }
  1130. public sealed partial class Builder : pb::GeneratedBuilder<self::TestAllTypes.Types.NestedMessage, Builder> {
  1131. protected override Builder ThisBuilder {
  1132. get { return this; }
  1133. }
  1134. // Construct using self::TestAllTypes.Types.NestedMessage.CreateBuilder()
  1135. internal Builder() {}
  1136. self::TestAllTypes.Types.NestedMessage result = new self::TestAllTypes.Types.NestedMessage();
  1137. protected override self::TestAllTypes.Types.NestedMessage MessageBeingBuilt {
  1138. get { return result; }
  1139. }
  1140. public override Builder Clear() {
  1141. result = new self::TestAllTypes.Types.NestedMessage();
  1142. return this;
  1143. }
  1144. public override Builder Clone() {
  1145. return new Builder().MergeFrom(result);
  1146. }
  1147. public override pbd::MessageDescriptor DescriptorForType {
  1148. get { return self::TestAllTypes.Types.NestedMessage.Descriptor; }
  1149. }
  1150. public override self::TestAllTypes.Types.NestedMessage DefaultInstanceForType {
  1151. get { return self::TestAllTypes.Types.NestedMessage.DefaultInstance; }
  1152. }
  1153. public override self::TestAllTypes.Types.NestedMessage BuildPartial() {
  1154. self::TestAllTypes.Types.NestedMessage returnMe = result;
  1155. result = null;
  1156. return returnMe;
  1157. }
  1158. public override Builder MergeFrom(pb::IMessage other) {
  1159. if (other is self::TestAllTypes.Types.NestedMessage) {
  1160. return MergeFrom((self::TestAllTypes.Types.NestedMessage) other);
  1161. } else {
  1162. base.MergeFrom(other);
  1163. return this;
  1164. }
  1165. }
  1166. public override Builder MergeFrom(self::TestAllTypes.Types.NestedMessage other) {
  1167. if (other == self::TestAllTypes.Types.NestedMessage.DefaultInstance) return this;
  1168. if (other.HasBb) {
  1169. Bb = other.Bb;
  1170. }
  1171. this.MergeUnknownFields(other.UnknownFields);
  1172. return this;
  1173. }
  1174. public override Builder MergeFrom(pb::CodedInputStream input) {
  1175. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1176. }
  1177. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1178. pb::UnknownFieldSet.Builder unknownFields =
  1179. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1180. while (true) {
  1181. uint tag = input.ReadTag();
  1182. switch (tag) {
  1183. case 0:
  1184. this.UnknownFields = unknownFields.Build();
  1185. return this;
  1186. default: {
  1187. if (!ParseUnknownField(input, unknownFields,
  1188. extensionRegistry, tag)) {
  1189. this.UnknownFields = unknownFields.Build();
  1190. return this;
  1191. }
  1192. break;
  1193. }
  1194. case 8: {
  1195. Bb = input.ReadInt32();
  1196. break;
  1197. }
  1198. }
  1199. }
  1200. }
  1201. // optional int32 bb = 1;
  1202. public bool HasBb {
  1203. get { return result.HasBb; }
  1204. }
  1205. public int Bb {
  1206. get { return result.Bb; }
  1207. set { SetBb(value); }
  1208. }
  1209. public Builder SetBb(int value) {
  1210. result.hasBb = true;
  1211. result.bb_ = value;
  1212. return this;
  1213. }
  1214. public Builder ClearBb() {
  1215. result.hasBb = false;
  1216. result.bb_ = 0;
  1217. return this;
  1218. }
  1219. }
  1220. }
  1221. public sealed partial class OptionalGroup : pb::GeneratedMessage<OptionalGroup, OptionalGroup.Builder> {
  1222. private static readonly OptionalGroup defaultInstance = new OptionalGroup();
  1223. public static OptionalGroup DefaultInstance {
  1224. get { return defaultInstance; }
  1225. }
  1226. public override OptionalGroup DefaultInstanceForType {
  1227. get { return defaultInstance; }
  1228. }
  1229. public static pbd::MessageDescriptor Descriptor {
  1230. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor; }
  1231. }
  1232. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  1233. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable; }
  1234. }
  1235. // optional int32 a = 17;
  1236. private bool hasA;
  1237. private int a_ = 0;
  1238. public bool HasA {
  1239. get { return hasA; }
  1240. }
  1241. public int A {
  1242. get { return a_; }
  1243. }
  1244. public override bool IsInitialized {
  1245. get {
  1246. return true;
  1247. }
  1248. }
  1249. public override void WriteTo(pb::CodedOutputStream output) {
  1250. if (HasA) {
  1251. output.WriteInt32(17, A);
  1252. }
  1253. UnknownFields.WriteTo(output);
  1254. }
  1255. private int memoizedSerializedSize = -1;
  1256. public override int SerializedSize {
  1257. get {
  1258. int size = memoizedSerializedSize;
  1259. if (size != -1) return size;
  1260. size = 0;
  1261. if (HasA) {
  1262. size += pb::CodedOutputStream.ComputeInt32Size(17, A);
  1263. }
  1264. size += UnknownFields.SerializedSize;
  1265. memoizedSerializedSize = size;
  1266. return size;
  1267. }
  1268. }
  1269. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(pb::ByteString data) {
  1270. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1271. }
  1272. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(pb::ByteString data,
  1273. pb::ExtensionRegistry extensionRegistry) {
  1274. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1275. .BuildParsed();
  1276. }
  1277. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(byte[] data) {
  1278. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1279. }
  1280. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(byte[] data,
  1281. pb::ExtensionRegistry extensionRegistry) {
  1282. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1283. .BuildParsed();
  1284. }
  1285. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(global::System.IO.Stream input) {
  1286. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1287. }
  1288. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(
  1289. global::System.IO.Stream input,
  1290. pb::ExtensionRegistry extensionRegistry) {
  1291. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1292. .BuildParsed();
  1293. }
  1294. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(pb::CodedInputStream input) {
  1295. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1296. }
  1297. public static self::TestAllTypes.Types.OptionalGroup ParseFrom(pb::CodedInputStream input,
  1298. pb::ExtensionRegistry extensionRegistry) {
  1299. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1300. .BuildParsed();
  1301. }
  1302. public static Builder CreateBuilder() { return new Builder(); }
  1303. public override Builder CreateBuilderForType() { return new Builder(); }
  1304. public static Builder CreateBuilder(self::TestAllTypes.Types.OptionalGroup prototype) {
  1305. return (Builder) new Builder().MergeFrom(prototype);
  1306. }
  1307. public sealed partial class Builder : pb::GeneratedBuilder<self::TestAllTypes.Types.OptionalGroup, Builder> {
  1308. protected override Builder ThisBuilder {
  1309. get { return this; }
  1310. }
  1311. // Construct using self::TestAllTypes.Types.OptionalGroup.CreateBuilder()
  1312. internal Builder() {}
  1313. self::TestAllTypes.Types.OptionalGroup result = new self::TestAllTypes.Types.OptionalGroup();
  1314. protected override self::TestAllTypes.Types.OptionalGroup MessageBeingBuilt {
  1315. get { return result; }
  1316. }
  1317. public override Builder Clear() {
  1318. result = new self::TestAllTypes.Types.OptionalGroup();
  1319. return this;
  1320. }
  1321. public override Builder Clone() {
  1322. return new Builder().MergeFrom(result);
  1323. }
  1324. public override pbd::MessageDescriptor DescriptorForType {
  1325. get { return self::TestAllTypes.Types.OptionalGroup.Descriptor; }
  1326. }
  1327. public override self::TestAllTypes.Types.OptionalGroup DefaultInstanceForType {
  1328. get { return self::TestAllTypes.Types.OptionalGroup.DefaultInstance; }
  1329. }
  1330. public override self::TestAllTypes.Types.OptionalGroup BuildPartial() {
  1331. self::TestAllTypes.Types.OptionalGroup returnMe = result;
  1332. result = null;
  1333. return returnMe;
  1334. }
  1335. public override Builder MergeFrom(pb::IMessage other) {
  1336. if (other is self::TestAllTypes.Types.OptionalGroup) {
  1337. return MergeFrom((self::TestAllTypes.Types.OptionalGroup) other);
  1338. } else {
  1339. base.MergeFrom(other);
  1340. return this;
  1341. }
  1342. }
  1343. public override Builder MergeFrom(self::TestAllTypes.Types.OptionalGroup other) {
  1344. if (other == self::TestAllTypes.Types.OptionalGroup.DefaultInstance) return this;
  1345. if (other.HasA) {
  1346. A = other.A;
  1347. }
  1348. this.MergeUnknownFields(other.UnknownFields);
  1349. return this;
  1350. }
  1351. public override Builder MergeFrom(pb::CodedInputStream input) {
  1352. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1353. }
  1354. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1355. pb::UnknownFieldSet.Builder unknownFields =
  1356. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1357. while (true) {
  1358. uint tag = input.ReadTag();
  1359. switch (tag) {
  1360. case 0:
  1361. this.UnknownFields = unknownFields.Build();
  1362. return this;
  1363. default: {
  1364. if (!ParseUnknownField(input, unknownFields,
  1365. extensionRegistry, tag)) {
  1366. this.UnknownFields = unknownFields.Build();
  1367. return this;
  1368. }
  1369. break;
  1370. }
  1371. case 136: {
  1372. A = input.ReadInt32();
  1373. break;
  1374. }
  1375. }
  1376. }
  1377. }
  1378. // optional int32 a = 17;
  1379. public bool HasA {
  1380. get { return result.HasA; }
  1381. }
  1382. public int A {
  1383. get { return result.A; }
  1384. set { SetA(value); }
  1385. }
  1386. public Builder SetA(int value) {
  1387. result.hasA = true;
  1388. result.a_ = value;
  1389. return this;
  1390. }
  1391. public Builder ClearA() {
  1392. result.hasA = false;
  1393. result.a_ = 0;
  1394. return this;
  1395. }
  1396. }
  1397. }
  1398. public sealed partial class RepeatedGroup : pb::GeneratedMessage<RepeatedGroup, RepeatedGroup.Builder> {
  1399. private static readonly RepeatedGroup defaultInstance = new RepeatedGroup();
  1400. public static RepeatedGroup DefaultInstance {
  1401. get { return defaultInstance; }
  1402. }
  1403. public override RepeatedGroup DefaultInstanceForType {
  1404. get { return defaultInstance; }
  1405. }
  1406. public static pbd::MessageDescriptor Descriptor {
  1407. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor; }
  1408. }
  1409. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  1410. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable; }
  1411. }
  1412. // optional int32 a = 47;
  1413. private bool hasA;
  1414. private int a_ = 0;
  1415. public bool HasA {
  1416. get { return hasA; }
  1417. }
  1418. public int A {
  1419. get { return a_; }
  1420. }
  1421. public override bool IsInitialized {
  1422. get {
  1423. return true;
  1424. }
  1425. }
  1426. public override void WriteTo(pb::CodedOutputStream output) {
  1427. if (HasA) {
  1428. output.WriteInt32(47, A);
  1429. }
  1430. UnknownFields.WriteTo(output);
  1431. }
  1432. private int memoizedSerializedSize = -1;
  1433. public override int SerializedSize {
  1434. get {
  1435. int size = memoizedSerializedSize;
  1436. if (size != -1) return size;
  1437. size = 0;
  1438. if (HasA) {
  1439. size += pb::CodedOutputStream.ComputeInt32Size(47, A);
  1440. }
  1441. size += UnknownFields.SerializedSize;
  1442. memoizedSerializedSize = size;
  1443. return size;
  1444. }
  1445. }
  1446. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(pb::ByteString data) {
  1447. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1448. }
  1449. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(pb::ByteString data,
  1450. pb::ExtensionRegistry extensionRegistry) {
  1451. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1452. .BuildParsed();
  1453. }
  1454. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(byte[] data) {
  1455. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1456. }
  1457. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(byte[] data,
  1458. pb::ExtensionRegistry extensionRegistry) {
  1459. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1460. .BuildParsed();
  1461. }
  1462. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(global::System.IO.Stream input) {
  1463. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1464. }
  1465. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(
  1466. global::System.IO.Stream input,
  1467. pb::ExtensionRegistry extensionRegistry) {
  1468. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1469. .BuildParsed();
  1470. }
  1471. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(pb::CodedInputStream input) {
  1472. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1473. }
  1474. public static self::TestAllTypes.Types.RepeatedGroup ParseFrom(pb::CodedInputStream input,
  1475. pb::ExtensionRegistry extensionRegistry) {
  1476. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1477. .BuildParsed();
  1478. }
  1479. public static Builder CreateBuilder() { return new Builder(); }
  1480. public override Builder CreateBuilderForType() { return new Builder(); }
  1481. public static Builder CreateBuilder(self::TestAllTypes.Types.RepeatedGroup prototype) {
  1482. return (Builder) new Builder().MergeFrom(prototype);
  1483. }
  1484. public sealed partial class Builder : pb::GeneratedBuilder<self::TestAllTypes.Types.RepeatedGroup, Builder> {
  1485. protected override Builder ThisBuilder {
  1486. get { return this; }
  1487. }
  1488. // Construct using self::TestAllTypes.Types.RepeatedGroup.CreateBuilder()
  1489. internal Builder() {}
  1490. self::TestAllTypes.Types.RepeatedGroup result = new self::TestAllTypes.Types.RepeatedGroup();
  1491. protected override self::TestAllTypes.Types.RepeatedGroup MessageBeingBuilt {
  1492. get { return result; }
  1493. }
  1494. public override Builder Clear() {
  1495. result = new self::TestAllTypes.Types.RepeatedGroup();
  1496. return this;
  1497. }
  1498. public override Builder Clone() {
  1499. return new Builder().MergeFrom(result);
  1500. }
  1501. public override pbd::MessageDescriptor DescriptorForType {
  1502. get { return self::TestAllTypes.Types.RepeatedGroup.Descriptor; }
  1503. }
  1504. public override self::TestAllTypes.Types.RepeatedGroup DefaultInstanceForType {
  1505. get { return self::TestAllTypes.Types.RepeatedGroup.DefaultInstance; }
  1506. }
  1507. public override self::TestAllTypes.Types.RepeatedGroup BuildPartial() {
  1508. self::TestAllTypes.Types.RepeatedGroup returnMe = result;
  1509. result = null;
  1510. return returnMe;
  1511. }
  1512. public override Builder MergeFrom(pb::IMessage other) {
  1513. if (other is self::TestAllTypes.Types.RepeatedGroup) {
  1514. return MergeFrom((self::TestAllTypes.Types.RepeatedGroup) other);
  1515. } else {
  1516. base.MergeFrom(other);
  1517. return this;
  1518. }
  1519. }
  1520. public override Builder MergeFrom(self::TestAllTypes.Types.RepeatedGroup other) {
  1521. if (other == self::TestAllTypes.Types.RepeatedGroup.DefaultInstance) return this;
  1522. if (other.HasA) {
  1523. A = other.A;
  1524. }
  1525. this.MergeUnknownFields(other.UnknownFields);
  1526. return this;
  1527. }
  1528. public override Builder MergeFrom(pb::CodedInputStream input) {
  1529. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1530. }
  1531. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1532. pb::UnknownFieldSet.Builder unknownFields =
  1533. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1534. while (true) {
  1535. uint tag = input.ReadTag();
  1536. switch (tag) {
  1537. case 0:
  1538. this.UnknownFields = unknownFields.Build();
  1539. return this;
  1540. default: {
  1541. if (!ParseUnknownField(input, unknownFields,
  1542. extensionRegistry, tag)) {
  1543. this.UnknownFields = unknownFields.Build();
  1544. return this;
  1545. }
  1546. break;
  1547. }
  1548. case 376: {
  1549. A = input.ReadInt32();
  1550. break;
  1551. }
  1552. }
  1553. }
  1554. }
  1555. // optional int32 a = 47;
  1556. public bool HasA {
  1557. get { return result.HasA; }
  1558. }
  1559. public int A {
  1560. get { return result.A; }
  1561. set { SetA(value); }
  1562. }
  1563. public Builder SetA(int value) {
  1564. result.hasA = true;
  1565. result.a_ = value;
  1566. return this;
  1567. }
  1568. public Builder ClearA() {
  1569. result.hasA = false;
  1570. result.a_ = 0;
  1571. return this;
  1572. }
  1573. }
  1574. }
  1575. }
  1576. #endregion
  1577. // optional int32 optional_int32 = 1;
  1578. private bool hasOptionalInt32;
  1579. private int optionalInt32_ = 0;
  1580. public bool HasOptionalInt32 {
  1581. get { return hasOptionalInt32; }
  1582. }
  1583. public int OptionalInt32 {
  1584. get { return optionalInt32_; }
  1585. }
  1586. // optional int64 optional_int64 = 2;
  1587. private bool hasOptionalInt64;
  1588. private long optionalInt64_ = 0L;
  1589. public bool HasOptionalInt64 {
  1590. get { return hasOptionalInt64; }
  1591. }
  1592. public long OptionalInt64 {
  1593. get { return optionalInt64_; }
  1594. }
  1595. // optional uint32 optional_uint32 = 3;
  1596. private bool hasOptionalUint32;
  1597. private uint optionalUint32_ = 0;
  1598. public bool HasOptionalUint32 {
  1599. get { return hasOptionalUint32; }
  1600. }
  1601. public uint OptionalUint32 {
  1602. get { return optionalUint32_; }
  1603. }
  1604. // optional uint64 optional_uint64 = 4;
  1605. private bool hasOptionalUint64;
  1606. private ulong optionalUint64_ = 0UL;
  1607. public bool HasOptionalUint64 {
  1608. get { return hasOptionalUint64; }
  1609. }
  1610. public ulong OptionalUint64 {
  1611. get { return optionalUint64_; }
  1612. }
  1613. // optional sint32 optional_sint32 = 5;
  1614. private bool hasOptionalSint32;
  1615. private int optionalSint32_ = 0;
  1616. public bool HasOptionalSint32 {
  1617. get { return hasOptionalSint32; }
  1618. }
  1619. public int OptionalSint32 {
  1620. get { return optionalSint32_; }
  1621. }
  1622. // optional sint64 optional_sint64 = 6;
  1623. private bool hasOptionalSint64;
  1624. private long optionalSint64_ = 0L;
  1625. public bool HasOptionalSint64 {
  1626. get { return hasOptionalSint64; }
  1627. }
  1628. public long OptionalSint64 {
  1629. get { return optionalSint64_; }
  1630. }
  1631. // optional fixed32 optional_fixed32 = 7;
  1632. private bool hasOptionalFixed32;
  1633. private uint optionalFixed32_ = 0;
  1634. public bool HasOptionalFixed32 {
  1635. get { return hasOptionalFixed32; }
  1636. }
  1637. public uint OptionalFixed32 {
  1638. get { return optionalFixed32_; }
  1639. }
  1640. // optional fixed64 optional_fixed64 = 8;
  1641. private bool hasOptionalFixed64;
  1642. private ulong optionalFixed64_ = 0UL;
  1643. public bool HasOptionalFixed64 {
  1644. get { return hasOptionalFixed64; }
  1645. }
  1646. public ulong OptionalFixed64 {
  1647. get { return optionalFixed64_; }
  1648. }
  1649. // optional sfixed32 optional_sfixed32 = 9;
  1650. private bool hasOptionalSfixed32;
  1651. private int optionalSfixed32_ = 0;
  1652. public bool HasOptionalSfixed32 {
  1653. get { return hasOptionalSfixed32; }
  1654. }
  1655. public int OptionalSfixed32 {
  1656. get { return optionalSfixed32_; }
  1657. }
  1658. // optional sfixed64 optional_sfixed64 = 10;
  1659. private bool hasOptionalSfixed64;
  1660. private long optionalSfixed64_ = 0L;
  1661. public bool HasOptionalSfixed64 {
  1662. get { return hasOptionalSfixed64; }
  1663. }
  1664. public long OptionalSfixed64 {
  1665. get { return optionalSfixed64_; }
  1666. }
  1667. // optional float optional_float = 11;
  1668. private bool hasOptionalFloat;
  1669. private float optionalFloat_ = 0F;
  1670. public bool HasOptionalFloat {
  1671. get { return hasOptionalFloat; }
  1672. }
  1673. public float OptionalFloat {
  1674. get { return optionalFloat_; }
  1675. }
  1676. // optional double optional_double = 12;
  1677. private bool hasOptionalDouble;
  1678. private double optionalDouble_ = 0D;
  1679. public bool HasOptionalDouble {
  1680. get { return hasOptionalDouble; }
  1681. }
  1682. public double OptionalDouble {
  1683. get { return optionalDouble_; }
  1684. }
  1685. // optional bool optional_bool = 13;
  1686. private bool hasOptionalBool;
  1687. private bool optionalBool_ = false;
  1688. public bool HasOptionalBool {
  1689. get { return hasOptionalBool; }
  1690. }
  1691. public bool OptionalBool {
  1692. get { return optionalBool_; }
  1693. }
  1694. // optional string optional_string = 14;
  1695. private bool hasOptionalString;
  1696. private string optionalString_ = "";
  1697. public bool HasOptionalString {
  1698. get { return hasOptionalString; }
  1699. }
  1700. public string OptionalString {
  1701. get { return optionalString_; }
  1702. }
  1703. // optional bytes optional_bytes = 15;
  1704. private bool hasOptionalBytes;
  1705. private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
  1706. public bool HasOptionalBytes {
  1707. get { return hasOptionalBytes; }
  1708. }
  1709. public pb::ByteString OptionalBytes {
  1710. get { return optionalBytes_; }
  1711. }
  1712. // optional group OptionalGroup = 16 {
  1713. private bool hasOptionalGroup;
  1714. private self::TestAllTypes.Types.OptionalGroup optionalGroup_ = self::TestAllTypes.Types.OptionalGroup.DefaultInstance;
  1715. public bool HasOptionalGroup {
  1716. get { return hasOptionalGroup; }
  1717. }
  1718. public self::TestAllTypes.Types.OptionalGroup OptionalGroup {
  1719. get { return optionalGroup_; }
  1720. }
  1721. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  1722. private bool hasOptionalNestedMessage;
  1723. private self::TestAllTypes.Types.NestedMessage optionalNestedMessage_ = self::TestAllTypes.Types.NestedMessage.DefaultInstance;
  1724. public bool HasOptionalNestedMessage {
  1725. get { return hasOptionalNestedMessage; }
  1726. }
  1727. public self::TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  1728. get { return optionalNestedMessage_; }
  1729. }
  1730. // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
  1731. private bool hasOptionalForeignMessage;
  1732. private self::ForeignMessage optionalForeignMessage_ = self::ForeignMessage.DefaultInstance;
  1733. public bool HasOptionalForeignMessage {
  1734. get { return hasOptionalForeignMessage; }
  1735. }
  1736. public self::ForeignMessage OptionalForeignMessage {
  1737. get { return optionalForeignMessage_; }
  1738. }
  1739. // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  1740. private bool hasOptionalImportMessage;
  1741. private self::ImportMessage optionalImportMessage_ = self::ImportMessage.DefaultInstance;
  1742. public bool HasOptionalImportMessage {
  1743. get { return hasOptionalImportMessage; }
  1744. }
  1745. public self::ImportMessage OptionalImportMessage {
  1746. get { return optionalImportMessage_; }
  1747. }
  1748. // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  1749. private bool hasOptionalNestedEnum;
  1750. private self::TestAllTypes.Types.NestedEnum optionalNestedEnum_ = self::TestAllTypes.Types.NestedEnum.FOO;
  1751. public bool HasOptionalNestedEnum {
  1752. get { return hasOptionalNestedEnum; }
  1753. }
  1754. public self::TestAllTypes.Types.NestedEnum OptionalNestedEnum { get { return optionalNestedEnum_; }}
  1755. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  1756. private bool hasOptionalForeignEnum;
  1757. private self::ForeignEnum optionalForeignEnum_ = self::ForeignEnum.FOREIGN_FOO;
  1758. public bool HasOptionalForeignEnum {
  1759. get { return hasOptionalForeignEnum; }
  1760. }
  1761. public self::ForeignEnum OptionalForeignEnum { get { return optionalForeignEnum_; }}
  1762. // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
  1763. private bool hasOptionalImportEnum;
  1764. private self::ImportEnum optionalImportEnum_ = self::ImportEnum.IMPORT_FOO;
  1765. public bool HasOptionalImportEnum {
  1766. get { return hasOptionalImportEnum; }
  1767. }
  1768. public self::ImportEnum OptionalImportEnum { get { return optionalImportEnum_; }}
  1769. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  1770. private bool hasOptionalStringPiece;
  1771. private string optionalStringPiece_ = "";
  1772. public bool HasOptionalStringPiece {
  1773. get { return hasOptionalStringPiece; }
  1774. }
  1775. public string OptionalStringPiece {
  1776. get { return optionalStringPiece_; }
  1777. }
  1778. // optional string optional_cord = 25 [ctype = CORD];
  1779. private bool hasOptionalCord;
  1780. private string optionalCord_ = "";
  1781. public bool HasOptionalCord {
  1782. get { return hasOptionalCord; }
  1783. }
  1784. public string OptionalCord {
  1785. get { return optionalCord_; }
  1786. }
  1787. // repeated int32 repeated_int32 = 31;
  1788. private scg::IList<int> repeatedInt32_ = pbc::Lists<int>.Empty;
  1789. public scg::IList<int> RepeatedInt32List {
  1790. get { return repeatedInt32_; }
  1791. }
  1792. public int RepeatedInt32Count {
  1793. get { return repeatedInt32_.Count; }
  1794. }
  1795. public int GetRepeatedInt32(int index) {
  1796. return repeatedInt32_[index];
  1797. }
  1798. // repeated int64 repeated_int64 = 32;
  1799. private scg::IList<long> repeatedInt64_ = pbc::Lists<long>.Empty;
  1800. public scg::IList<long> RepeatedInt64List {
  1801. get { return repeatedInt64_; }
  1802. }
  1803. public int RepeatedInt64Count {
  1804. get { return repeatedInt64_.Count; }
  1805. }
  1806. public long GetRepeatedInt64(int index) {
  1807. return repeatedInt64_[index];
  1808. }
  1809. // repeated uint32 repeated_uint32 = 33;
  1810. private scg::IList<uint> repeatedUint32_ = pbc::Lists<uint>.Empty;
  1811. public scg::IList<uint> RepeatedUint32List {
  1812. get { return repeatedUint32_; }
  1813. }
  1814. public int RepeatedUint32Count {
  1815. get { return repeatedUint32_.Count; }
  1816. }
  1817. public uint GetRepeatedUint32(int index) {
  1818. return repeatedUint32_[index];
  1819. }
  1820. // repeated uint64 repeated_uint64 = 34;
  1821. private scg::IList<ulong> repeatedUint64_ = pbc::Lists<ulong>.Empty;
  1822. public scg::IList<ulong> RepeatedUint64List {
  1823. get { return repeatedUint64_; }
  1824. }
  1825. public int RepeatedUint64Count {
  1826. get { return repeatedUint64_.Count; }
  1827. }
  1828. public ulong GetRepeatedUint64(int index) {
  1829. return repeatedUint64_[index];
  1830. }
  1831. // repeated sint32 repeated_sint32 = 35;
  1832. private scg::IList<int> repeatedSint32_ = pbc::Lists<int>.Empty;
  1833. public scg::IList<int> RepeatedSint32List {
  1834. get { return repeatedSint32_; }
  1835. }
  1836. public int RepeatedSint32Count {
  1837. get { return repeatedSint32_.Count; }
  1838. }
  1839. public int GetRepeatedSint32(int index) {
  1840. return repeatedSint32_[index];
  1841. }
  1842. // repeated sint64 repeated_sint64 = 36;
  1843. private scg::IList<long> repeatedSint64_ = pbc::Lists<long>.Empty;
  1844. public scg::IList<long> RepeatedSint64List {
  1845. get { return repeatedSint64_; }
  1846. }
  1847. public int RepeatedSint64Count {
  1848. get { return repeatedSint64_.Count; }
  1849. }
  1850. public long GetRepeatedSint64(int index) {
  1851. return repeatedSint64_[index];
  1852. }
  1853. // repeated fixed32 repeated_fixed32 = 37;
  1854. private scg::IList<uint> repeatedFixed32_ = pbc::Lists<uint>.Empty;
  1855. public scg::IList<uint> RepeatedFixed32List {
  1856. get { return repeatedFixed32_; }
  1857. }
  1858. public int RepeatedFixed32Count {
  1859. get { return repeatedFixed32_.Count; }
  1860. }
  1861. public uint GetRepeatedFixed32(int index) {
  1862. return repeatedFixed32_[index];
  1863. }
  1864. // repeated fixed64 repeated_fixed64 = 38;
  1865. private scg::IList<ulong> repeatedFixed64_ = pbc::Lists<ulong>.Empty;
  1866. public scg::IList<ulong> RepeatedFixed64List {
  1867. get { return repeatedFixed64_; }
  1868. }
  1869. public int RepeatedFixed64Count {
  1870. get { return repeatedFixed64_.Count; }
  1871. }
  1872. public ulong GetRepeatedFixed64(int index) {
  1873. return repeatedFixed64_[index];
  1874. }
  1875. // repeated sfixed32 repeated_sfixed32 = 39;
  1876. private scg::IList<int> repeatedSfixed32_ = pbc::Lists<int>.Empty;
  1877. public scg::IList<int> RepeatedSfixed32List {
  1878. get { return repeatedSfixed32_; }
  1879. }
  1880. public int RepeatedSfixed32Count {
  1881. get { return repeatedSfixed32_.Count; }
  1882. }
  1883. public int GetRepeatedSfixed32(int index) {
  1884. return repeatedSfixed32_[index];
  1885. }
  1886. // repeated sfixed64 repeated_sfixed64 = 40;
  1887. private scg::IList<long> repeatedSfixed64_ = pbc::Lists<long>.Empty;
  1888. public scg::IList<long> RepeatedSfixed64List {
  1889. get { return repeatedSfixed64_; }
  1890. }
  1891. public int RepeatedSfixed64Count {
  1892. get { return repeatedSfixed64_.Count; }
  1893. }
  1894. public long GetRepeatedSfixed64(int index) {
  1895. return repeatedSfixed64_[index];
  1896. }
  1897. // repeated float repeated_float = 41;
  1898. private scg::IList<float> repeatedFloat_ = pbc::Lists<float>.Empty;
  1899. public scg::IList<float> RepeatedFloatList {
  1900. get { return repeatedFloat_; }
  1901. }
  1902. public int RepeatedFloatCount {
  1903. get { return repeatedFloat_.Count; }
  1904. }
  1905. public float GetRepeatedFloat(int index) {
  1906. return repeatedFloat_[index];
  1907. }
  1908. // repeated double repeated_double = 42;
  1909. private scg::IList<double> repeatedDouble_ = pbc::Lists<double>.Empty;
  1910. public scg::IList<double> RepeatedDoubleList {
  1911. get { return repeatedDouble_; }
  1912. }
  1913. public int RepeatedDoubleCount {
  1914. get { return repeatedDouble_.Count; }
  1915. }
  1916. public double GetRepeatedDouble(int index) {
  1917. return repeatedDouble_[index];
  1918. }
  1919. // repeated bool repeated_bool = 43;
  1920. private scg::IList<bool> repeatedBool_ = pbc::Lists<bool>.Empty;
  1921. public scg::IList<bool> RepeatedBoolList {
  1922. get { return repeatedBool_; }
  1923. }
  1924. public int RepeatedBoolCount {
  1925. get { return repeatedBool_.Count; }
  1926. }
  1927. public bool GetRepeatedBool(int index) {
  1928. return repeatedBool_[index];
  1929. }
  1930. // repeated string repeated_string = 44;
  1931. private scg::IList<string> repeatedString_ = pbc::Lists<string>.Empty;
  1932. public scg::IList<string> RepeatedStringList {
  1933. get { return repeatedString_; }
  1934. }
  1935. public int RepeatedStringCount {
  1936. get { return repeatedString_.Count; }
  1937. }
  1938. public string GetRepeatedString(int index) {
  1939. return repeatedString_[index];
  1940. }
  1941. // repeated bytes repeated_bytes = 45;
  1942. private scg::IList<pb::ByteString> repeatedBytes_ = pbc::Lists<pb::ByteString>.Empty;
  1943. public scg::IList<pb::ByteString> RepeatedBytesList {
  1944. get { return repeatedBytes_; }
  1945. }
  1946. public int RepeatedBytesCount {
  1947. get { return repeatedBytes_.Count; }
  1948. }
  1949. public pb::ByteString GetRepeatedBytes(int index) {
  1950. return repeatedBytes_[index];
  1951. }
  1952. // repeated group RepeatedGroup = 46 {
  1953. private scg::IList<self::TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty;
  1954. public scg::IList<self::TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
  1955. get { return repeatedGroup_; }
  1956. }
  1957. public int RepeatedGroupCount
  1958. { get { return repeatedGroup_.Count; }
  1959. }
  1960. public self::TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
  1961. return repeatedGroup_ [index];
  1962. }
  1963. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  1964. private scg::IList<self::TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty;
  1965. public scg::IList<self::TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
  1966. get { return repeatedNestedMessage_; }
  1967. }
  1968. public int RepeatedNestedMessageCount
  1969. { get { return repeatedNestedMessage_.Count; }
  1970. }
  1971. public self::TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
  1972. return repeatedNestedMessage_ [index];
  1973. }
  1974. // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
  1975. private scg::IList<self::ForeignMessage> repeatedForeignMessage_ = pbc::Lists<self::ForeignMessage>.Empty;
  1976. public scg::IList<self::ForeignMessage> RepeatedForeignMessageList {
  1977. get { return repeatedForeignMessage_; }
  1978. }
  1979. public int RepeatedForeignMessageCount
  1980. { get { return repeatedForeignMessage_.Count; }
  1981. }
  1982. public self::ForeignMessage GetRepeatedForeignMessage(int index) {
  1983. return repeatedForeignMessage_ [index];
  1984. }
  1985. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  1986. private scg::IList<self::ImportMessage> repeatedImportMessage_ = pbc::Lists<self::ImportMessage>.Empty;
  1987. public scg::IList<self::ImportMessage> RepeatedImportMessageList {
  1988. get { return repeatedImportMessage_; }
  1989. }
  1990. public int RepeatedImportMessageCount
  1991. { get { return repeatedImportMessage_.Count; }
  1992. }
  1993. public self::ImportMessage GetRepeatedImportMessage(int index) {
  1994. return repeatedImportMessage_ [index];
  1995. }
  1996. // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  1997. private scg::IList<self::TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new scg::List<self::TestAllTypes.Types.NestedEnum> ();
  1998. public scg.IList<self::TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
  1999. get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
  2000. }
  2001. public int RepeatedNestedEnumCount {
  2002. get { return repeatedNestedEnum_.Count; }
  2003. }
  2004. public self::TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
  2005. return repeatedNestedEnum_[index];
  2006. }
  2007. // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
  2008. private scg::IList<self::ForeignEnum> repeatedForeignEnum_ = new scg::List<self::ForeignEnum> ();
  2009. public scg.IList<self::ForeignEnum> RepeatedForeignEnumList {
  2010. get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
  2011. }
  2012. public int RepeatedForeignEnumCount {
  2013. get { return repeatedForeignEnum_.Count; }
  2014. }
  2015. public self::ForeignEnum GetRepeatedForeignEnum(int index) {
  2016. return repeatedForeignEnum_[index];
  2017. }
  2018. // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
  2019. private scg::IList<self::ImportEnum> repeatedImportEnum_ = new scg::List<self::ImportEnum> ();
  2020. public scg.IList<self::ImportEnum> RepeatedImportEnumList {
  2021. get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
  2022. }
  2023. public int RepeatedImportEnumCount {
  2024. get { return repeatedImportEnum_.Count; }
  2025. }
  2026. public self::ImportEnum GetRepeatedImportEnum(int index) {
  2027. return repeatedImportEnum_[index];
  2028. }
  2029. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  2030. private scg::IList<string> repeatedStringPiece_ = pbc::Lists<string>.Empty;
  2031. public scg::IList<string> RepeatedStringPieceList {
  2032. get { return repeatedStringPiece_; }
  2033. }
  2034. public int RepeatedStringPieceCount {
  2035. get { return repeatedStringPiece_.Count; }
  2036. }
  2037. public string GetRepeatedStringPiece(int index) {
  2038. return repeatedStringPiece_[index];
  2039. }
  2040. // repeated string repeated_cord = 55 [ctype = CORD];
  2041. private scg::IList<string> repeatedCord_ = pbc::Lists<string>.Empty;
  2042. public scg::IList<string> RepeatedCordList {
  2043. get { return repeatedCord_; }
  2044. }
  2045. public int RepeatedCordCount {
  2046. get { return repeatedCord_.Count; }
  2047. }
  2048. public string GetRepeatedCord(int index) {
  2049. return repeatedCord_[index];
  2050. }
  2051. // optional int32 default_int32 = 61 [default = 41];
  2052. private bool hasDefaultInt32;
  2053. private int defaultInt32_ = 41;
  2054. public bool HasDefaultInt32 {
  2055. get { return hasDefaultInt32; }
  2056. }
  2057. public int DefaultInt32 {
  2058. get { return defaultInt32_; }
  2059. }
  2060. // optional int64 default_int64 = 62 [default = 42];
  2061. private bool hasDefaultInt64;
  2062. private long defaultInt64_ = 42L;
  2063. public bool HasDefaultInt64 {
  2064. get { return hasDefaultInt64; }
  2065. }
  2066. public long DefaultInt64 {
  2067. get { return defaultInt64_; }
  2068. }
  2069. // optional uint32 default_uint32 = 63 [default = 43];
  2070. private bool hasDefaultUint32;
  2071. private uint defaultUint32_ = 43;
  2072. public bool HasDefaultUint32 {
  2073. get { return hasDefaultUint32; }
  2074. }
  2075. public uint DefaultUint32 {
  2076. get { return defaultUint32_; }
  2077. }
  2078. // optional uint64 default_uint64 = 64 [default = 44];
  2079. private bool hasDefaultUint64;
  2080. private ulong defaultUint64_ = 44UL;
  2081. public bool HasDefaultUint64 {
  2082. get { return hasDefaultUint64; }
  2083. }
  2084. public ulong DefaultUint64 {
  2085. get { return defaultUint64_; }
  2086. }
  2087. // optional sint32 default_sint32 = 65 [default = -45];
  2088. private bool hasDefaultSint32;
  2089. private int defaultSint32_ = -45;
  2090. public bool HasDefaultSint32 {
  2091. get { return hasDefaultSint32; }
  2092. }
  2093. public int DefaultSint32 {
  2094. get { return defaultSint32_; }
  2095. }
  2096. // optional sint64 default_sint64 = 66 [default = 46];
  2097. private bool hasDefaultSint64;
  2098. private long defaultSint64_ = 46L;
  2099. public bool HasDefaultSint64 {
  2100. get { return hasDefaultSint64; }
  2101. }
  2102. public long DefaultSint64 {
  2103. get { return defaultSint64_; }
  2104. }
  2105. // optional fixed32 default_fixed32 = 67 [default = 47];
  2106. private bool hasDefaultFixed32;
  2107. private uint defaultFixed32_ = 47;
  2108. public bool HasDefaultFixed32 {
  2109. get { return hasDefaultFixed32; }
  2110. }
  2111. public uint DefaultFixed32 {
  2112. get { return defaultFixed32_; }
  2113. }
  2114. // optional fixed64 default_fixed64 = 68 [default = 48];
  2115. private bool hasDefaultFixed64;
  2116. private ulong defaultFixed64_ = 48UL;
  2117. public bool HasDefaultFixed64 {
  2118. get { return hasDefaultFixed64; }
  2119. }
  2120. public ulong DefaultFixed64 {
  2121. get { return defaultFixed64_; }
  2122. }
  2123. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  2124. private bool hasDefaultSfixed32;
  2125. private int defaultSfixed32_ = 49;
  2126. public bool HasDefaultSfixed32 {
  2127. get { return hasDefaultSfixed32; }
  2128. }
  2129. public int DefaultSfixed32 {
  2130. get { return defaultSfixed32_; }
  2131. }
  2132. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  2133. private bool hasDefaultSfixed64;
  2134. private long defaultSfixed64_ = -50L;
  2135. public bool HasDefaultSfixed64 {
  2136. get { return hasDefaultSfixed64; }
  2137. }
  2138. public long DefaultSfixed64 {
  2139. get { return defaultSfixed64_; }
  2140. }
  2141. // optional float default_float = 71 [default = 51.5];
  2142. private bool hasDefaultFloat;
  2143. private float defaultFloat_ = 51.5F;
  2144. public bool HasDefaultFloat {
  2145. get { return hasDefaultFloat; }
  2146. }
  2147. public float DefaultFloat {
  2148. get { return defaultFloat_; }
  2149. }
  2150. // optional double default_double = 72 [default = 52000];
  2151. private bool hasDefaultDouble;
  2152. private double defaultDouble_ = 52000D;
  2153. public bool HasDefaultDouble {
  2154. get { return hasDefaultDouble; }
  2155. }
  2156. public double DefaultDouble {
  2157. get { return defaultDouble_; }
  2158. }
  2159. // optional bool default_bool = 73 [default = true];
  2160. private bool hasDefaultBool;
  2161. private bool defaultBool_ = true;
  2162. public bool HasDefaultBool {
  2163. get { return hasDefaultBool; }
  2164. }
  2165. public bool DefaultBool {
  2166. get { return defaultBool_; }
  2167. }
  2168. // optional string default_string = 74 [default = "hello"];
  2169. private bool hasDefaultString;
  2170. private string defaultString_ = "hello";
  2171. public bool HasDefaultString {
  2172. get { return hasDefaultString; }
  2173. }
  2174. public string DefaultString {
  2175. get { return defaultString_; }
  2176. }
  2177. // optional bytes default_bytes = 75 [default = "world"];
  2178. private bool hasDefaultBytes;
  2179. private pb::ByteString defaultBytes_ = ((pb::ByteString) self::TestAllTypes.Descriptor.Fields[62].DefaultValue);
  2180. public bool HasDefaultBytes {
  2181. get { return hasDefaultBytes; }
  2182. }
  2183. public pb::ByteString DefaultBytes {
  2184. get { return defaultBytes_; }
  2185. }
  2186. // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
  2187. private bool hasDefaultNestedEnum;
  2188. private self::TestAllTypes.Types.NestedEnum defaultNestedEnum_ = self::TestAllTypes.Types.NestedEnum.BAR;
  2189. public bool HasDefaultNestedEnum {
  2190. get { return hasDefaultNestedEnum; }
  2191. }
  2192. public self::TestAllTypes.Types.NestedEnum DefaultNestedEnum { get { return defaultNestedEnum_; }}
  2193. // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
  2194. private bool hasDefaultForeignEnum;
  2195. private self::ForeignEnum defaultForeignEnum_ = self::ForeignEnum.FOREIGN_BAR;
  2196. public bool HasDefaultForeignEnum {
  2197. get { return hasDefaultForeignEnum; }
  2198. }
  2199. public self::ForeignEnum DefaultForeignEnum { get { return defaultForeignEnum_; }}
  2200. // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
  2201. private bool hasDefaultImportEnum;
  2202. private self::ImportEnum defaultImportEnum_ = self::ImportEnum.IMPORT_BAR;
  2203. public bool HasDefaultImportEnum {
  2204. get { return hasDefaultImportEnum; }
  2205. }
  2206. public self::ImportEnum DefaultImportEnum { get { return defaultImportEnum_; }}
  2207. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  2208. private bool hasDefaultStringPiece;
  2209. private string defaultStringPiece_ = "abc";
  2210. public bool HasDefaultStringPiece {
  2211. get { return hasDefaultStringPiece; }
  2212. }
  2213. public string DefaultStringPiece {
  2214. get { return defaultStringPiece_; }
  2215. }
  2216. // optional string default_cord = 85 [default = "123", ctype = CORD];
  2217. private bool hasDefaultCord;
  2218. private string defaultCord_ = "123";
  2219. public bool HasDefaultCord {
  2220. get { return hasDefaultCord; }
  2221. }
  2222. public string DefaultCord {
  2223. get { return defaultCord_; }
  2224. }
  2225. public override bool IsInitialized {
  2226. get {
  2227. return true;
  2228. }
  2229. }
  2230. public override void WriteTo(pb::CodedOutputStream output) {
  2231. if (HasOptionalInt32) {
  2232. output.WriteInt32(1, OptionalInt32);
  2233. }
  2234. if (HasOptionalInt64) {
  2235. output.WriteInt64(2, OptionalInt64);
  2236. }
  2237. if (HasOptionalUint32) {
  2238. output.WriteUInt32(3, OptionalUint32);
  2239. }
  2240. if (HasOptionalUint64) {
  2241. output.WriteUInt64(4, OptionalUint64);
  2242. }
  2243. if (HasOptionalSint32) {
  2244. output.WriteSInt32(5, OptionalSint32);
  2245. }
  2246. if (HasOptionalSint64) {
  2247. output.WriteSInt64(6, OptionalSint64);
  2248. }
  2249. if (HasOptionalFixed32) {
  2250. output.WriteFixed32(7, OptionalFixed32);
  2251. }
  2252. if (HasOptionalFixed64) {
  2253. output.WriteFixed64(8, OptionalFixed64);
  2254. }
  2255. if (HasOptionalSfixed32) {
  2256. output.WriteSFixed32(9, OptionalSfixed32);
  2257. }
  2258. if (HasOptionalSfixed64) {
  2259. output.WriteSFixed64(10, OptionalSfixed64);
  2260. }
  2261. if (HasOptionalFloat) {
  2262. output.WriteFloat(11, OptionalFloat);
  2263. }
  2264. if (HasOptionalDouble) {
  2265. output.WriteDouble(12, OptionalDouble);
  2266. }
  2267. if (HasOptionalBool) {
  2268. output.WriteBool(13, OptionalBool);
  2269. }
  2270. if (HasOptionalString) {
  2271. output.WriteString(14, OptionalString);
  2272. }
  2273. if (HasOptionalBytes) {
  2274. output.WriteBytes(15, OptionalBytes);
  2275. }
  2276. if (HasOptionalGroup) {
  2277. output.WriteGroup(16, OptionalGroup);
  2278. }
  2279. if (HasOptionalNestedMessage) {
  2280. output.WriteMessage(18, OptionalNestedMessage);
  2281. }
  2282. if (HasOptionalForeignMessage) {
  2283. output.WriteMessage(19, OptionalForeignMessage);
  2284. }
  2285. if (HasOptionalImportMessage) {
  2286. output.WriteMessage(20, OptionalImportMessage);
  2287. }
  2288. if (HasOptionalNestedEnum) {
  2289. output.WriteEnum(21, (int) OptionalNestedEnum);
  2290. }
  2291. if (HasOptionalForeignEnum) {
  2292. output.WriteEnum(22, (int) OptionalForeignEnum);
  2293. }
  2294. if (HasOptionalImportEnum) {
  2295. output.WriteEnum(23, (int) OptionalImportEnum);
  2296. }
  2297. if (HasOptionalStringPiece) {
  2298. output.WriteString(24, OptionalStringPiece);
  2299. }
  2300. if (HasOptionalCord) {
  2301. output.WriteString(25, OptionalCord);
  2302. }
  2303. foreach (int element in RepeatedInt32List) {
  2304. output.WriteInt32(31, element);
  2305. }
  2306. foreach (long element in RepeatedInt64List) {
  2307. output.WriteInt64(32, element);
  2308. }
  2309. foreach (uint element in RepeatedUint32List) {
  2310. output.WriteUInt32(33, element);
  2311. }
  2312. foreach (ulong element in RepeatedUint64List) {
  2313. output.WriteUInt64(34, element);
  2314. }
  2315. foreach (int element in RepeatedSint32List) {
  2316. output.WriteSInt32(35, element);
  2317. }
  2318. foreach (long element in RepeatedSint64List) {
  2319. output.WriteSInt64(36, element);
  2320. }
  2321. foreach (uint element in RepeatedFixed32List) {
  2322. output.WriteFixed32(37, element);
  2323. }
  2324. foreach (ulong element in RepeatedFixed64List) {
  2325. output.WriteFixed64(38, element);
  2326. }
  2327. foreach (int element in RepeatedSfixed32List) {
  2328. output.WriteSFixed32(39, element);
  2329. }
  2330. foreach (long element in RepeatedSfixed64List) {
  2331. output.WriteSFixed64(40, element);
  2332. }
  2333. foreach (float element in RepeatedFloatList) {
  2334. output.WriteFloat(41, element);
  2335. }
  2336. foreach (double element in RepeatedDoubleList) {
  2337. output.WriteDouble(42, element);
  2338. }
  2339. foreach (bool element in RepeatedBoolList) {
  2340. output.WriteBool(43, element);
  2341. }
  2342. foreach (string element in RepeatedStringList) {
  2343. output.WriteString(44, element);
  2344. }
  2345. foreach (pb::ByteString element in RepeatedBytesList) {
  2346. output.WriteBytes(45, element);
  2347. }
  2348. foreach (self::TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
  2349. output.WriteGroup(46, element);
  2350. }
  2351. foreach (self::TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
  2352. output.WriteMessage(48, element);
  2353. }
  2354. foreach (self::ForeignMessage element in RepeatedForeignMessageList) {
  2355. output.WriteMessage(49, element);
  2356. }
  2357. foreach (self::ImportMessage element in RepeatedImportMessageList) {
  2358. output.WriteMessage(50, element);
  2359. }
  2360. foreach (self::TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) {
  2361. output.WriteEnum(51, (int) element);
  2362. }
  2363. foreach (self::ForeignEnum element in RepeatedForeignEnumList) {
  2364. output.WriteEnum(52, (int) element);
  2365. }
  2366. foreach (self::ImportEnum element in RepeatedImportEnumList) {
  2367. output.WriteEnum(53, (int) element);
  2368. }
  2369. foreach (string element in RepeatedStringPieceList) {
  2370. output.WriteString(54, element);
  2371. }
  2372. foreach (string element in RepeatedCordList) {
  2373. output.WriteString(55, element);
  2374. }
  2375. if (HasDefaultInt32) {
  2376. output.WriteInt32(61, DefaultInt32);
  2377. }
  2378. if (HasDefaultInt64) {
  2379. output.WriteInt64(62, DefaultInt64);
  2380. }
  2381. if (HasDefaultUint32) {
  2382. output.WriteUInt32(63, DefaultUint32);
  2383. }
  2384. if (HasDefaultUint64) {
  2385. output.WriteUInt64(64, DefaultUint64);
  2386. }
  2387. if (HasDefaultSint32) {
  2388. output.WriteSInt32(65, DefaultSint32);
  2389. }
  2390. if (HasDefaultSint64) {
  2391. output.WriteSInt64(66, DefaultSint64);
  2392. }
  2393. if (HasDefaultFixed32) {
  2394. output.WriteFixed32(67, DefaultFixed32);
  2395. }
  2396. if (HasDefaultFixed64) {
  2397. output.WriteFixed64(68, DefaultFixed64);
  2398. }
  2399. if (HasDefaultSfixed32) {
  2400. output.WriteSFixed32(69, DefaultSfixed32);
  2401. }
  2402. if (HasDefaultSfixed64) {
  2403. output.WriteSFixed64(70, DefaultSfixed64);
  2404. }
  2405. if (HasDefaultFloat) {
  2406. output.WriteFloat(71, DefaultFloat);
  2407. }
  2408. if (HasDefaultDouble) {
  2409. output.WriteDouble(72, DefaultDouble);
  2410. }
  2411. if (HasDefaultBool) {
  2412. output.WriteBool(73, DefaultBool);
  2413. }
  2414. if (HasDefaultString) {
  2415. output.WriteString(74, DefaultString);
  2416. }
  2417. if (HasDefaultBytes) {
  2418. output.WriteBytes(75, DefaultBytes);
  2419. }
  2420. if (HasDefaultNestedEnum) {
  2421. output.WriteEnum(81, (int) DefaultNestedEnum);
  2422. }
  2423. if (HasDefaultForeignEnum) {
  2424. output.WriteEnum(82, (int) DefaultForeignEnum);
  2425. }
  2426. if (HasDefaultImportEnum) {
  2427. output.WriteEnum(83, (int) DefaultImportEnum);
  2428. }
  2429. if (HasDefaultStringPiece) {
  2430. output.WriteString(84, DefaultStringPiece);
  2431. }
  2432. if (HasDefaultCord) {
  2433. output.WriteString(85, DefaultCord);
  2434. }
  2435. UnknownFields.WriteTo(output);
  2436. }
  2437. private int memoizedSerializedSize = -1;
  2438. public override int SerializedSize {
  2439. get {
  2440. int size = memoizedSerializedSize;
  2441. if (size != -1) return size;
  2442. size = 0;
  2443. if (HasOptionalInt32) {
  2444. size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32);
  2445. }
  2446. if (HasOptionalInt64) {
  2447. size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64);
  2448. }
  2449. if (HasOptionalUint32) {
  2450. size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32);
  2451. }
  2452. if (HasOptionalUint64) {
  2453. size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64);
  2454. }
  2455. if (HasOptionalSint32) {
  2456. size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32);
  2457. }
  2458. if (HasOptionalSint64) {
  2459. size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64);
  2460. }
  2461. if (HasOptionalFixed32) {
  2462. size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32);
  2463. }
  2464. if (HasOptionalFixed64) {
  2465. size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64);
  2466. }
  2467. if (HasOptionalSfixed32) {
  2468. size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32);
  2469. }
  2470. if (HasOptionalSfixed64) {
  2471. size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64);
  2472. }
  2473. if (HasOptionalFloat) {
  2474. size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat);
  2475. }
  2476. if (HasOptionalDouble) {
  2477. size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble);
  2478. }
  2479. if (HasOptionalBool) {
  2480. size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool);
  2481. }
  2482. if (HasOptionalString) {
  2483. size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString);
  2484. }
  2485. if (HasOptionalBytes) {
  2486. size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes);
  2487. }
  2488. if (HasOptionalGroup) {
  2489. size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup);
  2490. }
  2491. if (HasOptionalNestedMessage) {
  2492. size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage);
  2493. }
  2494. if (HasOptionalForeignMessage) {
  2495. size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage);
  2496. }
  2497. if (HasOptionalImportMessage) {
  2498. size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage);
  2499. }
  2500. if (HasOptionalNestedEnum) {
  2501. size += pb::CodedOutputStream
  2502. .ComputeEnumSize(21, (int) OptionalNestedEnum);
  2503. }
  2504. if (HasOptionalForeignEnum) {
  2505. size += pb::CodedOutputStream
  2506. .ComputeEnumSize(22, (int) OptionalForeignEnum);
  2507. }
  2508. if (HasOptionalImportEnum) {
  2509. size += pb::CodedOutputStream
  2510. .ComputeEnumSize(23, (int) OptionalImportEnum);
  2511. }
  2512. if (HasOptionalStringPiece) {
  2513. size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece);
  2514. }
  2515. if (HasOptionalCord) {
  2516. size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord);
  2517. }
  2518. foreach (int element in RepeatedInt32List) {
  2519. size += pb::CodedOutputStream
  2520. .ComputeInt32Size(31, element);
  2521. }
  2522. foreach (long element in RepeatedInt64List) {
  2523. size += pb::CodedOutputStream
  2524. .ComputeInt64Size(32, element);
  2525. }
  2526. foreach (uint element in RepeatedUint32List) {
  2527. size += pb::CodedOutputStream
  2528. .ComputeUInt32Size(33, element);
  2529. }
  2530. foreach (ulong element in RepeatedUint64List) {
  2531. size += pb::CodedOutputStream
  2532. .ComputeUInt64Size(34, element);
  2533. }
  2534. foreach (int element in RepeatedSint32List) {
  2535. size += pb::CodedOutputStream
  2536. .ComputeSInt32Size(35, element);
  2537. }
  2538. foreach (long element in RepeatedSint64List) {
  2539. size += pb::CodedOutputStream
  2540. .ComputeSInt64Size(36, element);
  2541. }
  2542. foreach (uint element in RepeatedFixed32List) {
  2543. size += pb::CodedOutputStream
  2544. .ComputeFixed32Size(37, element);
  2545. }
  2546. foreach (ulong element in RepeatedFixed64List) {
  2547. size += pb::CodedOutputStream
  2548. .ComputeFixed64Size(38, element);
  2549. }
  2550. foreach (int element in RepeatedSfixed32List) {
  2551. size += pb::CodedOutputStream
  2552. .ComputeSFixed32Size(39, element);
  2553. }
  2554. foreach (long element in RepeatedSfixed64List) {
  2555. size += pb::CodedOutputStream
  2556. .ComputeSFixed64Size(40, element);
  2557. }
  2558. foreach (float element in RepeatedFloatList) {
  2559. size += pb::CodedOutputStream
  2560. .ComputeFloatSize(41, element);
  2561. }
  2562. foreach (double element in RepeatedDoubleList) {
  2563. size += pb::CodedOutputStream
  2564. .ComputeDoubleSize(42, element);
  2565. }
  2566. foreach (bool element in RepeatedBoolList) {
  2567. size += pb::CodedOutputStream
  2568. .ComputeBoolSize(43, element);
  2569. }
  2570. foreach (string element in RepeatedStringList) {
  2571. size += pb::CodedOutputStream
  2572. .ComputeStringSize(44, element);
  2573. }
  2574. foreach (pb::ByteString element in RepeatedBytesList) {
  2575. size += pb::CodedOutputStream
  2576. .ComputeBytesSize(45, element);
  2577. }
  2578. foreach (self::TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
  2579. size += pb::CodedOutputStream.ComputeGroupSize(46, element);
  2580. }
  2581. foreach (self::TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
  2582. size += pb::CodedOutputStream.ComputeMessageSize(48, element);
  2583. }
  2584. foreach (self::ForeignMessage element in RepeatedForeignMessageList) {
  2585. size += pb::CodedOutputStream.ComputeMessageSize(49, element);
  2586. }
  2587. foreach (self::ImportMessage element in RepeatedImportMessageList) {
  2588. size += pb::CodedOutputStream.ComputeMessageSize(50, element);
  2589. }
  2590. foreach (self::TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) {
  2591. size += pb::CodedOutputStream
  2592. .ComputeEnumSize(51, (int) element);
  2593. }
  2594. foreach (self::ForeignEnum element in RepeatedForeignEnumList) {
  2595. size += pb::CodedOutputStream
  2596. .ComputeEnumSize(52, (int) element);
  2597. }
  2598. foreach (self::ImportEnum element in RepeatedImportEnumList) {
  2599. size += pb::CodedOutputStream
  2600. .ComputeEnumSize(53, (int) element);
  2601. }
  2602. foreach (string element in RepeatedStringPieceList) {
  2603. size += pb::CodedOutputStream
  2604. .ComputeStringSize(54, element);
  2605. }
  2606. foreach (string element in RepeatedCordList) {
  2607. size += pb::CodedOutputStream
  2608. .ComputeStringSize(55, element);
  2609. }
  2610. if (HasDefaultInt32) {
  2611. size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32);
  2612. }
  2613. if (HasDefaultInt64) {
  2614. size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64);
  2615. }
  2616. if (HasDefaultUint32) {
  2617. size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32);
  2618. }
  2619. if (HasDefaultUint64) {
  2620. size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64);
  2621. }
  2622. if (HasDefaultSint32) {
  2623. size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32);
  2624. }
  2625. if (HasDefaultSint64) {
  2626. size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64);
  2627. }
  2628. if (HasDefaultFixed32) {
  2629. size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32);
  2630. }
  2631. if (HasDefaultFixed64) {
  2632. size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64);
  2633. }
  2634. if (HasDefaultSfixed32) {
  2635. size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32);
  2636. }
  2637. if (HasDefaultSfixed64) {
  2638. size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64);
  2639. }
  2640. if (HasDefaultFloat) {
  2641. size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat);
  2642. }
  2643. if (HasDefaultDouble) {
  2644. size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble);
  2645. }
  2646. if (HasDefaultBool) {
  2647. size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool);
  2648. }
  2649. if (HasDefaultString) {
  2650. size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString);
  2651. }
  2652. if (HasDefaultBytes) {
  2653. size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes);
  2654. }
  2655. if (HasDefaultNestedEnum) {
  2656. size += pb::CodedOutputStream
  2657. .ComputeEnumSize(81, (int) DefaultNestedEnum);
  2658. }
  2659. if (HasDefaultForeignEnum) {
  2660. size += pb::CodedOutputStream
  2661. .ComputeEnumSize(82, (int) DefaultForeignEnum);
  2662. }
  2663. if (HasDefaultImportEnum) {
  2664. size += pb::CodedOutputStream
  2665. .ComputeEnumSize(83, (int) DefaultImportEnum);
  2666. }
  2667. if (HasDefaultStringPiece) {
  2668. size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece);
  2669. }
  2670. if (HasDefaultCord) {
  2671. size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord);
  2672. }
  2673. size += UnknownFields.SerializedSize;
  2674. memoizedSerializedSize = size;
  2675. return size;
  2676. }
  2677. }
  2678. public static self::TestAllTypes ParseFrom(pb::ByteString data) {
  2679. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2680. }
  2681. public static self::TestAllTypes ParseFrom(pb::ByteString data,
  2682. pb::ExtensionRegistry extensionRegistry) {
  2683. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2684. .BuildParsed();
  2685. }
  2686. public static self::TestAllTypes ParseFrom(byte[] data) {
  2687. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2688. }
  2689. public static self::TestAllTypes ParseFrom(byte[] data,
  2690. pb::ExtensionRegistry extensionRegistry) {
  2691. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2692. .BuildParsed();
  2693. }
  2694. public static self::TestAllTypes ParseFrom(global::System.IO.Stream input) {
  2695. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2696. }
  2697. public static self::TestAllTypes ParseFrom(
  2698. global::System.IO.Stream input,
  2699. pb::ExtensionRegistry extensionRegistry) {
  2700. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2701. .BuildParsed();
  2702. }
  2703. public static self::TestAllTypes ParseFrom(pb::CodedInputStream input) {
  2704. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2705. }
  2706. public static self::TestAllTypes ParseFrom(pb::CodedInputStream input,
  2707. pb::ExtensionRegistry extensionRegistry) {
  2708. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2709. .BuildParsed();
  2710. }
  2711. public static Builder CreateBuilder() { return new Builder(); }
  2712. public override Builder CreateBuilderForType() { return new Builder(); }
  2713. public static Builder CreateBuilder(self::TestAllTypes prototype) {
  2714. return (Builder) new Builder().MergeFrom(prototype);
  2715. }
  2716. public sealed partial class Builder : pb::GeneratedBuilder<self::TestAllTypes, Builder> {
  2717. protected override Builder ThisBuilder {
  2718. get { return this; }
  2719. }
  2720. // Construct using self::TestAllTypes.CreateBuilder()
  2721. internal Builder() {}
  2722. self::TestAllTypes result = new self::TestAllTypes();
  2723. protected override self::TestAllTypes MessageBeingBuilt {
  2724. get { return result; }
  2725. }
  2726. public override Builder Clear() {
  2727. result = new self::TestAllTypes();
  2728. return this;
  2729. }
  2730. public override Builder Clone() {
  2731. return new Builder().MergeFrom(result);
  2732. }
  2733. public override pbd::MessageDescriptor DescriptorForType {
  2734. get { return self::TestAllTypes.Descriptor; }
  2735. }
  2736. public override self::TestAllTypes DefaultInstanceForType {
  2737. get { return self::TestAllTypes.DefaultInstance; }
  2738. }
  2739. public override self::TestAllTypes BuildPartial() {
  2740. result.repeatedInt32_ = pbc::Lists<int>.AsReadOnly(result.repeatedInt32_);
  2741. result.repeatedInt64_ = pbc::Lists<long>.AsReadOnly(result.repeatedInt64_);
  2742. result.repeatedUint32_ = pbc::Lists<uint>.AsReadOnly(result.repeatedUint32_);
  2743. result.repeatedUint64_ = pbc::Lists<ulong>.AsReadOnly(result.repeatedUint64_);
  2744. result.repeatedSint32_ = pbc::Lists<int>.AsReadOnly(result.repeatedSint32_);
  2745. result.repeatedSint64_ = pbc::Lists<long>.AsReadOnly(result.repeatedSint64_);
  2746. result.repeatedFixed32_ = pbc::Lists<uint>.AsReadOnly(result.repeatedFixed32_);
  2747. result.repeatedFixed64_ = pbc::Lists<ulong>.AsReadOnly(result.repeatedFixed64_);
  2748. result.repeatedSfixed32_ = pbc::Lists<int>.AsReadOnly(result.repeatedSfixed32_);
  2749. result.repeatedSfixed64_ = pbc::Lists<long>.AsReadOnly(result.repeatedSfixed64_);
  2750. result.repeatedFloat_ = pbc::Lists<float>.AsReadOnly(result.repeatedFloat_);
  2751. result.repeatedDouble_ = pbc::Lists<double>.AsReadOnly(result.repeatedDouble_);
  2752. result.repeatedBool_ = pbc::Lists<bool>.AsReadOnly(result.repeatedBool_);
  2753. result.repeatedString_ = pbc::Lists<string>.AsReadOnly(result.repeatedString_);
  2754. result.repeatedBytes_ = pbc::Lists<pb::ByteString>.AsReadOnly(result.repeatedBytes_);
  2755. if (result.repeatedGroup_ != pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty) {
  2756. result.repeatedGroup_ = pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.AsReadOnly(result.repeatedGroup_);
  2757. }
  2758. if (result.repeatedNestedMessage_ != pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty) {
  2759. result.repeatedNestedMessage_ = pbc::Lists<self::TestAllTypes.Types.NestedMessage>.AsReadOnly(result.repeatedNestedMessage_);
  2760. }
  2761. if (result.repeatedForeignMessage_ != pbc::Lists<self::ForeignMessage>.Empty) {
  2762. result.repeatedForeignMessage_ = pbc::Lists<self::ForeignMessage>.AsReadOnly(result.repeatedForeignMessage_);
  2763. }
  2764. if (result.repeatedImportMessage_ != pbc::Lists<self::ImportMessage>.Empty) {
  2765. result.repeatedImportMessage_ = pbc::Lists<self::ImportMessage>.AsReadOnly(result.repeatedImportMessage_);
  2766. }
  2767. result.repeatedNestedEnum_ = pbc::Lists.AsReadOnly(result.repeatedNestedEnum_);
  2768. result.repeatedForeignEnum_ = pbc::Lists.AsReadOnly(result.repeatedForeignEnum_);
  2769. result.repeatedImportEnum_ = pbc::Lists.AsReadOnly(result.repeatedImportEnum_);
  2770. result.repeatedStringPiece_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringPiece_);
  2771. result.repeatedCord_ = pbc::Lists<string>.AsReadOnly(result.repeatedCord_);
  2772. self::TestAllTypes returnMe = result;
  2773. result = null;
  2774. return returnMe;
  2775. }
  2776. public override Builder MergeFrom(pb::IMessage other) {
  2777. if (other is self::TestAllTypes) {
  2778. return MergeFrom((self::TestAllTypes) other);
  2779. } else {
  2780. base.MergeFrom(other);
  2781. return this;
  2782. }
  2783. }
  2784. public override Builder MergeFrom(self::TestAllTypes other) {
  2785. if (other == self::TestAllTypes.DefaultInstance) return this;
  2786. if (other.HasOptionalInt32) {
  2787. OptionalInt32 = other.OptionalInt32;
  2788. }
  2789. if (other.HasOptionalInt64) {
  2790. OptionalInt64 = other.OptionalInt64;
  2791. }
  2792. if (other.HasOptionalUint32) {
  2793. OptionalUint32 = other.OptionalUint32;
  2794. }
  2795. if (other.HasOptionalUint64) {
  2796. OptionalUint64 = other.OptionalUint64;
  2797. }
  2798. if (other.HasOptionalSint32) {
  2799. OptionalSint32 = other.OptionalSint32;
  2800. }
  2801. if (other.HasOptionalSint64) {
  2802. OptionalSint64 = other.OptionalSint64;
  2803. }
  2804. if (other.HasOptionalFixed32) {
  2805. OptionalFixed32 = other.OptionalFixed32;
  2806. }
  2807. if (other.HasOptionalFixed64) {
  2808. OptionalFixed64 = other.OptionalFixed64;
  2809. }
  2810. if (other.HasOptionalSfixed32) {
  2811. OptionalSfixed32 = other.OptionalSfixed32;
  2812. }
  2813. if (other.HasOptionalSfixed64) {
  2814. OptionalSfixed64 = other.OptionalSfixed64;
  2815. }
  2816. if (other.HasOptionalFloat) {
  2817. OptionalFloat = other.OptionalFloat;
  2818. }
  2819. if (other.HasOptionalDouble) {
  2820. OptionalDouble = other.OptionalDouble;
  2821. }
  2822. if (other.HasOptionalBool) {
  2823. OptionalBool = other.OptionalBool;
  2824. }
  2825. if (other.HasOptionalString) {
  2826. OptionalString = other.OptionalString;
  2827. }
  2828. if (other.HasOptionalBytes) {
  2829. OptionalBytes = other.OptionalBytes;
  2830. }
  2831. if (other.HasOptionalGroup) {
  2832. MergeOptionalGroup(other.OptionalGroup);
  2833. }
  2834. if (other.HasOptionalNestedMessage) {
  2835. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  2836. }
  2837. if (other.HasOptionalForeignMessage) {
  2838. MergeOptionalForeignMessage(other.OptionalForeignMessage);
  2839. }
  2840. if (other.HasOptionalImportMessage) {
  2841. MergeOptionalImportMessage(other.OptionalImportMessage);
  2842. }
  2843. if (other.HasOptionalNestedEnum) {
  2844. OptionalNestedEnum = other.OptionalNestedEnum;
  2845. }
  2846. if (other.HasOptionalForeignEnum) {
  2847. OptionalForeignEnum = other.OptionalForeignEnum;
  2848. }
  2849. if (other.HasOptionalImportEnum) {
  2850. OptionalImportEnum = other.OptionalImportEnum;
  2851. }
  2852. if (other.HasOptionalStringPiece) {
  2853. OptionalStringPiece = other.OptionalStringPiece;
  2854. }
  2855. if (other.HasOptionalCord) {
  2856. OptionalCord = other.OptionalCord;
  2857. }
  2858. if (other.repeatedInt32_.Count != 0) {
  2859. if (result.repeatedInt32_.Count == 0) {
  2860. result.repeatedInt32_ = new scg::List<int>();
  2861. }
  2862. base.AddRange(other.repeatedInt32_, result.repeatedInt32_);
  2863. }
  2864. if (other.repeatedInt64_.Count != 0) {
  2865. if (result.repeatedInt64_.Count == 0) {
  2866. result.repeatedInt64_ = new scg::List<long>();
  2867. }
  2868. base.AddRange(other.repeatedInt64_, result.repeatedInt64_);
  2869. }
  2870. if (other.repeatedUint32_.Count != 0) {
  2871. if (result.repeatedUint32_.Count == 0) {
  2872. result.repeatedUint32_ = new scg::List<uint>();
  2873. }
  2874. base.AddRange(other.repeatedUint32_, result.repeatedUint32_);
  2875. }
  2876. if (other.repeatedUint64_.Count != 0) {
  2877. if (result.repeatedUint64_.Count == 0) {
  2878. result.repeatedUint64_ = new scg::List<ulong>();
  2879. }
  2880. base.AddRange(other.repeatedUint64_, result.repeatedUint64_);
  2881. }
  2882. if (other.repeatedSint32_.Count != 0) {
  2883. if (result.repeatedSint32_.Count == 0) {
  2884. result.repeatedSint32_ = new scg::List<int>();
  2885. }
  2886. base.AddRange(other.repeatedSint32_, result.repeatedSint32_);
  2887. }
  2888. if (other.repeatedSint64_.Count != 0) {
  2889. if (result.repeatedSint64_.Count == 0) {
  2890. result.repeatedSint64_ = new scg::List<long>();
  2891. }
  2892. base.AddRange(other.repeatedSint64_, result.repeatedSint64_);
  2893. }
  2894. if (other.repeatedFixed32_.Count != 0) {
  2895. if (result.repeatedFixed32_.Count == 0) {
  2896. result.repeatedFixed32_ = new scg::List<uint>();
  2897. }
  2898. base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_);
  2899. }
  2900. if (other.repeatedFixed64_.Count != 0) {
  2901. if (result.repeatedFixed64_.Count == 0) {
  2902. result.repeatedFixed64_ = new scg::List<ulong>();
  2903. }
  2904. base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_);
  2905. }
  2906. if (other.repeatedSfixed32_.Count != 0) {
  2907. if (result.repeatedSfixed32_.Count == 0) {
  2908. result.repeatedSfixed32_ = new scg::List<int>();
  2909. }
  2910. base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_);
  2911. }
  2912. if (other.repeatedSfixed64_.Count != 0) {
  2913. if (result.repeatedSfixed64_.Count == 0) {
  2914. result.repeatedSfixed64_ = new scg::List<long>();
  2915. }
  2916. base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_);
  2917. }
  2918. if (other.repeatedFloat_.Count != 0) {
  2919. if (result.repeatedFloat_.Count == 0) {
  2920. result.repeatedFloat_ = new scg::List<float>();
  2921. }
  2922. base.AddRange(other.repeatedFloat_, result.repeatedFloat_);
  2923. }
  2924. if (other.repeatedDouble_.Count != 0) {
  2925. if (result.repeatedDouble_.Count == 0) {
  2926. result.repeatedDouble_ = new scg::List<double>();
  2927. }
  2928. base.AddRange(other.repeatedDouble_, result.repeatedDouble_);
  2929. }
  2930. if (other.repeatedBool_.Count != 0) {
  2931. if (result.repeatedBool_.Count == 0) {
  2932. result.repeatedBool_ = new scg::List<bool>();
  2933. }
  2934. base.AddRange(other.repeatedBool_, result.repeatedBool_);
  2935. }
  2936. if (other.repeatedString_.Count != 0) {
  2937. if (result.repeatedString_.Count == 0) {
  2938. result.repeatedString_ = new scg::List<string>();
  2939. }
  2940. base.AddRange(other.repeatedString_, result.repeatedString_);
  2941. }
  2942. if (other.repeatedBytes_.Count != 0) {
  2943. if (result.repeatedBytes_.Count == 0) {
  2944. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  2945. }
  2946. base.AddRange(other.repeatedBytes_, result.repeatedBytes_);
  2947. }
  2948. if (other.repeatedGroup_.Count != 0) {
  2949. if (result.repeatedGroup_.Count == 0) {
  2950. result.repeatedGroup_ = new scg::List<self::TestAllTypes.Types.RepeatedGroup>();
  2951. }
  2952. base.AddRange(other.repeatedGroup_, result.repeatedGroup_);
  2953. }
  2954. if (other.repeatedNestedMessage_.Count != 0) {
  2955. if (result.repeatedNestedMessage_.Count == 0) {
  2956. result.repeatedNestedMessage_ = new scg::List<self::TestAllTypes.Types.NestedMessage>();
  2957. }
  2958. base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_);
  2959. }
  2960. if (other.repeatedForeignMessage_.Count != 0) {
  2961. if (result.repeatedForeignMessage_.Count == 0) {
  2962. result.repeatedForeignMessage_ = new scg::List<self::ForeignMessage>();
  2963. }
  2964. base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_);
  2965. }
  2966. if (other.repeatedImportMessage_.Count != 0) {
  2967. if (result.repeatedImportMessage_.Count == 0) {
  2968. result.repeatedImportMessage_ = new scg::List<self::ImportMessage>();
  2969. }
  2970. base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_);
  2971. }
  2972. if (other.repeatedNestedEnum_.Count != 0) {
  2973. if (result.repeatedNestedEnum_.Count == 0) {
  2974. result.repeatedNestedEnum_ = new scg::List<self::TestAllTypes.Types.NestedEnum>();
  2975. }
  2976. base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_);
  2977. }
  2978. if (other.repeatedForeignEnum_.Count != 0) {
  2979. if (result.repeatedForeignEnum_.Count == 0) {
  2980. result.repeatedForeignEnum_ = new scg::List<self::ForeignEnum>();
  2981. }
  2982. base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_);
  2983. }
  2984. if (other.repeatedImportEnum_.Count != 0) {
  2985. if (result.repeatedImportEnum_.Count == 0) {
  2986. result.repeatedImportEnum_ = new scg::List<self::ImportEnum>();
  2987. }
  2988. base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_);
  2989. }
  2990. if (other.repeatedStringPiece_.Count != 0) {
  2991. if (result.repeatedStringPiece_.Count == 0) {
  2992. result.repeatedStringPiece_ = new scg::List<string>();
  2993. }
  2994. base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_);
  2995. }
  2996. if (other.repeatedCord_.Count != 0) {
  2997. if (result.repeatedCord_.Count == 0) {
  2998. result.repeatedCord_ = new scg::List<string>();
  2999. }
  3000. base.AddRange(other.repeatedCord_, result.repeatedCord_);
  3001. }
  3002. if (other.HasDefaultInt32) {
  3003. DefaultInt32 = other.DefaultInt32;
  3004. }
  3005. if (other.HasDefaultInt64) {
  3006. DefaultInt64 = other.DefaultInt64;
  3007. }
  3008. if (other.HasDefaultUint32) {
  3009. DefaultUint32 = other.DefaultUint32;
  3010. }
  3011. if (other.HasDefaultUint64) {
  3012. DefaultUint64 = other.DefaultUint64;
  3013. }
  3014. if (other.HasDefaultSint32) {
  3015. DefaultSint32 = other.DefaultSint32;
  3016. }
  3017. if (other.HasDefaultSint64) {
  3018. DefaultSint64 = other.DefaultSint64;
  3019. }
  3020. if (other.HasDefaultFixed32) {
  3021. DefaultFixed32 = other.DefaultFixed32;
  3022. }
  3023. if (other.HasDefaultFixed64) {
  3024. DefaultFixed64 = other.DefaultFixed64;
  3025. }
  3026. if (other.HasDefaultSfixed32) {
  3027. DefaultSfixed32 = other.DefaultSfixed32;
  3028. }
  3029. if (other.HasDefaultSfixed64) {
  3030. DefaultSfixed64 = other.DefaultSfixed64;
  3031. }
  3032. if (other.HasDefaultFloat) {
  3033. DefaultFloat = other.DefaultFloat;
  3034. }
  3035. if (other.HasDefaultDouble) {
  3036. DefaultDouble = other.DefaultDouble;
  3037. }
  3038. if (other.HasDefaultBool) {
  3039. DefaultBool = other.DefaultBool;
  3040. }
  3041. if (other.HasDefaultString) {
  3042. DefaultString = other.DefaultString;
  3043. }
  3044. if (other.HasDefaultBytes) {
  3045. DefaultBytes = other.DefaultBytes;
  3046. }
  3047. if (other.HasDefaultNestedEnum) {
  3048. DefaultNestedEnum = other.DefaultNestedEnum;
  3049. }
  3050. if (other.HasDefaultForeignEnum) {
  3051. DefaultForeignEnum = other.DefaultForeignEnum;
  3052. }
  3053. if (other.HasDefaultImportEnum) {
  3054. DefaultImportEnum = other.DefaultImportEnum;
  3055. }
  3056. if (other.HasDefaultStringPiece) {
  3057. DefaultStringPiece = other.DefaultStringPiece;
  3058. }
  3059. if (other.HasDefaultCord) {
  3060. DefaultCord = other.DefaultCord;
  3061. }
  3062. this.MergeUnknownFields(other.UnknownFields);
  3063. return this;
  3064. }
  3065. public override Builder MergeFrom(pb::CodedInputStream input) {
  3066. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  3067. }
  3068. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3069. pb::UnknownFieldSet.Builder unknownFields =
  3070. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3071. while (true) {
  3072. uint tag = input.ReadTag();
  3073. switch (tag) {
  3074. case 0:
  3075. this.UnknownFields = unknownFields.Build();
  3076. return this;
  3077. default: {
  3078. if (!ParseUnknownField(input, unknownFields,
  3079. extensionRegistry, tag)) {
  3080. this.UnknownFields = unknownFields.Build();
  3081. return this;
  3082. }
  3083. break;
  3084. }
  3085. case 8: {
  3086. OptionalInt32 = input.ReadInt32();
  3087. break;
  3088. }
  3089. case 16: {
  3090. OptionalInt64 = input.ReadInt64();
  3091. break;
  3092. }
  3093. case 24: {
  3094. OptionalUint32 = input.ReadUInt32();
  3095. break;
  3096. }
  3097. case 32: {
  3098. OptionalUint64 = input.ReadUInt64();
  3099. break;
  3100. }
  3101. case 40: {
  3102. OptionalSint32 = input.ReadSInt32();
  3103. break;
  3104. }
  3105. case 48: {
  3106. OptionalSint64 = input.ReadSInt64();
  3107. break;
  3108. }
  3109. case 61: {
  3110. OptionalFixed32 = input.ReadFixed32();
  3111. break;
  3112. }
  3113. case 65: {
  3114. OptionalFixed64 = input.ReadFixed64();
  3115. break;
  3116. }
  3117. case 77: {
  3118. OptionalSfixed32 = input.ReadSFixed32();
  3119. break;
  3120. }
  3121. case 81: {
  3122. OptionalSfixed64 = input.ReadSFixed64();
  3123. break;
  3124. }
  3125. case 93: {
  3126. OptionalFloat = input.ReadFloat();
  3127. break;
  3128. }
  3129. case 97: {
  3130. OptionalDouble = input.ReadDouble();
  3131. break;
  3132. }
  3133. case 104: {
  3134. OptionalBool = input.ReadBool();
  3135. break;
  3136. }
  3137. case 114: {
  3138. OptionalString = input.ReadString();
  3139. break;
  3140. }
  3141. case 122: {
  3142. OptionalBytes = input.ReadBytes();
  3143. break;
  3144. }
  3145. case 131: {
  3146. self::TestAllTypes.Types.OptionalGroup.Builder subBuilder = self::TestAllTypes.Types.OptionalGroup.CreateBuilder();
  3147. if (HasOptionalGroup) {
  3148. subBuilder.MergeFrom(OptionalGroup);
  3149. }
  3150. input.ReadGroup(16, subBuilder, extensionRegistry);
  3151. OptionalGroup = subBuilder.BuildPartial();
  3152. break;
  3153. }
  3154. case 146: {
  3155. self::TestAllTypes.Types.NestedMessage.Builder subBuilder = self::TestAllTypes.Types.NestedMessage.CreateBuilder();
  3156. if (HasOptionalNestedMessage) {
  3157. subBuilder.MergeFrom(OptionalNestedMessage);
  3158. }
  3159. input.ReadMessage(subBuilder, extensionRegistry);
  3160. OptionalNestedMessage = subBuilder.BuildPartial();
  3161. break;
  3162. }
  3163. case 154: {
  3164. self::ForeignMessage.Builder subBuilder = self::ForeignMessage.CreateBuilder();
  3165. if (HasOptionalForeignMessage) {
  3166. subBuilder.MergeFrom(OptionalForeignMessage);
  3167. }
  3168. input.ReadMessage(subBuilder, extensionRegistry);
  3169. OptionalForeignMessage = subBuilder.BuildPartial();
  3170. break;
  3171. }
  3172. case 162: {
  3173. self::ImportMessage.Builder subBuilder = self::ImportMessage.CreateBuilder();
  3174. if (HasOptionalImportMessage) {
  3175. subBuilder.MergeFrom(OptionalImportMessage);
  3176. }
  3177. input.ReadMessage(subBuilder, extensionRegistry);
  3178. OptionalImportMessage = subBuilder.BuildPartial();
  3179. break;
  3180. }
  3181. case 168: {
  3182. int rawValue = input.ReadEnum();
  3183. if (!global::System.Enum.IsDefined(typeof(self::TestAllTypes.Types.NestedEnum), rawValue)) {
  3184. unknownFields.MergeVarintField(21, (ulong) rawValue);
  3185. } else {
  3186. OptionalNestedEnum = (self::TestAllTypes.Types.NestedEnum) rawValue;
  3187. }
  3188. break;
  3189. }
  3190. case 176: {
  3191. int rawValue = input.ReadEnum();
  3192. if (!global::System.Enum.IsDefined(typeof(self::ForeignEnum), rawValue)) {
  3193. unknownFields.MergeVarintField(22, (ulong) rawValue);
  3194. } else {
  3195. OptionalForeignEnum = (self::ForeignEnum) rawValue;
  3196. }
  3197. break;
  3198. }
  3199. case 184: {
  3200. int rawValue = input.ReadEnum();
  3201. if (!global::System.Enum.IsDefined(typeof(self::ImportEnum), rawValue)) {
  3202. unknownFields.MergeVarintField(23, (ulong) rawValue);
  3203. } else {
  3204. OptionalImportEnum = (self::ImportEnum) rawValue;
  3205. }
  3206. break;
  3207. }
  3208. case 194: {
  3209. OptionalStringPiece = input.ReadString();
  3210. break;
  3211. }
  3212. case 202: {
  3213. OptionalCord = input.ReadString();
  3214. break;
  3215. }
  3216. case 248: {
  3217. AddRepeatedInt32(input.ReadInt32());
  3218. break;
  3219. }
  3220. case 256: {
  3221. AddRepeatedInt64(input.ReadInt64());
  3222. break;
  3223. }
  3224. case 264: {
  3225. AddRepeatedUint32(input.ReadUInt32());
  3226. break;
  3227. }
  3228. case 272: {
  3229. AddRepeatedUint64(input.ReadUInt64());
  3230. break;
  3231. }
  3232. case 280: {
  3233. AddRepeatedSint32(input.ReadSInt32());
  3234. break;
  3235. }
  3236. case 288: {
  3237. AddRepeatedSint64(input.ReadSInt64());
  3238. break;
  3239. }
  3240. case 301: {
  3241. AddRepeatedFixed32(input.ReadFixed32());
  3242. break;
  3243. }
  3244. case 305: {
  3245. AddRepeatedFixed64(input.ReadFixed64());
  3246. break;
  3247. }
  3248. case 317: {
  3249. AddRepeatedSfixed32(input.ReadSFixed32());
  3250. break;
  3251. }
  3252. case 321: {
  3253. AddRepeatedSfixed64(input.ReadSFixed64());
  3254. break;
  3255. }
  3256. case 333: {
  3257. AddRepeatedFloat(input.ReadFloat());
  3258. break;
  3259. }
  3260. case 337: {
  3261. AddRepeatedDouble(input.ReadDouble());
  3262. break;
  3263. }
  3264. case 344: {
  3265. AddRepeatedBool(input.ReadBool());
  3266. break;
  3267. }
  3268. case 354: {
  3269. AddRepeatedString(input.ReadString());
  3270. break;
  3271. }
  3272. case 362: {
  3273. AddRepeatedBytes(input.ReadBytes());
  3274. break;
  3275. }
  3276. case 371: {
  3277. self::TestAllTypes.Types.RepeatedGroup.Builder subBuilder = self::TestAllTypes.Types.RepeatedGroup.CreateBuilder();
  3278. input.ReadGroup(46, subBuilder, extensionRegistry);
  3279. AddRepeatedGroup(subBuilder.BuildPartial());
  3280. break;
  3281. }
  3282. case 386: {
  3283. self::TestAllTypes.Types.NestedMessage.Builder subBuilder = self::TestAllTypes.Types.NestedMessage.CreateBuilder();
  3284. input.ReadMessage(subBuilder, extensionRegistry);
  3285. AddRepeatedNestedMessage(subBuilder.BuildPartial());
  3286. break;
  3287. }
  3288. case 394: {
  3289. self::ForeignMessage.Builder subBuilder = self::ForeignMessage.CreateBuilder();
  3290. input.ReadMessage(subBuilder, extensionRegistry);
  3291. AddRepeatedForeignMessage(subBuilder.BuildPartial());
  3292. break;
  3293. }
  3294. case 402: {
  3295. self::ImportMessage.Builder subBuilder = self::ImportMessage.CreateBuilder();
  3296. input.ReadMessage(subBuilder, extensionRegistry);
  3297. AddRepeatedImportMessage(subBuilder.BuildPartial());
  3298. break;
  3299. }
  3300. case 408: {
  3301. int rawValue = input.ReadEnum();
  3302. self::TestAllTypes.Types.NestedEnum value = (self::TestAllTypes.Types.NestedEnum) rawValue;
  3303. if (!global::System.Enum.IsDefined(typeof(self::TestAllTypes.Types.NestedEnum), value)) {
  3304. unknownFields.MergeVarintField(51, (ulong) rawValue);
  3305. } else {
  3306. AddRepeatedNestedEnum(value);
  3307. }
  3308. break;
  3309. }
  3310. case 416: {
  3311. int rawValue = input.ReadEnum();
  3312. self::ForeignEnum value = (self::ForeignEnum) rawValue;
  3313. if (!global::System.Enum.IsDefined(typeof(self::ForeignEnum), value)) {
  3314. unknownFields.MergeVarintField(52, (ulong) rawValue);
  3315. } else {
  3316. AddRepeatedForeignEnum(value);
  3317. }
  3318. break;
  3319. }
  3320. case 424: {
  3321. int rawValue = input.ReadEnum();
  3322. self::ImportEnum value = (self::ImportEnum) rawValue;
  3323. if (!global::System.Enum.IsDefined(typeof(self::ImportEnum), value)) {
  3324. unknownFields.MergeVarintField(53, (ulong) rawValue);
  3325. } else {
  3326. AddRepeatedImportEnum(value);
  3327. }
  3328. break;
  3329. }
  3330. case 434: {
  3331. AddRepeatedStringPiece(input.ReadString());
  3332. break;
  3333. }
  3334. case 442: {
  3335. AddRepeatedCord(input.ReadString());
  3336. break;
  3337. }
  3338. case 488: {
  3339. DefaultInt32 = input.ReadInt32();
  3340. break;
  3341. }
  3342. case 496: {
  3343. DefaultInt64 = input.ReadInt64();
  3344. break;
  3345. }
  3346. case 504: {
  3347. DefaultUint32 = input.ReadUInt32();
  3348. break;
  3349. }
  3350. case 512: {
  3351. DefaultUint64 = input.ReadUInt64();
  3352. break;
  3353. }
  3354. case 520: {
  3355. DefaultSint32 = input.ReadSInt32();
  3356. break;
  3357. }
  3358. case 528: {
  3359. DefaultSint64 = input.ReadSInt64();
  3360. break;
  3361. }
  3362. case 541: {
  3363. DefaultFixed32 = input.ReadFixed32();
  3364. break;
  3365. }
  3366. case 545: {
  3367. DefaultFixed64 = input.ReadFixed64();
  3368. break;
  3369. }
  3370. case 557: {
  3371. DefaultSfixed32 = input.ReadSFixed32();
  3372. break;
  3373. }
  3374. case 561: {
  3375. DefaultSfixed64 = input.ReadSFixed64();
  3376. break;
  3377. }
  3378. case 573: {
  3379. DefaultFloat = input.ReadFloat();
  3380. break;
  3381. }
  3382. case 577: {
  3383. DefaultDouble = input.ReadDouble();
  3384. break;
  3385. }
  3386. case 584: {
  3387. DefaultBool = input.ReadBool();
  3388. break;
  3389. }
  3390. case 594: {
  3391. DefaultString = input.ReadString();
  3392. break;
  3393. }
  3394. case 602: {
  3395. DefaultBytes = input.ReadBytes();
  3396. break;
  3397. }
  3398. case 648: {
  3399. int rawValue = input.ReadEnum();
  3400. if (!global::System.Enum.IsDefined(typeof(self::TestAllTypes.Types.NestedEnum), rawValue)) {
  3401. unknownFields.MergeVarintField(81, (ulong) rawValue);
  3402. } else {
  3403. DefaultNestedEnum = (self::TestAllTypes.Types.NestedEnum) rawValue;
  3404. }
  3405. break;
  3406. }
  3407. case 656: {
  3408. int rawValue = input.ReadEnum();
  3409. if (!global::System.Enum.IsDefined(typeof(self::ForeignEnum), rawValue)) {
  3410. unknownFields.MergeVarintField(82, (ulong) rawValue);
  3411. } else {
  3412. DefaultForeignEnum = (self::ForeignEnum) rawValue;
  3413. }
  3414. break;
  3415. }
  3416. case 664: {
  3417. int rawValue = input.ReadEnum();
  3418. if (!global::System.Enum.IsDefined(typeof(self::ImportEnum), rawValue)) {
  3419. unknownFields.MergeVarintField(83, (ulong) rawValue);
  3420. } else {
  3421. DefaultImportEnum = (self::ImportEnum) rawValue;
  3422. }
  3423. break;
  3424. }
  3425. case 674: {
  3426. DefaultStringPiece = input.ReadString();
  3427. break;
  3428. }
  3429. case 682: {
  3430. DefaultCord = input.ReadString();
  3431. break;
  3432. }
  3433. }
  3434. }
  3435. }
  3436. // optional int32 optional_int32 = 1;
  3437. public bool HasOptionalInt32 {
  3438. get { return result.HasOptionalInt32; }
  3439. }
  3440. public int OptionalInt32 {
  3441. get { return result.OptionalInt32; }
  3442. set { SetOptionalInt32(value); }
  3443. }
  3444. public Builder SetOptionalInt32(int value) {
  3445. result.hasOptionalInt32 = true;
  3446. result.optionalInt32_ = value;
  3447. return this;
  3448. }
  3449. public Builder ClearOptionalInt32() {
  3450. result.hasOptionalInt32 = false;
  3451. result.optionalInt32_ = 0;
  3452. return this;
  3453. }
  3454. // optional int64 optional_int64 = 2;
  3455. public bool HasOptionalInt64 {
  3456. get { return result.HasOptionalInt64; }
  3457. }
  3458. public long OptionalInt64 {
  3459. get { return result.OptionalInt64; }
  3460. set { SetOptionalInt64(value); }
  3461. }
  3462. public Builder SetOptionalInt64(long value) {
  3463. result.hasOptionalInt64 = true;
  3464. result.optionalInt64_ = value;
  3465. return this;
  3466. }
  3467. public Builder ClearOptionalInt64() {
  3468. result.hasOptionalInt64 = false;
  3469. result.optionalInt64_ = 0L;
  3470. return this;
  3471. }
  3472. // optional uint32 optional_uint32 = 3;
  3473. public bool HasOptionalUint32 {
  3474. get { return result.HasOptionalUint32; }
  3475. }
  3476. public uint OptionalUint32 {
  3477. get { return result.OptionalUint32; }
  3478. set { SetOptionalUint32(value); }
  3479. }
  3480. public Builder SetOptionalUint32(uint value) {
  3481. result.hasOptionalUint32 = true;
  3482. result.optionalUint32_ = value;
  3483. return this;
  3484. }
  3485. public Builder ClearOptionalUint32() {
  3486. result.hasOptionalUint32 = false;
  3487. result.optionalUint32_ = 0;
  3488. return this;
  3489. }
  3490. // optional uint64 optional_uint64 = 4;
  3491. public bool HasOptionalUint64 {
  3492. get { return result.HasOptionalUint64; }
  3493. }
  3494. public ulong OptionalUint64 {
  3495. get { return result.OptionalUint64; }
  3496. set { SetOptionalUint64(value); }
  3497. }
  3498. public Builder SetOptionalUint64(ulong value) {
  3499. result.hasOptionalUint64 = true;
  3500. result.optionalUint64_ = value;
  3501. return this;
  3502. }
  3503. public Builder ClearOptionalUint64() {
  3504. result.hasOptionalUint64 = false;
  3505. result.optionalUint64_ = 0UL;
  3506. return this;
  3507. }
  3508. // optional sint32 optional_sint32 = 5;
  3509. public bool HasOptionalSint32 {
  3510. get { return result.HasOptionalSint32; }
  3511. }
  3512. public int OptionalSint32 {
  3513. get { return result.OptionalSint32; }
  3514. set { SetOptionalSint32(value); }
  3515. }
  3516. public Builder SetOptionalSint32(int value) {
  3517. result.hasOptionalSint32 = true;
  3518. result.optionalSint32_ = value;
  3519. return this;
  3520. }
  3521. public Builder ClearOptionalSint32() {
  3522. result.hasOptionalSint32 = false;
  3523. result.optionalSint32_ = 0;
  3524. return this;
  3525. }
  3526. // optional sint64 optional_sint64 = 6;
  3527. public bool HasOptionalSint64 {
  3528. get { return result.HasOptionalSint64; }
  3529. }
  3530. public long OptionalSint64 {
  3531. get { return result.OptionalSint64; }
  3532. set { SetOptionalSint64(value); }
  3533. }
  3534. public Builder SetOptionalSint64(long value) {
  3535. result.hasOptionalSint64 = true;
  3536. result.optionalSint64_ = value;
  3537. return this;
  3538. }
  3539. public Builder ClearOptionalSint64() {
  3540. result.hasOptionalSint64 = false;
  3541. result.optionalSint64_ = 0L;
  3542. return this;
  3543. }
  3544. // optional fixed32 optional_fixed32 = 7;
  3545. public bool HasOptionalFixed32 {
  3546. get { return result.HasOptionalFixed32; }
  3547. }
  3548. public uint OptionalFixed32 {
  3549. get { return result.OptionalFixed32; }
  3550. set { SetOptionalFixed32(value); }
  3551. }
  3552. public Builder SetOptionalFixed32(uint value) {
  3553. result.hasOptionalFixed32 = true;
  3554. result.optionalFixed32_ = value;
  3555. return this;
  3556. }
  3557. public Builder ClearOptionalFixed32() {
  3558. result.hasOptionalFixed32 = false;
  3559. result.optionalFixed32_ = 0;
  3560. return this;
  3561. }
  3562. // optional fixed64 optional_fixed64 = 8;
  3563. public bool HasOptionalFixed64 {
  3564. get { return result.HasOptionalFixed64; }
  3565. }
  3566. public ulong OptionalFixed64 {
  3567. get { return result.OptionalFixed64; }
  3568. set { SetOptionalFixed64(value); }
  3569. }
  3570. public Builder SetOptionalFixed64(ulong value) {
  3571. result.hasOptionalFixed64 = true;
  3572. result.optionalFixed64_ = value;
  3573. return this;
  3574. }
  3575. public Builder ClearOptionalFixed64() {
  3576. result.hasOptionalFixed64 = false;
  3577. result.optionalFixed64_ = 0UL;
  3578. return this;
  3579. }
  3580. // optional sfixed32 optional_sfixed32 = 9;
  3581. public bool HasOptionalSfixed32 {
  3582. get { return result.HasOptionalSfixed32; }
  3583. }
  3584. public int OptionalSfixed32 {
  3585. get { return result.OptionalSfixed32; }
  3586. set { SetOptionalSfixed32(value); }
  3587. }
  3588. public Builder SetOptionalSfixed32(int value) {
  3589. result.hasOptionalSfixed32 = true;
  3590. result.optionalSfixed32_ = value;
  3591. return this;
  3592. }
  3593. public Builder ClearOptionalSfixed32() {
  3594. result.hasOptionalSfixed32 = false;
  3595. result.optionalSfixed32_ = 0;
  3596. return this;
  3597. }
  3598. // optional sfixed64 optional_sfixed64 = 10;
  3599. public bool HasOptionalSfixed64 {
  3600. get { return result.HasOptionalSfixed64; }
  3601. }
  3602. public long OptionalSfixed64 {
  3603. get { return result.OptionalSfixed64; }
  3604. set { SetOptionalSfixed64(value); }
  3605. }
  3606. public Builder SetOptionalSfixed64(long value) {
  3607. result.hasOptionalSfixed64 = true;
  3608. result.optionalSfixed64_ = value;
  3609. return this;
  3610. }
  3611. public Builder ClearOptionalSfixed64() {
  3612. result.hasOptionalSfixed64 = false;
  3613. result.optionalSfixed64_ = 0L;
  3614. return this;
  3615. }
  3616. // optional float optional_float = 11;
  3617. public bool HasOptionalFloat {
  3618. get { return result.HasOptionalFloat; }
  3619. }
  3620. public float OptionalFloat {
  3621. get { return result.OptionalFloat; }
  3622. set { SetOptionalFloat(value); }
  3623. }
  3624. public Builder SetOptionalFloat(float value) {
  3625. result.hasOptionalFloat = true;
  3626. result.optionalFloat_ = value;
  3627. return this;
  3628. }
  3629. public Builder ClearOptionalFloat() {
  3630. result.hasOptionalFloat = false;
  3631. result.optionalFloat_ = 0F;
  3632. return this;
  3633. }
  3634. // optional double optional_double = 12;
  3635. public bool HasOptionalDouble {
  3636. get { return result.HasOptionalDouble; }
  3637. }
  3638. public double OptionalDouble {
  3639. get { return result.OptionalDouble; }
  3640. set { SetOptionalDouble(value); }
  3641. }
  3642. public Builder SetOptionalDouble(double value) {
  3643. result.hasOptionalDouble = true;
  3644. result.optionalDouble_ = value;
  3645. return this;
  3646. }
  3647. public Builder ClearOptionalDouble() {
  3648. result.hasOptionalDouble = false;
  3649. result.optionalDouble_ = 0D;
  3650. return this;
  3651. }
  3652. // optional bool optional_bool = 13;
  3653. public bool HasOptionalBool {
  3654. get { return result.HasOptionalBool; }
  3655. }
  3656. public bool OptionalBool {
  3657. get { return result.OptionalBool; }
  3658. set { SetOptionalBool(value); }
  3659. }
  3660. public Builder SetOptionalBool(bool value) {
  3661. result.hasOptionalBool = true;
  3662. result.optionalBool_ = value;
  3663. return this;
  3664. }
  3665. public Builder ClearOptionalBool() {
  3666. result.hasOptionalBool = false;
  3667. result.optionalBool_ = false;
  3668. return this;
  3669. }
  3670. // optional string optional_string = 14;
  3671. public bool HasOptionalString {
  3672. get { return result.HasOptionalString; }
  3673. }
  3674. public string OptionalString {
  3675. get { return result.OptionalString; }
  3676. set { SetOptionalString(value); }
  3677. }
  3678. public Builder SetOptionalString(string value) {
  3679. result.hasOptionalString = true;
  3680. result.optionalString_ = value;
  3681. return this;
  3682. }
  3683. public Builder ClearOptionalString() {
  3684. result.hasOptionalString = false;
  3685. result.optionalString_ = "";
  3686. return this;
  3687. }
  3688. // optional bytes optional_bytes = 15;
  3689. public bool HasOptionalBytes {
  3690. get { return result.HasOptionalBytes; }
  3691. }
  3692. public pb::ByteString OptionalBytes {
  3693. get { return result.OptionalBytes; }
  3694. set { SetOptionalBytes(value); }
  3695. }
  3696. public Builder SetOptionalBytes(pb::ByteString value) {
  3697. result.hasOptionalBytes = true;
  3698. result.optionalBytes_ = value;
  3699. return this;
  3700. }
  3701. public Builder ClearOptionalBytes() {
  3702. result.hasOptionalBytes = false;
  3703. result.optionalBytes_ = pb::ByteString.Empty;
  3704. return this;
  3705. }
  3706. // optional group OptionalGroup = 16 {
  3707. public bool HasOptionalGroup {
  3708. get { return result.HasOptionalGroup; }
  3709. }
  3710. public self::TestAllTypes.Types.OptionalGroup OptionalGroup {
  3711. get { return result.OptionalGroup; }
  3712. set { SetOptionalGroup(value); }
  3713. }
  3714. public Builder SetOptionalGroup(self::TestAllTypes.Types.OptionalGroup value) {
  3715. result.hasOptionalGroup = true;
  3716. result.optionalGroup_ = value;
  3717. return this;
  3718. }
  3719. public Builder SetOptionalGroup(self::TestAllTypes.Types.OptionalGroup.Builder builderForValue) {
  3720. result.hasOptionalGroup = true;
  3721. result.optionalGroup_ = builderForValue.Build();
  3722. return this;
  3723. }
  3724. public Builder MergeOptionalGroup(self::TestAllTypes.Types.OptionalGroup value) {
  3725. if (result.HasOptionalGroup &&
  3726. result.optionalGroup_ != self::TestAllTypes.Types.OptionalGroup.DefaultInstance) {
  3727. result.optionalGroup_ =
  3728. self::TestAllTypes.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
  3729. } else {
  3730. result.optionalGroup_ = value;
  3731. }
  3732. result.hasOptionalGroup = true;
  3733. return this;
  3734. }
  3735. public Builder ClearOptionalGroup() {
  3736. result.hasOptionalGroup = false;
  3737. result.optionalGroup_ = self::TestAllTypes.Types.OptionalGroup.DefaultInstance;
  3738. return this;
  3739. }
  3740. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  3741. public bool HasOptionalNestedMessage {
  3742. get { return result.HasOptionalNestedMessage; }
  3743. }
  3744. public self::TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  3745. get { return result.OptionalNestedMessage; }
  3746. set { SetOptionalNestedMessage(value); }
  3747. }
  3748. public Builder SetOptionalNestedMessage(self::TestAllTypes.Types.NestedMessage value) {
  3749. result.hasOptionalNestedMessage = true;
  3750. result.optionalNestedMessage_ = value;
  3751. return this;
  3752. }
  3753. public Builder SetOptionalNestedMessage(self::TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  3754. result.hasOptionalNestedMessage = true;
  3755. result.optionalNestedMessage_ = builderForValue.Build();
  3756. return this;
  3757. }
  3758. public Builder MergeOptionalNestedMessage(self::TestAllTypes.Types.NestedMessage value) {
  3759. if (result.HasOptionalNestedMessage &&
  3760. result.optionalNestedMessage_ != self::TestAllTypes.Types.NestedMessage.DefaultInstance) {
  3761. result.optionalNestedMessage_ =
  3762. self::TestAllTypes.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  3763. } else {
  3764. result.optionalNestedMessage_ = value;
  3765. }
  3766. result.hasOptionalNestedMessage = true;
  3767. return this;
  3768. }
  3769. public Builder ClearOptionalNestedMessage() {
  3770. result.hasOptionalNestedMessage = false;
  3771. result.optionalNestedMessage_ = self::TestAllTypes.Types.NestedMessage.DefaultInstance;
  3772. return this;
  3773. }
  3774. // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
  3775. public bool HasOptionalForeignMessage {
  3776. get { return result.HasOptionalForeignMessage; }
  3777. }
  3778. public self::ForeignMessage OptionalForeignMessage {
  3779. get { return result.OptionalForeignMessage; }
  3780. set { SetOptionalForeignMessage(value); }
  3781. }
  3782. public Builder SetOptionalForeignMessage(self::ForeignMessage value) {
  3783. result.hasOptionalForeignMessage = true;
  3784. result.optionalForeignMessage_ = value;
  3785. return this;
  3786. }
  3787. public Builder SetOptionalForeignMessage(self::ForeignMessage.Builder builderForValue) {
  3788. result.hasOptionalForeignMessage = true;
  3789. result.optionalForeignMessage_ = builderForValue.Build();
  3790. return this;
  3791. }
  3792. public Builder MergeOptionalForeignMessage(self::ForeignMessage value) {
  3793. if (result.HasOptionalForeignMessage &&
  3794. result.optionalForeignMessage_ != self::ForeignMessage.DefaultInstance) {
  3795. result.optionalForeignMessage_ =
  3796. self::ForeignMessage.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial();
  3797. } else {
  3798. result.optionalForeignMessage_ = value;
  3799. }
  3800. result.hasOptionalForeignMessage = true;
  3801. return this;
  3802. }
  3803. public Builder ClearOptionalForeignMessage() {
  3804. result.hasOptionalForeignMessage = false;
  3805. result.optionalForeignMessage_ = self::ForeignMessage.DefaultInstance;
  3806. return this;
  3807. }
  3808. // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  3809. public bool HasOptionalImportMessage {
  3810. get { return result.HasOptionalImportMessage; }
  3811. }
  3812. public self::ImportMessage OptionalImportMessage {
  3813. get { return result.OptionalImportMessage; }
  3814. set { SetOptionalImportMessage(value); }
  3815. }
  3816. public Builder SetOptionalImportMessage(self::ImportMessage value) {
  3817. result.hasOptionalImportMessage = true;
  3818. result.optionalImportMessage_ = value;
  3819. return this;
  3820. }
  3821. public Builder SetOptionalImportMessage(self::ImportMessage.Builder builderForValue) {
  3822. result.hasOptionalImportMessage = true;
  3823. result.optionalImportMessage_ = builderForValue.Build();
  3824. return this;
  3825. }
  3826. public Builder MergeOptionalImportMessage(self::ImportMessage value) {
  3827. if (result.HasOptionalImportMessage &&
  3828. result.optionalImportMessage_ != self::ImportMessage.DefaultInstance) {
  3829. result.optionalImportMessage_ =
  3830. self::ImportMessage.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial();
  3831. } else {
  3832. result.optionalImportMessage_ = value;
  3833. }
  3834. result.hasOptionalImportMessage = true;
  3835. return this;
  3836. }
  3837. public Builder ClearOptionalImportMessage() {
  3838. result.hasOptionalImportMessage = false;
  3839. result.optionalImportMessage_ = self::ImportMessage.DefaultInstance;
  3840. return this;
  3841. }
  3842. // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  3843. public bool HasOptionalNestedEnum {
  3844. get { return result.HasOptionalNestedEnum; }
  3845. }
  3846. public self::TestAllTypes.Types.NestedEnum OptionalNestedEnum {
  3847. get { return result.OptionalNestedEnum; }
  3848. set { SetOptionalNestedEnum(value); }
  3849. }
  3850. public Builder SetOptionalNestedEnum(self::TestAllTypes.Types.NestedEnum value) {
  3851. result.hasOptionalNestedEnum = true;
  3852. result.optionalNestedEnum_ = value;
  3853. return this;
  3854. }
  3855. public Builder ClearOptionalNestedEnum() {
  3856. result.hasOptionalNestedEnum = false;
  3857. result.optionalNestedEnum_ = self::TestAllTypes.Types.NestedEnum.FOO;
  3858. return this;
  3859. }
  3860. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  3861. public bool HasOptionalForeignEnum {
  3862. get { return result.HasOptionalForeignEnum; }
  3863. }
  3864. public self::ForeignEnum OptionalForeignEnum {
  3865. get { return result.OptionalForeignEnum; }
  3866. set { SetOptionalForeignEnum(value); }
  3867. }
  3868. public Builder SetOptionalForeignEnum(self::ForeignEnum value) {
  3869. result.hasOptionalForeignEnum = true;
  3870. result.optionalForeignEnum_ = value;
  3871. return this;
  3872. }
  3873. public Builder ClearOptionalForeignEnum() {
  3874. result.hasOptionalForeignEnum = false;
  3875. result.optionalForeignEnum_ = self::ForeignEnum.FOREIGN_FOO;
  3876. return this;
  3877. }
  3878. // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
  3879. public bool HasOptionalImportEnum {
  3880. get { return result.HasOptionalImportEnum; }
  3881. }
  3882. public self::ImportEnum OptionalImportEnum {
  3883. get { return result.OptionalImportEnum; }
  3884. set { SetOptionalImportEnum(value); }
  3885. }
  3886. public Builder SetOptionalImportEnum(self::ImportEnum value) {
  3887. result.hasOptionalImportEnum = true;
  3888. result.optionalImportEnum_ = value;
  3889. return this;
  3890. }
  3891. public Builder ClearOptionalImportEnum() {
  3892. result.hasOptionalImportEnum = false;
  3893. result.optionalImportEnum_ = self::ImportEnum.IMPORT_FOO;
  3894. return this;
  3895. }
  3896. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  3897. public bool HasOptionalStringPiece {
  3898. get { return result.HasOptionalStringPiece; }
  3899. }
  3900. public string OptionalStringPiece {
  3901. get { return result.OptionalStringPiece; }
  3902. set { SetOptionalStringPiece(value); }
  3903. }
  3904. public Builder SetOptionalStringPiece(string value) {
  3905. result.hasOptionalStringPiece = true;
  3906. result.optionalStringPiece_ = value;
  3907. return this;
  3908. }
  3909. public Builder ClearOptionalStringPiece() {
  3910. result.hasOptionalStringPiece = false;
  3911. result.optionalStringPiece_ = "";
  3912. return this;
  3913. }
  3914. // optional string optional_cord = 25 [ctype = CORD];
  3915. public bool HasOptionalCord {
  3916. get { return result.HasOptionalCord; }
  3917. }
  3918. public string OptionalCord {
  3919. get { return result.OptionalCord; }
  3920. set { SetOptionalCord(value); }
  3921. }
  3922. public Builder SetOptionalCord(string value) {
  3923. result.hasOptionalCord = true;
  3924. result.optionalCord_ = value;
  3925. return this;
  3926. }
  3927. public Builder ClearOptionalCord() {
  3928. result.hasOptionalCord = false;
  3929. result.optionalCord_ = "";
  3930. return this;
  3931. }
  3932. // repeated int32 repeated_int32 = 31;
  3933. public scg::IList<int> RepeatedInt32List {
  3934. get { return pbc::Lists<int>.AsReadOnly(result.repeatedInt32_); }
  3935. }
  3936. public int RepeatedInt32Count {
  3937. get { return result.RepeatedInt32Count; }
  3938. }
  3939. public int GetRepeatedInt32(int index) {
  3940. return result.GetRepeatedInt32(index);
  3941. }
  3942. public Builder SetRepeatedInt32(int index, int value) {
  3943. result.repeatedInt32_[index] = value;
  3944. return this;
  3945. }
  3946. public Builder AddRepeatedInt32(int value) {
  3947. if (result.repeatedInt32_.Count == 0) {
  3948. result.repeatedInt32_ = new scg::List<int>();
  3949. }
  3950. result.repeatedInt32_.Add(value);
  3951. return this;
  3952. }
  3953. public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
  3954. if (result.repeatedInt32_.Count == 0) {
  3955. result.repeatedInt32_ = new scg::List<int>();
  3956. }
  3957. base.AddRange(values, result.repeatedInt32_);
  3958. return this;
  3959. }
  3960. public Builder ClearRepeatedInt32() {
  3961. result.repeatedInt32_ = pbc::Lists<int>.Empty;
  3962. return this;
  3963. }
  3964. // repeated int64 repeated_int64 = 32;
  3965. public scg::IList<long> RepeatedInt64List {
  3966. get { return pbc::Lists<long>.AsReadOnly(result.repeatedInt64_); }
  3967. }
  3968. public int RepeatedInt64Count {
  3969. get { return result.RepeatedInt64Count; }
  3970. }
  3971. public long GetRepeatedInt64(int index) {
  3972. return result.GetRepeatedInt64(index);
  3973. }
  3974. public Builder SetRepeatedInt64(int index, long value) {
  3975. result.repeatedInt64_[index] = value;
  3976. return this;
  3977. }
  3978. public Builder AddRepeatedInt64(long value) {
  3979. if (result.repeatedInt64_.Count == 0) {
  3980. result.repeatedInt64_ = new scg::List<long>();
  3981. }
  3982. result.repeatedInt64_.Add(value);
  3983. return this;
  3984. }
  3985. public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
  3986. if (result.repeatedInt64_.Count == 0) {
  3987. result.repeatedInt64_ = new scg::List<long>();
  3988. }
  3989. base.AddRange(values, result.repeatedInt64_);
  3990. return this;
  3991. }
  3992. public Builder ClearRepeatedInt64() {
  3993. result.repeatedInt64_ = pbc::Lists<long>.Empty;
  3994. return this;
  3995. }
  3996. // repeated uint32 repeated_uint32 = 33;
  3997. public scg::IList<uint> RepeatedUint32List {
  3998. get { return pbc::Lists<uint>.AsReadOnly(result.repeatedUint32_); }
  3999. }
  4000. public int RepeatedUint32Count {
  4001. get { return result.RepeatedUint32Count; }
  4002. }
  4003. public uint GetRepeatedUint32(int index) {
  4004. return result.GetRepeatedUint32(index);
  4005. }
  4006. public Builder SetRepeatedUint32(int index, uint value) {
  4007. result.repeatedUint32_[index] = value;
  4008. return this;
  4009. }
  4010. public Builder AddRepeatedUint32(uint value) {
  4011. if (result.repeatedUint32_.Count == 0) {
  4012. result.repeatedUint32_ = new scg::List<uint>();
  4013. }
  4014. result.repeatedUint32_.Add(value);
  4015. return this;
  4016. }
  4017. public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) {
  4018. if (result.repeatedUint32_.Count == 0) {
  4019. result.repeatedUint32_ = new scg::List<uint>();
  4020. }
  4021. base.AddRange(values, result.repeatedUint32_);
  4022. return this;
  4023. }
  4024. public Builder ClearRepeatedUint32() {
  4025. result.repeatedUint32_ = pbc::Lists<uint>.Empty;
  4026. return this;
  4027. }
  4028. // repeated uint64 repeated_uint64 = 34;
  4029. public scg::IList<ulong> RepeatedUint64List {
  4030. get { return pbc::Lists<ulong>.AsReadOnly(result.repeatedUint64_); }
  4031. }
  4032. public int RepeatedUint64Count {
  4033. get { return result.RepeatedUint64Count; }
  4034. }
  4035. public ulong GetRepeatedUint64(int index) {
  4036. return result.GetRepeatedUint64(index);
  4037. }
  4038. public Builder SetRepeatedUint64(int index, ulong value) {
  4039. result.repeatedUint64_[index] = value;
  4040. return this;
  4041. }
  4042. public Builder AddRepeatedUint64(ulong value) {
  4043. if (result.repeatedUint64_.Count == 0) {
  4044. result.repeatedUint64_ = new scg::List<ulong>();
  4045. }
  4046. result.repeatedUint64_.Add(value);
  4047. return this;
  4048. }
  4049. public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
  4050. if (result.repeatedUint64_.Count == 0) {
  4051. result.repeatedUint64_ = new scg::List<ulong>();
  4052. }
  4053. base.AddRange(values, result.repeatedUint64_);
  4054. return this;
  4055. }
  4056. public Builder ClearRepeatedUint64() {
  4057. result.repeatedUint64_ = pbc::Lists<ulong>.Empty;
  4058. return this;
  4059. }
  4060. // repeated sint32 repeated_sint32 = 35;
  4061. public scg::IList<int> RepeatedSint32List {
  4062. get { return pbc::Lists<int>.AsReadOnly(result.repeatedSint32_); }
  4063. }
  4064. public int RepeatedSint32Count {
  4065. get { return result.RepeatedSint32Count; }
  4066. }
  4067. public int GetRepeatedSint32(int index) {
  4068. return result.GetRepeatedSint32(index);
  4069. }
  4070. public Builder SetRepeatedSint32(int index, int value) {
  4071. result.repeatedSint32_[index] = value;
  4072. return this;
  4073. }
  4074. public Builder AddRepeatedSint32(int value) {
  4075. if (result.repeatedSint32_.Count == 0) {
  4076. result.repeatedSint32_ = new scg::List<int>();
  4077. }
  4078. result.repeatedSint32_.Add(value);
  4079. return this;
  4080. }
  4081. public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) {
  4082. if (result.repeatedSint32_.Count == 0) {
  4083. result.repeatedSint32_ = new scg::List<int>();
  4084. }
  4085. base.AddRange(values, result.repeatedSint32_);
  4086. return this;
  4087. }
  4088. public Builder ClearRepeatedSint32() {
  4089. result.repeatedSint32_ = pbc::Lists<int>.Empty;
  4090. return this;
  4091. }
  4092. // repeated sint64 repeated_sint64 = 36;
  4093. public scg::IList<long> RepeatedSint64List {
  4094. get { return pbc::Lists<long>.AsReadOnly(result.repeatedSint64_); }
  4095. }
  4096. public int RepeatedSint64Count {
  4097. get { return result.RepeatedSint64Count; }
  4098. }
  4099. public long GetRepeatedSint64(int index) {
  4100. return result.GetRepeatedSint64(index);
  4101. }
  4102. public Builder SetRepeatedSint64(int index, long value) {
  4103. result.repeatedSint64_[index] = value;
  4104. return this;
  4105. }
  4106. public Builder AddRepeatedSint64(long value) {
  4107. if (result.repeatedSint64_.Count == 0) {
  4108. result.repeatedSint64_ = new scg::List<long>();
  4109. }
  4110. result.repeatedSint64_.Add(value);
  4111. return this;
  4112. }
  4113. public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) {
  4114. if (result.repeatedSint64_.Count == 0) {
  4115. result.repeatedSint64_ = new scg::List<long>();
  4116. }
  4117. base.AddRange(values, result.repeatedSint64_);
  4118. return this;
  4119. }
  4120. public Builder ClearRepeatedSint64() {
  4121. result.repeatedSint64_ = pbc::Lists<long>.Empty;
  4122. return this;
  4123. }
  4124. // repeated fixed32 repeated_fixed32 = 37;
  4125. public scg::IList<uint> RepeatedFixed32List {
  4126. get { return pbc::Lists<uint>.AsReadOnly(result.repeatedFixed32_); }
  4127. }
  4128. public int RepeatedFixed32Count {
  4129. get { return result.RepeatedFixed32Count; }
  4130. }
  4131. public uint GetRepeatedFixed32(int index) {
  4132. return result.GetRepeatedFixed32(index);
  4133. }
  4134. public Builder SetRepeatedFixed32(int index, uint value) {
  4135. result.repeatedFixed32_[index] = value;
  4136. return this;
  4137. }
  4138. public Builder AddRepeatedFixed32(uint value) {
  4139. if (result.repeatedFixed32_.Count == 0) {
  4140. result.repeatedFixed32_ = new scg::List<uint>();
  4141. }
  4142. result.repeatedFixed32_.Add(value);
  4143. return this;
  4144. }
  4145. public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
  4146. if (result.repeatedFixed32_.Count == 0) {
  4147. result.repeatedFixed32_ = new scg::List<uint>();
  4148. }
  4149. base.AddRange(values, result.repeatedFixed32_);
  4150. return this;
  4151. }
  4152. public Builder ClearRepeatedFixed32() {
  4153. result.repeatedFixed32_ = pbc::Lists<uint>.Empty;
  4154. return this;
  4155. }
  4156. // repeated fixed64 repeated_fixed64 = 38;
  4157. public scg::IList<ulong> RepeatedFixed64List {
  4158. get { return pbc::Lists<ulong>.AsReadOnly(result.repeatedFixed64_); }
  4159. }
  4160. public int RepeatedFixed64Count {
  4161. get { return result.RepeatedFixed64Count; }
  4162. }
  4163. public ulong GetRepeatedFixed64(int index) {
  4164. return result.GetRepeatedFixed64(index);
  4165. }
  4166. public Builder SetRepeatedFixed64(int index, ulong value) {
  4167. result.repeatedFixed64_[index] = value;
  4168. return this;
  4169. }
  4170. public Builder AddRepeatedFixed64(ulong value) {
  4171. if (result.repeatedFixed64_.Count == 0) {
  4172. result.repeatedFixed64_ = new scg::List<ulong>();
  4173. }
  4174. result.repeatedFixed64_.Add(value);
  4175. return this;
  4176. }
  4177. public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
  4178. if (result.repeatedFixed64_.Count == 0) {
  4179. result.repeatedFixed64_ = new scg::List<ulong>();
  4180. }
  4181. base.AddRange(values, result.repeatedFixed64_);
  4182. return this;
  4183. }
  4184. public Builder ClearRepeatedFixed64() {
  4185. result.repeatedFixed64_ = pbc::Lists<ulong>.Empty;
  4186. return this;
  4187. }
  4188. // repeated sfixed32 repeated_sfixed32 = 39;
  4189. public scg::IList<int> RepeatedSfixed32List {
  4190. get { return pbc::Lists<int>.AsReadOnly(result.repeatedSfixed32_); }
  4191. }
  4192. public int RepeatedSfixed32Count {
  4193. get { return result.RepeatedSfixed32Count; }
  4194. }
  4195. public int GetRepeatedSfixed32(int index) {
  4196. return result.GetRepeatedSfixed32(index);
  4197. }
  4198. public Builder SetRepeatedSfixed32(int index, int value) {
  4199. result.repeatedSfixed32_[index] = value;
  4200. return this;
  4201. }
  4202. public Builder AddRepeatedSfixed32(int value) {
  4203. if (result.repeatedSfixed32_.Count == 0) {
  4204. result.repeatedSfixed32_ = new scg::List<int>();
  4205. }
  4206. result.repeatedSfixed32_.Add(value);
  4207. return this;
  4208. }
  4209. public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) {
  4210. if (result.repeatedSfixed32_.Count == 0) {
  4211. result.repeatedSfixed32_ = new scg::List<int>();
  4212. }
  4213. base.AddRange(values, result.repeatedSfixed32_);
  4214. return this;
  4215. }
  4216. public Builder ClearRepeatedSfixed32() {
  4217. result.repeatedSfixed32_ = pbc::Lists<int>.Empty;
  4218. return this;
  4219. }
  4220. // repeated sfixed64 repeated_sfixed64 = 40;
  4221. public scg::IList<long> RepeatedSfixed64List {
  4222. get { return pbc::Lists<long>.AsReadOnly(result.repeatedSfixed64_); }
  4223. }
  4224. public int RepeatedSfixed64Count {
  4225. get { return result.RepeatedSfixed64Count; }
  4226. }
  4227. public long GetRepeatedSfixed64(int index) {
  4228. return result.GetRepeatedSfixed64(index);
  4229. }
  4230. public Builder SetRepeatedSfixed64(int index, long value) {
  4231. result.repeatedSfixed64_[index] = value;
  4232. return this;
  4233. }
  4234. public Builder AddRepeatedSfixed64(long value) {
  4235. if (result.repeatedSfixed64_.Count == 0) {
  4236. result.repeatedSfixed64_ = new scg::List<long>();
  4237. }
  4238. result.repeatedSfixed64_.Add(value);
  4239. return this;
  4240. }
  4241. public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) {
  4242. if (result.repeatedSfixed64_.Count == 0) {
  4243. result.repeatedSfixed64_ = new scg::List<long>();
  4244. }
  4245. base.AddRange(values, result.repeatedSfixed64_);
  4246. return this;
  4247. }
  4248. public Builder ClearRepeatedSfixed64() {
  4249. result.repeatedSfixed64_ = pbc::Lists<long>.Empty;
  4250. return this;
  4251. }
  4252. // repeated float repeated_float = 41;
  4253. public scg::IList<float> RepeatedFloatList {
  4254. get { return pbc::Lists<float>.AsReadOnly(result.repeatedFloat_); }
  4255. }
  4256. public int RepeatedFloatCount {
  4257. get { return result.RepeatedFloatCount; }
  4258. }
  4259. public float GetRepeatedFloat(int index) {
  4260. return result.GetRepeatedFloat(index);
  4261. }
  4262. public Builder SetRepeatedFloat(int index, float value) {
  4263. result.repeatedFloat_[index] = value;
  4264. return this;
  4265. }
  4266. public Builder AddRepeatedFloat(float value) {
  4267. if (result.repeatedFloat_.Count == 0) {
  4268. result.repeatedFloat_ = new scg::List<float>();
  4269. }
  4270. result.repeatedFloat_.Add(value);
  4271. return this;
  4272. }
  4273. public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
  4274. if (result.repeatedFloat_.Count == 0) {
  4275. result.repeatedFloat_ = new scg::List<float>();
  4276. }
  4277. base.AddRange(values, result.repeatedFloat_);
  4278. return this;
  4279. }
  4280. public Builder ClearRepeatedFloat() {
  4281. result.repeatedFloat_ = pbc::Lists<float>.Empty;
  4282. return this;
  4283. }
  4284. // repeated double repeated_double = 42;
  4285. public scg::IList<double> RepeatedDoubleList {
  4286. get { return pbc::Lists<double>.AsReadOnly(result.repeatedDouble_); }
  4287. }
  4288. public int RepeatedDoubleCount {
  4289. get { return result.RepeatedDoubleCount; }
  4290. }
  4291. public double GetRepeatedDouble(int index) {
  4292. return result.GetRepeatedDouble(index);
  4293. }
  4294. public Builder SetRepeatedDouble(int index, double value) {
  4295. result.repeatedDouble_[index] = value;
  4296. return this;
  4297. }
  4298. public Builder AddRepeatedDouble(double value) {
  4299. if (result.repeatedDouble_.Count == 0) {
  4300. result.repeatedDouble_ = new scg::List<double>();
  4301. }
  4302. result.repeatedDouble_.Add(value);
  4303. return this;
  4304. }
  4305. public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) {
  4306. if (result.repeatedDouble_.Count == 0) {
  4307. result.repeatedDouble_ = new scg::List<double>();
  4308. }
  4309. base.AddRange(values, result.repeatedDouble_);
  4310. return this;
  4311. }
  4312. public Builder ClearRepeatedDouble() {
  4313. result.repeatedDouble_ = pbc::Lists<double>.Empty;
  4314. return this;
  4315. }
  4316. // repeated bool repeated_bool = 43;
  4317. public scg::IList<bool> RepeatedBoolList {
  4318. get { return pbc::Lists<bool>.AsReadOnly(result.repeatedBool_); }
  4319. }
  4320. public int RepeatedBoolCount {
  4321. get { return result.RepeatedBoolCount; }
  4322. }
  4323. public bool GetRepeatedBool(int index) {
  4324. return result.GetRepeatedBool(index);
  4325. }
  4326. public Builder SetRepeatedBool(int index, bool value) {
  4327. result.repeatedBool_[index] = value;
  4328. return this;
  4329. }
  4330. public Builder AddRepeatedBool(bool value) {
  4331. if (result.repeatedBool_.Count == 0) {
  4332. result.repeatedBool_ = new scg::List<bool>();
  4333. }
  4334. result.repeatedBool_.Add(value);
  4335. return this;
  4336. }
  4337. public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) {
  4338. if (result.repeatedBool_.Count == 0) {
  4339. result.repeatedBool_ = new scg::List<bool>();
  4340. }
  4341. base.AddRange(values, result.repeatedBool_);
  4342. return this;
  4343. }
  4344. public Builder ClearRepeatedBool() {
  4345. result.repeatedBool_ = pbc::Lists<bool>.Empty;
  4346. return this;
  4347. }
  4348. // repeated string repeated_string = 44;
  4349. public scg::IList<string> RepeatedStringList {
  4350. get { return pbc::Lists<string>.AsReadOnly(result.repeatedString_); }
  4351. }
  4352. public int RepeatedStringCount {
  4353. get { return result.RepeatedStringCount; }
  4354. }
  4355. public string GetRepeatedString(int index) {
  4356. return result.GetRepeatedString(index);
  4357. }
  4358. public Builder SetRepeatedString(int index, string value) {
  4359. result.repeatedString_[index] = value;
  4360. return this;
  4361. }
  4362. public Builder AddRepeatedString(string value) {
  4363. if (result.repeatedString_.Count == 0) {
  4364. result.repeatedString_ = new scg::List<string>();
  4365. }
  4366. result.repeatedString_.Add(value);
  4367. return this;
  4368. }
  4369. public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) {
  4370. if (result.repeatedString_.Count == 0) {
  4371. result.repeatedString_ = new scg::List<string>();
  4372. }
  4373. base.AddRange(values, result.repeatedString_);
  4374. return this;
  4375. }
  4376. public Builder ClearRepeatedString() {
  4377. result.repeatedString_ = pbc::Lists<string>.Empty;
  4378. return this;
  4379. }
  4380. // repeated bytes repeated_bytes = 45;
  4381. public scg::IList<pb::ByteString> RepeatedBytesList {
  4382. get { return pbc::Lists<pb::ByteString>.AsReadOnly(result.repeatedBytes_); }
  4383. }
  4384. public int RepeatedBytesCount {
  4385. get { return result.RepeatedBytesCount; }
  4386. }
  4387. public pb::ByteString GetRepeatedBytes(int index) {
  4388. return result.GetRepeatedBytes(index);
  4389. }
  4390. public Builder SetRepeatedBytes(int index, pb::ByteString value) {
  4391. result.repeatedBytes_[index] = value;
  4392. return this;
  4393. }
  4394. public Builder AddRepeatedBytes(pb::ByteString value) {
  4395. if (result.repeatedBytes_.Count == 0) {
  4396. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  4397. }
  4398. result.repeatedBytes_.Add(value);
  4399. return this;
  4400. }
  4401. public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) {
  4402. if (result.repeatedBytes_.Count == 0) {
  4403. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  4404. }
  4405. base.AddRange(values, result.repeatedBytes_);
  4406. return this;
  4407. }
  4408. public Builder ClearRepeatedBytes() {
  4409. result.repeatedBytes_ = pbc::Lists<pb::ByteString>.Empty;
  4410. return this;
  4411. }
  4412. // repeated group RepeatedGroup = 46 {
  4413. public scg::IList<self::TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
  4414. get { return pbc::Lists.AsReadOnly(result.repeatedGroup_); }
  4415. }
  4416. public int RepeatedGroupCount {
  4417. get { return result.RepeatedGroupCount; }
  4418. }
  4419. public self::TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
  4420. return result.GetRepeatedGroup(index);
  4421. }
  4422. public Builder SetRepeatedGroup(int index, self::TestAllTypes.Types.RepeatedGroup value) {
  4423. result.repeatedGroup_[index] = value;
  4424. return this;
  4425. }
  4426. public Builder SetRepeatedGroup(int index, self::TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
  4427. result.repeatedGroup_[index] = builderForValue.Build();
  4428. return this;
  4429. }
  4430. public Builder AddRepeatedGroup(self::TestAllTypes.Types.RepeatedGroup value) {
  4431. if (result.repeatedGroup_ == pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty) {
  4432. result.repeatedGroup_ = new scg::List<self::TestAllTypes.Types.RepeatedGroup>();
  4433. }
  4434. result.repeatedGroup_.Add(value);
  4435. return this;
  4436. }
  4437. public Builder AddRepeatedGroup(self::TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
  4438. if (result.repeatedGroup_ == pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty) {
  4439. result.repeatedGroup_ = new scg::List<self::TestAllTypes.Types.RepeatedGroup>();
  4440. }
  4441. result.repeatedGroup_.Add(builderForValue.Build());
  4442. return this;
  4443. }
  4444. public Builder AddRangeRepeatedGroup(scg::IEnumerable<self::TestAllTypes.Types.RepeatedGroup> values) {
  4445. if (result.repeatedGroup_ == pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty) {
  4446. result.repeatedGroup_ = new scg::List<self::TestAllTypes.Types.RepeatedGroup>();
  4447. }
  4448. base.AddRange(values, result.repeatedGroup_);
  4449. return this;
  4450. }
  4451. public Builder ClearRepeatedGroup() {
  4452. result.repeatedGroup_ = pbc::Lists<self::TestAllTypes.Types.RepeatedGroup>.Empty;
  4453. return this;
  4454. }
  4455. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  4456. public scg::IList<self::TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
  4457. get { return pbc::Lists.AsReadOnly(result.repeatedNestedMessage_); }
  4458. }
  4459. public int RepeatedNestedMessageCount {
  4460. get { return result.RepeatedNestedMessageCount; }
  4461. }
  4462. public self::TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
  4463. return result.GetRepeatedNestedMessage(index);
  4464. }
  4465. public Builder SetRepeatedNestedMessage(int index, self::TestAllTypes.Types.NestedMessage value) {
  4466. result.repeatedNestedMessage_[index] = value;
  4467. return this;
  4468. }
  4469. public Builder SetRepeatedNestedMessage(int index, self::TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  4470. result.repeatedNestedMessage_[index] = builderForValue.Build();
  4471. return this;
  4472. }
  4473. public Builder AddRepeatedNestedMessage(self::TestAllTypes.Types.NestedMessage value) {
  4474. if (result.repeatedNestedMessage_ == pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty) {
  4475. result.repeatedNestedMessage_ = new scg::List<self::TestAllTypes.Types.NestedMessage>();
  4476. }
  4477. result.repeatedNestedMessage_.Add(value);
  4478. return this;
  4479. }
  4480. public Builder AddRepeatedNestedMessage(self::TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  4481. if (result.repeatedNestedMessage_ == pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty) {
  4482. result.repeatedNestedMessage_ = new scg::List<self::TestAllTypes.Types.NestedMessage>();
  4483. }
  4484. result.repeatedNestedMessage_.Add(builderForValue.Build());
  4485. return this;
  4486. }
  4487. public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<self::TestAllTypes.Types.NestedMessage> values) {
  4488. if (result.repeatedNestedMessage_ == pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty) {
  4489. result.repeatedNestedMessage_ = new scg::List<self::TestAllTypes.Types.NestedMessage>();
  4490. }
  4491. base.AddRange(values, result.repeatedNestedMessage_);
  4492. return this;
  4493. }
  4494. public Builder ClearRepeatedNestedMessage() {
  4495. result.repeatedNestedMessage_ = pbc::Lists<self::TestAllTypes.Types.NestedMessage>.Empty;
  4496. return this;
  4497. }
  4498. // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
  4499. public scg::IList<self::ForeignMessage> RepeatedForeignMessageList {
  4500. get { return pbc::Lists.AsReadOnly(result.repeatedForeignMessage_); }
  4501. }
  4502. public int RepeatedForeignMessageCount {
  4503. get { return result.RepeatedForeignMessageCount; }
  4504. }
  4505. public self::ForeignMessage GetRepeatedForeignMessage(int index) {
  4506. return result.GetRepeatedForeignMessage(index);
  4507. }
  4508. public Builder SetRepeatedForeignMessage(int index, self::ForeignMessage value) {
  4509. result.repeatedForeignMessage_[index] = value;
  4510. return this;
  4511. }
  4512. public Builder SetRepeatedForeignMessage(int index, self::ForeignMessage.Builder builderForValue) {
  4513. result.repeatedForeignMessage_[index] = builderForValue.Build();
  4514. return this;
  4515. }
  4516. public Builder AddRepeatedForeignMessage(self::ForeignMessage value) {
  4517. if (result.repeatedForeignMessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  4518. result.repeatedForeignMessage_ = new scg::List<self::ForeignMessage>();
  4519. }
  4520. result.repeatedForeignMessage_.Add(value);
  4521. return this;
  4522. }
  4523. public Builder AddRepeatedForeignMessage(self::ForeignMessage.Builder builderForValue) {
  4524. if (result.repeatedForeignMessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  4525. result.repeatedForeignMessage_ = new scg::List<self::ForeignMessage>();
  4526. }
  4527. result.repeatedForeignMessage_.Add(builderForValue.Build());
  4528. return this;
  4529. }
  4530. public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<self::ForeignMessage> values) {
  4531. if (result.repeatedForeignMessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  4532. result.repeatedForeignMessage_ = new scg::List<self::ForeignMessage>();
  4533. }
  4534. base.AddRange(values, result.repeatedForeignMessage_);
  4535. return this;
  4536. }
  4537. public Builder ClearRepeatedForeignMessage() {
  4538. result.repeatedForeignMessage_ = pbc::Lists<self::ForeignMessage>.Empty;
  4539. return this;
  4540. }
  4541. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  4542. public scg::IList<self::ImportMessage> RepeatedImportMessageList {
  4543. get { return pbc::Lists.AsReadOnly(result.repeatedImportMessage_); }
  4544. }
  4545. public int RepeatedImportMessageCount {
  4546. get { return result.RepeatedImportMessageCount; }
  4547. }
  4548. public self::ImportMessage GetRepeatedImportMessage(int index) {
  4549. return result.GetRepeatedImportMessage(index);
  4550. }
  4551. public Builder SetRepeatedImportMessage(int index, self::ImportMessage value) {
  4552. result.repeatedImportMessage_[index] = value;
  4553. return this;
  4554. }
  4555. public Builder SetRepeatedImportMessage(int index, self::ImportMessage.Builder builderForValue) {
  4556. result.repeatedImportMessage_[index] = builderForValue.Build();
  4557. return this;
  4558. }
  4559. public Builder AddRepeatedImportMessage(self::ImportMessage value) {
  4560. if (result.repeatedImportMessage_ == pbc::Lists<self::ImportMessage>.Empty) {
  4561. result.repeatedImportMessage_ = new scg::List<self::ImportMessage>();
  4562. }
  4563. result.repeatedImportMessage_.Add(value);
  4564. return this;
  4565. }
  4566. public Builder AddRepeatedImportMessage(self::ImportMessage.Builder builderForValue) {
  4567. if (result.repeatedImportMessage_ == pbc::Lists<self::ImportMessage>.Empty) {
  4568. result.repeatedImportMessage_ = new scg::List<self::ImportMessage>();
  4569. }
  4570. result.repeatedImportMessage_.Add(builderForValue.Build());
  4571. return this;
  4572. }
  4573. public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<self::ImportMessage> values) {
  4574. if (result.repeatedImportMessage_ == pbc::Lists<self::ImportMessage>.Empty) {
  4575. result.repeatedImportMessage_ = new scg::List<self::ImportMessage>();
  4576. }
  4577. base.AddRange(values, result.repeatedImportMessage_);
  4578. return this;
  4579. }
  4580. public Builder ClearRepeatedImportMessage() {
  4581. result.repeatedImportMessage_ = pbc::Lists<self::ImportMessage>.Empty;
  4582. return this;
  4583. }
  4584. // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  4585. public scg::IList<self::TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
  4586. get { return pbc::Lists.AsReadOnly(result.repeatedNestedEnum_); }
  4587. }
  4588. public int RepeatedNestedEnumCount {
  4589. get { return result.RepeatedNestedEnumCount; }
  4590. }
  4591. public self::TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
  4592. return result.GetRepeatedNestedEnum(index);
  4593. }
  4594. public Builder SetRepeatedNestedEnum(int index, self::TestAllTypes.Types.NestedEnum value) {
  4595. result.repeatedNestedEnum_[index] = value;
  4596. return this;
  4597. }
  4598. public Builder AddRepeatedNestedEnum(self::TestAllTypes.Types.NestedEnum value) {
  4599. if (result.repeatedNestedEnum_.Count == 0) {
  4600. result.repeatedNestedEnum_ = new scg::List<self::TestAllTypes.Types.NestedEnum>();
  4601. }
  4602. result.repeatedNestedEnum_.Add(value);
  4603. return this;
  4604. }
  4605. public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<self::TestAllTypes.Types.NestedEnum> values) {
  4606. if (result.repeatedNestedEnum_.Count == 0) {
  4607. result.repeatedNestedEnum_ = new scg::List<self::TestAllTypes.Types.NestedEnum>();
  4608. }
  4609. base.AddRange(values, result.repeatedNestedEnum_);
  4610. return this;
  4611. }
  4612. public Builder ClearRepeatedNestedEnum() {
  4613. result.repeatedNestedEnum_ = pbc::Lists<self::TestAllTypes.Types.NestedEnum>.Empty;
  4614. return this;
  4615. }
  4616. // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
  4617. public scg::IList<self::ForeignEnum> RepeatedForeignEnumList {
  4618. get { return pbc::Lists.AsReadOnly(result.repeatedForeignEnum_); }
  4619. }
  4620. public int RepeatedForeignEnumCount {
  4621. get { return result.RepeatedForeignEnumCount; }
  4622. }
  4623. public self::ForeignEnum GetRepeatedForeignEnum(int index) {
  4624. return result.GetRepeatedForeignEnum(index);
  4625. }
  4626. public Builder SetRepeatedForeignEnum(int index, self::ForeignEnum value) {
  4627. result.repeatedForeignEnum_[index] = value;
  4628. return this;
  4629. }
  4630. public Builder AddRepeatedForeignEnum(self::ForeignEnum value) {
  4631. if (result.repeatedForeignEnum_.Count == 0) {
  4632. result.repeatedForeignEnum_ = new scg::List<self::ForeignEnum>();
  4633. }
  4634. result.repeatedForeignEnum_.Add(value);
  4635. return this;
  4636. }
  4637. public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<self::ForeignEnum> values) {
  4638. if (result.repeatedForeignEnum_.Count == 0) {
  4639. result.repeatedForeignEnum_ = new scg::List<self::ForeignEnum>();
  4640. }
  4641. base.AddRange(values, result.repeatedForeignEnum_);
  4642. return this;
  4643. }
  4644. public Builder ClearRepeatedForeignEnum() {
  4645. result.repeatedForeignEnum_ = pbc::Lists<self::ForeignEnum>.Empty;
  4646. return this;
  4647. }
  4648. // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
  4649. public scg::IList<self::ImportEnum> RepeatedImportEnumList {
  4650. get { return pbc::Lists.AsReadOnly(result.repeatedImportEnum_); }
  4651. }
  4652. public int RepeatedImportEnumCount {
  4653. get { return result.RepeatedImportEnumCount; }
  4654. }
  4655. public self::ImportEnum GetRepeatedImportEnum(int index) {
  4656. return result.GetRepeatedImportEnum(index);
  4657. }
  4658. public Builder SetRepeatedImportEnum(int index, self::ImportEnum value) {
  4659. result.repeatedImportEnum_[index] = value;
  4660. return this;
  4661. }
  4662. public Builder AddRepeatedImportEnum(self::ImportEnum value) {
  4663. if (result.repeatedImportEnum_.Count == 0) {
  4664. result.repeatedImportEnum_ = new scg::List<self::ImportEnum>();
  4665. }
  4666. result.repeatedImportEnum_.Add(value);
  4667. return this;
  4668. }
  4669. public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<self::ImportEnum> values) {
  4670. if (result.repeatedImportEnum_.Count == 0) {
  4671. result.repeatedImportEnum_ = new scg::List<self::ImportEnum>();
  4672. }
  4673. base.AddRange(values, result.repeatedImportEnum_);
  4674. return this;
  4675. }
  4676. public Builder ClearRepeatedImportEnum() {
  4677. result.repeatedImportEnum_ = pbc::Lists<self::ImportEnum>.Empty;
  4678. return this;
  4679. }
  4680. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  4681. public scg::IList<string> RepeatedStringPieceList {
  4682. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringPiece_); }
  4683. }
  4684. public int RepeatedStringPieceCount {
  4685. get { return result.RepeatedStringPieceCount; }
  4686. }
  4687. public string GetRepeatedStringPiece(int index) {
  4688. return result.GetRepeatedStringPiece(index);
  4689. }
  4690. public Builder SetRepeatedStringPiece(int index, string value) {
  4691. result.repeatedStringPiece_[index] = value;
  4692. return this;
  4693. }
  4694. public Builder AddRepeatedStringPiece(string value) {
  4695. if (result.repeatedStringPiece_.Count == 0) {
  4696. result.repeatedStringPiece_ = new scg::List<string>();
  4697. }
  4698. result.repeatedStringPiece_.Add(value);
  4699. return this;
  4700. }
  4701. public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) {
  4702. if (result.repeatedStringPiece_.Count == 0) {
  4703. result.repeatedStringPiece_ = new scg::List<string>();
  4704. }
  4705. base.AddRange(values, result.repeatedStringPiece_);
  4706. return this;
  4707. }
  4708. public Builder ClearRepeatedStringPiece() {
  4709. result.repeatedStringPiece_ = pbc::Lists<string>.Empty;
  4710. return this;
  4711. }
  4712. // repeated string repeated_cord = 55 [ctype = CORD];
  4713. public scg::IList<string> RepeatedCordList {
  4714. get { return pbc::Lists<string>.AsReadOnly(result.repeatedCord_); }
  4715. }
  4716. public int RepeatedCordCount {
  4717. get { return result.RepeatedCordCount; }
  4718. }
  4719. public string GetRepeatedCord(int index) {
  4720. return result.GetRepeatedCord(index);
  4721. }
  4722. public Builder SetRepeatedCord(int index, string value) {
  4723. result.repeatedCord_[index] = value;
  4724. return this;
  4725. }
  4726. public Builder AddRepeatedCord(string value) {
  4727. if (result.repeatedCord_.Count == 0) {
  4728. result.repeatedCord_ = new scg::List<string>();
  4729. }
  4730. result.repeatedCord_.Add(value);
  4731. return this;
  4732. }
  4733. public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) {
  4734. if (result.repeatedCord_.Count == 0) {
  4735. result.repeatedCord_ = new scg::List<string>();
  4736. }
  4737. base.AddRange(values, result.repeatedCord_);
  4738. return this;
  4739. }
  4740. public Builder ClearRepeatedCord() {
  4741. result.repeatedCord_ = pbc::Lists<string>.Empty;
  4742. return this;
  4743. }
  4744. // optional int32 default_int32 = 61 [default = 41];
  4745. public bool HasDefaultInt32 {
  4746. get { return result.HasDefaultInt32; }
  4747. }
  4748. public int DefaultInt32 {
  4749. get { return result.DefaultInt32; }
  4750. set { SetDefaultInt32(value); }
  4751. }
  4752. public Builder SetDefaultInt32(int value) {
  4753. result.hasDefaultInt32 = true;
  4754. result.defaultInt32_ = value;
  4755. return this;
  4756. }
  4757. public Builder ClearDefaultInt32() {
  4758. result.hasDefaultInt32 = false;
  4759. result.defaultInt32_ = 41;
  4760. return this;
  4761. }
  4762. // optional int64 default_int64 = 62 [default = 42];
  4763. public bool HasDefaultInt64 {
  4764. get { return result.HasDefaultInt64; }
  4765. }
  4766. public long DefaultInt64 {
  4767. get { return result.DefaultInt64; }
  4768. set { SetDefaultInt64(value); }
  4769. }
  4770. public Builder SetDefaultInt64(long value) {
  4771. result.hasDefaultInt64 = true;
  4772. result.defaultInt64_ = value;
  4773. return this;
  4774. }
  4775. public Builder ClearDefaultInt64() {
  4776. result.hasDefaultInt64 = false;
  4777. result.defaultInt64_ = 42L;
  4778. return this;
  4779. }
  4780. // optional uint32 default_uint32 = 63 [default = 43];
  4781. public bool HasDefaultUint32 {
  4782. get { return result.HasDefaultUint32; }
  4783. }
  4784. public uint DefaultUint32 {
  4785. get { return result.DefaultUint32; }
  4786. set { SetDefaultUint32(value); }
  4787. }
  4788. public Builder SetDefaultUint32(uint value) {
  4789. result.hasDefaultUint32 = true;
  4790. result.defaultUint32_ = value;
  4791. return this;
  4792. }
  4793. public Builder ClearDefaultUint32() {
  4794. result.hasDefaultUint32 = false;
  4795. result.defaultUint32_ = 43;
  4796. return this;
  4797. }
  4798. // optional uint64 default_uint64 = 64 [default = 44];
  4799. public bool HasDefaultUint64 {
  4800. get { return result.HasDefaultUint64; }
  4801. }
  4802. public ulong DefaultUint64 {
  4803. get { return result.DefaultUint64; }
  4804. set { SetDefaultUint64(value); }
  4805. }
  4806. public Builder SetDefaultUint64(ulong value) {
  4807. result.hasDefaultUint64 = true;
  4808. result.defaultUint64_ = value;
  4809. return this;
  4810. }
  4811. public Builder ClearDefaultUint64() {
  4812. result.hasDefaultUint64 = false;
  4813. result.defaultUint64_ = 44UL;
  4814. return this;
  4815. }
  4816. // optional sint32 default_sint32 = 65 [default = -45];
  4817. public bool HasDefaultSint32 {
  4818. get { return result.HasDefaultSint32; }
  4819. }
  4820. public int DefaultSint32 {
  4821. get { return result.DefaultSint32; }
  4822. set { SetDefaultSint32(value); }
  4823. }
  4824. public Builder SetDefaultSint32(int value) {
  4825. result.hasDefaultSint32 = true;
  4826. result.defaultSint32_ = value;
  4827. return this;
  4828. }
  4829. public Builder ClearDefaultSint32() {
  4830. result.hasDefaultSint32 = false;
  4831. result.defaultSint32_ = -45;
  4832. return this;
  4833. }
  4834. // optional sint64 default_sint64 = 66 [default = 46];
  4835. public bool HasDefaultSint64 {
  4836. get { return result.HasDefaultSint64; }
  4837. }
  4838. public long DefaultSint64 {
  4839. get { return result.DefaultSint64; }
  4840. set { SetDefaultSint64(value); }
  4841. }
  4842. public Builder SetDefaultSint64(long value) {
  4843. result.hasDefaultSint64 = true;
  4844. result.defaultSint64_ = value;
  4845. return this;
  4846. }
  4847. public Builder ClearDefaultSint64() {
  4848. result.hasDefaultSint64 = false;
  4849. result.defaultSint64_ = 46L;
  4850. return this;
  4851. }
  4852. // optional fixed32 default_fixed32 = 67 [default = 47];
  4853. public bool HasDefaultFixed32 {
  4854. get { return result.HasDefaultFixed32; }
  4855. }
  4856. public uint DefaultFixed32 {
  4857. get { return result.DefaultFixed32; }
  4858. set { SetDefaultFixed32(value); }
  4859. }
  4860. public Builder SetDefaultFixed32(uint value) {
  4861. result.hasDefaultFixed32 = true;
  4862. result.defaultFixed32_ = value;
  4863. return this;
  4864. }
  4865. public Builder ClearDefaultFixed32() {
  4866. result.hasDefaultFixed32 = false;
  4867. result.defaultFixed32_ = 47;
  4868. return this;
  4869. }
  4870. // optional fixed64 default_fixed64 = 68 [default = 48];
  4871. public bool HasDefaultFixed64 {
  4872. get { return result.HasDefaultFixed64; }
  4873. }
  4874. public ulong DefaultFixed64 {
  4875. get { return result.DefaultFixed64; }
  4876. set { SetDefaultFixed64(value); }
  4877. }
  4878. public Builder SetDefaultFixed64(ulong value) {
  4879. result.hasDefaultFixed64 = true;
  4880. result.defaultFixed64_ = value;
  4881. return this;
  4882. }
  4883. public Builder ClearDefaultFixed64() {
  4884. result.hasDefaultFixed64 = false;
  4885. result.defaultFixed64_ = 48UL;
  4886. return this;
  4887. }
  4888. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  4889. public bool HasDefaultSfixed32 {
  4890. get { return result.HasDefaultSfixed32; }
  4891. }
  4892. public int DefaultSfixed32 {
  4893. get { return result.DefaultSfixed32; }
  4894. set { SetDefaultSfixed32(value); }
  4895. }
  4896. public Builder SetDefaultSfixed32(int value) {
  4897. result.hasDefaultSfixed32 = true;
  4898. result.defaultSfixed32_ = value;
  4899. return this;
  4900. }
  4901. public Builder ClearDefaultSfixed32() {
  4902. result.hasDefaultSfixed32 = false;
  4903. result.defaultSfixed32_ = 49;
  4904. return this;
  4905. }
  4906. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  4907. public bool HasDefaultSfixed64 {
  4908. get { return result.HasDefaultSfixed64; }
  4909. }
  4910. public long DefaultSfixed64 {
  4911. get { return result.DefaultSfixed64; }
  4912. set { SetDefaultSfixed64(value); }
  4913. }
  4914. public Builder SetDefaultSfixed64(long value) {
  4915. result.hasDefaultSfixed64 = true;
  4916. result.defaultSfixed64_ = value;
  4917. return this;
  4918. }
  4919. public Builder ClearDefaultSfixed64() {
  4920. result.hasDefaultSfixed64 = false;
  4921. result.defaultSfixed64_ = -50L;
  4922. return this;
  4923. }
  4924. // optional float default_float = 71 [default = 51.5];
  4925. public bool HasDefaultFloat {
  4926. get { return result.HasDefaultFloat; }
  4927. }
  4928. public float DefaultFloat {
  4929. get { return result.DefaultFloat; }
  4930. set { SetDefaultFloat(value); }
  4931. }
  4932. public Builder SetDefaultFloat(float value) {
  4933. result.hasDefaultFloat = true;
  4934. result.defaultFloat_ = value;
  4935. return this;
  4936. }
  4937. public Builder ClearDefaultFloat() {
  4938. result.hasDefaultFloat = false;
  4939. result.defaultFloat_ = 51.5F;
  4940. return this;
  4941. }
  4942. // optional double default_double = 72 [default = 52000];
  4943. public bool HasDefaultDouble {
  4944. get { return result.HasDefaultDouble; }
  4945. }
  4946. public double DefaultDouble {
  4947. get { return result.DefaultDouble; }
  4948. set { SetDefaultDouble(value); }
  4949. }
  4950. public Builder SetDefaultDouble(double value) {
  4951. result.hasDefaultDouble = true;
  4952. result.defaultDouble_ = value;
  4953. return this;
  4954. }
  4955. public Builder ClearDefaultDouble() {
  4956. result.hasDefaultDouble = false;
  4957. result.defaultDouble_ = 52000D;
  4958. return this;
  4959. }
  4960. // optional bool default_bool = 73 [default = true];
  4961. public bool HasDefaultBool {
  4962. get { return result.HasDefaultBool; }
  4963. }
  4964. public bool DefaultBool {
  4965. get { return result.DefaultBool; }
  4966. set { SetDefaultBool(value); }
  4967. }
  4968. public Builder SetDefaultBool(bool value) {
  4969. result.hasDefaultBool = true;
  4970. result.defaultBool_ = value;
  4971. return this;
  4972. }
  4973. public Builder ClearDefaultBool() {
  4974. result.hasDefaultBool = false;
  4975. result.defaultBool_ = true;
  4976. return this;
  4977. }
  4978. // optional string default_string = 74 [default = "hello"];
  4979. public bool HasDefaultString {
  4980. get { return result.HasDefaultString; }
  4981. }
  4982. public string DefaultString {
  4983. get { return result.DefaultString; }
  4984. set { SetDefaultString(value); }
  4985. }
  4986. public Builder SetDefaultString(string value) {
  4987. result.hasDefaultString = true;
  4988. result.defaultString_ = value;
  4989. return this;
  4990. }
  4991. public Builder ClearDefaultString() {
  4992. result.hasDefaultString = false;
  4993. result.defaultString_ = "hello";
  4994. return this;
  4995. }
  4996. // optional bytes default_bytes = 75 [default = "world"];
  4997. public bool HasDefaultBytes {
  4998. get { return result.HasDefaultBytes; }
  4999. }
  5000. public pb::ByteString DefaultBytes {
  5001. get { return result.DefaultBytes; }
  5002. set { SetDefaultBytes(value); }
  5003. }
  5004. public Builder SetDefaultBytes(pb::ByteString value) {
  5005. result.hasDefaultBytes = true;
  5006. result.defaultBytes_ = value;
  5007. return this;
  5008. }
  5009. public Builder ClearDefaultBytes() {
  5010. result.hasDefaultBytes = false;
  5011. result.defaultBytes_ = ((pb::ByteString) self::TestAllTypes.Descriptor.Fields[62].DefaultValue);
  5012. return this;
  5013. }
  5014. // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
  5015. public bool HasDefaultNestedEnum {
  5016. get { return result.HasDefaultNestedEnum; }
  5017. }
  5018. public self::TestAllTypes.Types.NestedEnum DefaultNestedEnum {
  5019. get { return result.DefaultNestedEnum; }
  5020. set { SetDefaultNestedEnum(value); }
  5021. }
  5022. public Builder SetDefaultNestedEnum(self::TestAllTypes.Types.NestedEnum value) {
  5023. result.hasDefaultNestedEnum = true;
  5024. result.defaultNestedEnum_ = value;
  5025. return this;
  5026. }
  5027. public Builder ClearDefaultNestedEnum() {
  5028. result.hasDefaultNestedEnum = false;
  5029. result.defaultNestedEnum_ = self::TestAllTypes.Types.NestedEnum.BAR;
  5030. return this;
  5031. }
  5032. // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
  5033. public bool HasDefaultForeignEnum {
  5034. get { return result.HasDefaultForeignEnum; }
  5035. }
  5036. public self::ForeignEnum DefaultForeignEnum {
  5037. get { return result.DefaultForeignEnum; }
  5038. set { SetDefaultForeignEnum(value); }
  5039. }
  5040. public Builder SetDefaultForeignEnum(self::ForeignEnum value) {
  5041. result.hasDefaultForeignEnum = true;
  5042. result.defaultForeignEnum_ = value;
  5043. return this;
  5044. }
  5045. public Builder ClearDefaultForeignEnum() {
  5046. result.hasDefaultForeignEnum = false;
  5047. result.defaultForeignEnum_ = self::ForeignEnum.FOREIGN_BAR;
  5048. return this;
  5049. }
  5050. // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
  5051. public bool HasDefaultImportEnum {
  5052. get { return result.HasDefaultImportEnum; }
  5053. }
  5054. public self::ImportEnum DefaultImportEnum {
  5055. get { return result.DefaultImportEnum; }
  5056. set { SetDefaultImportEnum(value); }
  5057. }
  5058. public Builder SetDefaultImportEnum(self::ImportEnum value) {
  5059. result.hasDefaultImportEnum = true;
  5060. result.defaultImportEnum_ = value;
  5061. return this;
  5062. }
  5063. public Builder ClearDefaultImportEnum() {
  5064. result.hasDefaultImportEnum = false;
  5065. result.defaultImportEnum_ = self::ImportEnum.IMPORT_BAR;
  5066. return this;
  5067. }
  5068. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  5069. public bool HasDefaultStringPiece {
  5070. get { return result.HasDefaultStringPiece; }
  5071. }
  5072. public string DefaultStringPiece {
  5073. get { return result.DefaultStringPiece; }
  5074. set { SetDefaultStringPiece(value); }
  5075. }
  5076. public Builder SetDefaultStringPiece(string value) {
  5077. result.hasDefaultStringPiece = true;
  5078. result.defaultStringPiece_ = value;
  5079. return this;
  5080. }
  5081. public Builder ClearDefaultStringPiece() {
  5082. result.hasDefaultStringPiece = false;
  5083. result.defaultStringPiece_ = "abc";
  5084. return this;
  5085. }
  5086. // optional string default_cord = 85 [default = "123", ctype = CORD];
  5087. public bool HasDefaultCord {
  5088. get { return result.HasDefaultCord; }
  5089. }
  5090. public string DefaultCord {
  5091. get { return result.DefaultCord; }
  5092. set { SetDefaultCord(value); }
  5093. }
  5094. public Builder SetDefaultCord(string value) {
  5095. result.hasDefaultCord = true;
  5096. result.defaultCord_ = value;
  5097. return this;
  5098. }
  5099. public Builder ClearDefaultCord() {
  5100. result.hasDefaultCord = false;
  5101. result.defaultCord_ = "123";
  5102. return this;
  5103. }
  5104. }
  5105. }
  5106. public sealed partial class ForeignMessage : pb::GeneratedMessage<ForeignMessage, ForeignMessage.Builder> {
  5107. private static readonly ForeignMessage defaultInstance = new ForeignMessage();
  5108. public static ForeignMessage DefaultInstance {
  5109. get { return defaultInstance; }
  5110. }
  5111. public override ForeignMessage DefaultInstanceForType {
  5112. get { return defaultInstance; }
  5113. }
  5114. public static pbd::MessageDescriptor Descriptor {
  5115. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__Descriptor; }
  5116. }
  5117. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5118. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; }
  5119. }
  5120. // optional int32 c = 1;
  5121. private bool hasC;
  5122. private int c_ = 0;
  5123. public bool HasC {
  5124. get { return hasC; }
  5125. }
  5126. public int C {
  5127. get { return c_; }
  5128. }
  5129. public override bool IsInitialized {
  5130. get {
  5131. return true;
  5132. }
  5133. }
  5134. public override void WriteTo(pb::CodedOutputStream output) {
  5135. if (HasC) {
  5136. output.WriteInt32(1, C);
  5137. }
  5138. UnknownFields.WriteTo(output);
  5139. }
  5140. private int memoizedSerializedSize = -1;
  5141. public override int SerializedSize {
  5142. get {
  5143. int size = memoizedSerializedSize;
  5144. if (size != -1) return size;
  5145. size = 0;
  5146. if (HasC) {
  5147. size += pb::CodedOutputStream.ComputeInt32Size(1, C);
  5148. }
  5149. size += UnknownFields.SerializedSize;
  5150. memoizedSerializedSize = size;
  5151. return size;
  5152. }
  5153. }
  5154. public static self::ForeignMessage ParseFrom(pb::ByteString data) {
  5155. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5156. }
  5157. public static self::ForeignMessage ParseFrom(pb::ByteString data,
  5158. pb::ExtensionRegistry extensionRegistry) {
  5159. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5160. .BuildParsed();
  5161. }
  5162. public static self::ForeignMessage ParseFrom(byte[] data) {
  5163. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5164. }
  5165. public static self::ForeignMessage ParseFrom(byte[] data,
  5166. pb::ExtensionRegistry extensionRegistry) {
  5167. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5168. .BuildParsed();
  5169. }
  5170. public static self::ForeignMessage ParseFrom(global::System.IO.Stream input) {
  5171. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5172. }
  5173. public static self::ForeignMessage ParseFrom(
  5174. global::System.IO.Stream input,
  5175. pb::ExtensionRegistry extensionRegistry) {
  5176. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5177. .BuildParsed();
  5178. }
  5179. public static self::ForeignMessage ParseFrom(pb::CodedInputStream input) {
  5180. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5181. }
  5182. public static self::ForeignMessage ParseFrom(pb::CodedInputStream input,
  5183. pb::ExtensionRegistry extensionRegistry) {
  5184. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5185. .BuildParsed();
  5186. }
  5187. public static Builder CreateBuilder() { return new Builder(); }
  5188. public override Builder CreateBuilderForType() { return new Builder(); }
  5189. public static Builder CreateBuilder(self::ForeignMessage prototype) {
  5190. return (Builder) new Builder().MergeFrom(prototype);
  5191. }
  5192. public sealed partial class Builder : pb::GeneratedBuilder<self::ForeignMessage, Builder> {
  5193. protected override Builder ThisBuilder {
  5194. get { return this; }
  5195. }
  5196. // Construct using self::ForeignMessage.CreateBuilder()
  5197. internal Builder() {}
  5198. self::ForeignMessage result = new self::ForeignMessage();
  5199. protected override self::ForeignMessage MessageBeingBuilt {
  5200. get { return result; }
  5201. }
  5202. public override Builder Clear() {
  5203. result = new self::ForeignMessage();
  5204. return this;
  5205. }
  5206. public override Builder Clone() {
  5207. return new Builder().MergeFrom(result);
  5208. }
  5209. public override pbd::MessageDescriptor DescriptorForType {
  5210. get { return self::ForeignMessage.Descriptor; }
  5211. }
  5212. public override self::ForeignMessage DefaultInstanceForType {
  5213. get { return self::ForeignMessage.DefaultInstance; }
  5214. }
  5215. public override self::ForeignMessage BuildPartial() {
  5216. self::ForeignMessage returnMe = result;
  5217. result = null;
  5218. return returnMe;
  5219. }
  5220. public override Builder MergeFrom(pb::IMessage other) {
  5221. if (other is self::ForeignMessage) {
  5222. return MergeFrom((self::ForeignMessage) other);
  5223. } else {
  5224. base.MergeFrom(other);
  5225. return this;
  5226. }
  5227. }
  5228. public override Builder MergeFrom(self::ForeignMessage other) {
  5229. if (other == self::ForeignMessage.DefaultInstance) return this;
  5230. if (other.HasC) {
  5231. C = other.C;
  5232. }
  5233. this.MergeUnknownFields(other.UnknownFields);
  5234. return this;
  5235. }
  5236. public override Builder MergeFrom(pb::CodedInputStream input) {
  5237. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5238. }
  5239. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5240. pb::UnknownFieldSet.Builder unknownFields =
  5241. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5242. while (true) {
  5243. uint tag = input.ReadTag();
  5244. switch (tag) {
  5245. case 0:
  5246. this.UnknownFields = unknownFields.Build();
  5247. return this;
  5248. default: {
  5249. if (!ParseUnknownField(input, unknownFields,
  5250. extensionRegistry, tag)) {
  5251. this.UnknownFields = unknownFields.Build();
  5252. return this;
  5253. }
  5254. break;
  5255. }
  5256. case 8: {
  5257. C = input.ReadInt32();
  5258. break;
  5259. }
  5260. }
  5261. }
  5262. }
  5263. // optional int32 c = 1;
  5264. public bool HasC {
  5265. get { return result.HasC; }
  5266. }
  5267. public int C {
  5268. get { return result.C; }
  5269. set { SetC(value); }
  5270. }
  5271. public Builder SetC(int value) {
  5272. result.hasC = true;
  5273. result.c_ = value;
  5274. return this;
  5275. }
  5276. public Builder ClearC() {
  5277. result.hasC = false;
  5278. result.c_ = 0;
  5279. return this;
  5280. }
  5281. }
  5282. }
  5283. public sealed partial class TestAllExtensions : pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder> {
  5284. private static readonly TestAllExtensions defaultInstance = new TestAllExtensions();
  5285. public static TestAllExtensions DefaultInstance {
  5286. get { return defaultInstance; }
  5287. }
  5288. public override TestAllExtensions DefaultInstanceForType {
  5289. get { return defaultInstance; }
  5290. }
  5291. public static pbd::MessageDescriptor Descriptor {
  5292. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__Descriptor; }
  5293. }
  5294. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5295. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable; }
  5296. }
  5297. public override bool IsInitialized {
  5298. get {
  5299. if (!ExtensionsAreInitialized) return false;
  5300. return true;
  5301. }
  5302. }
  5303. public override void WriteTo(pb::CodedOutputStream output) {
  5304. pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  5305. extensionWriter.WriteUntil(536870912, output);
  5306. UnknownFields.WriteTo(output);
  5307. }
  5308. private int memoizedSerializedSize = -1;
  5309. public override int SerializedSize {
  5310. get {
  5311. int size = memoizedSerializedSize;
  5312. if (size != -1) return size;
  5313. size = 0;
  5314. size += ExtensionsSerializedSize;
  5315. size += UnknownFields.SerializedSize;
  5316. memoizedSerializedSize = size;
  5317. return size;
  5318. }
  5319. }
  5320. public static self::TestAllExtensions ParseFrom(pb::ByteString data) {
  5321. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5322. }
  5323. public static self::TestAllExtensions ParseFrom(pb::ByteString data,
  5324. pb::ExtensionRegistry extensionRegistry) {
  5325. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5326. .BuildParsed();
  5327. }
  5328. public static self::TestAllExtensions ParseFrom(byte[] data) {
  5329. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5330. }
  5331. public static self::TestAllExtensions ParseFrom(byte[] data,
  5332. pb::ExtensionRegistry extensionRegistry) {
  5333. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5334. .BuildParsed();
  5335. }
  5336. public static self::TestAllExtensions ParseFrom(global::System.IO.Stream input) {
  5337. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5338. }
  5339. public static self::TestAllExtensions ParseFrom(
  5340. global::System.IO.Stream input,
  5341. pb::ExtensionRegistry extensionRegistry) {
  5342. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5343. .BuildParsed();
  5344. }
  5345. public static self::TestAllExtensions ParseFrom(pb::CodedInputStream input) {
  5346. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5347. }
  5348. public static self::TestAllExtensions ParseFrom(pb::CodedInputStream input,
  5349. pb::ExtensionRegistry extensionRegistry) {
  5350. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5351. .BuildParsed();
  5352. }
  5353. public static Builder CreateBuilder() { return new Builder(); }
  5354. public override Builder CreateBuilderForType() { return new Builder(); }
  5355. public static Builder CreateBuilder(self::TestAllExtensions prototype) {
  5356. return (Builder) new Builder().MergeFrom(prototype);
  5357. }
  5358. public sealed partial class Builder : pb::ExtendableBuilder<self::TestAllExtensions, self::TestAllExtensions.Builder> {
  5359. protected override Builder ThisBuilder {
  5360. get { return this; }
  5361. }
  5362. // Construct using self::TestAllExtensions.CreateBuilder()
  5363. internal Builder() {}
  5364. self::TestAllExtensions result = new self::TestAllExtensions();
  5365. protected override self::TestAllExtensions MessageBeingBuilt {
  5366. get { return result; }
  5367. }
  5368. public override Builder Clear() {
  5369. result = new self::TestAllExtensions();
  5370. return this;
  5371. }
  5372. public override Builder Clone() {
  5373. return new Builder().MergeFrom(result);
  5374. }
  5375. public override pbd::MessageDescriptor DescriptorForType {
  5376. get { return self::TestAllExtensions.Descriptor; }
  5377. }
  5378. public override self::TestAllExtensions DefaultInstanceForType {
  5379. get { return self::TestAllExtensions.DefaultInstance; }
  5380. }
  5381. public override self::TestAllExtensions BuildPartial() {
  5382. self::TestAllExtensions returnMe = result;
  5383. result = null;
  5384. return returnMe;
  5385. }
  5386. public override Builder MergeFrom(pb::IMessage other) {
  5387. if (other is self::TestAllExtensions) {
  5388. return MergeFrom((self::TestAllExtensions) other);
  5389. } else {
  5390. base.MergeFrom(other);
  5391. return this;
  5392. }
  5393. }
  5394. public override Builder MergeFrom(self::TestAllExtensions other) {
  5395. if (other == self::TestAllExtensions.DefaultInstance) return this;
  5396. this.MergeUnknownFields(other.UnknownFields);
  5397. return this;
  5398. }
  5399. public override Builder MergeFrom(pb::CodedInputStream input) {
  5400. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5401. }
  5402. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5403. pb::UnknownFieldSet.Builder unknownFields =
  5404. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5405. while (true) {
  5406. uint tag = input.ReadTag();
  5407. switch (tag) {
  5408. case 0:
  5409. this.UnknownFields = unknownFields.Build();
  5410. return this;
  5411. default: {
  5412. if (!ParseUnknownField(input, unknownFields,
  5413. extensionRegistry, tag)) {
  5414. this.UnknownFields = unknownFields.Build();
  5415. return this;
  5416. }
  5417. break;
  5418. }
  5419. }
  5420. }
  5421. }
  5422. }
  5423. }
  5424. public sealed partial class OptionalGroup_extension : pb::GeneratedMessage<OptionalGroup_extension, OptionalGroup_extension.Builder> {
  5425. private static readonly OptionalGroup_extension defaultInstance = new OptionalGroup_extension();
  5426. public static OptionalGroup_extension DefaultInstance {
  5427. get { return defaultInstance; }
  5428. }
  5429. public override OptionalGroup_extension DefaultInstanceForType {
  5430. get { return defaultInstance; }
  5431. }
  5432. public static pbd::MessageDescriptor Descriptor {
  5433. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor; }
  5434. }
  5435. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5436. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable; }
  5437. }
  5438. // optional int32 a = 17;
  5439. private bool hasA;
  5440. private int a_ = 0;
  5441. public bool HasA {
  5442. get { return hasA; }
  5443. }
  5444. public int A {
  5445. get { return a_; }
  5446. }
  5447. public override bool IsInitialized {
  5448. get {
  5449. return true;
  5450. }
  5451. }
  5452. public override void WriteTo(pb::CodedOutputStream output) {
  5453. if (HasA) {
  5454. output.WriteInt32(17, A);
  5455. }
  5456. UnknownFields.WriteTo(output);
  5457. }
  5458. private int memoizedSerializedSize = -1;
  5459. public override int SerializedSize {
  5460. get {
  5461. int size = memoizedSerializedSize;
  5462. if (size != -1) return size;
  5463. size = 0;
  5464. if (HasA) {
  5465. size += pb::CodedOutputStream.ComputeInt32Size(17, A);
  5466. }
  5467. size += UnknownFields.SerializedSize;
  5468. memoizedSerializedSize = size;
  5469. return size;
  5470. }
  5471. }
  5472. public static self::OptionalGroup_extension ParseFrom(pb::ByteString data) {
  5473. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5474. }
  5475. public static self::OptionalGroup_extension ParseFrom(pb::ByteString data,
  5476. pb::ExtensionRegistry extensionRegistry) {
  5477. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5478. .BuildParsed();
  5479. }
  5480. public static self::OptionalGroup_extension ParseFrom(byte[] data) {
  5481. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5482. }
  5483. public static self::OptionalGroup_extension ParseFrom(byte[] data,
  5484. pb::ExtensionRegistry extensionRegistry) {
  5485. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5486. .BuildParsed();
  5487. }
  5488. public static self::OptionalGroup_extension ParseFrom(global::System.IO.Stream input) {
  5489. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5490. }
  5491. public static self::OptionalGroup_extension ParseFrom(
  5492. global::System.IO.Stream input,
  5493. pb::ExtensionRegistry extensionRegistry) {
  5494. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5495. .BuildParsed();
  5496. }
  5497. public static self::OptionalGroup_extension ParseFrom(pb::CodedInputStream input) {
  5498. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5499. }
  5500. public static self::OptionalGroup_extension ParseFrom(pb::CodedInputStream input,
  5501. pb::ExtensionRegistry extensionRegistry) {
  5502. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5503. .BuildParsed();
  5504. }
  5505. public static Builder CreateBuilder() { return new Builder(); }
  5506. public override Builder CreateBuilderForType() { return new Builder(); }
  5507. public static Builder CreateBuilder(self::OptionalGroup_extension prototype) {
  5508. return (Builder) new Builder().MergeFrom(prototype);
  5509. }
  5510. public sealed partial class Builder : pb::GeneratedBuilder<self::OptionalGroup_extension, Builder> {
  5511. protected override Builder ThisBuilder {
  5512. get { return this; }
  5513. }
  5514. // Construct using self::OptionalGroup_extension.CreateBuilder()
  5515. internal Builder() {}
  5516. self::OptionalGroup_extension result = new self::OptionalGroup_extension();
  5517. protected override self::OptionalGroup_extension MessageBeingBuilt {
  5518. get { return result; }
  5519. }
  5520. public override Builder Clear() {
  5521. result = new self::OptionalGroup_extension();
  5522. return this;
  5523. }
  5524. public override Builder Clone() {
  5525. return new Builder().MergeFrom(result);
  5526. }
  5527. public override pbd::MessageDescriptor DescriptorForType {
  5528. get { return self::OptionalGroup_extension.Descriptor; }
  5529. }
  5530. public override self::OptionalGroup_extension DefaultInstanceForType {
  5531. get { return self::OptionalGroup_extension.DefaultInstance; }
  5532. }
  5533. public override self::OptionalGroup_extension BuildPartial() {
  5534. self::OptionalGroup_extension returnMe = result;
  5535. result = null;
  5536. return returnMe;
  5537. }
  5538. public override Builder MergeFrom(pb::IMessage other) {
  5539. if (other is self::OptionalGroup_extension) {
  5540. return MergeFrom((self::OptionalGroup_extension) other);
  5541. } else {
  5542. base.MergeFrom(other);
  5543. return this;
  5544. }
  5545. }
  5546. public override Builder MergeFrom(self::OptionalGroup_extension other) {
  5547. if (other == self::OptionalGroup_extension.DefaultInstance) return this;
  5548. if (other.HasA) {
  5549. A = other.A;
  5550. }
  5551. this.MergeUnknownFields(other.UnknownFields);
  5552. return this;
  5553. }
  5554. public override Builder MergeFrom(pb::CodedInputStream input) {
  5555. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5556. }
  5557. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5558. pb::UnknownFieldSet.Builder unknownFields =
  5559. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5560. while (true) {
  5561. uint tag = input.ReadTag();
  5562. switch (tag) {
  5563. case 0:
  5564. this.UnknownFields = unknownFields.Build();
  5565. return this;
  5566. default: {
  5567. if (!ParseUnknownField(input, unknownFields,
  5568. extensionRegistry, tag)) {
  5569. this.UnknownFields = unknownFields.Build();
  5570. return this;
  5571. }
  5572. break;
  5573. }
  5574. case 136: {
  5575. A = input.ReadInt32();
  5576. break;
  5577. }
  5578. }
  5579. }
  5580. }
  5581. // optional int32 a = 17;
  5582. public bool HasA {
  5583. get { return result.HasA; }
  5584. }
  5585. public int A {
  5586. get { return result.A; }
  5587. set { SetA(value); }
  5588. }
  5589. public Builder SetA(int value) {
  5590. result.hasA = true;
  5591. result.a_ = value;
  5592. return this;
  5593. }
  5594. public Builder ClearA() {
  5595. result.hasA = false;
  5596. result.a_ = 0;
  5597. return this;
  5598. }
  5599. }
  5600. }
  5601. public sealed partial class RepeatedGroup_extension : pb::GeneratedMessage<RepeatedGroup_extension, RepeatedGroup_extension.Builder> {
  5602. private static readonly RepeatedGroup_extension defaultInstance = new RepeatedGroup_extension();
  5603. public static RepeatedGroup_extension DefaultInstance {
  5604. get { return defaultInstance; }
  5605. }
  5606. public override RepeatedGroup_extension DefaultInstanceForType {
  5607. get { return defaultInstance; }
  5608. }
  5609. public static pbd::MessageDescriptor Descriptor {
  5610. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor; }
  5611. }
  5612. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5613. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable; }
  5614. }
  5615. // optional int32 a = 47;
  5616. private bool hasA;
  5617. private int a_ = 0;
  5618. public bool HasA {
  5619. get { return hasA; }
  5620. }
  5621. public int A {
  5622. get { return a_; }
  5623. }
  5624. public override bool IsInitialized {
  5625. get {
  5626. return true;
  5627. }
  5628. }
  5629. public override void WriteTo(pb::CodedOutputStream output) {
  5630. if (HasA) {
  5631. output.WriteInt32(47, A);
  5632. }
  5633. UnknownFields.WriteTo(output);
  5634. }
  5635. private int memoizedSerializedSize = -1;
  5636. public override int SerializedSize {
  5637. get {
  5638. int size = memoizedSerializedSize;
  5639. if (size != -1) return size;
  5640. size = 0;
  5641. if (HasA) {
  5642. size += pb::CodedOutputStream.ComputeInt32Size(47, A);
  5643. }
  5644. size += UnknownFields.SerializedSize;
  5645. memoizedSerializedSize = size;
  5646. return size;
  5647. }
  5648. }
  5649. public static self::RepeatedGroup_extension ParseFrom(pb::ByteString data) {
  5650. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5651. }
  5652. public static self::RepeatedGroup_extension ParseFrom(pb::ByteString data,
  5653. pb::ExtensionRegistry extensionRegistry) {
  5654. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5655. .BuildParsed();
  5656. }
  5657. public static self::RepeatedGroup_extension ParseFrom(byte[] data) {
  5658. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5659. }
  5660. public static self::RepeatedGroup_extension ParseFrom(byte[] data,
  5661. pb::ExtensionRegistry extensionRegistry) {
  5662. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5663. .BuildParsed();
  5664. }
  5665. public static self::RepeatedGroup_extension ParseFrom(global::System.IO.Stream input) {
  5666. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5667. }
  5668. public static self::RepeatedGroup_extension ParseFrom(
  5669. global::System.IO.Stream input,
  5670. pb::ExtensionRegistry extensionRegistry) {
  5671. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5672. .BuildParsed();
  5673. }
  5674. public static self::RepeatedGroup_extension ParseFrom(pb::CodedInputStream input) {
  5675. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5676. }
  5677. public static self::RepeatedGroup_extension ParseFrom(pb::CodedInputStream input,
  5678. pb::ExtensionRegistry extensionRegistry) {
  5679. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5680. .BuildParsed();
  5681. }
  5682. public static Builder CreateBuilder() { return new Builder(); }
  5683. public override Builder CreateBuilderForType() { return new Builder(); }
  5684. public static Builder CreateBuilder(self::RepeatedGroup_extension prototype) {
  5685. return (Builder) new Builder().MergeFrom(prototype);
  5686. }
  5687. public sealed partial class Builder : pb::GeneratedBuilder<self::RepeatedGroup_extension, Builder> {
  5688. protected override Builder ThisBuilder {
  5689. get { return this; }
  5690. }
  5691. // Construct using self::RepeatedGroup_extension.CreateBuilder()
  5692. internal Builder() {}
  5693. self::RepeatedGroup_extension result = new self::RepeatedGroup_extension();
  5694. protected override self::RepeatedGroup_extension MessageBeingBuilt {
  5695. get { return result; }
  5696. }
  5697. public override Builder Clear() {
  5698. result = new self::RepeatedGroup_extension();
  5699. return this;
  5700. }
  5701. public override Builder Clone() {
  5702. return new Builder().MergeFrom(result);
  5703. }
  5704. public override pbd::MessageDescriptor DescriptorForType {
  5705. get { return self::RepeatedGroup_extension.Descriptor; }
  5706. }
  5707. public override self::RepeatedGroup_extension DefaultInstanceForType {
  5708. get { return self::RepeatedGroup_extension.DefaultInstance; }
  5709. }
  5710. public override self::RepeatedGroup_extension BuildPartial() {
  5711. self::RepeatedGroup_extension returnMe = result;
  5712. result = null;
  5713. return returnMe;
  5714. }
  5715. public override Builder MergeFrom(pb::IMessage other) {
  5716. if (other is self::RepeatedGroup_extension) {
  5717. return MergeFrom((self::RepeatedGroup_extension) other);
  5718. } else {
  5719. base.MergeFrom(other);
  5720. return this;
  5721. }
  5722. }
  5723. public override Builder MergeFrom(self::RepeatedGroup_extension other) {
  5724. if (other == self::RepeatedGroup_extension.DefaultInstance) return this;
  5725. if (other.HasA) {
  5726. A = other.A;
  5727. }
  5728. this.MergeUnknownFields(other.UnknownFields);
  5729. return this;
  5730. }
  5731. public override Builder MergeFrom(pb::CodedInputStream input) {
  5732. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5733. }
  5734. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5735. pb::UnknownFieldSet.Builder unknownFields =
  5736. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5737. while (true) {
  5738. uint tag = input.ReadTag();
  5739. switch (tag) {
  5740. case 0:
  5741. this.UnknownFields = unknownFields.Build();
  5742. return this;
  5743. default: {
  5744. if (!ParseUnknownField(input, unknownFields,
  5745. extensionRegistry, tag)) {
  5746. this.UnknownFields = unknownFields.Build();
  5747. return this;
  5748. }
  5749. break;
  5750. }
  5751. case 376: {
  5752. A = input.ReadInt32();
  5753. break;
  5754. }
  5755. }
  5756. }
  5757. }
  5758. // optional int32 a = 47;
  5759. public bool HasA {
  5760. get { return result.HasA; }
  5761. }
  5762. public int A {
  5763. get { return result.A; }
  5764. set { SetA(value); }
  5765. }
  5766. public Builder SetA(int value) {
  5767. result.hasA = true;
  5768. result.a_ = value;
  5769. return this;
  5770. }
  5771. public Builder ClearA() {
  5772. result.hasA = false;
  5773. result.a_ = 0;
  5774. return this;
  5775. }
  5776. }
  5777. }
  5778. public sealed partial class TestRequired : pb::GeneratedMessage<TestRequired, TestRequired.Builder> {
  5779. private static readonly TestRequired defaultInstance = new TestRequired();
  5780. public static TestRequired DefaultInstance {
  5781. get { return defaultInstance; }
  5782. }
  5783. public override TestRequired DefaultInstanceForType {
  5784. get { return defaultInstance; }
  5785. }
  5786. public static pbd::MessageDescriptor Descriptor {
  5787. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__Descriptor; }
  5788. }
  5789. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5790. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__FieldAccessorTable; }
  5791. }
  5792. #region Nested types
  5793. public static class Types {
  5794. public static readonly pb::GeneratedExtensionBase<self::TestRequired> Single =
  5795. pb::GeneratedSingleExtension<self::TestRequired>.CreateInstance(Descriptor.Extensions[0]);
  5796. public static readonly
  5797. pb::GeneratedExtensionBase<scg::IList<self::TestRequired>> Multi =
  5798. pb::GeneratedRepeatExtension<self::TestRequired>.CreateInstance(Descriptor.Extensions[1]);
  5799. }
  5800. #endregion
  5801. // required int32 a = 1;
  5802. private bool hasA;
  5803. private int a_ = 0;
  5804. public bool HasA {
  5805. get { return hasA; }
  5806. }
  5807. public int A {
  5808. get { return a_; }
  5809. }
  5810. // optional int32 dummy2 = 2;
  5811. private bool hasDummy2;
  5812. private int dummy2_ = 0;
  5813. public bool HasDummy2 {
  5814. get { return hasDummy2; }
  5815. }
  5816. public int Dummy2 {
  5817. get { return dummy2_; }
  5818. }
  5819. // required int32 b = 3;
  5820. private bool hasB;
  5821. private int b_ = 0;
  5822. public bool HasB {
  5823. get { return hasB; }
  5824. }
  5825. public int B {
  5826. get { return b_; }
  5827. }
  5828. // optional int32 dummy4 = 4;
  5829. private bool hasDummy4;
  5830. private int dummy4_ = 0;
  5831. public bool HasDummy4 {
  5832. get { return hasDummy4; }
  5833. }
  5834. public int Dummy4 {
  5835. get { return dummy4_; }
  5836. }
  5837. // optional int32 dummy5 = 5;
  5838. private bool hasDummy5;
  5839. private int dummy5_ = 0;
  5840. public bool HasDummy5 {
  5841. get { return hasDummy5; }
  5842. }
  5843. public int Dummy5 {
  5844. get { return dummy5_; }
  5845. }
  5846. // optional int32 dummy6 = 6;
  5847. private bool hasDummy6;
  5848. private int dummy6_ = 0;
  5849. public bool HasDummy6 {
  5850. get { return hasDummy6; }
  5851. }
  5852. public int Dummy6 {
  5853. get { return dummy6_; }
  5854. }
  5855. // optional int32 dummy7 = 7;
  5856. private bool hasDummy7;
  5857. private int dummy7_ = 0;
  5858. public bool HasDummy7 {
  5859. get { return hasDummy7; }
  5860. }
  5861. public int Dummy7 {
  5862. get { return dummy7_; }
  5863. }
  5864. // optional int32 dummy8 = 8;
  5865. private bool hasDummy8;
  5866. private int dummy8_ = 0;
  5867. public bool HasDummy8 {
  5868. get { return hasDummy8; }
  5869. }
  5870. public int Dummy8 {
  5871. get { return dummy8_; }
  5872. }
  5873. // optional int32 dummy9 = 9;
  5874. private bool hasDummy9;
  5875. private int dummy9_ = 0;
  5876. public bool HasDummy9 {
  5877. get { return hasDummy9; }
  5878. }
  5879. public int Dummy9 {
  5880. get { return dummy9_; }
  5881. }
  5882. // optional int32 dummy10 = 10;
  5883. private bool hasDummy10;
  5884. private int dummy10_ = 0;
  5885. public bool HasDummy10 {
  5886. get { return hasDummy10; }
  5887. }
  5888. public int Dummy10 {
  5889. get { return dummy10_; }
  5890. }
  5891. // optional int32 dummy11 = 11;
  5892. private bool hasDummy11;
  5893. private int dummy11_ = 0;
  5894. public bool HasDummy11 {
  5895. get { return hasDummy11; }
  5896. }
  5897. public int Dummy11 {
  5898. get { return dummy11_; }
  5899. }
  5900. // optional int32 dummy12 = 12;
  5901. private bool hasDummy12;
  5902. private int dummy12_ = 0;
  5903. public bool HasDummy12 {
  5904. get { return hasDummy12; }
  5905. }
  5906. public int Dummy12 {
  5907. get { return dummy12_; }
  5908. }
  5909. // optional int32 dummy13 = 13;
  5910. private bool hasDummy13;
  5911. private int dummy13_ = 0;
  5912. public bool HasDummy13 {
  5913. get { return hasDummy13; }
  5914. }
  5915. public int Dummy13 {
  5916. get { return dummy13_; }
  5917. }
  5918. // optional int32 dummy14 = 14;
  5919. private bool hasDummy14;
  5920. private int dummy14_ = 0;
  5921. public bool HasDummy14 {
  5922. get { return hasDummy14; }
  5923. }
  5924. public int Dummy14 {
  5925. get { return dummy14_; }
  5926. }
  5927. // optional int32 dummy15 = 15;
  5928. private bool hasDummy15;
  5929. private int dummy15_ = 0;
  5930. public bool HasDummy15 {
  5931. get { return hasDummy15; }
  5932. }
  5933. public int Dummy15 {
  5934. get { return dummy15_; }
  5935. }
  5936. // optional int32 dummy16 = 16;
  5937. private bool hasDummy16;
  5938. private int dummy16_ = 0;
  5939. public bool HasDummy16 {
  5940. get { return hasDummy16; }
  5941. }
  5942. public int Dummy16 {
  5943. get { return dummy16_; }
  5944. }
  5945. // optional int32 dummy17 = 17;
  5946. private bool hasDummy17;
  5947. private int dummy17_ = 0;
  5948. public bool HasDummy17 {
  5949. get { return hasDummy17; }
  5950. }
  5951. public int Dummy17 {
  5952. get { return dummy17_; }
  5953. }
  5954. // optional int32 dummy18 = 18;
  5955. private bool hasDummy18;
  5956. private int dummy18_ = 0;
  5957. public bool HasDummy18 {
  5958. get { return hasDummy18; }
  5959. }
  5960. public int Dummy18 {
  5961. get { return dummy18_; }
  5962. }
  5963. // optional int32 dummy19 = 19;
  5964. private bool hasDummy19;
  5965. private int dummy19_ = 0;
  5966. public bool HasDummy19 {
  5967. get { return hasDummy19; }
  5968. }
  5969. public int Dummy19 {
  5970. get { return dummy19_; }
  5971. }
  5972. // optional int32 dummy20 = 20;
  5973. private bool hasDummy20;
  5974. private int dummy20_ = 0;
  5975. public bool HasDummy20 {
  5976. get { return hasDummy20; }
  5977. }
  5978. public int Dummy20 {
  5979. get { return dummy20_; }
  5980. }
  5981. // optional int32 dummy21 = 21;
  5982. private bool hasDummy21;
  5983. private int dummy21_ = 0;
  5984. public bool HasDummy21 {
  5985. get { return hasDummy21; }
  5986. }
  5987. public int Dummy21 {
  5988. get { return dummy21_; }
  5989. }
  5990. // optional int32 dummy22 = 22;
  5991. private bool hasDummy22;
  5992. private int dummy22_ = 0;
  5993. public bool HasDummy22 {
  5994. get { return hasDummy22; }
  5995. }
  5996. public int Dummy22 {
  5997. get { return dummy22_; }
  5998. }
  5999. // optional int32 dummy23 = 23;
  6000. private bool hasDummy23;
  6001. private int dummy23_ = 0;
  6002. public bool HasDummy23 {
  6003. get { return hasDummy23; }
  6004. }
  6005. public int Dummy23 {
  6006. get { return dummy23_; }
  6007. }
  6008. // optional int32 dummy24 = 24;
  6009. private bool hasDummy24;
  6010. private int dummy24_ = 0;
  6011. public bool HasDummy24 {
  6012. get { return hasDummy24; }
  6013. }
  6014. public int Dummy24 {
  6015. get { return dummy24_; }
  6016. }
  6017. // optional int32 dummy25 = 25;
  6018. private bool hasDummy25;
  6019. private int dummy25_ = 0;
  6020. public bool HasDummy25 {
  6021. get { return hasDummy25; }
  6022. }
  6023. public int Dummy25 {
  6024. get { return dummy25_; }
  6025. }
  6026. // optional int32 dummy26 = 26;
  6027. private bool hasDummy26;
  6028. private int dummy26_ = 0;
  6029. public bool HasDummy26 {
  6030. get { return hasDummy26; }
  6031. }
  6032. public int Dummy26 {
  6033. get { return dummy26_; }
  6034. }
  6035. // optional int32 dummy27 = 27;
  6036. private bool hasDummy27;
  6037. private int dummy27_ = 0;
  6038. public bool HasDummy27 {
  6039. get { return hasDummy27; }
  6040. }
  6041. public int Dummy27 {
  6042. get { return dummy27_; }
  6043. }
  6044. // optional int32 dummy28 = 28;
  6045. private bool hasDummy28;
  6046. private int dummy28_ = 0;
  6047. public bool HasDummy28 {
  6048. get { return hasDummy28; }
  6049. }
  6050. public int Dummy28 {
  6051. get { return dummy28_; }
  6052. }
  6053. // optional int32 dummy29 = 29;
  6054. private bool hasDummy29;
  6055. private int dummy29_ = 0;
  6056. public bool HasDummy29 {
  6057. get { return hasDummy29; }
  6058. }
  6059. public int Dummy29 {
  6060. get { return dummy29_; }
  6061. }
  6062. // optional int32 dummy30 = 30;
  6063. private bool hasDummy30;
  6064. private int dummy30_ = 0;
  6065. public bool HasDummy30 {
  6066. get { return hasDummy30; }
  6067. }
  6068. public int Dummy30 {
  6069. get { return dummy30_; }
  6070. }
  6071. // optional int32 dummy31 = 31;
  6072. private bool hasDummy31;
  6073. private int dummy31_ = 0;
  6074. public bool HasDummy31 {
  6075. get { return hasDummy31; }
  6076. }
  6077. public int Dummy31 {
  6078. get { return dummy31_; }
  6079. }
  6080. // optional int32 dummy32 = 32;
  6081. private bool hasDummy32;
  6082. private int dummy32_ = 0;
  6083. public bool HasDummy32 {
  6084. get { return hasDummy32; }
  6085. }
  6086. public int Dummy32 {
  6087. get { return dummy32_; }
  6088. }
  6089. // required int32 c = 33;
  6090. private bool hasC;
  6091. private int c_ = 0;
  6092. public bool HasC {
  6093. get { return hasC; }
  6094. }
  6095. public int C {
  6096. get { return c_; }
  6097. }
  6098. public override bool IsInitialized {
  6099. get {
  6100. if (!hasA) return false;
  6101. if (!hasB) return false;
  6102. if (!hasC) return false;
  6103. return true;
  6104. }
  6105. }
  6106. public override void WriteTo(pb::CodedOutputStream output) {
  6107. if (HasA) {
  6108. output.WriteInt32(1, A);
  6109. }
  6110. if (HasDummy2) {
  6111. output.WriteInt32(2, Dummy2);
  6112. }
  6113. if (HasB) {
  6114. output.WriteInt32(3, B);
  6115. }
  6116. if (HasDummy4) {
  6117. output.WriteInt32(4, Dummy4);
  6118. }
  6119. if (HasDummy5) {
  6120. output.WriteInt32(5, Dummy5);
  6121. }
  6122. if (HasDummy6) {
  6123. output.WriteInt32(6, Dummy6);
  6124. }
  6125. if (HasDummy7) {
  6126. output.WriteInt32(7, Dummy7);
  6127. }
  6128. if (HasDummy8) {
  6129. output.WriteInt32(8, Dummy8);
  6130. }
  6131. if (HasDummy9) {
  6132. output.WriteInt32(9, Dummy9);
  6133. }
  6134. if (HasDummy10) {
  6135. output.WriteInt32(10, Dummy10);
  6136. }
  6137. if (HasDummy11) {
  6138. output.WriteInt32(11, Dummy11);
  6139. }
  6140. if (HasDummy12) {
  6141. output.WriteInt32(12, Dummy12);
  6142. }
  6143. if (HasDummy13) {
  6144. output.WriteInt32(13, Dummy13);
  6145. }
  6146. if (HasDummy14) {
  6147. output.WriteInt32(14, Dummy14);
  6148. }
  6149. if (HasDummy15) {
  6150. output.WriteInt32(15, Dummy15);
  6151. }
  6152. if (HasDummy16) {
  6153. output.WriteInt32(16, Dummy16);
  6154. }
  6155. if (HasDummy17) {
  6156. output.WriteInt32(17, Dummy17);
  6157. }
  6158. if (HasDummy18) {
  6159. output.WriteInt32(18, Dummy18);
  6160. }
  6161. if (HasDummy19) {
  6162. output.WriteInt32(19, Dummy19);
  6163. }
  6164. if (HasDummy20) {
  6165. output.WriteInt32(20, Dummy20);
  6166. }
  6167. if (HasDummy21) {
  6168. output.WriteInt32(21, Dummy21);
  6169. }
  6170. if (HasDummy22) {
  6171. output.WriteInt32(22, Dummy22);
  6172. }
  6173. if (HasDummy23) {
  6174. output.WriteInt32(23, Dummy23);
  6175. }
  6176. if (HasDummy24) {
  6177. output.WriteInt32(24, Dummy24);
  6178. }
  6179. if (HasDummy25) {
  6180. output.WriteInt32(25, Dummy25);
  6181. }
  6182. if (HasDummy26) {
  6183. output.WriteInt32(26, Dummy26);
  6184. }
  6185. if (HasDummy27) {
  6186. output.WriteInt32(27, Dummy27);
  6187. }
  6188. if (HasDummy28) {
  6189. output.WriteInt32(28, Dummy28);
  6190. }
  6191. if (HasDummy29) {
  6192. output.WriteInt32(29, Dummy29);
  6193. }
  6194. if (HasDummy30) {
  6195. output.WriteInt32(30, Dummy30);
  6196. }
  6197. if (HasDummy31) {
  6198. output.WriteInt32(31, Dummy31);
  6199. }
  6200. if (HasDummy32) {
  6201. output.WriteInt32(32, Dummy32);
  6202. }
  6203. if (HasC) {
  6204. output.WriteInt32(33, C);
  6205. }
  6206. UnknownFields.WriteTo(output);
  6207. }
  6208. private int memoizedSerializedSize = -1;
  6209. public override int SerializedSize {
  6210. get {
  6211. int size = memoizedSerializedSize;
  6212. if (size != -1) return size;
  6213. size = 0;
  6214. if (HasA) {
  6215. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  6216. }
  6217. if (HasDummy2) {
  6218. size += pb::CodedOutputStream.ComputeInt32Size(2, Dummy2);
  6219. }
  6220. if (HasB) {
  6221. size += pb::CodedOutputStream.ComputeInt32Size(3, B);
  6222. }
  6223. if (HasDummy4) {
  6224. size += pb::CodedOutputStream.ComputeInt32Size(4, Dummy4);
  6225. }
  6226. if (HasDummy5) {
  6227. size += pb::CodedOutputStream.ComputeInt32Size(5, Dummy5);
  6228. }
  6229. if (HasDummy6) {
  6230. size += pb::CodedOutputStream.ComputeInt32Size(6, Dummy6);
  6231. }
  6232. if (HasDummy7) {
  6233. size += pb::CodedOutputStream.ComputeInt32Size(7, Dummy7);
  6234. }
  6235. if (HasDummy8) {
  6236. size += pb::CodedOutputStream.ComputeInt32Size(8, Dummy8);
  6237. }
  6238. if (HasDummy9) {
  6239. size += pb::CodedOutputStream.ComputeInt32Size(9, Dummy9);
  6240. }
  6241. if (HasDummy10) {
  6242. size += pb::CodedOutputStream.ComputeInt32Size(10, Dummy10);
  6243. }
  6244. if (HasDummy11) {
  6245. size += pb::CodedOutputStream.ComputeInt32Size(11, Dummy11);
  6246. }
  6247. if (HasDummy12) {
  6248. size += pb::CodedOutputStream.ComputeInt32Size(12, Dummy12);
  6249. }
  6250. if (HasDummy13) {
  6251. size += pb::CodedOutputStream.ComputeInt32Size(13, Dummy13);
  6252. }
  6253. if (HasDummy14) {
  6254. size += pb::CodedOutputStream.ComputeInt32Size(14, Dummy14);
  6255. }
  6256. if (HasDummy15) {
  6257. size += pb::CodedOutputStream.ComputeInt32Size(15, Dummy15);
  6258. }
  6259. if (HasDummy16) {
  6260. size += pb::CodedOutputStream.ComputeInt32Size(16, Dummy16);
  6261. }
  6262. if (HasDummy17) {
  6263. size += pb::CodedOutputStream.ComputeInt32Size(17, Dummy17);
  6264. }
  6265. if (HasDummy18) {
  6266. size += pb::CodedOutputStream.ComputeInt32Size(18, Dummy18);
  6267. }
  6268. if (HasDummy19) {
  6269. size += pb::CodedOutputStream.ComputeInt32Size(19, Dummy19);
  6270. }
  6271. if (HasDummy20) {
  6272. size += pb::CodedOutputStream.ComputeInt32Size(20, Dummy20);
  6273. }
  6274. if (HasDummy21) {
  6275. size += pb::CodedOutputStream.ComputeInt32Size(21, Dummy21);
  6276. }
  6277. if (HasDummy22) {
  6278. size += pb::CodedOutputStream.ComputeInt32Size(22, Dummy22);
  6279. }
  6280. if (HasDummy23) {
  6281. size += pb::CodedOutputStream.ComputeInt32Size(23, Dummy23);
  6282. }
  6283. if (HasDummy24) {
  6284. size += pb::CodedOutputStream.ComputeInt32Size(24, Dummy24);
  6285. }
  6286. if (HasDummy25) {
  6287. size += pb::CodedOutputStream.ComputeInt32Size(25, Dummy25);
  6288. }
  6289. if (HasDummy26) {
  6290. size += pb::CodedOutputStream.ComputeInt32Size(26, Dummy26);
  6291. }
  6292. if (HasDummy27) {
  6293. size += pb::CodedOutputStream.ComputeInt32Size(27, Dummy27);
  6294. }
  6295. if (HasDummy28) {
  6296. size += pb::CodedOutputStream.ComputeInt32Size(28, Dummy28);
  6297. }
  6298. if (HasDummy29) {
  6299. size += pb::CodedOutputStream.ComputeInt32Size(29, Dummy29);
  6300. }
  6301. if (HasDummy30) {
  6302. size += pb::CodedOutputStream.ComputeInt32Size(30, Dummy30);
  6303. }
  6304. if (HasDummy31) {
  6305. size += pb::CodedOutputStream.ComputeInt32Size(31, Dummy31);
  6306. }
  6307. if (HasDummy32) {
  6308. size += pb::CodedOutputStream.ComputeInt32Size(32, Dummy32);
  6309. }
  6310. if (HasC) {
  6311. size += pb::CodedOutputStream.ComputeInt32Size(33, C);
  6312. }
  6313. size += UnknownFields.SerializedSize;
  6314. memoizedSerializedSize = size;
  6315. return size;
  6316. }
  6317. }
  6318. public static self::TestRequired ParseFrom(pb::ByteString data) {
  6319. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6320. }
  6321. public static self::TestRequired ParseFrom(pb::ByteString data,
  6322. pb::ExtensionRegistry extensionRegistry) {
  6323. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  6324. .BuildParsed();
  6325. }
  6326. public static self::TestRequired ParseFrom(byte[] data) {
  6327. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6328. }
  6329. public static self::TestRequired ParseFrom(byte[] data,
  6330. pb::ExtensionRegistry extensionRegistry) {
  6331. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  6332. .BuildParsed();
  6333. }
  6334. public static self::TestRequired ParseFrom(global::System.IO.Stream input) {
  6335. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6336. }
  6337. public static self::TestRequired ParseFrom(
  6338. global::System.IO.Stream input,
  6339. pb::ExtensionRegistry extensionRegistry) {
  6340. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  6341. .BuildParsed();
  6342. }
  6343. public static self::TestRequired ParseFrom(pb::CodedInputStream input) {
  6344. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6345. }
  6346. public static self::TestRequired ParseFrom(pb::CodedInputStream input,
  6347. pb::ExtensionRegistry extensionRegistry) {
  6348. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  6349. .BuildParsed();
  6350. }
  6351. public static Builder CreateBuilder() { return new Builder(); }
  6352. public override Builder CreateBuilderForType() { return new Builder(); }
  6353. public static Builder CreateBuilder(self::TestRequired prototype) {
  6354. return (Builder) new Builder().MergeFrom(prototype);
  6355. }
  6356. public sealed partial class Builder : pb::GeneratedBuilder<self::TestRequired, Builder> {
  6357. protected override Builder ThisBuilder {
  6358. get { return this; }
  6359. }
  6360. // Construct using self::TestRequired.CreateBuilder()
  6361. internal Builder() {}
  6362. self::TestRequired result = new self::TestRequired();
  6363. protected override self::TestRequired MessageBeingBuilt {
  6364. get { return result; }
  6365. }
  6366. public override Builder Clear() {
  6367. result = new self::TestRequired();
  6368. return this;
  6369. }
  6370. public override Builder Clone() {
  6371. return new Builder().MergeFrom(result);
  6372. }
  6373. public override pbd::MessageDescriptor DescriptorForType {
  6374. get { return self::TestRequired.Descriptor; }
  6375. }
  6376. public override self::TestRequired DefaultInstanceForType {
  6377. get { return self::TestRequired.DefaultInstance; }
  6378. }
  6379. public override self::TestRequired BuildPartial() {
  6380. self::TestRequired returnMe = result;
  6381. result = null;
  6382. return returnMe;
  6383. }
  6384. public override Builder MergeFrom(pb::IMessage other) {
  6385. if (other is self::TestRequired) {
  6386. return MergeFrom((self::TestRequired) other);
  6387. } else {
  6388. base.MergeFrom(other);
  6389. return this;
  6390. }
  6391. }
  6392. public override Builder MergeFrom(self::TestRequired other) {
  6393. if (other == self::TestRequired.DefaultInstance) return this;
  6394. if (other.HasA) {
  6395. A = other.A;
  6396. }
  6397. if (other.HasDummy2) {
  6398. Dummy2 = other.Dummy2;
  6399. }
  6400. if (other.HasB) {
  6401. B = other.B;
  6402. }
  6403. if (other.HasDummy4) {
  6404. Dummy4 = other.Dummy4;
  6405. }
  6406. if (other.HasDummy5) {
  6407. Dummy5 = other.Dummy5;
  6408. }
  6409. if (other.HasDummy6) {
  6410. Dummy6 = other.Dummy6;
  6411. }
  6412. if (other.HasDummy7) {
  6413. Dummy7 = other.Dummy7;
  6414. }
  6415. if (other.HasDummy8) {
  6416. Dummy8 = other.Dummy8;
  6417. }
  6418. if (other.HasDummy9) {
  6419. Dummy9 = other.Dummy9;
  6420. }
  6421. if (other.HasDummy10) {
  6422. Dummy10 = other.Dummy10;
  6423. }
  6424. if (other.HasDummy11) {
  6425. Dummy11 = other.Dummy11;
  6426. }
  6427. if (other.HasDummy12) {
  6428. Dummy12 = other.Dummy12;
  6429. }
  6430. if (other.HasDummy13) {
  6431. Dummy13 = other.Dummy13;
  6432. }
  6433. if (other.HasDummy14) {
  6434. Dummy14 = other.Dummy14;
  6435. }
  6436. if (other.HasDummy15) {
  6437. Dummy15 = other.Dummy15;
  6438. }
  6439. if (other.HasDummy16) {
  6440. Dummy16 = other.Dummy16;
  6441. }
  6442. if (other.HasDummy17) {
  6443. Dummy17 = other.Dummy17;
  6444. }
  6445. if (other.HasDummy18) {
  6446. Dummy18 = other.Dummy18;
  6447. }
  6448. if (other.HasDummy19) {
  6449. Dummy19 = other.Dummy19;
  6450. }
  6451. if (other.HasDummy20) {
  6452. Dummy20 = other.Dummy20;
  6453. }
  6454. if (other.HasDummy21) {
  6455. Dummy21 = other.Dummy21;
  6456. }
  6457. if (other.HasDummy22) {
  6458. Dummy22 = other.Dummy22;
  6459. }
  6460. if (other.HasDummy23) {
  6461. Dummy23 = other.Dummy23;
  6462. }
  6463. if (other.HasDummy24) {
  6464. Dummy24 = other.Dummy24;
  6465. }
  6466. if (other.HasDummy25) {
  6467. Dummy25 = other.Dummy25;
  6468. }
  6469. if (other.HasDummy26) {
  6470. Dummy26 = other.Dummy26;
  6471. }
  6472. if (other.HasDummy27) {
  6473. Dummy27 = other.Dummy27;
  6474. }
  6475. if (other.HasDummy28) {
  6476. Dummy28 = other.Dummy28;
  6477. }
  6478. if (other.HasDummy29) {
  6479. Dummy29 = other.Dummy29;
  6480. }
  6481. if (other.HasDummy30) {
  6482. Dummy30 = other.Dummy30;
  6483. }
  6484. if (other.HasDummy31) {
  6485. Dummy31 = other.Dummy31;
  6486. }
  6487. if (other.HasDummy32) {
  6488. Dummy32 = other.Dummy32;
  6489. }
  6490. if (other.HasC) {
  6491. C = other.C;
  6492. }
  6493. this.MergeUnknownFields(other.UnknownFields);
  6494. return this;
  6495. }
  6496. public override Builder MergeFrom(pb::CodedInputStream input) {
  6497. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  6498. }
  6499. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6500. pb::UnknownFieldSet.Builder unknownFields =
  6501. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6502. while (true) {
  6503. uint tag = input.ReadTag();
  6504. switch (tag) {
  6505. case 0:
  6506. this.UnknownFields = unknownFields.Build();
  6507. return this;
  6508. default: {
  6509. if (!ParseUnknownField(input, unknownFields,
  6510. extensionRegistry, tag)) {
  6511. this.UnknownFields = unknownFields.Build();
  6512. return this;
  6513. }
  6514. break;
  6515. }
  6516. case 8: {
  6517. A = input.ReadInt32();
  6518. break;
  6519. }
  6520. case 16: {
  6521. Dummy2 = input.ReadInt32();
  6522. break;
  6523. }
  6524. case 24: {
  6525. B = input.ReadInt32();
  6526. break;
  6527. }
  6528. case 32: {
  6529. Dummy4 = input.ReadInt32();
  6530. break;
  6531. }
  6532. case 40: {
  6533. Dummy5 = input.ReadInt32();
  6534. break;
  6535. }
  6536. case 48: {
  6537. Dummy6 = input.ReadInt32();
  6538. break;
  6539. }
  6540. case 56: {
  6541. Dummy7 = input.ReadInt32();
  6542. break;
  6543. }
  6544. case 64: {
  6545. Dummy8 = input.ReadInt32();
  6546. break;
  6547. }
  6548. case 72: {
  6549. Dummy9 = input.ReadInt32();
  6550. break;
  6551. }
  6552. case 80: {
  6553. Dummy10 = input.ReadInt32();
  6554. break;
  6555. }
  6556. case 88: {
  6557. Dummy11 = input.ReadInt32();
  6558. break;
  6559. }
  6560. case 96: {
  6561. Dummy12 = input.ReadInt32();
  6562. break;
  6563. }
  6564. case 104: {
  6565. Dummy13 = input.ReadInt32();
  6566. break;
  6567. }
  6568. case 112: {
  6569. Dummy14 = input.ReadInt32();
  6570. break;
  6571. }
  6572. case 120: {
  6573. Dummy15 = input.ReadInt32();
  6574. break;
  6575. }
  6576. case 128: {
  6577. Dummy16 = input.ReadInt32();
  6578. break;
  6579. }
  6580. case 136: {
  6581. Dummy17 = input.ReadInt32();
  6582. break;
  6583. }
  6584. case 144: {
  6585. Dummy18 = input.ReadInt32();
  6586. break;
  6587. }
  6588. case 152: {
  6589. Dummy19 = input.ReadInt32();
  6590. break;
  6591. }
  6592. case 160: {
  6593. Dummy20 = input.ReadInt32();
  6594. break;
  6595. }
  6596. case 168: {
  6597. Dummy21 = input.ReadInt32();
  6598. break;
  6599. }
  6600. case 176: {
  6601. Dummy22 = input.ReadInt32();
  6602. break;
  6603. }
  6604. case 184: {
  6605. Dummy23 = input.ReadInt32();
  6606. break;
  6607. }
  6608. case 192: {
  6609. Dummy24 = input.ReadInt32();
  6610. break;
  6611. }
  6612. case 200: {
  6613. Dummy25 = input.ReadInt32();
  6614. break;
  6615. }
  6616. case 208: {
  6617. Dummy26 = input.ReadInt32();
  6618. break;
  6619. }
  6620. case 216: {
  6621. Dummy27 = input.ReadInt32();
  6622. break;
  6623. }
  6624. case 224: {
  6625. Dummy28 = input.ReadInt32();
  6626. break;
  6627. }
  6628. case 232: {
  6629. Dummy29 = input.ReadInt32();
  6630. break;
  6631. }
  6632. case 240: {
  6633. Dummy30 = input.ReadInt32();
  6634. break;
  6635. }
  6636. case 248: {
  6637. Dummy31 = input.ReadInt32();
  6638. break;
  6639. }
  6640. case 256: {
  6641. Dummy32 = input.ReadInt32();
  6642. break;
  6643. }
  6644. case 264: {
  6645. C = input.ReadInt32();
  6646. break;
  6647. }
  6648. }
  6649. }
  6650. }
  6651. // required int32 a = 1;
  6652. public bool HasA {
  6653. get { return result.HasA; }
  6654. }
  6655. public int A {
  6656. get { return result.A; }
  6657. set { SetA(value); }
  6658. }
  6659. public Builder SetA(int value) {
  6660. result.hasA = true;
  6661. result.a_ = value;
  6662. return this;
  6663. }
  6664. public Builder ClearA() {
  6665. result.hasA = false;
  6666. result.a_ = 0;
  6667. return this;
  6668. }
  6669. // optional int32 dummy2 = 2;
  6670. public bool HasDummy2 {
  6671. get { return result.HasDummy2; }
  6672. }
  6673. public int Dummy2 {
  6674. get { return result.Dummy2; }
  6675. set { SetDummy2(value); }
  6676. }
  6677. public Builder SetDummy2(int value) {
  6678. result.hasDummy2 = true;
  6679. result.dummy2_ = value;
  6680. return this;
  6681. }
  6682. public Builder ClearDummy2() {
  6683. result.hasDummy2 = false;
  6684. result.dummy2_ = 0;
  6685. return this;
  6686. }
  6687. // required int32 b = 3;
  6688. public bool HasB {
  6689. get { return result.HasB; }
  6690. }
  6691. public int B {
  6692. get { return result.B; }
  6693. set { SetB(value); }
  6694. }
  6695. public Builder SetB(int value) {
  6696. result.hasB = true;
  6697. result.b_ = value;
  6698. return this;
  6699. }
  6700. public Builder ClearB() {
  6701. result.hasB = false;
  6702. result.b_ = 0;
  6703. return this;
  6704. }
  6705. // optional int32 dummy4 = 4;
  6706. public bool HasDummy4 {
  6707. get { return result.HasDummy4; }
  6708. }
  6709. public int Dummy4 {
  6710. get { return result.Dummy4; }
  6711. set { SetDummy4(value); }
  6712. }
  6713. public Builder SetDummy4(int value) {
  6714. result.hasDummy4 = true;
  6715. result.dummy4_ = value;
  6716. return this;
  6717. }
  6718. public Builder ClearDummy4() {
  6719. result.hasDummy4 = false;
  6720. result.dummy4_ = 0;
  6721. return this;
  6722. }
  6723. // optional int32 dummy5 = 5;
  6724. public bool HasDummy5 {
  6725. get { return result.HasDummy5; }
  6726. }
  6727. public int Dummy5 {
  6728. get { return result.Dummy5; }
  6729. set { SetDummy5(value); }
  6730. }
  6731. public Builder SetDummy5(int value) {
  6732. result.hasDummy5 = true;
  6733. result.dummy5_ = value;
  6734. return this;
  6735. }
  6736. public Builder ClearDummy5() {
  6737. result.hasDummy5 = false;
  6738. result.dummy5_ = 0;
  6739. return this;
  6740. }
  6741. // optional int32 dummy6 = 6;
  6742. public bool HasDummy6 {
  6743. get { return result.HasDummy6; }
  6744. }
  6745. public int Dummy6 {
  6746. get { return result.Dummy6; }
  6747. set { SetDummy6(value); }
  6748. }
  6749. public Builder SetDummy6(int value) {
  6750. result.hasDummy6 = true;
  6751. result.dummy6_ = value;
  6752. return this;
  6753. }
  6754. public Builder ClearDummy6() {
  6755. result.hasDummy6 = false;
  6756. result.dummy6_ = 0;
  6757. return this;
  6758. }
  6759. // optional int32 dummy7 = 7;
  6760. public bool HasDummy7 {
  6761. get { return result.HasDummy7; }
  6762. }
  6763. public int Dummy7 {
  6764. get { return result.Dummy7; }
  6765. set { SetDummy7(value); }
  6766. }
  6767. public Builder SetDummy7(int value) {
  6768. result.hasDummy7 = true;
  6769. result.dummy7_ = value;
  6770. return this;
  6771. }
  6772. public Builder ClearDummy7() {
  6773. result.hasDummy7 = false;
  6774. result.dummy7_ = 0;
  6775. return this;
  6776. }
  6777. // optional int32 dummy8 = 8;
  6778. public bool HasDummy8 {
  6779. get { return result.HasDummy8; }
  6780. }
  6781. public int Dummy8 {
  6782. get { return result.Dummy8; }
  6783. set { SetDummy8(value); }
  6784. }
  6785. public Builder SetDummy8(int value) {
  6786. result.hasDummy8 = true;
  6787. result.dummy8_ = value;
  6788. return this;
  6789. }
  6790. public Builder ClearDummy8() {
  6791. result.hasDummy8 = false;
  6792. result.dummy8_ = 0;
  6793. return this;
  6794. }
  6795. // optional int32 dummy9 = 9;
  6796. public bool HasDummy9 {
  6797. get { return result.HasDummy9; }
  6798. }
  6799. public int Dummy9 {
  6800. get { return result.Dummy9; }
  6801. set { SetDummy9(value); }
  6802. }
  6803. public Builder SetDummy9(int value) {
  6804. result.hasDummy9 = true;
  6805. result.dummy9_ = value;
  6806. return this;
  6807. }
  6808. public Builder ClearDummy9() {
  6809. result.hasDummy9 = false;
  6810. result.dummy9_ = 0;
  6811. return this;
  6812. }
  6813. // optional int32 dummy10 = 10;
  6814. public bool HasDummy10 {
  6815. get { return result.HasDummy10; }
  6816. }
  6817. public int Dummy10 {
  6818. get { return result.Dummy10; }
  6819. set { SetDummy10(value); }
  6820. }
  6821. public Builder SetDummy10(int value) {
  6822. result.hasDummy10 = true;
  6823. result.dummy10_ = value;
  6824. return this;
  6825. }
  6826. public Builder ClearDummy10() {
  6827. result.hasDummy10 = false;
  6828. result.dummy10_ = 0;
  6829. return this;
  6830. }
  6831. // optional int32 dummy11 = 11;
  6832. public bool HasDummy11 {
  6833. get { return result.HasDummy11; }
  6834. }
  6835. public int Dummy11 {
  6836. get { return result.Dummy11; }
  6837. set { SetDummy11(value); }
  6838. }
  6839. public Builder SetDummy11(int value) {
  6840. result.hasDummy11 = true;
  6841. result.dummy11_ = value;
  6842. return this;
  6843. }
  6844. public Builder ClearDummy11() {
  6845. result.hasDummy11 = false;
  6846. result.dummy11_ = 0;
  6847. return this;
  6848. }
  6849. // optional int32 dummy12 = 12;
  6850. public bool HasDummy12 {
  6851. get { return result.HasDummy12; }
  6852. }
  6853. public int Dummy12 {
  6854. get { return result.Dummy12; }
  6855. set { SetDummy12(value); }
  6856. }
  6857. public Builder SetDummy12(int value) {
  6858. result.hasDummy12 = true;
  6859. result.dummy12_ = value;
  6860. return this;
  6861. }
  6862. public Builder ClearDummy12() {
  6863. result.hasDummy12 = false;
  6864. result.dummy12_ = 0;
  6865. return this;
  6866. }
  6867. // optional int32 dummy13 = 13;
  6868. public bool HasDummy13 {
  6869. get { return result.HasDummy13; }
  6870. }
  6871. public int Dummy13 {
  6872. get { return result.Dummy13; }
  6873. set { SetDummy13(value); }
  6874. }
  6875. public Builder SetDummy13(int value) {
  6876. result.hasDummy13 = true;
  6877. result.dummy13_ = value;
  6878. return this;
  6879. }
  6880. public Builder ClearDummy13() {
  6881. result.hasDummy13 = false;
  6882. result.dummy13_ = 0;
  6883. return this;
  6884. }
  6885. // optional int32 dummy14 = 14;
  6886. public bool HasDummy14 {
  6887. get { return result.HasDummy14; }
  6888. }
  6889. public int Dummy14 {
  6890. get { return result.Dummy14; }
  6891. set { SetDummy14(value); }
  6892. }
  6893. public Builder SetDummy14(int value) {
  6894. result.hasDummy14 = true;
  6895. result.dummy14_ = value;
  6896. return this;
  6897. }
  6898. public Builder ClearDummy14() {
  6899. result.hasDummy14 = false;
  6900. result.dummy14_ = 0;
  6901. return this;
  6902. }
  6903. // optional int32 dummy15 = 15;
  6904. public bool HasDummy15 {
  6905. get { return result.HasDummy15; }
  6906. }
  6907. public int Dummy15 {
  6908. get { return result.Dummy15; }
  6909. set { SetDummy15(value); }
  6910. }
  6911. public Builder SetDummy15(int value) {
  6912. result.hasDummy15 = true;
  6913. result.dummy15_ = value;
  6914. return this;
  6915. }
  6916. public Builder ClearDummy15() {
  6917. result.hasDummy15 = false;
  6918. result.dummy15_ = 0;
  6919. return this;
  6920. }
  6921. // optional int32 dummy16 = 16;
  6922. public bool HasDummy16 {
  6923. get { return result.HasDummy16; }
  6924. }
  6925. public int Dummy16 {
  6926. get { return result.Dummy16; }
  6927. set { SetDummy16(value); }
  6928. }
  6929. public Builder SetDummy16(int value) {
  6930. result.hasDummy16 = true;
  6931. result.dummy16_ = value;
  6932. return this;
  6933. }
  6934. public Builder ClearDummy16() {
  6935. result.hasDummy16 = false;
  6936. result.dummy16_ = 0;
  6937. return this;
  6938. }
  6939. // optional int32 dummy17 = 17;
  6940. public bool HasDummy17 {
  6941. get { return result.HasDummy17; }
  6942. }
  6943. public int Dummy17 {
  6944. get { return result.Dummy17; }
  6945. set { SetDummy17(value); }
  6946. }
  6947. public Builder SetDummy17(int value) {
  6948. result.hasDummy17 = true;
  6949. result.dummy17_ = value;
  6950. return this;
  6951. }
  6952. public Builder ClearDummy17() {
  6953. result.hasDummy17 = false;
  6954. result.dummy17_ = 0;
  6955. return this;
  6956. }
  6957. // optional int32 dummy18 = 18;
  6958. public bool HasDummy18 {
  6959. get { return result.HasDummy18; }
  6960. }
  6961. public int Dummy18 {
  6962. get { return result.Dummy18; }
  6963. set { SetDummy18(value); }
  6964. }
  6965. public Builder SetDummy18(int value) {
  6966. result.hasDummy18 = true;
  6967. result.dummy18_ = value;
  6968. return this;
  6969. }
  6970. public Builder ClearDummy18() {
  6971. result.hasDummy18 = false;
  6972. result.dummy18_ = 0;
  6973. return this;
  6974. }
  6975. // optional int32 dummy19 = 19;
  6976. public bool HasDummy19 {
  6977. get { return result.HasDummy19; }
  6978. }
  6979. public int Dummy19 {
  6980. get { return result.Dummy19; }
  6981. set { SetDummy19(value); }
  6982. }
  6983. public Builder SetDummy19(int value) {
  6984. result.hasDummy19 = true;
  6985. result.dummy19_ = value;
  6986. return this;
  6987. }
  6988. public Builder ClearDummy19() {
  6989. result.hasDummy19 = false;
  6990. result.dummy19_ = 0;
  6991. return this;
  6992. }
  6993. // optional int32 dummy20 = 20;
  6994. public bool HasDummy20 {
  6995. get { return result.HasDummy20; }
  6996. }
  6997. public int Dummy20 {
  6998. get { return result.Dummy20; }
  6999. set { SetDummy20(value); }
  7000. }
  7001. public Builder SetDummy20(int value) {
  7002. result.hasDummy20 = true;
  7003. result.dummy20_ = value;
  7004. return this;
  7005. }
  7006. public Builder ClearDummy20() {
  7007. result.hasDummy20 = false;
  7008. result.dummy20_ = 0;
  7009. return this;
  7010. }
  7011. // optional int32 dummy21 = 21;
  7012. public bool HasDummy21 {
  7013. get { return result.HasDummy21; }
  7014. }
  7015. public int Dummy21 {
  7016. get { return result.Dummy21; }
  7017. set { SetDummy21(value); }
  7018. }
  7019. public Builder SetDummy21(int value) {
  7020. result.hasDummy21 = true;
  7021. result.dummy21_ = value;
  7022. return this;
  7023. }
  7024. public Builder ClearDummy21() {
  7025. result.hasDummy21 = false;
  7026. result.dummy21_ = 0;
  7027. return this;
  7028. }
  7029. // optional int32 dummy22 = 22;
  7030. public bool HasDummy22 {
  7031. get { return result.HasDummy22; }
  7032. }
  7033. public int Dummy22 {
  7034. get { return result.Dummy22; }
  7035. set { SetDummy22(value); }
  7036. }
  7037. public Builder SetDummy22(int value) {
  7038. result.hasDummy22 = true;
  7039. result.dummy22_ = value;
  7040. return this;
  7041. }
  7042. public Builder ClearDummy22() {
  7043. result.hasDummy22 = false;
  7044. result.dummy22_ = 0;
  7045. return this;
  7046. }
  7047. // optional int32 dummy23 = 23;
  7048. public bool HasDummy23 {
  7049. get { return result.HasDummy23; }
  7050. }
  7051. public int Dummy23 {
  7052. get { return result.Dummy23; }
  7053. set { SetDummy23(value); }
  7054. }
  7055. public Builder SetDummy23(int value) {
  7056. result.hasDummy23 = true;
  7057. result.dummy23_ = value;
  7058. return this;
  7059. }
  7060. public Builder ClearDummy23() {
  7061. result.hasDummy23 = false;
  7062. result.dummy23_ = 0;
  7063. return this;
  7064. }
  7065. // optional int32 dummy24 = 24;
  7066. public bool HasDummy24 {
  7067. get { return result.HasDummy24; }
  7068. }
  7069. public int Dummy24 {
  7070. get { return result.Dummy24; }
  7071. set { SetDummy24(value); }
  7072. }
  7073. public Builder SetDummy24(int value) {
  7074. result.hasDummy24 = true;
  7075. result.dummy24_ = value;
  7076. return this;
  7077. }
  7078. public Builder ClearDummy24() {
  7079. result.hasDummy24 = false;
  7080. result.dummy24_ = 0;
  7081. return this;
  7082. }
  7083. // optional int32 dummy25 = 25;
  7084. public bool HasDummy25 {
  7085. get { return result.HasDummy25; }
  7086. }
  7087. public int Dummy25 {
  7088. get { return result.Dummy25; }
  7089. set { SetDummy25(value); }
  7090. }
  7091. public Builder SetDummy25(int value) {
  7092. result.hasDummy25 = true;
  7093. result.dummy25_ = value;
  7094. return this;
  7095. }
  7096. public Builder ClearDummy25() {
  7097. result.hasDummy25 = false;
  7098. result.dummy25_ = 0;
  7099. return this;
  7100. }
  7101. // optional int32 dummy26 = 26;
  7102. public bool HasDummy26 {
  7103. get { return result.HasDummy26; }
  7104. }
  7105. public int Dummy26 {
  7106. get { return result.Dummy26; }
  7107. set { SetDummy26(value); }
  7108. }
  7109. public Builder SetDummy26(int value) {
  7110. result.hasDummy26 = true;
  7111. result.dummy26_ = value;
  7112. return this;
  7113. }
  7114. public Builder ClearDummy26() {
  7115. result.hasDummy26 = false;
  7116. result.dummy26_ = 0;
  7117. return this;
  7118. }
  7119. // optional int32 dummy27 = 27;
  7120. public bool HasDummy27 {
  7121. get { return result.HasDummy27; }
  7122. }
  7123. public int Dummy27 {
  7124. get { return result.Dummy27; }
  7125. set { SetDummy27(value); }
  7126. }
  7127. public Builder SetDummy27(int value) {
  7128. result.hasDummy27 = true;
  7129. result.dummy27_ = value;
  7130. return this;
  7131. }
  7132. public Builder ClearDummy27() {
  7133. result.hasDummy27 = false;
  7134. result.dummy27_ = 0;
  7135. return this;
  7136. }
  7137. // optional int32 dummy28 = 28;
  7138. public bool HasDummy28 {
  7139. get { return result.HasDummy28; }
  7140. }
  7141. public int Dummy28 {
  7142. get { return result.Dummy28; }
  7143. set { SetDummy28(value); }
  7144. }
  7145. public Builder SetDummy28(int value) {
  7146. result.hasDummy28 = true;
  7147. result.dummy28_ = value;
  7148. return this;
  7149. }
  7150. public Builder ClearDummy28() {
  7151. result.hasDummy28 = false;
  7152. result.dummy28_ = 0;
  7153. return this;
  7154. }
  7155. // optional int32 dummy29 = 29;
  7156. public bool HasDummy29 {
  7157. get { return result.HasDummy29; }
  7158. }
  7159. public int Dummy29 {
  7160. get { return result.Dummy29; }
  7161. set { SetDummy29(value); }
  7162. }
  7163. public Builder SetDummy29(int value) {
  7164. result.hasDummy29 = true;
  7165. result.dummy29_ = value;
  7166. return this;
  7167. }
  7168. public Builder ClearDummy29() {
  7169. result.hasDummy29 = false;
  7170. result.dummy29_ = 0;
  7171. return this;
  7172. }
  7173. // optional int32 dummy30 = 30;
  7174. public bool HasDummy30 {
  7175. get { return result.HasDummy30; }
  7176. }
  7177. public int Dummy30 {
  7178. get { return result.Dummy30; }
  7179. set { SetDummy30(value); }
  7180. }
  7181. public Builder SetDummy30(int value) {
  7182. result.hasDummy30 = true;
  7183. result.dummy30_ = value;
  7184. return this;
  7185. }
  7186. public Builder ClearDummy30() {
  7187. result.hasDummy30 = false;
  7188. result.dummy30_ = 0;
  7189. return this;
  7190. }
  7191. // optional int32 dummy31 = 31;
  7192. public bool HasDummy31 {
  7193. get { return result.HasDummy31; }
  7194. }
  7195. public int Dummy31 {
  7196. get { return result.Dummy31; }
  7197. set { SetDummy31(value); }
  7198. }
  7199. public Builder SetDummy31(int value) {
  7200. result.hasDummy31 = true;
  7201. result.dummy31_ = value;
  7202. return this;
  7203. }
  7204. public Builder ClearDummy31() {
  7205. result.hasDummy31 = false;
  7206. result.dummy31_ = 0;
  7207. return this;
  7208. }
  7209. // optional int32 dummy32 = 32;
  7210. public bool HasDummy32 {
  7211. get { return result.HasDummy32; }
  7212. }
  7213. public int Dummy32 {
  7214. get { return result.Dummy32; }
  7215. set { SetDummy32(value); }
  7216. }
  7217. public Builder SetDummy32(int value) {
  7218. result.hasDummy32 = true;
  7219. result.dummy32_ = value;
  7220. return this;
  7221. }
  7222. public Builder ClearDummy32() {
  7223. result.hasDummy32 = false;
  7224. result.dummy32_ = 0;
  7225. return this;
  7226. }
  7227. // required int32 c = 33;
  7228. public bool HasC {
  7229. get { return result.HasC; }
  7230. }
  7231. public int C {
  7232. get { return result.C; }
  7233. set { SetC(value); }
  7234. }
  7235. public Builder SetC(int value) {
  7236. result.hasC = true;
  7237. result.c_ = value;
  7238. return this;
  7239. }
  7240. public Builder ClearC() {
  7241. result.hasC = false;
  7242. result.c_ = 0;
  7243. return this;
  7244. }
  7245. }
  7246. }
  7247. public sealed partial class TestRequiredForeign : pb::GeneratedMessage<TestRequiredForeign, TestRequiredForeign.Builder> {
  7248. private static readonly TestRequiredForeign defaultInstance = new TestRequiredForeign();
  7249. public static TestRequiredForeign DefaultInstance {
  7250. get { return defaultInstance; }
  7251. }
  7252. public override TestRequiredForeign DefaultInstanceForType {
  7253. get { return defaultInstance; }
  7254. }
  7255. public static pbd::MessageDescriptor Descriptor {
  7256. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__Descriptor; }
  7257. }
  7258. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  7259. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable; }
  7260. }
  7261. // optional .protobuf_unittest.TestRequired optional_message = 1;
  7262. private bool hasOptionalMessage;
  7263. private self::TestRequired optionalMessage_ = self::TestRequired.DefaultInstance;
  7264. public bool HasOptionalMessage {
  7265. get { return hasOptionalMessage; }
  7266. }
  7267. public self::TestRequired OptionalMessage {
  7268. get { return optionalMessage_; }
  7269. }
  7270. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  7271. private scg::IList<self::TestRequired> repeatedMessage_ = pbc::Lists<self::TestRequired>.Empty;
  7272. public scg::IList<self::TestRequired> RepeatedMessageList {
  7273. get { return repeatedMessage_; }
  7274. }
  7275. public int RepeatedMessageCount
  7276. { get { return repeatedMessage_.Count; }
  7277. }
  7278. public self::TestRequired GetRepeatedMessage(int index) {
  7279. return repeatedMessage_ [index];
  7280. }
  7281. // optional int32 dummy = 3;
  7282. private bool hasDummy;
  7283. private int dummy_ = 0;
  7284. public bool HasDummy {
  7285. get { return hasDummy; }
  7286. }
  7287. public int Dummy {
  7288. get { return dummy_; }
  7289. }
  7290. public override bool IsInitialized {
  7291. get {
  7292. if (HasOptionalMessage) {
  7293. if (!OptionalMessage.IsInitialized) return false;
  7294. }
  7295. foreach (self::TestRequired element in RepeatedMessageList) {
  7296. if (!element.IsInitialized) return false;
  7297. }
  7298. return true;
  7299. }
  7300. }
  7301. public override void WriteTo(pb::CodedOutputStream output) {
  7302. if (HasOptionalMessage) {
  7303. output.WriteMessage(1, OptionalMessage);
  7304. }
  7305. foreach (self::TestRequired element in RepeatedMessageList) {
  7306. output.WriteMessage(2, element);
  7307. }
  7308. if (HasDummy) {
  7309. output.WriteInt32(3, Dummy);
  7310. }
  7311. UnknownFields.WriteTo(output);
  7312. }
  7313. private int memoizedSerializedSize = -1;
  7314. public override int SerializedSize {
  7315. get {
  7316. int size = memoizedSerializedSize;
  7317. if (size != -1) return size;
  7318. size = 0;
  7319. if (HasOptionalMessage) {
  7320. size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalMessage);
  7321. }
  7322. foreach (self::TestRequired element in RepeatedMessageList) {
  7323. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  7324. }
  7325. if (HasDummy) {
  7326. size += pb::CodedOutputStream.ComputeInt32Size(3, Dummy);
  7327. }
  7328. size += UnknownFields.SerializedSize;
  7329. memoizedSerializedSize = size;
  7330. return size;
  7331. }
  7332. }
  7333. public static self::TestRequiredForeign ParseFrom(pb::ByteString data) {
  7334. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7335. }
  7336. public static self::TestRequiredForeign ParseFrom(pb::ByteString data,
  7337. pb::ExtensionRegistry extensionRegistry) {
  7338. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7339. .BuildParsed();
  7340. }
  7341. public static self::TestRequiredForeign ParseFrom(byte[] data) {
  7342. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7343. }
  7344. public static self::TestRequiredForeign ParseFrom(byte[] data,
  7345. pb::ExtensionRegistry extensionRegistry) {
  7346. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7347. .BuildParsed();
  7348. }
  7349. public static self::TestRequiredForeign ParseFrom(global::System.IO.Stream input) {
  7350. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7351. }
  7352. public static self::TestRequiredForeign ParseFrom(
  7353. global::System.IO.Stream input,
  7354. pb::ExtensionRegistry extensionRegistry) {
  7355. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7356. .BuildParsed();
  7357. }
  7358. public static self::TestRequiredForeign ParseFrom(pb::CodedInputStream input) {
  7359. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7360. }
  7361. public static self::TestRequiredForeign ParseFrom(pb::CodedInputStream input,
  7362. pb::ExtensionRegistry extensionRegistry) {
  7363. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7364. .BuildParsed();
  7365. }
  7366. public static Builder CreateBuilder() { return new Builder(); }
  7367. public override Builder CreateBuilderForType() { return new Builder(); }
  7368. public static Builder CreateBuilder(self::TestRequiredForeign prototype) {
  7369. return (Builder) new Builder().MergeFrom(prototype);
  7370. }
  7371. public sealed partial class Builder : pb::GeneratedBuilder<self::TestRequiredForeign, Builder> {
  7372. protected override Builder ThisBuilder {
  7373. get { return this; }
  7374. }
  7375. // Construct using self::TestRequiredForeign.CreateBuilder()
  7376. internal Builder() {}
  7377. self::TestRequiredForeign result = new self::TestRequiredForeign();
  7378. protected override self::TestRequiredForeign MessageBeingBuilt {
  7379. get { return result; }
  7380. }
  7381. public override Builder Clear() {
  7382. result = new self::TestRequiredForeign();
  7383. return this;
  7384. }
  7385. public override Builder Clone() {
  7386. return new Builder().MergeFrom(result);
  7387. }
  7388. public override pbd::MessageDescriptor DescriptorForType {
  7389. get { return self::TestRequiredForeign.Descriptor; }
  7390. }
  7391. public override self::TestRequiredForeign DefaultInstanceForType {
  7392. get { return self::TestRequiredForeign.DefaultInstance; }
  7393. }
  7394. public override self::TestRequiredForeign BuildPartial() {
  7395. if (result.repeatedMessage_ != pbc::Lists<self::TestRequired>.Empty) {
  7396. result.repeatedMessage_ = pbc::Lists<self::TestRequired>.AsReadOnly(result.repeatedMessage_);
  7397. }
  7398. self::TestRequiredForeign returnMe = result;
  7399. result = null;
  7400. return returnMe;
  7401. }
  7402. public override Builder MergeFrom(pb::IMessage other) {
  7403. if (other is self::TestRequiredForeign) {
  7404. return MergeFrom((self::TestRequiredForeign) other);
  7405. } else {
  7406. base.MergeFrom(other);
  7407. return this;
  7408. }
  7409. }
  7410. public override Builder MergeFrom(self::TestRequiredForeign other) {
  7411. if (other == self::TestRequiredForeign.DefaultInstance) return this;
  7412. if (other.HasOptionalMessage) {
  7413. MergeOptionalMessage(other.OptionalMessage);
  7414. }
  7415. if (other.repeatedMessage_.Count != 0) {
  7416. if (result.repeatedMessage_.Count == 0) {
  7417. result.repeatedMessage_ = new scg::List<self::TestRequired>();
  7418. }
  7419. base.AddRange(other.repeatedMessage_, result.repeatedMessage_);
  7420. }
  7421. if (other.HasDummy) {
  7422. Dummy = other.Dummy;
  7423. }
  7424. this.MergeUnknownFields(other.UnknownFields);
  7425. return this;
  7426. }
  7427. public override Builder MergeFrom(pb::CodedInputStream input) {
  7428. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7429. }
  7430. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7431. pb::UnknownFieldSet.Builder unknownFields =
  7432. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7433. while (true) {
  7434. uint tag = input.ReadTag();
  7435. switch (tag) {
  7436. case 0:
  7437. this.UnknownFields = unknownFields.Build();
  7438. return this;
  7439. default: {
  7440. if (!ParseUnknownField(input, unknownFields,
  7441. extensionRegistry, tag)) {
  7442. this.UnknownFields = unknownFields.Build();
  7443. return this;
  7444. }
  7445. break;
  7446. }
  7447. case 10: {
  7448. self::TestRequired.Builder subBuilder = self::TestRequired.CreateBuilder();
  7449. if (HasOptionalMessage) {
  7450. subBuilder.MergeFrom(OptionalMessage);
  7451. }
  7452. input.ReadMessage(subBuilder, extensionRegistry);
  7453. OptionalMessage = subBuilder.BuildPartial();
  7454. break;
  7455. }
  7456. case 18: {
  7457. self::TestRequired.Builder subBuilder = self::TestRequired.CreateBuilder();
  7458. input.ReadMessage(subBuilder, extensionRegistry);
  7459. AddRepeatedMessage(subBuilder.BuildPartial());
  7460. break;
  7461. }
  7462. case 24: {
  7463. Dummy = input.ReadInt32();
  7464. break;
  7465. }
  7466. }
  7467. }
  7468. }
  7469. // optional .protobuf_unittest.TestRequired optional_message = 1;
  7470. public bool HasOptionalMessage {
  7471. get { return result.HasOptionalMessage; }
  7472. }
  7473. public self::TestRequired OptionalMessage {
  7474. get { return result.OptionalMessage; }
  7475. set { SetOptionalMessage(value); }
  7476. }
  7477. public Builder SetOptionalMessage(self::TestRequired value) {
  7478. result.hasOptionalMessage = true;
  7479. result.optionalMessage_ = value;
  7480. return this;
  7481. }
  7482. public Builder SetOptionalMessage(self::TestRequired.Builder builderForValue) {
  7483. result.hasOptionalMessage = true;
  7484. result.optionalMessage_ = builderForValue.Build();
  7485. return this;
  7486. }
  7487. public Builder MergeOptionalMessage(self::TestRequired value) {
  7488. if (result.HasOptionalMessage &&
  7489. result.optionalMessage_ != self::TestRequired.DefaultInstance) {
  7490. result.optionalMessage_ =
  7491. self::TestRequired.CreateBuilder(result.optionalMessage_).MergeFrom(value).BuildPartial();
  7492. } else {
  7493. result.optionalMessage_ = value;
  7494. }
  7495. result.hasOptionalMessage = true;
  7496. return this;
  7497. }
  7498. public Builder ClearOptionalMessage() {
  7499. result.hasOptionalMessage = false;
  7500. result.optionalMessage_ = self::TestRequired.DefaultInstance;
  7501. return this;
  7502. }
  7503. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  7504. public scg::IList<self::TestRequired> RepeatedMessageList {
  7505. get { return pbc::Lists.AsReadOnly(result.repeatedMessage_); }
  7506. }
  7507. public int RepeatedMessageCount {
  7508. get { return result.RepeatedMessageCount; }
  7509. }
  7510. public self::TestRequired GetRepeatedMessage(int index) {
  7511. return result.GetRepeatedMessage(index);
  7512. }
  7513. public Builder SetRepeatedMessage(int index, self::TestRequired value) {
  7514. result.repeatedMessage_[index] = value;
  7515. return this;
  7516. }
  7517. public Builder SetRepeatedMessage(int index, self::TestRequired.Builder builderForValue) {
  7518. result.repeatedMessage_[index] = builderForValue.Build();
  7519. return this;
  7520. }
  7521. public Builder AddRepeatedMessage(self::TestRequired value) {
  7522. if (result.repeatedMessage_ == pbc::Lists<self::TestRequired>.Empty) {
  7523. result.repeatedMessage_ = new scg::List<self::TestRequired>();
  7524. }
  7525. result.repeatedMessage_.Add(value);
  7526. return this;
  7527. }
  7528. public Builder AddRepeatedMessage(self::TestRequired.Builder builderForValue) {
  7529. if (result.repeatedMessage_ == pbc::Lists<self::TestRequired>.Empty) {
  7530. result.repeatedMessage_ = new scg::List<self::TestRequired>();
  7531. }
  7532. result.repeatedMessage_.Add(builderForValue.Build());
  7533. return this;
  7534. }
  7535. public Builder AddRangeRepeatedMessage(scg::IEnumerable<self::TestRequired> values) {
  7536. if (result.repeatedMessage_ == pbc::Lists<self::TestRequired>.Empty) {
  7537. result.repeatedMessage_ = new scg::List<self::TestRequired>();
  7538. }
  7539. base.AddRange(values, result.repeatedMessage_);
  7540. return this;
  7541. }
  7542. public Builder ClearRepeatedMessage() {
  7543. result.repeatedMessage_ = pbc::Lists<self::TestRequired>.Empty;
  7544. return this;
  7545. }
  7546. // optional int32 dummy = 3;
  7547. public bool HasDummy {
  7548. get { return result.HasDummy; }
  7549. }
  7550. public int Dummy {
  7551. get { return result.Dummy; }
  7552. set { SetDummy(value); }
  7553. }
  7554. public Builder SetDummy(int value) {
  7555. result.hasDummy = true;
  7556. result.dummy_ = value;
  7557. return this;
  7558. }
  7559. public Builder ClearDummy() {
  7560. result.hasDummy = false;
  7561. result.dummy_ = 0;
  7562. return this;
  7563. }
  7564. }
  7565. }
  7566. public sealed partial class TestForeignNested : pb::GeneratedMessage<TestForeignNested, TestForeignNested.Builder> {
  7567. private static readonly TestForeignNested defaultInstance = new TestForeignNested();
  7568. public static TestForeignNested DefaultInstance {
  7569. get { return defaultInstance; }
  7570. }
  7571. public override TestForeignNested DefaultInstanceForType {
  7572. get { return defaultInstance; }
  7573. }
  7574. public static pbd::MessageDescriptor Descriptor {
  7575. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__Descriptor; }
  7576. }
  7577. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  7578. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; }
  7579. }
  7580. // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
  7581. private bool hasForeignNested;
  7582. private self::TestAllTypes.Types.NestedMessage foreignNested_ = self::TestAllTypes.Types.NestedMessage.DefaultInstance;
  7583. public bool HasForeignNested {
  7584. get { return hasForeignNested; }
  7585. }
  7586. public self::TestAllTypes.Types.NestedMessage ForeignNested {
  7587. get { return foreignNested_; }
  7588. }
  7589. public override bool IsInitialized {
  7590. get {
  7591. return true;
  7592. }
  7593. }
  7594. public override void WriteTo(pb::CodedOutputStream output) {
  7595. if (HasForeignNested) {
  7596. output.WriteMessage(1, ForeignNested);
  7597. }
  7598. UnknownFields.WriteTo(output);
  7599. }
  7600. private int memoizedSerializedSize = -1;
  7601. public override int SerializedSize {
  7602. get {
  7603. int size = memoizedSerializedSize;
  7604. if (size != -1) return size;
  7605. size = 0;
  7606. if (HasForeignNested) {
  7607. size += pb::CodedOutputStream.ComputeMessageSize(1, ForeignNested);
  7608. }
  7609. size += UnknownFields.SerializedSize;
  7610. memoizedSerializedSize = size;
  7611. return size;
  7612. }
  7613. }
  7614. public static self::TestForeignNested ParseFrom(pb::ByteString data) {
  7615. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7616. }
  7617. public static self::TestForeignNested ParseFrom(pb::ByteString data,
  7618. pb::ExtensionRegistry extensionRegistry) {
  7619. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7620. .BuildParsed();
  7621. }
  7622. public static self::TestForeignNested ParseFrom(byte[] data) {
  7623. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7624. }
  7625. public static self::TestForeignNested ParseFrom(byte[] data,
  7626. pb::ExtensionRegistry extensionRegistry) {
  7627. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7628. .BuildParsed();
  7629. }
  7630. public static self::TestForeignNested ParseFrom(global::System.IO.Stream input) {
  7631. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7632. }
  7633. public static self::TestForeignNested ParseFrom(
  7634. global::System.IO.Stream input,
  7635. pb::ExtensionRegistry extensionRegistry) {
  7636. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7637. .BuildParsed();
  7638. }
  7639. public static self::TestForeignNested ParseFrom(pb::CodedInputStream input) {
  7640. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7641. }
  7642. public static self::TestForeignNested ParseFrom(pb::CodedInputStream input,
  7643. pb::ExtensionRegistry extensionRegistry) {
  7644. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7645. .BuildParsed();
  7646. }
  7647. public static Builder CreateBuilder() { return new Builder(); }
  7648. public override Builder CreateBuilderForType() { return new Builder(); }
  7649. public static Builder CreateBuilder(self::TestForeignNested prototype) {
  7650. return (Builder) new Builder().MergeFrom(prototype);
  7651. }
  7652. public sealed partial class Builder : pb::GeneratedBuilder<self::TestForeignNested, Builder> {
  7653. protected override Builder ThisBuilder {
  7654. get { return this; }
  7655. }
  7656. // Construct using self::TestForeignNested.CreateBuilder()
  7657. internal Builder() {}
  7658. self::TestForeignNested result = new self::TestForeignNested();
  7659. protected override self::TestForeignNested MessageBeingBuilt {
  7660. get { return result; }
  7661. }
  7662. public override Builder Clear() {
  7663. result = new self::TestForeignNested();
  7664. return this;
  7665. }
  7666. public override Builder Clone() {
  7667. return new Builder().MergeFrom(result);
  7668. }
  7669. public override pbd::MessageDescriptor DescriptorForType {
  7670. get { return self::TestForeignNested.Descriptor; }
  7671. }
  7672. public override self::TestForeignNested DefaultInstanceForType {
  7673. get { return self::TestForeignNested.DefaultInstance; }
  7674. }
  7675. public override self::TestForeignNested BuildPartial() {
  7676. self::TestForeignNested returnMe = result;
  7677. result = null;
  7678. return returnMe;
  7679. }
  7680. public override Builder MergeFrom(pb::IMessage other) {
  7681. if (other is self::TestForeignNested) {
  7682. return MergeFrom((self::TestForeignNested) other);
  7683. } else {
  7684. base.MergeFrom(other);
  7685. return this;
  7686. }
  7687. }
  7688. public override Builder MergeFrom(self::TestForeignNested other) {
  7689. if (other == self::TestForeignNested.DefaultInstance) return this;
  7690. if (other.HasForeignNested) {
  7691. MergeForeignNested(other.ForeignNested);
  7692. }
  7693. this.MergeUnknownFields(other.UnknownFields);
  7694. return this;
  7695. }
  7696. public override Builder MergeFrom(pb::CodedInputStream input) {
  7697. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7698. }
  7699. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7700. pb::UnknownFieldSet.Builder unknownFields =
  7701. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7702. while (true) {
  7703. uint tag = input.ReadTag();
  7704. switch (tag) {
  7705. case 0:
  7706. this.UnknownFields = unknownFields.Build();
  7707. return this;
  7708. default: {
  7709. if (!ParseUnknownField(input, unknownFields,
  7710. extensionRegistry, tag)) {
  7711. this.UnknownFields = unknownFields.Build();
  7712. return this;
  7713. }
  7714. break;
  7715. }
  7716. case 10: {
  7717. self::TestAllTypes.Types.NestedMessage.Builder subBuilder = self::TestAllTypes.Types.NestedMessage.CreateBuilder();
  7718. if (HasForeignNested) {
  7719. subBuilder.MergeFrom(ForeignNested);
  7720. }
  7721. input.ReadMessage(subBuilder, extensionRegistry);
  7722. ForeignNested = subBuilder.BuildPartial();
  7723. break;
  7724. }
  7725. }
  7726. }
  7727. }
  7728. // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
  7729. public bool HasForeignNested {
  7730. get { return result.HasForeignNested; }
  7731. }
  7732. public self::TestAllTypes.Types.NestedMessage ForeignNested {
  7733. get { return result.ForeignNested; }
  7734. set { SetForeignNested(value); }
  7735. }
  7736. public Builder SetForeignNested(self::TestAllTypes.Types.NestedMessage value) {
  7737. result.hasForeignNested = true;
  7738. result.foreignNested_ = value;
  7739. return this;
  7740. }
  7741. public Builder SetForeignNested(self::TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  7742. result.hasForeignNested = true;
  7743. result.foreignNested_ = builderForValue.Build();
  7744. return this;
  7745. }
  7746. public Builder MergeForeignNested(self::TestAllTypes.Types.NestedMessage value) {
  7747. if (result.HasForeignNested &&
  7748. result.foreignNested_ != self::TestAllTypes.Types.NestedMessage.DefaultInstance) {
  7749. result.foreignNested_ =
  7750. self::TestAllTypes.Types.NestedMessage.CreateBuilder(result.foreignNested_).MergeFrom(value).BuildPartial();
  7751. } else {
  7752. result.foreignNested_ = value;
  7753. }
  7754. result.hasForeignNested = true;
  7755. return this;
  7756. }
  7757. public Builder ClearForeignNested() {
  7758. result.hasForeignNested = false;
  7759. result.foreignNested_ = self::TestAllTypes.Types.NestedMessage.DefaultInstance;
  7760. return this;
  7761. }
  7762. }
  7763. }
  7764. public sealed partial class TestEmptyMessage : pb::GeneratedMessage<TestEmptyMessage, TestEmptyMessage.Builder> {
  7765. private static readonly TestEmptyMessage defaultInstance = new TestEmptyMessage();
  7766. public static TestEmptyMessage DefaultInstance {
  7767. get { return defaultInstance; }
  7768. }
  7769. public override TestEmptyMessage DefaultInstanceForType {
  7770. get { return defaultInstance; }
  7771. }
  7772. public static pbd::MessageDescriptor Descriptor {
  7773. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__Descriptor; }
  7774. }
  7775. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  7776. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable; }
  7777. }
  7778. public override bool IsInitialized {
  7779. get {
  7780. return true;
  7781. }
  7782. }
  7783. public override void WriteTo(pb::CodedOutputStream output) {
  7784. UnknownFields.WriteTo(output);
  7785. }
  7786. private int memoizedSerializedSize = -1;
  7787. public override int SerializedSize {
  7788. get {
  7789. int size = memoizedSerializedSize;
  7790. if (size != -1) return size;
  7791. size = 0;
  7792. size += UnknownFields.SerializedSize;
  7793. memoizedSerializedSize = size;
  7794. return size;
  7795. }
  7796. }
  7797. public static self::TestEmptyMessage ParseFrom(pb::ByteString data) {
  7798. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7799. }
  7800. public static self::TestEmptyMessage ParseFrom(pb::ByteString data,
  7801. pb::ExtensionRegistry extensionRegistry) {
  7802. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7803. .BuildParsed();
  7804. }
  7805. public static self::TestEmptyMessage ParseFrom(byte[] data) {
  7806. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7807. }
  7808. public static self::TestEmptyMessage ParseFrom(byte[] data,
  7809. pb::ExtensionRegistry extensionRegistry) {
  7810. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7811. .BuildParsed();
  7812. }
  7813. public static self::TestEmptyMessage ParseFrom(global::System.IO.Stream input) {
  7814. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7815. }
  7816. public static self::TestEmptyMessage ParseFrom(
  7817. global::System.IO.Stream input,
  7818. pb::ExtensionRegistry extensionRegistry) {
  7819. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7820. .BuildParsed();
  7821. }
  7822. public static self::TestEmptyMessage ParseFrom(pb::CodedInputStream input) {
  7823. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7824. }
  7825. public static self::TestEmptyMessage ParseFrom(pb::CodedInputStream input,
  7826. pb::ExtensionRegistry extensionRegistry) {
  7827. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7828. .BuildParsed();
  7829. }
  7830. public static Builder CreateBuilder() { return new Builder(); }
  7831. public override Builder CreateBuilderForType() { return new Builder(); }
  7832. public static Builder CreateBuilder(self::TestEmptyMessage prototype) {
  7833. return (Builder) new Builder().MergeFrom(prototype);
  7834. }
  7835. public sealed partial class Builder : pb::GeneratedBuilder<self::TestEmptyMessage, Builder> {
  7836. protected override Builder ThisBuilder {
  7837. get { return this; }
  7838. }
  7839. // Construct using self::TestEmptyMessage.CreateBuilder()
  7840. internal Builder() {}
  7841. self::TestEmptyMessage result = new self::TestEmptyMessage();
  7842. protected override self::TestEmptyMessage MessageBeingBuilt {
  7843. get { return result; }
  7844. }
  7845. public override Builder Clear() {
  7846. result = new self::TestEmptyMessage();
  7847. return this;
  7848. }
  7849. public override Builder Clone() {
  7850. return new Builder().MergeFrom(result);
  7851. }
  7852. public override pbd::MessageDescriptor DescriptorForType {
  7853. get { return self::TestEmptyMessage.Descriptor; }
  7854. }
  7855. public override self::TestEmptyMessage DefaultInstanceForType {
  7856. get { return self::TestEmptyMessage.DefaultInstance; }
  7857. }
  7858. public override self::TestEmptyMessage BuildPartial() {
  7859. self::TestEmptyMessage returnMe = result;
  7860. result = null;
  7861. return returnMe;
  7862. }
  7863. public override Builder MergeFrom(pb::IMessage other) {
  7864. if (other is self::TestEmptyMessage) {
  7865. return MergeFrom((self::TestEmptyMessage) other);
  7866. } else {
  7867. base.MergeFrom(other);
  7868. return this;
  7869. }
  7870. }
  7871. public override Builder MergeFrom(self::TestEmptyMessage other) {
  7872. if (other == self::TestEmptyMessage.DefaultInstance) return this;
  7873. this.MergeUnknownFields(other.UnknownFields);
  7874. return this;
  7875. }
  7876. public override Builder MergeFrom(pb::CodedInputStream input) {
  7877. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7878. }
  7879. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7880. pb::UnknownFieldSet.Builder unknownFields =
  7881. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7882. while (true) {
  7883. uint tag = input.ReadTag();
  7884. switch (tag) {
  7885. case 0:
  7886. this.UnknownFields = unknownFields.Build();
  7887. return this;
  7888. default: {
  7889. if (!ParseUnknownField(input, unknownFields,
  7890. extensionRegistry, tag)) {
  7891. this.UnknownFields = unknownFields.Build();
  7892. return this;
  7893. }
  7894. break;
  7895. }
  7896. }
  7897. }
  7898. }
  7899. }
  7900. }
  7901. public sealed partial class TestEmptyMessageWithExtensions : pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> {
  7902. private static readonly TestEmptyMessageWithExtensions defaultInstance = new TestEmptyMessageWithExtensions();
  7903. public static TestEmptyMessageWithExtensions DefaultInstance {
  7904. get { return defaultInstance; }
  7905. }
  7906. public override TestEmptyMessageWithExtensions DefaultInstanceForType {
  7907. get { return defaultInstance; }
  7908. }
  7909. public static pbd::MessageDescriptor Descriptor {
  7910. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor; }
  7911. }
  7912. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  7913. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable; }
  7914. }
  7915. public override bool IsInitialized {
  7916. get {
  7917. if (!ExtensionsAreInitialized) return false;
  7918. return true;
  7919. }
  7920. }
  7921. public override void WriteTo(pb::CodedOutputStream output) {
  7922. pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  7923. extensionWriter.WriteUntil(536870912, output);
  7924. UnknownFields.WriteTo(output);
  7925. }
  7926. private int memoizedSerializedSize = -1;
  7927. public override int SerializedSize {
  7928. get {
  7929. int size = memoizedSerializedSize;
  7930. if (size != -1) return size;
  7931. size = 0;
  7932. size += ExtensionsSerializedSize;
  7933. size += UnknownFields.SerializedSize;
  7934. memoizedSerializedSize = size;
  7935. return size;
  7936. }
  7937. }
  7938. public static self::TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data) {
  7939. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7940. }
  7941. public static self::TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data,
  7942. pb::ExtensionRegistry extensionRegistry) {
  7943. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7944. .BuildParsed();
  7945. }
  7946. public static self::TestEmptyMessageWithExtensions ParseFrom(byte[] data) {
  7947. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7948. }
  7949. public static self::TestEmptyMessageWithExtensions ParseFrom(byte[] data,
  7950. pb::ExtensionRegistry extensionRegistry) {
  7951. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7952. .BuildParsed();
  7953. }
  7954. public static self::TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input) {
  7955. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7956. }
  7957. public static self::TestEmptyMessageWithExtensions ParseFrom(
  7958. global::System.IO.Stream input,
  7959. pb::ExtensionRegistry extensionRegistry) {
  7960. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7961. .BuildParsed();
  7962. }
  7963. public static self::TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input) {
  7964. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7965. }
  7966. public static self::TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input,
  7967. pb::ExtensionRegistry extensionRegistry) {
  7968. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7969. .BuildParsed();
  7970. }
  7971. public static Builder CreateBuilder() { return new Builder(); }
  7972. public override Builder CreateBuilderForType() { return new Builder(); }
  7973. public static Builder CreateBuilder(self::TestEmptyMessageWithExtensions prototype) {
  7974. return (Builder) new Builder().MergeFrom(prototype);
  7975. }
  7976. public sealed partial class Builder : pb::ExtendableBuilder<self::TestEmptyMessageWithExtensions, self::TestEmptyMessageWithExtensions.Builder> {
  7977. protected override Builder ThisBuilder {
  7978. get { return this; }
  7979. }
  7980. // Construct using self::TestEmptyMessageWithExtensions.CreateBuilder()
  7981. internal Builder() {}
  7982. self::TestEmptyMessageWithExtensions result = new self::TestEmptyMessageWithExtensions();
  7983. protected override self::TestEmptyMessageWithExtensions MessageBeingBuilt {
  7984. get { return result; }
  7985. }
  7986. public override Builder Clear() {
  7987. result = new self::TestEmptyMessageWithExtensions();
  7988. return this;
  7989. }
  7990. public override Builder Clone() {
  7991. return new Builder().MergeFrom(result);
  7992. }
  7993. public override pbd::MessageDescriptor DescriptorForType {
  7994. get { return self::TestEmptyMessageWithExtensions.Descriptor; }
  7995. }
  7996. public override self::TestEmptyMessageWithExtensions DefaultInstanceForType {
  7997. get { return self::TestEmptyMessageWithExtensions.DefaultInstance; }
  7998. }
  7999. public override self::TestEmptyMessageWithExtensions BuildPartial() {
  8000. self::TestEmptyMessageWithExtensions returnMe = result;
  8001. result = null;
  8002. return returnMe;
  8003. }
  8004. public override Builder MergeFrom(pb::IMessage other) {
  8005. if (other is self::TestEmptyMessageWithExtensions) {
  8006. return MergeFrom((self::TestEmptyMessageWithExtensions) other);
  8007. } else {
  8008. base.MergeFrom(other);
  8009. return this;
  8010. }
  8011. }
  8012. public override Builder MergeFrom(self::TestEmptyMessageWithExtensions other) {
  8013. if (other == self::TestEmptyMessageWithExtensions.DefaultInstance) return this;
  8014. this.MergeUnknownFields(other.UnknownFields);
  8015. return this;
  8016. }
  8017. public override Builder MergeFrom(pb::CodedInputStream input) {
  8018. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8019. }
  8020. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8021. pb::UnknownFieldSet.Builder unknownFields =
  8022. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8023. while (true) {
  8024. uint tag = input.ReadTag();
  8025. switch (tag) {
  8026. case 0:
  8027. this.UnknownFields = unknownFields.Build();
  8028. return this;
  8029. default: {
  8030. if (!ParseUnknownField(input, unknownFields,
  8031. extensionRegistry, tag)) {
  8032. this.UnknownFields = unknownFields.Build();
  8033. return this;
  8034. }
  8035. break;
  8036. }
  8037. }
  8038. }
  8039. }
  8040. }
  8041. }
  8042. public sealed partial class TestReallyLargeTagNumber : pb::GeneratedMessage<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> {
  8043. private static readonly TestReallyLargeTagNumber defaultInstance = new TestReallyLargeTagNumber();
  8044. public static TestReallyLargeTagNumber DefaultInstance {
  8045. get { return defaultInstance; }
  8046. }
  8047. public override TestReallyLargeTagNumber DefaultInstanceForType {
  8048. get { return defaultInstance; }
  8049. }
  8050. public static pbd::MessageDescriptor Descriptor {
  8051. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor; }
  8052. }
  8053. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8054. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; }
  8055. }
  8056. // optional int32 a = 1;
  8057. private bool hasA;
  8058. private int a_ = 0;
  8059. public bool HasA {
  8060. get { return hasA; }
  8061. }
  8062. public int A {
  8063. get { return a_; }
  8064. }
  8065. // optional int32 bb = 268435455;
  8066. private bool hasBb;
  8067. private int bb_ = 0;
  8068. public bool HasBb {
  8069. get { return hasBb; }
  8070. }
  8071. public int Bb {
  8072. get { return bb_; }
  8073. }
  8074. public override bool IsInitialized {
  8075. get {
  8076. return true;
  8077. }
  8078. }
  8079. public override void WriteTo(pb::CodedOutputStream output) {
  8080. if (HasA) {
  8081. output.WriteInt32(1, A);
  8082. }
  8083. if (HasBb) {
  8084. output.WriteInt32(268435455, Bb);
  8085. }
  8086. UnknownFields.WriteTo(output);
  8087. }
  8088. private int memoizedSerializedSize = -1;
  8089. public override int SerializedSize {
  8090. get {
  8091. int size = memoizedSerializedSize;
  8092. if (size != -1) return size;
  8093. size = 0;
  8094. if (HasA) {
  8095. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  8096. }
  8097. if (HasBb) {
  8098. size += pb::CodedOutputStream.ComputeInt32Size(268435455, Bb);
  8099. }
  8100. size += UnknownFields.SerializedSize;
  8101. memoizedSerializedSize = size;
  8102. return size;
  8103. }
  8104. }
  8105. public static self::TestReallyLargeTagNumber ParseFrom(pb::ByteString data) {
  8106. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8107. }
  8108. public static self::TestReallyLargeTagNumber ParseFrom(pb::ByteString data,
  8109. pb::ExtensionRegistry extensionRegistry) {
  8110. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8111. .BuildParsed();
  8112. }
  8113. public static self::TestReallyLargeTagNumber ParseFrom(byte[] data) {
  8114. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8115. }
  8116. public static self::TestReallyLargeTagNumber ParseFrom(byte[] data,
  8117. pb::ExtensionRegistry extensionRegistry) {
  8118. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8119. .BuildParsed();
  8120. }
  8121. public static self::TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input) {
  8122. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8123. }
  8124. public static self::TestReallyLargeTagNumber ParseFrom(
  8125. global::System.IO.Stream input,
  8126. pb::ExtensionRegistry extensionRegistry) {
  8127. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8128. .BuildParsed();
  8129. }
  8130. public static self::TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input) {
  8131. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8132. }
  8133. public static self::TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input,
  8134. pb::ExtensionRegistry extensionRegistry) {
  8135. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8136. .BuildParsed();
  8137. }
  8138. public static Builder CreateBuilder() { return new Builder(); }
  8139. public override Builder CreateBuilderForType() { return new Builder(); }
  8140. public static Builder CreateBuilder(self::TestReallyLargeTagNumber prototype) {
  8141. return (Builder) new Builder().MergeFrom(prototype);
  8142. }
  8143. public sealed partial class Builder : pb::GeneratedBuilder<self::TestReallyLargeTagNumber, Builder> {
  8144. protected override Builder ThisBuilder {
  8145. get { return this; }
  8146. }
  8147. // Construct using self::TestReallyLargeTagNumber.CreateBuilder()
  8148. internal Builder() {}
  8149. self::TestReallyLargeTagNumber result = new self::TestReallyLargeTagNumber();
  8150. protected override self::TestReallyLargeTagNumber MessageBeingBuilt {
  8151. get { return result; }
  8152. }
  8153. public override Builder Clear() {
  8154. result = new self::TestReallyLargeTagNumber();
  8155. return this;
  8156. }
  8157. public override Builder Clone() {
  8158. return new Builder().MergeFrom(result);
  8159. }
  8160. public override pbd::MessageDescriptor DescriptorForType {
  8161. get { return self::TestReallyLargeTagNumber.Descriptor; }
  8162. }
  8163. public override self::TestReallyLargeTagNumber DefaultInstanceForType {
  8164. get { return self::TestReallyLargeTagNumber.DefaultInstance; }
  8165. }
  8166. public override self::TestReallyLargeTagNumber BuildPartial() {
  8167. self::TestReallyLargeTagNumber returnMe = result;
  8168. result = null;
  8169. return returnMe;
  8170. }
  8171. public override Builder MergeFrom(pb::IMessage other) {
  8172. if (other is self::TestReallyLargeTagNumber) {
  8173. return MergeFrom((self::TestReallyLargeTagNumber) other);
  8174. } else {
  8175. base.MergeFrom(other);
  8176. return this;
  8177. }
  8178. }
  8179. public override Builder MergeFrom(self::TestReallyLargeTagNumber other) {
  8180. if (other == self::TestReallyLargeTagNumber.DefaultInstance) return this;
  8181. if (other.HasA) {
  8182. A = other.A;
  8183. }
  8184. if (other.HasBb) {
  8185. Bb = other.Bb;
  8186. }
  8187. this.MergeUnknownFields(other.UnknownFields);
  8188. return this;
  8189. }
  8190. public override Builder MergeFrom(pb::CodedInputStream input) {
  8191. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8192. }
  8193. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8194. pb::UnknownFieldSet.Builder unknownFields =
  8195. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8196. while (true) {
  8197. uint tag = input.ReadTag();
  8198. switch (tag) {
  8199. case 0:
  8200. this.UnknownFields = unknownFields.Build();
  8201. return this;
  8202. default: {
  8203. if (!ParseUnknownField(input, unknownFields,
  8204. extensionRegistry, tag)) {
  8205. this.UnknownFields = unknownFields.Build();
  8206. return this;
  8207. }
  8208. break;
  8209. }
  8210. case 8: {
  8211. A = input.ReadInt32();
  8212. break;
  8213. }
  8214. case 2147483640: {
  8215. Bb = input.ReadInt32();
  8216. break;
  8217. }
  8218. }
  8219. }
  8220. }
  8221. // optional int32 a = 1;
  8222. public bool HasA {
  8223. get { return result.HasA; }
  8224. }
  8225. public int A {
  8226. get { return result.A; }
  8227. set { SetA(value); }
  8228. }
  8229. public Builder SetA(int value) {
  8230. result.hasA = true;
  8231. result.a_ = value;
  8232. return this;
  8233. }
  8234. public Builder ClearA() {
  8235. result.hasA = false;
  8236. result.a_ = 0;
  8237. return this;
  8238. }
  8239. // optional int32 bb = 268435455;
  8240. public bool HasBb {
  8241. get { return result.HasBb; }
  8242. }
  8243. public int Bb {
  8244. get { return result.Bb; }
  8245. set { SetBb(value); }
  8246. }
  8247. public Builder SetBb(int value) {
  8248. result.hasBb = true;
  8249. result.bb_ = value;
  8250. return this;
  8251. }
  8252. public Builder ClearBb() {
  8253. result.hasBb = false;
  8254. result.bb_ = 0;
  8255. return this;
  8256. }
  8257. }
  8258. }
  8259. public sealed partial class TestRecursiveMessage : pb::GeneratedMessage<TestRecursiveMessage, TestRecursiveMessage.Builder> {
  8260. private static readonly TestRecursiveMessage defaultInstance = new TestRecursiveMessage();
  8261. public static TestRecursiveMessage DefaultInstance {
  8262. get { return defaultInstance; }
  8263. }
  8264. public override TestRecursiveMessage DefaultInstanceForType {
  8265. get { return defaultInstance; }
  8266. }
  8267. public static pbd::MessageDescriptor Descriptor {
  8268. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor; }
  8269. }
  8270. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8271. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; }
  8272. }
  8273. // optional .protobuf_unittest.TestRecursiveMessage a = 1;
  8274. private bool hasA;
  8275. private self::TestRecursiveMessage a_ = self::TestRecursiveMessage.DefaultInstance;
  8276. public bool HasA {
  8277. get { return hasA; }
  8278. }
  8279. public self::TestRecursiveMessage A {
  8280. get { return a_; }
  8281. }
  8282. // optional int32 i = 2;
  8283. private bool hasI;
  8284. private int i_ = 0;
  8285. public bool HasI {
  8286. get { return hasI; }
  8287. }
  8288. public int I {
  8289. get { return i_; }
  8290. }
  8291. public override bool IsInitialized {
  8292. get {
  8293. return true;
  8294. }
  8295. }
  8296. public override void WriteTo(pb::CodedOutputStream output) {
  8297. if (HasA) {
  8298. output.WriteMessage(1, A);
  8299. }
  8300. if (HasI) {
  8301. output.WriteInt32(2, I);
  8302. }
  8303. UnknownFields.WriteTo(output);
  8304. }
  8305. private int memoizedSerializedSize = -1;
  8306. public override int SerializedSize {
  8307. get {
  8308. int size = memoizedSerializedSize;
  8309. if (size != -1) return size;
  8310. size = 0;
  8311. if (HasA) {
  8312. size += pb::CodedOutputStream.ComputeMessageSize(1, A);
  8313. }
  8314. if (HasI) {
  8315. size += pb::CodedOutputStream.ComputeInt32Size(2, I);
  8316. }
  8317. size += UnknownFields.SerializedSize;
  8318. memoizedSerializedSize = size;
  8319. return size;
  8320. }
  8321. }
  8322. public static self::TestRecursiveMessage ParseFrom(pb::ByteString data) {
  8323. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8324. }
  8325. public static self::TestRecursiveMessage ParseFrom(pb::ByteString data,
  8326. pb::ExtensionRegistry extensionRegistry) {
  8327. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8328. .BuildParsed();
  8329. }
  8330. public static self::TestRecursiveMessage ParseFrom(byte[] data) {
  8331. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8332. }
  8333. public static self::TestRecursiveMessage ParseFrom(byte[] data,
  8334. pb::ExtensionRegistry extensionRegistry) {
  8335. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8336. .BuildParsed();
  8337. }
  8338. public static self::TestRecursiveMessage ParseFrom(global::System.IO.Stream input) {
  8339. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8340. }
  8341. public static self::TestRecursiveMessage ParseFrom(
  8342. global::System.IO.Stream input,
  8343. pb::ExtensionRegistry extensionRegistry) {
  8344. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8345. .BuildParsed();
  8346. }
  8347. public static self::TestRecursiveMessage ParseFrom(pb::CodedInputStream input) {
  8348. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8349. }
  8350. public static self::TestRecursiveMessage ParseFrom(pb::CodedInputStream input,
  8351. pb::ExtensionRegistry extensionRegistry) {
  8352. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8353. .BuildParsed();
  8354. }
  8355. public static Builder CreateBuilder() { return new Builder(); }
  8356. public override Builder CreateBuilderForType() { return new Builder(); }
  8357. public static Builder CreateBuilder(self::TestRecursiveMessage prototype) {
  8358. return (Builder) new Builder().MergeFrom(prototype);
  8359. }
  8360. public sealed partial class Builder : pb::GeneratedBuilder<self::TestRecursiveMessage, Builder> {
  8361. protected override Builder ThisBuilder {
  8362. get { return this; }
  8363. }
  8364. // Construct using self::TestRecursiveMessage.CreateBuilder()
  8365. internal Builder() {}
  8366. self::TestRecursiveMessage result = new self::TestRecursiveMessage();
  8367. protected override self::TestRecursiveMessage MessageBeingBuilt {
  8368. get { return result; }
  8369. }
  8370. public override Builder Clear() {
  8371. result = new self::TestRecursiveMessage();
  8372. return this;
  8373. }
  8374. public override Builder Clone() {
  8375. return new Builder().MergeFrom(result);
  8376. }
  8377. public override pbd::MessageDescriptor DescriptorForType {
  8378. get { return self::TestRecursiveMessage.Descriptor; }
  8379. }
  8380. public override self::TestRecursiveMessage DefaultInstanceForType {
  8381. get { return self::TestRecursiveMessage.DefaultInstance; }
  8382. }
  8383. public override self::TestRecursiveMessage BuildPartial() {
  8384. self::TestRecursiveMessage returnMe = result;
  8385. result = null;
  8386. return returnMe;
  8387. }
  8388. public override Builder MergeFrom(pb::IMessage other) {
  8389. if (other is self::TestRecursiveMessage) {
  8390. return MergeFrom((self::TestRecursiveMessage) other);
  8391. } else {
  8392. base.MergeFrom(other);
  8393. return this;
  8394. }
  8395. }
  8396. public override Builder MergeFrom(self::TestRecursiveMessage other) {
  8397. if (other == self::TestRecursiveMessage.DefaultInstance) return this;
  8398. if (other.HasA) {
  8399. MergeA(other.A);
  8400. }
  8401. if (other.HasI) {
  8402. I = other.I;
  8403. }
  8404. this.MergeUnknownFields(other.UnknownFields);
  8405. return this;
  8406. }
  8407. public override Builder MergeFrom(pb::CodedInputStream input) {
  8408. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8409. }
  8410. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8411. pb::UnknownFieldSet.Builder unknownFields =
  8412. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8413. while (true) {
  8414. uint tag = input.ReadTag();
  8415. switch (tag) {
  8416. case 0:
  8417. this.UnknownFields = unknownFields.Build();
  8418. return this;
  8419. default: {
  8420. if (!ParseUnknownField(input, unknownFields,
  8421. extensionRegistry, tag)) {
  8422. this.UnknownFields = unknownFields.Build();
  8423. return this;
  8424. }
  8425. break;
  8426. }
  8427. case 10: {
  8428. self::TestRecursiveMessage.Builder subBuilder = self::TestRecursiveMessage.CreateBuilder();
  8429. if (HasA) {
  8430. subBuilder.MergeFrom(A);
  8431. }
  8432. input.ReadMessage(subBuilder, extensionRegistry);
  8433. A = subBuilder.BuildPartial();
  8434. break;
  8435. }
  8436. case 16: {
  8437. I = input.ReadInt32();
  8438. break;
  8439. }
  8440. }
  8441. }
  8442. }
  8443. // optional .protobuf_unittest.TestRecursiveMessage a = 1;
  8444. public bool HasA {
  8445. get { return result.HasA; }
  8446. }
  8447. public self::TestRecursiveMessage A {
  8448. get { return result.A; }
  8449. set { SetA(value); }
  8450. }
  8451. public Builder SetA(self::TestRecursiveMessage value) {
  8452. result.hasA = true;
  8453. result.a_ = value;
  8454. return this;
  8455. }
  8456. public Builder SetA(self::TestRecursiveMessage.Builder builderForValue) {
  8457. result.hasA = true;
  8458. result.a_ = builderForValue.Build();
  8459. return this;
  8460. }
  8461. public Builder MergeA(self::TestRecursiveMessage value) {
  8462. if (result.HasA &&
  8463. result.a_ != self::TestRecursiveMessage.DefaultInstance) {
  8464. result.a_ =
  8465. self::TestRecursiveMessage.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
  8466. } else {
  8467. result.a_ = value;
  8468. }
  8469. result.hasA = true;
  8470. return this;
  8471. }
  8472. public Builder ClearA() {
  8473. result.hasA = false;
  8474. result.a_ = self::TestRecursiveMessage.DefaultInstance;
  8475. return this;
  8476. }
  8477. // optional int32 i = 2;
  8478. public bool HasI {
  8479. get { return result.HasI; }
  8480. }
  8481. public int I {
  8482. get { return result.I; }
  8483. set { SetI(value); }
  8484. }
  8485. public Builder SetI(int value) {
  8486. result.hasI = true;
  8487. result.i_ = value;
  8488. return this;
  8489. }
  8490. public Builder ClearI() {
  8491. result.hasI = false;
  8492. result.i_ = 0;
  8493. return this;
  8494. }
  8495. }
  8496. }
  8497. public sealed partial class TestMutualRecursionA : pb::GeneratedMessage<TestMutualRecursionA, TestMutualRecursionA.Builder> {
  8498. private static readonly TestMutualRecursionA defaultInstance = new TestMutualRecursionA();
  8499. public static TestMutualRecursionA DefaultInstance {
  8500. get { return defaultInstance; }
  8501. }
  8502. public override TestMutualRecursionA DefaultInstanceForType {
  8503. get { return defaultInstance; }
  8504. }
  8505. public static pbd::MessageDescriptor Descriptor {
  8506. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor; }
  8507. }
  8508. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8509. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; }
  8510. }
  8511. // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
  8512. private bool hasBb;
  8513. private self::TestMutualRecursionB bb_ = self::TestMutualRecursionB.DefaultInstance;
  8514. public bool HasBb {
  8515. get { return hasBb; }
  8516. }
  8517. public self::TestMutualRecursionB Bb {
  8518. get { return bb_; }
  8519. }
  8520. public override bool IsInitialized {
  8521. get {
  8522. return true;
  8523. }
  8524. }
  8525. public override void WriteTo(pb::CodedOutputStream output) {
  8526. if (HasBb) {
  8527. output.WriteMessage(1, Bb);
  8528. }
  8529. UnknownFields.WriteTo(output);
  8530. }
  8531. private int memoizedSerializedSize = -1;
  8532. public override int SerializedSize {
  8533. get {
  8534. int size = memoizedSerializedSize;
  8535. if (size != -1) return size;
  8536. size = 0;
  8537. if (HasBb) {
  8538. size += pb::CodedOutputStream.ComputeMessageSize(1, Bb);
  8539. }
  8540. size += UnknownFields.SerializedSize;
  8541. memoizedSerializedSize = size;
  8542. return size;
  8543. }
  8544. }
  8545. public static self::TestMutualRecursionA ParseFrom(pb::ByteString data) {
  8546. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8547. }
  8548. public static self::TestMutualRecursionA ParseFrom(pb::ByteString data,
  8549. pb::ExtensionRegistry extensionRegistry) {
  8550. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8551. .BuildParsed();
  8552. }
  8553. public static self::TestMutualRecursionA ParseFrom(byte[] data) {
  8554. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8555. }
  8556. public static self::TestMutualRecursionA ParseFrom(byte[] data,
  8557. pb::ExtensionRegistry extensionRegistry) {
  8558. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8559. .BuildParsed();
  8560. }
  8561. public static self::TestMutualRecursionA ParseFrom(global::System.IO.Stream input) {
  8562. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8563. }
  8564. public static self::TestMutualRecursionA ParseFrom(
  8565. global::System.IO.Stream input,
  8566. pb::ExtensionRegistry extensionRegistry) {
  8567. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8568. .BuildParsed();
  8569. }
  8570. public static self::TestMutualRecursionA ParseFrom(pb::CodedInputStream input) {
  8571. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8572. }
  8573. public static self::TestMutualRecursionA ParseFrom(pb::CodedInputStream input,
  8574. pb::ExtensionRegistry extensionRegistry) {
  8575. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8576. .BuildParsed();
  8577. }
  8578. public static Builder CreateBuilder() { return new Builder(); }
  8579. public override Builder CreateBuilderForType() { return new Builder(); }
  8580. public static Builder CreateBuilder(self::TestMutualRecursionA prototype) {
  8581. return (Builder) new Builder().MergeFrom(prototype);
  8582. }
  8583. public sealed partial class Builder : pb::GeneratedBuilder<self::TestMutualRecursionA, Builder> {
  8584. protected override Builder ThisBuilder {
  8585. get { return this; }
  8586. }
  8587. // Construct using self::TestMutualRecursionA.CreateBuilder()
  8588. internal Builder() {}
  8589. self::TestMutualRecursionA result = new self::TestMutualRecursionA();
  8590. protected override self::TestMutualRecursionA MessageBeingBuilt {
  8591. get { return result; }
  8592. }
  8593. public override Builder Clear() {
  8594. result = new self::TestMutualRecursionA();
  8595. return this;
  8596. }
  8597. public override Builder Clone() {
  8598. return new Builder().MergeFrom(result);
  8599. }
  8600. public override pbd::MessageDescriptor DescriptorForType {
  8601. get { return self::TestMutualRecursionA.Descriptor; }
  8602. }
  8603. public override self::TestMutualRecursionA DefaultInstanceForType {
  8604. get { return self::TestMutualRecursionA.DefaultInstance; }
  8605. }
  8606. public override self::TestMutualRecursionA BuildPartial() {
  8607. self::TestMutualRecursionA returnMe = result;
  8608. result = null;
  8609. return returnMe;
  8610. }
  8611. public override Builder MergeFrom(pb::IMessage other) {
  8612. if (other is self::TestMutualRecursionA) {
  8613. return MergeFrom((self::TestMutualRecursionA) other);
  8614. } else {
  8615. base.MergeFrom(other);
  8616. return this;
  8617. }
  8618. }
  8619. public override Builder MergeFrom(self::TestMutualRecursionA other) {
  8620. if (other == self::TestMutualRecursionA.DefaultInstance) return this;
  8621. if (other.HasBb) {
  8622. MergeBb(other.Bb);
  8623. }
  8624. this.MergeUnknownFields(other.UnknownFields);
  8625. return this;
  8626. }
  8627. public override Builder MergeFrom(pb::CodedInputStream input) {
  8628. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8629. }
  8630. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8631. pb::UnknownFieldSet.Builder unknownFields =
  8632. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8633. while (true) {
  8634. uint tag = input.ReadTag();
  8635. switch (tag) {
  8636. case 0:
  8637. this.UnknownFields = unknownFields.Build();
  8638. return this;
  8639. default: {
  8640. if (!ParseUnknownField(input, unknownFields,
  8641. extensionRegistry, tag)) {
  8642. this.UnknownFields = unknownFields.Build();
  8643. return this;
  8644. }
  8645. break;
  8646. }
  8647. case 10: {
  8648. self::TestMutualRecursionB.Builder subBuilder = self::TestMutualRecursionB.CreateBuilder();
  8649. if (HasBb) {
  8650. subBuilder.MergeFrom(Bb);
  8651. }
  8652. input.ReadMessage(subBuilder, extensionRegistry);
  8653. Bb = subBuilder.BuildPartial();
  8654. break;
  8655. }
  8656. }
  8657. }
  8658. }
  8659. // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
  8660. public bool HasBb {
  8661. get { return result.HasBb; }
  8662. }
  8663. public self::TestMutualRecursionB Bb {
  8664. get { return result.Bb; }
  8665. set { SetBb(value); }
  8666. }
  8667. public Builder SetBb(self::TestMutualRecursionB value) {
  8668. result.hasBb = true;
  8669. result.bb_ = value;
  8670. return this;
  8671. }
  8672. public Builder SetBb(self::TestMutualRecursionB.Builder builderForValue) {
  8673. result.hasBb = true;
  8674. result.bb_ = builderForValue.Build();
  8675. return this;
  8676. }
  8677. public Builder MergeBb(self::TestMutualRecursionB value) {
  8678. if (result.HasBb &&
  8679. result.bb_ != self::TestMutualRecursionB.DefaultInstance) {
  8680. result.bb_ =
  8681. self::TestMutualRecursionB.CreateBuilder(result.bb_).MergeFrom(value).BuildPartial();
  8682. } else {
  8683. result.bb_ = value;
  8684. }
  8685. result.hasBb = true;
  8686. return this;
  8687. }
  8688. public Builder ClearBb() {
  8689. result.hasBb = false;
  8690. result.bb_ = self::TestMutualRecursionB.DefaultInstance;
  8691. return this;
  8692. }
  8693. }
  8694. }
  8695. public sealed partial class TestMutualRecursionB : pb::GeneratedMessage<TestMutualRecursionB, TestMutualRecursionB.Builder> {
  8696. private static readonly TestMutualRecursionB defaultInstance = new TestMutualRecursionB();
  8697. public static TestMutualRecursionB DefaultInstance {
  8698. get { return defaultInstance; }
  8699. }
  8700. public override TestMutualRecursionB DefaultInstanceForType {
  8701. get { return defaultInstance; }
  8702. }
  8703. public static pbd::MessageDescriptor Descriptor {
  8704. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor; }
  8705. }
  8706. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8707. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; }
  8708. }
  8709. // optional .protobuf_unittest.TestMutualRecursionA a = 1;
  8710. private bool hasA;
  8711. private self::TestMutualRecursionA a_ = self::TestMutualRecursionA.DefaultInstance;
  8712. public bool HasA {
  8713. get { return hasA; }
  8714. }
  8715. public self::TestMutualRecursionA A {
  8716. get { return a_; }
  8717. }
  8718. // optional int32 optional_int32 = 2;
  8719. private bool hasOptionalInt32;
  8720. private int optionalInt32_ = 0;
  8721. public bool HasOptionalInt32 {
  8722. get { return hasOptionalInt32; }
  8723. }
  8724. public int OptionalInt32 {
  8725. get { return optionalInt32_; }
  8726. }
  8727. public override bool IsInitialized {
  8728. get {
  8729. return true;
  8730. }
  8731. }
  8732. public override void WriteTo(pb::CodedOutputStream output) {
  8733. if (HasA) {
  8734. output.WriteMessage(1, A);
  8735. }
  8736. if (HasOptionalInt32) {
  8737. output.WriteInt32(2, OptionalInt32);
  8738. }
  8739. UnknownFields.WriteTo(output);
  8740. }
  8741. private int memoizedSerializedSize = -1;
  8742. public override int SerializedSize {
  8743. get {
  8744. int size = memoizedSerializedSize;
  8745. if (size != -1) return size;
  8746. size = 0;
  8747. if (HasA) {
  8748. size += pb::CodedOutputStream.ComputeMessageSize(1, A);
  8749. }
  8750. if (HasOptionalInt32) {
  8751. size += pb::CodedOutputStream.ComputeInt32Size(2, OptionalInt32);
  8752. }
  8753. size += UnknownFields.SerializedSize;
  8754. memoizedSerializedSize = size;
  8755. return size;
  8756. }
  8757. }
  8758. public static self::TestMutualRecursionB ParseFrom(pb::ByteString data) {
  8759. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8760. }
  8761. public static self::TestMutualRecursionB ParseFrom(pb::ByteString data,
  8762. pb::ExtensionRegistry extensionRegistry) {
  8763. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8764. .BuildParsed();
  8765. }
  8766. public static self::TestMutualRecursionB ParseFrom(byte[] data) {
  8767. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8768. }
  8769. public static self::TestMutualRecursionB ParseFrom(byte[] data,
  8770. pb::ExtensionRegistry extensionRegistry) {
  8771. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8772. .BuildParsed();
  8773. }
  8774. public static self::TestMutualRecursionB ParseFrom(global::System.IO.Stream input) {
  8775. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8776. }
  8777. public static self::TestMutualRecursionB ParseFrom(
  8778. global::System.IO.Stream input,
  8779. pb::ExtensionRegistry extensionRegistry) {
  8780. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8781. .BuildParsed();
  8782. }
  8783. public static self::TestMutualRecursionB ParseFrom(pb::CodedInputStream input) {
  8784. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8785. }
  8786. public static self::TestMutualRecursionB ParseFrom(pb::CodedInputStream input,
  8787. pb::ExtensionRegistry extensionRegistry) {
  8788. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8789. .BuildParsed();
  8790. }
  8791. public static Builder CreateBuilder() { return new Builder(); }
  8792. public override Builder CreateBuilderForType() { return new Builder(); }
  8793. public static Builder CreateBuilder(self::TestMutualRecursionB prototype) {
  8794. return (Builder) new Builder().MergeFrom(prototype);
  8795. }
  8796. public sealed partial class Builder : pb::GeneratedBuilder<self::TestMutualRecursionB, Builder> {
  8797. protected override Builder ThisBuilder {
  8798. get { return this; }
  8799. }
  8800. // Construct using self::TestMutualRecursionB.CreateBuilder()
  8801. internal Builder() {}
  8802. self::TestMutualRecursionB result = new self::TestMutualRecursionB();
  8803. protected override self::TestMutualRecursionB MessageBeingBuilt {
  8804. get { return result; }
  8805. }
  8806. public override Builder Clear() {
  8807. result = new self::TestMutualRecursionB();
  8808. return this;
  8809. }
  8810. public override Builder Clone() {
  8811. return new Builder().MergeFrom(result);
  8812. }
  8813. public override pbd::MessageDescriptor DescriptorForType {
  8814. get { return self::TestMutualRecursionB.Descriptor; }
  8815. }
  8816. public override self::TestMutualRecursionB DefaultInstanceForType {
  8817. get { return self::TestMutualRecursionB.DefaultInstance; }
  8818. }
  8819. public override self::TestMutualRecursionB BuildPartial() {
  8820. self::TestMutualRecursionB returnMe = result;
  8821. result = null;
  8822. return returnMe;
  8823. }
  8824. public override Builder MergeFrom(pb::IMessage other) {
  8825. if (other is self::TestMutualRecursionB) {
  8826. return MergeFrom((self::TestMutualRecursionB) other);
  8827. } else {
  8828. base.MergeFrom(other);
  8829. return this;
  8830. }
  8831. }
  8832. public override Builder MergeFrom(self::TestMutualRecursionB other) {
  8833. if (other == self::TestMutualRecursionB.DefaultInstance) return this;
  8834. if (other.HasA) {
  8835. MergeA(other.A);
  8836. }
  8837. if (other.HasOptionalInt32) {
  8838. OptionalInt32 = other.OptionalInt32;
  8839. }
  8840. this.MergeUnknownFields(other.UnknownFields);
  8841. return this;
  8842. }
  8843. public override Builder MergeFrom(pb::CodedInputStream input) {
  8844. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8845. }
  8846. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8847. pb::UnknownFieldSet.Builder unknownFields =
  8848. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8849. while (true) {
  8850. uint tag = input.ReadTag();
  8851. switch (tag) {
  8852. case 0:
  8853. this.UnknownFields = unknownFields.Build();
  8854. return this;
  8855. default: {
  8856. if (!ParseUnknownField(input, unknownFields,
  8857. extensionRegistry, tag)) {
  8858. this.UnknownFields = unknownFields.Build();
  8859. return this;
  8860. }
  8861. break;
  8862. }
  8863. case 10: {
  8864. self::TestMutualRecursionA.Builder subBuilder = self::TestMutualRecursionA.CreateBuilder();
  8865. if (HasA) {
  8866. subBuilder.MergeFrom(A);
  8867. }
  8868. input.ReadMessage(subBuilder, extensionRegistry);
  8869. A = subBuilder.BuildPartial();
  8870. break;
  8871. }
  8872. case 16: {
  8873. OptionalInt32 = input.ReadInt32();
  8874. break;
  8875. }
  8876. }
  8877. }
  8878. }
  8879. // optional .protobuf_unittest.TestMutualRecursionA a = 1;
  8880. public bool HasA {
  8881. get { return result.HasA; }
  8882. }
  8883. public self::TestMutualRecursionA A {
  8884. get { return result.A; }
  8885. set { SetA(value); }
  8886. }
  8887. public Builder SetA(self::TestMutualRecursionA value) {
  8888. result.hasA = true;
  8889. result.a_ = value;
  8890. return this;
  8891. }
  8892. public Builder SetA(self::TestMutualRecursionA.Builder builderForValue) {
  8893. result.hasA = true;
  8894. result.a_ = builderForValue.Build();
  8895. return this;
  8896. }
  8897. public Builder MergeA(self::TestMutualRecursionA value) {
  8898. if (result.HasA &&
  8899. result.a_ != self::TestMutualRecursionA.DefaultInstance) {
  8900. result.a_ =
  8901. self::TestMutualRecursionA.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
  8902. } else {
  8903. result.a_ = value;
  8904. }
  8905. result.hasA = true;
  8906. return this;
  8907. }
  8908. public Builder ClearA() {
  8909. result.hasA = false;
  8910. result.a_ = self::TestMutualRecursionA.DefaultInstance;
  8911. return this;
  8912. }
  8913. // optional int32 optional_int32 = 2;
  8914. public bool HasOptionalInt32 {
  8915. get { return result.HasOptionalInt32; }
  8916. }
  8917. public int OptionalInt32 {
  8918. get { return result.OptionalInt32; }
  8919. set { SetOptionalInt32(value); }
  8920. }
  8921. public Builder SetOptionalInt32(int value) {
  8922. result.hasOptionalInt32 = true;
  8923. result.optionalInt32_ = value;
  8924. return this;
  8925. }
  8926. public Builder ClearOptionalInt32() {
  8927. result.hasOptionalInt32 = false;
  8928. result.optionalInt32_ = 0;
  8929. return this;
  8930. }
  8931. }
  8932. }
  8933. public sealed partial class TestDupFieldNumber : pb::GeneratedMessage<TestDupFieldNumber, TestDupFieldNumber.Builder> {
  8934. private static readonly TestDupFieldNumber defaultInstance = new TestDupFieldNumber();
  8935. public static TestDupFieldNumber DefaultInstance {
  8936. get { return defaultInstance; }
  8937. }
  8938. public override TestDupFieldNumber DefaultInstanceForType {
  8939. get { return defaultInstance; }
  8940. }
  8941. public static pbd::MessageDescriptor Descriptor {
  8942. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor; }
  8943. }
  8944. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8945. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable; }
  8946. }
  8947. #region Nested types
  8948. public static class Types {
  8949. public sealed partial class Foo : pb::GeneratedMessage<Foo, Foo.Builder> {
  8950. private static readonly Foo defaultInstance = new Foo();
  8951. public static Foo DefaultInstance {
  8952. get { return defaultInstance; }
  8953. }
  8954. public override Foo DefaultInstanceForType {
  8955. get { return defaultInstance; }
  8956. }
  8957. public static pbd::MessageDescriptor Descriptor {
  8958. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor; }
  8959. }
  8960. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8961. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable; }
  8962. }
  8963. // optional int32 a = 1;
  8964. private bool hasA;
  8965. private int a_ = 0;
  8966. public bool HasA {
  8967. get { return hasA; }
  8968. }
  8969. public int A {
  8970. get { return a_; }
  8971. }
  8972. public override bool IsInitialized {
  8973. get {
  8974. return true;
  8975. }
  8976. }
  8977. public override void WriteTo(pb::CodedOutputStream output) {
  8978. if (HasA) {
  8979. output.WriteInt32(1, A);
  8980. }
  8981. UnknownFields.WriteTo(output);
  8982. }
  8983. private int memoizedSerializedSize = -1;
  8984. public override int SerializedSize {
  8985. get {
  8986. int size = memoizedSerializedSize;
  8987. if (size != -1) return size;
  8988. size = 0;
  8989. if (HasA) {
  8990. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  8991. }
  8992. size += UnknownFields.SerializedSize;
  8993. memoizedSerializedSize = size;
  8994. return size;
  8995. }
  8996. }
  8997. public static self::TestDupFieldNumber.Types.Foo ParseFrom(pb::ByteString data) {
  8998. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8999. }
  9000. public static self::TestDupFieldNumber.Types.Foo ParseFrom(pb::ByteString data,
  9001. pb::ExtensionRegistry extensionRegistry) {
  9002. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9003. .BuildParsed();
  9004. }
  9005. public static self::TestDupFieldNumber.Types.Foo ParseFrom(byte[] data) {
  9006. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9007. }
  9008. public static self::TestDupFieldNumber.Types.Foo ParseFrom(byte[] data,
  9009. pb::ExtensionRegistry extensionRegistry) {
  9010. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9011. .BuildParsed();
  9012. }
  9013. public static self::TestDupFieldNumber.Types.Foo ParseFrom(global::System.IO.Stream input) {
  9014. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9015. }
  9016. public static self::TestDupFieldNumber.Types.Foo ParseFrom(
  9017. global::System.IO.Stream input,
  9018. pb::ExtensionRegistry extensionRegistry) {
  9019. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9020. .BuildParsed();
  9021. }
  9022. public static self::TestDupFieldNumber.Types.Foo ParseFrom(pb::CodedInputStream input) {
  9023. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9024. }
  9025. public static self::TestDupFieldNumber.Types.Foo ParseFrom(pb::CodedInputStream input,
  9026. pb::ExtensionRegistry extensionRegistry) {
  9027. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9028. .BuildParsed();
  9029. }
  9030. public static Builder CreateBuilder() { return new Builder(); }
  9031. public override Builder CreateBuilderForType() { return new Builder(); }
  9032. public static Builder CreateBuilder(self::TestDupFieldNumber.Types.Foo prototype) {
  9033. return (Builder) new Builder().MergeFrom(prototype);
  9034. }
  9035. public sealed partial class Builder : pb::GeneratedBuilder<self::TestDupFieldNumber.Types.Foo, Builder> {
  9036. protected override Builder ThisBuilder {
  9037. get { return this; }
  9038. }
  9039. // Construct using self::TestDupFieldNumber.Types.Foo.CreateBuilder()
  9040. internal Builder() {}
  9041. self::TestDupFieldNumber.Types.Foo result = new self::TestDupFieldNumber.Types.Foo();
  9042. protected override self::TestDupFieldNumber.Types.Foo MessageBeingBuilt {
  9043. get { return result; }
  9044. }
  9045. public override Builder Clear() {
  9046. result = new self::TestDupFieldNumber.Types.Foo();
  9047. return this;
  9048. }
  9049. public override Builder Clone() {
  9050. return new Builder().MergeFrom(result);
  9051. }
  9052. public override pbd::MessageDescriptor DescriptorForType {
  9053. get { return self::TestDupFieldNumber.Types.Foo.Descriptor; }
  9054. }
  9055. public override self::TestDupFieldNumber.Types.Foo DefaultInstanceForType {
  9056. get { return self::TestDupFieldNumber.Types.Foo.DefaultInstance; }
  9057. }
  9058. public override self::TestDupFieldNumber.Types.Foo BuildPartial() {
  9059. self::TestDupFieldNumber.Types.Foo returnMe = result;
  9060. result = null;
  9061. return returnMe;
  9062. }
  9063. public override Builder MergeFrom(pb::IMessage other) {
  9064. if (other is self::TestDupFieldNumber.Types.Foo) {
  9065. return MergeFrom((self::TestDupFieldNumber.Types.Foo) other);
  9066. } else {
  9067. base.MergeFrom(other);
  9068. return this;
  9069. }
  9070. }
  9071. public override Builder MergeFrom(self::TestDupFieldNumber.Types.Foo other) {
  9072. if (other == self::TestDupFieldNumber.Types.Foo.DefaultInstance) return this;
  9073. if (other.HasA) {
  9074. A = other.A;
  9075. }
  9076. this.MergeUnknownFields(other.UnknownFields);
  9077. return this;
  9078. }
  9079. public override Builder MergeFrom(pb::CodedInputStream input) {
  9080. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9081. }
  9082. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9083. pb::UnknownFieldSet.Builder unknownFields =
  9084. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9085. while (true) {
  9086. uint tag = input.ReadTag();
  9087. switch (tag) {
  9088. case 0:
  9089. this.UnknownFields = unknownFields.Build();
  9090. return this;
  9091. default: {
  9092. if (!ParseUnknownField(input, unknownFields,
  9093. extensionRegistry, tag)) {
  9094. this.UnknownFields = unknownFields.Build();
  9095. return this;
  9096. }
  9097. break;
  9098. }
  9099. case 8: {
  9100. A = input.ReadInt32();
  9101. break;
  9102. }
  9103. }
  9104. }
  9105. }
  9106. // optional int32 a = 1;
  9107. public bool HasA {
  9108. get { return result.HasA; }
  9109. }
  9110. public int A {
  9111. get { return result.A; }
  9112. set { SetA(value); }
  9113. }
  9114. public Builder SetA(int value) {
  9115. result.hasA = true;
  9116. result.a_ = value;
  9117. return this;
  9118. }
  9119. public Builder ClearA() {
  9120. result.hasA = false;
  9121. result.a_ = 0;
  9122. return this;
  9123. }
  9124. }
  9125. }
  9126. public sealed partial class Bar : pb::GeneratedMessage<Bar, Bar.Builder> {
  9127. private static readonly Bar defaultInstance = new Bar();
  9128. public static Bar DefaultInstance {
  9129. get { return defaultInstance; }
  9130. }
  9131. public override Bar DefaultInstanceForType {
  9132. get { return defaultInstance; }
  9133. }
  9134. public static pbd::MessageDescriptor Descriptor {
  9135. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor; }
  9136. }
  9137. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  9138. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable; }
  9139. }
  9140. // optional int32 a = 1;
  9141. private bool hasA;
  9142. private int a_ = 0;
  9143. public bool HasA {
  9144. get { return hasA; }
  9145. }
  9146. public int A {
  9147. get { return a_; }
  9148. }
  9149. public override bool IsInitialized {
  9150. get {
  9151. return true;
  9152. }
  9153. }
  9154. public override void WriteTo(pb::CodedOutputStream output) {
  9155. if (HasA) {
  9156. output.WriteInt32(1, A);
  9157. }
  9158. UnknownFields.WriteTo(output);
  9159. }
  9160. private int memoizedSerializedSize = -1;
  9161. public override int SerializedSize {
  9162. get {
  9163. int size = memoizedSerializedSize;
  9164. if (size != -1) return size;
  9165. size = 0;
  9166. if (HasA) {
  9167. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  9168. }
  9169. size += UnknownFields.SerializedSize;
  9170. memoizedSerializedSize = size;
  9171. return size;
  9172. }
  9173. }
  9174. public static self::TestDupFieldNumber.Types.Bar ParseFrom(pb::ByteString data) {
  9175. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9176. }
  9177. public static self::TestDupFieldNumber.Types.Bar ParseFrom(pb::ByteString data,
  9178. pb::ExtensionRegistry extensionRegistry) {
  9179. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9180. .BuildParsed();
  9181. }
  9182. public static self::TestDupFieldNumber.Types.Bar ParseFrom(byte[] data) {
  9183. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9184. }
  9185. public static self::TestDupFieldNumber.Types.Bar ParseFrom(byte[] data,
  9186. pb::ExtensionRegistry extensionRegistry) {
  9187. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9188. .BuildParsed();
  9189. }
  9190. public static self::TestDupFieldNumber.Types.Bar ParseFrom(global::System.IO.Stream input) {
  9191. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9192. }
  9193. public static self::TestDupFieldNumber.Types.Bar ParseFrom(
  9194. global::System.IO.Stream input,
  9195. pb::ExtensionRegistry extensionRegistry) {
  9196. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9197. .BuildParsed();
  9198. }
  9199. public static self::TestDupFieldNumber.Types.Bar ParseFrom(pb::CodedInputStream input) {
  9200. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9201. }
  9202. public static self::TestDupFieldNumber.Types.Bar ParseFrom(pb::CodedInputStream input,
  9203. pb::ExtensionRegistry extensionRegistry) {
  9204. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9205. .BuildParsed();
  9206. }
  9207. public static Builder CreateBuilder() { return new Builder(); }
  9208. public override Builder CreateBuilderForType() { return new Builder(); }
  9209. public static Builder CreateBuilder(self::TestDupFieldNumber.Types.Bar prototype) {
  9210. return (Builder) new Builder().MergeFrom(prototype);
  9211. }
  9212. public sealed partial class Builder : pb::GeneratedBuilder<self::TestDupFieldNumber.Types.Bar, Builder> {
  9213. protected override Builder ThisBuilder {
  9214. get { return this; }
  9215. }
  9216. // Construct using self::TestDupFieldNumber.Types.Bar.CreateBuilder()
  9217. internal Builder() {}
  9218. self::TestDupFieldNumber.Types.Bar result = new self::TestDupFieldNumber.Types.Bar();
  9219. protected override self::TestDupFieldNumber.Types.Bar MessageBeingBuilt {
  9220. get { return result; }
  9221. }
  9222. public override Builder Clear() {
  9223. result = new self::TestDupFieldNumber.Types.Bar();
  9224. return this;
  9225. }
  9226. public override Builder Clone() {
  9227. return new Builder().MergeFrom(result);
  9228. }
  9229. public override pbd::MessageDescriptor DescriptorForType {
  9230. get { return self::TestDupFieldNumber.Types.Bar.Descriptor; }
  9231. }
  9232. public override self::TestDupFieldNumber.Types.Bar DefaultInstanceForType {
  9233. get { return self::TestDupFieldNumber.Types.Bar.DefaultInstance; }
  9234. }
  9235. public override self::TestDupFieldNumber.Types.Bar BuildPartial() {
  9236. self::TestDupFieldNumber.Types.Bar returnMe = result;
  9237. result = null;
  9238. return returnMe;
  9239. }
  9240. public override Builder MergeFrom(pb::IMessage other) {
  9241. if (other is self::TestDupFieldNumber.Types.Bar) {
  9242. return MergeFrom((self::TestDupFieldNumber.Types.Bar) other);
  9243. } else {
  9244. base.MergeFrom(other);
  9245. return this;
  9246. }
  9247. }
  9248. public override Builder MergeFrom(self::TestDupFieldNumber.Types.Bar other) {
  9249. if (other == self::TestDupFieldNumber.Types.Bar.DefaultInstance) return this;
  9250. if (other.HasA) {
  9251. A = other.A;
  9252. }
  9253. this.MergeUnknownFields(other.UnknownFields);
  9254. return this;
  9255. }
  9256. public override Builder MergeFrom(pb::CodedInputStream input) {
  9257. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9258. }
  9259. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9260. pb::UnknownFieldSet.Builder unknownFields =
  9261. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9262. while (true) {
  9263. uint tag = input.ReadTag();
  9264. switch (tag) {
  9265. case 0:
  9266. this.UnknownFields = unknownFields.Build();
  9267. return this;
  9268. default: {
  9269. if (!ParseUnknownField(input, unknownFields,
  9270. extensionRegistry, tag)) {
  9271. this.UnknownFields = unknownFields.Build();
  9272. return this;
  9273. }
  9274. break;
  9275. }
  9276. case 8: {
  9277. A = input.ReadInt32();
  9278. break;
  9279. }
  9280. }
  9281. }
  9282. }
  9283. // optional int32 a = 1;
  9284. public bool HasA {
  9285. get { return result.HasA; }
  9286. }
  9287. public int A {
  9288. get { return result.A; }
  9289. set { SetA(value); }
  9290. }
  9291. public Builder SetA(int value) {
  9292. result.hasA = true;
  9293. result.a_ = value;
  9294. return this;
  9295. }
  9296. public Builder ClearA() {
  9297. result.hasA = false;
  9298. result.a_ = 0;
  9299. return this;
  9300. }
  9301. }
  9302. }
  9303. }
  9304. #endregion
  9305. // optional int32 a = 1;
  9306. private bool hasA;
  9307. private int a_ = 0;
  9308. public bool HasA {
  9309. get { return hasA; }
  9310. }
  9311. public int A {
  9312. get { return a_; }
  9313. }
  9314. // optional group Foo = 2 {
  9315. private bool hasFoo;
  9316. private self::TestDupFieldNumber.Types.Foo foo_ = self::TestDupFieldNumber.Types.Foo.DefaultInstance;
  9317. public bool HasFoo {
  9318. get { return hasFoo; }
  9319. }
  9320. public self::TestDupFieldNumber.Types.Foo Foo {
  9321. get { return foo_; }
  9322. }
  9323. // optional group Bar = 3 {
  9324. private bool hasBar;
  9325. private self::TestDupFieldNumber.Types.Bar bar_ = self::TestDupFieldNumber.Types.Bar.DefaultInstance;
  9326. public bool HasBar {
  9327. get { return hasBar; }
  9328. }
  9329. public self::TestDupFieldNumber.Types.Bar Bar {
  9330. get { return bar_; }
  9331. }
  9332. public override bool IsInitialized {
  9333. get {
  9334. return true;
  9335. }
  9336. }
  9337. public override void WriteTo(pb::CodedOutputStream output) {
  9338. if (HasA) {
  9339. output.WriteInt32(1, A);
  9340. }
  9341. if (HasFoo) {
  9342. output.WriteGroup(2, Foo);
  9343. }
  9344. if (HasBar) {
  9345. output.WriteGroup(3, Bar);
  9346. }
  9347. UnknownFields.WriteTo(output);
  9348. }
  9349. private int memoizedSerializedSize = -1;
  9350. public override int SerializedSize {
  9351. get {
  9352. int size = memoizedSerializedSize;
  9353. if (size != -1) return size;
  9354. size = 0;
  9355. if (HasA) {
  9356. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  9357. }
  9358. if (HasFoo) {
  9359. size += pb::CodedOutputStream.ComputeGroupSize(2, Foo);
  9360. }
  9361. if (HasBar) {
  9362. size += pb::CodedOutputStream.ComputeGroupSize(3, Bar);
  9363. }
  9364. size += UnknownFields.SerializedSize;
  9365. memoizedSerializedSize = size;
  9366. return size;
  9367. }
  9368. }
  9369. public static self::TestDupFieldNumber ParseFrom(pb::ByteString data) {
  9370. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9371. }
  9372. public static self::TestDupFieldNumber ParseFrom(pb::ByteString data,
  9373. pb::ExtensionRegistry extensionRegistry) {
  9374. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9375. .BuildParsed();
  9376. }
  9377. public static self::TestDupFieldNumber ParseFrom(byte[] data) {
  9378. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9379. }
  9380. public static self::TestDupFieldNumber ParseFrom(byte[] data,
  9381. pb::ExtensionRegistry extensionRegistry) {
  9382. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9383. .BuildParsed();
  9384. }
  9385. public static self::TestDupFieldNumber ParseFrom(global::System.IO.Stream input) {
  9386. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9387. }
  9388. public static self::TestDupFieldNumber ParseFrom(
  9389. global::System.IO.Stream input,
  9390. pb::ExtensionRegistry extensionRegistry) {
  9391. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9392. .BuildParsed();
  9393. }
  9394. public static self::TestDupFieldNumber ParseFrom(pb::CodedInputStream input) {
  9395. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9396. }
  9397. public static self::TestDupFieldNumber ParseFrom(pb::CodedInputStream input,
  9398. pb::ExtensionRegistry extensionRegistry) {
  9399. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9400. .BuildParsed();
  9401. }
  9402. public static Builder CreateBuilder() { return new Builder(); }
  9403. public override Builder CreateBuilderForType() { return new Builder(); }
  9404. public static Builder CreateBuilder(self::TestDupFieldNumber prototype) {
  9405. return (Builder) new Builder().MergeFrom(prototype);
  9406. }
  9407. public sealed partial class Builder : pb::GeneratedBuilder<self::TestDupFieldNumber, Builder> {
  9408. protected override Builder ThisBuilder {
  9409. get { return this; }
  9410. }
  9411. // Construct using self::TestDupFieldNumber.CreateBuilder()
  9412. internal Builder() {}
  9413. self::TestDupFieldNumber result = new self::TestDupFieldNumber();
  9414. protected override self::TestDupFieldNumber MessageBeingBuilt {
  9415. get { return result; }
  9416. }
  9417. public override Builder Clear() {
  9418. result = new self::TestDupFieldNumber();
  9419. return this;
  9420. }
  9421. public override Builder Clone() {
  9422. return new Builder().MergeFrom(result);
  9423. }
  9424. public override pbd::MessageDescriptor DescriptorForType {
  9425. get { return self::TestDupFieldNumber.Descriptor; }
  9426. }
  9427. public override self::TestDupFieldNumber DefaultInstanceForType {
  9428. get { return self::TestDupFieldNumber.DefaultInstance; }
  9429. }
  9430. public override self::TestDupFieldNumber BuildPartial() {
  9431. self::TestDupFieldNumber returnMe = result;
  9432. result = null;
  9433. return returnMe;
  9434. }
  9435. public override Builder MergeFrom(pb::IMessage other) {
  9436. if (other is self::TestDupFieldNumber) {
  9437. return MergeFrom((self::TestDupFieldNumber) other);
  9438. } else {
  9439. base.MergeFrom(other);
  9440. return this;
  9441. }
  9442. }
  9443. public override Builder MergeFrom(self::TestDupFieldNumber other) {
  9444. if (other == self::TestDupFieldNumber.DefaultInstance) return this;
  9445. if (other.HasA) {
  9446. A = other.A;
  9447. }
  9448. if (other.HasFoo) {
  9449. MergeFoo(other.Foo);
  9450. }
  9451. if (other.HasBar) {
  9452. MergeBar(other.Bar);
  9453. }
  9454. this.MergeUnknownFields(other.UnknownFields);
  9455. return this;
  9456. }
  9457. public override Builder MergeFrom(pb::CodedInputStream input) {
  9458. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9459. }
  9460. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9461. pb::UnknownFieldSet.Builder unknownFields =
  9462. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9463. while (true) {
  9464. uint tag = input.ReadTag();
  9465. switch (tag) {
  9466. case 0:
  9467. this.UnknownFields = unknownFields.Build();
  9468. return this;
  9469. default: {
  9470. if (!ParseUnknownField(input, unknownFields,
  9471. extensionRegistry, tag)) {
  9472. this.UnknownFields = unknownFields.Build();
  9473. return this;
  9474. }
  9475. break;
  9476. }
  9477. case 8: {
  9478. A = input.ReadInt32();
  9479. break;
  9480. }
  9481. case 19: {
  9482. self::TestDupFieldNumber.Types.Foo.Builder subBuilder = self::TestDupFieldNumber.Types.Foo.CreateBuilder();
  9483. if (HasFoo) {
  9484. subBuilder.MergeFrom(Foo);
  9485. }
  9486. input.ReadGroup(2, subBuilder, extensionRegistry);
  9487. Foo = subBuilder.BuildPartial();
  9488. break;
  9489. }
  9490. case 27: {
  9491. self::TestDupFieldNumber.Types.Bar.Builder subBuilder = self::TestDupFieldNumber.Types.Bar.CreateBuilder();
  9492. if (HasBar) {
  9493. subBuilder.MergeFrom(Bar);
  9494. }
  9495. input.ReadGroup(3, subBuilder, extensionRegistry);
  9496. Bar = subBuilder.BuildPartial();
  9497. break;
  9498. }
  9499. }
  9500. }
  9501. }
  9502. // optional int32 a = 1;
  9503. public bool HasA {
  9504. get { return result.HasA; }
  9505. }
  9506. public int A {
  9507. get { return result.A; }
  9508. set { SetA(value); }
  9509. }
  9510. public Builder SetA(int value) {
  9511. result.hasA = true;
  9512. result.a_ = value;
  9513. return this;
  9514. }
  9515. public Builder ClearA() {
  9516. result.hasA = false;
  9517. result.a_ = 0;
  9518. return this;
  9519. }
  9520. // optional group Foo = 2 {
  9521. public bool HasFoo {
  9522. get { return result.HasFoo; }
  9523. }
  9524. public self::TestDupFieldNumber.Types.Foo Foo {
  9525. get { return result.Foo; }
  9526. set { SetFoo(value); }
  9527. }
  9528. public Builder SetFoo(self::TestDupFieldNumber.Types.Foo value) {
  9529. result.hasFoo = true;
  9530. result.foo_ = value;
  9531. return this;
  9532. }
  9533. public Builder SetFoo(self::TestDupFieldNumber.Types.Foo.Builder builderForValue) {
  9534. result.hasFoo = true;
  9535. result.foo_ = builderForValue.Build();
  9536. return this;
  9537. }
  9538. public Builder MergeFoo(self::TestDupFieldNumber.Types.Foo value) {
  9539. if (result.HasFoo &&
  9540. result.foo_ != self::TestDupFieldNumber.Types.Foo.DefaultInstance) {
  9541. result.foo_ =
  9542. self::TestDupFieldNumber.Types.Foo.CreateBuilder(result.foo_).MergeFrom(value).BuildPartial();
  9543. } else {
  9544. result.foo_ = value;
  9545. }
  9546. result.hasFoo = true;
  9547. return this;
  9548. }
  9549. public Builder ClearFoo() {
  9550. result.hasFoo = false;
  9551. result.foo_ = self::TestDupFieldNumber.Types.Foo.DefaultInstance;
  9552. return this;
  9553. }
  9554. // optional group Bar = 3 {
  9555. public bool HasBar {
  9556. get { return result.HasBar; }
  9557. }
  9558. public self::TestDupFieldNumber.Types.Bar Bar {
  9559. get { return result.Bar; }
  9560. set { SetBar(value); }
  9561. }
  9562. public Builder SetBar(self::TestDupFieldNumber.Types.Bar value) {
  9563. result.hasBar = true;
  9564. result.bar_ = value;
  9565. return this;
  9566. }
  9567. public Builder SetBar(self::TestDupFieldNumber.Types.Bar.Builder builderForValue) {
  9568. result.hasBar = true;
  9569. result.bar_ = builderForValue.Build();
  9570. return this;
  9571. }
  9572. public Builder MergeBar(self::TestDupFieldNumber.Types.Bar value) {
  9573. if (result.HasBar &&
  9574. result.bar_ != self::TestDupFieldNumber.Types.Bar.DefaultInstance) {
  9575. result.bar_ =
  9576. self::TestDupFieldNumber.Types.Bar.CreateBuilder(result.bar_).MergeFrom(value).BuildPartial();
  9577. } else {
  9578. result.bar_ = value;
  9579. }
  9580. result.hasBar = true;
  9581. return this;
  9582. }
  9583. public Builder ClearBar() {
  9584. result.hasBar = false;
  9585. result.bar_ = self::TestDupFieldNumber.Types.Bar.DefaultInstance;
  9586. return this;
  9587. }
  9588. }
  9589. }
  9590. public sealed partial class TestNestedMessageHasBits : pb::GeneratedMessage<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> {
  9591. private static readonly TestNestedMessageHasBits defaultInstance = new TestNestedMessageHasBits();
  9592. public static TestNestedMessageHasBits DefaultInstance {
  9593. get { return defaultInstance; }
  9594. }
  9595. public override TestNestedMessageHasBits DefaultInstanceForType {
  9596. get { return defaultInstance; }
  9597. }
  9598. public static pbd::MessageDescriptor Descriptor {
  9599. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor; }
  9600. }
  9601. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  9602. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable; }
  9603. }
  9604. #region Nested types
  9605. public static class Types {
  9606. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  9607. private static readonly NestedMessage defaultInstance = new NestedMessage();
  9608. public static NestedMessage DefaultInstance {
  9609. get { return defaultInstance; }
  9610. }
  9611. public override NestedMessage DefaultInstanceForType {
  9612. get { return defaultInstance; }
  9613. }
  9614. public static pbd::MessageDescriptor Descriptor {
  9615. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor; }
  9616. }
  9617. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  9618. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable; }
  9619. }
  9620. // repeated int32 nestedmessage_repeated_int32 = 1;
  9621. private scg::IList<int> nestedmessageRepeatedInt32_ = pbc::Lists<int>.Empty;
  9622. public scg::IList<int> NestedmessageRepeatedInt32List {
  9623. get { return nestedmessageRepeatedInt32_; }
  9624. }
  9625. public int NestedmessageRepeatedInt32Count {
  9626. get { return nestedmessageRepeatedInt32_.Count; }
  9627. }
  9628. public int GetNestedmessageRepeatedInt32(int index) {
  9629. return nestedmessageRepeatedInt32_[index];
  9630. }
  9631. // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
  9632. private scg::IList<self::ForeignMessage> nestedmessageRepeatedForeignmessage_ = pbc::Lists<self::ForeignMessage>.Empty;
  9633. public scg::IList<self::ForeignMessage> NestedmessageRepeatedForeignmessageList {
  9634. get { return nestedmessageRepeatedForeignmessage_; }
  9635. }
  9636. public int NestedmessageRepeatedForeignmessageCount
  9637. { get { return nestedmessageRepeatedForeignmessage_.Count; }
  9638. }
  9639. public self::ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
  9640. return nestedmessageRepeatedForeignmessage_ [index];
  9641. }
  9642. public override bool IsInitialized {
  9643. get {
  9644. return true;
  9645. }
  9646. }
  9647. public override void WriteTo(pb::CodedOutputStream output) {
  9648. foreach (int element in NestedmessageRepeatedInt32List) {
  9649. output.WriteInt32(1, element);
  9650. }
  9651. foreach (self::ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
  9652. output.WriteMessage(2, element);
  9653. }
  9654. UnknownFields.WriteTo(output);
  9655. }
  9656. private int memoizedSerializedSize = -1;
  9657. public override int SerializedSize {
  9658. get {
  9659. int size = memoizedSerializedSize;
  9660. if (size != -1) return size;
  9661. size = 0;
  9662. foreach (int element in NestedmessageRepeatedInt32List) {
  9663. size += pb::CodedOutputStream
  9664. .ComputeInt32Size(1, element);
  9665. }
  9666. foreach (self::ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
  9667. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  9668. }
  9669. size += UnknownFields.SerializedSize;
  9670. memoizedSerializedSize = size;
  9671. return size;
  9672. }
  9673. }
  9674. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::ByteString data) {
  9675. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9676. }
  9677. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::ByteString data,
  9678. pb::ExtensionRegistry extensionRegistry) {
  9679. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9680. .BuildParsed();
  9681. }
  9682. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(byte[] data) {
  9683. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9684. }
  9685. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(byte[] data,
  9686. pb::ExtensionRegistry extensionRegistry) {
  9687. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9688. .BuildParsed();
  9689. }
  9690. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(global::System.IO.Stream input) {
  9691. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9692. }
  9693. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(
  9694. global::System.IO.Stream input,
  9695. pb::ExtensionRegistry extensionRegistry) {
  9696. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9697. .BuildParsed();
  9698. }
  9699. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::CodedInputStream input) {
  9700. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9701. }
  9702. public static self::TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::CodedInputStream input,
  9703. pb::ExtensionRegistry extensionRegistry) {
  9704. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9705. .BuildParsed();
  9706. }
  9707. public static Builder CreateBuilder() { return new Builder(); }
  9708. public override Builder CreateBuilderForType() { return new Builder(); }
  9709. public static Builder CreateBuilder(self::TestNestedMessageHasBits.Types.NestedMessage prototype) {
  9710. return (Builder) new Builder().MergeFrom(prototype);
  9711. }
  9712. public sealed partial class Builder : pb::GeneratedBuilder<self::TestNestedMessageHasBits.Types.NestedMessage, Builder> {
  9713. protected override Builder ThisBuilder {
  9714. get { return this; }
  9715. }
  9716. // Construct using self::TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder()
  9717. internal Builder() {}
  9718. self::TestNestedMessageHasBits.Types.NestedMessage result = new self::TestNestedMessageHasBits.Types.NestedMessage();
  9719. protected override self::TestNestedMessageHasBits.Types.NestedMessage MessageBeingBuilt {
  9720. get { return result; }
  9721. }
  9722. public override Builder Clear() {
  9723. result = new self::TestNestedMessageHasBits.Types.NestedMessage();
  9724. return this;
  9725. }
  9726. public override Builder Clone() {
  9727. return new Builder().MergeFrom(result);
  9728. }
  9729. public override pbd::MessageDescriptor DescriptorForType {
  9730. get { return self::TestNestedMessageHasBits.Types.NestedMessage.Descriptor; }
  9731. }
  9732. public override self::TestNestedMessageHasBits.Types.NestedMessage DefaultInstanceForType {
  9733. get { return self::TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; }
  9734. }
  9735. public override self::TestNestedMessageHasBits.Types.NestedMessage BuildPartial() {
  9736. result.nestedmessageRepeatedInt32_ = pbc::Lists<int>.AsReadOnly(result.nestedmessageRepeatedInt32_);
  9737. if (result.nestedmessageRepeatedForeignmessage_ != pbc::Lists<self::ForeignMessage>.Empty) {
  9738. result.nestedmessageRepeatedForeignmessage_ = pbc::Lists<self::ForeignMessage>.AsReadOnly(result.nestedmessageRepeatedForeignmessage_);
  9739. }
  9740. self::TestNestedMessageHasBits.Types.NestedMessage returnMe = result;
  9741. result = null;
  9742. return returnMe;
  9743. }
  9744. public override Builder MergeFrom(pb::IMessage other) {
  9745. if (other is self::TestNestedMessageHasBits.Types.NestedMessage) {
  9746. return MergeFrom((self::TestNestedMessageHasBits.Types.NestedMessage) other);
  9747. } else {
  9748. base.MergeFrom(other);
  9749. return this;
  9750. }
  9751. }
  9752. public override Builder MergeFrom(self::TestNestedMessageHasBits.Types.NestedMessage other) {
  9753. if (other == self::TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) return this;
  9754. if (other.nestedmessageRepeatedInt32_.Count != 0) {
  9755. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9756. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9757. }
  9758. base.AddRange(other.nestedmessageRepeatedInt32_, result.nestedmessageRepeatedInt32_);
  9759. }
  9760. if (other.nestedmessageRepeatedForeignmessage_.Count != 0) {
  9761. if (result.nestedmessageRepeatedForeignmessage_.Count == 0) {
  9762. result.nestedmessageRepeatedForeignmessage_ = new scg::List<self::ForeignMessage>();
  9763. }
  9764. base.AddRange(other.nestedmessageRepeatedForeignmessage_, result.nestedmessageRepeatedForeignmessage_);
  9765. }
  9766. this.MergeUnknownFields(other.UnknownFields);
  9767. return this;
  9768. }
  9769. public override Builder MergeFrom(pb::CodedInputStream input) {
  9770. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9771. }
  9772. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9773. pb::UnknownFieldSet.Builder unknownFields =
  9774. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9775. while (true) {
  9776. uint tag = input.ReadTag();
  9777. switch (tag) {
  9778. case 0:
  9779. this.UnknownFields = unknownFields.Build();
  9780. return this;
  9781. default: {
  9782. if (!ParseUnknownField(input, unknownFields,
  9783. extensionRegistry, tag)) {
  9784. this.UnknownFields = unknownFields.Build();
  9785. return this;
  9786. }
  9787. break;
  9788. }
  9789. case 8: {
  9790. AddNestedmessageRepeatedInt32(input.ReadInt32());
  9791. break;
  9792. }
  9793. case 18: {
  9794. self::ForeignMessage.Builder subBuilder = self::ForeignMessage.CreateBuilder();
  9795. input.ReadMessage(subBuilder, extensionRegistry);
  9796. AddNestedmessageRepeatedForeignmessage(subBuilder.BuildPartial());
  9797. break;
  9798. }
  9799. }
  9800. }
  9801. }
  9802. // repeated int32 nestedmessage_repeated_int32 = 1;
  9803. public scg::IList<int> NestedmessageRepeatedInt32List {
  9804. get { return pbc::Lists<int>.AsReadOnly(result.nestedmessageRepeatedInt32_); }
  9805. }
  9806. public int NestedmessageRepeatedInt32Count {
  9807. get { return result.NestedmessageRepeatedInt32Count; }
  9808. }
  9809. public int GetNestedmessageRepeatedInt32(int index) {
  9810. return result.GetNestedmessageRepeatedInt32(index);
  9811. }
  9812. public Builder SetNestedmessageRepeatedInt32(int index, int value) {
  9813. result.nestedmessageRepeatedInt32_[index] = value;
  9814. return this;
  9815. }
  9816. public Builder AddNestedmessageRepeatedInt32(int value) {
  9817. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9818. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9819. }
  9820. result.nestedmessageRepeatedInt32_.Add(value);
  9821. return this;
  9822. }
  9823. public Builder AddRangeNestedmessageRepeatedInt32(scg::IEnumerable<int> values) {
  9824. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9825. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9826. }
  9827. base.AddRange(values, result.nestedmessageRepeatedInt32_);
  9828. return this;
  9829. }
  9830. public Builder ClearNestedmessageRepeatedInt32() {
  9831. result.nestedmessageRepeatedInt32_ = pbc::Lists<int>.Empty;
  9832. return this;
  9833. }
  9834. // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
  9835. public scg::IList<self::ForeignMessage> NestedmessageRepeatedForeignmessageList {
  9836. get { return pbc::Lists.AsReadOnly(result.nestedmessageRepeatedForeignmessage_); }
  9837. }
  9838. public int NestedmessageRepeatedForeignmessageCount {
  9839. get { return result.NestedmessageRepeatedForeignmessageCount; }
  9840. }
  9841. public self::ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
  9842. return result.GetNestedmessageRepeatedForeignmessage(index);
  9843. }
  9844. public Builder SetNestedmessageRepeatedForeignmessage(int index, self::ForeignMessage value) {
  9845. result.nestedmessageRepeatedForeignmessage_[index] = value;
  9846. return this;
  9847. }
  9848. public Builder SetNestedmessageRepeatedForeignmessage(int index, self::ForeignMessage.Builder builderForValue) {
  9849. result.nestedmessageRepeatedForeignmessage_[index] = builderForValue.Build();
  9850. return this;
  9851. }
  9852. public Builder AddNestedmessageRepeatedForeignmessage(self::ForeignMessage value) {
  9853. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  9854. result.nestedmessageRepeatedForeignmessage_ = new scg::List<self::ForeignMessage>();
  9855. }
  9856. result.nestedmessageRepeatedForeignmessage_.Add(value);
  9857. return this;
  9858. }
  9859. public Builder AddNestedmessageRepeatedForeignmessage(self::ForeignMessage.Builder builderForValue) {
  9860. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  9861. result.nestedmessageRepeatedForeignmessage_ = new scg::List<self::ForeignMessage>();
  9862. }
  9863. result.nestedmessageRepeatedForeignmessage_.Add(builderForValue.Build());
  9864. return this;
  9865. }
  9866. public Builder AddRangeNestedmessageRepeatedForeignmessage(scg::IEnumerable<self::ForeignMessage> values) {
  9867. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<self::ForeignMessage>.Empty) {
  9868. result.nestedmessageRepeatedForeignmessage_ = new scg::List<self::ForeignMessage>();
  9869. }
  9870. base.AddRange(values, result.nestedmessageRepeatedForeignmessage_);
  9871. return this;
  9872. }
  9873. public Builder ClearNestedmessageRepeatedForeignmessage() {
  9874. result.nestedmessageRepeatedForeignmessage_ = pbc::Lists<self::ForeignMessage>.Empty;
  9875. return this;
  9876. }
  9877. }
  9878. }
  9879. }
  9880. #endregion
  9881. // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
  9882. private bool hasOptionalNestedMessage;
  9883. private self::TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_ = self::TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
  9884. public bool HasOptionalNestedMessage {
  9885. get { return hasOptionalNestedMessage; }
  9886. }
  9887. public self::TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  9888. get { return optionalNestedMessage_; }
  9889. }
  9890. public override bool IsInitialized {
  9891. get {
  9892. return true;
  9893. }
  9894. }
  9895. public override void WriteTo(pb::CodedOutputStream output) {
  9896. if (HasOptionalNestedMessage) {
  9897. output.WriteMessage(1, OptionalNestedMessage);
  9898. }
  9899. UnknownFields.WriteTo(output);
  9900. }
  9901. private int memoizedSerializedSize = -1;
  9902. public override int SerializedSize {
  9903. get {
  9904. int size = memoizedSerializedSize;
  9905. if (size != -1) return size;
  9906. size = 0;
  9907. if (HasOptionalNestedMessage) {
  9908. size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalNestedMessage);
  9909. }
  9910. size += UnknownFields.SerializedSize;
  9911. memoizedSerializedSize = size;
  9912. return size;
  9913. }
  9914. }
  9915. public static self::TestNestedMessageHasBits ParseFrom(pb::ByteString data) {
  9916. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9917. }
  9918. public static self::TestNestedMessageHasBits ParseFrom(pb::ByteString data,
  9919. pb::ExtensionRegistry extensionRegistry) {
  9920. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9921. .BuildParsed();
  9922. }
  9923. public static self::TestNestedMessageHasBits ParseFrom(byte[] data) {
  9924. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9925. }
  9926. public static self::TestNestedMessageHasBits ParseFrom(byte[] data,
  9927. pb::ExtensionRegistry extensionRegistry) {
  9928. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9929. .BuildParsed();
  9930. }
  9931. public static self::TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input) {
  9932. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9933. }
  9934. public static self::TestNestedMessageHasBits ParseFrom(
  9935. global::System.IO.Stream input,
  9936. pb::ExtensionRegistry extensionRegistry) {
  9937. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9938. .BuildParsed();
  9939. }
  9940. public static self::TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input) {
  9941. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9942. }
  9943. public static self::TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input,
  9944. pb::ExtensionRegistry extensionRegistry) {
  9945. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9946. .BuildParsed();
  9947. }
  9948. public static Builder CreateBuilder() { return new Builder(); }
  9949. public override Builder CreateBuilderForType() { return new Builder(); }
  9950. public static Builder CreateBuilder(self::TestNestedMessageHasBits prototype) {
  9951. return (Builder) new Builder().MergeFrom(prototype);
  9952. }
  9953. public sealed partial class Builder : pb::GeneratedBuilder<self::TestNestedMessageHasBits, Builder> {
  9954. protected override Builder ThisBuilder {
  9955. get { return this; }
  9956. }
  9957. // Construct using self::TestNestedMessageHasBits.CreateBuilder()
  9958. internal Builder() {}
  9959. self::TestNestedMessageHasBits result = new self::TestNestedMessageHasBits();
  9960. protected override self::TestNestedMessageHasBits MessageBeingBuilt {
  9961. get { return result; }
  9962. }
  9963. public override Builder Clear() {
  9964. result = new self::TestNestedMessageHasBits();
  9965. return this;
  9966. }
  9967. public override Builder Clone() {
  9968. return new Builder().MergeFrom(result);
  9969. }
  9970. public override pbd::MessageDescriptor DescriptorForType {
  9971. get { return self::TestNestedMessageHasBits.Descriptor; }
  9972. }
  9973. public override self::TestNestedMessageHasBits DefaultInstanceForType {
  9974. get { return self::TestNestedMessageHasBits.DefaultInstance; }
  9975. }
  9976. public override self::TestNestedMessageHasBits BuildPartial() {
  9977. self::TestNestedMessageHasBits returnMe = result;
  9978. result = null;
  9979. return returnMe;
  9980. }
  9981. public override Builder MergeFrom(pb::IMessage other) {
  9982. if (other is self::TestNestedMessageHasBits) {
  9983. return MergeFrom((self::TestNestedMessageHasBits) other);
  9984. } else {
  9985. base.MergeFrom(other);
  9986. return this;
  9987. }
  9988. }
  9989. public override Builder MergeFrom(self::TestNestedMessageHasBits other) {
  9990. if (other == self::TestNestedMessageHasBits.DefaultInstance) return this;
  9991. if (other.HasOptionalNestedMessage) {
  9992. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  9993. }
  9994. this.MergeUnknownFields(other.UnknownFields);
  9995. return this;
  9996. }
  9997. public override Builder MergeFrom(pb::CodedInputStream input) {
  9998. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9999. }
  10000. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10001. pb::UnknownFieldSet.Builder unknownFields =
  10002. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10003. while (true) {
  10004. uint tag = input.ReadTag();
  10005. switch (tag) {
  10006. case 0:
  10007. this.UnknownFields = unknownFields.Build();
  10008. return this;
  10009. default: {
  10010. if (!ParseUnknownField(input, unknownFields,
  10011. extensionRegistry, tag)) {
  10012. this.UnknownFields = unknownFields.Build();
  10013. return this;
  10014. }
  10015. break;
  10016. }
  10017. case 10: {
  10018. self::TestNestedMessageHasBits.Types.NestedMessage.Builder subBuilder = self::TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder();
  10019. if (HasOptionalNestedMessage) {
  10020. subBuilder.MergeFrom(OptionalNestedMessage);
  10021. }
  10022. input.ReadMessage(subBuilder, extensionRegistry);
  10023. OptionalNestedMessage = subBuilder.BuildPartial();
  10024. break;
  10025. }
  10026. }
  10027. }
  10028. }
  10029. // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
  10030. public bool HasOptionalNestedMessage {
  10031. get { return result.HasOptionalNestedMessage; }
  10032. }
  10033. public self::TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  10034. get { return result.OptionalNestedMessage; }
  10035. set { SetOptionalNestedMessage(value); }
  10036. }
  10037. public Builder SetOptionalNestedMessage(self::TestNestedMessageHasBits.Types.NestedMessage value) {
  10038. result.hasOptionalNestedMessage = true;
  10039. result.optionalNestedMessage_ = value;
  10040. return this;
  10041. }
  10042. public Builder SetOptionalNestedMessage(self::TestNestedMessageHasBits.Types.NestedMessage.Builder builderForValue) {
  10043. result.hasOptionalNestedMessage = true;
  10044. result.optionalNestedMessage_ = builderForValue.Build();
  10045. return this;
  10046. }
  10047. public Builder MergeOptionalNestedMessage(self::TestNestedMessageHasBits.Types.NestedMessage value) {
  10048. if (result.HasOptionalNestedMessage &&
  10049. result.optionalNestedMessage_ != self::TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) {
  10050. result.optionalNestedMessage_ =
  10051. self::TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  10052. } else {
  10053. result.optionalNestedMessage_ = value;
  10054. }
  10055. result.hasOptionalNestedMessage = true;
  10056. return this;
  10057. }
  10058. public Builder ClearOptionalNestedMessage() {
  10059. result.hasOptionalNestedMessage = false;
  10060. result.optionalNestedMessage_ = self::TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
  10061. return this;
  10062. }
  10063. }
  10064. }
  10065. public sealed partial class TestCamelCaseFieldNames : pb::GeneratedMessage<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> {
  10066. private static readonly TestCamelCaseFieldNames defaultInstance = new TestCamelCaseFieldNames();
  10067. public static TestCamelCaseFieldNames DefaultInstance {
  10068. get { return defaultInstance; }
  10069. }
  10070. public override TestCamelCaseFieldNames DefaultInstanceForType {
  10071. get { return defaultInstance; }
  10072. }
  10073. public static pbd::MessageDescriptor Descriptor {
  10074. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor; }
  10075. }
  10076. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  10077. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; }
  10078. }
  10079. // optional int32 PrimitiveField = 1;
  10080. private bool hasPrimitiveField;
  10081. private int primitiveField_ = 0;
  10082. public bool HasPrimitiveField {
  10083. get { return hasPrimitiveField; }
  10084. }
  10085. public int PrimitiveField {
  10086. get { return primitiveField_; }
  10087. }
  10088. // optional string StringField = 2;
  10089. private bool hasStringField;
  10090. private string stringField_ = "";
  10091. public bool HasStringField {
  10092. get { return hasStringField; }
  10093. }
  10094. public string StringField {
  10095. get { return stringField_; }
  10096. }
  10097. // optional .protobuf_unittest.ForeignEnum EnumField = 3;
  10098. private bool hasEnumField;
  10099. private self::ForeignEnum enumField_ = self::ForeignEnum.FOREIGN_FOO;
  10100. public bool HasEnumField {
  10101. get { return hasEnumField; }
  10102. }
  10103. public self::ForeignEnum EnumField { get { return enumField_; }}
  10104. // optional .protobuf_unittest.ForeignMessage MessageField = 4;
  10105. private bool hasMessageField;
  10106. private self::ForeignMessage messageField_ = self::ForeignMessage.DefaultInstance;
  10107. public bool HasMessageField {
  10108. get { return hasMessageField; }
  10109. }
  10110. public self::ForeignMessage MessageField {
  10111. get { return messageField_; }
  10112. }
  10113. // optional string StringPieceField = 5 [ctype = STRING_PIECE];
  10114. private bool hasStringPieceField;
  10115. private string stringPieceField_ = "";
  10116. public bool HasStringPieceField {
  10117. get { return hasStringPieceField; }
  10118. }
  10119. public string StringPieceField {
  10120. get { return stringPieceField_; }
  10121. }
  10122. // optional string CordField = 6 [ctype = CORD];
  10123. private bool hasCordField;
  10124. private string cordField_ = "";
  10125. public bool HasCordField {
  10126. get { return hasCordField; }
  10127. }
  10128. public string CordField {
  10129. get { return cordField_; }
  10130. }
  10131. // repeated int32 RepeatedPrimitiveField = 7;
  10132. private scg::IList<int> repeatedPrimitiveField_ = pbc::Lists<int>.Empty;
  10133. public scg::IList<int> RepeatedPrimitiveFieldList {
  10134. get { return repeatedPrimitiveField_; }
  10135. }
  10136. public int RepeatedPrimitiveFieldCount {
  10137. get { return repeatedPrimitiveField_.Count; }
  10138. }
  10139. public int GetRepeatedPrimitiveField(int index) {
  10140. return repeatedPrimitiveField_[index];
  10141. }
  10142. // repeated string RepeatedStringField = 8;
  10143. private scg::IList<string> repeatedStringField_ = pbc::Lists<string>.Empty;
  10144. public scg::IList<string> RepeatedStringFieldList {
  10145. get { return repeatedStringField_; }
  10146. }
  10147. public int RepeatedStringFieldCount {
  10148. get { return repeatedStringField_.Count; }
  10149. }
  10150. public string GetRepeatedStringField(int index) {
  10151. return repeatedStringField_[index];
  10152. }
  10153. // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
  10154. private scg::IList<self::ForeignEnum> repeatedEnumField_ = new scg::List<self::ForeignEnum> ();
  10155. public scg.IList<self::ForeignEnum> RepeatedEnumFieldList {
  10156. get { return pbc::Lists.AsReadOnly(repeatedEnumField_); }
  10157. }
  10158. public int RepeatedEnumFieldCount {
  10159. get { return repeatedEnumField_.Count; }
  10160. }
  10161. public self::ForeignEnum GetRepeatedEnumField(int index) {
  10162. return repeatedEnumField_[index];
  10163. }
  10164. // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
  10165. private scg::IList<self::ForeignMessage> repeatedMessageField_ = pbc::Lists<self::ForeignMessage>.Empty;
  10166. public scg::IList<self::ForeignMessage> RepeatedMessageFieldList {
  10167. get { return repeatedMessageField_; }
  10168. }
  10169. public int RepeatedMessageFieldCount
  10170. { get { return repeatedMessageField_.Count; }
  10171. }
  10172. public self::ForeignMessage GetRepeatedMessageField(int index) {
  10173. return repeatedMessageField_ [index];
  10174. }
  10175. // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
  10176. private scg::IList<string> repeatedStringPieceField_ = pbc::Lists<string>.Empty;
  10177. public scg::IList<string> RepeatedStringPieceFieldList {
  10178. get { return repeatedStringPieceField_; }
  10179. }
  10180. public int RepeatedStringPieceFieldCount {
  10181. get { return repeatedStringPieceField_.Count; }
  10182. }
  10183. public string GetRepeatedStringPieceField(int index) {
  10184. return repeatedStringPieceField_[index];
  10185. }
  10186. // repeated string RepeatedCordField = 12 [ctype = CORD];
  10187. private scg::IList<string> repeatedCordField_ = pbc::Lists<string>.Empty;
  10188. public scg::IList<string> RepeatedCordFieldList {
  10189. get { return repeatedCordField_; }
  10190. }
  10191. public int RepeatedCordFieldCount {
  10192. get { return repeatedCordField_.Count; }
  10193. }
  10194. public string GetRepeatedCordField(int index) {
  10195. return repeatedCordField_[index];
  10196. }
  10197. public override bool IsInitialized {
  10198. get {
  10199. return true;
  10200. }
  10201. }
  10202. public override void WriteTo(pb::CodedOutputStream output) {
  10203. if (HasPrimitiveField) {
  10204. output.WriteInt32(1, PrimitiveField);
  10205. }
  10206. if (HasStringField) {
  10207. output.WriteString(2, StringField);
  10208. }
  10209. if (HasEnumField) {
  10210. output.WriteEnum(3, (int) EnumField);
  10211. }
  10212. if (HasMessageField) {
  10213. output.WriteMessage(4, MessageField);
  10214. }
  10215. if (HasStringPieceField) {
  10216. output.WriteString(5, StringPieceField);
  10217. }
  10218. if (HasCordField) {
  10219. output.WriteString(6, CordField);
  10220. }
  10221. foreach (int element in RepeatedPrimitiveFieldList) {
  10222. output.WriteInt32(7, element);
  10223. }
  10224. foreach (string element in RepeatedStringFieldList) {
  10225. output.WriteString(8, element);
  10226. }
  10227. foreach (self::ForeignEnum element in RepeatedEnumFieldList) {
  10228. output.WriteEnum(9, (int) element);
  10229. }
  10230. foreach (self::ForeignMessage element in RepeatedMessageFieldList) {
  10231. output.WriteMessage(10, element);
  10232. }
  10233. foreach (string element in RepeatedStringPieceFieldList) {
  10234. output.WriteString(11, element);
  10235. }
  10236. foreach (string element in RepeatedCordFieldList) {
  10237. output.WriteString(12, element);
  10238. }
  10239. UnknownFields.WriteTo(output);
  10240. }
  10241. private int memoizedSerializedSize = -1;
  10242. public override int SerializedSize {
  10243. get {
  10244. int size = memoizedSerializedSize;
  10245. if (size != -1) return size;
  10246. size = 0;
  10247. if (HasPrimitiveField) {
  10248. size += pb::CodedOutputStream.ComputeInt32Size(1, PrimitiveField);
  10249. }
  10250. if (HasStringField) {
  10251. size += pb::CodedOutputStream.ComputeStringSize(2, StringField);
  10252. }
  10253. if (HasEnumField) {
  10254. size += pb::CodedOutputStream
  10255. .ComputeEnumSize(3, (int) EnumField);
  10256. }
  10257. if (HasMessageField) {
  10258. size += pb::CodedOutputStream.ComputeMessageSize(4, MessageField);
  10259. }
  10260. if (HasStringPieceField) {
  10261. size += pb::CodedOutputStream.ComputeStringSize(5, StringPieceField);
  10262. }
  10263. if (HasCordField) {
  10264. size += pb::CodedOutputStream.ComputeStringSize(6, CordField);
  10265. }
  10266. foreach (int element in RepeatedPrimitiveFieldList) {
  10267. size += pb::CodedOutputStream
  10268. .ComputeInt32Size(7, element);
  10269. }
  10270. foreach (string element in RepeatedStringFieldList) {
  10271. size += pb::CodedOutputStream
  10272. .ComputeStringSize(8, element);
  10273. }
  10274. foreach (self::ForeignEnum element in RepeatedEnumFieldList) {
  10275. size += pb::CodedOutputStream
  10276. .ComputeEnumSize(9, (int) element);
  10277. }
  10278. foreach (self::ForeignMessage element in RepeatedMessageFieldList) {
  10279. size += pb::CodedOutputStream.ComputeMessageSize(10, element);
  10280. }
  10281. foreach (string element in RepeatedStringPieceFieldList) {
  10282. size += pb::CodedOutputStream
  10283. .ComputeStringSize(11, element);
  10284. }
  10285. foreach (string element in RepeatedCordFieldList) {
  10286. size += pb::CodedOutputStream
  10287. .ComputeStringSize(12, element);
  10288. }
  10289. size += UnknownFields.SerializedSize;
  10290. memoizedSerializedSize = size;
  10291. return size;
  10292. }
  10293. }
  10294. public static self::TestCamelCaseFieldNames ParseFrom(pb::ByteString data) {
  10295. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10296. }
  10297. public static self::TestCamelCaseFieldNames ParseFrom(pb::ByteString data,
  10298. pb::ExtensionRegistry extensionRegistry) {
  10299. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10300. .BuildParsed();
  10301. }
  10302. public static self::TestCamelCaseFieldNames ParseFrom(byte[] data) {
  10303. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10304. }
  10305. public static self::TestCamelCaseFieldNames ParseFrom(byte[] data,
  10306. pb::ExtensionRegistry extensionRegistry) {
  10307. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10308. .BuildParsed();
  10309. }
  10310. public static self::TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input) {
  10311. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10312. }
  10313. public static self::TestCamelCaseFieldNames ParseFrom(
  10314. global::System.IO.Stream input,
  10315. pb::ExtensionRegistry extensionRegistry) {
  10316. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10317. .BuildParsed();
  10318. }
  10319. public static self::TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input) {
  10320. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10321. }
  10322. public static self::TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input,
  10323. pb::ExtensionRegistry extensionRegistry) {
  10324. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10325. .BuildParsed();
  10326. }
  10327. public static Builder CreateBuilder() { return new Builder(); }
  10328. public override Builder CreateBuilderForType() { return new Builder(); }
  10329. public static Builder CreateBuilder(self::TestCamelCaseFieldNames prototype) {
  10330. return (Builder) new Builder().MergeFrom(prototype);
  10331. }
  10332. public sealed partial class Builder : pb::GeneratedBuilder<self::TestCamelCaseFieldNames, Builder> {
  10333. protected override Builder ThisBuilder {
  10334. get { return this; }
  10335. }
  10336. // Construct using self::TestCamelCaseFieldNames.CreateBuilder()
  10337. internal Builder() {}
  10338. self::TestCamelCaseFieldNames result = new self::TestCamelCaseFieldNames();
  10339. protected override self::TestCamelCaseFieldNames MessageBeingBuilt {
  10340. get { return result; }
  10341. }
  10342. public override Builder Clear() {
  10343. result = new self::TestCamelCaseFieldNames();
  10344. return this;
  10345. }
  10346. public override Builder Clone() {
  10347. return new Builder().MergeFrom(result);
  10348. }
  10349. public override pbd::MessageDescriptor DescriptorForType {
  10350. get { return self::TestCamelCaseFieldNames.Descriptor; }
  10351. }
  10352. public override self::TestCamelCaseFieldNames DefaultInstanceForType {
  10353. get { return self::TestCamelCaseFieldNames.DefaultInstance; }
  10354. }
  10355. public override self::TestCamelCaseFieldNames BuildPartial() {
  10356. result.repeatedPrimitiveField_ = pbc::Lists<int>.AsReadOnly(result.repeatedPrimitiveField_);
  10357. result.repeatedStringField_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringField_);
  10358. result.repeatedEnumField_ = pbc::Lists.AsReadOnly(result.repeatedEnumField_);
  10359. if (result.repeatedMessageField_ != pbc::Lists<self::ForeignMessage>.Empty) {
  10360. result.repeatedMessageField_ = pbc::Lists<self::ForeignMessage>.AsReadOnly(result.repeatedMessageField_);
  10361. }
  10362. result.repeatedStringPieceField_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringPieceField_);
  10363. result.repeatedCordField_ = pbc::Lists<string>.AsReadOnly(result.repeatedCordField_);
  10364. self::TestCamelCaseFieldNames returnMe = result;
  10365. result = null;
  10366. return returnMe;
  10367. }
  10368. public override Builder MergeFrom(pb::IMessage other) {
  10369. if (other is self::TestCamelCaseFieldNames) {
  10370. return MergeFrom((self::TestCamelCaseFieldNames) other);
  10371. } else {
  10372. base.MergeFrom(other);
  10373. return this;
  10374. }
  10375. }
  10376. public override Builder MergeFrom(self::TestCamelCaseFieldNames other) {
  10377. if (other == self::TestCamelCaseFieldNames.DefaultInstance) return this;
  10378. if (other.HasPrimitiveField) {
  10379. PrimitiveField = other.PrimitiveField;
  10380. }
  10381. if (other.HasStringField) {
  10382. StringField = other.StringField;
  10383. }
  10384. if (other.HasEnumField) {
  10385. EnumField = other.EnumField;
  10386. }
  10387. if (other.HasMessageField) {
  10388. MergeMessageField(other.MessageField);
  10389. }
  10390. if (other.HasStringPieceField) {
  10391. StringPieceField = other.StringPieceField;
  10392. }
  10393. if (other.HasCordField) {
  10394. CordField = other.CordField;
  10395. }
  10396. if (other.repeatedPrimitiveField_.Count != 0) {
  10397. if (result.repeatedPrimitiveField_.Count == 0) {
  10398. result.repeatedPrimitiveField_ = new scg::List<int>();
  10399. }
  10400. base.AddRange(other.repeatedPrimitiveField_, result.repeatedPrimitiveField_);
  10401. }
  10402. if (other.repeatedStringField_.Count != 0) {
  10403. if (result.repeatedStringField_.Count == 0) {
  10404. result.repeatedStringField_ = new scg::List<string>();
  10405. }
  10406. base.AddRange(other.repeatedStringField_, result.repeatedStringField_);
  10407. }
  10408. if (other.repeatedEnumField_.Count != 0) {
  10409. if (result.repeatedEnumField_.Count == 0) {
  10410. result.repeatedEnumField_ = new scg::List<self::ForeignEnum>();
  10411. }
  10412. base.AddRange(other.repeatedEnumField_, result.repeatedEnumField_);
  10413. }
  10414. if (other.repeatedMessageField_.Count != 0) {
  10415. if (result.repeatedMessageField_.Count == 0) {
  10416. result.repeatedMessageField_ = new scg::List<self::ForeignMessage>();
  10417. }
  10418. base.AddRange(other.repeatedMessageField_, result.repeatedMessageField_);
  10419. }
  10420. if (other.repeatedStringPieceField_.Count != 0) {
  10421. if (result.repeatedStringPieceField_.Count == 0) {
  10422. result.repeatedStringPieceField_ = new scg::List<string>();
  10423. }
  10424. base.AddRange(other.repeatedStringPieceField_, result.repeatedStringPieceField_);
  10425. }
  10426. if (other.repeatedCordField_.Count != 0) {
  10427. if (result.repeatedCordField_.Count == 0) {
  10428. result.repeatedCordField_ = new scg::List<string>();
  10429. }
  10430. base.AddRange(other.repeatedCordField_, result.repeatedCordField_);
  10431. }
  10432. this.MergeUnknownFields(other.UnknownFields);
  10433. return this;
  10434. }
  10435. public override Builder MergeFrom(pb::CodedInputStream input) {
  10436. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  10437. }
  10438. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10439. pb::UnknownFieldSet.Builder unknownFields =
  10440. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10441. while (true) {
  10442. uint tag = input.ReadTag();
  10443. switch (tag) {
  10444. case 0:
  10445. this.UnknownFields = unknownFields.Build();
  10446. return this;
  10447. default: {
  10448. if (!ParseUnknownField(input, unknownFields,
  10449. extensionRegistry, tag)) {
  10450. this.UnknownFields = unknownFields.Build();
  10451. return this;
  10452. }
  10453. break;
  10454. }
  10455. case 8: {
  10456. PrimitiveField = input.ReadInt32();
  10457. break;
  10458. }
  10459. case 18: {
  10460. StringField = input.ReadString();
  10461. break;
  10462. }
  10463. case 24: {
  10464. int rawValue = input.ReadEnum();
  10465. if (!global::System.Enum.IsDefined(typeof(self::ForeignEnum), rawValue)) {
  10466. unknownFields.MergeVarintField(3, (ulong) rawValue);
  10467. } else {
  10468. EnumField = (self::ForeignEnum) rawValue;
  10469. }
  10470. break;
  10471. }
  10472. case 34: {
  10473. self::ForeignMessage.Builder subBuilder = self::ForeignMessage.CreateBuilder();
  10474. if (HasMessageField) {
  10475. subBuilder.MergeFrom(MessageField);
  10476. }
  10477. input.ReadMessage(subBuilder, extensionRegistry);
  10478. MessageField = subBuilder.BuildPartial();
  10479. break;
  10480. }
  10481. case 42: {
  10482. StringPieceField = input.ReadString();
  10483. break;
  10484. }
  10485. case 50: {
  10486. CordField = input.ReadString();
  10487. break;
  10488. }
  10489. case 56: {
  10490. AddRepeatedPrimitiveField(input.ReadInt32());
  10491. break;
  10492. }
  10493. case 66: {
  10494. AddRepeatedStringField(input.ReadString());
  10495. break;
  10496. }
  10497. case 72: {
  10498. int rawValue = input.ReadEnum();
  10499. self::ForeignEnum value = (self::ForeignEnum) rawValue;
  10500. if (!global::System.Enum.IsDefined(typeof(self::ForeignEnum), value)) {
  10501. unknownFields.MergeVarintField(9, (ulong) rawValue);
  10502. } else {
  10503. AddRepeatedEnumField(value);
  10504. }
  10505. break;
  10506. }
  10507. case 82: {
  10508. self::ForeignMessage.Builder subBuilder = self::ForeignMessage.CreateBuilder();
  10509. input.ReadMessage(subBuilder, extensionRegistry);
  10510. AddRepeatedMessageField(subBuilder.BuildPartial());
  10511. break;
  10512. }
  10513. case 90: {
  10514. AddRepeatedStringPieceField(input.ReadString());
  10515. break;
  10516. }
  10517. case 98: {
  10518. AddRepeatedCordField(input.ReadString());
  10519. break;
  10520. }
  10521. }
  10522. }
  10523. }
  10524. // optional int32 PrimitiveField = 1;
  10525. public bool HasPrimitiveField {
  10526. get { return result.HasPrimitiveField; }
  10527. }
  10528. public int PrimitiveField {
  10529. get { return result.PrimitiveField; }
  10530. set { SetPrimitiveField(value); }
  10531. }
  10532. public Builder SetPrimitiveField(int value) {
  10533. result.hasPrimitiveField = true;
  10534. result.primitiveField_ = value;
  10535. return this;
  10536. }
  10537. public Builder ClearPrimitiveField() {
  10538. result.hasPrimitiveField = false;
  10539. result.primitiveField_ = 0;
  10540. return this;
  10541. }
  10542. // optional string StringField = 2;
  10543. public bool HasStringField {
  10544. get { return result.HasStringField; }
  10545. }
  10546. public string StringField {
  10547. get { return result.StringField; }
  10548. set { SetStringField(value); }
  10549. }
  10550. public Builder SetStringField(string value) {
  10551. result.hasStringField = true;
  10552. result.stringField_ = value;
  10553. return this;
  10554. }
  10555. public Builder ClearStringField() {
  10556. result.hasStringField = false;
  10557. result.stringField_ = "";
  10558. return this;
  10559. }
  10560. // optional .protobuf_unittest.ForeignEnum EnumField = 3;
  10561. public bool HasEnumField {
  10562. get { return result.HasEnumField; }
  10563. }
  10564. public self::ForeignEnum EnumField {
  10565. get { return result.EnumField; }
  10566. set { SetEnumField(value); }
  10567. }
  10568. public Builder SetEnumField(self::ForeignEnum value) {
  10569. result.hasEnumField = true;
  10570. result.enumField_ = value;
  10571. return this;
  10572. }
  10573. public Builder ClearEnumField() {
  10574. result.hasEnumField = false;
  10575. result.enumField_ = self::ForeignEnum.FOREIGN_FOO;
  10576. return this;
  10577. }
  10578. // optional .protobuf_unittest.ForeignMessage MessageField = 4;
  10579. public bool HasMessageField {
  10580. get { return result.HasMessageField; }
  10581. }
  10582. public self::ForeignMessage MessageField {
  10583. get { return result.MessageField; }
  10584. set { SetMessageField(value); }
  10585. }
  10586. public Builder SetMessageField(self::ForeignMessage value) {
  10587. result.hasMessageField = true;
  10588. result.messageField_ = value;
  10589. return this;
  10590. }
  10591. public Builder SetMessageField(self::ForeignMessage.Builder builderForValue) {
  10592. result.hasMessageField = true;
  10593. result.messageField_ = builderForValue.Build();
  10594. return this;
  10595. }
  10596. public Builder MergeMessageField(self::ForeignMessage value) {
  10597. if (result.HasMessageField &&
  10598. result.messageField_ != self::ForeignMessage.DefaultInstance) {
  10599. result.messageField_ =
  10600. self::ForeignMessage.CreateBuilder(result.messageField_).MergeFrom(value).BuildPartial();
  10601. } else {
  10602. result.messageField_ = value;
  10603. }
  10604. result.hasMessageField = true;
  10605. return this;
  10606. }
  10607. public Builder ClearMessageField() {
  10608. result.hasMessageField = false;
  10609. result.messageField_ = self::ForeignMessage.DefaultInstance;
  10610. return this;
  10611. }
  10612. // optional string StringPieceField = 5 [ctype = STRING_PIECE];
  10613. public bool HasStringPieceField {
  10614. get { return result.HasStringPieceField; }
  10615. }
  10616. public string StringPieceField {
  10617. get { return result.StringPieceField; }
  10618. set { SetStringPieceField(value); }
  10619. }
  10620. public Builder SetStringPieceField(string value) {
  10621. result.hasStringPieceField = true;
  10622. result.stringPieceField_ = value;
  10623. return this;
  10624. }
  10625. public Builder ClearStringPieceField() {
  10626. result.hasStringPieceField = false;
  10627. result.stringPieceField_ = "";
  10628. return this;
  10629. }
  10630. // optional string CordField = 6 [ctype = CORD];
  10631. public bool HasCordField {
  10632. get { return result.HasCordField; }
  10633. }
  10634. public string CordField {
  10635. get { return result.CordField; }
  10636. set { SetCordField(value); }
  10637. }
  10638. public Builder SetCordField(string value) {
  10639. result.hasCordField = true;
  10640. result.cordField_ = value;
  10641. return this;
  10642. }
  10643. public Builder ClearCordField() {
  10644. result.hasCordField = false;
  10645. result.cordField_ = "";
  10646. return this;
  10647. }
  10648. // repeated int32 RepeatedPrimitiveField = 7;
  10649. public scg::IList<int> RepeatedPrimitiveFieldList {
  10650. get { return pbc::Lists<int>.AsReadOnly(result.repeatedPrimitiveField_); }
  10651. }
  10652. public int RepeatedPrimitiveFieldCount {
  10653. get { return result.RepeatedPrimitiveFieldCount; }
  10654. }
  10655. public int GetRepeatedPrimitiveField(int index) {
  10656. return result.GetRepeatedPrimitiveField(index);
  10657. }
  10658. public Builder SetRepeatedPrimitiveField(int index, int value) {
  10659. result.repeatedPrimitiveField_[index] = value;
  10660. return this;
  10661. }
  10662. public Builder AddRepeatedPrimitiveField(int value) {
  10663. if (result.repeatedPrimitiveField_.Count == 0) {
  10664. result.repeatedPrimitiveField_ = new scg::List<int>();
  10665. }
  10666. result.repeatedPrimitiveField_.Add(value);
  10667. return this;
  10668. }
  10669. public Builder AddRangeRepeatedPrimitiveField(scg::IEnumerable<int> values) {
  10670. if (result.repeatedPrimitiveField_.Count == 0) {
  10671. result.repeatedPrimitiveField_ = new scg::List<int>();
  10672. }
  10673. base.AddRange(values, result.repeatedPrimitiveField_);
  10674. return this;
  10675. }
  10676. public Builder ClearRepeatedPrimitiveField() {
  10677. result.repeatedPrimitiveField_ = pbc::Lists<int>.Empty;
  10678. return this;
  10679. }
  10680. // repeated string RepeatedStringField = 8;
  10681. public scg::IList<string> RepeatedStringFieldList {
  10682. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringField_); }
  10683. }
  10684. public int RepeatedStringFieldCount {
  10685. get { return result.RepeatedStringFieldCount; }
  10686. }
  10687. public string GetRepeatedStringField(int index) {
  10688. return result.GetRepeatedStringField(index);
  10689. }
  10690. public Builder SetRepeatedStringField(int index, string value) {
  10691. result.repeatedStringField_[index] = value;
  10692. return this;
  10693. }
  10694. public Builder AddRepeatedStringField(string value) {
  10695. if (result.repeatedStringField_.Count == 0) {
  10696. result.repeatedStringField_ = new scg::List<string>();
  10697. }
  10698. result.repeatedStringField_.Add(value);
  10699. return this;
  10700. }
  10701. public Builder AddRangeRepeatedStringField(scg::IEnumerable<string> values) {
  10702. if (result.repeatedStringField_.Count == 0) {
  10703. result.repeatedStringField_ = new scg::List<string>();
  10704. }
  10705. base.AddRange(values, result.repeatedStringField_);
  10706. return this;
  10707. }
  10708. public Builder ClearRepeatedStringField() {
  10709. result.repeatedStringField_ = pbc::Lists<string>.Empty;
  10710. return this;
  10711. }
  10712. // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
  10713. public scg::IList<self::ForeignEnum> RepeatedEnumFieldList {
  10714. get { return pbc::Lists.AsReadOnly(result.repeatedEnumField_); }
  10715. }
  10716. public int RepeatedEnumFieldCount {
  10717. get { return result.RepeatedEnumFieldCount; }
  10718. }
  10719. public self::ForeignEnum GetRepeatedEnumField(int index) {
  10720. return result.GetRepeatedEnumField(index);
  10721. }
  10722. public Builder SetRepeatedEnumField(int index, self::ForeignEnum value) {
  10723. result.repeatedEnumField_[index] = value;
  10724. return this;
  10725. }
  10726. public Builder AddRepeatedEnumField(self::ForeignEnum value) {
  10727. if (result.repeatedEnumField_.Count == 0) {
  10728. result.repeatedEnumField_ = new scg::List<self::ForeignEnum>();
  10729. }
  10730. result.repeatedEnumField_.Add(value);
  10731. return this;
  10732. }
  10733. public Builder AddRangeRepeatedEnumField(scg::IEnumerable<self::ForeignEnum> values) {
  10734. if (result.repeatedEnumField_.Count == 0) {
  10735. result.repeatedEnumField_ = new scg::List<self::ForeignEnum>();
  10736. }
  10737. base.AddRange(values, result.repeatedEnumField_);
  10738. return this;
  10739. }
  10740. public Builder ClearRepeatedEnumField() {
  10741. result.repeatedEnumField_ = pbc::Lists<self::ForeignEnum>.Empty;
  10742. return this;
  10743. }
  10744. // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
  10745. public scg::IList<self::ForeignMessage> RepeatedMessageFieldList {
  10746. get { return pbc::Lists.AsReadOnly(result.repeatedMessageField_); }
  10747. }
  10748. public int RepeatedMessageFieldCount {
  10749. get { return result.RepeatedMessageFieldCount; }
  10750. }
  10751. public self::ForeignMessage GetRepeatedMessageField(int index) {
  10752. return result.GetRepeatedMessageField(index);
  10753. }
  10754. public Builder SetRepeatedMessageField(int index, self::ForeignMessage value) {
  10755. result.repeatedMessageField_[index] = value;
  10756. return this;
  10757. }
  10758. public Builder SetRepeatedMessageField(int index, self::ForeignMessage.Builder builderForValue) {
  10759. result.repeatedMessageField_[index] = builderForValue.Build();
  10760. return this;
  10761. }
  10762. public Builder AddRepeatedMessageField(self::ForeignMessage value) {
  10763. if (result.repeatedMessageField_ == pbc::Lists<self::ForeignMessage>.Empty) {
  10764. result.repeatedMessageField_ = new scg::List<self::ForeignMessage>();
  10765. }
  10766. result.repeatedMessageField_.Add(value);
  10767. return this;
  10768. }
  10769. public Builder AddRepeatedMessageField(self::ForeignMessage.Builder builderForValue) {
  10770. if (result.repeatedMessageField_ == pbc::Lists<self::ForeignMessage>.Empty) {
  10771. result.repeatedMessageField_ = new scg::List<self::ForeignMessage>();
  10772. }
  10773. result.repeatedMessageField_.Add(builderForValue.Build());
  10774. return this;
  10775. }
  10776. public Builder AddRangeRepeatedMessageField(scg::IEnumerable<self::ForeignMessage> values) {
  10777. if (result.repeatedMessageField_ == pbc::Lists<self::ForeignMessage>.Empty) {
  10778. result.repeatedMessageField_ = new scg::List<self::ForeignMessage>();
  10779. }
  10780. base.AddRange(values, result.repeatedMessageField_);
  10781. return this;
  10782. }
  10783. public Builder ClearRepeatedMessageField() {
  10784. result.repeatedMessageField_ = pbc::Lists<self::ForeignMessage>.Empty;
  10785. return this;
  10786. }
  10787. // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
  10788. public scg::IList<string> RepeatedStringPieceFieldList {
  10789. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringPieceField_); }
  10790. }
  10791. public int RepeatedStringPieceFieldCount {
  10792. get { return result.RepeatedStringPieceFieldCount; }
  10793. }
  10794. public string GetRepeatedStringPieceField(int index) {
  10795. return result.GetRepeatedStringPieceField(index);
  10796. }
  10797. public Builder SetRepeatedStringPieceField(int index, string value) {
  10798. result.repeatedStringPieceField_[index] = value;
  10799. return this;
  10800. }
  10801. public Builder AddRepeatedStringPieceField(string value) {
  10802. if (result.repeatedStringPieceField_.Count == 0) {
  10803. result.repeatedStringPieceField_ = new scg::List<string>();
  10804. }
  10805. result.repeatedStringPieceField_.Add(value);
  10806. return this;
  10807. }
  10808. public Builder AddRangeRepeatedStringPieceField(scg::IEnumerable<string> values) {
  10809. if (result.repeatedStringPieceField_.Count == 0) {
  10810. result.repeatedStringPieceField_ = new scg::List<string>();
  10811. }
  10812. base.AddRange(values, result.repeatedStringPieceField_);
  10813. return this;
  10814. }
  10815. public Builder ClearRepeatedStringPieceField() {
  10816. result.repeatedStringPieceField_ = pbc::Lists<string>.Empty;
  10817. return this;
  10818. }
  10819. // repeated string RepeatedCordField = 12 [ctype = CORD];
  10820. public scg::IList<string> RepeatedCordFieldList {
  10821. get { return pbc::Lists<string>.AsReadOnly(result.repeatedCordField_); }
  10822. }
  10823. public int RepeatedCordFieldCount {
  10824. get { return result.RepeatedCordFieldCount; }
  10825. }
  10826. public string GetRepeatedCordField(int index) {
  10827. return result.GetRepeatedCordField(index);
  10828. }
  10829. public Builder SetRepeatedCordField(int index, string value) {
  10830. result.repeatedCordField_[index] = value;
  10831. return this;
  10832. }
  10833. public Builder AddRepeatedCordField(string value) {
  10834. if (result.repeatedCordField_.Count == 0) {
  10835. result.repeatedCordField_ = new scg::List<string>();
  10836. }
  10837. result.repeatedCordField_.Add(value);
  10838. return this;
  10839. }
  10840. public Builder AddRangeRepeatedCordField(scg::IEnumerable<string> values) {
  10841. if (result.repeatedCordField_.Count == 0) {
  10842. result.repeatedCordField_ = new scg::List<string>();
  10843. }
  10844. base.AddRange(values, result.repeatedCordField_);
  10845. return this;
  10846. }
  10847. public Builder ClearRepeatedCordField() {
  10848. result.repeatedCordField_ = pbc::Lists<string>.Empty;
  10849. return this;
  10850. }
  10851. }
  10852. }
  10853. public sealed partial class TestFieldOrderings : pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder> {
  10854. private static readonly TestFieldOrderings defaultInstance = new TestFieldOrderings();
  10855. public static TestFieldOrderings DefaultInstance {
  10856. get { return defaultInstance; }
  10857. }
  10858. public override TestFieldOrderings DefaultInstanceForType {
  10859. get { return defaultInstance; }
  10860. }
  10861. public static pbd::MessageDescriptor Descriptor {
  10862. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__Descriptor; }
  10863. }
  10864. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  10865. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; }
  10866. }
  10867. // optional string my_string = 11;
  10868. private bool hasMyString;
  10869. private string myString_ = "";
  10870. public bool HasMyString {
  10871. get { return hasMyString; }
  10872. }
  10873. public string MyString {
  10874. get { return myString_; }
  10875. }
  10876. // optional int64 my_int = 1;
  10877. private bool hasMyInt;
  10878. private long myInt_ = 0L;
  10879. public bool HasMyInt {
  10880. get { return hasMyInt; }
  10881. }
  10882. public long MyInt {
  10883. get { return myInt_; }
  10884. }
  10885. // optional float my_float = 101;
  10886. private bool hasMyFloat;
  10887. private float myFloat_ = 0F;
  10888. public bool HasMyFloat {
  10889. get { return hasMyFloat; }
  10890. }
  10891. public float MyFloat {
  10892. get { return myFloat_; }
  10893. }
  10894. public override bool IsInitialized {
  10895. get {
  10896. if (!ExtensionsAreInitialized) return false;
  10897. return true;
  10898. }
  10899. }
  10900. public override void WriteTo(pb::CodedOutputStream output) {
  10901. pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  10902. if (HasMyInt) {
  10903. output.WriteInt64(1, MyInt);
  10904. }
  10905. extensionWriter.WriteUntil(11, output);
  10906. if (HasMyString) {
  10907. output.WriteString(11, MyString);
  10908. }
  10909. extensionWriter.WriteUntil(101, output);
  10910. if (HasMyFloat) {
  10911. output.WriteFloat(101, MyFloat);
  10912. }
  10913. UnknownFields.WriteTo(output);
  10914. }
  10915. private int memoizedSerializedSize = -1;
  10916. public override int SerializedSize {
  10917. get {
  10918. int size = memoizedSerializedSize;
  10919. if (size != -1) return size;
  10920. size = 0;
  10921. if (HasMyInt) {
  10922. size += pb::CodedOutputStream.ComputeInt64Size(1, MyInt);
  10923. }
  10924. if (HasMyString) {
  10925. size += pb::CodedOutputStream.ComputeStringSize(11, MyString);
  10926. }
  10927. if (HasMyFloat) {
  10928. size += pb::CodedOutputStream.ComputeFloatSize(101, MyFloat);
  10929. }
  10930. size += ExtensionsSerializedSize;
  10931. size += UnknownFields.SerializedSize;
  10932. memoizedSerializedSize = size;
  10933. return size;
  10934. }
  10935. }
  10936. public static self::TestFieldOrderings ParseFrom(pb::ByteString data) {
  10937. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10938. }
  10939. public static self::TestFieldOrderings ParseFrom(pb::ByteString data,
  10940. pb::ExtensionRegistry extensionRegistry) {
  10941. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10942. .BuildParsed();
  10943. }
  10944. public static self::TestFieldOrderings ParseFrom(byte[] data) {
  10945. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10946. }
  10947. public static self::TestFieldOrderings ParseFrom(byte[] data,
  10948. pb::ExtensionRegistry extensionRegistry) {
  10949. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10950. .BuildParsed();
  10951. }
  10952. public static self::TestFieldOrderings ParseFrom(global::System.IO.Stream input) {
  10953. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10954. }
  10955. public static self::TestFieldOrderings ParseFrom(
  10956. global::System.IO.Stream input,
  10957. pb::ExtensionRegistry extensionRegistry) {
  10958. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10959. .BuildParsed();
  10960. }
  10961. public static self::TestFieldOrderings ParseFrom(pb::CodedInputStream input) {
  10962. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10963. }
  10964. public static self::TestFieldOrderings ParseFrom(pb::CodedInputStream input,
  10965. pb::ExtensionRegistry extensionRegistry) {
  10966. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10967. .BuildParsed();
  10968. }
  10969. public static Builder CreateBuilder() { return new Builder(); }
  10970. public override Builder CreateBuilderForType() { return new Builder(); }
  10971. public static Builder CreateBuilder(self::TestFieldOrderings prototype) {
  10972. return (Builder) new Builder().MergeFrom(prototype);
  10973. }
  10974. public sealed partial class Builder : pb::ExtendableBuilder<self::TestFieldOrderings, self::TestFieldOrderings.Builder> {
  10975. protected override Builder ThisBuilder {
  10976. get { return this; }
  10977. }
  10978. // Construct using self::TestFieldOrderings.CreateBuilder()
  10979. internal Builder() {}
  10980. self::TestFieldOrderings result = new self::TestFieldOrderings();
  10981. protected override self::TestFieldOrderings MessageBeingBuilt {
  10982. get { return result; }
  10983. }
  10984. public override Builder Clear() {
  10985. result = new self::TestFieldOrderings();
  10986. return this;
  10987. }
  10988. public override Builder Clone() {
  10989. return new Builder().MergeFrom(result);
  10990. }
  10991. public override pbd::MessageDescriptor DescriptorForType {
  10992. get { return self::TestFieldOrderings.Descriptor; }
  10993. }
  10994. public override self::TestFieldOrderings DefaultInstanceForType {
  10995. get { return self::TestFieldOrderings.DefaultInstance; }
  10996. }
  10997. public override self::TestFieldOrderings BuildPartial() {
  10998. self::TestFieldOrderings returnMe = result;
  10999. result = null;
  11000. return returnMe;
  11001. }
  11002. public override Builder MergeFrom(pb::IMessage other) {
  11003. if (other is self::TestFieldOrderings) {
  11004. return MergeFrom((self::TestFieldOrderings) other);
  11005. } else {
  11006. base.MergeFrom(other);
  11007. return this;
  11008. }
  11009. }
  11010. public override Builder MergeFrom(self::TestFieldOrderings other) {
  11011. if (other == self::TestFieldOrderings.DefaultInstance) return this;
  11012. if (other.HasMyString) {
  11013. MyString = other.MyString;
  11014. }
  11015. if (other.HasMyInt) {
  11016. MyInt = other.MyInt;
  11017. }
  11018. if (other.HasMyFloat) {
  11019. MyFloat = other.MyFloat;
  11020. }
  11021. this.MergeUnknownFields(other.UnknownFields);
  11022. return this;
  11023. }
  11024. public override Builder MergeFrom(pb::CodedInputStream input) {
  11025. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11026. }
  11027. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11028. pb::UnknownFieldSet.Builder unknownFields =
  11029. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11030. while (true) {
  11031. uint tag = input.ReadTag();
  11032. switch (tag) {
  11033. case 0:
  11034. this.UnknownFields = unknownFields.Build();
  11035. return this;
  11036. default: {
  11037. if (!ParseUnknownField(input, unknownFields,
  11038. extensionRegistry, tag)) {
  11039. this.UnknownFields = unknownFields.Build();
  11040. return this;
  11041. }
  11042. break;
  11043. }
  11044. case 8: {
  11045. MyInt = input.ReadInt64();
  11046. break;
  11047. }
  11048. case 90: {
  11049. MyString = input.ReadString();
  11050. break;
  11051. }
  11052. case 813: {
  11053. MyFloat = input.ReadFloat();
  11054. break;
  11055. }
  11056. }
  11057. }
  11058. }
  11059. // optional string my_string = 11;
  11060. public bool HasMyString {
  11061. get { return result.HasMyString; }
  11062. }
  11063. public string MyString {
  11064. get { return result.MyString; }
  11065. set { SetMyString(value); }
  11066. }
  11067. public Builder SetMyString(string value) {
  11068. result.hasMyString = true;
  11069. result.myString_ = value;
  11070. return this;
  11071. }
  11072. public Builder ClearMyString() {
  11073. result.hasMyString = false;
  11074. result.myString_ = "";
  11075. return this;
  11076. }
  11077. // optional int64 my_int = 1;
  11078. public bool HasMyInt {
  11079. get { return result.HasMyInt; }
  11080. }
  11081. public long MyInt {
  11082. get { return result.MyInt; }
  11083. set { SetMyInt(value); }
  11084. }
  11085. public Builder SetMyInt(long value) {
  11086. result.hasMyInt = true;
  11087. result.myInt_ = value;
  11088. return this;
  11089. }
  11090. public Builder ClearMyInt() {
  11091. result.hasMyInt = false;
  11092. result.myInt_ = 0L;
  11093. return this;
  11094. }
  11095. // optional float my_float = 101;
  11096. public bool HasMyFloat {
  11097. get { return result.HasMyFloat; }
  11098. }
  11099. public float MyFloat {
  11100. get { return result.MyFloat; }
  11101. set { SetMyFloat(value); }
  11102. }
  11103. public Builder SetMyFloat(float value) {
  11104. result.hasMyFloat = true;
  11105. result.myFloat_ = value;
  11106. return this;
  11107. }
  11108. public Builder ClearMyFloat() {
  11109. result.hasMyFloat = false;
  11110. result.myFloat_ = 0F;
  11111. return this;
  11112. }
  11113. }
  11114. }
  11115. public sealed partial class TestExtremeDefaultValues : pb::GeneratedMessage<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> {
  11116. private static readonly TestExtremeDefaultValues defaultInstance = new TestExtremeDefaultValues();
  11117. public static TestExtremeDefaultValues DefaultInstance {
  11118. get { return defaultInstance; }
  11119. }
  11120. public override TestExtremeDefaultValues DefaultInstanceForType {
  11121. get { return defaultInstance; }
  11122. }
  11123. public static pbd::MessageDescriptor Descriptor {
  11124. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor; }
  11125. }
  11126. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11127. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable; }
  11128. }
  11129. // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
  11130. private bool hasEscapedBytes;
  11131. private pb::ByteString escapedBytes_ = ((pb::ByteString) self::TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue);
  11132. public bool HasEscapedBytes {
  11133. get { return hasEscapedBytes; }
  11134. }
  11135. public pb::ByteString EscapedBytes {
  11136. get { return escapedBytes_; }
  11137. }
  11138. // optional uint32 large_uint32 = 2 [default = 4294967295];
  11139. private bool hasLargeUint32;
  11140. private uint largeUint32_ = 4294967295;
  11141. public bool HasLargeUint32 {
  11142. get { return hasLargeUint32; }
  11143. }
  11144. public uint LargeUint32 {
  11145. get { return largeUint32_; }
  11146. }
  11147. // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
  11148. private bool hasLargeUint64;
  11149. private ulong largeUint64_ = 18446744073709551615UL;
  11150. public bool HasLargeUint64 {
  11151. get { return hasLargeUint64; }
  11152. }
  11153. public ulong LargeUint64 {
  11154. get { return largeUint64_; }
  11155. }
  11156. // optional int32 small_int32 = 4 [default = -2147483647];
  11157. private bool hasSmallInt32;
  11158. private int smallInt32_ = -2147483647;
  11159. public bool HasSmallInt32 {
  11160. get { return hasSmallInt32; }
  11161. }
  11162. public int SmallInt32 {
  11163. get { return smallInt32_; }
  11164. }
  11165. // optional int64 small_int64 = 5 [default = -9223372036854775807];
  11166. private bool hasSmallInt64;
  11167. private long smallInt64_ = -9223372036854775807L;
  11168. public bool HasSmallInt64 {
  11169. get { return hasSmallInt64; }
  11170. }
  11171. public long SmallInt64 {
  11172. get { return smallInt64_; }
  11173. }
  11174. // optional string utf8_string = 6 [default = "\341\210\264"];
  11175. private bool hasUtf8String;
  11176. private string utf8String_ = ((string) self::TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue);
  11177. public bool HasUtf8String {
  11178. get { return hasUtf8String; }
  11179. }
  11180. public string Utf8String {
  11181. get { return utf8String_; }
  11182. }
  11183. public override bool IsInitialized {
  11184. get {
  11185. return true;
  11186. }
  11187. }
  11188. public override void WriteTo(pb::CodedOutputStream output) {
  11189. if (HasEscapedBytes) {
  11190. output.WriteBytes(1, EscapedBytes);
  11191. }
  11192. if (HasLargeUint32) {
  11193. output.WriteUInt32(2, LargeUint32);
  11194. }
  11195. if (HasLargeUint64) {
  11196. output.WriteUInt64(3, LargeUint64);
  11197. }
  11198. if (HasSmallInt32) {
  11199. output.WriteInt32(4, SmallInt32);
  11200. }
  11201. if (HasSmallInt64) {
  11202. output.WriteInt64(5, SmallInt64);
  11203. }
  11204. if (HasUtf8String) {
  11205. output.WriteString(6, Utf8String);
  11206. }
  11207. UnknownFields.WriteTo(output);
  11208. }
  11209. private int memoizedSerializedSize = -1;
  11210. public override int SerializedSize {
  11211. get {
  11212. int size = memoizedSerializedSize;
  11213. if (size != -1) return size;
  11214. size = 0;
  11215. if (HasEscapedBytes) {
  11216. size += pb::CodedOutputStream.ComputeBytesSize(1, EscapedBytes);
  11217. }
  11218. if (HasLargeUint32) {
  11219. size += pb::CodedOutputStream.ComputeUInt32Size(2, LargeUint32);
  11220. }
  11221. if (HasLargeUint64) {
  11222. size += pb::CodedOutputStream.ComputeUInt64Size(3, LargeUint64);
  11223. }
  11224. if (HasSmallInt32) {
  11225. size += pb::CodedOutputStream.ComputeInt32Size(4, SmallInt32);
  11226. }
  11227. if (HasSmallInt64) {
  11228. size += pb::CodedOutputStream.ComputeInt64Size(5, SmallInt64);
  11229. }
  11230. if (HasUtf8String) {
  11231. size += pb::CodedOutputStream.ComputeStringSize(6, Utf8String);
  11232. }
  11233. size += UnknownFields.SerializedSize;
  11234. memoizedSerializedSize = size;
  11235. return size;
  11236. }
  11237. }
  11238. public static self::TestExtremeDefaultValues ParseFrom(pb::ByteString data) {
  11239. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11240. }
  11241. public static self::TestExtremeDefaultValues ParseFrom(pb::ByteString data,
  11242. pb::ExtensionRegistry extensionRegistry) {
  11243. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11244. .BuildParsed();
  11245. }
  11246. public static self::TestExtremeDefaultValues ParseFrom(byte[] data) {
  11247. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11248. }
  11249. public static self::TestExtremeDefaultValues ParseFrom(byte[] data,
  11250. pb::ExtensionRegistry extensionRegistry) {
  11251. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11252. .BuildParsed();
  11253. }
  11254. public static self::TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input) {
  11255. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11256. }
  11257. public static self::TestExtremeDefaultValues ParseFrom(
  11258. global::System.IO.Stream input,
  11259. pb::ExtensionRegistry extensionRegistry) {
  11260. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11261. .BuildParsed();
  11262. }
  11263. public static self::TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input) {
  11264. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11265. }
  11266. public static self::TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input,
  11267. pb::ExtensionRegistry extensionRegistry) {
  11268. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11269. .BuildParsed();
  11270. }
  11271. public static Builder CreateBuilder() { return new Builder(); }
  11272. public override Builder CreateBuilderForType() { return new Builder(); }
  11273. public static Builder CreateBuilder(self::TestExtremeDefaultValues prototype) {
  11274. return (Builder) new Builder().MergeFrom(prototype);
  11275. }
  11276. public sealed partial class Builder : pb::GeneratedBuilder<self::TestExtremeDefaultValues, Builder> {
  11277. protected override Builder ThisBuilder {
  11278. get { return this; }
  11279. }
  11280. // Construct using self::TestExtremeDefaultValues.CreateBuilder()
  11281. internal Builder() {}
  11282. self::TestExtremeDefaultValues result = new self::TestExtremeDefaultValues();
  11283. protected override self::TestExtremeDefaultValues MessageBeingBuilt {
  11284. get { return result; }
  11285. }
  11286. public override Builder Clear() {
  11287. result = new self::TestExtremeDefaultValues();
  11288. return this;
  11289. }
  11290. public override Builder Clone() {
  11291. return new Builder().MergeFrom(result);
  11292. }
  11293. public override pbd::MessageDescriptor DescriptorForType {
  11294. get { return self::TestExtremeDefaultValues.Descriptor; }
  11295. }
  11296. public override self::TestExtremeDefaultValues DefaultInstanceForType {
  11297. get { return self::TestExtremeDefaultValues.DefaultInstance; }
  11298. }
  11299. public override self::TestExtremeDefaultValues BuildPartial() {
  11300. self::TestExtremeDefaultValues returnMe = result;
  11301. result = null;
  11302. return returnMe;
  11303. }
  11304. public override Builder MergeFrom(pb::IMessage other) {
  11305. if (other is self::TestExtremeDefaultValues) {
  11306. return MergeFrom((self::TestExtremeDefaultValues) other);
  11307. } else {
  11308. base.MergeFrom(other);
  11309. return this;
  11310. }
  11311. }
  11312. public override Builder MergeFrom(self::TestExtremeDefaultValues other) {
  11313. if (other == self::TestExtremeDefaultValues.DefaultInstance) return this;
  11314. if (other.HasEscapedBytes) {
  11315. EscapedBytes = other.EscapedBytes;
  11316. }
  11317. if (other.HasLargeUint32) {
  11318. LargeUint32 = other.LargeUint32;
  11319. }
  11320. if (other.HasLargeUint64) {
  11321. LargeUint64 = other.LargeUint64;
  11322. }
  11323. if (other.HasSmallInt32) {
  11324. SmallInt32 = other.SmallInt32;
  11325. }
  11326. if (other.HasSmallInt64) {
  11327. SmallInt64 = other.SmallInt64;
  11328. }
  11329. if (other.HasUtf8String) {
  11330. Utf8String = other.Utf8String;
  11331. }
  11332. this.MergeUnknownFields(other.UnknownFields);
  11333. return this;
  11334. }
  11335. public override Builder MergeFrom(pb::CodedInputStream input) {
  11336. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11337. }
  11338. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11339. pb::UnknownFieldSet.Builder unknownFields =
  11340. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11341. while (true) {
  11342. uint tag = input.ReadTag();
  11343. switch (tag) {
  11344. case 0:
  11345. this.UnknownFields = unknownFields.Build();
  11346. return this;
  11347. default: {
  11348. if (!ParseUnknownField(input, unknownFields,
  11349. extensionRegistry, tag)) {
  11350. this.UnknownFields = unknownFields.Build();
  11351. return this;
  11352. }
  11353. break;
  11354. }
  11355. case 10: {
  11356. EscapedBytes = input.ReadBytes();
  11357. break;
  11358. }
  11359. case 16: {
  11360. LargeUint32 = input.ReadUInt32();
  11361. break;
  11362. }
  11363. case 24: {
  11364. LargeUint64 = input.ReadUInt64();
  11365. break;
  11366. }
  11367. case 32: {
  11368. SmallInt32 = input.ReadInt32();
  11369. break;
  11370. }
  11371. case 40: {
  11372. SmallInt64 = input.ReadInt64();
  11373. break;
  11374. }
  11375. case 50: {
  11376. Utf8String = input.ReadString();
  11377. break;
  11378. }
  11379. }
  11380. }
  11381. }
  11382. // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
  11383. public bool HasEscapedBytes {
  11384. get { return result.HasEscapedBytes; }
  11385. }
  11386. public pb::ByteString EscapedBytes {
  11387. get { return result.EscapedBytes; }
  11388. set { SetEscapedBytes(value); }
  11389. }
  11390. public Builder SetEscapedBytes(pb::ByteString value) {
  11391. result.hasEscapedBytes = true;
  11392. result.escapedBytes_ = value;
  11393. return this;
  11394. }
  11395. public Builder ClearEscapedBytes() {
  11396. result.hasEscapedBytes = false;
  11397. result.escapedBytes_ = ((pb::ByteString) self::TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue);
  11398. return this;
  11399. }
  11400. // optional uint32 large_uint32 = 2 [default = 4294967295];
  11401. public bool HasLargeUint32 {
  11402. get { return result.HasLargeUint32; }
  11403. }
  11404. public uint LargeUint32 {
  11405. get { return result.LargeUint32; }
  11406. set { SetLargeUint32(value); }
  11407. }
  11408. public Builder SetLargeUint32(uint value) {
  11409. result.hasLargeUint32 = true;
  11410. result.largeUint32_ = value;
  11411. return this;
  11412. }
  11413. public Builder ClearLargeUint32() {
  11414. result.hasLargeUint32 = false;
  11415. result.largeUint32_ = 4294967295;
  11416. return this;
  11417. }
  11418. // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
  11419. public bool HasLargeUint64 {
  11420. get { return result.HasLargeUint64; }
  11421. }
  11422. public ulong LargeUint64 {
  11423. get { return result.LargeUint64; }
  11424. set { SetLargeUint64(value); }
  11425. }
  11426. public Builder SetLargeUint64(ulong value) {
  11427. result.hasLargeUint64 = true;
  11428. result.largeUint64_ = value;
  11429. return this;
  11430. }
  11431. public Builder ClearLargeUint64() {
  11432. result.hasLargeUint64 = false;
  11433. result.largeUint64_ = 18446744073709551615UL;
  11434. return this;
  11435. }
  11436. // optional int32 small_int32 = 4 [default = -2147483647];
  11437. public bool HasSmallInt32 {
  11438. get { return result.HasSmallInt32; }
  11439. }
  11440. public int SmallInt32 {
  11441. get { return result.SmallInt32; }
  11442. set { SetSmallInt32(value); }
  11443. }
  11444. public Builder SetSmallInt32(int value) {
  11445. result.hasSmallInt32 = true;
  11446. result.smallInt32_ = value;
  11447. return this;
  11448. }
  11449. public Builder ClearSmallInt32() {
  11450. result.hasSmallInt32 = false;
  11451. result.smallInt32_ = -2147483647;
  11452. return this;
  11453. }
  11454. // optional int64 small_int64 = 5 [default = -9223372036854775807];
  11455. public bool HasSmallInt64 {
  11456. get { return result.HasSmallInt64; }
  11457. }
  11458. public long SmallInt64 {
  11459. get { return result.SmallInt64; }
  11460. set { SetSmallInt64(value); }
  11461. }
  11462. public Builder SetSmallInt64(long value) {
  11463. result.hasSmallInt64 = true;
  11464. result.smallInt64_ = value;
  11465. return this;
  11466. }
  11467. public Builder ClearSmallInt64() {
  11468. result.hasSmallInt64 = false;
  11469. result.smallInt64_ = -9223372036854775807L;
  11470. return this;
  11471. }
  11472. // optional string utf8_string = 6 [default = "\341\210\264"];
  11473. public bool HasUtf8String {
  11474. get { return result.HasUtf8String; }
  11475. }
  11476. public string Utf8String {
  11477. get { return result.Utf8String; }
  11478. set { SetUtf8String(value); }
  11479. }
  11480. public Builder SetUtf8String(string value) {
  11481. result.hasUtf8String = true;
  11482. result.utf8String_ = value;
  11483. return this;
  11484. }
  11485. public Builder ClearUtf8String() {
  11486. result.hasUtf8String = false;
  11487. result.utf8String_ = ((string) self::TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue);
  11488. return this;
  11489. }
  11490. }
  11491. }
  11492. public sealed partial class FooRequest : pb::GeneratedMessage<FooRequest, FooRequest.Builder> {
  11493. private static readonly FooRequest defaultInstance = new FooRequest();
  11494. public static FooRequest DefaultInstance {
  11495. get { return defaultInstance; }
  11496. }
  11497. public override FooRequest DefaultInstanceForType {
  11498. get { return defaultInstance; }
  11499. }
  11500. public static pbd::MessageDescriptor Descriptor {
  11501. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__Descriptor; }
  11502. }
  11503. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11504. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; }
  11505. }
  11506. public override bool IsInitialized {
  11507. get {
  11508. return true;
  11509. }
  11510. }
  11511. public override void WriteTo(pb::CodedOutputStream output) {
  11512. UnknownFields.WriteTo(output);
  11513. }
  11514. private int memoizedSerializedSize = -1;
  11515. public override int SerializedSize {
  11516. get {
  11517. int size = memoizedSerializedSize;
  11518. if (size != -1) return size;
  11519. size = 0;
  11520. size += UnknownFields.SerializedSize;
  11521. memoizedSerializedSize = size;
  11522. return size;
  11523. }
  11524. }
  11525. public static self::FooRequest ParseFrom(pb::ByteString data) {
  11526. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11527. }
  11528. public static self::FooRequest ParseFrom(pb::ByteString data,
  11529. pb::ExtensionRegistry extensionRegistry) {
  11530. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11531. .BuildParsed();
  11532. }
  11533. public static self::FooRequest ParseFrom(byte[] data) {
  11534. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11535. }
  11536. public static self::FooRequest ParseFrom(byte[] data,
  11537. pb::ExtensionRegistry extensionRegistry) {
  11538. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11539. .BuildParsed();
  11540. }
  11541. public static self::FooRequest ParseFrom(global::System.IO.Stream input) {
  11542. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11543. }
  11544. public static self::FooRequest ParseFrom(
  11545. global::System.IO.Stream input,
  11546. pb::ExtensionRegistry extensionRegistry) {
  11547. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11548. .BuildParsed();
  11549. }
  11550. public static self::FooRequest ParseFrom(pb::CodedInputStream input) {
  11551. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11552. }
  11553. public static self::FooRequest ParseFrom(pb::CodedInputStream input,
  11554. pb::ExtensionRegistry extensionRegistry) {
  11555. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11556. .BuildParsed();
  11557. }
  11558. public static Builder CreateBuilder() { return new Builder(); }
  11559. public override Builder CreateBuilderForType() { return new Builder(); }
  11560. public static Builder CreateBuilder(self::FooRequest prototype) {
  11561. return (Builder) new Builder().MergeFrom(prototype);
  11562. }
  11563. public sealed partial class Builder : pb::GeneratedBuilder<self::FooRequest, Builder> {
  11564. protected override Builder ThisBuilder {
  11565. get { return this; }
  11566. }
  11567. // Construct using self::FooRequest.CreateBuilder()
  11568. internal Builder() {}
  11569. self::FooRequest result = new self::FooRequest();
  11570. protected override self::FooRequest MessageBeingBuilt {
  11571. get { return result; }
  11572. }
  11573. public override Builder Clear() {
  11574. result = new self::FooRequest();
  11575. return this;
  11576. }
  11577. public override Builder Clone() {
  11578. return new Builder().MergeFrom(result);
  11579. }
  11580. public override pbd::MessageDescriptor DescriptorForType {
  11581. get { return self::FooRequest.Descriptor; }
  11582. }
  11583. public override self::FooRequest DefaultInstanceForType {
  11584. get { return self::FooRequest.DefaultInstance; }
  11585. }
  11586. public override self::FooRequest BuildPartial() {
  11587. self::FooRequest returnMe = result;
  11588. result = null;
  11589. return returnMe;
  11590. }
  11591. public override Builder MergeFrom(pb::IMessage other) {
  11592. if (other is self::FooRequest) {
  11593. return MergeFrom((self::FooRequest) other);
  11594. } else {
  11595. base.MergeFrom(other);
  11596. return this;
  11597. }
  11598. }
  11599. public override Builder MergeFrom(self::FooRequest other) {
  11600. if (other == self::FooRequest.DefaultInstance) return this;
  11601. this.MergeUnknownFields(other.UnknownFields);
  11602. return this;
  11603. }
  11604. public override Builder MergeFrom(pb::CodedInputStream input) {
  11605. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11606. }
  11607. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11608. pb::UnknownFieldSet.Builder unknownFields =
  11609. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11610. while (true) {
  11611. uint tag = input.ReadTag();
  11612. switch (tag) {
  11613. case 0:
  11614. this.UnknownFields = unknownFields.Build();
  11615. return this;
  11616. default: {
  11617. if (!ParseUnknownField(input, unknownFields,
  11618. extensionRegistry, tag)) {
  11619. this.UnknownFields = unknownFields.Build();
  11620. return this;
  11621. }
  11622. break;
  11623. }
  11624. }
  11625. }
  11626. }
  11627. }
  11628. }
  11629. public sealed partial class FooResponse : pb::GeneratedMessage<FooResponse, FooResponse.Builder> {
  11630. private static readonly FooResponse defaultInstance = new FooResponse();
  11631. public static FooResponse DefaultInstance {
  11632. get { return defaultInstance; }
  11633. }
  11634. public override FooResponse DefaultInstanceForType {
  11635. get { return defaultInstance; }
  11636. }
  11637. public static pbd::MessageDescriptor Descriptor {
  11638. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__Descriptor; }
  11639. }
  11640. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11641. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; }
  11642. }
  11643. public override bool IsInitialized {
  11644. get {
  11645. return true;
  11646. }
  11647. }
  11648. public override void WriteTo(pb::CodedOutputStream output) {
  11649. UnknownFields.WriteTo(output);
  11650. }
  11651. private int memoizedSerializedSize = -1;
  11652. public override int SerializedSize {
  11653. get {
  11654. int size = memoizedSerializedSize;
  11655. if (size != -1) return size;
  11656. size = 0;
  11657. size += UnknownFields.SerializedSize;
  11658. memoizedSerializedSize = size;
  11659. return size;
  11660. }
  11661. }
  11662. public static self::FooResponse ParseFrom(pb::ByteString data) {
  11663. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11664. }
  11665. public static self::FooResponse ParseFrom(pb::ByteString data,
  11666. pb::ExtensionRegistry extensionRegistry) {
  11667. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11668. .BuildParsed();
  11669. }
  11670. public static self::FooResponse ParseFrom(byte[] data) {
  11671. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11672. }
  11673. public static self::FooResponse ParseFrom(byte[] data,
  11674. pb::ExtensionRegistry extensionRegistry) {
  11675. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11676. .BuildParsed();
  11677. }
  11678. public static self::FooResponse ParseFrom(global::System.IO.Stream input) {
  11679. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11680. }
  11681. public static self::FooResponse ParseFrom(
  11682. global::System.IO.Stream input,
  11683. pb::ExtensionRegistry extensionRegistry) {
  11684. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11685. .BuildParsed();
  11686. }
  11687. public static self::FooResponse ParseFrom(pb::CodedInputStream input) {
  11688. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11689. }
  11690. public static self::FooResponse ParseFrom(pb::CodedInputStream input,
  11691. pb::ExtensionRegistry extensionRegistry) {
  11692. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11693. .BuildParsed();
  11694. }
  11695. public static Builder CreateBuilder() { return new Builder(); }
  11696. public override Builder CreateBuilderForType() { return new Builder(); }
  11697. public static Builder CreateBuilder(self::FooResponse prototype) {
  11698. return (Builder) new Builder().MergeFrom(prototype);
  11699. }
  11700. public sealed partial class Builder : pb::GeneratedBuilder<self::FooResponse, Builder> {
  11701. protected override Builder ThisBuilder {
  11702. get { return this; }
  11703. }
  11704. // Construct using self::FooResponse.CreateBuilder()
  11705. internal Builder() {}
  11706. self::FooResponse result = new self::FooResponse();
  11707. protected override self::FooResponse MessageBeingBuilt {
  11708. get { return result; }
  11709. }
  11710. public override Builder Clear() {
  11711. result = new self::FooResponse();
  11712. return this;
  11713. }
  11714. public override Builder Clone() {
  11715. return new Builder().MergeFrom(result);
  11716. }
  11717. public override pbd::MessageDescriptor DescriptorForType {
  11718. get { return self::FooResponse.Descriptor; }
  11719. }
  11720. public override self::FooResponse DefaultInstanceForType {
  11721. get { return self::FooResponse.DefaultInstance; }
  11722. }
  11723. public override self::FooResponse BuildPartial() {
  11724. self::FooResponse returnMe = result;
  11725. result = null;
  11726. return returnMe;
  11727. }
  11728. public override Builder MergeFrom(pb::IMessage other) {
  11729. if (other is self::FooResponse) {
  11730. return MergeFrom((self::FooResponse) other);
  11731. } else {
  11732. base.MergeFrom(other);
  11733. return this;
  11734. }
  11735. }
  11736. public override Builder MergeFrom(self::FooResponse other) {
  11737. if (other == self::FooResponse.DefaultInstance) return this;
  11738. this.MergeUnknownFields(other.UnknownFields);
  11739. return this;
  11740. }
  11741. public override Builder MergeFrom(pb::CodedInputStream input) {
  11742. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11743. }
  11744. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11745. pb::UnknownFieldSet.Builder unknownFields =
  11746. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11747. while (true) {
  11748. uint tag = input.ReadTag();
  11749. switch (tag) {
  11750. case 0:
  11751. this.UnknownFields = unknownFields.Build();
  11752. return this;
  11753. default: {
  11754. if (!ParseUnknownField(input, unknownFields,
  11755. extensionRegistry, tag)) {
  11756. this.UnknownFields = unknownFields.Build();
  11757. return this;
  11758. }
  11759. break;
  11760. }
  11761. }
  11762. }
  11763. }
  11764. }
  11765. }
  11766. public sealed partial class BarRequest : pb::GeneratedMessage<BarRequest, BarRequest.Builder> {
  11767. private static readonly BarRequest defaultInstance = new BarRequest();
  11768. public static BarRequest DefaultInstance {
  11769. get { return defaultInstance; }
  11770. }
  11771. public override BarRequest DefaultInstanceForType {
  11772. get { return defaultInstance; }
  11773. }
  11774. public static pbd::MessageDescriptor Descriptor {
  11775. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__Descriptor; }
  11776. }
  11777. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11778. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; }
  11779. }
  11780. public override bool IsInitialized {
  11781. get {
  11782. return true;
  11783. }
  11784. }
  11785. public override void WriteTo(pb::CodedOutputStream output) {
  11786. UnknownFields.WriteTo(output);
  11787. }
  11788. private int memoizedSerializedSize = -1;
  11789. public override int SerializedSize {
  11790. get {
  11791. int size = memoizedSerializedSize;
  11792. if (size != -1) return size;
  11793. size = 0;
  11794. size += UnknownFields.SerializedSize;
  11795. memoizedSerializedSize = size;
  11796. return size;
  11797. }
  11798. }
  11799. public static self::BarRequest ParseFrom(pb::ByteString data) {
  11800. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11801. }
  11802. public static self::BarRequest ParseFrom(pb::ByteString data,
  11803. pb::ExtensionRegistry extensionRegistry) {
  11804. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11805. .BuildParsed();
  11806. }
  11807. public static self::BarRequest ParseFrom(byte[] data) {
  11808. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11809. }
  11810. public static self::BarRequest ParseFrom(byte[] data,
  11811. pb::ExtensionRegistry extensionRegistry) {
  11812. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11813. .BuildParsed();
  11814. }
  11815. public static self::BarRequest ParseFrom(global::System.IO.Stream input) {
  11816. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11817. }
  11818. public static self::BarRequest ParseFrom(
  11819. global::System.IO.Stream input,
  11820. pb::ExtensionRegistry extensionRegistry) {
  11821. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11822. .BuildParsed();
  11823. }
  11824. public static self::BarRequest ParseFrom(pb::CodedInputStream input) {
  11825. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11826. }
  11827. public static self::BarRequest ParseFrom(pb::CodedInputStream input,
  11828. pb::ExtensionRegistry extensionRegistry) {
  11829. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11830. .BuildParsed();
  11831. }
  11832. public static Builder CreateBuilder() { return new Builder(); }
  11833. public override Builder CreateBuilderForType() { return new Builder(); }
  11834. public static Builder CreateBuilder(self::BarRequest prototype) {
  11835. return (Builder) new Builder().MergeFrom(prototype);
  11836. }
  11837. public sealed partial class Builder : pb::GeneratedBuilder<self::BarRequest, Builder> {
  11838. protected override Builder ThisBuilder {
  11839. get { return this; }
  11840. }
  11841. // Construct using self::BarRequest.CreateBuilder()
  11842. internal Builder() {}
  11843. self::BarRequest result = new self::BarRequest();
  11844. protected override self::BarRequest MessageBeingBuilt {
  11845. get { return result; }
  11846. }
  11847. public override Builder Clear() {
  11848. result = new self::BarRequest();
  11849. return this;
  11850. }
  11851. public override Builder Clone() {
  11852. return new Builder().MergeFrom(result);
  11853. }
  11854. public override pbd::MessageDescriptor DescriptorForType {
  11855. get { return self::BarRequest.Descriptor; }
  11856. }
  11857. public override self::BarRequest DefaultInstanceForType {
  11858. get { return self::BarRequest.DefaultInstance; }
  11859. }
  11860. public override self::BarRequest BuildPartial() {
  11861. self::BarRequest returnMe = result;
  11862. result = null;
  11863. return returnMe;
  11864. }
  11865. public override Builder MergeFrom(pb::IMessage other) {
  11866. if (other is self::BarRequest) {
  11867. return MergeFrom((self::BarRequest) other);
  11868. } else {
  11869. base.MergeFrom(other);
  11870. return this;
  11871. }
  11872. }
  11873. public override Builder MergeFrom(self::BarRequest other) {
  11874. if (other == self::BarRequest.DefaultInstance) return this;
  11875. this.MergeUnknownFields(other.UnknownFields);
  11876. return this;
  11877. }
  11878. public override Builder MergeFrom(pb::CodedInputStream input) {
  11879. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11880. }
  11881. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11882. pb::UnknownFieldSet.Builder unknownFields =
  11883. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11884. while (true) {
  11885. uint tag = input.ReadTag();
  11886. switch (tag) {
  11887. case 0:
  11888. this.UnknownFields = unknownFields.Build();
  11889. return this;
  11890. default: {
  11891. if (!ParseUnknownField(input, unknownFields,
  11892. extensionRegistry, tag)) {
  11893. this.UnknownFields = unknownFields.Build();
  11894. return this;
  11895. }
  11896. break;
  11897. }
  11898. }
  11899. }
  11900. }
  11901. }
  11902. }
  11903. public sealed partial class BarResponse : pb::GeneratedMessage<BarResponse, BarResponse.Builder> {
  11904. private static readonly BarResponse defaultInstance = new BarResponse();
  11905. public static BarResponse DefaultInstance {
  11906. get { return defaultInstance; }
  11907. }
  11908. public override BarResponse DefaultInstanceForType {
  11909. get { return defaultInstance; }
  11910. }
  11911. public static pbd::MessageDescriptor Descriptor {
  11912. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__Descriptor; }
  11913. }
  11914. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11915. get { return self::UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; }
  11916. }
  11917. public override bool IsInitialized {
  11918. get {
  11919. return true;
  11920. }
  11921. }
  11922. public override void WriteTo(pb::CodedOutputStream output) {
  11923. UnknownFields.WriteTo(output);
  11924. }
  11925. private int memoizedSerializedSize = -1;
  11926. public override int SerializedSize {
  11927. get {
  11928. int size = memoizedSerializedSize;
  11929. if (size != -1) return size;
  11930. size = 0;
  11931. size += UnknownFields.SerializedSize;
  11932. memoizedSerializedSize = size;
  11933. return size;
  11934. }
  11935. }
  11936. public static self::BarResponse ParseFrom(pb::ByteString data) {
  11937. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11938. }
  11939. public static self::BarResponse ParseFrom(pb::ByteString data,
  11940. pb::ExtensionRegistry extensionRegistry) {
  11941. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11942. .BuildParsed();
  11943. }
  11944. public static self::BarResponse ParseFrom(byte[] data) {
  11945. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11946. }
  11947. public static self::BarResponse ParseFrom(byte[] data,
  11948. pb::ExtensionRegistry extensionRegistry) {
  11949. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11950. .BuildParsed();
  11951. }
  11952. public static self::BarResponse ParseFrom(global::System.IO.Stream input) {
  11953. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11954. }
  11955. public static self::BarResponse ParseFrom(
  11956. global::System.IO.Stream input,
  11957. pb::ExtensionRegistry extensionRegistry) {
  11958. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11959. .BuildParsed();
  11960. }
  11961. public static self::BarResponse ParseFrom(pb::CodedInputStream input) {
  11962. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11963. }
  11964. public static self::BarResponse ParseFrom(pb::CodedInputStream input,
  11965. pb::ExtensionRegistry extensionRegistry) {
  11966. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11967. .BuildParsed();
  11968. }
  11969. public static Builder CreateBuilder() { return new Builder(); }
  11970. public override Builder CreateBuilderForType() { return new Builder(); }
  11971. public static Builder CreateBuilder(self::BarResponse prototype) {
  11972. return (Builder) new Builder().MergeFrom(prototype);
  11973. }
  11974. public sealed partial class Builder : pb::GeneratedBuilder<self::BarResponse, Builder> {
  11975. protected override Builder ThisBuilder {
  11976. get { return this; }
  11977. }
  11978. // Construct using self::BarResponse.CreateBuilder()
  11979. internal Builder() {}
  11980. self::BarResponse result = new self::BarResponse();
  11981. protected override self::BarResponse MessageBeingBuilt {
  11982. get { return result; }
  11983. }
  11984. public override Builder Clear() {
  11985. result = new self::BarResponse();
  11986. return this;
  11987. }
  11988. public override Builder Clone() {
  11989. return new Builder().MergeFrom(result);
  11990. }
  11991. public override pbd::MessageDescriptor DescriptorForType {
  11992. get { return self::BarResponse.Descriptor; }
  11993. }
  11994. public override self::BarResponse DefaultInstanceForType {
  11995. get { return self::BarResponse.DefaultInstance; }
  11996. }
  11997. public override self::BarResponse BuildPartial() {
  11998. self::BarResponse returnMe = result;
  11999. result = null;
  12000. return returnMe;
  12001. }
  12002. public override Builder MergeFrom(pb::IMessage other) {
  12003. if (other is self::BarResponse) {
  12004. return MergeFrom((self::BarResponse) other);
  12005. } else {
  12006. base.MergeFrom(other);
  12007. return this;
  12008. }
  12009. }
  12010. public override Builder MergeFrom(self::BarResponse other) {
  12011. if (other == self::BarResponse.DefaultInstance) return this;
  12012. this.MergeUnknownFields(other.UnknownFields);
  12013. return this;
  12014. }
  12015. public override Builder MergeFrom(pb::CodedInputStream input) {
  12016. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  12017. }
  12018. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  12019. pb::UnknownFieldSet.Builder unknownFields =
  12020. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  12021. while (true) {
  12022. uint tag = input.ReadTag();
  12023. switch (tag) {
  12024. case 0:
  12025. this.UnknownFields = unknownFields.Build();
  12026. return this;
  12027. default: {
  12028. if (!ParseUnknownField(input, unknownFields,
  12029. extensionRegistry, tag)) {
  12030. this.UnknownFields = unknownFields.Build();
  12031. return this;
  12032. }
  12033. break;
  12034. }
  12035. }
  12036. }
  12037. }
  12038. }
  12039. }
  12040. #endregion
  12041. #region Services
  12042. public abstract class TestService : pb::IService {
  12043. public abstract void Foo(
  12044. pb::IRpcController controller,
  12045. self::FooRequest request,
  12046. global::System.Action<self::FooResponse> done);
  12047. public abstract void Bar(
  12048. pb::IRpcController controller,
  12049. self::BarRequest request,
  12050. global::System.Action<self::BarResponse> done);
  12051. public static pbd::ServiceDescriptor Descriptor {
  12052. get { return self::UnitTestProtoFile.Descriptor.Services[0]; }
  12053. }
  12054. public pbd::ServiceDescriptor DescriptorForType {
  12055. get { return Descriptor; }
  12056. }
  12057. public void CallMethod(
  12058. pbd::MethodDescriptor method,
  12059. pb::IRpcController controller,
  12060. pb::IMessage request,
  12061. global::System.Action<pb::IMessage> done) {
  12062. if (method.Service != Descriptor) {
  12063. throw new global::System.ArgumentException(
  12064. "Service.CallMethod() given method descriptor for wrong " +
  12065. "service type.");
  12066. }
  12067. switch(method.Index) {
  12068. case 0:
  12069. this.Foo(controller, (self::FooRequest)request,
  12070. pb::RpcUtil.SpecializeCallback<self::FooResponse>(
  12071. done));
  12072. return;
  12073. case 1:
  12074. this.Bar(controller, (self::BarRequest)request,
  12075. pb::RpcUtil.SpecializeCallback<self::BarResponse>(
  12076. done));
  12077. return;
  12078. default:
  12079. throw new global::System.InvalidOperationException("Can't get here.");
  12080. }
  12081. }
  12082. public pb::IMessage GetRequestPrototype(pbd::MethodDescriptor method) {
  12083. if (method.Service != Descriptor) {
  12084. throw new global::System.ArgumentException(
  12085. "Service.GetRequestPrototype() given method " +
  12086. "descriptor for wrong service type.");
  12087. }
  12088. switch(method.Index) {
  12089. case 0:
  12090. return self::FooRequest.DefaultInstance;
  12091. case 1:
  12092. return self::BarRequest.DefaultInstance;
  12093. default:
  12094. throw new global::System.ArgumentException("Can't get here.");
  12095. }
  12096. }
  12097. public pb::IMessage GetResponsePrototype(pbd::MethodDescriptor method) {
  12098. if (method.Service != Descriptor) {
  12099. throw new global::System.ArgumentException(
  12100. "Service.GetResponsePrototype() given method " +
  12101. "descriptor for wrong service type.");
  12102. }
  12103. switch(method.Index) {
  12104. case 0:
  12105. return self::FooResponse.DefaultInstance;
  12106. case 1:
  12107. return self::BarResponse.DefaultInstance;
  12108. default:
  12109. throw new global::System.ArgumentException("Can't get here.");
  12110. }
  12111. }
  12112. public static Stub CreateStub(
  12113. pb::IRpcChannel channel) {
  12114. return new Stub(channel);
  12115. }
  12116. public class Stub : self::TestService {
  12117. internal Stub(pb::IRpcChannel channel) {
  12118. this.channel = channel;
  12119. }
  12120. private readonly pb::IRpcChannel channel;
  12121. public pb::IRpcChannel Channel {
  12122. get { return channel; }
  12123. }
  12124. public override void Foo(
  12125. pb::IRpcController controller,
  12126. self::FooRequest request,
  12127. global::System.Action<self::FooResponse> done) {
  12128. channel.CallMethod(
  12129. Descriptor.Methods[0],
  12130. controller,
  12131. request,
  12132. self::FooResponse.DefaultInstance,
  12133. pb::RpcUtil.GeneralizeCallback<self::FooResponse, self::FooResponse.Builder>(done, self::FooResponse.DefaultInstance));
  12134. }
  12135. public override void Bar(
  12136. pb::IRpcController controller,
  12137. self::BarRequest request,
  12138. global::System.Action<self::BarResponse> done) {
  12139. channel.CallMethod(
  12140. Descriptor.Methods[1],
  12141. controller,
  12142. request,
  12143. self::BarResponse.DefaultInstance,
  12144. pb::RpcUtil.GeneralizeCallback<self::BarResponse, self::BarResponse.Builder>(done, self::BarResponse.DefaultInstance));
  12145. }
  12146. }
  12147. }
  12148. #endregion
  12149. }