Unittest.cs 1.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516
  1. // Manual changes:
  2. // - Search and replace of RepeatedFieldsGenerator.Group to RepeatedFieldsGenerator.Types.Group
  3. //
  4. // Generated by the protocol buffer compiler. DO NOT EDIT!
  5. // source: google/protobuf/unittest.proto
  6. #pragma warning disable 1591, 0612, 3021
  7. #region Designer generated code
  8. using pb = global::Google.ProtocolBuffers;
  9. using pbc = global::Google.ProtocolBuffers.Collections;
  10. using pbd = global::Google.ProtocolBuffers.Descriptors;
  11. using scg = global::System.Collections.Generic;
  12. namespace Google.ProtocolBuffers.TestProtos {
  13. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14. public static partial class Unittest {
  15. #region Extension registration
  16. public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
  17. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalInt32Extension);
  18. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalInt64Extension);
  19. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalUint32Extension);
  20. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalUint64Extension);
  21. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalSint32Extension);
  22. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalSint64Extension);
  23. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalFixed32Extension);
  24. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalFixed64Extension);
  25. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalSfixed32Extension);
  26. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalSfixed64Extension);
  27. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalFloatExtension);
  28. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalDoubleExtension);
  29. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalBoolExtension);
  30. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalStringExtension);
  31. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalBytesExtension);
  32. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalGroupExtension);
  33. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalNestedMessageExtension);
  34. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalForeignMessageExtension);
  35. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalImportMessageExtension);
  36. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalNestedEnumExtension);
  37. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalForeignEnumExtension);
  38. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalImportEnumExtension);
  39. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalStringPieceExtension);
  40. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalCordExtension);
  41. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalPublicImportMessageExtension);
  42. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalLazyMessageExtension);
  43. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedInt32Extension);
  44. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedInt64Extension);
  45. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedUint32Extension);
  46. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedUint64Extension);
  47. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedSint32Extension);
  48. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedSint64Extension);
  49. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedFixed32Extension);
  50. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedFixed64Extension);
  51. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedSfixed32Extension);
  52. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedSfixed64Extension);
  53. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedFloatExtension);
  54. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedDoubleExtension);
  55. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedBoolExtension);
  56. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedStringExtension);
  57. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedBytesExtension);
  58. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedGroupExtension);
  59. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedNestedMessageExtension);
  60. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedForeignMessageExtension);
  61. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedImportMessageExtension);
  62. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedNestedEnumExtension);
  63. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedForeignEnumExtension);
  64. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedImportEnumExtension);
  65. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedStringPieceExtension);
  66. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedCordExtension);
  67. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedLazyMessageExtension);
  68. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultInt32Extension);
  69. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultInt64Extension);
  70. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultUint32Extension);
  71. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultUint64Extension);
  72. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultSint32Extension);
  73. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultSint64Extension);
  74. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultFixed32Extension);
  75. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultFixed64Extension);
  76. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultSfixed32Extension);
  77. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultSfixed64Extension);
  78. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultFloatExtension);
  79. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultDoubleExtension);
  80. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultBoolExtension);
  81. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultStringExtension);
  82. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultBytesExtension);
  83. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultNestedEnumExtension);
  84. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultForeignEnumExtension);
  85. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultImportEnumExtension);
  86. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultStringPieceExtension);
  87. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultCordExtension);
  88. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OneofUint32Extension);
  89. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OneofNestedMessageExtension);
  90. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OneofStringExtension);
  91. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OneofBytesExtension);
  92. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.MyExtensionString);
  93. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.MyExtensionInt);
  94. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedInt32Extension);
  95. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedInt64Extension);
  96. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedUint32Extension);
  97. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedUint64Extension);
  98. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedSint32Extension);
  99. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedSint64Extension);
  100. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedFixed32Extension);
  101. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedFixed64Extension);
  102. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedSfixed32Extension);
  103. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedSfixed64Extension);
  104. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedFloatExtension);
  105. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedDoubleExtension);
  106. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedBoolExtension);
  107. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedEnumExtension);
  108. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedInt32Extension);
  109. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedInt64Extension);
  110. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedUint32Extension);
  111. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedUint64Extension);
  112. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedSint32Extension);
  113. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedSint64Extension);
  114. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedFixed32Extension);
  115. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedFixed64Extension);
  116. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedSfixed32Extension);
  117. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedSfixed64Extension);
  118. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedFloatExtension);
  119. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedDoubleExtension);
  120. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedBoolExtension);
  121. registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedEnumExtension);
  122. registry.Add(global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Test);
  123. registry.Add(global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.NestedStringExtension);
  124. registry.Add(global::Google.ProtocolBuffers.TestProtos.TestRequired.Single);
  125. registry.Add(global::Google.ProtocolBuffers.TestProtos.TestRequired.Multi);
  126. registry.Add(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.OptionalExt);
  127. registry.Add(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.RepeatedExt);
  128. }
  129. #endregion
  130. #region Extensions
  131. public const int OptionalInt32ExtensionFieldNumber = 1;
  132. public static pb::GeneratedExtensionBase<int> OptionalInt32Extension;
  133. public const int OptionalInt64ExtensionFieldNumber = 2;
  134. public static pb::GeneratedExtensionBase<long> OptionalInt64Extension;
  135. public const int OptionalUint32ExtensionFieldNumber = 3;
  136. [global::System.CLSCompliant(false)]
  137. public static pb::GeneratedExtensionBase<uint> OptionalUint32Extension;
  138. public const int OptionalUint64ExtensionFieldNumber = 4;
  139. [global::System.CLSCompliant(false)]
  140. public static pb::GeneratedExtensionBase<ulong> OptionalUint64Extension;
  141. public const int OptionalSint32ExtensionFieldNumber = 5;
  142. public static pb::GeneratedExtensionBase<int> OptionalSint32Extension;
  143. public const int OptionalSint64ExtensionFieldNumber = 6;
  144. public static pb::GeneratedExtensionBase<long> OptionalSint64Extension;
  145. public const int OptionalFixed32ExtensionFieldNumber = 7;
  146. [global::System.CLSCompliant(false)]
  147. public static pb::GeneratedExtensionBase<uint> OptionalFixed32Extension;
  148. public const int OptionalFixed64ExtensionFieldNumber = 8;
  149. [global::System.CLSCompliant(false)]
  150. public static pb::GeneratedExtensionBase<ulong> OptionalFixed64Extension;
  151. public const int OptionalSfixed32ExtensionFieldNumber = 9;
  152. public static pb::GeneratedExtensionBase<int> OptionalSfixed32Extension;
  153. public const int OptionalSfixed64ExtensionFieldNumber = 10;
  154. public static pb::GeneratedExtensionBase<long> OptionalSfixed64Extension;
  155. public const int OptionalFloatExtensionFieldNumber = 11;
  156. public static pb::GeneratedExtensionBase<float> OptionalFloatExtension;
  157. public const int OptionalDoubleExtensionFieldNumber = 12;
  158. public static pb::GeneratedExtensionBase<double> OptionalDoubleExtension;
  159. public const int OptionalBoolExtensionFieldNumber = 13;
  160. public static pb::GeneratedExtensionBase<bool> OptionalBoolExtension;
  161. public const int OptionalStringExtensionFieldNumber = 14;
  162. public static pb::GeneratedExtensionBase<string> OptionalStringExtension;
  163. public const int OptionalBytesExtensionFieldNumber = 15;
  164. public static pb::GeneratedExtensionBase<pb::ByteString> OptionalBytesExtension;
  165. public const int OptionalGroupExtensionFieldNumber = 16;
  166. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension> OptionalGroupExtension;
  167. public const int OptionalNestedMessageExtensionFieldNumber = 18;
  168. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> OptionalNestedMessageExtension;
  169. public const int OptionalForeignMessageExtensionFieldNumber = 19;
  170. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> OptionalForeignMessageExtension;
  171. public const int OptionalImportMessageExtensionFieldNumber = 20;
  172. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportMessage> OptionalImportMessageExtension;
  173. public const int OptionalNestedEnumExtensionFieldNumber = 21;
  174. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> OptionalNestedEnumExtension;
  175. public const int OptionalForeignEnumExtensionFieldNumber = 22;
  176. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> OptionalForeignEnumExtension;
  177. public const int OptionalImportEnumExtensionFieldNumber = 23;
  178. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportEnum> OptionalImportEnumExtension;
  179. public const int OptionalStringPieceExtensionFieldNumber = 24;
  180. public static pb::GeneratedExtensionBase<string> OptionalStringPieceExtension;
  181. public const int OptionalCordExtensionFieldNumber = 25;
  182. public static pb::GeneratedExtensionBase<string> OptionalCordExtension;
  183. public const int OptionalPublicImportMessageExtensionFieldNumber = 26;
  184. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.PublicImportMessage> OptionalPublicImportMessageExtension;
  185. public const int OptionalLazyMessageExtensionFieldNumber = 27;
  186. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> OptionalLazyMessageExtension;
  187. public const int RepeatedInt32ExtensionFieldNumber = 31;
  188. public static pb::GeneratedExtensionBase<scg::IList<int>> RepeatedInt32Extension;
  189. public const int RepeatedInt64ExtensionFieldNumber = 32;
  190. public static pb::GeneratedExtensionBase<scg::IList<long>> RepeatedInt64Extension;
  191. public const int RepeatedUint32ExtensionFieldNumber = 33;
  192. [global::System.CLSCompliant(false)]
  193. public static pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedUint32Extension;
  194. public const int RepeatedUint64ExtensionFieldNumber = 34;
  195. [global::System.CLSCompliant(false)]
  196. public static pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedUint64Extension;
  197. public const int RepeatedSint32ExtensionFieldNumber = 35;
  198. public static pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSint32Extension;
  199. public const int RepeatedSint64ExtensionFieldNumber = 36;
  200. public static pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSint64Extension;
  201. public const int RepeatedFixed32ExtensionFieldNumber = 37;
  202. [global::System.CLSCompliant(false)]
  203. public static pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedFixed32Extension;
  204. public const int RepeatedFixed64ExtensionFieldNumber = 38;
  205. [global::System.CLSCompliant(false)]
  206. public static pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedFixed64Extension;
  207. public const int RepeatedSfixed32ExtensionFieldNumber = 39;
  208. public static pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSfixed32Extension;
  209. public const int RepeatedSfixed64ExtensionFieldNumber = 40;
  210. public static pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSfixed64Extension;
  211. public const int RepeatedFloatExtensionFieldNumber = 41;
  212. public static pb::GeneratedExtensionBase<scg::IList<float>> RepeatedFloatExtension;
  213. public const int RepeatedDoubleExtensionFieldNumber = 42;
  214. public static pb::GeneratedExtensionBase<scg::IList<double>> RepeatedDoubleExtension;
  215. public const int RepeatedBoolExtensionFieldNumber = 43;
  216. public static pb::GeneratedExtensionBase<scg::IList<bool>> RepeatedBoolExtension;
  217. public const int RepeatedStringExtensionFieldNumber = 44;
  218. public static pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringExtension;
  219. public const int RepeatedBytesExtensionFieldNumber = 45;
  220. public static pb::GeneratedExtensionBase<scg::IList<pb::ByteString>> RepeatedBytesExtension;
  221. public const int RepeatedGroupExtensionFieldNumber = 46;
  222. public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension>> RepeatedGroupExtension;
  223. public const int RepeatedNestedMessageExtensionFieldNumber = 48;
  224. public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>> RepeatedNestedMessageExtension;
  225. public const int RepeatedForeignMessageExtensionFieldNumber = 49;
  226. public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>> RepeatedForeignMessageExtension;
  227. public const int RepeatedImportMessageExtensionFieldNumber = 50;
  228. public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage>> RepeatedImportMessageExtension;
  229. public const int RepeatedNestedEnumExtensionFieldNumber = 51;
  230. public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>> RepeatedNestedEnumExtension;
  231. public const int RepeatedForeignEnumExtensionFieldNumber = 52;
  232. public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>> RepeatedForeignEnumExtension;
  233. public const int RepeatedImportEnumExtensionFieldNumber = 53;
  234. public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum>> RepeatedImportEnumExtension;
  235. public const int RepeatedStringPieceExtensionFieldNumber = 54;
  236. public static pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringPieceExtension;
  237. public const int RepeatedCordExtensionFieldNumber = 55;
  238. public static pb::GeneratedExtensionBase<scg::IList<string>> RepeatedCordExtension;
  239. public const int RepeatedLazyMessageExtensionFieldNumber = 57;
  240. public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>> RepeatedLazyMessageExtension;
  241. public const int DefaultInt32ExtensionFieldNumber = 61;
  242. public static pb::GeneratedExtensionBase<int> DefaultInt32Extension;
  243. public const int DefaultInt64ExtensionFieldNumber = 62;
  244. public static pb::GeneratedExtensionBase<long> DefaultInt64Extension;
  245. public const int DefaultUint32ExtensionFieldNumber = 63;
  246. [global::System.CLSCompliant(false)]
  247. public static pb::GeneratedExtensionBase<uint> DefaultUint32Extension;
  248. public const int DefaultUint64ExtensionFieldNumber = 64;
  249. [global::System.CLSCompliant(false)]
  250. public static pb::GeneratedExtensionBase<ulong> DefaultUint64Extension;
  251. public const int DefaultSint32ExtensionFieldNumber = 65;
  252. public static pb::GeneratedExtensionBase<int> DefaultSint32Extension;
  253. public const int DefaultSint64ExtensionFieldNumber = 66;
  254. public static pb::GeneratedExtensionBase<long> DefaultSint64Extension;
  255. public const int DefaultFixed32ExtensionFieldNumber = 67;
  256. [global::System.CLSCompliant(false)]
  257. public static pb::GeneratedExtensionBase<uint> DefaultFixed32Extension;
  258. public const int DefaultFixed64ExtensionFieldNumber = 68;
  259. [global::System.CLSCompliant(false)]
  260. public static pb::GeneratedExtensionBase<ulong> DefaultFixed64Extension;
  261. public const int DefaultSfixed32ExtensionFieldNumber = 69;
  262. public static pb::GeneratedExtensionBase<int> DefaultSfixed32Extension;
  263. public const int DefaultSfixed64ExtensionFieldNumber = 70;
  264. public static pb::GeneratedExtensionBase<long> DefaultSfixed64Extension;
  265. public const int DefaultFloatExtensionFieldNumber = 71;
  266. public static pb::GeneratedExtensionBase<float> DefaultFloatExtension;
  267. public const int DefaultDoubleExtensionFieldNumber = 72;
  268. public static pb::GeneratedExtensionBase<double> DefaultDoubleExtension;
  269. public const int DefaultBoolExtensionFieldNumber = 73;
  270. public static pb::GeneratedExtensionBase<bool> DefaultBoolExtension;
  271. public const int DefaultStringExtensionFieldNumber = 74;
  272. public static pb::GeneratedExtensionBase<string> DefaultStringExtension;
  273. public const int DefaultBytesExtensionFieldNumber = 75;
  274. public static pb::GeneratedExtensionBase<pb::ByteString> DefaultBytesExtension;
  275. public const int DefaultNestedEnumExtensionFieldNumber = 81;
  276. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> DefaultNestedEnumExtension;
  277. public const int DefaultForeignEnumExtensionFieldNumber = 82;
  278. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> DefaultForeignEnumExtension;
  279. public const int DefaultImportEnumExtensionFieldNumber = 83;
  280. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportEnum> DefaultImportEnumExtension;
  281. public const int DefaultStringPieceExtensionFieldNumber = 84;
  282. public static pb::GeneratedExtensionBase<string> DefaultStringPieceExtension;
  283. public const int DefaultCordExtensionFieldNumber = 85;
  284. public static pb::GeneratedExtensionBase<string> DefaultCordExtension;
  285. public const int OneofUint32ExtensionFieldNumber = 111;
  286. [global::System.CLSCompliant(false)]
  287. public static pb::GeneratedExtensionBase<uint> OneofUint32Extension;
  288. public const int OneofNestedMessageExtensionFieldNumber = 112;
  289. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> OneofNestedMessageExtension;
  290. public const int OneofStringExtensionFieldNumber = 113;
  291. public static pb::GeneratedExtensionBase<string> OneofStringExtension;
  292. public const int OneofBytesExtensionFieldNumber = 114;
  293. public static pb::GeneratedExtensionBase<pb::ByteString> OneofBytesExtension;
  294. public const int MyExtensionStringFieldNumber = 50;
  295. public static pb::GeneratedExtensionBase<string> MyExtensionString;
  296. public const int MyExtensionIntFieldNumber = 5;
  297. public static pb::GeneratedExtensionBase<int> MyExtensionInt;
  298. public const int PackedInt32ExtensionFieldNumber = 90;
  299. public static pb::GeneratedExtensionBase<scg::IList<int>> PackedInt32Extension;
  300. public const int PackedInt64ExtensionFieldNumber = 91;
  301. public static pb::GeneratedExtensionBase<scg::IList<long>> PackedInt64Extension;
  302. public const int PackedUint32ExtensionFieldNumber = 92;
  303. [global::System.CLSCompliant(false)]
  304. public static pb::GeneratedExtensionBase<scg::IList<uint>> PackedUint32Extension;
  305. public const int PackedUint64ExtensionFieldNumber = 93;
  306. [global::System.CLSCompliant(false)]
  307. public static pb::GeneratedExtensionBase<scg::IList<ulong>> PackedUint64Extension;
  308. public const int PackedSint32ExtensionFieldNumber = 94;
  309. public static pb::GeneratedExtensionBase<scg::IList<int>> PackedSint32Extension;
  310. public const int PackedSint64ExtensionFieldNumber = 95;
  311. public static pb::GeneratedExtensionBase<scg::IList<long>> PackedSint64Extension;
  312. public const int PackedFixed32ExtensionFieldNumber = 96;
  313. [global::System.CLSCompliant(false)]
  314. public static pb::GeneratedExtensionBase<scg::IList<uint>> PackedFixed32Extension;
  315. public const int PackedFixed64ExtensionFieldNumber = 97;
  316. [global::System.CLSCompliant(false)]
  317. public static pb::GeneratedExtensionBase<scg::IList<ulong>> PackedFixed64Extension;
  318. public const int PackedSfixed32ExtensionFieldNumber = 98;
  319. public static pb::GeneratedExtensionBase<scg::IList<int>> PackedSfixed32Extension;
  320. public const int PackedSfixed64ExtensionFieldNumber = 99;
  321. public static pb::GeneratedExtensionBase<scg::IList<long>> PackedSfixed64Extension;
  322. public const int PackedFloatExtensionFieldNumber = 100;
  323. public static pb::GeneratedExtensionBase<scg::IList<float>> PackedFloatExtension;
  324. public const int PackedDoubleExtensionFieldNumber = 101;
  325. public static pb::GeneratedExtensionBase<scg::IList<double>> PackedDoubleExtension;
  326. public const int PackedBoolExtensionFieldNumber = 102;
  327. public static pb::GeneratedExtensionBase<scg::IList<bool>> PackedBoolExtension;
  328. public const int PackedEnumExtensionFieldNumber = 103;
  329. public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>> PackedEnumExtension;
  330. public const int UnpackedInt32ExtensionFieldNumber = 90;
  331. public static pb::GeneratedExtensionBase<scg::IList<int>> UnpackedInt32Extension;
  332. public const int UnpackedInt64ExtensionFieldNumber = 91;
  333. public static pb::GeneratedExtensionBase<scg::IList<long>> UnpackedInt64Extension;
  334. public const int UnpackedUint32ExtensionFieldNumber = 92;
  335. [global::System.CLSCompliant(false)]
  336. public static pb::GeneratedExtensionBase<scg::IList<uint>> UnpackedUint32Extension;
  337. public const int UnpackedUint64ExtensionFieldNumber = 93;
  338. [global::System.CLSCompliant(false)]
  339. public static pb::GeneratedExtensionBase<scg::IList<ulong>> UnpackedUint64Extension;
  340. public const int UnpackedSint32ExtensionFieldNumber = 94;
  341. public static pb::GeneratedExtensionBase<scg::IList<int>> UnpackedSint32Extension;
  342. public const int UnpackedSint64ExtensionFieldNumber = 95;
  343. public static pb::GeneratedExtensionBase<scg::IList<long>> UnpackedSint64Extension;
  344. public const int UnpackedFixed32ExtensionFieldNumber = 96;
  345. [global::System.CLSCompliant(false)]
  346. public static pb::GeneratedExtensionBase<scg::IList<uint>> UnpackedFixed32Extension;
  347. public const int UnpackedFixed64ExtensionFieldNumber = 97;
  348. [global::System.CLSCompliant(false)]
  349. public static pb::GeneratedExtensionBase<scg::IList<ulong>> UnpackedFixed64Extension;
  350. public const int UnpackedSfixed32ExtensionFieldNumber = 98;
  351. public static pb::GeneratedExtensionBase<scg::IList<int>> UnpackedSfixed32Extension;
  352. public const int UnpackedSfixed64ExtensionFieldNumber = 99;
  353. public static pb::GeneratedExtensionBase<scg::IList<long>> UnpackedSfixed64Extension;
  354. public const int UnpackedFloatExtensionFieldNumber = 100;
  355. public static pb::GeneratedExtensionBase<scg::IList<float>> UnpackedFloatExtension;
  356. public const int UnpackedDoubleExtensionFieldNumber = 101;
  357. public static pb::GeneratedExtensionBase<scg::IList<double>> UnpackedDoubleExtension;
  358. public const int UnpackedBoolExtensionFieldNumber = 102;
  359. public static pb::GeneratedExtensionBase<scg::IList<bool>> UnpackedBoolExtension;
  360. public const int UnpackedEnumExtensionFieldNumber = 103;
  361. public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>> UnpackedEnumExtension;
  362. #endregion
  363. #region Static variables
  364. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes__Descriptor;
  365. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder> internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable;
  366. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor;
  367. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable;
  368. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor;
  369. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder> internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable;
  370. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor;
  371. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder> internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable;
  372. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_NestedTestAllTypes__Descriptor;
  373. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes, global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.Builder> internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable;
  374. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDeprecatedFields__Descriptor;
  375. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields, global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.Builder> internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable;
  376. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_ForeignMessage__Descriptor;
  377. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder> internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable;
  378. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllExtensions__Descriptor;
  379. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder> internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable;
  380. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor;
  381. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Builder> internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable;
  382. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor;
  383. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Builder> internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable;
  384. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedExtension__Descriptor;
  385. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedExtension, global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Builder> internal__static_protobuf_unittest_TestNestedExtension__FieldAccessorTable;
  386. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequired__Descriptor;
  387. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequired, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder> internal__static_protobuf_unittest_TestRequired__FieldAccessorTable;
  388. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequiredForeign__Descriptor;
  389. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder> internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable;
  390. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestForeignNested__Descriptor;
  391. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder> internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable;
  392. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessage__Descriptor;
  393. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder> internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable;
  394. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor;
  395. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder> internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable;
  396. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestMultipleExtensionRanges__Descriptor;
  397. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges, global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.Builder> internal__static_protobuf_unittest_TestMultipleExtensionRanges__FieldAccessorTable;
  398. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor;
  399. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder> internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable;
  400. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor;
  401. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder> internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable;
  402. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor;
  403. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder> internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable;
  404. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor;
  405. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder> internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable;
  406. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor;
  407. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder> internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable;
  408. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor;
  409. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder> internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable;
  410. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor;
  411. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder> internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable;
  412. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestEagerMessage__Descriptor;
  413. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEagerMessage, global::Google.ProtocolBuffers.TestProtos.TestEagerMessage.Builder> internal__static_protobuf_unittest_TestEagerMessage__FieldAccessorTable;
  414. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestLazyMessage__Descriptor;
  415. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestLazyMessage, global::Google.ProtocolBuffers.TestProtos.TestLazyMessage.Builder> internal__static_protobuf_unittest_TestLazyMessage__FieldAccessorTable;
  416. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor;
  417. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder> internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable;
  418. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor;
  419. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable;
  420. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor;
  421. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder> internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable;
  422. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestFieldOrderings__Descriptor;
  423. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder> internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable;
  424. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__Descriptor;
  425. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__FieldAccessorTable;
  426. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor;
  427. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder> internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable;
  428. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_SparseEnumMessage__Descriptor;
  429. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.SparseEnumMessage, global::Google.ProtocolBuffers.TestProtos.SparseEnumMessage.Builder> internal__static_protobuf_unittest_SparseEnumMessage__FieldAccessorTable;
  430. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_OneString__Descriptor;
  431. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OneString, global::Google.ProtocolBuffers.TestProtos.OneString.Builder> internal__static_protobuf_unittest_OneString__FieldAccessorTable;
  432. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_MoreString__Descriptor;
  433. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.MoreString, global::Google.ProtocolBuffers.TestProtos.MoreString.Builder> internal__static_protobuf_unittest_MoreString__FieldAccessorTable;
  434. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_OneBytes__Descriptor;
  435. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OneBytes, global::Google.ProtocolBuffers.TestProtos.OneBytes.Builder> internal__static_protobuf_unittest_OneBytes__FieldAccessorTable;
  436. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_MoreBytes__Descriptor;
  437. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.MoreBytes, global::Google.ProtocolBuffers.TestProtos.MoreBytes.Builder> internal__static_protobuf_unittest_MoreBytes__FieldAccessorTable;
  438. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_Int32Message__Descriptor;
  439. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.Int32Message, global::Google.ProtocolBuffers.TestProtos.Int32Message.Builder> internal__static_protobuf_unittest_Int32Message__FieldAccessorTable;
  440. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_Uint32Message__Descriptor;
  441. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.Uint32Message, global::Google.ProtocolBuffers.TestProtos.Uint32Message.Builder> internal__static_protobuf_unittest_Uint32Message__FieldAccessorTable;
  442. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_Int64Message__Descriptor;
  443. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.Int64Message, global::Google.ProtocolBuffers.TestProtos.Int64Message.Builder> internal__static_protobuf_unittest_Int64Message__FieldAccessorTable;
  444. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_Uint64Message__Descriptor;
  445. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.Uint64Message, global::Google.ProtocolBuffers.TestProtos.Uint64Message.Builder> internal__static_protobuf_unittest_Uint64Message__FieldAccessorTable;
  446. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_BoolMessage__Descriptor;
  447. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BoolMessage, global::Google.ProtocolBuffers.TestProtos.BoolMessage.Builder> internal__static_protobuf_unittest_BoolMessage__FieldAccessorTable;
  448. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestOneof__Descriptor;
  449. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof, global::Google.ProtocolBuffers.TestProtos.TestOneof.Builder> internal__static_protobuf_unittest_TestOneof__FieldAccessorTable;
  450. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestOneof_FooGroup__Descriptor;
  451. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup, global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.Builder> internal__static_protobuf_unittest_TestOneof_FooGroup__FieldAccessorTable;
  452. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestOneofBackwardsCompatible__Descriptor;
  453. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible, global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Builder> internal__static_protobuf_unittest_TestOneofBackwardsCompatible__FieldAccessorTable;
  454. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup__Descriptor;
  455. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup, global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.Builder> internal__static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup__FieldAccessorTable;
  456. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestOneof2__Descriptor;
  457. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof2, global::Google.ProtocolBuffers.TestProtos.TestOneof2.Builder> internal__static_protobuf_unittest_TestOneof2__FieldAccessorTable;
  458. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestOneof2_FooGroup__Descriptor;
  459. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup, global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.Builder> internal__static_protobuf_unittest_TestOneof2_FooGroup__FieldAccessorTable;
  460. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestOneof2_NestedMessage__Descriptor;
  461. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestOneof2_NestedMessage__FieldAccessorTable;
  462. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequiredOneof__Descriptor;
  463. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof, global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Builder> internal__static_protobuf_unittest_TestRequiredOneof__FieldAccessorTable;
  464. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequiredOneof_NestedMessage__Descriptor;
  465. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestRequiredOneof_NestedMessage__FieldAccessorTable;
  466. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestPackedTypes__Descriptor;
  467. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestPackedTypes, global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.Builder> internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable;
  468. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestUnpackedTypes__Descriptor;
  469. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes, global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.Builder> internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable;
  470. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestPackedExtensions__Descriptor;
  471. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.Builder> internal__static_protobuf_unittest_TestPackedExtensions__FieldAccessorTable;
  472. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestUnpackedExtensions__Descriptor;
  473. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions, global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.Builder> internal__static_protobuf_unittest_TestUnpackedExtensions__FieldAccessorTable;
  474. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDynamicExtensions__Descriptor;
  475. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions, global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Builder> internal__static_protobuf_unittest_TestDynamicExtensions__FieldAccessorTable;
  476. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__Descriptor;
  477. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType, global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Builder> internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__FieldAccessorTable;
  478. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__Descriptor;
  479. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes, global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.Builder> internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable;
  480. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestParsingMerge__Descriptor;
  481. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Builder> internal__static_protobuf_unittest_TestParsingMerge__FieldAccessorTable;
  482. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__Descriptor;
  483. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Builder> internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__FieldAccessorTable;
  484. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1__Descriptor;
  485. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Builder> internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1__FieldAccessorTable;
  486. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2__Descriptor;
  487. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Builder> internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2__FieldAccessorTable;
  488. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestParsingMerge_OptionalGroup__Descriptor;
  489. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.Builder> internal__static_protobuf_unittest_TestParsingMerge_OptionalGroup__FieldAccessorTable;
  490. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestParsingMerge_RepeatedGroup__Descriptor;
  491. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup.Builder> internal__static_protobuf_unittest_TestParsingMerge_RepeatedGroup__FieldAccessorTable;
  492. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestCommentInjectionMessage__Descriptor;
  493. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCommentInjectionMessage, global::Google.ProtocolBuffers.TestProtos.TestCommentInjectionMessage.Builder> internal__static_protobuf_unittest_TestCommentInjectionMessage__FieldAccessorTable;
  494. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_FooRequest__Descriptor;
  495. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooRequest, global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder> internal__static_protobuf_unittest_FooRequest__FieldAccessorTable;
  496. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_FooResponse__Descriptor;
  497. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder> internal__static_protobuf_unittest_FooResponse__FieldAccessorTable;
  498. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_FooClientMessage__Descriptor;
  499. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooClientMessage, global::Google.ProtocolBuffers.TestProtos.FooClientMessage.Builder> internal__static_protobuf_unittest_FooClientMessage__FieldAccessorTable;
  500. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_FooServerMessage__Descriptor;
  501. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooServerMessage, global::Google.ProtocolBuffers.TestProtos.FooServerMessage.Builder> internal__static_protobuf_unittest_FooServerMessage__FieldAccessorTable;
  502. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_BarRequest__Descriptor;
  503. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarRequest, global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder> internal__static_protobuf_unittest_BarRequest__FieldAccessorTable;
  504. internal static pbd::MessageDescriptor internal__static_protobuf_unittest_BarResponse__Descriptor;
  505. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder> internal__static_protobuf_unittest_BarResponse__FieldAccessorTable;
  506. #endregion
  507. #region Descriptor
  508. public static pbd::FileDescriptor Descriptor {
  509. get { return descriptor; }
  510. }
  511. private static pbd::FileDescriptor descriptor;
  512. static Unittest() {
  513. byte[] descriptorData = global::System.Convert.FromBase64String(
  514. string.Concat(
  515. "Ch5nb29nbGUvcHJvdG9idWYvdW5pdHRlc3QucHJvdG8SEXByb3RvYnVmX3Vu",
  516. "aXR0ZXN0GiVnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0LnByb3Rv",
  517. "Iu0YCgxUZXN0QWxsVHlwZXMSFgoOb3B0aW9uYWxfaW50MzIYASABKAUSFgoO",
  518. "b3B0aW9uYWxfaW50NjQYAiABKAMSFwoPb3B0aW9uYWxfdWludDMyGAMgASgN",
  519. "EhcKD29wdGlvbmFsX3VpbnQ2NBgEIAEoBBIXCg9vcHRpb25hbF9zaW50MzIY",
  520. "BSABKBESFwoPb3B0aW9uYWxfc2ludDY0GAYgASgSEhgKEG9wdGlvbmFsX2Zp",
  521. "eGVkMzIYByABKAcSGAoQb3B0aW9uYWxfZml4ZWQ2NBgIIAEoBhIZChFvcHRp",
  522. "b25hbF9zZml4ZWQzMhgJIAEoDxIZChFvcHRpb25hbF9zZml4ZWQ2NBgKIAEo",
  523. "EBIWCg5vcHRpb25hbF9mbG9hdBgLIAEoAhIXCg9vcHRpb25hbF9kb3VibGUY",
  524. "DCABKAESFQoNb3B0aW9uYWxfYm9vbBgNIAEoCBIXCg9vcHRpb25hbF9zdHJp",
  525. "bmcYDiABKAkSFgoOb3B0aW9uYWxfYnl0ZXMYDyABKAwSRAoNb3B0aW9uYWxn",
  526. "cm91cBgQIAEoCjItLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5P",
  527. "cHRpb25hbEdyb3VwEk4KF29wdGlvbmFsX25lc3RlZF9tZXNzYWdlGBIgASgL",
  528. "Mi0ucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzLk5lc3RlZE1lc3Nh",
  529. "Z2USQwoYb3B0aW9uYWxfZm9yZWlnbl9tZXNzYWdlGBMgASgLMiEucHJvdG9i",
  530. "dWZfdW5pdHRlc3QuRm9yZWlnbk1lc3NhZ2USSAoXb3B0aW9uYWxfaW1wb3J0",
  531. "X21lc3NhZ2UYFCABKAsyJy5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnQuSW1w",
  532. "b3J0TWVzc2FnZRJIChRvcHRpb25hbF9uZXN0ZWRfZW51bRgVIAEoDjIqLnBy",
  533. "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRFbnVtEj0KFW9w",
  534. "dGlvbmFsX2ZvcmVpZ25fZW51bRgWIAEoDjIeLnByb3RvYnVmX3VuaXR0ZXN0",
  535. "LkZvcmVpZ25FbnVtEkIKFG9wdGlvbmFsX2ltcG9ydF9lbnVtGBcgASgOMiQu",
  536. "cHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9ydEVudW0SIQoVb3B0aW9u",
  537. "YWxfc3RyaW5nX3BpZWNlGBggASgJQgIIAhIZCg1vcHRpb25hbF9jb3JkGBkg",
  538. "ASgJQgIIARJVCh5vcHRpb25hbF9wdWJsaWNfaW1wb3J0X21lc3NhZ2UYGiAB",
  539. "KAsyLS5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnQuUHVibGljSW1wb3J0TWVz",
  540. "c2FnZRJQChVvcHRpb25hbF9sYXp5X21lc3NhZ2UYGyABKAsyLS5wcm90b2J1",
  541. "Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZUICKAESFgoO",
  542. "cmVwZWF0ZWRfaW50MzIYHyADKAUSFgoOcmVwZWF0ZWRfaW50NjQYICADKAMS",
  543. "FwoPcmVwZWF0ZWRfdWludDMyGCEgAygNEhcKD3JlcGVhdGVkX3VpbnQ2NBgi",
  544. "IAMoBBIXCg9yZXBlYXRlZF9zaW50MzIYIyADKBESFwoPcmVwZWF0ZWRfc2lu",
  545. "dDY0GCQgAygSEhgKEHJlcGVhdGVkX2ZpeGVkMzIYJSADKAcSGAoQcmVwZWF0",
  546. "ZWRfZml4ZWQ2NBgmIAMoBhIZChFyZXBlYXRlZF9zZml4ZWQzMhgnIAMoDxIZ",
  547. "ChFyZXBlYXRlZF9zZml4ZWQ2NBgoIAMoEBIWCg5yZXBlYXRlZF9mbG9hdBgp",
  548. "IAMoAhIXCg9yZXBlYXRlZF9kb3VibGUYKiADKAESFQoNcmVwZWF0ZWRfYm9v",
  549. "bBgrIAMoCBIXCg9yZXBlYXRlZF9zdHJpbmcYLCADKAkSFgoOcmVwZWF0ZWRf",
  550. "Ynl0ZXMYLSADKAwSRAoNcmVwZWF0ZWRncm91cBguIAMoCjItLnByb3RvYnVm",
  551. "X3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5SZXBlYXRlZEdyb3VwEk4KF3JlcGVh",
  552. "dGVkX25lc3RlZF9tZXNzYWdlGDAgAygLMi0ucHJvdG9idWZfdW5pdHRlc3Qu",
  553. "VGVzdEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2USQwoYcmVwZWF0ZWRfZm9yZWln",
  554. "bl9tZXNzYWdlGDEgAygLMiEucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbk1l",
  555. "c3NhZ2USSAoXcmVwZWF0ZWRfaW1wb3J0X21lc3NhZ2UYMiADKAsyJy5wcm90",
  556. "b2J1Zl91bml0dGVzdF9pbXBvcnQuSW1wb3J0TWVzc2FnZRJIChRyZXBlYXRl",
  557. "ZF9uZXN0ZWRfZW51bRgzIAMoDjIqLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB",
  558. "bGxUeXBlcy5OZXN0ZWRFbnVtEj0KFXJlcGVhdGVkX2ZvcmVpZ25fZW51bRg0",
  559. "IAMoDjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25FbnVtEkIKFHJlcGVh",
  560. "dGVkX2ltcG9ydF9lbnVtGDUgAygOMiQucHJvdG9idWZfdW5pdHRlc3RfaW1w",
  561. "b3J0LkltcG9ydEVudW0SIQoVcmVwZWF0ZWRfc3RyaW5nX3BpZWNlGDYgAygJ",
  562. "QgIIAhIZCg1yZXBlYXRlZF9jb3JkGDcgAygJQgIIARJQChVyZXBlYXRlZF9s",
  563. "YXp5X21lc3NhZ2UYOSADKAsyLS5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxs",
  564. "VHlwZXMuTmVzdGVkTWVzc2FnZUICKAESGQoNZGVmYXVsdF9pbnQzMhg9IAEo",
  565. "BToCNDESGQoNZGVmYXVsdF9pbnQ2NBg+IAEoAzoCNDISGgoOZGVmYXVsdF91",
  566. "aW50MzIYPyABKA06AjQzEhoKDmRlZmF1bHRfdWludDY0GEAgASgEOgI0NBIb",
  567. "Cg5kZWZhdWx0X3NpbnQzMhhBIAEoEToDLTQ1EhoKDmRlZmF1bHRfc2ludDY0",
  568. "GEIgASgSOgI0NhIbCg9kZWZhdWx0X2ZpeGVkMzIYQyABKAc6AjQ3EhsKD2Rl",
  569. "ZmF1bHRfZml4ZWQ2NBhEIAEoBjoCNDgSHAoQZGVmYXVsdF9zZml4ZWQzMhhF",
  570. "IAEoDzoCNDkSHQoQZGVmYXVsdF9zZml4ZWQ2NBhGIAEoEDoDLTUwEhsKDWRl",
  571. "ZmF1bHRfZmxvYXQYRyABKAI6BDUxLjUSHQoOZGVmYXVsdF9kb3VibGUYSCAB",
  572. "KAE6BTUyMDAwEhoKDGRlZmF1bHRfYm9vbBhJIAEoCDoEdHJ1ZRIdCg5kZWZh",
  573. "dWx0X3N0cmluZxhKIAEoCToFaGVsbG8SHAoNZGVmYXVsdF9ieXRlcxhLIAEo",
  574. "DDoFd29ybGQSTAoTZGVmYXVsdF9uZXN0ZWRfZW51bRhRIAEoDjIqLnByb3Rv",
  575. "YnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRFbnVtOgNCQVISSQoU",
  576. "ZGVmYXVsdF9mb3JlaWduX2VudW0YUiABKA4yHi5wcm90b2J1Zl91bml0dGVz",
  577. "dC5Gb3JlaWduRW51bToLRk9SRUlHTl9CQVISTQoTZGVmYXVsdF9pbXBvcnRf",
  578. "ZW51bRhTIAEoDjIkLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydC5JbXBvcnRF",
  579. "bnVtOgpJTVBPUlRfQkFSEiUKFGRlZmF1bHRfc3RyaW5nX3BpZWNlGFQgASgJ",
  580. "OgNhYmNCAggCEh0KDGRlZmF1bHRfY29yZBhVIAEoCToDMTIzQgIIARIWCgxv",
  581. "bmVvZl91aW50MzIYbyABKA1IABJNChRvbmVvZl9uZXN0ZWRfbWVzc2FnZRhw",
  582. "IAEoCzItLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRN",
  583. "ZXNzYWdlSAASFgoMb25lb2Zfc3RyaW5nGHEgASgJSAASFQoLb25lb2ZfYnl0",
  584. "ZXMYciABKAxIABobCg1OZXN0ZWRNZXNzYWdlEgoKAmJiGAEgASgFGhoKDU9w",
  585. "dGlvbmFsR3JvdXASCQoBYRgRIAEoBRoaCg1SZXBlYXRlZEdyb3VwEgkKAWEY",
  586. "LyABKAUiOQoKTmVzdGVkRW51bRIHCgNGT08QARIHCgNCQVIQAhIHCgNCQVoQ",
  587. "AxIQCgNORUcQ////////////AUINCgtvbmVvZl9maWVsZCJ8ChJOZXN0ZWRU",
  588. "ZXN0QWxsVHlwZXMSNAoFY2hpbGQYASABKAsyJS5wcm90b2J1Zl91bml0dGVz",
  589. "dC5OZXN0ZWRUZXN0QWxsVHlwZXMSMAoHcGF5bG9hZBgCIAEoCzIfLnByb3Rv",
  590. "YnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcyI0ChRUZXN0RGVwcmVjYXRlZEZp",
  591. "ZWxkcxIcChBkZXByZWNhdGVkX2ludDMyGAEgASgFQgIYASIbCg5Gb3JlaWdu",
  592. "TWVzc2FnZRIJCgFjGAEgASgFIh0KEVRlc3RBbGxFeHRlbnNpb25zKggIARCA",
  593. "gICAAiIkChdPcHRpb25hbEdyb3VwX2V4dGVuc2lvbhIJCgFhGBEgASgFIiQK",
  594. "F1JlcGVhdGVkR3JvdXBfZXh0ZW5zaW9uEgkKAWEYLyABKAUimAEKE1Rlc3RO",
  595. "ZXN0ZWRFeHRlbnNpb24yOQoEdGVzdBIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
  596. "c3RBbGxFeHRlbnNpb25zGOoHIAEoCToEdGVzdDJGChduZXN0ZWRfc3RyaW5n",
  597. "X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNp",
  598. "b25zGOsHIAEoCSLVBQoMVGVzdFJlcXVpcmVkEgkKAWEYASACKAUSDgoGZHVt",
  599. "bXkyGAIgASgFEgkKAWIYAyACKAUSDgoGZHVtbXk0GAQgASgFEg4KBmR1bW15",
  600. "NRgFIAEoBRIOCgZkdW1teTYYBiABKAUSDgoGZHVtbXk3GAcgASgFEg4KBmR1",
  601. "bW15OBgIIAEoBRIOCgZkdW1teTkYCSABKAUSDwoHZHVtbXkxMBgKIAEoBRIP",
  602. "CgdkdW1teTExGAsgASgFEg8KB2R1bW15MTIYDCABKAUSDwoHZHVtbXkxMxgN",
  603. "IAEoBRIPCgdkdW1teTE0GA4gASgFEg8KB2R1bW15MTUYDyABKAUSDwoHZHVt",
  604. "bXkxNhgQIAEoBRIPCgdkdW1teTE3GBEgASgFEg8KB2R1bW15MTgYEiABKAUS",
  605. "DwoHZHVtbXkxORgTIAEoBRIPCgdkdW1teTIwGBQgASgFEg8KB2R1bW15MjEY",
  606. "FSABKAUSDwoHZHVtbXkyMhgWIAEoBRIPCgdkdW1teTIzGBcgASgFEg8KB2R1",
  607. "bW15MjQYGCABKAUSDwoHZHVtbXkyNRgZIAEoBRIPCgdkdW1teTI2GBogASgF",
  608. "Eg8KB2R1bW15MjcYGyABKAUSDwoHZHVtbXkyOBgcIAEoBRIPCgdkdW1teTI5",
  609. "GB0gASgFEg8KB2R1bW15MzAYHiABKAUSDwoHZHVtbXkzMRgfIAEoBRIPCgdk",
  610. "dW1teTMyGCAgASgFEgkKAWMYISACKAUyVgoGc2luZ2xlEiQucHJvdG9idWZf",
  611. "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMY6AcgASgLMh8ucHJvdG9idWZf",
  612. "dW5pdHRlc3QuVGVzdFJlcXVpcmVkMlUKBW11bHRpEiQucHJvdG9idWZfdW5p",
  613. "dHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMY6QcgAygLMh8ucHJvdG9idWZfdW5p",
  614. "dHRlc3QuVGVzdFJlcXVpcmVkIpoBChNUZXN0UmVxdWlyZWRGb3JlaWduEjkK",
  615. "EG9wdGlvbmFsX21lc3NhZ2UYASABKAsyHy5wcm90b2J1Zl91bml0dGVzdC5U",
  616. "ZXN0UmVxdWlyZWQSOQoQcmVwZWF0ZWRfbWVzc2FnZRgCIAMoCzIfLnByb3Rv",
  617. "YnVmX3VuaXR0ZXN0LlRlc3RSZXF1aXJlZBINCgVkdW1teRgDIAEoBSJaChFU",
  618. "ZXN0Rm9yZWlnbk5lc3RlZBJFCg5mb3JlaWduX25lc3RlZBgBIAEoCzItLnBy",
  619. "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlIhIK",
  620. "EFRlc3RFbXB0eU1lc3NhZ2UiKgoeVGVzdEVtcHR5TWVzc2FnZVdpdGhFeHRl",
  621. "bnNpb25zKggIARCAgICAAiI3ChtUZXN0TXVsdGlwbGVFeHRlbnNpb25SYW5n",
  622. "ZXMqBAgqECsqBgivIBCUISoKCICABBCAgICAAiI0ChhUZXN0UmVhbGx5TGFy",
  623. "Z2VUYWdOdW1iZXISCQoBYRgBIAEoBRINCgJiYhj///9/IAEoBSJVChRUZXN0",
  624. "UmVjdXJzaXZlTWVzc2FnZRIyCgFhGAEgASgLMicucHJvdG9idWZfdW5pdHRl",
  625. "c3QuVGVzdFJlY3Vyc2l2ZU1lc3NhZ2USCQoBaRgCIAEoBSJLChRUZXN0TXV0",
  626. "dWFsUmVjdXJzaW9uQRIzCgJiYhgBIAEoCzInLnByb3RvYnVmX3VuaXR0ZXN0",
  627. "LlRlc3RNdXR1YWxSZWN1cnNpb25CImIKFFRlc3RNdXR1YWxSZWN1cnNpb25C",
  628. "EjIKAWEYASABKAsyJy5wcm90b2J1Zl91bml0dGVzdC5UZXN0TXV0dWFsUmVj",
  629. "dXJzaW9uQRIWCg5vcHRpb25hbF9pbnQzMhgCIAEoBSKzAQoSVGVzdER1cEZp",
  630. "ZWxkTnVtYmVyEgkKAWEYASABKAUSNgoDZm9vGAIgASgKMikucHJvdG9idWZf",
  631. "dW5pdHRlc3QuVGVzdER1cEZpZWxkTnVtYmVyLkZvbxI2CgNiYXIYAyABKAoy",
  632. "KS5wcm90b2J1Zl91bml0dGVzdC5UZXN0RHVwRmllbGROdW1iZXIuQmFyGhAK",
  633. "A0ZvbxIJCgFhGAEgASgFGhAKA0JhchIJCgFhGAEgASgFIkwKEFRlc3RFYWdl",
  634. "ck1lc3NhZ2USOAoLc3ViX21lc3NhZ2UYASABKAsyHy5wcm90b2J1Zl91bml0",
  635. "dGVzdC5UZXN0QWxsVHlwZXNCAigAIksKD1Rlc3RMYXp5TWVzc2FnZRI4Cgtz",
  636. "dWJfbWVzc2FnZRgBIAEoCzIfLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxU",
  637. "eXBlc0ICKAEigAIKGFRlc3ROZXN0ZWRNZXNzYWdlSGFzQml0cxJaChdvcHRp",
  638. "b25hbF9uZXN0ZWRfbWVzc2FnZRgBIAEoCzI5LnByb3RvYnVmX3VuaXR0ZXN0",
  639. "LlRlc3ROZXN0ZWRNZXNzYWdlSGFzQml0cy5OZXN0ZWRNZXNzYWdlGocBCg1O",
  640. "ZXN0ZWRNZXNzYWdlEiQKHG5lc3RlZG1lc3NhZ2VfcmVwZWF0ZWRfaW50MzIY",
  641. "ASADKAUSUAolbmVzdGVkbWVzc2FnZV9yZXBlYXRlZF9mb3JlaWdubWVzc2Fn",
  642. "ZRgCIAMoCzIhLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25NZXNzYWdlIuUD",
  643. "ChdUZXN0Q2FtZWxDYXNlRmllbGROYW1lcxIWCg5QcmltaXRpdmVGaWVsZBgB",
  644. "IAEoBRITCgtTdHJpbmdGaWVsZBgCIAEoCRIxCglFbnVtRmllbGQYAyABKA4y",
  645. "Hi5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduRW51bRI3CgxNZXNzYWdlRmll",
  646. "bGQYBCABKAsyIS5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduTWVzc2FnZRIc",
  647. "ChBTdHJpbmdQaWVjZUZpZWxkGAUgASgJQgIIAhIVCglDb3JkRmllbGQYBiAB",
  648. "KAlCAggBEh4KFlJlcGVhdGVkUHJpbWl0aXZlRmllbGQYByADKAUSGwoTUmVw",
  649. "ZWF0ZWRTdHJpbmdGaWVsZBgIIAMoCRI5ChFSZXBlYXRlZEVudW1GaWVsZBgJ",
  650. "IAMoDjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25FbnVtEj8KFFJlcGVh",
  651. "dGVkTWVzc2FnZUZpZWxkGAogAygLMiEucHJvdG9idWZfdW5pdHRlc3QuRm9y",
  652. "ZWlnbk1lc3NhZ2USJAoYUmVwZWF0ZWRTdHJpbmdQaWVjZUZpZWxkGAsgAygJ",
  653. "QgIIAhIdChFSZXBlYXRlZENvcmRGaWVsZBgMIAMoCUICCAEi1QEKElRlc3RG",
  654. "aWVsZE9yZGVyaW5ncxIRCglteV9zdHJpbmcYCyABKAkSDgoGbXlfaW50GAEg",
  655. "ASgDEhAKCG15X2Zsb2F0GGUgASgCElUKF29wdGlvbmFsX25lc3RlZF9tZXNz",
  656. "YWdlGMgBIAEoCzIzLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RGaWVsZE9yZGVy",
  657. "aW5ncy5OZXN0ZWRNZXNzYWdlGicKDU5lc3RlZE1lc3NhZ2USCgoCb28YAiAB",
  658. "KAMSCgoCYmIYASABKAUqBAgCEAsqBAgMEGUitgcKGFRlc3RFeHRyZW1lRGVm",
  659. "YXVsdFZhbHVlcxI/Cg1lc2NhcGVkX2J5dGVzGAEgASgMOihcMDAwXDAwMVww",
  660. "MDdcMDEwXDAxNFxuXHJcdFwwMTNcXFwnXCJcMzc2EiAKDGxhcmdlX3VpbnQz",
  661. "MhgCIAEoDToKNDI5NDk2NzI5NRIqCgxsYXJnZV91aW50NjQYAyABKAQ6FDE4",
  662. "NDQ2NzQ0MDczNzA5NTUxNjE1EiAKC3NtYWxsX2ludDMyGAQgASgFOgstMjE0",
  663. "NzQ4MzY0NxIpCgtzbWFsbF9pbnQ2NBgFIAEoAzoULTkyMjMzNzIwMzY4NTQ3",
  664. "NzU4MDcSJwoScmVhbGx5X3NtYWxsX2ludDMyGBUgASgFOgstMjE0NzQ4MzY0",
  665. "OBIwChJyZWFsbHlfc21hbGxfaW50NjQYFiABKAM6FC05MjIzMzcyMDM2ODU0",
  666. "Nzc1ODA4EhgKC3V0Zjhfc3RyaW5nGAYgASgJOgPhiLQSFQoKemVyb19mbG9h",
  667. "dBgHIAEoAjoBMBIUCglvbmVfZmxvYXQYCCABKAI6ATESGAoLc21hbGxfZmxv",
  668. "YXQYCSABKAI6AzEuNRIeChJuZWdhdGl2ZV9vbmVfZmxvYXQYCiABKAI6Ai0x",
  669. "EhwKDm5lZ2F0aXZlX2Zsb2F0GAsgASgCOgQtMS41EhoKC2xhcmdlX2Zsb2F0",
  670. "GAwgASgCOgUyZSswOBIkChRzbWFsbF9uZWdhdGl2ZV9mbG9hdBgNIAEoAjoG",
  671. "LThlLTI4EhcKCmluZl9kb3VibGUYDiABKAE6A2luZhIcCg5uZWdfaW5mX2Rv",
  672. "dWJsZRgPIAEoAToELWluZhIXCgpuYW5fZG91YmxlGBAgASgBOgNuYW4SFgoJ",
  673. "aW5mX2Zsb2F0GBEgASgCOgNpbmYSGwoNbmVnX2luZl9mbG9hdBgSIAEoAjoE",
  674. "LWluZhIWCgluYW5fZmxvYXQYEyABKAI6A25hbhIrCgxjcHBfdHJpZ3JhcGgY",
  675. "FCABKAk6FT8gPyA/PyA/PyA/Pz8gPz8vID8/LRIgChBzdHJpbmdfd2l0aF96",
  676. "ZXJvGBcgASgJOgZoZWwAbG8SIgoPYnl0ZXNfd2l0aF96ZXJvGBggASgMOgl3",
  677. "b3JcMDAwbGQSKAoWc3RyaW5nX3BpZWNlX3dpdGhfemVybxgZIAEoCToEYWIA",
  678. "Y0ICCAISIAoOY29yZF93aXRoX3plcm8YGiABKAk6BDEyADNCAggBEiYKEnJl",
  679. "cGxhY2VtZW50X3N0cmluZxgbIAEoCToKJHt1bmtub3dufSJLChFTcGFyc2VF",
  680. "bnVtTWVzc2FnZRI2CgtzcGFyc2VfZW51bRgBIAEoDjIhLnByb3RvYnVmX3Vu",
  681. "aXR0ZXN0LlRlc3RTcGFyc2VFbnVtIhkKCU9uZVN0cmluZxIMCgRkYXRhGAEg",
  682. "ASgJIhoKCk1vcmVTdHJpbmcSDAoEZGF0YRgBIAMoCSIYCghPbmVCeXRlcxIM",
  683. "CgRkYXRhGAEgASgMIhkKCU1vcmVCeXRlcxIMCgRkYXRhGAEgAygMIhwKDElu",
  684. "dDMyTWVzc2FnZRIMCgRkYXRhGAEgASgFIh0KDVVpbnQzMk1lc3NhZ2USDAoE",
  685. "ZGF0YRgBIAEoDSIcCgxJbnQ2NE1lc3NhZ2USDAoEZGF0YRgBIAEoAyIdCg1V",
  686. "aW50NjRNZXNzYWdlEgwKBGRhdGEYASABKAQiGwoLQm9vbE1lc3NhZ2USDAoE",
  687. "ZGF0YRgBIAEoCCLQAQoJVGVzdE9uZW9mEhEKB2Zvb19pbnQYASABKAVIABIU",
  688. "Cgpmb29fc3RyaW5nGAIgASgJSAASNgoLZm9vX21lc3NhZ2UYAyABKAsyHy5w",
  689. "cm90b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXNIABI5Cghmb29ncm91cBgE",
  690. "IAEoCjIlLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RPbmVvZi5Gb29Hcm91cEgA",
  691. "GiAKCEZvb0dyb3VwEgkKAWEYBSABKAUSCQoBYhgGIAEoCUIFCgNmb28i5wEK",
  692. "HFRlc3RPbmVvZkJhY2t3YXJkc0NvbXBhdGlibGUSDwoHZm9vX2ludBgBIAEo",
  693. "BRISCgpmb29fc3RyaW5nGAIgASgJEjQKC2Zvb19tZXNzYWdlGAMgASgLMh8u",
  694. "cHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzEkoKCGZvb2dyb3VwGAQg",
  695. "ASgKMjgucHJvdG9idWZfdW5pdHRlc3QuVGVzdE9uZW9mQmFja3dhcmRzQ29t",
  696. "cGF0aWJsZS5Gb29Hcm91cBogCghGb29Hcm91cBIJCgFhGAUgASgFEgkKAWIY",
  697. "BiABKAkingYKClRlc3RPbmVvZjISEQoHZm9vX2ludBgBIAEoBUgAEhQKCmZv",
  698. "b19zdHJpbmcYAiABKAlIABIWCghmb29fY29yZBgDIAEoCUICCAFIABIeChBm",
  699. "b29fc3RyaW5nX3BpZWNlGAQgASgJQgIIAkgAEhMKCWZvb19ieXRlcxgFIAEo",
  700. "DEgAEjwKCGZvb19lbnVtGAYgASgOMigucHJvdG9idWZfdW5pdHRlc3QuVGVz",
  701. "dE9uZW9mMi5OZXN0ZWRFbnVtSAASQgoLZm9vX21lc3NhZ2UYByABKAsyKy5w",
  702. "cm90b2J1Zl91bml0dGVzdC5UZXN0T25lb2YyLk5lc3RlZE1lc3NhZ2VIABI6",
  703. "Cghmb29ncm91cBgIIAEoCjImLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RPbmVv",
  704. "ZjIuRm9vR3JvdXBIABJLChBmb29fbGF6eV9tZXNzYWdlGAsgASgLMisucHJv",
  705. "dG9idWZfdW5pdHRlc3QuVGVzdE9uZW9mMi5OZXN0ZWRNZXNzYWdlQgIoAUgA",
  706. "EhQKB2Jhcl9pbnQYDCABKAU6ATVIARIcCgpiYXJfc3RyaW5nGA0gASgJOgZT",
  707. "VFJJTkdIARIcCghiYXJfY29yZBgOIAEoCToEQ09SREICCAFIARImChBiYXJf",
  708. "c3RyaW5nX3BpZWNlGA8gASgJOgZTUElFQ0VCAggCSAESGgoJYmFyX2J5dGVz",
  709. "GBAgASgMOgVCWVRFU0gBEkEKCGJhcl9lbnVtGBEgASgOMigucHJvdG9idWZf",
  710. "dW5pdHRlc3QuVGVzdE9uZW9mMi5OZXN0ZWRFbnVtOgNCQVJIARIPCgdiYXpf",
  711. "aW50GBIgASgFEhcKCmJhel9zdHJpbmcYEyABKAk6A0JBWhogCghGb29Hcm91",
  712. "cBIJCgFhGAkgASgFEgkKAWIYCiABKAkaMwoNTmVzdGVkTWVzc2FnZRIPCgdx",
  713. "dXhfaW50GAEgASgDEhEKCWNvcmdlX2ludBgCIAMoBSInCgpOZXN0ZWRFbnVt",
  714. "EgcKA0ZPTxABEgcKA0JBUhACEgcKA0JBWhADQgUKA2Zvb0IFCgNiYXIiuAEK",
  715. "EVRlc3RSZXF1aXJlZE9uZW9mEhEKB2Zvb19pbnQYASABKAVIABIUCgpmb29f",
  716. "c3RyaW5nGAIgASgJSAASSQoLZm9vX21lc3NhZ2UYAyABKAsyMi5wcm90b2J1",
  717. "Zl91bml0dGVzdC5UZXN0UmVxdWlyZWRPbmVvZi5OZXN0ZWRNZXNzYWdlSAAa",
  718. "KAoNTmVzdGVkTWVzc2FnZRIXCg9yZXF1aXJlZF9kb3VibGUYASACKAFCBQoD",
  719. "Zm9vIqoDCg9UZXN0UGFja2VkVHlwZXMSGAoMcGFja2VkX2ludDMyGFogAygF",
  720. "QgIQARIYCgxwYWNrZWRfaW50NjQYWyADKANCAhABEhkKDXBhY2tlZF91aW50",
  721. "MzIYXCADKA1CAhABEhkKDXBhY2tlZF91aW50NjQYXSADKARCAhABEhkKDXBh",
  722. "Y2tlZF9zaW50MzIYXiADKBFCAhABEhkKDXBhY2tlZF9zaW50NjQYXyADKBJC",
  723. "AhABEhoKDnBhY2tlZF9maXhlZDMyGGAgAygHQgIQARIaCg5wYWNrZWRfZml4",
  724. "ZWQ2NBhhIAMoBkICEAESGwoPcGFja2VkX3NmaXhlZDMyGGIgAygPQgIQARIb",
  725. "Cg9wYWNrZWRfc2ZpeGVkNjQYYyADKBBCAhABEhgKDHBhY2tlZF9mbG9hdBhk",
  726. "IAMoAkICEAESGQoNcGFja2VkX2RvdWJsZRhlIAMoAUICEAESFwoLcGFja2Vk",
  727. "X2Jvb2wYZiADKAhCAhABEjcKC3BhY2tlZF9lbnVtGGcgAygOMh4ucHJvdG9i",
  728. "dWZfdW5pdHRlc3QuRm9yZWlnbkVudW1CAhABIsgDChFUZXN0VW5wYWNrZWRU",
  729. "eXBlcxIaCg51bnBhY2tlZF9pbnQzMhhaIAMoBUICEAASGgoOdW5wYWNrZWRf",
  730. "aW50NjQYWyADKANCAhAAEhsKD3VucGFja2VkX3VpbnQzMhhcIAMoDUICEAAS",
  731. "GwoPdW5wYWNrZWRfdWludDY0GF0gAygEQgIQABIbCg91bnBhY2tlZF9zaW50",
  732. "MzIYXiADKBFCAhAAEhsKD3VucGFja2VkX3NpbnQ2NBhfIAMoEkICEAASHAoQ",
  733. "dW5wYWNrZWRfZml4ZWQzMhhgIAMoB0ICEAASHAoQdW5wYWNrZWRfZml4ZWQ2",
  734. "NBhhIAMoBkICEAASHQoRdW5wYWNrZWRfc2ZpeGVkMzIYYiADKA9CAhAAEh0K",
  735. "EXVucGFja2VkX3NmaXhlZDY0GGMgAygQQgIQABIaCg51bnBhY2tlZF9mbG9h",
  736. "dBhkIAMoAkICEAASGwoPdW5wYWNrZWRfZG91YmxlGGUgAygBQgIQABIZCg11",
  737. "bnBhY2tlZF9ib29sGGYgAygIQgIQABI5Cg11bnBhY2tlZF9lbnVtGGcgAygO",
  738. "Mh4ucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbkVudW1CAhAAIiAKFFRlc3RQ",
  739. "YWNrZWRFeHRlbnNpb25zKggIARCAgICAAiIiChZUZXN0VW5wYWNrZWRFeHRl",
  740. "bnNpb25zKggIARCAgICAAiKZBAoVVGVzdER5bmFtaWNFeHRlbnNpb25zEhkK",
  741. "EHNjYWxhcl9leHRlbnNpb24Y0A8gASgHEjcKDmVudW1fZXh0ZW5zaW9uGNEP",
  742. "IAEoDjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25FbnVtElkKFmR5bmFt",
  743. "aWNfZW51bV9leHRlbnNpb24Y0g8gASgOMjgucHJvdG9idWZfdW5pdHRlc3Qu",
  744. "VGVzdER5bmFtaWNFeHRlbnNpb25zLkR5bmFtaWNFbnVtVHlwZRI9ChFtZXNz",
  745. "YWdlX2V4dGVuc2lvbhjTDyABKAsyIS5wcm90b2J1Zl91bml0dGVzdC5Gb3Jl",
  746. "aWduTWVzc2FnZRJfChlkeW5hbWljX21lc3NhZ2VfZXh0ZW5zaW9uGNQPIAEo",
  747. "CzI7LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3REeW5hbWljRXh0ZW5zaW9ucy5E",
  748. "eW5hbWljTWVzc2FnZVR5cGUSGwoScmVwZWF0ZWRfZXh0ZW5zaW9uGNUPIAMo",
  749. "CRIdChBwYWNrZWRfZXh0ZW5zaW9uGNYPIAMoEUICEAEaLAoSRHluYW1pY01l",
  750. "c3NhZ2VUeXBlEhYKDWR5bmFtaWNfZmllbGQYtBAgASgFIkcKD0R5bmFtaWNF",
  751. "bnVtVHlwZRIQCgtEWU5BTUlDX0ZPTxCYERIQCgtEWU5BTUlDX0JBUhCZERIQ",
  752. "CgtEWU5BTUlDX0JBWhCaESLAAQojVGVzdFJlcGVhdGVkU2NhbGFyRGlmZmVy",
  753. "ZW50VGFnU2l6ZXMSGAoQcmVwZWF0ZWRfZml4ZWQzMhgMIAMoBxIWCg5yZXBl",
  754. "YXRlZF9pbnQzMhgNIAMoBRIZChByZXBlYXRlZF9maXhlZDY0GP4PIAMoBhIX",
  755. "Cg5yZXBlYXRlZF9pbnQ2NBj/DyADKAMSGAoOcmVwZWF0ZWRfZmxvYXQY/v8P",
  756. "IAMoAhIZCg9yZXBlYXRlZF91aW50NjQY//8PIAMoBCL3CQoQVGVzdFBhcnNp",
  757. "bmdNZXJnZRI7ChJyZXF1aXJlZF9hbGxfdHlwZXMYASACKAsyHy5wcm90b2J1",
  758. "Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMSOwoSb3B0aW9uYWxfYWxsX3R5cGVz",
  759. "GAIgASgLMh8ucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzEjsKEnJl",
  760. "cGVhdGVkX2FsbF90eXBlcxgDIAMoCzIfLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
  761. "c3RBbGxUeXBlcxJICg1vcHRpb25hbGdyb3VwGAogASgKMjEucHJvdG9idWZf",
  762. "dW5pdHRlc3QuVGVzdFBhcnNpbmdNZXJnZS5PcHRpb25hbEdyb3VwEkgKDXJl",
  763. "cGVhdGVkZ3JvdXAYFCADKAoyMS5wcm90b2J1Zl91bml0dGVzdC5UZXN0UGFy",
  764. "c2luZ01lcmdlLlJlcGVhdGVkR3JvdXAaqgQKF1JlcGVhdGVkRmllbGRzR2Vu",
  765. "ZXJhdG9yEi8KBmZpZWxkMRgBIAMoCzIfLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
  766. "c3RBbGxUeXBlcxIvCgZmaWVsZDIYAiADKAsyHy5wcm90b2J1Zl91bml0dGVz",
  767. "dC5UZXN0QWxsVHlwZXMSLwoGZmllbGQzGAMgAygLMh8ucHJvdG9idWZfdW5p",
  768. "dHRlc3QuVGVzdEFsbFR5cGVzElIKBmdyb3VwMRgKIAMoCjJCLnByb3RvYnVm",
  769. "X3VuaXR0ZXN0LlRlc3RQYXJzaW5nTWVyZ2UuUmVwZWF0ZWRGaWVsZHNHZW5l",
  770. "cmF0b3IuR3JvdXAxElIKBmdyb3VwMhgUIAMoCjJCLnByb3RvYnVmX3VuaXR0",
  771. "ZXN0LlRlc3RQYXJzaW5nTWVyZ2UuUmVwZWF0ZWRGaWVsZHNHZW5lcmF0b3Iu",
  772. "R3JvdXAyEi4KBGV4dDEY6AcgAygLMh8ucHJvdG9idWZfdW5pdHRlc3QuVGVz",
  773. "dEFsbFR5cGVzEi4KBGV4dDIY6QcgAygLMh8ucHJvdG9idWZfdW5pdHRlc3Qu",
  774. "VGVzdEFsbFR5cGVzGjkKBkdyb3VwMRIvCgZmaWVsZDEYCyABKAsyHy5wcm90",
  775. "b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMaOQoGR3JvdXAyEi8KBmZpZWxk",
  776. "MRgVIAEoCzIfLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcxpSCg1P",
  777. "cHRpb25hbEdyb3VwEkEKGG9wdGlvbmFsX2dyb3VwX2FsbF90eXBlcxgLIAEo",
  778. "CzIfLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcxpSCg1SZXBlYXRl",
  779. "ZEdyb3VwEkEKGHJlcGVhdGVkX2dyb3VwX2FsbF90eXBlcxgVIAEoCzIfLnBy",
  780. "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcyoJCOgHEICAgIACMlsKDG9w",
  781. "dGlvbmFsX2V4dBIjLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RQYXJzaW5nTWVy",
  782. "Z2UY6AcgASgLMh8ucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzMlsK",
  783. "DHJlcGVhdGVkX2V4dBIjLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RQYXJzaW5n",
  784. "TWVyZ2UY6QcgAygLMh8ucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVz",
  785. "IkQKG1Rlc3RDb21tZW50SW5qZWN0aW9uTWVzc2FnZRIlCgFhGAEgASgJOhoq",
  786. "LyA8LSBOZWl0aGVyIHNob3VsZCB0aGlzLiIMCgpGb29SZXF1ZXN0Ig0KC0Zv",
  787. "b1Jlc3BvbnNlIhIKEEZvb0NsaWVudE1lc3NhZ2UiEgoQRm9vU2VydmVyTWVz",
  788. "c2FnZSIMCgpCYXJSZXF1ZXN0Ig0KC0JhclJlc3BvbnNlKkAKC0ZvcmVpZ25F",
  789. "bnVtEg8KC0ZPUkVJR05fRk9PEAQSDwoLRk9SRUlHTl9CQVIQBRIPCgtGT1JF",
  790. "SUdOX0JBWhAGKksKFFRlc3RFbnVtV2l0aER1cFZhbHVlEggKBEZPTzEQARII",
  791. "CgRCQVIxEAISBwoDQkFaEAMSCAoERk9PMhABEggKBEJBUjIQAhoCEAEqiQEK",
  792. "DlRlc3RTcGFyc2VFbnVtEgwKCFNQQVJTRV9BEHsSDgoIU1BBUlNFX0IQpucD",
  793. "Eg8KCFNQQVJTRV9DELKxgAYSFQoIU1BBUlNFX0QQ8f//////////ARIVCghT",
  794. "UEFSU0VfRRC03vz///////8BEgwKCFNQQVJTRV9GEAASDAoIU1BBUlNFX0cQ",
  795. "AjKZAQoLVGVzdFNlcnZpY2USRAoDRm9vEh0ucHJvdG9idWZfdW5pdHRlc3Qu",
  796. "Rm9vUmVxdWVzdBoeLnByb3RvYnVmX3VuaXR0ZXN0LkZvb1Jlc3BvbnNlEkQK",
  797. "A0JhchIdLnByb3RvYnVmX3VuaXR0ZXN0LkJhclJlcXVlc3QaHi5wcm90b2J1",
  798. "Zl91bml0dGVzdC5CYXJSZXNwb25zZTpGChhvcHRpb25hbF9pbnQzMl9leHRl",
  799. "bnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgB",
  800. "IAEoBTpGChhvcHRpb25hbF9pbnQ2NF9leHRlbnNpb24SJC5wcm90b2J1Zl91",
  801. "bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgCIAEoAzpHChlvcHRpb25hbF91",
  802. "aW50MzJfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4",
  803. "dGVuc2lvbnMYAyABKA06RwoZb3B0aW9uYWxfdWludDY0X2V4dGVuc2lvbhIk",
  804. "LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGAQgASgEOkcK",
  805. "GW9wdGlvbmFsX3NpbnQzMl9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVz",
  806. "dC5UZXN0QWxsRXh0ZW5zaW9ucxgFIAEoETpHChlvcHRpb25hbF9zaW50NjRf",
  807. "ZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lv",
  808. "bnMYBiABKBI6SAoab3B0aW9uYWxfZml4ZWQzMl9leHRlbnNpb24SJC5wcm90",
  809. "b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgHIAEoBzpIChpvcHRp",
  810. "b25hbF9maXhlZDY0X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
  811. "c3RBbGxFeHRlbnNpb25zGAggASgGOkkKG29wdGlvbmFsX3NmaXhlZDMyX2V4",
  812. "dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25z",
  813. "GAkgASgPOkkKG29wdGlvbmFsX3NmaXhlZDY0X2V4dGVuc2lvbhIkLnByb3Rv",
  814. "YnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGAogASgQOkYKGG9wdGlv",
  815. "bmFsX2Zsb2F0X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB",
  816. "bGxFeHRlbnNpb25zGAsgASgCOkcKGW9wdGlvbmFsX2RvdWJsZV9leHRlbnNp",
  817. "b24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgMIAEo",
  818. "ATpFChdvcHRpb25hbF9ib29sX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0",
  819. "ZXN0LlRlc3RBbGxFeHRlbnNpb25zGA0gASgIOkcKGW9wdGlvbmFsX3N0cmlu",
  820. "Z19leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5z",
  821. "aW9ucxgOIAEoCTpGChhvcHRpb25hbF9ieXRlc19leHRlbnNpb24SJC5wcm90",
  822. "b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgPIAEoDDpxChdvcHRp",
  823. "b25hbGdyb3VwX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB",
  824. "bGxFeHRlbnNpb25zGBAgASgKMioucHJvdG9idWZfdW5pdHRlc3QuT3B0aW9u",
  825. "YWxHcm91cF9leHRlbnNpb246fgohb3B0aW9uYWxfbmVzdGVkX21lc3NhZ2Vf",
  826. "ZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lv",
  827. "bnMYEiABKAsyLS5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVz",
  828. "dGVkTWVzc2FnZTpzCiJvcHRpb25hbF9mb3JlaWduX21lc3NhZ2VfZXh0ZW5z",
  829. "aW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYEyAB",
  830. "KAsyIS5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduTWVzc2FnZTp4CiFvcHRp",
  831. "b25hbF9pbXBvcnRfbWVzc2FnZV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0",
  832. "dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgUIAEoCzInLnByb3RvYnVmX3VuaXR0",
  833. "ZXN0X2ltcG9ydC5JbXBvcnRNZXNzYWdlOngKHm9wdGlvbmFsX25lc3RlZF9l",
  834. "bnVtX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRl",
  835. "bnNpb25zGBUgASgOMioucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVz",
  836. "Lk5lc3RlZEVudW06bQofb3B0aW9uYWxfZm9yZWlnbl9lbnVtX2V4dGVuc2lv",
  837. "bhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGBYgASgO",
  838. "Mh4ucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbkVudW06cgoeb3B0aW9uYWxf",
  839. "aW1wb3J0X2VudW1fZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVz",
  840. "dEFsbEV4dGVuc2lvbnMYFyABKA4yJC5wcm90b2J1Zl91bml0dGVzdF9pbXBv",
  841. "cnQuSW1wb3J0RW51bTpRCh9vcHRpb25hbF9zdHJpbmdfcGllY2VfZXh0ZW5z",
  842. "aW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYGCAB",
  843. "KAlCAggCOkkKF29wdGlvbmFsX2NvcmRfZXh0ZW5zaW9uEiQucHJvdG9idWZf",
  844. "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYGSABKAlCAggBOoUBCihvcHRp",
  845. "b25hbF9wdWJsaWNfaW1wb3J0X21lc3NhZ2VfZXh0ZW5zaW9uEiQucHJvdG9i",
  846. "dWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYGiABKAsyLS5wcm90b2J1",
  847. "Zl91bml0dGVzdF9pbXBvcnQuUHVibGljSW1wb3J0TWVzc2FnZTqAAQofb3B0",
  848. "aW9uYWxfbGF6eV9tZXNzYWdlX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0",
  849. "ZXN0LlRlc3RBbGxFeHRlbnNpb25zGBsgASgLMi0ucHJvdG9idWZfdW5pdHRl",
  850. "c3QuVGVzdEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2VCAigBOkYKGHJlcGVhdGVk",
  851. "X2ludDMyX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxF",
  852. "eHRlbnNpb25zGB8gAygFOkYKGHJlcGVhdGVkX2ludDY0X2V4dGVuc2lvbhIk",
  853. "LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGCAgAygDOkcK",
  854. "GXJlcGVhdGVkX3VpbnQzMl9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVz",
  855. "dC5UZXN0QWxsRXh0ZW5zaW9ucxghIAMoDTpHChlyZXBlYXRlZF91aW50NjRf",
  856. "ZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lv",
  857. "bnMYIiADKAQ6RwoZcmVwZWF0ZWRfc2ludDMyX2V4dGVuc2lvbhIkLnByb3Rv",
  858. "YnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGCMgAygROkcKGXJlcGVh",
  859. "dGVkX3NpbnQ2NF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0",
  860. "QWxsRXh0ZW5zaW9ucxgkIAMoEjpIChpyZXBlYXRlZF9maXhlZDMyX2V4dGVu",
  861. "c2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGCUg",
  862. "AygHOkgKGnJlcGVhdGVkX2ZpeGVkNjRfZXh0ZW5zaW9uEiQucHJvdG9idWZf",
  863. "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYJiADKAY6SQobcmVwZWF0ZWRf",
  864. "c2ZpeGVkMzJfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFs",
  865. "bEV4dGVuc2lvbnMYJyADKA86SQobcmVwZWF0ZWRfc2ZpeGVkNjRfZXh0ZW5z",
  866. "aW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYKCAD",
  867. "KBA6RgoYcmVwZWF0ZWRfZmxvYXRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5p",
  868. "dHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYKSADKAI6RwoZcmVwZWF0ZWRfZG91",
  869. "YmxlX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRl",
  870. "bnNpb25zGCogAygBOkUKF3JlcGVhdGVkX2Jvb2xfZXh0ZW5zaW9uEiQucHJv",
  871. "dG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYKyADKAg6RwoZcmVw",
  872. "ZWF0ZWRfc3RyaW5nX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
  873. "c3RBbGxFeHRlbnNpb25zGCwgAygJOkYKGHJlcGVhdGVkX2J5dGVzX2V4dGVu",
  874. "c2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGC0g",
  875. "AygMOnEKF3JlcGVhdGVkZ3JvdXBfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5p",
  876. "dHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYLiADKAoyKi5wcm90b2J1Zl91bml0",
  877. "dGVzdC5SZXBlYXRlZEdyb3VwX2V4dGVuc2lvbjp+CiFyZXBlYXRlZF9uZXN0",
  878. "ZWRfbWVzc2FnZV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0",
  879. "QWxsRXh0ZW5zaW9ucxgwIAMoCzItLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB",
  880. "bGxUeXBlcy5OZXN0ZWRNZXNzYWdlOnMKInJlcGVhdGVkX2ZvcmVpZ25fbWVz",
  881. "c2FnZV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0",
  882. "ZW5zaW9ucxgxIAMoCzIhLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25NZXNz",
  883. "YWdlOngKIXJlcGVhdGVkX2ltcG9ydF9tZXNzYWdlX2V4dGVuc2lvbhIkLnBy",
  884. "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGDIgAygLMicucHJv",
  885. "dG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9ydE1lc3NhZ2U6eAoecmVwZWF0",
  886. "ZWRfbmVzdGVkX2VudW1fZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3Qu",
  887. "VGVzdEFsbEV4dGVuc2lvbnMYMyADKA4yKi5wcm90b2J1Zl91bml0dGVzdC5U",
  888. "ZXN0QWxsVHlwZXMuTmVzdGVkRW51bTptCh9yZXBlYXRlZF9mb3JlaWduX2Vu",
  889. "dW1fZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVu",
  890. "c2lvbnMYNCADKA4yHi5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduRW51bTpy",
  891. "Ch5yZXBlYXRlZF9pbXBvcnRfZW51bV9leHRlbnNpb24SJC5wcm90b2J1Zl91",
  892. "bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxg1IAMoDjIkLnByb3RvYnVmX3Vu",
  893. "aXR0ZXN0X2ltcG9ydC5JbXBvcnRFbnVtOlEKH3JlcGVhdGVkX3N0cmluZ19w",
  894. "aWVjZV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0",
  895. "ZW5zaW9ucxg2IAMoCUICCAI6SQoXcmVwZWF0ZWRfY29yZF9leHRlbnNpb24S",
  896. "JC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxg3IAMoCUIC",
  897. "CAE6gAEKH3JlcGVhdGVkX2xhenlfbWVzc2FnZV9leHRlbnNpb24SJC5wcm90",
  898. "b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxg5IAMoCzItLnByb3Rv",
  899. "YnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlQgIoATpJ",
  900. "ChdkZWZhdWx0X2ludDMyX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0",
  901. "LlRlc3RBbGxFeHRlbnNpb25zGD0gASgFOgI0MTpJChdkZWZhdWx0X2ludDY0",
  902. "X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNp",
  903. "b25zGD4gASgDOgI0MjpKChhkZWZhdWx0X3VpbnQzMl9leHRlbnNpb24SJC5w",
  904. "cm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxg/IAEoDToCNDM6",
  905. "SgoYZGVmYXVsdF91aW50NjRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRl",
  906. "c3QuVGVzdEFsbEV4dGVuc2lvbnMYQCABKAQ6AjQ0OksKGGRlZmF1bHRfc2lu",
  907. "dDMyX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRl",
  908. "bnNpb25zGEEgASgROgMtNDU6SgoYZGVmYXVsdF9zaW50NjRfZXh0ZW5zaW9u",
  909. "EiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYQiABKBI6",
  910. "AjQ2OksKGWRlZmF1bHRfZml4ZWQzMl9leHRlbnNpb24SJC5wcm90b2J1Zl91",
  911. "bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhDIAEoBzoCNDc6SwoZZGVmYXVs",
  912. "dF9maXhlZDY0X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB",
  913. "bGxFeHRlbnNpb25zGEQgASgGOgI0ODpMChpkZWZhdWx0X3NmaXhlZDMyX2V4",
  914. "dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25z",
  915. "GEUgASgPOgI0OTpNChpkZWZhdWx0X3NmaXhlZDY0X2V4dGVuc2lvbhIkLnBy",
  916. "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGEYgASgQOgMtNTA6",
  917. "SwoXZGVmYXVsdF9mbG9hdF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVz",
  918. "dC5UZXN0QWxsRXh0ZW5zaW9ucxhHIAEoAjoENTEuNTpNChhkZWZhdWx0X2Rv",
  919. "dWJsZV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0",
  920. "ZW5zaW9ucxhIIAEoAToFNTIwMDA6SgoWZGVmYXVsdF9ib29sX2V4dGVuc2lv",
  921. "bhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGEkgASgI",
  922. "OgR0cnVlOk0KGGRlZmF1bHRfc3RyaW5nX2V4dGVuc2lvbhIkLnByb3RvYnVm",
  923. "X3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGEogASgJOgVoZWxsbzpMChdk",
  924. "ZWZhdWx0X2J5dGVzX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
  925. "c3RBbGxFeHRlbnNpb25zGEsgASgMOgV3b3JsZDp8Ch1kZWZhdWx0X25lc3Rl",
  926. "ZF9lbnVtX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxF",
  927. "eHRlbnNpb25zGFEgASgOMioucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5",
  928. "cGVzLk5lc3RlZEVudW06A0JBUjp5Ch5kZWZhdWx0X2ZvcmVpZ25fZW51bV9l",
  929. "eHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9u",
  930. "cxhSIAEoDjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25FbnVtOgtGT1JF",
  931. "SUdOX0JBUjp9Ch1kZWZhdWx0X2ltcG9ydF9lbnVtX2V4dGVuc2lvbhIkLnBy",
  932. "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGFMgASgOMiQucHJv",
  933. "dG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9ydEVudW06CklNUE9SVF9CQVI6",
  934. "VQoeZGVmYXVsdF9zdHJpbmdfcGllY2VfZXh0ZW5zaW9uEiQucHJvdG9idWZf",
  935. "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYVCABKAk6A2FiY0ICCAI6TQoW",
  936. "ZGVmYXVsdF9jb3JkX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
  937. "c3RBbGxFeHRlbnNpb25zGFUgASgJOgMxMjNCAggBOkQKFm9uZW9mX3VpbnQz",
  938. "Ml9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5z",
  939. "aW9ucxhvIAEoDTp7Ch5vbmVvZl9uZXN0ZWRfbWVzc2FnZV9leHRlbnNpb24S",
  940. "JC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhwIAEoCzIt",
  941. "LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdl",
  942. "OkQKFm9uZW9mX3N0cmluZ19leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVz",
  943. "dC5UZXN0QWxsRXh0ZW5zaW9ucxhxIAEoCTpDChVvbmVvZl9ieXRlc19leHRl",
  944. "bnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhy",
  945. "IAEoDDpCChNteV9leHRlbnNpb25fc3RyaW5nEiUucHJvdG9idWZfdW5pdHRl",
  946. "c3QuVGVzdEZpZWxkT3JkZXJpbmdzGDIgASgJOj8KEG15X2V4dGVuc2lvbl9p",
  947. "bnQSJS5wcm90b2J1Zl91bml0dGVzdC5UZXN0RmllbGRPcmRlcmluZ3MYBSAB",
  948. "KAU6SwoWcGFja2VkX2ludDMyX2V4dGVuc2lvbhInLnByb3RvYnVmX3VuaXR0",
  949. "ZXN0LlRlc3RQYWNrZWRFeHRlbnNpb25zGFogAygFQgIQATpLChZwYWNrZWRf",
  950. "aW50NjRfZXh0ZW5zaW9uEicucHJvdG9idWZfdW5pdHRlc3QuVGVzdFBhY2tl",
  951. "ZEV4dGVuc2lvbnMYWyADKANCAhABOkwKF3BhY2tlZF91aW50MzJfZXh0ZW5z",
  952. "aW9uEicucHJvdG9idWZfdW5pdHRlc3QuVGVzdFBhY2tlZEV4dGVuc2lvbnMY",
  953. "XCADKA1CAhABOkwKF3BhY2tlZF91aW50NjRfZXh0ZW5zaW9uEicucHJvdG9i",
  954. "dWZfdW5pdHRlc3QuVGVzdFBhY2tlZEV4dGVuc2lvbnMYXSADKARCAhABOkwK",
  955. "F3BhY2tlZF9zaW50MzJfZXh0ZW5zaW9uEicucHJvdG9idWZfdW5pdHRlc3Qu",
  956. "VGVzdFBhY2tlZEV4dGVuc2lvbnMYXiADKBFCAhABOkwKF3BhY2tlZF9zaW50",
  957. "NjRfZXh0ZW5zaW9uEicucHJvdG9idWZfdW5pdHRlc3QuVGVzdFBhY2tlZEV4",
  958. "dGVuc2lvbnMYXyADKBJCAhABOk0KGHBhY2tlZF9maXhlZDMyX2V4dGVuc2lv",
  959. "bhInLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RQYWNrZWRFeHRlbnNpb25zGGAg",
  960. "AygHQgIQATpNChhwYWNrZWRfZml4ZWQ2NF9leHRlbnNpb24SJy5wcm90b2J1",
  961. "Zl91bml0dGVzdC5UZXN0UGFja2VkRXh0ZW5zaW9ucxhhIAMoBkICEAE6TgoZ",
  962. "cGFja2VkX3NmaXhlZDMyX2V4dGVuc2lvbhInLnByb3RvYnVmX3VuaXR0ZXN0",
  963. "LlRlc3RQYWNrZWRFeHRlbnNpb25zGGIgAygPQgIQATpOChlwYWNrZWRfc2Zp",
  964. "eGVkNjRfZXh0ZW5zaW9uEicucHJvdG9idWZfdW5pdHRlc3QuVGVzdFBhY2tl",
  965. "ZEV4dGVuc2lvbnMYYyADKBBCAhABOksKFnBhY2tlZF9mbG9hdF9leHRlbnNp",
  966. "b24SJy5wcm90b2J1Zl91bml0dGVzdC5UZXN0UGFja2VkRXh0ZW5zaW9ucxhk",
  967. "IAMoAkICEAE6TAoXcGFja2VkX2RvdWJsZV9leHRlbnNpb24SJy5wcm90b2J1",
  968. "Zl91bml0dGVzdC5UZXN0UGFja2VkRXh0ZW5zaW9ucxhlIAMoAUICEAE6SgoV",
  969. "cGFja2VkX2Jvb2xfZXh0ZW5zaW9uEicucHJvdG9idWZfdW5pdHRlc3QuVGVz",
  970. "dFBhY2tlZEV4dGVuc2lvbnMYZiADKAhCAhABOmoKFXBhY2tlZF9lbnVtX2V4",
  971. "dGVuc2lvbhInLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RQYWNrZWRFeHRlbnNp",
  972. "b25zGGcgAygOMh4ucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbkVudW1CAhAB",
  973. "Ok8KGHVucGFja2VkX2ludDMyX2V4dGVuc2lvbhIpLnByb3RvYnVmX3VuaXR0",
  974. "ZXN0LlRlc3RVbnBhY2tlZEV4dGVuc2lvbnMYWiADKAVCAhAAOk8KGHVucGFj",
  975. "a2VkX2ludDY0X2V4dGVuc2lvbhIpLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RV",
  976. "bnBhY2tlZEV4dGVuc2lvbnMYWyADKANCAhAAOlAKGXVucGFja2VkX3VpbnQz",
  977. "Ml9leHRlbnNpb24SKS5wcm90b2J1Zl91bml0dGVzdC5UZXN0VW5wYWNrZWRF",
  978. "eHRlbnNpb25zGFwgAygNQgIQADpQChl1bnBhY2tlZF91aW50NjRfZXh0ZW5z",
  979. "aW9uEikucHJvdG9idWZfdW5pdHRlc3QuVGVzdFVucGFja2VkRXh0ZW5zaW9u",
  980. "cxhdIAMoBEICEAA6UAoZdW5wYWNrZWRfc2ludDMyX2V4dGVuc2lvbhIpLnBy",
  981. "b3RvYnVmX3VuaXR0ZXN0LlRlc3RVbnBhY2tlZEV4dGVuc2lvbnMYXiADKBFC",
  982. "AhAAOlAKGXVucGFja2VkX3NpbnQ2NF9leHRlbnNpb24SKS5wcm90b2J1Zl91",
  983. "bml0dGVzdC5UZXN0VW5wYWNrZWRFeHRlbnNpb25zGF8gAygSQgIQADpRChp1",
  984. "bnBhY2tlZF9maXhlZDMyX2V4dGVuc2lvbhIpLnByb3RvYnVmX3VuaXR0ZXN0",
  985. "LlRlc3RVbnBhY2tlZEV4dGVuc2lvbnMYYCADKAdCAhAAOlEKGnVucGFja2Vk",
  986. "X2ZpeGVkNjRfZXh0ZW5zaW9uEikucHJvdG9idWZfdW5pdHRlc3QuVGVzdFVu",
  987. "cGFja2VkRXh0ZW5zaW9ucxhhIAMoBkICEAA6UgobdW5wYWNrZWRfc2ZpeGVk",
  988. "MzJfZXh0ZW5zaW9uEikucHJvdG9idWZfdW5pdHRlc3QuVGVzdFVucGFja2Vk",
  989. "RXh0ZW5zaW9ucxhiIAMoD0ICEAA6UgobdW5wYWNrZWRfc2ZpeGVkNjRfZXh0",
  990. "ZW5zaW9uEikucHJvdG9idWZfdW5pdHRlc3QuVGVzdFVucGFja2VkRXh0ZW5z",
  991. "aW9ucxhjIAMoEEICEAA6TwoYdW5wYWNrZWRfZmxvYXRfZXh0ZW5zaW9uEiku",
  992. "cHJvdG9idWZfdW5pdHRlc3QuVGVzdFVucGFja2VkRXh0ZW5zaW9ucxhkIAMo",
  993. "AkICEAA6UAoZdW5wYWNrZWRfZG91YmxlX2V4dGVuc2lvbhIpLnByb3RvYnVm",
  994. "X3VuaXR0ZXN0LlRlc3RVbnBhY2tlZEV4dGVuc2lvbnMYZSADKAFCAhAAOk4K",
  995. "F3VucGFja2VkX2Jvb2xfZXh0ZW5zaW9uEikucHJvdG9idWZfdW5pdHRlc3Qu",
  996. "VGVzdFVucGFja2VkRXh0ZW5zaW9ucxhmIAMoCEICEAA6bgoXdW5wYWNrZWRf",
  997. "ZW51bV9leHRlbnNpb24SKS5wcm90b2J1Zl91bml0dGVzdC5UZXN0VW5wYWNr",
  998. "ZWRFeHRlbnNpb25zGGcgAygOMh4ucHJvdG9idWZfdW5pdHRlc3QuRm9yZWln",
  999. "bkVudW1CAhAAQkFCDVVuaXR0ZXN0UHJvdG9IAYABAYgBAZABAfgBAaoCIUdv",
  1000. "b2dsZS5Qcm90b2NvbEJ1ZmZlcnMuVGVzdFByb3Rvcw=="));
  1001. pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
  1002. descriptor = root;
  1003. internal__static_protobuf_unittest_TestAllTypes__Descriptor = Descriptor.MessageTypes[0];
  1004. internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable =
  1005. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder>(internal__static_protobuf_unittest_TestAllTypes__Descriptor,
  1006. 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", "OptionalPublicImportMessage", "OptionalLazyMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedGroup", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedStringPiece", "RepeatedCord", "RepeatedLazyMessage", "DefaultInt32", "DefaultInt64", "DefaultUint32", "DefaultUint64", "DefaultSint32", "DefaultSint64", "DefaultFixed32", "DefaultFixed64", "DefaultSfixed32", "DefaultSfixed64", "DefaultFloat", "DefaultDouble", "DefaultBool", "DefaultString", "DefaultBytes", "DefaultNestedEnum", "DefaultForeignEnum", "DefaultImportEnum", "DefaultStringPiece", "DefaultCord", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", });
  1007. internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[0];
  1008. internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable =
  1009. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor,
  1010. new string[] { "Bb", });
  1011. internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[1];
  1012. internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable =
  1013. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder>(internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor,
  1014. new string[] { "A", });
  1015. internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[2];
  1016. internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable =
  1017. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder>(internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor,
  1018. new string[] { "A", });
  1019. internal__static_protobuf_unittest_NestedTestAllTypes__Descriptor = Descriptor.MessageTypes[1];
  1020. internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable =
  1021. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes, global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.Builder>(internal__static_protobuf_unittest_NestedTestAllTypes__Descriptor,
  1022. new string[] { "Child", "Payload", });
  1023. internal__static_protobuf_unittest_TestDeprecatedFields__Descriptor = Descriptor.MessageTypes[2];
  1024. internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable =
  1025. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields, global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.Builder>(internal__static_protobuf_unittest_TestDeprecatedFields__Descriptor,
  1026. new string[] { "DeprecatedInt32", });
  1027. internal__static_protobuf_unittest_ForeignMessage__Descriptor = Descriptor.MessageTypes[3];
  1028. internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable =
  1029. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder>(internal__static_protobuf_unittest_ForeignMessage__Descriptor,
  1030. new string[] { "C", });
  1031. internal__static_protobuf_unittest_TestAllExtensions__Descriptor = Descriptor.MessageTypes[4];
  1032. internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable =
  1033. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder>(internal__static_protobuf_unittest_TestAllExtensions__Descriptor,
  1034. new string[] { });
  1035. internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor = Descriptor.MessageTypes[5];
  1036. internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable =
  1037. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Builder>(internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor,
  1038. new string[] { "A", });
  1039. internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor = Descriptor.MessageTypes[6];
  1040. internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable =
  1041. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Builder>(internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor,
  1042. new string[] { "A", });
  1043. internal__static_protobuf_unittest_TestNestedExtension__Descriptor = Descriptor.MessageTypes[7];
  1044. internal__static_protobuf_unittest_TestNestedExtension__FieldAccessorTable =
  1045. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedExtension, global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Builder>(internal__static_protobuf_unittest_TestNestedExtension__Descriptor,
  1046. new string[] { });
  1047. global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Test = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Descriptor.Extensions[0]);
  1048. global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.NestedStringExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Descriptor.Extensions[1]);
  1049. internal__static_protobuf_unittest_TestRequired__Descriptor = Descriptor.MessageTypes[8];
  1050. internal__static_protobuf_unittest_TestRequired__FieldAccessorTable =
  1051. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequired, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder>(internal__static_protobuf_unittest_TestRequired__Descriptor,
  1052. 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", });
  1053. global::Google.ProtocolBuffers.TestProtos.TestRequired.Single = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.TestRequired.Descriptor.Extensions[0]);
  1054. global::Google.ProtocolBuffers.TestProtos.TestRequired.Multi = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.TestRequired.Descriptor.Extensions[1]);
  1055. internal__static_protobuf_unittest_TestRequiredForeign__Descriptor = Descriptor.MessageTypes[9];
  1056. internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable =
  1057. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder>(internal__static_protobuf_unittest_TestRequiredForeign__Descriptor,
  1058. new string[] { "OptionalMessage", "RepeatedMessage", "Dummy", });
  1059. internal__static_protobuf_unittest_TestForeignNested__Descriptor = Descriptor.MessageTypes[10];
  1060. internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable =
  1061. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder>(internal__static_protobuf_unittest_TestForeignNested__Descriptor,
  1062. new string[] { "ForeignNested", });
  1063. internal__static_protobuf_unittest_TestEmptyMessage__Descriptor = Descriptor.MessageTypes[11];
  1064. internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable =
  1065. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder>(internal__static_protobuf_unittest_TestEmptyMessage__Descriptor,
  1066. new string[] { });
  1067. internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor = Descriptor.MessageTypes[12];
  1068. internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable =
  1069. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder>(internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor,
  1070. new string[] { });
  1071. internal__static_protobuf_unittest_TestMultipleExtensionRanges__Descriptor = Descriptor.MessageTypes[13];
  1072. internal__static_protobuf_unittest_TestMultipleExtensionRanges__FieldAccessorTable =
  1073. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges, global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.Builder>(internal__static_protobuf_unittest_TestMultipleExtensionRanges__Descriptor,
  1074. new string[] { });
  1075. internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor = Descriptor.MessageTypes[14];
  1076. internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable =
  1077. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder>(internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor,
  1078. new string[] { "A", "Bb", });
  1079. internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor = Descriptor.MessageTypes[15];
  1080. internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable =
  1081. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder>(internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor,
  1082. new string[] { "A", "I", });
  1083. internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor = Descriptor.MessageTypes[16];
  1084. internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable =
  1085. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder>(internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor,
  1086. new string[] { "Bb", });
  1087. internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor = Descriptor.MessageTypes[17];
  1088. internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable =
  1089. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder>(internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor,
  1090. new string[] { "A", "OptionalInt32", });
  1091. internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor = Descriptor.MessageTypes[18];
  1092. internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable =
  1093. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor,
  1094. new string[] { "A", "Foo", "Bar", });
  1095. internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[0];
  1096. internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable =
  1097. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor,
  1098. new string[] { "A", });
  1099. internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[1];
  1100. internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable =
  1101. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor,
  1102. new string[] { "A", });
  1103. internal__static_protobuf_unittest_TestEagerMessage__Descriptor = Descriptor.MessageTypes[19];
  1104. internal__static_protobuf_unittest_TestEagerMessage__FieldAccessorTable =
  1105. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEagerMessage, global::Google.ProtocolBuffers.TestProtos.TestEagerMessage.Builder>(internal__static_protobuf_unittest_TestEagerMessage__Descriptor,
  1106. new string[] { "SubMessage", });
  1107. internal__static_protobuf_unittest_TestLazyMessage__Descriptor = Descriptor.MessageTypes[20];
  1108. internal__static_protobuf_unittest_TestLazyMessage__FieldAccessorTable =
  1109. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestLazyMessage, global::Google.ProtocolBuffers.TestProtos.TestLazyMessage.Builder>(internal__static_protobuf_unittest_TestLazyMessage__Descriptor,
  1110. new string[] { "SubMessage", });
  1111. internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor = Descriptor.MessageTypes[21];
  1112. internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable =
  1113. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder>(internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor,
  1114. new string[] { "OptionalNestedMessage", });
  1115. internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor = internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor.NestedTypes[0];
  1116. internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable =
  1117. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor,
  1118. new string[] { "NestedmessageRepeatedInt32", "NestedmessageRepeatedForeignmessage", });
  1119. internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor = Descriptor.MessageTypes[22];
  1120. internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable =
  1121. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder>(internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor,
  1122. new string[] { "PrimitiveField", "StringField", "EnumField", "MessageField", "StringPieceField", "CordField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedStringPieceField", "RepeatedCordField", });
  1123. internal__static_protobuf_unittest_TestFieldOrderings__Descriptor = Descriptor.MessageTypes[23];
  1124. internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable =
  1125. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder>(internal__static_protobuf_unittest_TestFieldOrderings__Descriptor,
  1126. new string[] { "MyString", "MyInt", "MyFloat", "OptionalNestedMessage", });
  1127. internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__Descriptor = internal__static_protobuf_unittest_TestFieldOrderings__Descriptor.NestedTypes[0];
  1128. internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__FieldAccessorTable =
  1129. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__Descriptor,
  1130. new string[] { "Oo", "Bb", });
  1131. internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor = Descriptor.MessageTypes[24];
  1132. internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable =
  1133. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder>(internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor,
  1134. new string[] { "EscapedBytes", "LargeUint32", "LargeUint64", "SmallInt32", "SmallInt64", "ReallySmallInt32", "ReallySmallInt64", "Utf8String", "ZeroFloat", "OneFloat", "SmallFloat", "NegativeOneFloat", "NegativeFloat", "LargeFloat", "SmallNegativeFloat", "InfDouble", "NegInfDouble", "NanDouble", "InfFloat", "NegInfFloat", "NanFloat", "CppTrigraph", "StringWithZero", "BytesWithZero", "StringPieceWithZero", "CordWithZero", "ReplacementString", });
  1135. internal__static_protobuf_unittest_SparseEnumMessage__Descriptor = Descriptor.MessageTypes[25];
  1136. internal__static_protobuf_unittest_SparseEnumMessage__FieldAccessorTable =
  1137. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.SparseEnumMessage, global::Google.ProtocolBuffers.TestProtos.SparseEnumMessage.Builder>(internal__static_protobuf_unittest_SparseEnumMessage__Descriptor,
  1138. new string[] { "SparseEnum", });
  1139. internal__static_protobuf_unittest_OneString__Descriptor = Descriptor.MessageTypes[26];
  1140. internal__static_protobuf_unittest_OneString__FieldAccessorTable =
  1141. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OneString, global::Google.ProtocolBuffers.TestProtos.OneString.Builder>(internal__static_protobuf_unittest_OneString__Descriptor,
  1142. new string[] { "Data", });
  1143. internal__static_protobuf_unittest_MoreString__Descriptor = Descriptor.MessageTypes[27];
  1144. internal__static_protobuf_unittest_MoreString__FieldAccessorTable =
  1145. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.MoreString, global::Google.ProtocolBuffers.TestProtos.MoreString.Builder>(internal__static_protobuf_unittest_MoreString__Descriptor,
  1146. new string[] { "Data", });
  1147. internal__static_protobuf_unittest_OneBytes__Descriptor = Descriptor.MessageTypes[28];
  1148. internal__static_protobuf_unittest_OneBytes__FieldAccessorTable =
  1149. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OneBytes, global::Google.ProtocolBuffers.TestProtos.OneBytes.Builder>(internal__static_protobuf_unittest_OneBytes__Descriptor,
  1150. new string[] { "Data", });
  1151. internal__static_protobuf_unittest_MoreBytes__Descriptor = Descriptor.MessageTypes[29];
  1152. internal__static_protobuf_unittest_MoreBytes__FieldAccessorTable =
  1153. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.MoreBytes, global::Google.ProtocolBuffers.TestProtos.MoreBytes.Builder>(internal__static_protobuf_unittest_MoreBytes__Descriptor,
  1154. new string[] { "Data", });
  1155. internal__static_protobuf_unittest_Int32Message__Descriptor = Descriptor.MessageTypes[30];
  1156. internal__static_protobuf_unittest_Int32Message__FieldAccessorTable =
  1157. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.Int32Message, global::Google.ProtocolBuffers.TestProtos.Int32Message.Builder>(internal__static_protobuf_unittest_Int32Message__Descriptor,
  1158. new string[] { "Data", });
  1159. internal__static_protobuf_unittest_Uint32Message__Descriptor = Descriptor.MessageTypes[31];
  1160. internal__static_protobuf_unittest_Uint32Message__FieldAccessorTable =
  1161. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.Uint32Message, global::Google.ProtocolBuffers.TestProtos.Uint32Message.Builder>(internal__static_protobuf_unittest_Uint32Message__Descriptor,
  1162. new string[] { "Data", });
  1163. internal__static_protobuf_unittest_Int64Message__Descriptor = Descriptor.MessageTypes[32];
  1164. internal__static_protobuf_unittest_Int64Message__FieldAccessorTable =
  1165. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.Int64Message, global::Google.ProtocolBuffers.TestProtos.Int64Message.Builder>(internal__static_protobuf_unittest_Int64Message__Descriptor,
  1166. new string[] { "Data", });
  1167. internal__static_protobuf_unittest_Uint64Message__Descriptor = Descriptor.MessageTypes[33];
  1168. internal__static_protobuf_unittest_Uint64Message__FieldAccessorTable =
  1169. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.Uint64Message, global::Google.ProtocolBuffers.TestProtos.Uint64Message.Builder>(internal__static_protobuf_unittest_Uint64Message__Descriptor,
  1170. new string[] { "Data", });
  1171. internal__static_protobuf_unittest_BoolMessage__Descriptor = Descriptor.MessageTypes[34];
  1172. internal__static_protobuf_unittest_BoolMessage__FieldAccessorTable =
  1173. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BoolMessage, global::Google.ProtocolBuffers.TestProtos.BoolMessage.Builder>(internal__static_protobuf_unittest_BoolMessage__Descriptor,
  1174. new string[] { "Data", });
  1175. internal__static_protobuf_unittest_TestOneof__Descriptor = Descriptor.MessageTypes[35];
  1176. internal__static_protobuf_unittest_TestOneof__FieldAccessorTable =
  1177. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof, global::Google.ProtocolBuffers.TestProtos.TestOneof.Builder>(internal__static_protobuf_unittest_TestOneof__Descriptor,
  1178. new string[] { "FooInt", "FooString", "FooMessage", "FooGroup", });
  1179. internal__static_protobuf_unittest_TestOneof_FooGroup__Descriptor = internal__static_protobuf_unittest_TestOneof__Descriptor.NestedTypes[0];
  1180. internal__static_protobuf_unittest_TestOneof_FooGroup__FieldAccessorTable =
  1181. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup, global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.Builder>(internal__static_protobuf_unittest_TestOneof_FooGroup__Descriptor,
  1182. new string[] { "A", "B", });
  1183. internal__static_protobuf_unittest_TestOneofBackwardsCompatible__Descriptor = Descriptor.MessageTypes[36];
  1184. internal__static_protobuf_unittest_TestOneofBackwardsCompatible__FieldAccessorTable =
  1185. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible, global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Builder>(internal__static_protobuf_unittest_TestOneofBackwardsCompatible__Descriptor,
  1186. new string[] { "FooInt", "FooString", "FooMessage", "FooGroup", });
  1187. internal__static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup__Descriptor = internal__static_protobuf_unittest_TestOneofBackwardsCompatible__Descriptor.NestedTypes[0];
  1188. internal__static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup__FieldAccessorTable =
  1189. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup, global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.Builder>(internal__static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup__Descriptor,
  1190. new string[] { "A", "B", });
  1191. internal__static_protobuf_unittest_TestOneof2__Descriptor = Descriptor.MessageTypes[37];
  1192. internal__static_protobuf_unittest_TestOneof2__FieldAccessorTable =
  1193. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof2, global::Google.ProtocolBuffers.TestProtos.TestOneof2.Builder>(internal__static_protobuf_unittest_TestOneof2__Descriptor,
  1194. new string[] { "FooInt", "FooString", "FooCord", "FooStringPiece", "FooBytes", "FooEnum", "FooMessage", "FooGroup", "FooLazyMessage", "BarInt", "BarString", "BarCord", "BarStringPiece", "BarBytes", "BarEnum", "BazInt", "BazString", });
  1195. internal__static_protobuf_unittest_TestOneof2_FooGroup__Descriptor = internal__static_protobuf_unittest_TestOneof2__Descriptor.NestedTypes[0];
  1196. internal__static_protobuf_unittest_TestOneof2_FooGroup__FieldAccessorTable =
  1197. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup, global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.Builder>(internal__static_protobuf_unittest_TestOneof2_FooGroup__Descriptor,
  1198. new string[] { "A", "B", });
  1199. internal__static_protobuf_unittest_TestOneof2_NestedMessage__Descriptor = internal__static_protobuf_unittest_TestOneof2__Descriptor.NestedTypes[1];
  1200. internal__static_protobuf_unittest_TestOneof2_NestedMessage__FieldAccessorTable =
  1201. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestOneof2_NestedMessage__Descriptor,
  1202. new string[] { "QuxInt", "CorgeInt", });
  1203. internal__static_protobuf_unittest_TestRequiredOneof__Descriptor = Descriptor.MessageTypes[38];
  1204. internal__static_protobuf_unittest_TestRequiredOneof__FieldAccessorTable =
  1205. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof, global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Builder>(internal__static_protobuf_unittest_TestRequiredOneof__Descriptor,
  1206. new string[] { "FooInt", "FooString", "FooMessage", });
  1207. internal__static_protobuf_unittest_TestRequiredOneof_NestedMessage__Descriptor = internal__static_protobuf_unittest_TestRequiredOneof__Descriptor.NestedTypes[0];
  1208. internal__static_protobuf_unittest_TestRequiredOneof_NestedMessage__FieldAccessorTable =
  1209. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestRequiredOneof_NestedMessage__Descriptor,
  1210. new string[] { "RequiredDouble", });
  1211. internal__static_protobuf_unittest_TestPackedTypes__Descriptor = Descriptor.MessageTypes[39];
  1212. internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable =
  1213. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestPackedTypes, global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.Builder>(internal__static_protobuf_unittest_TestPackedTypes__Descriptor,
  1214. new string[] { "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum", });
  1215. internal__static_protobuf_unittest_TestUnpackedTypes__Descriptor = Descriptor.MessageTypes[40];
  1216. internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable =
  1217. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes, global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.Builder>(internal__static_protobuf_unittest_TestUnpackedTypes__Descriptor,
  1218. new string[] { "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedEnum", });
  1219. internal__static_protobuf_unittest_TestPackedExtensions__Descriptor = Descriptor.MessageTypes[41];
  1220. internal__static_protobuf_unittest_TestPackedExtensions__FieldAccessorTable =
  1221. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.Builder>(internal__static_protobuf_unittest_TestPackedExtensions__Descriptor,
  1222. new string[] { });
  1223. internal__static_protobuf_unittest_TestUnpackedExtensions__Descriptor = Descriptor.MessageTypes[42];
  1224. internal__static_protobuf_unittest_TestUnpackedExtensions__FieldAccessorTable =
  1225. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions, global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.Builder>(internal__static_protobuf_unittest_TestUnpackedExtensions__Descriptor,
  1226. new string[] { });
  1227. internal__static_protobuf_unittest_TestDynamicExtensions__Descriptor = Descriptor.MessageTypes[43];
  1228. internal__static_protobuf_unittest_TestDynamicExtensions__FieldAccessorTable =
  1229. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions, global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Builder>(internal__static_protobuf_unittest_TestDynamicExtensions__Descriptor,
  1230. new string[] { "ScalarExtension", "EnumExtension", "DynamicEnumExtension", "MessageExtension", "DynamicMessageExtension", "RepeatedExtension", "PackedExtension", });
  1231. internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__Descriptor = internal__static_protobuf_unittest_TestDynamicExtensions__Descriptor.NestedTypes[0];
  1232. internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__FieldAccessorTable =
  1233. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType, global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Builder>(internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__Descriptor,
  1234. new string[] { "DynamicField", });
  1235. internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__Descriptor = Descriptor.MessageTypes[44];
  1236. internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable =
  1237. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes, global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.Builder>(internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__Descriptor,
  1238. new string[] { "RepeatedFixed32", "RepeatedInt32", "RepeatedFixed64", "RepeatedInt64", "RepeatedFloat", "RepeatedUint64", });
  1239. internal__static_protobuf_unittest_TestParsingMerge__Descriptor = Descriptor.MessageTypes[45];
  1240. internal__static_protobuf_unittest_TestParsingMerge__FieldAccessorTable =
  1241. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Builder>(internal__static_protobuf_unittest_TestParsingMerge__Descriptor,
  1242. new string[] { "RequiredAllTypes", "OptionalAllTypes", "RepeatedAllTypes", "OptionalGroup", "RepeatedGroup", });
  1243. internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__Descriptor = internal__static_protobuf_unittest_TestParsingMerge__Descriptor.NestedTypes[0];
  1244. internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__FieldAccessorTable =
  1245. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Builder>(internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__Descriptor,
  1246. new string[] { "Field1", "Field2", "Field3", "Group1", "Group2", "Ext1", "Ext2", });
  1247. internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1__Descriptor = internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__Descriptor.NestedTypes[0];
  1248. internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1__FieldAccessorTable =
  1249. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Builder>(internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1__Descriptor,
  1250. new string[] { "Field1", });
  1251. internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2__Descriptor = internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__Descriptor.NestedTypes[1];
  1252. internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2__FieldAccessorTable =
  1253. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Builder>(internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2__Descriptor,
  1254. new string[] { "Field1", });
  1255. internal__static_protobuf_unittest_TestParsingMerge_OptionalGroup__Descriptor = internal__static_protobuf_unittest_TestParsingMerge__Descriptor.NestedTypes[1];
  1256. internal__static_protobuf_unittest_TestParsingMerge_OptionalGroup__FieldAccessorTable =
  1257. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.Builder>(internal__static_protobuf_unittest_TestParsingMerge_OptionalGroup__Descriptor,
  1258. new string[] { "OptionalGroupAllTypes", });
  1259. internal__static_protobuf_unittest_TestParsingMerge_RepeatedGroup__Descriptor = internal__static_protobuf_unittest_TestParsingMerge__Descriptor.NestedTypes[2];
  1260. internal__static_protobuf_unittest_TestParsingMerge_RepeatedGroup__FieldAccessorTable =
  1261. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup.Builder>(internal__static_protobuf_unittest_TestParsingMerge_RepeatedGroup__Descriptor,
  1262. new string[] { "RepeatedGroupAllTypes", });
  1263. global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.OptionalExt = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Descriptor.Extensions[0]);
  1264. global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.RepeatedExt = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Descriptor.Extensions[1]);
  1265. internal__static_protobuf_unittest_TestCommentInjectionMessage__Descriptor = Descriptor.MessageTypes[46];
  1266. internal__static_protobuf_unittest_TestCommentInjectionMessage__FieldAccessorTable =
  1267. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCommentInjectionMessage, global::Google.ProtocolBuffers.TestProtos.TestCommentInjectionMessage.Builder>(internal__static_protobuf_unittest_TestCommentInjectionMessage__Descriptor,
  1268. new string[] { "A", });
  1269. internal__static_protobuf_unittest_FooRequest__Descriptor = Descriptor.MessageTypes[47];
  1270. internal__static_protobuf_unittest_FooRequest__FieldAccessorTable =
  1271. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooRequest, global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder>(internal__static_protobuf_unittest_FooRequest__Descriptor,
  1272. new string[] { });
  1273. internal__static_protobuf_unittest_FooResponse__Descriptor = Descriptor.MessageTypes[48];
  1274. internal__static_protobuf_unittest_FooResponse__FieldAccessorTable =
  1275. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder>(internal__static_protobuf_unittest_FooResponse__Descriptor,
  1276. new string[] { });
  1277. internal__static_protobuf_unittest_FooClientMessage__Descriptor = Descriptor.MessageTypes[49];
  1278. internal__static_protobuf_unittest_FooClientMessage__FieldAccessorTable =
  1279. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooClientMessage, global::Google.ProtocolBuffers.TestProtos.FooClientMessage.Builder>(internal__static_protobuf_unittest_FooClientMessage__Descriptor,
  1280. new string[] { });
  1281. internal__static_protobuf_unittest_FooServerMessage__Descriptor = Descriptor.MessageTypes[50];
  1282. internal__static_protobuf_unittest_FooServerMessage__FieldAccessorTable =
  1283. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooServerMessage, global::Google.ProtocolBuffers.TestProtos.FooServerMessage.Builder>(internal__static_protobuf_unittest_FooServerMessage__Descriptor,
  1284. new string[] { });
  1285. internal__static_protobuf_unittest_BarRequest__Descriptor = Descriptor.MessageTypes[51];
  1286. internal__static_protobuf_unittest_BarRequest__FieldAccessorTable =
  1287. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarRequest, global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder>(internal__static_protobuf_unittest_BarRequest__Descriptor,
  1288. new string[] { });
  1289. internal__static_protobuf_unittest_BarResponse__Descriptor = Descriptor.MessageTypes[52];
  1290. internal__static_protobuf_unittest_BarResponse__FieldAccessorTable =
  1291. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder>(internal__static_protobuf_unittest_BarResponse__Descriptor,
  1292. new string[] { });
  1293. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalInt32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[0]);
  1294. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalInt64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[1]);
  1295. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalUint32Extension = pb::GeneratedSingleExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[2]);
  1296. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalUint64Extension = pb::GeneratedSingleExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[3]);
  1297. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalSint32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[4]);
  1298. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalSint64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[5]);
  1299. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalFixed32Extension = pb::GeneratedSingleExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[6]);
  1300. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalFixed64Extension = pb::GeneratedSingleExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[7]);
  1301. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalSfixed32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[8]);
  1302. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalSfixed64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[9]);
  1303. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalFloatExtension = pb::GeneratedSingleExtension<float>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[10]);
  1304. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalDoubleExtension = pb::GeneratedSingleExtension<double>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[11]);
  1305. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalBoolExtension = pb::GeneratedSingleExtension<bool>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[12]);
  1306. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalStringExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[13]);
  1307. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalBytesExtension = pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[14]);
  1308. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalGroupExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[15]);
  1309. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalNestedMessageExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[16]);
  1310. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalForeignMessageExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[17]);
  1311. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalImportMessageExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[18]);
  1312. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalNestedEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[19]);
  1313. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalForeignEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[20]);
  1314. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalImportEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[21]);
  1315. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalStringPieceExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[22]);
  1316. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalCordExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[23]);
  1317. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalPublicImportMessageExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.PublicImportMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[24]);
  1318. global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalLazyMessageExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[25]);
  1319. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedInt32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[26]);
  1320. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedInt64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[27]);
  1321. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedUint32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[28]);
  1322. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedUint64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[29]);
  1323. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedSint32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[30]);
  1324. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedSint64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[31]);
  1325. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedFixed32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[32]);
  1326. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedFixed64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[33]);
  1327. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedSfixed32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[34]);
  1328. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedSfixed64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[35]);
  1329. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedFloatExtension = pb::GeneratedRepeatExtension<float>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[36]);
  1330. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedDoubleExtension = pb::GeneratedRepeatExtension<double>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[37]);
  1331. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedBoolExtension = pb::GeneratedRepeatExtension<bool>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[38]);
  1332. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedStringExtension = pb::GeneratedRepeatExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[39]);
  1333. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedBytesExtension = pb::GeneratedRepeatExtension<pb::ByteString>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[40]);
  1334. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedGroupExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[41]);
  1335. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedNestedMessageExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[42]);
  1336. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedForeignMessageExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[43]);
  1337. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedImportMessageExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[44]);
  1338. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedNestedEnumExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[45]);
  1339. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedForeignEnumExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[46]);
  1340. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedImportEnumExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[47]);
  1341. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedStringPieceExtension = pb::GeneratedRepeatExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[48]);
  1342. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedCordExtension = pb::GeneratedRepeatExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[49]);
  1343. global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedLazyMessageExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[50]);
  1344. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultInt32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[51]);
  1345. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultInt64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[52]);
  1346. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultUint32Extension = pb::GeneratedSingleExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[53]);
  1347. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultUint64Extension = pb::GeneratedSingleExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[54]);
  1348. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultSint32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[55]);
  1349. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultSint64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[56]);
  1350. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultFixed32Extension = pb::GeneratedSingleExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[57]);
  1351. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultFixed64Extension = pb::GeneratedSingleExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[58]);
  1352. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultSfixed32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[59]);
  1353. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultSfixed64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[60]);
  1354. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultFloatExtension = pb::GeneratedSingleExtension<float>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[61]);
  1355. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultDoubleExtension = pb::GeneratedSingleExtension<double>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[62]);
  1356. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultBoolExtension = pb::GeneratedSingleExtension<bool>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[63]);
  1357. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultStringExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[64]);
  1358. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultBytesExtension = pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[65]);
  1359. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultNestedEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[66]);
  1360. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultForeignEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[67]);
  1361. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultImportEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[68]);
  1362. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultStringPieceExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[69]);
  1363. global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultCordExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[70]);
  1364. global::Google.ProtocolBuffers.TestProtos.Unittest.OneofUint32Extension = pb::GeneratedSingleExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[71]);
  1365. global::Google.ProtocolBuffers.TestProtos.Unittest.OneofNestedMessageExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[72]);
  1366. global::Google.ProtocolBuffers.TestProtos.Unittest.OneofStringExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[73]);
  1367. global::Google.ProtocolBuffers.TestProtos.Unittest.OneofBytesExtension = pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[74]);
  1368. global::Google.ProtocolBuffers.TestProtos.Unittest.MyExtensionString = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[75]);
  1369. global::Google.ProtocolBuffers.TestProtos.Unittest.MyExtensionInt = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[76]);
  1370. global::Google.ProtocolBuffers.TestProtos.Unittest.PackedInt32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[77]);
  1371. global::Google.ProtocolBuffers.TestProtos.Unittest.PackedInt64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[78]);
  1372. global::Google.ProtocolBuffers.TestProtos.Unittest.PackedUint32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[79]);
  1373. global::Google.ProtocolBuffers.TestProtos.Unittest.PackedUint64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[80]);
  1374. global::Google.ProtocolBuffers.TestProtos.Unittest.PackedSint32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[81]);
  1375. global::Google.ProtocolBuffers.TestProtos.Unittest.PackedSint64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[82]);
  1376. global::Google.ProtocolBuffers.TestProtos.Unittest.PackedFixed32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[83]);
  1377. global::Google.ProtocolBuffers.TestProtos.Unittest.PackedFixed64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[84]);
  1378. global::Google.ProtocolBuffers.TestProtos.Unittest.PackedSfixed32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[85]);
  1379. global::Google.ProtocolBuffers.TestProtos.Unittest.PackedSfixed64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[86]);
  1380. global::Google.ProtocolBuffers.TestProtos.Unittest.PackedFloatExtension = pb::GeneratedRepeatExtension<float>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[87]);
  1381. global::Google.ProtocolBuffers.TestProtos.Unittest.PackedDoubleExtension = pb::GeneratedRepeatExtension<double>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[88]);
  1382. global::Google.ProtocolBuffers.TestProtos.Unittest.PackedBoolExtension = pb::GeneratedRepeatExtension<bool>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[89]);
  1383. global::Google.ProtocolBuffers.TestProtos.Unittest.PackedEnumExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[90]);
  1384. global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedInt32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[91]);
  1385. global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedInt64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[92]);
  1386. global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedUint32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[93]);
  1387. global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedUint64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[94]);
  1388. global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedSint32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[95]);
  1389. global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedSint64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[96]);
  1390. global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedFixed32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[97]);
  1391. global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedFixed64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[98]);
  1392. global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedSfixed32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[99]);
  1393. global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedSfixed64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[100]);
  1394. global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedFloatExtension = pb::GeneratedRepeatExtension<float>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[101]);
  1395. global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedDoubleExtension = pb::GeneratedRepeatExtension<double>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[102]);
  1396. global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedBoolExtension = pb::GeneratedRepeatExtension<bool>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[103]);
  1397. global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedEnumExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[104]);
  1398. pb::ExtensionRegistry registry = pb::ExtensionRegistry.CreateInstance();
  1399. RegisterAllExtensions(registry);
  1400. global::Google.ProtocolBuffers.TestProtos.UnittestImport.RegisterAllExtensions(registry);
  1401. return registry;
  1402. };
  1403. pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
  1404. new pbd::FileDescriptor[] {
  1405. global::Google.ProtocolBuffers.TestProtos.UnittestImport.Descriptor,
  1406. }, assigner);
  1407. }
  1408. #endregion
  1409. }
  1410. #region Enums
  1411. public enum ForeignEnum {
  1412. FOREIGN_FOO = 4,
  1413. FOREIGN_BAR = 5,
  1414. FOREIGN_BAZ = 6,
  1415. }
  1416. public enum TestEnumWithDupValue {
  1417. FOO1 = 1,
  1418. BAR1 = 2,
  1419. BAZ = 3,
  1420. FOO2 = 1,
  1421. BAR2 = 2,
  1422. }
  1423. public enum TestSparseEnum {
  1424. SPARSE_A = 123,
  1425. SPARSE_B = 62374,
  1426. SPARSE_C = 12589234,
  1427. SPARSE_D = -15,
  1428. SPARSE_E = -53452,
  1429. SPARSE_F = 0,
  1430. SPARSE_G = 2,
  1431. }
  1432. #endregion
  1433. #region Messages
  1434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1435. public sealed partial class TestAllTypes : pb::GeneratedMessage<TestAllTypes, TestAllTypes.Builder> {
  1436. private TestAllTypes() { }
  1437. private static readonly TestAllTypes defaultInstance = new TestAllTypes().MakeReadOnly();
  1438. private static readonly string[] _testAllTypesFieldNames = new string[] { "default_bool", "default_bytes", "default_cord", "default_double", "default_fixed32", "default_fixed64", "default_float", "default_foreign_enum", "default_import_enum", "default_int32", "default_int64", "default_nested_enum", "default_sfixed32", "default_sfixed64", "default_sint32", "default_sint64", "default_string", "default_string_piece", "default_uint32", "default_uint64", "oneof_bytes", "oneof_nested_message", "oneof_string", "oneof_uint32", "optional_bool", "optional_bytes", "optional_cord", "optional_double", "optional_fixed32", "optional_fixed64", "optional_float", "optional_foreign_enum", "optional_foreign_message", "optional_import_enum", "optional_import_message", "optional_int32", "optional_int64", "optional_lazy_message", "optional_nested_enum", "optional_nested_message", "optional_public_import_message", "optional_sfixed32", "optional_sfixed64", "optional_sint32", "optional_sint64", "optional_string", "optional_string_piece", "optional_uint32", "optional_uint64", "optionalgroup", "repeated_bool", "repeated_bytes", "repeated_cord", "repeated_double", "repeated_fixed32", "repeated_fixed64", "repeated_float", "repeated_foreign_enum", "repeated_foreign_message", "repeated_import_enum", "repeated_import_message", "repeated_int32", "repeated_int64", "repeated_lazy_message", "repeated_nested_enum", "repeated_nested_message", "repeated_sfixed32", "repeated_sfixed64", "repeated_sint32", "repeated_sint64", "repeated_string", "repeated_string_piece", "repeated_uint32", "repeated_uint64", "repeatedgroup" };
  1439. private static readonly uint[] _testAllTypesFieldTags = new uint[] { 584, 602, 682, 577, 541, 545, 573, 656, 664, 488, 496, 648, 557, 561, 520, 528, 594, 674, 504, 512, 914, 898, 906, 888, 104, 122, 202, 97, 61, 65, 93, 176, 154, 184, 162, 8, 16, 218, 168, 146, 210, 77, 81, 40, 48, 114, 194, 24, 32, 131, 344, 362, 442, 337, 301, 305, 333, 416, 394, 424, 402, 248, 256, 458, 408, 386, 317, 321, 280, 288, 354, 434, 264, 272, 371 };
  1440. public static TestAllTypes DefaultInstance {
  1441. get { return defaultInstance; }
  1442. }
  1443. public override TestAllTypes DefaultInstanceForType {
  1444. get { return DefaultInstance; }
  1445. }
  1446. protected override TestAllTypes ThisMessage {
  1447. get { return this; }
  1448. }
  1449. public static pbd::MessageDescriptor Descriptor {
  1450. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllTypes__Descriptor; }
  1451. }
  1452. protected override pb::FieldAccess.FieldAccessorTable<TestAllTypes, TestAllTypes.Builder> InternalFieldAccessors {
  1453. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable; }
  1454. }
  1455. #region Nested types
  1456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1457. public static partial class Types {
  1458. public enum NestedEnum {
  1459. FOO = 1,
  1460. BAR = 2,
  1461. BAZ = 3,
  1462. NEG = -1,
  1463. }
  1464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1465. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  1466. private NestedMessage() { }
  1467. private static readonly NestedMessage defaultInstance = new NestedMessage().MakeReadOnly();
  1468. private static readonly string[] _nestedMessageFieldNames = new string[] { "bb" };
  1469. private static readonly uint[] _nestedMessageFieldTags = new uint[] { 8 };
  1470. public static NestedMessage DefaultInstance {
  1471. get { return defaultInstance; }
  1472. }
  1473. public override NestedMessage DefaultInstanceForType {
  1474. get { return DefaultInstance; }
  1475. }
  1476. protected override NestedMessage ThisMessage {
  1477. get { return this; }
  1478. }
  1479. public static pbd::MessageDescriptor Descriptor {
  1480. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor; }
  1481. }
  1482. protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
  1483. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable; }
  1484. }
  1485. public const int BbFieldNumber = 1;
  1486. private bool hasBb;
  1487. private int bb_;
  1488. public bool HasBb {
  1489. get { return hasBb; }
  1490. }
  1491. public int Bb {
  1492. get { return bb_; }
  1493. }
  1494. public override bool IsInitialized {
  1495. get {
  1496. return true;
  1497. }
  1498. }
  1499. public override void WriteTo(pb::ICodedOutputStream output) {
  1500. CalcSerializedSize();
  1501. string[] field_names = _nestedMessageFieldNames;
  1502. if (hasBb) {
  1503. output.WriteInt32(1, field_names[0], Bb);
  1504. }
  1505. UnknownFields.WriteTo(output);
  1506. }
  1507. private int memoizedSerializedSize = -1;
  1508. public override int SerializedSize {
  1509. get {
  1510. int size = memoizedSerializedSize;
  1511. if (size != -1) return size;
  1512. return CalcSerializedSize();
  1513. }
  1514. }
  1515. private int CalcSerializedSize() {
  1516. int size = memoizedSerializedSize;
  1517. if (size != -1) return size;
  1518. size = 0;
  1519. if (hasBb) {
  1520. size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
  1521. }
  1522. size += UnknownFields.SerializedSize;
  1523. memoizedSerializedSize = size;
  1524. return size;
  1525. }
  1526. public static NestedMessage ParseFrom(pb::ByteString data) {
  1527. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1528. }
  1529. public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1530. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1531. }
  1532. public static NestedMessage ParseFrom(byte[] data) {
  1533. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1534. }
  1535. public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1536. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1537. }
  1538. public static NestedMessage ParseFrom(global::System.IO.Stream input) {
  1539. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1540. }
  1541. public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1542. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1543. }
  1544. public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
  1545. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1546. }
  1547. public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1548. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1549. }
  1550. public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
  1551. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1552. }
  1553. public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1554. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1555. }
  1556. private NestedMessage MakeReadOnly() {
  1557. return this;
  1558. }
  1559. public static Builder CreateBuilder() { return new Builder(); }
  1560. public override Builder ToBuilder() { return CreateBuilder(this); }
  1561. public override Builder CreateBuilderForType() { return new Builder(); }
  1562. public static Builder CreateBuilder(NestedMessage prototype) {
  1563. return new Builder(prototype);
  1564. }
  1565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1566. public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> {
  1567. protected override Builder ThisBuilder {
  1568. get { return this; }
  1569. }
  1570. public Builder() {
  1571. result = DefaultInstance;
  1572. resultIsReadOnly = true;
  1573. }
  1574. internal Builder(NestedMessage cloneFrom) {
  1575. result = cloneFrom;
  1576. resultIsReadOnly = true;
  1577. }
  1578. private bool resultIsReadOnly;
  1579. private NestedMessage result;
  1580. private NestedMessage PrepareBuilder() {
  1581. if (resultIsReadOnly) {
  1582. NestedMessage original = result;
  1583. result = new NestedMessage();
  1584. resultIsReadOnly = false;
  1585. MergeFrom(original);
  1586. }
  1587. return result;
  1588. }
  1589. public override bool IsInitialized {
  1590. get { return result.IsInitialized; }
  1591. }
  1592. protected override NestedMessage MessageBeingBuilt {
  1593. get { return PrepareBuilder(); }
  1594. }
  1595. public override Builder Clear() {
  1596. result = DefaultInstance;
  1597. resultIsReadOnly = true;
  1598. return this;
  1599. }
  1600. public override Builder Clone() {
  1601. if (resultIsReadOnly) {
  1602. return new Builder(result);
  1603. } else {
  1604. return new Builder().MergeFrom(result);
  1605. }
  1606. }
  1607. public override pbd::MessageDescriptor DescriptorForType {
  1608. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Descriptor; }
  1609. }
  1610. public override NestedMessage DefaultInstanceForType {
  1611. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; }
  1612. }
  1613. public override NestedMessage BuildPartial() {
  1614. if (resultIsReadOnly) {
  1615. return result;
  1616. }
  1617. resultIsReadOnly = true;
  1618. return result.MakeReadOnly();
  1619. }
  1620. public override Builder MergeFrom(pb::IMessage other) {
  1621. if (other is NestedMessage) {
  1622. return MergeFrom((NestedMessage) other);
  1623. } else {
  1624. base.MergeFrom(other);
  1625. return this;
  1626. }
  1627. }
  1628. public override Builder MergeFrom(NestedMessage other) {
  1629. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) return this;
  1630. PrepareBuilder();
  1631. if (other.HasBb) {
  1632. Bb = other.Bb;
  1633. }
  1634. this.MergeUnknownFields(other.UnknownFields);
  1635. return this;
  1636. }
  1637. public override Builder MergeFrom(pb::ICodedInputStream input) {
  1638. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1639. }
  1640. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1641. PrepareBuilder();
  1642. pb::UnknownFieldSet.Builder unknownFields = null;
  1643. uint tag;
  1644. string field_name;
  1645. while (input.ReadTag(out tag, out field_name)) {
  1646. if(tag == 0 && field_name != null) {
  1647. int field_ordinal = global::System.Array.BinarySearch(_nestedMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  1648. if(field_ordinal >= 0)
  1649. tag = _nestedMessageFieldTags[field_ordinal];
  1650. else {
  1651. if (unknownFields == null) {
  1652. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1653. }
  1654. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1655. continue;
  1656. }
  1657. }
  1658. switch (tag) {
  1659. case 0: {
  1660. throw pb::InvalidProtocolBufferException.InvalidTag();
  1661. }
  1662. default: {
  1663. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1664. if (unknownFields != null) {
  1665. this.UnknownFields = unknownFields.Build();
  1666. }
  1667. return this;
  1668. }
  1669. if (unknownFields == null) {
  1670. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1671. }
  1672. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1673. break;
  1674. }
  1675. case 8: {
  1676. result.hasBb = input.ReadInt32(ref result.bb_);
  1677. break;
  1678. }
  1679. }
  1680. }
  1681. if (unknownFields != null) {
  1682. this.UnknownFields = unknownFields.Build();
  1683. }
  1684. return this;
  1685. }
  1686. public bool HasBb {
  1687. get { return result.hasBb; }
  1688. }
  1689. public int Bb {
  1690. get { return result.Bb; }
  1691. set { SetBb(value); }
  1692. }
  1693. public Builder SetBb(int value) {
  1694. PrepareBuilder();
  1695. result.hasBb = true;
  1696. result.bb_ = value;
  1697. return this;
  1698. }
  1699. public Builder ClearBb() {
  1700. PrepareBuilder();
  1701. result.hasBb = false;
  1702. result.bb_ = 0;
  1703. return this;
  1704. }
  1705. }
  1706. static NestedMessage() {
  1707. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  1708. }
  1709. }
  1710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1711. public sealed partial class OptionalGroup : pb::GeneratedMessage<OptionalGroup, OptionalGroup.Builder> {
  1712. private OptionalGroup() { }
  1713. private static readonly OptionalGroup defaultInstance = new OptionalGroup().MakeReadOnly();
  1714. private static readonly string[] _optionalGroupFieldNames = new string[] { "a" };
  1715. private static readonly uint[] _optionalGroupFieldTags = new uint[] { 136 };
  1716. public static OptionalGroup DefaultInstance {
  1717. get { return defaultInstance; }
  1718. }
  1719. public override OptionalGroup DefaultInstanceForType {
  1720. get { return DefaultInstance; }
  1721. }
  1722. protected override OptionalGroup ThisMessage {
  1723. get { return this; }
  1724. }
  1725. public static pbd::MessageDescriptor Descriptor {
  1726. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor; }
  1727. }
  1728. protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup, OptionalGroup.Builder> InternalFieldAccessors {
  1729. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable; }
  1730. }
  1731. public const int AFieldNumber = 17;
  1732. private bool hasA;
  1733. private int a_;
  1734. public bool HasA {
  1735. get { return hasA; }
  1736. }
  1737. public int A {
  1738. get { return a_; }
  1739. }
  1740. public override bool IsInitialized {
  1741. get {
  1742. return true;
  1743. }
  1744. }
  1745. public override void WriteTo(pb::ICodedOutputStream output) {
  1746. CalcSerializedSize();
  1747. string[] field_names = _optionalGroupFieldNames;
  1748. if (hasA) {
  1749. output.WriteInt32(17, field_names[0], A);
  1750. }
  1751. UnknownFields.WriteTo(output);
  1752. }
  1753. private int memoizedSerializedSize = -1;
  1754. public override int SerializedSize {
  1755. get {
  1756. int size = memoizedSerializedSize;
  1757. if (size != -1) return size;
  1758. return CalcSerializedSize();
  1759. }
  1760. }
  1761. private int CalcSerializedSize() {
  1762. int size = memoizedSerializedSize;
  1763. if (size != -1) return size;
  1764. size = 0;
  1765. if (hasA) {
  1766. size += pb::CodedOutputStream.ComputeInt32Size(17, A);
  1767. }
  1768. size += UnknownFields.SerializedSize;
  1769. memoizedSerializedSize = size;
  1770. return size;
  1771. }
  1772. public static OptionalGroup ParseFrom(pb::ByteString data) {
  1773. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1774. }
  1775. public static OptionalGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1776. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1777. }
  1778. public static OptionalGroup ParseFrom(byte[] data) {
  1779. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1780. }
  1781. public static OptionalGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1782. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1783. }
  1784. public static OptionalGroup ParseFrom(global::System.IO.Stream input) {
  1785. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1786. }
  1787. public static OptionalGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1788. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1789. }
  1790. public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input) {
  1791. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1792. }
  1793. public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1794. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1795. }
  1796. public static OptionalGroup ParseFrom(pb::ICodedInputStream input) {
  1797. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1798. }
  1799. public static OptionalGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1800. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1801. }
  1802. private OptionalGroup MakeReadOnly() {
  1803. return this;
  1804. }
  1805. public static Builder CreateBuilder() { return new Builder(); }
  1806. public override Builder ToBuilder() { return CreateBuilder(this); }
  1807. public override Builder CreateBuilderForType() { return new Builder(); }
  1808. public static Builder CreateBuilder(OptionalGroup prototype) {
  1809. return new Builder(prototype);
  1810. }
  1811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1812. public sealed partial class Builder : pb::GeneratedBuilder<OptionalGroup, Builder> {
  1813. protected override Builder ThisBuilder {
  1814. get { return this; }
  1815. }
  1816. public Builder() {
  1817. result = DefaultInstance;
  1818. resultIsReadOnly = true;
  1819. }
  1820. internal Builder(OptionalGroup cloneFrom) {
  1821. result = cloneFrom;
  1822. resultIsReadOnly = true;
  1823. }
  1824. private bool resultIsReadOnly;
  1825. private OptionalGroup result;
  1826. private OptionalGroup PrepareBuilder() {
  1827. if (resultIsReadOnly) {
  1828. OptionalGroup original = result;
  1829. result = new OptionalGroup();
  1830. resultIsReadOnly = false;
  1831. MergeFrom(original);
  1832. }
  1833. return result;
  1834. }
  1835. public override bool IsInitialized {
  1836. get { return result.IsInitialized; }
  1837. }
  1838. protected override OptionalGroup MessageBeingBuilt {
  1839. get { return PrepareBuilder(); }
  1840. }
  1841. public override Builder Clear() {
  1842. result = DefaultInstance;
  1843. resultIsReadOnly = true;
  1844. return this;
  1845. }
  1846. public override Builder Clone() {
  1847. if (resultIsReadOnly) {
  1848. return new Builder(result);
  1849. } else {
  1850. return new Builder().MergeFrom(result);
  1851. }
  1852. }
  1853. public override pbd::MessageDescriptor DescriptorForType {
  1854. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Descriptor; }
  1855. }
  1856. public override OptionalGroup DefaultInstanceForType {
  1857. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance; }
  1858. }
  1859. public override OptionalGroup BuildPartial() {
  1860. if (resultIsReadOnly) {
  1861. return result;
  1862. }
  1863. resultIsReadOnly = true;
  1864. return result.MakeReadOnly();
  1865. }
  1866. public override Builder MergeFrom(pb::IMessage other) {
  1867. if (other is OptionalGroup) {
  1868. return MergeFrom((OptionalGroup) other);
  1869. } else {
  1870. base.MergeFrom(other);
  1871. return this;
  1872. }
  1873. }
  1874. public override Builder MergeFrom(OptionalGroup other) {
  1875. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) return this;
  1876. PrepareBuilder();
  1877. if (other.HasA) {
  1878. A = other.A;
  1879. }
  1880. this.MergeUnknownFields(other.UnknownFields);
  1881. return this;
  1882. }
  1883. public override Builder MergeFrom(pb::ICodedInputStream input) {
  1884. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1885. }
  1886. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1887. PrepareBuilder();
  1888. pb::UnknownFieldSet.Builder unknownFields = null;
  1889. uint tag;
  1890. string field_name;
  1891. while (input.ReadTag(out tag, out field_name)) {
  1892. if(tag == 0 && field_name != null) {
  1893. int field_ordinal = global::System.Array.BinarySearch(_optionalGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
  1894. if(field_ordinal >= 0)
  1895. tag = _optionalGroupFieldTags[field_ordinal];
  1896. else {
  1897. if (unknownFields == null) {
  1898. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1899. }
  1900. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1901. continue;
  1902. }
  1903. }
  1904. switch (tag) {
  1905. case 0: {
  1906. throw pb::InvalidProtocolBufferException.InvalidTag();
  1907. }
  1908. default: {
  1909. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1910. if (unknownFields != null) {
  1911. this.UnknownFields = unknownFields.Build();
  1912. }
  1913. return this;
  1914. }
  1915. if (unknownFields == null) {
  1916. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1917. }
  1918. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1919. break;
  1920. }
  1921. case 136: {
  1922. result.hasA = input.ReadInt32(ref result.a_);
  1923. break;
  1924. }
  1925. }
  1926. }
  1927. if (unknownFields != null) {
  1928. this.UnknownFields = unknownFields.Build();
  1929. }
  1930. return this;
  1931. }
  1932. public bool HasA {
  1933. get { return result.hasA; }
  1934. }
  1935. public int A {
  1936. get { return result.A; }
  1937. set { SetA(value); }
  1938. }
  1939. public Builder SetA(int value) {
  1940. PrepareBuilder();
  1941. result.hasA = true;
  1942. result.a_ = value;
  1943. return this;
  1944. }
  1945. public Builder ClearA() {
  1946. PrepareBuilder();
  1947. result.hasA = false;
  1948. result.a_ = 0;
  1949. return this;
  1950. }
  1951. }
  1952. static OptionalGroup() {
  1953. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  1954. }
  1955. }
  1956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1957. public sealed partial class RepeatedGroup : pb::GeneratedMessage<RepeatedGroup, RepeatedGroup.Builder> {
  1958. private RepeatedGroup() { }
  1959. private static readonly RepeatedGroup defaultInstance = new RepeatedGroup().MakeReadOnly();
  1960. private static readonly string[] _repeatedGroupFieldNames = new string[] { "a" };
  1961. private static readonly uint[] _repeatedGroupFieldTags = new uint[] { 376 };
  1962. public static RepeatedGroup DefaultInstance {
  1963. get { return defaultInstance; }
  1964. }
  1965. public override RepeatedGroup DefaultInstanceForType {
  1966. get { return DefaultInstance; }
  1967. }
  1968. protected override RepeatedGroup ThisMessage {
  1969. get { return this; }
  1970. }
  1971. public static pbd::MessageDescriptor Descriptor {
  1972. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor; }
  1973. }
  1974. protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup, RepeatedGroup.Builder> InternalFieldAccessors {
  1975. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable; }
  1976. }
  1977. public const int AFieldNumber = 47;
  1978. private bool hasA;
  1979. private int a_;
  1980. public bool HasA {
  1981. get { return hasA; }
  1982. }
  1983. public int A {
  1984. get { return a_; }
  1985. }
  1986. public override bool IsInitialized {
  1987. get {
  1988. return true;
  1989. }
  1990. }
  1991. public override void WriteTo(pb::ICodedOutputStream output) {
  1992. CalcSerializedSize();
  1993. string[] field_names = _repeatedGroupFieldNames;
  1994. if (hasA) {
  1995. output.WriteInt32(47, field_names[0], A);
  1996. }
  1997. UnknownFields.WriteTo(output);
  1998. }
  1999. private int memoizedSerializedSize = -1;
  2000. public override int SerializedSize {
  2001. get {
  2002. int size = memoizedSerializedSize;
  2003. if (size != -1) return size;
  2004. return CalcSerializedSize();
  2005. }
  2006. }
  2007. private int CalcSerializedSize() {
  2008. int size = memoizedSerializedSize;
  2009. if (size != -1) return size;
  2010. size = 0;
  2011. if (hasA) {
  2012. size += pb::CodedOutputStream.ComputeInt32Size(47, A);
  2013. }
  2014. size += UnknownFields.SerializedSize;
  2015. memoizedSerializedSize = size;
  2016. return size;
  2017. }
  2018. public static RepeatedGroup ParseFrom(pb::ByteString data) {
  2019. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2020. }
  2021. public static RepeatedGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  2022. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2023. }
  2024. public static RepeatedGroup ParseFrom(byte[] data) {
  2025. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2026. }
  2027. public static RepeatedGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  2028. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2029. }
  2030. public static RepeatedGroup ParseFrom(global::System.IO.Stream input) {
  2031. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2032. }
  2033. public static RepeatedGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2034. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2035. }
  2036. public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input) {
  2037. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  2038. }
  2039. public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2040. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  2041. }
  2042. public static RepeatedGroup ParseFrom(pb::ICodedInputStream input) {
  2043. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2044. }
  2045. public static RepeatedGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2046. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2047. }
  2048. private RepeatedGroup MakeReadOnly() {
  2049. return this;
  2050. }
  2051. public static Builder CreateBuilder() { return new Builder(); }
  2052. public override Builder ToBuilder() { return CreateBuilder(this); }
  2053. public override Builder CreateBuilderForType() { return new Builder(); }
  2054. public static Builder CreateBuilder(RepeatedGroup prototype) {
  2055. return new Builder(prototype);
  2056. }
  2057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2058. public sealed partial class Builder : pb::GeneratedBuilder<RepeatedGroup, Builder> {
  2059. protected override Builder ThisBuilder {
  2060. get { return this; }
  2061. }
  2062. public Builder() {
  2063. result = DefaultInstance;
  2064. resultIsReadOnly = true;
  2065. }
  2066. internal Builder(RepeatedGroup cloneFrom) {
  2067. result = cloneFrom;
  2068. resultIsReadOnly = true;
  2069. }
  2070. private bool resultIsReadOnly;
  2071. private RepeatedGroup result;
  2072. private RepeatedGroup PrepareBuilder() {
  2073. if (resultIsReadOnly) {
  2074. RepeatedGroup original = result;
  2075. result = new RepeatedGroup();
  2076. resultIsReadOnly = false;
  2077. MergeFrom(original);
  2078. }
  2079. return result;
  2080. }
  2081. public override bool IsInitialized {
  2082. get { return result.IsInitialized; }
  2083. }
  2084. protected override RepeatedGroup MessageBeingBuilt {
  2085. get { return PrepareBuilder(); }
  2086. }
  2087. public override Builder Clear() {
  2088. result = DefaultInstance;
  2089. resultIsReadOnly = true;
  2090. return this;
  2091. }
  2092. public override Builder Clone() {
  2093. if (resultIsReadOnly) {
  2094. return new Builder(result);
  2095. } else {
  2096. return new Builder().MergeFrom(result);
  2097. }
  2098. }
  2099. public override pbd::MessageDescriptor DescriptorForType {
  2100. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Descriptor; }
  2101. }
  2102. public override RepeatedGroup DefaultInstanceForType {
  2103. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance; }
  2104. }
  2105. public override RepeatedGroup BuildPartial() {
  2106. if (resultIsReadOnly) {
  2107. return result;
  2108. }
  2109. resultIsReadOnly = true;
  2110. return result.MakeReadOnly();
  2111. }
  2112. public override Builder MergeFrom(pb::IMessage other) {
  2113. if (other is RepeatedGroup) {
  2114. return MergeFrom((RepeatedGroup) other);
  2115. } else {
  2116. base.MergeFrom(other);
  2117. return this;
  2118. }
  2119. }
  2120. public override Builder MergeFrom(RepeatedGroup other) {
  2121. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance) return this;
  2122. PrepareBuilder();
  2123. if (other.HasA) {
  2124. A = other.A;
  2125. }
  2126. this.MergeUnknownFields(other.UnknownFields);
  2127. return this;
  2128. }
  2129. public override Builder MergeFrom(pb::ICodedInputStream input) {
  2130. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  2131. }
  2132. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2133. PrepareBuilder();
  2134. pb::UnknownFieldSet.Builder unknownFields = null;
  2135. uint tag;
  2136. string field_name;
  2137. while (input.ReadTag(out tag, out field_name)) {
  2138. if(tag == 0 && field_name != null) {
  2139. int field_ordinal = global::System.Array.BinarySearch(_repeatedGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
  2140. if(field_ordinal >= 0)
  2141. tag = _repeatedGroupFieldTags[field_ordinal];
  2142. else {
  2143. if (unknownFields == null) {
  2144. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2145. }
  2146. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  2147. continue;
  2148. }
  2149. }
  2150. switch (tag) {
  2151. case 0: {
  2152. throw pb::InvalidProtocolBufferException.InvalidTag();
  2153. }
  2154. default: {
  2155. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2156. if (unknownFields != null) {
  2157. this.UnknownFields = unknownFields.Build();
  2158. }
  2159. return this;
  2160. }
  2161. if (unknownFields == null) {
  2162. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2163. }
  2164. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  2165. break;
  2166. }
  2167. case 376: {
  2168. result.hasA = input.ReadInt32(ref result.a_);
  2169. break;
  2170. }
  2171. }
  2172. }
  2173. if (unknownFields != null) {
  2174. this.UnknownFields = unknownFields.Build();
  2175. }
  2176. return this;
  2177. }
  2178. public bool HasA {
  2179. get { return result.hasA; }
  2180. }
  2181. public int A {
  2182. get { return result.A; }
  2183. set { SetA(value); }
  2184. }
  2185. public Builder SetA(int value) {
  2186. PrepareBuilder();
  2187. result.hasA = true;
  2188. result.a_ = value;
  2189. return this;
  2190. }
  2191. public Builder ClearA() {
  2192. PrepareBuilder();
  2193. result.hasA = false;
  2194. result.a_ = 0;
  2195. return this;
  2196. }
  2197. }
  2198. static RepeatedGroup() {
  2199. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  2200. }
  2201. }
  2202. }
  2203. #endregion
  2204. public const int OptionalInt32FieldNumber = 1;
  2205. private bool hasOptionalInt32;
  2206. private int optionalInt32_;
  2207. public bool HasOptionalInt32 {
  2208. get { return hasOptionalInt32; }
  2209. }
  2210. public int OptionalInt32 {
  2211. get { return optionalInt32_; }
  2212. }
  2213. public const int OptionalInt64FieldNumber = 2;
  2214. private bool hasOptionalInt64;
  2215. private long optionalInt64_;
  2216. public bool HasOptionalInt64 {
  2217. get { return hasOptionalInt64; }
  2218. }
  2219. public long OptionalInt64 {
  2220. get { return optionalInt64_; }
  2221. }
  2222. public const int OptionalUint32FieldNumber = 3;
  2223. private bool hasOptionalUint32;
  2224. private uint optionalUint32_;
  2225. public bool HasOptionalUint32 {
  2226. get { return hasOptionalUint32; }
  2227. }
  2228. [global::System.CLSCompliant(false)]
  2229. public uint OptionalUint32 {
  2230. get { return optionalUint32_; }
  2231. }
  2232. public const int OptionalUint64FieldNumber = 4;
  2233. private bool hasOptionalUint64;
  2234. private ulong optionalUint64_;
  2235. public bool HasOptionalUint64 {
  2236. get { return hasOptionalUint64; }
  2237. }
  2238. [global::System.CLSCompliant(false)]
  2239. public ulong OptionalUint64 {
  2240. get { return optionalUint64_; }
  2241. }
  2242. public const int OptionalSint32FieldNumber = 5;
  2243. private bool hasOptionalSint32;
  2244. private int optionalSint32_;
  2245. public bool HasOptionalSint32 {
  2246. get { return hasOptionalSint32; }
  2247. }
  2248. public int OptionalSint32 {
  2249. get { return optionalSint32_; }
  2250. }
  2251. public const int OptionalSint64FieldNumber = 6;
  2252. private bool hasOptionalSint64;
  2253. private long optionalSint64_;
  2254. public bool HasOptionalSint64 {
  2255. get { return hasOptionalSint64; }
  2256. }
  2257. public long OptionalSint64 {
  2258. get { return optionalSint64_; }
  2259. }
  2260. public const int OptionalFixed32FieldNumber = 7;
  2261. private bool hasOptionalFixed32;
  2262. private uint optionalFixed32_;
  2263. public bool HasOptionalFixed32 {
  2264. get { return hasOptionalFixed32; }
  2265. }
  2266. [global::System.CLSCompliant(false)]
  2267. public uint OptionalFixed32 {
  2268. get { return optionalFixed32_; }
  2269. }
  2270. public const int OptionalFixed64FieldNumber = 8;
  2271. private bool hasOptionalFixed64;
  2272. private ulong optionalFixed64_;
  2273. public bool HasOptionalFixed64 {
  2274. get { return hasOptionalFixed64; }
  2275. }
  2276. [global::System.CLSCompliant(false)]
  2277. public ulong OptionalFixed64 {
  2278. get { return optionalFixed64_; }
  2279. }
  2280. public const int OptionalSfixed32FieldNumber = 9;
  2281. private bool hasOptionalSfixed32;
  2282. private int optionalSfixed32_;
  2283. public bool HasOptionalSfixed32 {
  2284. get { return hasOptionalSfixed32; }
  2285. }
  2286. public int OptionalSfixed32 {
  2287. get { return optionalSfixed32_; }
  2288. }
  2289. public const int OptionalSfixed64FieldNumber = 10;
  2290. private bool hasOptionalSfixed64;
  2291. private long optionalSfixed64_;
  2292. public bool HasOptionalSfixed64 {
  2293. get { return hasOptionalSfixed64; }
  2294. }
  2295. public long OptionalSfixed64 {
  2296. get { return optionalSfixed64_; }
  2297. }
  2298. public const int OptionalFloatFieldNumber = 11;
  2299. private bool hasOptionalFloat;
  2300. private float optionalFloat_;
  2301. public bool HasOptionalFloat {
  2302. get { return hasOptionalFloat; }
  2303. }
  2304. public float OptionalFloat {
  2305. get { return optionalFloat_; }
  2306. }
  2307. public const int OptionalDoubleFieldNumber = 12;
  2308. private bool hasOptionalDouble;
  2309. private double optionalDouble_;
  2310. public bool HasOptionalDouble {
  2311. get { return hasOptionalDouble; }
  2312. }
  2313. public double OptionalDouble {
  2314. get { return optionalDouble_; }
  2315. }
  2316. public const int OptionalBoolFieldNumber = 13;
  2317. private bool hasOptionalBool;
  2318. private bool optionalBool_;
  2319. public bool HasOptionalBool {
  2320. get { return hasOptionalBool; }
  2321. }
  2322. public bool OptionalBool {
  2323. get { return optionalBool_; }
  2324. }
  2325. public const int OptionalStringFieldNumber = 14;
  2326. private bool hasOptionalString;
  2327. private string optionalString_ = "";
  2328. public bool HasOptionalString {
  2329. get { return hasOptionalString; }
  2330. }
  2331. public string OptionalString {
  2332. get { return optionalString_; }
  2333. }
  2334. public const int OptionalBytesFieldNumber = 15;
  2335. private bool hasOptionalBytes;
  2336. private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
  2337. public bool HasOptionalBytes {
  2338. get { return hasOptionalBytes; }
  2339. }
  2340. public pb::ByteString OptionalBytes {
  2341. get { return optionalBytes_; }
  2342. }
  2343. public const int OptionalGroupFieldNumber = 16;
  2344. private bool hasOptionalGroup;
  2345. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup optionalGroup_;
  2346. public bool HasOptionalGroup {
  2347. get { return hasOptionalGroup; }
  2348. }
  2349. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup {
  2350. get { return optionalGroup_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance; }
  2351. }
  2352. public const int OptionalNestedMessageFieldNumber = 18;
  2353. private bool hasOptionalNestedMessage;
  2354. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage optionalNestedMessage_;
  2355. public bool HasOptionalNestedMessage {
  2356. get { return hasOptionalNestedMessage; }
  2357. }
  2358. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  2359. get { return optionalNestedMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; }
  2360. }
  2361. public const int OptionalForeignMessageFieldNumber = 19;
  2362. private bool hasOptionalForeignMessage;
  2363. private global::Google.ProtocolBuffers.TestProtos.ForeignMessage optionalForeignMessage_;
  2364. public bool HasOptionalForeignMessage {
  2365. get { return hasOptionalForeignMessage; }
  2366. }
  2367. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage {
  2368. get { return optionalForeignMessage_ ?? global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; }
  2369. }
  2370. public const int OptionalImportMessageFieldNumber = 20;
  2371. private bool hasOptionalImportMessage;
  2372. private global::Google.ProtocolBuffers.TestProtos.ImportMessage optionalImportMessage_;
  2373. public bool HasOptionalImportMessage {
  2374. get { return hasOptionalImportMessage; }
  2375. }
  2376. public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage {
  2377. get { return optionalImportMessage_ ?? global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance; }
  2378. }
  2379. public const int OptionalNestedEnumFieldNumber = 21;
  2380. private bool hasOptionalNestedEnum;
  2381. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO;
  2382. public bool HasOptionalNestedEnum {
  2383. get { return hasOptionalNestedEnum; }
  2384. }
  2385. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
  2386. get { return optionalNestedEnum_; }
  2387. }
  2388. public const int OptionalForeignEnumFieldNumber = 22;
  2389. private bool hasOptionalForeignEnum;
  2390. private global::Google.ProtocolBuffers.TestProtos.ForeignEnum optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  2391. public bool HasOptionalForeignEnum {
  2392. get { return hasOptionalForeignEnum; }
  2393. }
  2394. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum {
  2395. get { return optionalForeignEnum_; }
  2396. }
  2397. public const int OptionalImportEnumFieldNumber = 23;
  2398. private bool hasOptionalImportEnum;
  2399. private global::Google.ProtocolBuffers.TestProtos.ImportEnum optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO;
  2400. public bool HasOptionalImportEnum {
  2401. get { return hasOptionalImportEnum; }
  2402. }
  2403. public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum {
  2404. get { return optionalImportEnum_; }
  2405. }
  2406. public const int OptionalStringPieceFieldNumber = 24;
  2407. private bool hasOptionalStringPiece;
  2408. private string optionalStringPiece_ = "";
  2409. public bool HasOptionalStringPiece {
  2410. get { return hasOptionalStringPiece; }
  2411. }
  2412. public string OptionalStringPiece {
  2413. get { return optionalStringPiece_; }
  2414. }
  2415. public const int OptionalCordFieldNumber = 25;
  2416. private bool hasOptionalCord;
  2417. private string optionalCord_ = "";
  2418. public bool HasOptionalCord {
  2419. get { return hasOptionalCord; }
  2420. }
  2421. public string OptionalCord {
  2422. get { return optionalCord_; }
  2423. }
  2424. public const int OptionalPublicImportMessageFieldNumber = 26;
  2425. private bool hasOptionalPublicImportMessage;
  2426. private global::Google.ProtocolBuffers.TestProtos.PublicImportMessage optionalPublicImportMessage_;
  2427. public bool HasOptionalPublicImportMessage {
  2428. get { return hasOptionalPublicImportMessage; }
  2429. }
  2430. public global::Google.ProtocolBuffers.TestProtos.PublicImportMessage OptionalPublicImportMessage {
  2431. get { return optionalPublicImportMessage_ ?? global::Google.ProtocolBuffers.TestProtos.PublicImportMessage.DefaultInstance; }
  2432. }
  2433. public const int OptionalLazyMessageFieldNumber = 27;
  2434. private bool hasOptionalLazyMessage;
  2435. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage optionalLazyMessage_;
  2436. public bool HasOptionalLazyMessage {
  2437. get { return hasOptionalLazyMessage; }
  2438. }
  2439. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalLazyMessage {
  2440. get { return optionalLazyMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; }
  2441. }
  2442. public const int RepeatedInt32FieldNumber = 31;
  2443. private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>();
  2444. public scg::IList<int> RepeatedInt32List {
  2445. get { return pbc::Lists.AsReadOnly(repeatedInt32_); }
  2446. }
  2447. public int RepeatedInt32Count {
  2448. get { return repeatedInt32_.Count; }
  2449. }
  2450. public int GetRepeatedInt32(int index) {
  2451. return repeatedInt32_[index];
  2452. }
  2453. public const int RepeatedInt64FieldNumber = 32;
  2454. private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>();
  2455. public scg::IList<long> RepeatedInt64List {
  2456. get { return pbc::Lists.AsReadOnly(repeatedInt64_); }
  2457. }
  2458. public int RepeatedInt64Count {
  2459. get { return repeatedInt64_.Count; }
  2460. }
  2461. public long GetRepeatedInt64(int index) {
  2462. return repeatedInt64_[index];
  2463. }
  2464. public const int RepeatedUint32FieldNumber = 33;
  2465. private pbc::PopsicleList<uint> repeatedUint32_ = new pbc::PopsicleList<uint>();
  2466. [global::System.CLSCompliant(false)]
  2467. public scg::IList<uint> RepeatedUint32List {
  2468. get { return pbc::Lists.AsReadOnly(repeatedUint32_); }
  2469. }
  2470. public int RepeatedUint32Count {
  2471. get { return repeatedUint32_.Count; }
  2472. }
  2473. [global::System.CLSCompliant(false)]
  2474. public uint GetRepeatedUint32(int index) {
  2475. return repeatedUint32_[index];
  2476. }
  2477. public const int RepeatedUint64FieldNumber = 34;
  2478. private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>();
  2479. [global::System.CLSCompliant(false)]
  2480. public scg::IList<ulong> RepeatedUint64List {
  2481. get { return pbc::Lists.AsReadOnly(repeatedUint64_); }
  2482. }
  2483. public int RepeatedUint64Count {
  2484. get { return repeatedUint64_.Count; }
  2485. }
  2486. [global::System.CLSCompliant(false)]
  2487. public ulong GetRepeatedUint64(int index) {
  2488. return repeatedUint64_[index];
  2489. }
  2490. public const int RepeatedSint32FieldNumber = 35;
  2491. private pbc::PopsicleList<int> repeatedSint32_ = new pbc::PopsicleList<int>();
  2492. public scg::IList<int> RepeatedSint32List {
  2493. get { return pbc::Lists.AsReadOnly(repeatedSint32_); }
  2494. }
  2495. public int RepeatedSint32Count {
  2496. get { return repeatedSint32_.Count; }
  2497. }
  2498. public int GetRepeatedSint32(int index) {
  2499. return repeatedSint32_[index];
  2500. }
  2501. public const int RepeatedSint64FieldNumber = 36;
  2502. private pbc::PopsicleList<long> repeatedSint64_ = new pbc::PopsicleList<long>();
  2503. public scg::IList<long> RepeatedSint64List {
  2504. get { return pbc::Lists.AsReadOnly(repeatedSint64_); }
  2505. }
  2506. public int RepeatedSint64Count {
  2507. get { return repeatedSint64_.Count; }
  2508. }
  2509. public long GetRepeatedSint64(int index) {
  2510. return repeatedSint64_[index];
  2511. }
  2512. public const int RepeatedFixed32FieldNumber = 37;
  2513. private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>();
  2514. [global::System.CLSCompliant(false)]
  2515. public scg::IList<uint> RepeatedFixed32List {
  2516. get { return pbc::Lists.AsReadOnly(repeatedFixed32_); }
  2517. }
  2518. public int RepeatedFixed32Count {
  2519. get { return repeatedFixed32_.Count; }
  2520. }
  2521. [global::System.CLSCompliant(false)]
  2522. public uint GetRepeatedFixed32(int index) {
  2523. return repeatedFixed32_[index];
  2524. }
  2525. public const int RepeatedFixed64FieldNumber = 38;
  2526. private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>();
  2527. [global::System.CLSCompliant(false)]
  2528. public scg::IList<ulong> RepeatedFixed64List {
  2529. get { return pbc::Lists.AsReadOnly(repeatedFixed64_); }
  2530. }
  2531. public int RepeatedFixed64Count {
  2532. get { return repeatedFixed64_.Count; }
  2533. }
  2534. [global::System.CLSCompliant(false)]
  2535. public ulong GetRepeatedFixed64(int index) {
  2536. return repeatedFixed64_[index];
  2537. }
  2538. public const int RepeatedSfixed32FieldNumber = 39;
  2539. private pbc::PopsicleList<int> repeatedSfixed32_ = new pbc::PopsicleList<int>();
  2540. public scg::IList<int> RepeatedSfixed32List {
  2541. get { return pbc::Lists.AsReadOnly(repeatedSfixed32_); }
  2542. }
  2543. public int RepeatedSfixed32Count {
  2544. get { return repeatedSfixed32_.Count; }
  2545. }
  2546. public int GetRepeatedSfixed32(int index) {
  2547. return repeatedSfixed32_[index];
  2548. }
  2549. public const int RepeatedSfixed64FieldNumber = 40;
  2550. private pbc::PopsicleList<long> repeatedSfixed64_ = new pbc::PopsicleList<long>();
  2551. public scg::IList<long> RepeatedSfixed64List {
  2552. get { return pbc::Lists.AsReadOnly(repeatedSfixed64_); }
  2553. }
  2554. public int RepeatedSfixed64Count {
  2555. get { return repeatedSfixed64_.Count; }
  2556. }
  2557. public long GetRepeatedSfixed64(int index) {
  2558. return repeatedSfixed64_[index];
  2559. }
  2560. public const int RepeatedFloatFieldNumber = 41;
  2561. private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>();
  2562. public scg::IList<float> RepeatedFloatList {
  2563. get { return pbc::Lists.AsReadOnly(repeatedFloat_); }
  2564. }
  2565. public int RepeatedFloatCount {
  2566. get { return repeatedFloat_.Count; }
  2567. }
  2568. public float GetRepeatedFloat(int index) {
  2569. return repeatedFloat_[index];
  2570. }
  2571. public const int RepeatedDoubleFieldNumber = 42;
  2572. private pbc::PopsicleList<double> repeatedDouble_ = new pbc::PopsicleList<double>();
  2573. public scg::IList<double> RepeatedDoubleList {
  2574. get { return pbc::Lists.AsReadOnly(repeatedDouble_); }
  2575. }
  2576. public int RepeatedDoubleCount {
  2577. get { return repeatedDouble_.Count; }
  2578. }
  2579. public double GetRepeatedDouble(int index) {
  2580. return repeatedDouble_[index];
  2581. }
  2582. public const int RepeatedBoolFieldNumber = 43;
  2583. private pbc::PopsicleList<bool> repeatedBool_ = new pbc::PopsicleList<bool>();
  2584. public scg::IList<bool> RepeatedBoolList {
  2585. get { return pbc::Lists.AsReadOnly(repeatedBool_); }
  2586. }
  2587. public int RepeatedBoolCount {
  2588. get { return repeatedBool_.Count; }
  2589. }
  2590. public bool GetRepeatedBool(int index) {
  2591. return repeatedBool_[index];
  2592. }
  2593. public const int RepeatedStringFieldNumber = 44;
  2594. private pbc::PopsicleList<string> repeatedString_ = new pbc::PopsicleList<string>();
  2595. public scg::IList<string> RepeatedStringList {
  2596. get { return pbc::Lists.AsReadOnly(repeatedString_); }
  2597. }
  2598. public int RepeatedStringCount {
  2599. get { return repeatedString_.Count; }
  2600. }
  2601. public string GetRepeatedString(int index) {
  2602. return repeatedString_[index];
  2603. }
  2604. public const int RepeatedBytesFieldNumber = 45;
  2605. private pbc::PopsicleList<pb::ByteString> repeatedBytes_ = new pbc::PopsicleList<pb::ByteString>();
  2606. public scg::IList<pb::ByteString> RepeatedBytesList {
  2607. get { return pbc::Lists.AsReadOnly(repeatedBytes_); }
  2608. }
  2609. public int RepeatedBytesCount {
  2610. get { return repeatedBytes_.Count; }
  2611. }
  2612. public pb::ByteString GetRepeatedBytes(int index) {
  2613. return repeatedBytes_[index];
  2614. }
  2615. public const int RepeatedGroupFieldNumber = 46;
  2616. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
  2617. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
  2618. get { return repeatedGroup_; }
  2619. }
  2620. public int RepeatedGroupCount {
  2621. get { return repeatedGroup_.Count; }
  2622. }
  2623. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
  2624. return repeatedGroup_[index];
  2625. }
  2626. public const int RepeatedNestedMessageFieldNumber = 48;
  2627. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
  2628. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
  2629. get { return repeatedNestedMessage_; }
  2630. }
  2631. public int RepeatedNestedMessageCount {
  2632. get { return repeatedNestedMessage_.Count; }
  2633. }
  2634. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
  2635. return repeatedNestedMessage_[index];
  2636. }
  2637. public const int RepeatedForeignMessageFieldNumber = 49;
  2638. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedForeignMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  2639. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList {
  2640. get { return repeatedForeignMessage_; }
  2641. }
  2642. public int RepeatedForeignMessageCount {
  2643. get { return repeatedForeignMessage_.Count; }
  2644. }
  2645. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) {
  2646. return repeatedForeignMessage_[index];
  2647. }
  2648. public const int RepeatedImportMessageFieldNumber = 50;
  2649. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> repeatedImportMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
  2650. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList {
  2651. get { return repeatedImportMessage_; }
  2652. }
  2653. public int RepeatedImportMessageCount {
  2654. get { return repeatedImportMessage_.Count; }
  2655. }
  2656. public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) {
  2657. return repeatedImportMessage_[index];
  2658. }
  2659. public const int RepeatedNestedEnumFieldNumber = 51;
  2660. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>();
  2661. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
  2662. get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
  2663. }
  2664. public int RepeatedNestedEnumCount {
  2665. get { return repeatedNestedEnum_.Count; }
  2666. }
  2667. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
  2668. return repeatedNestedEnum_[index];
  2669. }
  2670. public const int RepeatedForeignEnumFieldNumber = 52;
  2671. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedForeignEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  2672. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList {
  2673. get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
  2674. }
  2675. public int RepeatedForeignEnumCount {
  2676. get { return repeatedForeignEnum_.Count; }
  2677. }
  2678. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) {
  2679. return repeatedForeignEnum_[index];
  2680. }
  2681. public const int RepeatedImportEnumFieldNumber = 53;
  2682. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> repeatedImportEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum>();
  2683. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList {
  2684. get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
  2685. }
  2686. public int RepeatedImportEnumCount {
  2687. get { return repeatedImportEnum_.Count; }
  2688. }
  2689. public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) {
  2690. return repeatedImportEnum_[index];
  2691. }
  2692. public const int RepeatedStringPieceFieldNumber = 54;
  2693. private pbc::PopsicleList<string> repeatedStringPiece_ = new pbc::PopsicleList<string>();
  2694. public scg::IList<string> RepeatedStringPieceList {
  2695. get { return pbc::Lists.AsReadOnly(repeatedStringPiece_); }
  2696. }
  2697. public int RepeatedStringPieceCount {
  2698. get { return repeatedStringPiece_.Count; }
  2699. }
  2700. public string GetRepeatedStringPiece(int index) {
  2701. return repeatedStringPiece_[index];
  2702. }
  2703. public const int RepeatedCordFieldNumber = 55;
  2704. private pbc::PopsicleList<string> repeatedCord_ = new pbc::PopsicleList<string>();
  2705. public scg::IList<string> RepeatedCordList {
  2706. get { return pbc::Lists.AsReadOnly(repeatedCord_); }
  2707. }
  2708. public int RepeatedCordCount {
  2709. get { return repeatedCord_.Count; }
  2710. }
  2711. public string GetRepeatedCord(int index) {
  2712. return repeatedCord_[index];
  2713. }
  2714. public const int RepeatedLazyMessageFieldNumber = 57;
  2715. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> repeatedLazyMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
  2716. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedLazyMessageList {
  2717. get { return repeatedLazyMessage_; }
  2718. }
  2719. public int RepeatedLazyMessageCount {
  2720. get { return repeatedLazyMessage_.Count; }
  2721. }
  2722. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedLazyMessage(int index) {
  2723. return repeatedLazyMessage_[index];
  2724. }
  2725. public const int DefaultInt32FieldNumber = 61;
  2726. private bool hasDefaultInt32;
  2727. private int defaultInt32_ = 41;
  2728. public bool HasDefaultInt32 {
  2729. get { return hasDefaultInt32; }
  2730. }
  2731. public int DefaultInt32 {
  2732. get { return defaultInt32_; }
  2733. }
  2734. public const int DefaultInt64FieldNumber = 62;
  2735. private bool hasDefaultInt64;
  2736. private long defaultInt64_ = 42L;
  2737. public bool HasDefaultInt64 {
  2738. get { return hasDefaultInt64; }
  2739. }
  2740. public long DefaultInt64 {
  2741. get { return defaultInt64_; }
  2742. }
  2743. public const int DefaultUint32FieldNumber = 63;
  2744. private bool hasDefaultUint32;
  2745. private uint defaultUint32_ = 43;
  2746. public bool HasDefaultUint32 {
  2747. get { return hasDefaultUint32; }
  2748. }
  2749. [global::System.CLSCompliant(false)]
  2750. public uint DefaultUint32 {
  2751. get { return defaultUint32_; }
  2752. }
  2753. public const int DefaultUint64FieldNumber = 64;
  2754. private bool hasDefaultUint64;
  2755. private ulong defaultUint64_ = 44UL;
  2756. public bool HasDefaultUint64 {
  2757. get { return hasDefaultUint64; }
  2758. }
  2759. [global::System.CLSCompliant(false)]
  2760. public ulong DefaultUint64 {
  2761. get { return defaultUint64_; }
  2762. }
  2763. public const int DefaultSint32FieldNumber = 65;
  2764. private bool hasDefaultSint32;
  2765. private int defaultSint32_ = -45;
  2766. public bool HasDefaultSint32 {
  2767. get { return hasDefaultSint32; }
  2768. }
  2769. public int DefaultSint32 {
  2770. get { return defaultSint32_; }
  2771. }
  2772. public const int DefaultSint64FieldNumber = 66;
  2773. private bool hasDefaultSint64;
  2774. private long defaultSint64_ = 46L;
  2775. public bool HasDefaultSint64 {
  2776. get { return hasDefaultSint64; }
  2777. }
  2778. public long DefaultSint64 {
  2779. get { return defaultSint64_; }
  2780. }
  2781. public const int DefaultFixed32FieldNumber = 67;
  2782. private bool hasDefaultFixed32;
  2783. private uint defaultFixed32_ = 47;
  2784. public bool HasDefaultFixed32 {
  2785. get { return hasDefaultFixed32; }
  2786. }
  2787. [global::System.CLSCompliant(false)]
  2788. public uint DefaultFixed32 {
  2789. get { return defaultFixed32_; }
  2790. }
  2791. public const int DefaultFixed64FieldNumber = 68;
  2792. private bool hasDefaultFixed64;
  2793. private ulong defaultFixed64_ = 48UL;
  2794. public bool HasDefaultFixed64 {
  2795. get { return hasDefaultFixed64; }
  2796. }
  2797. [global::System.CLSCompliant(false)]
  2798. public ulong DefaultFixed64 {
  2799. get { return defaultFixed64_; }
  2800. }
  2801. public const int DefaultSfixed32FieldNumber = 69;
  2802. private bool hasDefaultSfixed32;
  2803. private int defaultSfixed32_ = 49;
  2804. public bool HasDefaultSfixed32 {
  2805. get { return hasDefaultSfixed32; }
  2806. }
  2807. public int DefaultSfixed32 {
  2808. get { return defaultSfixed32_; }
  2809. }
  2810. public const int DefaultSfixed64FieldNumber = 70;
  2811. private bool hasDefaultSfixed64;
  2812. private long defaultSfixed64_ = -50L;
  2813. public bool HasDefaultSfixed64 {
  2814. get { return hasDefaultSfixed64; }
  2815. }
  2816. public long DefaultSfixed64 {
  2817. get { return defaultSfixed64_; }
  2818. }
  2819. public const int DefaultFloatFieldNumber = 71;
  2820. private bool hasDefaultFloat;
  2821. private float defaultFloat_ = 51.5F;
  2822. public bool HasDefaultFloat {
  2823. get { return hasDefaultFloat; }
  2824. }
  2825. public float DefaultFloat {
  2826. get { return defaultFloat_; }
  2827. }
  2828. public const int DefaultDoubleFieldNumber = 72;
  2829. private bool hasDefaultDouble;
  2830. private double defaultDouble_ = 52000D;
  2831. public bool HasDefaultDouble {
  2832. get { return hasDefaultDouble; }
  2833. }
  2834. public double DefaultDouble {
  2835. get { return defaultDouble_; }
  2836. }
  2837. public const int DefaultBoolFieldNumber = 73;
  2838. private bool hasDefaultBool;
  2839. private bool defaultBool_ = true;
  2840. public bool HasDefaultBool {
  2841. get { return hasDefaultBool; }
  2842. }
  2843. public bool DefaultBool {
  2844. get { return defaultBool_; }
  2845. }
  2846. public const int DefaultStringFieldNumber = 74;
  2847. private bool hasDefaultString;
  2848. private string defaultString_ = "hello";
  2849. public bool HasDefaultString {
  2850. get { return hasDefaultString; }
  2851. }
  2852. public string DefaultString {
  2853. get { return defaultString_; }
  2854. }
  2855. public const int DefaultBytesFieldNumber = 75;
  2856. private bool hasDefaultBytes;
  2857. private pb::ByteString defaultBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[65].DefaultValue;
  2858. public bool HasDefaultBytes {
  2859. get { return hasDefaultBytes; }
  2860. }
  2861. public pb::ByteString DefaultBytes {
  2862. get { return defaultBytes_; }
  2863. }
  2864. public const int DefaultNestedEnumFieldNumber = 81;
  2865. private bool hasDefaultNestedEnum;
  2866. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR;
  2867. public bool HasDefaultNestedEnum {
  2868. get { return hasDefaultNestedEnum; }
  2869. }
  2870. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum {
  2871. get { return defaultNestedEnum_; }
  2872. }
  2873. public const int DefaultForeignEnumFieldNumber = 82;
  2874. private bool hasDefaultForeignEnum;
  2875. private global::Google.ProtocolBuffers.TestProtos.ForeignEnum defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR;
  2876. public bool HasDefaultForeignEnum {
  2877. get { return hasDefaultForeignEnum; }
  2878. }
  2879. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum {
  2880. get { return defaultForeignEnum_; }
  2881. }
  2882. public const int DefaultImportEnumFieldNumber = 83;
  2883. private bool hasDefaultImportEnum;
  2884. private global::Google.ProtocolBuffers.TestProtos.ImportEnum defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR;
  2885. public bool HasDefaultImportEnum {
  2886. get { return hasDefaultImportEnum; }
  2887. }
  2888. public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum {
  2889. get { return defaultImportEnum_; }
  2890. }
  2891. public const int DefaultStringPieceFieldNumber = 84;
  2892. private bool hasDefaultStringPiece;
  2893. private string defaultStringPiece_ = "abc";
  2894. public bool HasDefaultStringPiece {
  2895. get { return hasDefaultStringPiece; }
  2896. }
  2897. public string DefaultStringPiece {
  2898. get { return defaultStringPiece_; }
  2899. }
  2900. public const int DefaultCordFieldNumber = 85;
  2901. private bool hasDefaultCord;
  2902. private string defaultCord_ = "123";
  2903. public bool HasDefaultCord {
  2904. get { return hasDefaultCord; }
  2905. }
  2906. public string DefaultCord {
  2907. get { return defaultCord_; }
  2908. }
  2909. public const int OneofUint32FieldNumber = 111;
  2910. private bool hasOneofUint32;
  2911. private uint oneofUint32_;
  2912. public bool HasOneofUint32 {
  2913. get { return hasOneofUint32; }
  2914. }
  2915. [global::System.CLSCompliant(false)]
  2916. public uint OneofUint32 {
  2917. get { return oneofUint32_; }
  2918. }
  2919. public const int OneofNestedMessageFieldNumber = 112;
  2920. private bool hasOneofNestedMessage;
  2921. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage oneofNestedMessage_;
  2922. public bool HasOneofNestedMessage {
  2923. get { return hasOneofNestedMessage; }
  2924. }
  2925. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OneofNestedMessage {
  2926. get { return oneofNestedMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; }
  2927. }
  2928. public const int OneofStringFieldNumber = 113;
  2929. private bool hasOneofString;
  2930. private string oneofString_ = "";
  2931. public bool HasOneofString {
  2932. get { return hasOneofString; }
  2933. }
  2934. public string OneofString {
  2935. get { return oneofString_; }
  2936. }
  2937. public const int OneofBytesFieldNumber = 114;
  2938. private bool hasOneofBytes;
  2939. private pb::ByteString oneofBytes_ = pb::ByteString.Empty;
  2940. public bool HasOneofBytes {
  2941. get { return hasOneofBytes; }
  2942. }
  2943. public pb::ByteString OneofBytes {
  2944. get { return oneofBytes_; }
  2945. }
  2946. public override bool IsInitialized {
  2947. get {
  2948. return true;
  2949. }
  2950. }
  2951. public override void WriteTo(pb::ICodedOutputStream output) {
  2952. CalcSerializedSize();
  2953. string[] field_names = _testAllTypesFieldNames;
  2954. if (hasOptionalInt32) {
  2955. output.WriteInt32(1, field_names[35], OptionalInt32);
  2956. }
  2957. if (hasOptionalInt64) {
  2958. output.WriteInt64(2, field_names[36], OptionalInt64);
  2959. }
  2960. if (hasOptionalUint32) {
  2961. output.WriteUInt32(3, field_names[47], OptionalUint32);
  2962. }
  2963. if (hasOptionalUint64) {
  2964. output.WriteUInt64(4, field_names[48], OptionalUint64);
  2965. }
  2966. if (hasOptionalSint32) {
  2967. output.WriteSInt32(5, field_names[43], OptionalSint32);
  2968. }
  2969. if (hasOptionalSint64) {
  2970. output.WriteSInt64(6, field_names[44], OptionalSint64);
  2971. }
  2972. if (hasOptionalFixed32) {
  2973. output.WriteFixed32(7, field_names[28], OptionalFixed32);
  2974. }
  2975. if (hasOptionalFixed64) {
  2976. output.WriteFixed64(8, field_names[29], OptionalFixed64);
  2977. }
  2978. if (hasOptionalSfixed32) {
  2979. output.WriteSFixed32(9, field_names[41], OptionalSfixed32);
  2980. }
  2981. if (hasOptionalSfixed64) {
  2982. output.WriteSFixed64(10, field_names[42], OptionalSfixed64);
  2983. }
  2984. if (hasOptionalFloat) {
  2985. output.WriteFloat(11, field_names[30], OptionalFloat);
  2986. }
  2987. if (hasOptionalDouble) {
  2988. output.WriteDouble(12, field_names[27], OptionalDouble);
  2989. }
  2990. if (hasOptionalBool) {
  2991. output.WriteBool(13, field_names[24], OptionalBool);
  2992. }
  2993. if (hasOptionalString) {
  2994. output.WriteString(14, field_names[45], OptionalString);
  2995. }
  2996. if (hasOptionalBytes) {
  2997. output.WriteBytes(15, field_names[25], OptionalBytes);
  2998. }
  2999. if (hasOptionalGroup) {
  3000. output.WriteGroup(16, field_names[49], OptionalGroup);
  3001. }
  3002. if (hasOptionalNestedMessage) {
  3003. output.WriteMessage(18, field_names[39], OptionalNestedMessage);
  3004. }
  3005. if (hasOptionalForeignMessage) {
  3006. output.WriteMessage(19, field_names[32], OptionalForeignMessage);
  3007. }
  3008. if (hasOptionalImportMessage) {
  3009. output.WriteMessage(20, field_names[34], OptionalImportMessage);
  3010. }
  3011. if (hasOptionalNestedEnum) {
  3012. output.WriteEnum(21, field_names[38], (int) OptionalNestedEnum, OptionalNestedEnum);
  3013. }
  3014. if (hasOptionalForeignEnum) {
  3015. output.WriteEnum(22, field_names[31], (int) OptionalForeignEnum, OptionalForeignEnum);
  3016. }
  3017. if (hasOptionalImportEnum) {
  3018. output.WriteEnum(23, field_names[33], (int) OptionalImportEnum, OptionalImportEnum);
  3019. }
  3020. if (hasOptionalStringPiece) {
  3021. output.WriteString(24, field_names[46], OptionalStringPiece);
  3022. }
  3023. if (hasOptionalCord) {
  3024. output.WriteString(25, field_names[26], OptionalCord);
  3025. }
  3026. if (hasOptionalPublicImportMessage) {
  3027. output.WriteMessage(26, field_names[40], OptionalPublicImportMessage);
  3028. }
  3029. if (hasOptionalLazyMessage) {
  3030. output.WriteMessage(27, field_names[37], OptionalLazyMessage);
  3031. }
  3032. if (repeatedInt32_.Count > 0) {
  3033. output.WriteInt32Array(31, field_names[61], repeatedInt32_);
  3034. }
  3035. if (repeatedInt64_.Count > 0) {
  3036. output.WriteInt64Array(32, field_names[62], repeatedInt64_);
  3037. }
  3038. if (repeatedUint32_.Count > 0) {
  3039. output.WriteUInt32Array(33, field_names[72], repeatedUint32_);
  3040. }
  3041. if (repeatedUint64_.Count > 0) {
  3042. output.WriteUInt64Array(34, field_names[73], repeatedUint64_);
  3043. }
  3044. if (repeatedSint32_.Count > 0) {
  3045. output.WriteSInt32Array(35, field_names[68], repeatedSint32_);
  3046. }
  3047. if (repeatedSint64_.Count > 0) {
  3048. output.WriteSInt64Array(36, field_names[69], repeatedSint64_);
  3049. }
  3050. if (repeatedFixed32_.Count > 0) {
  3051. output.WriteFixed32Array(37, field_names[54], repeatedFixed32_);
  3052. }
  3053. if (repeatedFixed64_.Count > 0) {
  3054. output.WriteFixed64Array(38, field_names[55], repeatedFixed64_);
  3055. }
  3056. if (repeatedSfixed32_.Count > 0) {
  3057. output.WriteSFixed32Array(39, field_names[66], repeatedSfixed32_);
  3058. }
  3059. if (repeatedSfixed64_.Count > 0) {
  3060. output.WriteSFixed64Array(40, field_names[67], repeatedSfixed64_);
  3061. }
  3062. if (repeatedFloat_.Count > 0) {
  3063. output.WriteFloatArray(41, field_names[56], repeatedFloat_);
  3064. }
  3065. if (repeatedDouble_.Count > 0) {
  3066. output.WriteDoubleArray(42, field_names[53], repeatedDouble_);
  3067. }
  3068. if (repeatedBool_.Count > 0) {
  3069. output.WriteBoolArray(43, field_names[50], repeatedBool_);
  3070. }
  3071. if (repeatedString_.Count > 0) {
  3072. output.WriteStringArray(44, field_names[70], repeatedString_);
  3073. }
  3074. if (repeatedBytes_.Count > 0) {
  3075. output.WriteBytesArray(45, field_names[51], repeatedBytes_);
  3076. }
  3077. if (repeatedGroup_.Count > 0) {
  3078. output.WriteGroupArray(46, field_names[74], repeatedGroup_);
  3079. }
  3080. if (repeatedNestedMessage_.Count > 0) {
  3081. output.WriteMessageArray(48, field_names[65], repeatedNestedMessage_);
  3082. }
  3083. if (repeatedForeignMessage_.Count > 0) {
  3084. output.WriteMessageArray(49, field_names[58], repeatedForeignMessage_);
  3085. }
  3086. if (repeatedImportMessage_.Count > 0) {
  3087. output.WriteMessageArray(50, field_names[60], repeatedImportMessage_);
  3088. }
  3089. if (repeatedNestedEnum_.Count > 0) {
  3090. output.WriteEnumArray(51, field_names[64], repeatedNestedEnum_);
  3091. }
  3092. if (repeatedForeignEnum_.Count > 0) {
  3093. output.WriteEnumArray(52, field_names[57], repeatedForeignEnum_);
  3094. }
  3095. if (repeatedImportEnum_.Count > 0) {
  3096. output.WriteEnumArray(53, field_names[59], repeatedImportEnum_);
  3097. }
  3098. if (repeatedStringPiece_.Count > 0) {
  3099. output.WriteStringArray(54, field_names[71], repeatedStringPiece_);
  3100. }
  3101. if (repeatedCord_.Count > 0) {
  3102. output.WriteStringArray(55, field_names[52], repeatedCord_);
  3103. }
  3104. if (repeatedLazyMessage_.Count > 0) {
  3105. output.WriteMessageArray(57, field_names[63], repeatedLazyMessage_);
  3106. }
  3107. if (hasDefaultInt32) {
  3108. output.WriteInt32(61, field_names[9], DefaultInt32);
  3109. }
  3110. if (hasDefaultInt64) {
  3111. output.WriteInt64(62, field_names[10], DefaultInt64);
  3112. }
  3113. if (hasDefaultUint32) {
  3114. output.WriteUInt32(63, field_names[18], DefaultUint32);
  3115. }
  3116. if (hasDefaultUint64) {
  3117. output.WriteUInt64(64, field_names[19], DefaultUint64);
  3118. }
  3119. if (hasDefaultSint32) {
  3120. output.WriteSInt32(65, field_names[14], DefaultSint32);
  3121. }
  3122. if (hasDefaultSint64) {
  3123. output.WriteSInt64(66, field_names[15], DefaultSint64);
  3124. }
  3125. if (hasDefaultFixed32) {
  3126. output.WriteFixed32(67, field_names[4], DefaultFixed32);
  3127. }
  3128. if (hasDefaultFixed64) {
  3129. output.WriteFixed64(68, field_names[5], DefaultFixed64);
  3130. }
  3131. if (hasDefaultSfixed32) {
  3132. output.WriteSFixed32(69, field_names[12], DefaultSfixed32);
  3133. }
  3134. if (hasDefaultSfixed64) {
  3135. output.WriteSFixed64(70, field_names[13], DefaultSfixed64);
  3136. }
  3137. if (hasDefaultFloat) {
  3138. output.WriteFloat(71, field_names[6], DefaultFloat);
  3139. }
  3140. if (hasDefaultDouble) {
  3141. output.WriteDouble(72, field_names[3], DefaultDouble);
  3142. }
  3143. if (hasDefaultBool) {
  3144. output.WriteBool(73, field_names[0], DefaultBool);
  3145. }
  3146. if (hasDefaultString) {
  3147. output.WriteString(74, field_names[16], DefaultString);
  3148. }
  3149. if (hasDefaultBytes) {
  3150. output.WriteBytes(75, field_names[1], DefaultBytes);
  3151. }
  3152. if (hasDefaultNestedEnum) {
  3153. output.WriteEnum(81, field_names[11], (int) DefaultNestedEnum, DefaultNestedEnum);
  3154. }
  3155. if (hasDefaultForeignEnum) {
  3156. output.WriteEnum(82, field_names[7], (int) DefaultForeignEnum, DefaultForeignEnum);
  3157. }
  3158. if (hasDefaultImportEnum) {
  3159. output.WriteEnum(83, field_names[8], (int) DefaultImportEnum, DefaultImportEnum);
  3160. }
  3161. if (hasDefaultStringPiece) {
  3162. output.WriteString(84, field_names[17], DefaultStringPiece);
  3163. }
  3164. if (hasDefaultCord) {
  3165. output.WriteString(85, field_names[2], DefaultCord);
  3166. }
  3167. if (hasOneofUint32) {
  3168. output.WriteUInt32(111, field_names[23], OneofUint32);
  3169. }
  3170. if (hasOneofNestedMessage) {
  3171. output.WriteMessage(112, field_names[21], OneofNestedMessage);
  3172. }
  3173. if (hasOneofString) {
  3174. output.WriteString(113, field_names[22], OneofString);
  3175. }
  3176. if (hasOneofBytes) {
  3177. output.WriteBytes(114, field_names[20], OneofBytes);
  3178. }
  3179. UnknownFields.WriteTo(output);
  3180. }
  3181. private int memoizedSerializedSize = -1;
  3182. public override int SerializedSize {
  3183. get {
  3184. int size = memoizedSerializedSize;
  3185. if (size != -1) return size;
  3186. return CalcSerializedSize();
  3187. }
  3188. }
  3189. private int CalcSerializedSize() {
  3190. int size = memoizedSerializedSize;
  3191. if (size != -1) return size;
  3192. size = 0;
  3193. if (hasOptionalInt32) {
  3194. size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32);
  3195. }
  3196. if (hasOptionalInt64) {
  3197. size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64);
  3198. }
  3199. if (hasOptionalUint32) {
  3200. size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32);
  3201. }
  3202. if (hasOptionalUint64) {
  3203. size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64);
  3204. }
  3205. if (hasOptionalSint32) {
  3206. size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32);
  3207. }
  3208. if (hasOptionalSint64) {
  3209. size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64);
  3210. }
  3211. if (hasOptionalFixed32) {
  3212. size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32);
  3213. }
  3214. if (hasOptionalFixed64) {
  3215. size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64);
  3216. }
  3217. if (hasOptionalSfixed32) {
  3218. size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32);
  3219. }
  3220. if (hasOptionalSfixed64) {
  3221. size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64);
  3222. }
  3223. if (hasOptionalFloat) {
  3224. size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat);
  3225. }
  3226. if (hasOptionalDouble) {
  3227. size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble);
  3228. }
  3229. if (hasOptionalBool) {
  3230. size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool);
  3231. }
  3232. if (hasOptionalString) {
  3233. size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString);
  3234. }
  3235. if (hasOptionalBytes) {
  3236. size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes);
  3237. }
  3238. if (hasOptionalGroup) {
  3239. size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup);
  3240. }
  3241. if (hasOptionalNestedMessage) {
  3242. size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage);
  3243. }
  3244. if (hasOptionalForeignMessage) {
  3245. size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage);
  3246. }
  3247. if (hasOptionalImportMessage) {
  3248. size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage);
  3249. }
  3250. if (hasOptionalNestedEnum) {
  3251. size += pb::CodedOutputStream.ComputeEnumSize(21, (int) OptionalNestedEnum);
  3252. }
  3253. if (hasOptionalForeignEnum) {
  3254. size += pb::CodedOutputStream.ComputeEnumSize(22, (int) OptionalForeignEnum);
  3255. }
  3256. if (hasOptionalImportEnum) {
  3257. size += pb::CodedOutputStream.ComputeEnumSize(23, (int) OptionalImportEnum);
  3258. }
  3259. if (hasOptionalStringPiece) {
  3260. size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece);
  3261. }
  3262. if (hasOptionalCord) {
  3263. size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord);
  3264. }
  3265. if (hasOptionalPublicImportMessage) {
  3266. size += pb::CodedOutputStream.ComputeMessageSize(26, OptionalPublicImportMessage);
  3267. }
  3268. if (hasOptionalLazyMessage) {
  3269. size += pb::CodedOutputStream.ComputeMessageSize(27, OptionalLazyMessage);
  3270. }
  3271. {
  3272. int dataSize = 0;
  3273. foreach (int element in RepeatedInt32List) {
  3274. dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
  3275. }
  3276. size += dataSize;
  3277. size += 2 * repeatedInt32_.Count;
  3278. }
  3279. {
  3280. int dataSize = 0;
  3281. foreach (long element in RepeatedInt64List) {
  3282. dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
  3283. }
  3284. size += dataSize;
  3285. size += 2 * repeatedInt64_.Count;
  3286. }
  3287. {
  3288. int dataSize = 0;
  3289. foreach (uint element in RepeatedUint32List) {
  3290. dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
  3291. }
  3292. size += dataSize;
  3293. size += 2 * repeatedUint32_.Count;
  3294. }
  3295. {
  3296. int dataSize = 0;
  3297. foreach (ulong element in RepeatedUint64List) {
  3298. dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
  3299. }
  3300. size += dataSize;
  3301. size += 2 * repeatedUint64_.Count;
  3302. }
  3303. {
  3304. int dataSize = 0;
  3305. foreach (int element in RepeatedSint32List) {
  3306. dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
  3307. }
  3308. size += dataSize;
  3309. size += 2 * repeatedSint32_.Count;
  3310. }
  3311. {
  3312. int dataSize = 0;
  3313. foreach (long element in RepeatedSint64List) {
  3314. dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
  3315. }
  3316. size += dataSize;
  3317. size += 2 * repeatedSint64_.Count;
  3318. }
  3319. {
  3320. int dataSize = 0;
  3321. dataSize = 4 * repeatedFixed32_.Count;
  3322. size += dataSize;
  3323. size += 2 * repeatedFixed32_.Count;
  3324. }
  3325. {
  3326. int dataSize = 0;
  3327. dataSize = 8 * repeatedFixed64_.Count;
  3328. size += dataSize;
  3329. size += 2 * repeatedFixed64_.Count;
  3330. }
  3331. {
  3332. int dataSize = 0;
  3333. dataSize = 4 * repeatedSfixed32_.Count;
  3334. size += dataSize;
  3335. size += 2 * repeatedSfixed32_.Count;
  3336. }
  3337. {
  3338. int dataSize = 0;
  3339. dataSize = 8 * repeatedSfixed64_.Count;
  3340. size += dataSize;
  3341. size += 2 * repeatedSfixed64_.Count;
  3342. }
  3343. {
  3344. int dataSize = 0;
  3345. dataSize = 4 * repeatedFloat_.Count;
  3346. size += dataSize;
  3347. size += 2 * repeatedFloat_.Count;
  3348. }
  3349. {
  3350. int dataSize = 0;
  3351. dataSize = 8 * repeatedDouble_.Count;
  3352. size += dataSize;
  3353. size += 2 * repeatedDouble_.Count;
  3354. }
  3355. {
  3356. int dataSize = 0;
  3357. dataSize = 1 * repeatedBool_.Count;
  3358. size += dataSize;
  3359. size += 2 * repeatedBool_.Count;
  3360. }
  3361. {
  3362. int dataSize = 0;
  3363. foreach (string element in RepeatedStringList) {
  3364. dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
  3365. }
  3366. size += dataSize;
  3367. size += 2 * repeatedString_.Count;
  3368. }
  3369. {
  3370. int dataSize = 0;
  3371. foreach (pb::ByteString element in RepeatedBytesList) {
  3372. dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element);
  3373. }
  3374. size += dataSize;
  3375. size += 2 * repeatedBytes_.Count;
  3376. }
  3377. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
  3378. size += pb::CodedOutputStream.ComputeGroupSize(46, element);
  3379. }
  3380. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
  3381. size += pb::CodedOutputStream.ComputeMessageSize(48, element);
  3382. }
  3383. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) {
  3384. size += pb::CodedOutputStream.ComputeMessageSize(49, element);
  3385. }
  3386. foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) {
  3387. size += pb::CodedOutputStream.ComputeMessageSize(50, element);
  3388. }
  3389. {
  3390. int dataSize = 0;
  3391. if (repeatedNestedEnum_.Count > 0) {
  3392. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in repeatedNestedEnum_) {
  3393. dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
  3394. }
  3395. size += dataSize;
  3396. size += 2 * repeatedNestedEnum_.Count;
  3397. }
  3398. }
  3399. {
  3400. int dataSize = 0;
  3401. if (repeatedForeignEnum_.Count > 0) {
  3402. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in repeatedForeignEnum_) {
  3403. dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
  3404. }
  3405. size += dataSize;
  3406. size += 2 * repeatedForeignEnum_.Count;
  3407. }
  3408. }
  3409. {
  3410. int dataSize = 0;
  3411. if (repeatedImportEnum_.Count > 0) {
  3412. foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in repeatedImportEnum_) {
  3413. dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
  3414. }
  3415. size += dataSize;
  3416. size += 2 * repeatedImportEnum_.Count;
  3417. }
  3418. }
  3419. {
  3420. int dataSize = 0;
  3421. foreach (string element in RepeatedStringPieceList) {
  3422. dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
  3423. }
  3424. size += dataSize;
  3425. size += 2 * repeatedStringPiece_.Count;
  3426. }
  3427. {
  3428. int dataSize = 0;
  3429. foreach (string element in RepeatedCordList) {
  3430. dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
  3431. }
  3432. size += dataSize;
  3433. size += 2 * repeatedCord_.Count;
  3434. }
  3435. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedLazyMessageList) {
  3436. size += pb::CodedOutputStream.ComputeMessageSize(57, element);
  3437. }
  3438. if (hasDefaultInt32) {
  3439. size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32);
  3440. }
  3441. if (hasDefaultInt64) {
  3442. size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64);
  3443. }
  3444. if (hasDefaultUint32) {
  3445. size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32);
  3446. }
  3447. if (hasDefaultUint64) {
  3448. size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64);
  3449. }
  3450. if (hasDefaultSint32) {
  3451. size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32);
  3452. }
  3453. if (hasDefaultSint64) {
  3454. size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64);
  3455. }
  3456. if (hasDefaultFixed32) {
  3457. size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32);
  3458. }
  3459. if (hasDefaultFixed64) {
  3460. size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64);
  3461. }
  3462. if (hasDefaultSfixed32) {
  3463. size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32);
  3464. }
  3465. if (hasDefaultSfixed64) {
  3466. size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64);
  3467. }
  3468. if (hasDefaultFloat) {
  3469. size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat);
  3470. }
  3471. if (hasDefaultDouble) {
  3472. size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble);
  3473. }
  3474. if (hasDefaultBool) {
  3475. size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool);
  3476. }
  3477. if (hasDefaultString) {
  3478. size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString);
  3479. }
  3480. if (hasDefaultBytes) {
  3481. size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes);
  3482. }
  3483. if (hasDefaultNestedEnum) {
  3484. size += pb::CodedOutputStream.ComputeEnumSize(81, (int) DefaultNestedEnum);
  3485. }
  3486. if (hasDefaultForeignEnum) {
  3487. size += pb::CodedOutputStream.ComputeEnumSize(82, (int) DefaultForeignEnum);
  3488. }
  3489. if (hasDefaultImportEnum) {
  3490. size += pb::CodedOutputStream.ComputeEnumSize(83, (int) DefaultImportEnum);
  3491. }
  3492. if (hasDefaultStringPiece) {
  3493. size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece);
  3494. }
  3495. if (hasDefaultCord) {
  3496. size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord);
  3497. }
  3498. if (hasOneofUint32) {
  3499. size += pb::CodedOutputStream.ComputeUInt32Size(111, OneofUint32);
  3500. }
  3501. if (hasOneofNestedMessage) {
  3502. size += pb::CodedOutputStream.ComputeMessageSize(112, OneofNestedMessage);
  3503. }
  3504. if (hasOneofString) {
  3505. size += pb::CodedOutputStream.ComputeStringSize(113, OneofString);
  3506. }
  3507. if (hasOneofBytes) {
  3508. size += pb::CodedOutputStream.ComputeBytesSize(114, OneofBytes);
  3509. }
  3510. size += UnknownFields.SerializedSize;
  3511. memoizedSerializedSize = size;
  3512. return size;
  3513. }
  3514. public static TestAllTypes ParseFrom(pb::ByteString data) {
  3515. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3516. }
  3517. public static TestAllTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  3518. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  3519. }
  3520. public static TestAllTypes ParseFrom(byte[] data) {
  3521. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3522. }
  3523. public static TestAllTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  3524. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  3525. }
  3526. public static TestAllTypes ParseFrom(global::System.IO.Stream input) {
  3527. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3528. }
  3529. public static TestAllTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  3530. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  3531. }
  3532. public static TestAllTypes ParseDelimitedFrom(global::System.IO.Stream input) {
  3533. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  3534. }
  3535. public static TestAllTypes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  3536. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  3537. }
  3538. public static TestAllTypes ParseFrom(pb::ICodedInputStream input) {
  3539. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3540. }
  3541. public static TestAllTypes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3542. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  3543. }
  3544. private TestAllTypes MakeReadOnly() {
  3545. repeatedInt32_.MakeReadOnly();
  3546. repeatedInt64_.MakeReadOnly();
  3547. repeatedUint32_.MakeReadOnly();
  3548. repeatedUint64_.MakeReadOnly();
  3549. repeatedSint32_.MakeReadOnly();
  3550. repeatedSint64_.MakeReadOnly();
  3551. repeatedFixed32_.MakeReadOnly();
  3552. repeatedFixed64_.MakeReadOnly();
  3553. repeatedSfixed32_.MakeReadOnly();
  3554. repeatedSfixed64_.MakeReadOnly();
  3555. repeatedFloat_.MakeReadOnly();
  3556. repeatedDouble_.MakeReadOnly();
  3557. repeatedBool_.MakeReadOnly();
  3558. repeatedString_.MakeReadOnly();
  3559. repeatedBytes_.MakeReadOnly();
  3560. repeatedGroup_.MakeReadOnly();
  3561. repeatedNestedMessage_.MakeReadOnly();
  3562. repeatedForeignMessage_.MakeReadOnly();
  3563. repeatedImportMessage_.MakeReadOnly();
  3564. repeatedNestedEnum_.MakeReadOnly();
  3565. repeatedForeignEnum_.MakeReadOnly();
  3566. repeatedImportEnum_.MakeReadOnly();
  3567. repeatedStringPiece_.MakeReadOnly();
  3568. repeatedCord_.MakeReadOnly();
  3569. repeatedLazyMessage_.MakeReadOnly();
  3570. return this;
  3571. }
  3572. public static Builder CreateBuilder() { return new Builder(); }
  3573. public override Builder ToBuilder() { return CreateBuilder(this); }
  3574. public override Builder CreateBuilderForType() { return new Builder(); }
  3575. public static Builder CreateBuilder(TestAllTypes prototype) {
  3576. return new Builder(prototype);
  3577. }
  3578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3579. public sealed partial class Builder : pb::GeneratedBuilder<TestAllTypes, Builder> {
  3580. protected override Builder ThisBuilder {
  3581. get { return this; }
  3582. }
  3583. public Builder() {
  3584. result = DefaultInstance;
  3585. resultIsReadOnly = true;
  3586. }
  3587. internal Builder(TestAllTypes cloneFrom) {
  3588. result = cloneFrom;
  3589. resultIsReadOnly = true;
  3590. }
  3591. private bool resultIsReadOnly;
  3592. private TestAllTypes result;
  3593. private TestAllTypes PrepareBuilder() {
  3594. if (resultIsReadOnly) {
  3595. TestAllTypes original = result;
  3596. result = new TestAllTypes();
  3597. resultIsReadOnly = false;
  3598. MergeFrom(original);
  3599. }
  3600. return result;
  3601. }
  3602. public override bool IsInitialized {
  3603. get { return result.IsInitialized; }
  3604. }
  3605. protected override TestAllTypes MessageBeingBuilt {
  3606. get { return PrepareBuilder(); }
  3607. }
  3608. public override Builder Clear() {
  3609. result = DefaultInstance;
  3610. resultIsReadOnly = true;
  3611. return this;
  3612. }
  3613. public override Builder Clone() {
  3614. if (resultIsReadOnly) {
  3615. return new Builder(result);
  3616. } else {
  3617. return new Builder().MergeFrom(result);
  3618. }
  3619. }
  3620. public override pbd::MessageDescriptor DescriptorForType {
  3621. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor; }
  3622. }
  3623. public override TestAllTypes DefaultInstanceForType {
  3624. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
  3625. }
  3626. public override TestAllTypes BuildPartial() {
  3627. if (resultIsReadOnly) {
  3628. return result;
  3629. }
  3630. resultIsReadOnly = true;
  3631. return result.MakeReadOnly();
  3632. }
  3633. public override Builder MergeFrom(pb::IMessage other) {
  3634. if (other is TestAllTypes) {
  3635. return MergeFrom((TestAllTypes) other);
  3636. } else {
  3637. base.MergeFrom(other);
  3638. return this;
  3639. }
  3640. }
  3641. public override Builder MergeFrom(TestAllTypes other) {
  3642. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) return this;
  3643. PrepareBuilder();
  3644. if (other.HasOptionalInt32) {
  3645. OptionalInt32 = other.OptionalInt32;
  3646. }
  3647. if (other.HasOptionalInt64) {
  3648. OptionalInt64 = other.OptionalInt64;
  3649. }
  3650. if (other.HasOptionalUint32) {
  3651. OptionalUint32 = other.OptionalUint32;
  3652. }
  3653. if (other.HasOptionalUint64) {
  3654. OptionalUint64 = other.OptionalUint64;
  3655. }
  3656. if (other.HasOptionalSint32) {
  3657. OptionalSint32 = other.OptionalSint32;
  3658. }
  3659. if (other.HasOptionalSint64) {
  3660. OptionalSint64 = other.OptionalSint64;
  3661. }
  3662. if (other.HasOptionalFixed32) {
  3663. OptionalFixed32 = other.OptionalFixed32;
  3664. }
  3665. if (other.HasOptionalFixed64) {
  3666. OptionalFixed64 = other.OptionalFixed64;
  3667. }
  3668. if (other.HasOptionalSfixed32) {
  3669. OptionalSfixed32 = other.OptionalSfixed32;
  3670. }
  3671. if (other.HasOptionalSfixed64) {
  3672. OptionalSfixed64 = other.OptionalSfixed64;
  3673. }
  3674. if (other.HasOptionalFloat) {
  3675. OptionalFloat = other.OptionalFloat;
  3676. }
  3677. if (other.HasOptionalDouble) {
  3678. OptionalDouble = other.OptionalDouble;
  3679. }
  3680. if (other.HasOptionalBool) {
  3681. OptionalBool = other.OptionalBool;
  3682. }
  3683. if (other.HasOptionalString) {
  3684. OptionalString = other.OptionalString;
  3685. }
  3686. if (other.HasOptionalBytes) {
  3687. OptionalBytes = other.OptionalBytes;
  3688. }
  3689. if (other.HasOptionalGroup) {
  3690. MergeOptionalGroup(other.OptionalGroup);
  3691. }
  3692. if (other.HasOptionalNestedMessage) {
  3693. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  3694. }
  3695. if (other.HasOptionalForeignMessage) {
  3696. MergeOptionalForeignMessage(other.OptionalForeignMessage);
  3697. }
  3698. if (other.HasOptionalImportMessage) {
  3699. MergeOptionalImportMessage(other.OptionalImportMessage);
  3700. }
  3701. if (other.HasOptionalNestedEnum) {
  3702. OptionalNestedEnum = other.OptionalNestedEnum;
  3703. }
  3704. if (other.HasOptionalForeignEnum) {
  3705. OptionalForeignEnum = other.OptionalForeignEnum;
  3706. }
  3707. if (other.HasOptionalImportEnum) {
  3708. OptionalImportEnum = other.OptionalImportEnum;
  3709. }
  3710. if (other.HasOptionalStringPiece) {
  3711. OptionalStringPiece = other.OptionalStringPiece;
  3712. }
  3713. if (other.HasOptionalCord) {
  3714. OptionalCord = other.OptionalCord;
  3715. }
  3716. if (other.HasOptionalPublicImportMessage) {
  3717. MergeOptionalPublicImportMessage(other.OptionalPublicImportMessage);
  3718. }
  3719. if (other.HasOptionalLazyMessage) {
  3720. MergeOptionalLazyMessage(other.OptionalLazyMessage);
  3721. }
  3722. if (other.repeatedInt32_.Count != 0) {
  3723. result.repeatedInt32_.Add(other.repeatedInt32_);
  3724. }
  3725. if (other.repeatedInt64_.Count != 0) {
  3726. result.repeatedInt64_.Add(other.repeatedInt64_);
  3727. }
  3728. if (other.repeatedUint32_.Count != 0) {
  3729. result.repeatedUint32_.Add(other.repeatedUint32_);
  3730. }
  3731. if (other.repeatedUint64_.Count != 0) {
  3732. result.repeatedUint64_.Add(other.repeatedUint64_);
  3733. }
  3734. if (other.repeatedSint32_.Count != 0) {
  3735. result.repeatedSint32_.Add(other.repeatedSint32_);
  3736. }
  3737. if (other.repeatedSint64_.Count != 0) {
  3738. result.repeatedSint64_.Add(other.repeatedSint64_);
  3739. }
  3740. if (other.repeatedFixed32_.Count != 0) {
  3741. result.repeatedFixed32_.Add(other.repeatedFixed32_);
  3742. }
  3743. if (other.repeatedFixed64_.Count != 0) {
  3744. result.repeatedFixed64_.Add(other.repeatedFixed64_);
  3745. }
  3746. if (other.repeatedSfixed32_.Count != 0) {
  3747. result.repeatedSfixed32_.Add(other.repeatedSfixed32_);
  3748. }
  3749. if (other.repeatedSfixed64_.Count != 0) {
  3750. result.repeatedSfixed64_.Add(other.repeatedSfixed64_);
  3751. }
  3752. if (other.repeatedFloat_.Count != 0) {
  3753. result.repeatedFloat_.Add(other.repeatedFloat_);
  3754. }
  3755. if (other.repeatedDouble_.Count != 0) {
  3756. result.repeatedDouble_.Add(other.repeatedDouble_);
  3757. }
  3758. if (other.repeatedBool_.Count != 0) {
  3759. result.repeatedBool_.Add(other.repeatedBool_);
  3760. }
  3761. if (other.repeatedString_.Count != 0) {
  3762. result.repeatedString_.Add(other.repeatedString_);
  3763. }
  3764. if (other.repeatedBytes_.Count != 0) {
  3765. result.repeatedBytes_.Add(other.repeatedBytes_);
  3766. }
  3767. if (other.repeatedGroup_.Count != 0) {
  3768. result.repeatedGroup_.Add(other.repeatedGroup_);
  3769. }
  3770. if (other.repeatedNestedMessage_.Count != 0) {
  3771. result.repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
  3772. }
  3773. if (other.repeatedForeignMessage_.Count != 0) {
  3774. result.repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
  3775. }
  3776. if (other.repeatedImportMessage_.Count != 0) {
  3777. result.repeatedImportMessage_.Add(other.repeatedImportMessage_);
  3778. }
  3779. if (other.repeatedNestedEnum_.Count != 0) {
  3780. result.repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
  3781. }
  3782. if (other.repeatedForeignEnum_.Count != 0) {
  3783. result.repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
  3784. }
  3785. if (other.repeatedImportEnum_.Count != 0) {
  3786. result.repeatedImportEnum_.Add(other.repeatedImportEnum_);
  3787. }
  3788. if (other.repeatedStringPiece_.Count != 0) {
  3789. result.repeatedStringPiece_.Add(other.repeatedStringPiece_);
  3790. }
  3791. if (other.repeatedCord_.Count != 0) {
  3792. result.repeatedCord_.Add(other.repeatedCord_);
  3793. }
  3794. if (other.repeatedLazyMessage_.Count != 0) {
  3795. result.repeatedLazyMessage_.Add(other.repeatedLazyMessage_);
  3796. }
  3797. if (other.HasDefaultInt32) {
  3798. DefaultInt32 = other.DefaultInt32;
  3799. }
  3800. if (other.HasDefaultInt64) {
  3801. DefaultInt64 = other.DefaultInt64;
  3802. }
  3803. if (other.HasDefaultUint32) {
  3804. DefaultUint32 = other.DefaultUint32;
  3805. }
  3806. if (other.HasDefaultUint64) {
  3807. DefaultUint64 = other.DefaultUint64;
  3808. }
  3809. if (other.HasDefaultSint32) {
  3810. DefaultSint32 = other.DefaultSint32;
  3811. }
  3812. if (other.HasDefaultSint64) {
  3813. DefaultSint64 = other.DefaultSint64;
  3814. }
  3815. if (other.HasDefaultFixed32) {
  3816. DefaultFixed32 = other.DefaultFixed32;
  3817. }
  3818. if (other.HasDefaultFixed64) {
  3819. DefaultFixed64 = other.DefaultFixed64;
  3820. }
  3821. if (other.HasDefaultSfixed32) {
  3822. DefaultSfixed32 = other.DefaultSfixed32;
  3823. }
  3824. if (other.HasDefaultSfixed64) {
  3825. DefaultSfixed64 = other.DefaultSfixed64;
  3826. }
  3827. if (other.HasDefaultFloat) {
  3828. DefaultFloat = other.DefaultFloat;
  3829. }
  3830. if (other.HasDefaultDouble) {
  3831. DefaultDouble = other.DefaultDouble;
  3832. }
  3833. if (other.HasDefaultBool) {
  3834. DefaultBool = other.DefaultBool;
  3835. }
  3836. if (other.HasDefaultString) {
  3837. DefaultString = other.DefaultString;
  3838. }
  3839. if (other.HasDefaultBytes) {
  3840. DefaultBytes = other.DefaultBytes;
  3841. }
  3842. if (other.HasDefaultNestedEnum) {
  3843. DefaultNestedEnum = other.DefaultNestedEnum;
  3844. }
  3845. if (other.HasDefaultForeignEnum) {
  3846. DefaultForeignEnum = other.DefaultForeignEnum;
  3847. }
  3848. if (other.HasDefaultImportEnum) {
  3849. DefaultImportEnum = other.DefaultImportEnum;
  3850. }
  3851. if (other.HasDefaultStringPiece) {
  3852. DefaultStringPiece = other.DefaultStringPiece;
  3853. }
  3854. if (other.HasDefaultCord) {
  3855. DefaultCord = other.DefaultCord;
  3856. }
  3857. if (other.HasOneofUint32) {
  3858. OneofUint32 = other.OneofUint32;
  3859. }
  3860. if (other.HasOneofNestedMessage) {
  3861. MergeOneofNestedMessage(other.OneofNestedMessage);
  3862. }
  3863. if (other.HasOneofString) {
  3864. OneofString = other.OneofString;
  3865. }
  3866. if (other.HasOneofBytes) {
  3867. OneofBytes = other.OneofBytes;
  3868. }
  3869. this.MergeUnknownFields(other.UnknownFields);
  3870. return this;
  3871. }
  3872. public override Builder MergeFrom(pb::ICodedInputStream input) {
  3873. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  3874. }
  3875. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3876. PrepareBuilder();
  3877. pb::UnknownFieldSet.Builder unknownFields = null;
  3878. uint tag;
  3879. string field_name;
  3880. while (input.ReadTag(out tag, out field_name)) {
  3881. if(tag == 0 && field_name != null) {
  3882. int field_ordinal = global::System.Array.BinarySearch(_testAllTypesFieldNames, field_name, global::System.StringComparer.Ordinal);
  3883. if(field_ordinal >= 0)
  3884. tag = _testAllTypesFieldTags[field_ordinal];
  3885. else {
  3886. if (unknownFields == null) {
  3887. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3888. }
  3889. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  3890. continue;
  3891. }
  3892. }
  3893. switch (tag) {
  3894. case 0: {
  3895. throw pb::InvalidProtocolBufferException.InvalidTag();
  3896. }
  3897. default: {
  3898. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3899. if (unknownFields != null) {
  3900. this.UnknownFields = unknownFields.Build();
  3901. }
  3902. return this;
  3903. }
  3904. if (unknownFields == null) {
  3905. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3906. }
  3907. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  3908. break;
  3909. }
  3910. case 8: {
  3911. result.hasOptionalInt32 = input.ReadInt32(ref result.optionalInt32_);
  3912. break;
  3913. }
  3914. case 16: {
  3915. result.hasOptionalInt64 = input.ReadInt64(ref result.optionalInt64_);
  3916. break;
  3917. }
  3918. case 24: {
  3919. result.hasOptionalUint32 = input.ReadUInt32(ref result.optionalUint32_);
  3920. break;
  3921. }
  3922. case 32: {
  3923. result.hasOptionalUint64 = input.ReadUInt64(ref result.optionalUint64_);
  3924. break;
  3925. }
  3926. case 40: {
  3927. result.hasOptionalSint32 = input.ReadSInt32(ref result.optionalSint32_);
  3928. break;
  3929. }
  3930. case 48: {
  3931. result.hasOptionalSint64 = input.ReadSInt64(ref result.optionalSint64_);
  3932. break;
  3933. }
  3934. case 61: {
  3935. result.hasOptionalFixed32 = input.ReadFixed32(ref result.optionalFixed32_);
  3936. break;
  3937. }
  3938. case 65: {
  3939. result.hasOptionalFixed64 = input.ReadFixed64(ref result.optionalFixed64_);
  3940. break;
  3941. }
  3942. case 77: {
  3943. result.hasOptionalSfixed32 = input.ReadSFixed32(ref result.optionalSfixed32_);
  3944. break;
  3945. }
  3946. case 81: {
  3947. result.hasOptionalSfixed64 = input.ReadSFixed64(ref result.optionalSfixed64_);
  3948. break;
  3949. }
  3950. case 93: {
  3951. result.hasOptionalFloat = input.ReadFloat(ref result.optionalFloat_);
  3952. break;
  3953. }
  3954. case 97: {
  3955. result.hasOptionalDouble = input.ReadDouble(ref result.optionalDouble_);
  3956. break;
  3957. }
  3958. case 104: {
  3959. result.hasOptionalBool = input.ReadBool(ref result.optionalBool_);
  3960. break;
  3961. }
  3962. case 114: {
  3963. result.hasOptionalString = input.ReadString(ref result.optionalString_);
  3964. break;
  3965. }
  3966. case 122: {
  3967. result.hasOptionalBytes = input.ReadBytes(ref result.optionalBytes_);
  3968. break;
  3969. }
  3970. case 131: {
  3971. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder();
  3972. if (result.hasOptionalGroup) {
  3973. subBuilder.MergeFrom(OptionalGroup);
  3974. }
  3975. input.ReadGroup(16, subBuilder, extensionRegistry);
  3976. OptionalGroup = subBuilder.BuildPartial();
  3977. break;
  3978. }
  3979. case 146: {
  3980. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
  3981. if (result.hasOptionalNestedMessage) {
  3982. subBuilder.MergeFrom(OptionalNestedMessage);
  3983. }
  3984. input.ReadMessage(subBuilder, extensionRegistry);
  3985. OptionalNestedMessage = subBuilder.BuildPartial();
  3986. break;
  3987. }
  3988. case 154: {
  3989. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  3990. if (result.hasOptionalForeignMessage) {
  3991. subBuilder.MergeFrom(OptionalForeignMessage);
  3992. }
  3993. input.ReadMessage(subBuilder, extensionRegistry);
  3994. OptionalForeignMessage = subBuilder.BuildPartial();
  3995. break;
  3996. }
  3997. case 162: {
  3998. global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder();
  3999. if (result.hasOptionalImportMessage) {
  4000. subBuilder.MergeFrom(OptionalImportMessage);
  4001. }
  4002. input.ReadMessage(subBuilder, extensionRegistry);
  4003. OptionalImportMessage = subBuilder.BuildPartial();
  4004. break;
  4005. }
  4006. case 168: {
  4007. object unknown;
  4008. if(input.ReadEnum(ref result.optionalNestedEnum_, out unknown)) {
  4009. result.hasOptionalNestedEnum = true;
  4010. } else if(unknown is int) {
  4011. if (unknownFields == null) {
  4012. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4013. }
  4014. unknownFields.MergeVarintField(21, (ulong)(int)unknown);
  4015. }
  4016. break;
  4017. }
  4018. case 176: {
  4019. object unknown;
  4020. if(input.ReadEnum(ref result.optionalForeignEnum_, out unknown)) {
  4021. result.hasOptionalForeignEnum = true;
  4022. } else if(unknown is int) {
  4023. if (unknownFields == null) {
  4024. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4025. }
  4026. unknownFields.MergeVarintField(22, (ulong)(int)unknown);
  4027. }
  4028. break;
  4029. }
  4030. case 184: {
  4031. object unknown;
  4032. if(input.ReadEnum(ref result.optionalImportEnum_, out unknown)) {
  4033. result.hasOptionalImportEnum = true;
  4034. } else if(unknown is int) {
  4035. if (unknownFields == null) {
  4036. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4037. }
  4038. unknownFields.MergeVarintField(23, (ulong)(int)unknown);
  4039. }
  4040. break;
  4041. }
  4042. case 194: {
  4043. result.hasOptionalStringPiece = input.ReadString(ref result.optionalStringPiece_);
  4044. break;
  4045. }
  4046. case 202: {
  4047. result.hasOptionalCord = input.ReadString(ref result.optionalCord_);
  4048. break;
  4049. }
  4050. case 210: {
  4051. global::Google.ProtocolBuffers.TestProtos.PublicImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.PublicImportMessage.CreateBuilder();
  4052. if (result.hasOptionalPublicImportMessage) {
  4053. subBuilder.MergeFrom(OptionalPublicImportMessage);
  4054. }
  4055. input.ReadMessage(subBuilder, extensionRegistry);
  4056. OptionalPublicImportMessage = subBuilder.BuildPartial();
  4057. break;
  4058. }
  4059. case 218: {
  4060. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
  4061. if (result.hasOptionalLazyMessage) {
  4062. subBuilder.MergeFrom(OptionalLazyMessage);
  4063. }
  4064. input.ReadMessage(subBuilder, extensionRegistry);
  4065. OptionalLazyMessage = subBuilder.BuildPartial();
  4066. break;
  4067. }
  4068. case 250:
  4069. case 248: {
  4070. input.ReadInt32Array(tag, field_name, result.repeatedInt32_);
  4071. break;
  4072. }
  4073. case 258:
  4074. case 256: {
  4075. input.ReadInt64Array(tag, field_name, result.repeatedInt64_);
  4076. break;
  4077. }
  4078. case 266:
  4079. case 264: {
  4080. input.ReadUInt32Array(tag, field_name, result.repeatedUint32_);
  4081. break;
  4082. }
  4083. case 274:
  4084. case 272: {
  4085. input.ReadUInt64Array(tag, field_name, result.repeatedUint64_);
  4086. break;
  4087. }
  4088. case 282:
  4089. case 280: {
  4090. input.ReadSInt32Array(tag, field_name, result.repeatedSint32_);
  4091. break;
  4092. }
  4093. case 290:
  4094. case 288: {
  4095. input.ReadSInt64Array(tag, field_name, result.repeatedSint64_);
  4096. break;
  4097. }
  4098. case 298:
  4099. case 301: {
  4100. input.ReadFixed32Array(tag, field_name, result.repeatedFixed32_);
  4101. break;
  4102. }
  4103. case 306:
  4104. case 305: {
  4105. input.ReadFixed64Array(tag, field_name, result.repeatedFixed64_);
  4106. break;
  4107. }
  4108. case 314:
  4109. case 317: {
  4110. input.ReadSFixed32Array(tag, field_name, result.repeatedSfixed32_);
  4111. break;
  4112. }
  4113. case 322:
  4114. case 321: {
  4115. input.ReadSFixed64Array(tag, field_name, result.repeatedSfixed64_);
  4116. break;
  4117. }
  4118. case 330:
  4119. case 333: {
  4120. input.ReadFloatArray(tag, field_name, result.repeatedFloat_);
  4121. break;
  4122. }
  4123. case 338:
  4124. case 337: {
  4125. input.ReadDoubleArray(tag, field_name, result.repeatedDouble_);
  4126. break;
  4127. }
  4128. case 346:
  4129. case 344: {
  4130. input.ReadBoolArray(tag, field_name, result.repeatedBool_);
  4131. break;
  4132. }
  4133. case 354: {
  4134. input.ReadStringArray(tag, field_name, result.repeatedString_);
  4135. break;
  4136. }
  4137. case 362: {
  4138. input.ReadBytesArray(tag, field_name, result.repeatedBytes_);
  4139. break;
  4140. }
  4141. case 371: {
  4142. input.ReadGroupArray(tag, field_name, result.repeatedGroup_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance, extensionRegistry);
  4143. break;
  4144. }
  4145. case 386: {
  4146. input.ReadMessageArray(tag, field_name, result.repeatedNestedMessage_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance, extensionRegistry);
  4147. break;
  4148. }
  4149. case 394: {
  4150. input.ReadMessageArray(tag, field_name, result.repeatedForeignMessage_, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance, extensionRegistry);
  4151. break;
  4152. }
  4153. case 402: {
  4154. input.ReadMessageArray(tag, field_name, result.repeatedImportMessage_, global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance, extensionRegistry);
  4155. break;
  4156. }
  4157. case 410:
  4158. case 408: {
  4159. scg::ICollection<object> unknownItems;
  4160. input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>(tag, field_name, result.repeatedNestedEnum_, out unknownItems);
  4161. if (unknownItems != null) {
  4162. if (unknownFields == null) {
  4163. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4164. }
  4165. foreach (object rawValue in unknownItems)
  4166. if (rawValue is int)
  4167. unknownFields.MergeVarintField(51, (ulong)(int)rawValue);
  4168. }
  4169. break;
  4170. }
  4171. case 418:
  4172. case 416: {
  4173. scg::ICollection<object> unknownItems;
  4174. input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(tag, field_name, result.repeatedForeignEnum_, out unknownItems);
  4175. if (unknownItems != null) {
  4176. if (unknownFields == null) {
  4177. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4178. }
  4179. foreach (object rawValue in unknownItems)
  4180. if (rawValue is int)
  4181. unknownFields.MergeVarintField(52, (ulong)(int)rawValue);
  4182. }
  4183. break;
  4184. }
  4185. case 426:
  4186. case 424: {
  4187. scg::ICollection<object> unknownItems;
  4188. input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ImportEnum>(tag, field_name, result.repeatedImportEnum_, out unknownItems);
  4189. if (unknownItems != null) {
  4190. if (unknownFields == null) {
  4191. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4192. }
  4193. foreach (object rawValue in unknownItems)
  4194. if (rawValue is int)
  4195. unknownFields.MergeVarintField(53, (ulong)(int)rawValue);
  4196. }
  4197. break;
  4198. }
  4199. case 434: {
  4200. input.ReadStringArray(tag, field_name, result.repeatedStringPiece_);
  4201. break;
  4202. }
  4203. case 442: {
  4204. input.ReadStringArray(tag, field_name, result.repeatedCord_);
  4205. break;
  4206. }
  4207. case 458: {
  4208. input.ReadMessageArray(tag, field_name, result.repeatedLazyMessage_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance, extensionRegistry);
  4209. break;
  4210. }
  4211. case 488: {
  4212. result.hasDefaultInt32 = input.ReadInt32(ref result.defaultInt32_);
  4213. break;
  4214. }
  4215. case 496: {
  4216. result.hasDefaultInt64 = input.ReadInt64(ref result.defaultInt64_);
  4217. break;
  4218. }
  4219. case 504: {
  4220. result.hasDefaultUint32 = input.ReadUInt32(ref result.defaultUint32_);
  4221. break;
  4222. }
  4223. case 512: {
  4224. result.hasDefaultUint64 = input.ReadUInt64(ref result.defaultUint64_);
  4225. break;
  4226. }
  4227. case 520: {
  4228. result.hasDefaultSint32 = input.ReadSInt32(ref result.defaultSint32_);
  4229. break;
  4230. }
  4231. case 528: {
  4232. result.hasDefaultSint64 = input.ReadSInt64(ref result.defaultSint64_);
  4233. break;
  4234. }
  4235. case 541: {
  4236. result.hasDefaultFixed32 = input.ReadFixed32(ref result.defaultFixed32_);
  4237. break;
  4238. }
  4239. case 545: {
  4240. result.hasDefaultFixed64 = input.ReadFixed64(ref result.defaultFixed64_);
  4241. break;
  4242. }
  4243. case 557: {
  4244. result.hasDefaultSfixed32 = input.ReadSFixed32(ref result.defaultSfixed32_);
  4245. break;
  4246. }
  4247. case 561: {
  4248. result.hasDefaultSfixed64 = input.ReadSFixed64(ref result.defaultSfixed64_);
  4249. break;
  4250. }
  4251. case 573: {
  4252. result.hasDefaultFloat = input.ReadFloat(ref result.defaultFloat_);
  4253. break;
  4254. }
  4255. case 577: {
  4256. result.hasDefaultDouble = input.ReadDouble(ref result.defaultDouble_);
  4257. break;
  4258. }
  4259. case 584: {
  4260. result.hasDefaultBool = input.ReadBool(ref result.defaultBool_);
  4261. break;
  4262. }
  4263. case 594: {
  4264. result.hasDefaultString = input.ReadString(ref result.defaultString_);
  4265. break;
  4266. }
  4267. case 602: {
  4268. result.hasDefaultBytes = input.ReadBytes(ref result.defaultBytes_);
  4269. break;
  4270. }
  4271. case 648: {
  4272. object unknown;
  4273. if(input.ReadEnum(ref result.defaultNestedEnum_, out unknown)) {
  4274. result.hasDefaultNestedEnum = true;
  4275. } else if(unknown is int) {
  4276. if (unknownFields == null) {
  4277. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4278. }
  4279. unknownFields.MergeVarintField(81, (ulong)(int)unknown);
  4280. }
  4281. break;
  4282. }
  4283. case 656: {
  4284. object unknown;
  4285. if(input.ReadEnum(ref result.defaultForeignEnum_, out unknown)) {
  4286. result.hasDefaultForeignEnum = true;
  4287. } else if(unknown is int) {
  4288. if (unknownFields == null) {
  4289. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4290. }
  4291. unknownFields.MergeVarintField(82, (ulong)(int)unknown);
  4292. }
  4293. break;
  4294. }
  4295. case 664: {
  4296. object unknown;
  4297. if(input.ReadEnum(ref result.defaultImportEnum_, out unknown)) {
  4298. result.hasDefaultImportEnum = true;
  4299. } else if(unknown is int) {
  4300. if (unknownFields == null) {
  4301. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4302. }
  4303. unknownFields.MergeVarintField(83, (ulong)(int)unknown);
  4304. }
  4305. break;
  4306. }
  4307. case 674: {
  4308. result.hasDefaultStringPiece = input.ReadString(ref result.defaultStringPiece_);
  4309. break;
  4310. }
  4311. case 682: {
  4312. result.hasDefaultCord = input.ReadString(ref result.defaultCord_);
  4313. break;
  4314. }
  4315. case 888: {
  4316. result.hasOneofUint32 = input.ReadUInt32(ref result.oneofUint32_);
  4317. break;
  4318. }
  4319. case 898: {
  4320. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
  4321. if (result.hasOneofNestedMessage) {
  4322. subBuilder.MergeFrom(OneofNestedMessage);
  4323. }
  4324. input.ReadMessage(subBuilder, extensionRegistry);
  4325. OneofNestedMessage = subBuilder.BuildPartial();
  4326. break;
  4327. }
  4328. case 906: {
  4329. result.hasOneofString = input.ReadString(ref result.oneofString_);
  4330. break;
  4331. }
  4332. case 914: {
  4333. result.hasOneofBytes = input.ReadBytes(ref result.oneofBytes_);
  4334. break;
  4335. }
  4336. }
  4337. }
  4338. if (unknownFields != null) {
  4339. this.UnknownFields = unknownFields.Build();
  4340. }
  4341. return this;
  4342. }
  4343. public bool HasOptionalInt32 {
  4344. get { return result.hasOptionalInt32; }
  4345. }
  4346. public int OptionalInt32 {
  4347. get { return result.OptionalInt32; }
  4348. set { SetOptionalInt32(value); }
  4349. }
  4350. public Builder SetOptionalInt32(int value) {
  4351. PrepareBuilder();
  4352. result.hasOptionalInt32 = true;
  4353. result.optionalInt32_ = value;
  4354. return this;
  4355. }
  4356. public Builder ClearOptionalInt32() {
  4357. PrepareBuilder();
  4358. result.hasOptionalInt32 = false;
  4359. result.optionalInt32_ = 0;
  4360. return this;
  4361. }
  4362. public bool HasOptionalInt64 {
  4363. get { return result.hasOptionalInt64; }
  4364. }
  4365. public long OptionalInt64 {
  4366. get { return result.OptionalInt64; }
  4367. set { SetOptionalInt64(value); }
  4368. }
  4369. public Builder SetOptionalInt64(long value) {
  4370. PrepareBuilder();
  4371. result.hasOptionalInt64 = true;
  4372. result.optionalInt64_ = value;
  4373. return this;
  4374. }
  4375. public Builder ClearOptionalInt64() {
  4376. PrepareBuilder();
  4377. result.hasOptionalInt64 = false;
  4378. result.optionalInt64_ = 0L;
  4379. return this;
  4380. }
  4381. public bool HasOptionalUint32 {
  4382. get { return result.hasOptionalUint32; }
  4383. }
  4384. [global::System.CLSCompliant(false)]
  4385. public uint OptionalUint32 {
  4386. get { return result.OptionalUint32; }
  4387. set { SetOptionalUint32(value); }
  4388. }
  4389. [global::System.CLSCompliant(false)]
  4390. public Builder SetOptionalUint32(uint value) {
  4391. PrepareBuilder();
  4392. result.hasOptionalUint32 = true;
  4393. result.optionalUint32_ = value;
  4394. return this;
  4395. }
  4396. public Builder ClearOptionalUint32() {
  4397. PrepareBuilder();
  4398. result.hasOptionalUint32 = false;
  4399. result.optionalUint32_ = 0;
  4400. return this;
  4401. }
  4402. public bool HasOptionalUint64 {
  4403. get { return result.hasOptionalUint64; }
  4404. }
  4405. [global::System.CLSCompliant(false)]
  4406. public ulong OptionalUint64 {
  4407. get { return result.OptionalUint64; }
  4408. set { SetOptionalUint64(value); }
  4409. }
  4410. [global::System.CLSCompliant(false)]
  4411. public Builder SetOptionalUint64(ulong value) {
  4412. PrepareBuilder();
  4413. result.hasOptionalUint64 = true;
  4414. result.optionalUint64_ = value;
  4415. return this;
  4416. }
  4417. public Builder ClearOptionalUint64() {
  4418. PrepareBuilder();
  4419. result.hasOptionalUint64 = false;
  4420. result.optionalUint64_ = 0UL;
  4421. return this;
  4422. }
  4423. public bool HasOptionalSint32 {
  4424. get { return result.hasOptionalSint32; }
  4425. }
  4426. public int OptionalSint32 {
  4427. get { return result.OptionalSint32; }
  4428. set { SetOptionalSint32(value); }
  4429. }
  4430. public Builder SetOptionalSint32(int value) {
  4431. PrepareBuilder();
  4432. result.hasOptionalSint32 = true;
  4433. result.optionalSint32_ = value;
  4434. return this;
  4435. }
  4436. public Builder ClearOptionalSint32() {
  4437. PrepareBuilder();
  4438. result.hasOptionalSint32 = false;
  4439. result.optionalSint32_ = 0;
  4440. return this;
  4441. }
  4442. public bool HasOptionalSint64 {
  4443. get { return result.hasOptionalSint64; }
  4444. }
  4445. public long OptionalSint64 {
  4446. get { return result.OptionalSint64; }
  4447. set { SetOptionalSint64(value); }
  4448. }
  4449. public Builder SetOptionalSint64(long value) {
  4450. PrepareBuilder();
  4451. result.hasOptionalSint64 = true;
  4452. result.optionalSint64_ = value;
  4453. return this;
  4454. }
  4455. public Builder ClearOptionalSint64() {
  4456. PrepareBuilder();
  4457. result.hasOptionalSint64 = false;
  4458. result.optionalSint64_ = 0L;
  4459. return this;
  4460. }
  4461. public bool HasOptionalFixed32 {
  4462. get { return result.hasOptionalFixed32; }
  4463. }
  4464. [global::System.CLSCompliant(false)]
  4465. public uint OptionalFixed32 {
  4466. get { return result.OptionalFixed32; }
  4467. set { SetOptionalFixed32(value); }
  4468. }
  4469. [global::System.CLSCompliant(false)]
  4470. public Builder SetOptionalFixed32(uint value) {
  4471. PrepareBuilder();
  4472. result.hasOptionalFixed32 = true;
  4473. result.optionalFixed32_ = value;
  4474. return this;
  4475. }
  4476. public Builder ClearOptionalFixed32() {
  4477. PrepareBuilder();
  4478. result.hasOptionalFixed32 = false;
  4479. result.optionalFixed32_ = 0;
  4480. return this;
  4481. }
  4482. public bool HasOptionalFixed64 {
  4483. get { return result.hasOptionalFixed64; }
  4484. }
  4485. [global::System.CLSCompliant(false)]
  4486. public ulong OptionalFixed64 {
  4487. get { return result.OptionalFixed64; }
  4488. set { SetOptionalFixed64(value); }
  4489. }
  4490. [global::System.CLSCompliant(false)]
  4491. public Builder SetOptionalFixed64(ulong value) {
  4492. PrepareBuilder();
  4493. result.hasOptionalFixed64 = true;
  4494. result.optionalFixed64_ = value;
  4495. return this;
  4496. }
  4497. public Builder ClearOptionalFixed64() {
  4498. PrepareBuilder();
  4499. result.hasOptionalFixed64 = false;
  4500. result.optionalFixed64_ = 0UL;
  4501. return this;
  4502. }
  4503. public bool HasOptionalSfixed32 {
  4504. get { return result.hasOptionalSfixed32; }
  4505. }
  4506. public int OptionalSfixed32 {
  4507. get { return result.OptionalSfixed32; }
  4508. set { SetOptionalSfixed32(value); }
  4509. }
  4510. public Builder SetOptionalSfixed32(int value) {
  4511. PrepareBuilder();
  4512. result.hasOptionalSfixed32 = true;
  4513. result.optionalSfixed32_ = value;
  4514. return this;
  4515. }
  4516. public Builder ClearOptionalSfixed32() {
  4517. PrepareBuilder();
  4518. result.hasOptionalSfixed32 = false;
  4519. result.optionalSfixed32_ = 0;
  4520. return this;
  4521. }
  4522. public bool HasOptionalSfixed64 {
  4523. get { return result.hasOptionalSfixed64; }
  4524. }
  4525. public long OptionalSfixed64 {
  4526. get { return result.OptionalSfixed64; }
  4527. set { SetOptionalSfixed64(value); }
  4528. }
  4529. public Builder SetOptionalSfixed64(long value) {
  4530. PrepareBuilder();
  4531. result.hasOptionalSfixed64 = true;
  4532. result.optionalSfixed64_ = value;
  4533. return this;
  4534. }
  4535. public Builder ClearOptionalSfixed64() {
  4536. PrepareBuilder();
  4537. result.hasOptionalSfixed64 = false;
  4538. result.optionalSfixed64_ = 0L;
  4539. return this;
  4540. }
  4541. public bool HasOptionalFloat {
  4542. get { return result.hasOptionalFloat; }
  4543. }
  4544. public float OptionalFloat {
  4545. get { return result.OptionalFloat; }
  4546. set { SetOptionalFloat(value); }
  4547. }
  4548. public Builder SetOptionalFloat(float value) {
  4549. PrepareBuilder();
  4550. result.hasOptionalFloat = true;
  4551. result.optionalFloat_ = value;
  4552. return this;
  4553. }
  4554. public Builder ClearOptionalFloat() {
  4555. PrepareBuilder();
  4556. result.hasOptionalFloat = false;
  4557. result.optionalFloat_ = 0F;
  4558. return this;
  4559. }
  4560. public bool HasOptionalDouble {
  4561. get { return result.hasOptionalDouble; }
  4562. }
  4563. public double OptionalDouble {
  4564. get { return result.OptionalDouble; }
  4565. set { SetOptionalDouble(value); }
  4566. }
  4567. public Builder SetOptionalDouble(double value) {
  4568. PrepareBuilder();
  4569. result.hasOptionalDouble = true;
  4570. result.optionalDouble_ = value;
  4571. return this;
  4572. }
  4573. public Builder ClearOptionalDouble() {
  4574. PrepareBuilder();
  4575. result.hasOptionalDouble = false;
  4576. result.optionalDouble_ = 0D;
  4577. return this;
  4578. }
  4579. public bool HasOptionalBool {
  4580. get { return result.hasOptionalBool; }
  4581. }
  4582. public bool OptionalBool {
  4583. get { return result.OptionalBool; }
  4584. set { SetOptionalBool(value); }
  4585. }
  4586. public Builder SetOptionalBool(bool value) {
  4587. PrepareBuilder();
  4588. result.hasOptionalBool = true;
  4589. result.optionalBool_ = value;
  4590. return this;
  4591. }
  4592. public Builder ClearOptionalBool() {
  4593. PrepareBuilder();
  4594. result.hasOptionalBool = false;
  4595. result.optionalBool_ = false;
  4596. return this;
  4597. }
  4598. public bool HasOptionalString {
  4599. get { return result.hasOptionalString; }
  4600. }
  4601. public string OptionalString {
  4602. get { return result.OptionalString; }
  4603. set { SetOptionalString(value); }
  4604. }
  4605. public Builder SetOptionalString(string value) {
  4606. pb::ThrowHelper.ThrowIfNull(value, "value");
  4607. PrepareBuilder();
  4608. result.hasOptionalString = true;
  4609. result.optionalString_ = value;
  4610. return this;
  4611. }
  4612. public Builder ClearOptionalString() {
  4613. PrepareBuilder();
  4614. result.hasOptionalString = false;
  4615. result.optionalString_ = "";
  4616. return this;
  4617. }
  4618. public bool HasOptionalBytes {
  4619. get { return result.hasOptionalBytes; }
  4620. }
  4621. public pb::ByteString OptionalBytes {
  4622. get { return result.OptionalBytes; }
  4623. set { SetOptionalBytes(value); }
  4624. }
  4625. public Builder SetOptionalBytes(pb::ByteString value) {
  4626. pb::ThrowHelper.ThrowIfNull(value, "value");
  4627. PrepareBuilder();
  4628. result.hasOptionalBytes = true;
  4629. result.optionalBytes_ = value;
  4630. return this;
  4631. }
  4632. public Builder ClearOptionalBytes() {
  4633. PrepareBuilder();
  4634. result.hasOptionalBytes = false;
  4635. result.optionalBytes_ = pb::ByteString.Empty;
  4636. return this;
  4637. }
  4638. public bool HasOptionalGroup {
  4639. get { return result.hasOptionalGroup; }
  4640. }
  4641. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup {
  4642. get { return result.OptionalGroup; }
  4643. set { SetOptionalGroup(value); }
  4644. }
  4645. public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) {
  4646. pb::ThrowHelper.ThrowIfNull(value, "value");
  4647. PrepareBuilder();
  4648. result.hasOptionalGroup = true;
  4649. result.optionalGroup_ = value;
  4650. return this;
  4651. }
  4652. public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder builderForValue) {
  4653. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  4654. PrepareBuilder();
  4655. result.hasOptionalGroup = true;
  4656. result.optionalGroup_ = builderForValue.Build();
  4657. return this;
  4658. }
  4659. public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) {
  4660. pb::ThrowHelper.ThrowIfNull(value, "value");
  4661. PrepareBuilder();
  4662. if (result.hasOptionalGroup &&
  4663. result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) {
  4664. result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
  4665. } else {
  4666. result.optionalGroup_ = value;
  4667. }
  4668. result.hasOptionalGroup = true;
  4669. return this;
  4670. }
  4671. public Builder ClearOptionalGroup() {
  4672. PrepareBuilder();
  4673. result.hasOptionalGroup = false;
  4674. result.optionalGroup_ = null;
  4675. return this;
  4676. }
  4677. public bool HasOptionalNestedMessage {
  4678. get { return result.hasOptionalNestedMessage; }
  4679. }
  4680. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  4681. get { return result.OptionalNestedMessage; }
  4682. set { SetOptionalNestedMessage(value); }
  4683. }
  4684. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  4685. pb::ThrowHelper.ThrowIfNull(value, "value");
  4686. PrepareBuilder();
  4687. result.hasOptionalNestedMessage = true;
  4688. result.optionalNestedMessage_ = value;
  4689. return this;
  4690. }
  4691. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  4692. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  4693. PrepareBuilder();
  4694. result.hasOptionalNestedMessage = true;
  4695. result.optionalNestedMessage_ = builderForValue.Build();
  4696. return this;
  4697. }
  4698. public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  4699. pb::ThrowHelper.ThrowIfNull(value, "value");
  4700. PrepareBuilder();
  4701. if (result.hasOptionalNestedMessage &&
  4702. result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
  4703. result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  4704. } else {
  4705. result.optionalNestedMessage_ = value;
  4706. }
  4707. result.hasOptionalNestedMessage = true;
  4708. return this;
  4709. }
  4710. public Builder ClearOptionalNestedMessage() {
  4711. PrepareBuilder();
  4712. result.hasOptionalNestedMessage = false;
  4713. result.optionalNestedMessage_ = null;
  4714. return this;
  4715. }
  4716. public bool HasOptionalForeignMessage {
  4717. get { return result.hasOptionalForeignMessage; }
  4718. }
  4719. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage {
  4720. get { return result.OptionalForeignMessage; }
  4721. set { SetOptionalForeignMessage(value); }
  4722. }
  4723. public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  4724. pb::ThrowHelper.ThrowIfNull(value, "value");
  4725. PrepareBuilder();
  4726. result.hasOptionalForeignMessage = true;
  4727. result.optionalForeignMessage_ = value;
  4728. return this;
  4729. }
  4730. public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  4731. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  4732. PrepareBuilder();
  4733. result.hasOptionalForeignMessage = true;
  4734. result.optionalForeignMessage_ = builderForValue.Build();
  4735. return this;
  4736. }
  4737. public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  4738. pb::ThrowHelper.ThrowIfNull(value, "value");
  4739. PrepareBuilder();
  4740. if (result.hasOptionalForeignMessage &&
  4741. result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
  4742. result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial();
  4743. } else {
  4744. result.optionalForeignMessage_ = value;
  4745. }
  4746. result.hasOptionalForeignMessage = true;
  4747. return this;
  4748. }
  4749. public Builder ClearOptionalForeignMessage() {
  4750. PrepareBuilder();
  4751. result.hasOptionalForeignMessage = false;
  4752. result.optionalForeignMessage_ = null;
  4753. return this;
  4754. }
  4755. public bool HasOptionalImportMessage {
  4756. get { return result.hasOptionalImportMessage; }
  4757. }
  4758. public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage {
  4759. get { return result.OptionalImportMessage; }
  4760. set { SetOptionalImportMessage(value); }
  4761. }
  4762. public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  4763. pb::ThrowHelper.ThrowIfNull(value, "value");
  4764. PrepareBuilder();
  4765. result.hasOptionalImportMessage = true;
  4766. result.optionalImportMessage_ = value;
  4767. return this;
  4768. }
  4769. public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
  4770. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  4771. PrepareBuilder();
  4772. result.hasOptionalImportMessage = true;
  4773. result.optionalImportMessage_ = builderForValue.Build();
  4774. return this;
  4775. }
  4776. public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  4777. pb::ThrowHelper.ThrowIfNull(value, "value");
  4778. PrepareBuilder();
  4779. if (result.hasOptionalImportMessage &&
  4780. result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance) {
  4781. result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial();
  4782. } else {
  4783. result.optionalImportMessage_ = value;
  4784. }
  4785. result.hasOptionalImportMessage = true;
  4786. return this;
  4787. }
  4788. public Builder ClearOptionalImportMessage() {
  4789. PrepareBuilder();
  4790. result.hasOptionalImportMessage = false;
  4791. result.optionalImportMessage_ = null;
  4792. return this;
  4793. }
  4794. public bool HasOptionalNestedEnum {
  4795. get { return result.hasOptionalNestedEnum; }
  4796. }
  4797. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
  4798. get { return result.OptionalNestedEnum; }
  4799. set { SetOptionalNestedEnum(value); }
  4800. }
  4801. public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  4802. PrepareBuilder();
  4803. result.hasOptionalNestedEnum = true;
  4804. result.optionalNestedEnum_ = value;
  4805. return this;
  4806. }
  4807. public Builder ClearOptionalNestedEnum() {
  4808. PrepareBuilder();
  4809. result.hasOptionalNestedEnum = false;
  4810. result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO;
  4811. return this;
  4812. }
  4813. public bool HasOptionalForeignEnum {
  4814. get { return result.hasOptionalForeignEnum; }
  4815. }
  4816. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum {
  4817. get { return result.OptionalForeignEnum; }
  4818. set { SetOptionalForeignEnum(value); }
  4819. }
  4820. public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  4821. PrepareBuilder();
  4822. result.hasOptionalForeignEnum = true;
  4823. result.optionalForeignEnum_ = value;
  4824. return this;
  4825. }
  4826. public Builder ClearOptionalForeignEnum() {
  4827. PrepareBuilder();
  4828. result.hasOptionalForeignEnum = false;
  4829. result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  4830. return this;
  4831. }
  4832. public bool HasOptionalImportEnum {
  4833. get { return result.hasOptionalImportEnum; }
  4834. }
  4835. public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum {
  4836. get { return result.OptionalImportEnum; }
  4837. set { SetOptionalImportEnum(value); }
  4838. }
  4839. public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  4840. PrepareBuilder();
  4841. result.hasOptionalImportEnum = true;
  4842. result.optionalImportEnum_ = value;
  4843. return this;
  4844. }
  4845. public Builder ClearOptionalImportEnum() {
  4846. PrepareBuilder();
  4847. result.hasOptionalImportEnum = false;
  4848. result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO;
  4849. return this;
  4850. }
  4851. public bool HasOptionalStringPiece {
  4852. get { return result.hasOptionalStringPiece; }
  4853. }
  4854. public string OptionalStringPiece {
  4855. get { return result.OptionalStringPiece; }
  4856. set { SetOptionalStringPiece(value); }
  4857. }
  4858. public Builder SetOptionalStringPiece(string value) {
  4859. pb::ThrowHelper.ThrowIfNull(value, "value");
  4860. PrepareBuilder();
  4861. result.hasOptionalStringPiece = true;
  4862. result.optionalStringPiece_ = value;
  4863. return this;
  4864. }
  4865. public Builder ClearOptionalStringPiece() {
  4866. PrepareBuilder();
  4867. result.hasOptionalStringPiece = false;
  4868. result.optionalStringPiece_ = "";
  4869. return this;
  4870. }
  4871. public bool HasOptionalCord {
  4872. get { return result.hasOptionalCord; }
  4873. }
  4874. public string OptionalCord {
  4875. get { return result.OptionalCord; }
  4876. set { SetOptionalCord(value); }
  4877. }
  4878. public Builder SetOptionalCord(string value) {
  4879. pb::ThrowHelper.ThrowIfNull(value, "value");
  4880. PrepareBuilder();
  4881. result.hasOptionalCord = true;
  4882. result.optionalCord_ = value;
  4883. return this;
  4884. }
  4885. public Builder ClearOptionalCord() {
  4886. PrepareBuilder();
  4887. result.hasOptionalCord = false;
  4888. result.optionalCord_ = "";
  4889. return this;
  4890. }
  4891. public bool HasOptionalPublicImportMessage {
  4892. get { return result.hasOptionalPublicImportMessage; }
  4893. }
  4894. public global::Google.ProtocolBuffers.TestProtos.PublicImportMessage OptionalPublicImportMessage {
  4895. get { return result.OptionalPublicImportMessage; }
  4896. set { SetOptionalPublicImportMessage(value); }
  4897. }
  4898. public Builder SetOptionalPublicImportMessage(global::Google.ProtocolBuffers.TestProtos.PublicImportMessage value) {
  4899. pb::ThrowHelper.ThrowIfNull(value, "value");
  4900. PrepareBuilder();
  4901. result.hasOptionalPublicImportMessage = true;
  4902. result.optionalPublicImportMessage_ = value;
  4903. return this;
  4904. }
  4905. public Builder SetOptionalPublicImportMessage(global::Google.ProtocolBuffers.TestProtos.PublicImportMessage.Builder builderForValue) {
  4906. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  4907. PrepareBuilder();
  4908. result.hasOptionalPublicImportMessage = true;
  4909. result.optionalPublicImportMessage_ = builderForValue.Build();
  4910. return this;
  4911. }
  4912. public Builder MergeOptionalPublicImportMessage(global::Google.ProtocolBuffers.TestProtos.PublicImportMessage value) {
  4913. pb::ThrowHelper.ThrowIfNull(value, "value");
  4914. PrepareBuilder();
  4915. if (result.hasOptionalPublicImportMessage &&
  4916. result.optionalPublicImportMessage_ != global::Google.ProtocolBuffers.TestProtos.PublicImportMessage.DefaultInstance) {
  4917. result.optionalPublicImportMessage_ = global::Google.ProtocolBuffers.TestProtos.PublicImportMessage.CreateBuilder(result.optionalPublicImportMessage_).MergeFrom(value).BuildPartial();
  4918. } else {
  4919. result.optionalPublicImportMessage_ = value;
  4920. }
  4921. result.hasOptionalPublicImportMessage = true;
  4922. return this;
  4923. }
  4924. public Builder ClearOptionalPublicImportMessage() {
  4925. PrepareBuilder();
  4926. result.hasOptionalPublicImportMessage = false;
  4927. result.optionalPublicImportMessage_ = null;
  4928. return this;
  4929. }
  4930. public bool HasOptionalLazyMessage {
  4931. get { return result.hasOptionalLazyMessage; }
  4932. }
  4933. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalLazyMessage {
  4934. get { return result.OptionalLazyMessage; }
  4935. set { SetOptionalLazyMessage(value); }
  4936. }
  4937. public Builder SetOptionalLazyMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  4938. pb::ThrowHelper.ThrowIfNull(value, "value");
  4939. PrepareBuilder();
  4940. result.hasOptionalLazyMessage = true;
  4941. result.optionalLazyMessage_ = value;
  4942. return this;
  4943. }
  4944. public Builder SetOptionalLazyMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  4945. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  4946. PrepareBuilder();
  4947. result.hasOptionalLazyMessage = true;
  4948. result.optionalLazyMessage_ = builderForValue.Build();
  4949. return this;
  4950. }
  4951. public Builder MergeOptionalLazyMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  4952. pb::ThrowHelper.ThrowIfNull(value, "value");
  4953. PrepareBuilder();
  4954. if (result.hasOptionalLazyMessage &&
  4955. result.optionalLazyMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
  4956. result.optionalLazyMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.optionalLazyMessage_).MergeFrom(value).BuildPartial();
  4957. } else {
  4958. result.optionalLazyMessage_ = value;
  4959. }
  4960. result.hasOptionalLazyMessage = true;
  4961. return this;
  4962. }
  4963. public Builder ClearOptionalLazyMessage() {
  4964. PrepareBuilder();
  4965. result.hasOptionalLazyMessage = false;
  4966. result.optionalLazyMessage_ = null;
  4967. return this;
  4968. }
  4969. public pbc::IPopsicleList<int> RepeatedInt32List {
  4970. get { return PrepareBuilder().repeatedInt32_; }
  4971. }
  4972. public int RepeatedInt32Count {
  4973. get { return result.RepeatedInt32Count; }
  4974. }
  4975. public int GetRepeatedInt32(int index) {
  4976. return result.GetRepeatedInt32(index);
  4977. }
  4978. public Builder SetRepeatedInt32(int index, int value) {
  4979. PrepareBuilder();
  4980. result.repeatedInt32_[index] = value;
  4981. return this;
  4982. }
  4983. public Builder AddRepeatedInt32(int value) {
  4984. PrepareBuilder();
  4985. result.repeatedInt32_.Add(value);
  4986. return this;
  4987. }
  4988. public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
  4989. PrepareBuilder();
  4990. result.repeatedInt32_.Add(values);
  4991. return this;
  4992. }
  4993. public Builder ClearRepeatedInt32() {
  4994. PrepareBuilder();
  4995. result.repeatedInt32_.Clear();
  4996. return this;
  4997. }
  4998. public pbc::IPopsicleList<long> RepeatedInt64List {
  4999. get { return PrepareBuilder().repeatedInt64_; }
  5000. }
  5001. public int RepeatedInt64Count {
  5002. get { return result.RepeatedInt64Count; }
  5003. }
  5004. public long GetRepeatedInt64(int index) {
  5005. return result.GetRepeatedInt64(index);
  5006. }
  5007. public Builder SetRepeatedInt64(int index, long value) {
  5008. PrepareBuilder();
  5009. result.repeatedInt64_[index] = value;
  5010. return this;
  5011. }
  5012. public Builder AddRepeatedInt64(long value) {
  5013. PrepareBuilder();
  5014. result.repeatedInt64_.Add(value);
  5015. return this;
  5016. }
  5017. public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
  5018. PrepareBuilder();
  5019. result.repeatedInt64_.Add(values);
  5020. return this;
  5021. }
  5022. public Builder ClearRepeatedInt64() {
  5023. PrepareBuilder();
  5024. result.repeatedInt64_.Clear();
  5025. return this;
  5026. }
  5027. [global::System.CLSCompliant(false)]
  5028. public pbc::IPopsicleList<uint> RepeatedUint32List {
  5029. get { return PrepareBuilder().repeatedUint32_; }
  5030. }
  5031. public int RepeatedUint32Count {
  5032. get { return result.RepeatedUint32Count; }
  5033. }
  5034. [global::System.CLSCompliant(false)]
  5035. public uint GetRepeatedUint32(int index) {
  5036. return result.GetRepeatedUint32(index);
  5037. }
  5038. [global::System.CLSCompliant(false)]
  5039. public Builder SetRepeatedUint32(int index, uint value) {
  5040. PrepareBuilder();
  5041. result.repeatedUint32_[index] = value;
  5042. return this;
  5043. }
  5044. [global::System.CLSCompliant(false)]
  5045. public Builder AddRepeatedUint32(uint value) {
  5046. PrepareBuilder();
  5047. result.repeatedUint32_.Add(value);
  5048. return this;
  5049. }
  5050. [global::System.CLSCompliant(false)]
  5051. public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) {
  5052. PrepareBuilder();
  5053. result.repeatedUint32_.Add(values);
  5054. return this;
  5055. }
  5056. public Builder ClearRepeatedUint32() {
  5057. PrepareBuilder();
  5058. result.repeatedUint32_.Clear();
  5059. return this;
  5060. }
  5061. [global::System.CLSCompliant(false)]
  5062. public pbc::IPopsicleList<ulong> RepeatedUint64List {
  5063. get { return PrepareBuilder().repeatedUint64_; }
  5064. }
  5065. public int RepeatedUint64Count {
  5066. get { return result.RepeatedUint64Count; }
  5067. }
  5068. [global::System.CLSCompliant(false)]
  5069. public ulong GetRepeatedUint64(int index) {
  5070. return result.GetRepeatedUint64(index);
  5071. }
  5072. [global::System.CLSCompliant(false)]
  5073. public Builder SetRepeatedUint64(int index, ulong value) {
  5074. PrepareBuilder();
  5075. result.repeatedUint64_[index] = value;
  5076. return this;
  5077. }
  5078. [global::System.CLSCompliant(false)]
  5079. public Builder AddRepeatedUint64(ulong value) {
  5080. PrepareBuilder();
  5081. result.repeatedUint64_.Add(value);
  5082. return this;
  5083. }
  5084. [global::System.CLSCompliant(false)]
  5085. public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
  5086. PrepareBuilder();
  5087. result.repeatedUint64_.Add(values);
  5088. return this;
  5089. }
  5090. public Builder ClearRepeatedUint64() {
  5091. PrepareBuilder();
  5092. result.repeatedUint64_.Clear();
  5093. return this;
  5094. }
  5095. public pbc::IPopsicleList<int> RepeatedSint32List {
  5096. get { return PrepareBuilder().repeatedSint32_; }
  5097. }
  5098. public int RepeatedSint32Count {
  5099. get { return result.RepeatedSint32Count; }
  5100. }
  5101. public int GetRepeatedSint32(int index) {
  5102. return result.GetRepeatedSint32(index);
  5103. }
  5104. public Builder SetRepeatedSint32(int index, int value) {
  5105. PrepareBuilder();
  5106. result.repeatedSint32_[index] = value;
  5107. return this;
  5108. }
  5109. public Builder AddRepeatedSint32(int value) {
  5110. PrepareBuilder();
  5111. result.repeatedSint32_.Add(value);
  5112. return this;
  5113. }
  5114. public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) {
  5115. PrepareBuilder();
  5116. result.repeatedSint32_.Add(values);
  5117. return this;
  5118. }
  5119. public Builder ClearRepeatedSint32() {
  5120. PrepareBuilder();
  5121. result.repeatedSint32_.Clear();
  5122. return this;
  5123. }
  5124. public pbc::IPopsicleList<long> RepeatedSint64List {
  5125. get { return PrepareBuilder().repeatedSint64_; }
  5126. }
  5127. public int RepeatedSint64Count {
  5128. get { return result.RepeatedSint64Count; }
  5129. }
  5130. public long GetRepeatedSint64(int index) {
  5131. return result.GetRepeatedSint64(index);
  5132. }
  5133. public Builder SetRepeatedSint64(int index, long value) {
  5134. PrepareBuilder();
  5135. result.repeatedSint64_[index] = value;
  5136. return this;
  5137. }
  5138. public Builder AddRepeatedSint64(long value) {
  5139. PrepareBuilder();
  5140. result.repeatedSint64_.Add(value);
  5141. return this;
  5142. }
  5143. public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) {
  5144. PrepareBuilder();
  5145. result.repeatedSint64_.Add(values);
  5146. return this;
  5147. }
  5148. public Builder ClearRepeatedSint64() {
  5149. PrepareBuilder();
  5150. result.repeatedSint64_.Clear();
  5151. return this;
  5152. }
  5153. [global::System.CLSCompliant(false)]
  5154. public pbc::IPopsicleList<uint> RepeatedFixed32List {
  5155. get { return PrepareBuilder().repeatedFixed32_; }
  5156. }
  5157. public int RepeatedFixed32Count {
  5158. get { return result.RepeatedFixed32Count; }
  5159. }
  5160. [global::System.CLSCompliant(false)]
  5161. public uint GetRepeatedFixed32(int index) {
  5162. return result.GetRepeatedFixed32(index);
  5163. }
  5164. [global::System.CLSCompliant(false)]
  5165. public Builder SetRepeatedFixed32(int index, uint value) {
  5166. PrepareBuilder();
  5167. result.repeatedFixed32_[index] = value;
  5168. return this;
  5169. }
  5170. [global::System.CLSCompliant(false)]
  5171. public Builder AddRepeatedFixed32(uint value) {
  5172. PrepareBuilder();
  5173. result.repeatedFixed32_.Add(value);
  5174. return this;
  5175. }
  5176. [global::System.CLSCompliant(false)]
  5177. public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
  5178. PrepareBuilder();
  5179. result.repeatedFixed32_.Add(values);
  5180. return this;
  5181. }
  5182. public Builder ClearRepeatedFixed32() {
  5183. PrepareBuilder();
  5184. result.repeatedFixed32_.Clear();
  5185. return this;
  5186. }
  5187. [global::System.CLSCompliant(false)]
  5188. public pbc::IPopsicleList<ulong> RepeatedFixed64List {
  5189. get { return PrepareBuilder().repeatedFixed64_; }
  5190. }
  5191. public int RepeatedFixed64Count {
  5192. get { return result.RepeatedFixed64Count; }
  5193. }
  5194. [global::System.CLSCompliant(false)]
  5195. public ulong GetRepeatedFixed64(int index) {
  5196. return result.GetRepeatedFixed64(index);
  5197. }
  5198. [global::System.CLSCompliant(false)]
  5199. public Builder SetRepeatedFixed64(int index, ulong value) {
  5200. PrepareBuilder();
  5201. result.repeatedFixed64_[index] = value;
  5202. return this;
  5203. }
  5204. [global::System.CLSCompliant(false)]
  5205. public Builder AddRepeatedFixed64(ulong value) {
  5206. PrepareBuilder();
  5207. result.repeatedFixed64_.Add(value);
  5208. return this;
  5209. }
  5210. [global::System.CLSCompliant(false)]
  5211. public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
  5212. PrepareBuilder();
  5213. result.repeatedFixed64_.Add(values);
  5214. return this;
  5215. }
  5216. public Builder ClearRepeatedFixed64() {
  5217. PrepareBuilder();
  5218. result.repeatedFixed64_.Clear();
  5219. return this;
  5220. }
  5221. public pbc::IPopsicleList<int> RepeatedSfixed32List {
  5222. get { return PrepareBuilder().repeatedSfixed32_; }
  5223. }
  5224. public int RepeatedSfixed32Count {
  5225. get { return result.RepeatedSfixed32Count; }
  5226. }
  5227. public int GetRepeatedSfixed32(int index) {
  5228. return result.GetRepeatedSfixed32(index);
  5229. }
  5230. public Builder SetRepeatedSfixed32(int index, int value) {
  5231. PrepareBuilder();
  5232. result.repeatedSfixed32_[index] = value;
  5233. return this;
  5234. }
  5235. public Builder AddRepeatedSfixed32(int value) {
  5236. PrepareBuilder();
  5237. result.repeatedSfixed32_.Add(value);
  5238. return this;
  5239. }
  5240. public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) {
  5241. PrepareBuilder();
  5242. result.repeatedSfixed32_.Add(values);
  5243. return this;
  5244. }
  5245. public Builder ClearRepeatedSfixed32() {
  5246. PrepareBuilder();
  5247. result.repeatedSfixed32_.Clear();
  5248. return this;
  5249. }
  5250. public pbc::IPopsicleList<long> RepeatedSfixed64List {
  5251. get { return PrepareBuilder().repeatedSfixed64_; }
  5252. }
  5253. public int RepeatedSfixed64Count {
  5254. get { return result.RepeatedSfixed64Count; }
  5255. }
  5256. public long GetRepeatedSfixed64(int index) {
  5257. return result.GetRepeatedSfixed64(index);
  5258. }
  5259. public Builder SetRepeatedSfixed64(int index, long value) {
  5260. PrepareBuilder();
  5261. result.repeatedSfixed64_[index] = value;
  5262. return this;
  5263. }
  5264. public Builder AddRepeatedSfixed64(long value) {
  5265. PrepareBuilder();
  5266. result.repeatedSfixed64_.Add(value);
  5267. return this;
  5268. }
  5269. public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) {
  5270. PrepareBuilder();
  5271. result.repeatedSfixed64_.Add(values);
  5272. return this;
  5273. }
  5274. public Builder ClearRepeatedSfixed64() {
  5275. PrepareBuilder();
  5276. result.repeatedSfixed64_.Clear();
  5277. return this;
  5278. }
  5279. public pbc::IPopsicleList<float> RepeatedFloatList {
  5280. get { return PrepareBuilder().repeatedFloat_; }
  5281. }
  5282. public int RepeatedFloatCount {
  5283. get { return result.RepeatedFloatCount; }
  5284. }
  5285. public float GetRepeatedFloat(int index) {
  5286. return result.GetRepeatedFloat(index);
  5287. }
  5288. public Builder SetRepeatedFloat(int index, float value) {
  5289. PrepareBuilder();
  5290. result.repeatedFloat_[index] = value;
  5291. return this;
  5292. }
  5293. public Builder AddRepeatedFloat(float value) {
  5294. PrepareBuilder();
  5295. result.repeatedFloat_.Add(value);
  5296. return this;
  5297. }
  5298. public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
  5299. PrepareBuilder();
  5300. result.repeatedFloat_.Add(values);
  5301. return this;
  5302. }
  5303. public Builder ClearRepeatedFloat() {
  5304. PrepareBuilder();
  5305. result.repeatedFloat_.Clear();
  5306. return this;
  5307. }
  5308. public pbc::IPopsicleList<double> RepeatedDoubleList {
  5309. get { return PrepareBuilder().repeatedDouble_; }
  5310. }
  5311. public int RepeatedDoubleCount {
  5312. get { return result.RepeatedDoubleCount; }
  5313. }
  5314. public double GetRepeatedDouble(int index) {
  5315. return result.GetRepeatedDouble(index);
  5316. }
  5317. public Builder SetRepeatedDouble(int index, double value) {
  5318. PrepareBuilder();
  5319. result.repeatedDouble_[index] = value;
  5320. return this;
  5321. }
  5322. public Builder AddRepeatedDouble(double value) {
  5323. PrepareBuilder();
  5324. result.repeatedDouble_.Add(value);
  5325. return this;
  5326. }
  5327. public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) {
  5328. PrepareBuilder();
  5329. result.repeatedDouble_.Add(values);
  5330. return this;
  5331. }
  5332. public Builder ClearRepeatedDouble() {
  5333. PrepareBuilder();
  5334. result.repeatedDouble_.Clear();
  5335. return this;
  5336. }
  5337. public pbc::IPopsicleList<bool> RepeatedBoolList {
  5338. get { return PrepareBuilder().repeatedBool_; }
  5339. }
  5340. public int RepeatedBoolCount {
  5341. get { return result.RepeatedBoolCount; }
  5342. }
  5343. public bool GetRepeatedBool(int index) {
  5344. return result.GetRepeatedBool(index);
  5345. }
  5346. public Builder SetRepeatedBool(int index, bool value) {
  5347. PrepareBuilder();
  5348. result.repeatedBool_[index] = value;
  5349. return this;
  5350. }
  5351. public Builder AddRepeatedBool(bool value) {
  5352. PrepareBuilder();
  5353. result.repeatedBool_.Add(value);
  5354. return this;
  5355. }
  5356. public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) {
  5357. PrepareBuilder();
  5358. result.repeatedBool_.Add(values);
  5359. return this;
  5360. }
  5361. public Builder ClearRepeatedBool() {
  5362. PrepareBuilder();
  5363. result.repeatedBool_.Clear();
  5364. return this;
  5365. }
  5366. public pbc::IPopsicleList<string> RepeatedStringList {
  5367. get { return PrepareBuilder().repeatedString_; }
  5368. }
  5369. public int RepeatedStringCount {
  5370. get { return result.RepeatedStringCount; }
  5371. }
  5372. public string GetRepeatedString(int index) {
  5373. return result.GetRepeatedString(index);
  5374. }
  5375. public Builder SetRepeatedString(int index, string value) {
  5376. pb::ThrowHelper.ThrowIfNull(value, "value");
  5377. PrepareBuilder();
  5378. result.repeatedString_[index] = value;
  5379. return this;
  5380. }
  5381. public Builder AddRepeatedString(string value) {
  5382. pb::ThrowHelper.ThrowIfNull(value, "value");
  5383. PrepareBuilder();
  5384. result.repeatedString_.Add(value);
  5385. return this;
  5386. }
  5387. public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) {
  5388. PrepareBuilder();
  5389. result.repeatedString_.Add(values);
  5390. return this;
  5391. }
  5392. public Builder ClearRepeatedString() {
  5393. PrepareBuilder();
  5394. result.repeatedString_.Clear();
  5395. return this;
  5396. }
  5397. public pbc::IPopsicleList<pb::ByteString> RepeatedBytesList {
  5398. get { return PrepareBuilder().repeatedBytes_; }
  5399. }
  5400. public int RepeatedBytesCount {
  5401. get { return result.RepeatedBytesCount; }
  5402. }
  5403. public pb::ByteString GetRepeatedBytes(int index) {
  5404. return result.GetRepeatedBytes(index);
  5405. }
  5406. public Builder SetRepeatedBytes(int index, pb::ByteString value) {
  5407. pb::ThrowHelper.ThrowIfNull(value, "value");
  5408. PrepareBuilder();
  5409. result.repeatedBytes_[index] = value;
  5410. return this;
  5411. }
  5412. public Builder AddRepeatedBytes(pb::ByteString value) {
  5413. pb::ThrowHelper.ThrowIfNull(value, "value");
  5414. PrepareBuilder();
  5415. result.repeatedBytes_.Add(value);
  5416. return this;
  5417. }
  5418. public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) {
  5419. PrepareBuilder();
  5420. result.repeatedBytes_.Add(values);
  5421. return this;
  5422. }
  5423. public Builder ClearRepeatedBytes() {
  5424. PrepareBuilder();
  5425. result.repeatedBytes_.Clear();
  5426. return this;
  5427. }
  5428. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
  5429. get { return PrepareBuilder().repeatedGroup_; }
  5430. }
  5431. public int RepeatedGroupCount {
  5432. get { return result.RepeatedGroupCount; }
  5433. }
  5434. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
  5435. return result.GetRepeatedGroup(index);
  5436. }
  5437. public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) {
  5438. pb::ThrowHelper.ThrowIfNull(value, "value");
  5439. PrepareBuilder();
  5440. result.repeatedGroup_[index] = value;
  5441. return this;
  5442. }
  5443. public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
  5444. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  5445. PrepareBuilder();
  5446. result.repeatedGroup_[index] = builderForValue.Build();
  5447. return this;
  5448. }
  5449. public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) {
  5450. pb::ThrowHelper.ThrowIfNull(value, "value");
  5451. PrepareBuilder();
  5452. result.repeatedGroup_.Add(value);
  5453. return this;
  5454. }
  5455. public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
  5456. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  5457. PrepareBuilder();
  5458. result.repeatedGroup_.Add(builderForValue.Build());
  5459. return this;
  5460. }
  5461. public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> values) {
  5462. PrepareBuilder();
  5463. result.repeatedGroup_.Add(values);
  5464. return this;
  5465. }
  5466. public Builder ClearRepeatedGroup() {
  5467. PrepareBuilder();
  5468. result.repeatedGroup_.Clear();
  5469. return this;
  5470. }
  5471. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
  5472. get { return PrepareBuilder().repeatedNestedMessage_; }
  5473. }
  5474. public int RepeatedNestedMessageCount {
  5475. get { return result.RepeatedNestedMessageCount; }
  5476. }
  5477. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
  5478. return result.GetRepeatedNestedMessage(index);
  5479. }
  5480. public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  5481. pb::ThrowHelper.ThrowIfNull(value, "value");
  5482. PrepareBuilder();
  5483. result.repeatedNestedMessage_[index] = value;
  5484. return this;
  5485. }
  5486. public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  5487. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  5488. PrepareBuilder();
  5489. result.repeatedNestedMessage_[index] = builderForValue.Build();
  5490. return this;
  5491. }
  5492. public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  5493. pb::ThrowHelper.ThrowIfNull(value, "value");
  5494. PrepareBuilder();
  5495. result.repeatedNestedMessage_.Add(value);
  5496. return this;
  5497. }
  5498. public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  5499. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  5500. PrepareBuilder();
  5501. result.repeatedNestedMessage_.Add(builderForValue.Build());
  5502. return this;
  5503. }
  5504. public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> values) {
  5505. PrepareBuilder();
  5506. result.repeatedNestedMessage_.Add(values);
  5507. return this;
  5508. }
  5509. public Builder ClearRepeatedNestedMessage() {
  5510. PrepareBuilder();
  5511. result.repeatedNestedMessage_.Clear();
  5512. return this;
  5513. }
  5514. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList {
  5515. get { return PrepareBuilder().repeatedForeignMessage_; }
  5516. }
  5517. public int RepeatedForeignMessageCount {
  5518. get { return result.RepeatedForeignMessageCount; }
  5519. }
  5520. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) {
  5521. return result.GetRepeatedForeignMessage(index);
  5522. }
  5523. public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  5524. pb::ThrowHelper.ThrowIfNull(value, "value");
  5525. PrepareBuilder();
  5526. result.repeatedForeignMessage_[index] = value;
  5527. return this;
  5528. }
  5529. public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  5530. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  5531. PrepareBuilder();
  5532. result.repeatedForeignMessage_[index] = builderForValue.Build();
  5533. return this;
  5534. }
  5535. public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  5536. pb::ThrowHelper.ThrowIfNull(value, "value");
  5537. PrepareBuilder();
  5538. result.repeatedForeignMessage_.Add(value);
  5539. return this;
  5540. }
  5541. public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  5542. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  5543. PrepareBuilder();
  5544. result.repeatedForeignMessage_.Add(builderForValue.Build());
  5545. return this;
  5546. }
  5547. public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
  5548. PrepareBuilder();
  5549. result.repeatedForeignMessage_.Add(values);
  5550. return this;
  5551. }
  5552. public Builder ClearRepeatedForeignMessage() {
  5553. PrepareBuilder();
  5554. result.repeatedForeignMessage_.Clear();
  5555. return this;
  5556. }
  5557. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList {
  5558. get { return PrepareBuilder().repeatedImportMessage_; }
  5559. }
  5560. public int RepeatedImportMessageCount {
  5561. get { return result.RepeatedImportMessageCount; }
  5562. }
  5563. public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) {
  5564. return result.GetRepeatedImportMessage(index);
  5565. }
  5566. public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  5567. pb::ThrowHelper.ThrowIfNull(value, "value");
  5568. PrepareBuilder();
  5569. result.repeatedImportMessage_[index] = value;
  5570. return this;
  5571. }
  5572. public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
  5573. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  5574. PrepareBuilder();
  5575. result.repeatedImportMessage_[index] = builderForValue.Build();
  5576. return this;
  5577. }
  5578. public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  5579. pb::ThrowHelper.ThrowIfNull(value, "value");
  5580. PrepareBuilder();
  5581. result.repeatedImportMessage_.Add(value);
  5582. return this;
  5583. }
  5584. public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
  5585. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  5586. PrepareBuilder();
  5587. result.repeatedImportMessage_.Add(builderForValue.Build());
  5588. return this;
  5589. }
  5590. public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessage> values) {
  5591. PrepareBuilder();
  5592. result.repeatedImportMessage_.Add(values);
  5593. return this;
  5594. }
  5595. public Builder ClearRepeatedImportMessage() {
  5596. PrepareBuilder();
  5597. result.repeatedImportMessage_.Clear();
  5598. return this;
  5599. }
  5600. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
  5601. get { return PrepareBuilder().repeatedNestedEnum_; }
  5602. }
  5603. public int RepeatedNestedEnumCount {
  5604. get { return result.RepeatedNestedEnumCount; }
  5605. }
  5606. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
  5607. return result.GetRepeatedNestedEnum(index);
  5608. }
  5609. public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  5610. PrepareBuilder();
  5611. result.repeatedNestedEnum_[index] = value;
  5612. return this;
  5613. }
  5614. public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  5615. PrepareBuilder();
  5616. result.repeatedNestedEnum_.Add(value);
  5617. return this;
  5618. }
  5619. public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> values) {
  5620. PrepareBuilder();
  5621. result.repeatedNestedEnum_.Add(values);
  5622. return this;
  5623. }
  5624. public Builder ClearRepeatedNestedEnum() {
  5625. PrepareBuilder();
  5626. result.repeatedNestedEnum_.Clear();
  5627. return this;
  5628. }
  5629. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList {
  5630. get { return PrepareBuilder().repeatedForeignEnum_; }
  5631. }
  5632. public int RepeatedForeignEnumCount {
  5633. get { return result.RepeatedForeignEnumCount; }
  5634. }
  5635. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) {
  5636. return result.GetRepeatedForeignEnum(index);
  5637. }
  5638. public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  5639. PrepareBuilder();
  5640. result.repeatedForeignEnum_[index] = value;
  5641. return this;
  5642. }
  5643. public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  5644. PrepareBuilder();
  5645. result.repeatedForeignEnum_.Add(value);
  5646. return this;
  5647. }
  5648. public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
  5649. PrepareBuilder();
  5650. result.repeatedForeignEnum_.Add(values);
  5651. return this;
  5652. }
  5653. public Builder ClearRepeatedForeignEnum() {
  5654. PrepareBuilder();
  5655. result.repeatedForeignEnum_.Clear();
  5656. return this;
  5657. }
  5658. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList {
  5659. get { return PrepareBuilder().repeatedImportEnum_; }
  5660. }
  5661. public int RepeatedImportEnumCount {
  5662. get { return result.RepeatedImportEnumCount; }
  5663. }
  5664. public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) {
  5665. return result.GetRepeatedImportEnum(index);
  5666. }
  5667. public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  5668. PrepareBuilder();
  5669. result.repeatedImportEnum_[index] = value;
  5670. return this;
  5671. }
  5672. public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  5673. PrepareBuilder();
  5674. result.repeatedImportEnum_.Add(value);
  5675. return this;
  5676. }
  5677. public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnum> values) {
  5678. PrepareBuilder();
  5679. result.repeatedImportEnum_.Add(values);
  5680. return this;
  5681. }
  5682. public Builder ClearRepeatedImportEnum() {
  5683. PrepareBuilder();
  5684. result.repeatedImportEnum_.Clear();
  5685. return this;
  5686. }
  5687. public pbc::IPopsicleList<string> RepeatedStringPieceList {
  5688. get { return PrepareBuilder().repeatedStringPiece_; }
  5689. }
  5690. public int RepeatedStringPieceCount {
  5691. get { return result.RepeatedStringPieceCount; }
  5692. }
  5693. public string GetRepeatedStringPiece(int index) {
  5694. return result.GetRepeatedStringPiece(index);
  5695. }
  5696. public Builder SetRepeatedStringPiece(int index, string value) {
  5697. pb::ThrowHelper.ThrowIfNull(value, "value");
  5698. PrepareBuilder();
  5699. result.repeatedStringPiece_[index] = value;
  5700. return this;
  5701. }
  5702. public Builder AddRepeatedStringPiece(string value) {
  5703. pb::ThrowHelper.ThrowIfNull(value, "value");
  5704. PrepareBuilder();
  5705. result.repeatedStringPiece_.Add(value);
  5706. return this;
  5707. }
  5708. public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) {
  5709. PrepareBuilder();
  5710. result.repeatedStringPiece_.Add(values);
  5711. return this;
  5712. }
  5713. public Builder ClearRepeatedStringPiece() {
  5714. PrepareBuilder();
  5715. result.repeatedStringPiece_.Clear();
  5716. return this;
  5717. }
  5718. public pbc::IPopsicleList<string> RepeatedCordList {
  5719. get { return PrepareBuilder().repeatedCord_; }
  5720. }
  5721. public int RepeatedCordCount {
  5722. get { return result.RepeatedCordCount; }
  5723. }
  5724. public string GetRepeatedCord(int index) {
  5725. return result.GetRepeatedCord(index);
  5726. }
  5727. public Builder SetRepeatedCord(int index, string value) {
  5728. pb::ThrowHelper.ThrowIfNull(value, "value");
  5729. PrepareBuilder();
  5730. result.repeatedCord_[index] = value;
  5731. return this;
  5732. }
  5733. public Builder AddRepeatedCord(string value) {
  5734. pb::ThrowHelper.ThrowIfNull(value, "value");
  5735. PrepareBuilder();
  5736. result.repeatedCord_.Add(value);
  5737. return this;
  5738. }
  5739. public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) {
  5740. PrepareBuilder();
  5741. result.repeatedCord_.Add(values);
  5742. return this;
  5743. }
  5744. public Builder ClearRepeatedCord() {
  5745. PrepareBuilder();
  5746. result.repeatedCord_.Clear();
  5747. return this;
  5748. }
  5749. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedLazyMessageList {
  5750. get { return PrepareBuilder().repeatedLazyMessage_; }
  5751. }
  5752. public int RepeatedLazyMessageCount {
  5753. get { return result.RepeatedLazyMessageCount; }
  5754. }
  5755. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedLazyMessage(int index) {
  5756. return result.GetRepeatedLazyMessage(index);
  5757. }
  5758. public Builder SetRepeatedLazyMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  5759. pb::ThrowHelper.ThrowIfNull(value, "value");
  5760. PrepareBuilder();
  5761. result.repeatedLazyMessage_[index] = value;
  5762. return this;
  5763. }
  5764. public Builder SetRepeatedLazyMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  5765. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  5766. PrepareBuilder();
  5767. result.repeatedLazyMessage_[index] = builderForValue.Build();
  5768. return this;
  5769. }
  5770. public Builder AddRepeatedLazyMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  5771. pb::ThrowHelper.ThrowIfNull(value, "value");
  5772. PrepareBuilder();
  5773. result.repeatedLazyMessage_.Add(value);
  5774. return this;
  5775. }
  5776. public Builder AddRepeatedLazyMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  5777. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  5778. PrepareBuilder();
  5779. result.repeatedLazyMessage_.Add(builderForValue.Build());
  5780. return this;
  5781. }
  5782. public Builder AddRangeRepeatedLazyMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> values) {
  5783. PrepareBuilder();
  5784. result.repeatedLazyMessage_.Add(values);
  5785. return this;
  5786. }
  5787. public Builder ClearRepeatedLazyMessage() {
  5788. PrepareBuilder();
  5789. result.repeatedLazyMessage_.Clear();
  5790. return this;
  5791. }
  5792. public bool HasDefaultInt32 {
  5793. get { return result.hasDefaultInt32; }
  5794. }
  5795. public int DefaultInt32 {
  5796. get { return result.DefaultInt32; }
  5797. set { SetDefaultInt32(value); }
  5798. }
  5799. public Builder SetDefaultInt32(int value) {
  5800. PrepareBuilder();
  5801. result.hasDefaultInt32 = true;
  5802. result.defaultInt32_ = value;
  5803. return this;
  5804. }
  5805. public Builder ClearDefaultInt32() {
  5806. PrepareBuilder();
  5807. result.hasDefaultInt32 = false;
  5808. result.defaultInt32_ = 41;
  5809. return this;
  5810. }
  5811. public bool HasDefaultInt64 {
  5812. get { return result.hasDefaultInt64; }
  5813. }
  5814. public long DefaultInt64 {
  5815. get { return result.DefaultInt64; }
  5816. set { SetDefaultInt64(value); }
  5817. }
  5818. public Builder SetDefaultInt64(long value) {
  5819. PrepareBuilder();
  5820. result.hasDefaultInt64 = true;
  5821. result.defaultInt64_ = value;
  5822. return this;
  5823. }
  5824. public Builder ClearDefaultInt64() {
  5825. PrepareBuilder();
  5826. result.hasDefaultInt64 = false;
  5827. result.defaultInt64_ = 42L;
  5828. return this;
  5829. }
  5830. public bool HasDefaultUint32 {
  5831. get { return result.hasDefaultUint32; }
  5832. }
  5833. [global::System.CLSCompliant(false)]
  5834. public uint DefaultUint32 {
  5835. get { return result.DefaultUint32; }
  5836. set { SetDefaultUint32(value); }
  5837. }
  5838. [global::System.CLSCompliant(false)]
  5839. public Builder SetDefaultUint32(uint value) {
  5840. PrepareBuilder();
  5841. result.hasDefaultUint32 = true;
  5842. result.defaultUint32_ = value;
  5843. return this;
  5844. }
  5845. public Builder ClearDefaultUint32() {
  5846. PrepareBuilder();
  5847. result.hasDefaultUint32 = false;
  5848. result.defaultUint32_ = 43;
  5849. return this;
  5850. }
  5851. public bool HasDefaultUint64 {
  5852. get { return result.hasDefaultUint64; }
  5853. }
  5854. [global::System.CLSCompliant(false)]
  5855. public ulong DefaultUint64 {
  5856. get { return result.DefaultUint64; }
  5857. set { SetDefaultUint64(value); }
  5858. }
  5859. [global::System.CLSCompliant(false)]
  5860. public Builder SetDefaultUint64(ulong value) {
  5861. PrepareBuilder();
  5862. result.hasDefaultUint64 = true;
  5863. result.defaultUint64_ = value;
  5864. return this;
  5865. }
  5866. public Builder ClearDefaultUint64() {
  5867. PrepareBuilder();
  5868. result.hasDefaultUint64 = false;
  5869. result.defaultUint64_ = 44UL;
  5870. return this;
  5871. }
  5872. public bool HasDefaultSint32 {
  5873. get { return result.hasDefaultSint32; }
  5874. }
  5875. public int DefaultSint32 {
  5876. get { return result.DefaultSint32; }
  5877. set { SetDefaultSint32(value); }
  5878. }
  5879. public Builder SetDefaultSint32(int value) {
  5880. PrepareBuilder();
  5881. result.hasDefaultSint32 = true;
  5882. result.defaultSint32_ = value;
  5883. return this;
  5884. }
  5885. public Builder ClearDefaultSint32() {
  5886. PrepareBuilder();
  5887. result.hasDefaultSint32 = false;
  5888. result.defaultSint32_ = -45;
  5889. return this;
  5890. }
  5891. public bool HasDefaultSint64 {
  5892. get { return result.hasDefaultSint64; }
  5893. }
  5894. public long DefaultSint64 {
  5895. get { return result.DefaultSint64; }
  5896. set { SetDefaultSint64(value); }
  5897. }
  5898. public Builder SetDefaultSint64(long value) {
  5899. PrepareBuilder();
  5900. result.hasDefaultSint64 = true;
  5901. result.defaultSint64_ = value;
  5902. return this;
  5903. }
  5904. public Builder ClearDefaultSint64() {
  5905. PrepareBuilder();
  5906. result.hasDefaultSint64 = false;
  5907. result.defaultSint64_ = 46L;
  5908. return this;
  5909. }
  5910. public bool HasDefaultFixed32 {
  5911. get { return result.hasDefaultFixed32; }
  5912. }
  5913. [global::System.CLSCompliant(false)]
  5914. public uint DefaultFixed32 {
  5915. get { return result.DefaultFixed32; }
  5916. set { SetDefaultFixed32(value); }
  5917. }
  5918. [global::System.CLSCompliant(false)]
  5919. public Builder SetDefaultFixed32(uint value) {
  5920. PrepareBuilder();
  5921. result.hasDefaultFixed32 = true;
  5922. result.defaultFixed32_ = value;
  5923. return this;
  5924. }
  5925. public Builder ClearDefaultFixed32() {
  5926. PrepareBuilder();
  5927. result.hasDefaultFixed32 = false;
  5928. result.defaultFixed32_ = 47;
  5929. return this;
  5930. }
  5931. public bool HasDefaultFixed64 {
  5932. get { return result.hasDefaultFixed64; }
  5933. }
  5934. [global::System.CLSCompliant(false)]
  5935. public ulong DefaultFixed64 {
  5936. get { return result.DefaultFixed64; }
  5937. set { SetDefaultFixed64(value); }
  5938. }
  5939. [global::System.CLSCompliant(false)]
  5940. public Builder SetDefaultFixed64(ulong value) {
  5941. PrepareBuilder();
  5942. result.hasDefaultFixed64 = true;
  5943. result.defaultFixed64_ = value;
  5944. return this;
  5945. }
  5946. public Builder ClearDefaultFixed64() {
  5947. PrepareBuilder();
  5948. result.hasDefaultFixed64 = false;
  5949. result.defaultFixed64_ = 48UL;
  5950. return this;
  5951. }
  5952. public bool HasDefaultSfixed32 {
  5953. get { return result.hasDefaultSfixed32; }
  5954. }
  5955. public int DefaultSfixed32 {
  5956. get { return result.DefaultSfixed32; }
  5957. set { SetDefaultSfixed32(value); }
  5958. }
  5959. public Builder SetDefaultSfixed32(int value) {
  5960. PrepareBuilder();
  5961. result.hasDefaultSfixed32 = true;
  5962. result.defaultSfixed32_ = value;
  5963. return this;
  5964. }
  5965. public Builder ClearDefaultSfixed32() {
  5966. PrepareBuilder();
  5967. result.hasDefaultSfixed32 = false;
  5968. result.defaultSfixed32_ = 49;
  5969. return this;
  5970. }
  5971. public bool HasDefaultSfixed64 {
  5972. get { return result.hasDefaultSfixed64; }
  5973. }
  5974. public long DefaultSfixed64 {
  5975. get { return result.DefaultSfixed64; }
  5976. set { SetDefaultSfixed64(value); }
  5977. }
  5978. public Builder SetDefaultSfixed64(long value) {
  5979. PrepareBuilder();
  5980. result.hasDefaultSfixed64 = true;
  5981. result.defaultSfixed64_ = value;
  5982. return this;
  5983. }
  5984. public Builder ClearDefaultSfixed64() {
  5985. PrepareBuilder();
  5986. result.hasDefaultSfixed64 = false;
  5987. result.defaultSfixed64_ = -50L;
  5988. return this;
  5989. }
  5990. public bool HasDefaultFloat {
  5991. get { return result.hasDefaultFloat; }
  5992. }
  5993. public float DefaultFloat {
  5994. get { return result.DefaultFloat; }
  5995. set { SetDefaultFloat(value); }
  5996. }
  5997. public Builder SetDefaultFloat(float value) {
  5998. PrepareBuilder();
  5999. result.hasDefaultFloat = true;
  6000. result.defaultFloat_ = value;
  6001. return this;
  6002. }
  6003. public Builder ClearDefaultFloat() {
  6004. PrepareBuilder();
  6005. result.hasDefaultFloat = false;
  6006. result.defaultFloat_ = 51.5F;
  6007. return this;
  6008. }
  6009. public bool HasDefaultDouble {
  6010. get { return result.hasDefaultDouble; }
  6011. }
  6012. public double DefaultDouble {
  6013. get { return result.DefaultDouble; }
  6014. set { SetDefaultDouble(value); }
  6015. }
  6016. public Builder SetDefaultDouble(double value) {
  6017. PrepareBuilder();
  6018. result.hasDefaultDouble = true;
  6019. result.defaultDouble_ = value;
  6020. return this;
  6021. }
  6022. public Builder ClearDefaultDouble() {
  6023. PrepareBuilder();
  6024. result.hasDefaultDouble = false;
  6025. result.defaultDouble_ = 52000D;
  6026. return this;
  6027. }
  6028. public bool HasDefaultBool {
  6029. get { return result.hasDefaultBool; }
  6030. }
  6031. public bool DefaultBool {
  6032. get { return result.DefaultBool; }
  6033. set { SetDefaultBool(value); }
  6034. }
  6035. public Builder SetDefaultBool(bool value) {
  6036. PrepareBuilder();
  6037. result.hasDefaultBool = true;
  6038. result.defaultBool_ = value;
  6039. return this;
  6040. }
  6041. public Builder ClearDefaultBool() {
  6042. PrepareBuilder();
  6043. result.hasDefaultBool = false;
  6044. result.defaultBool_ = true;
  6045. return this;
  6046. }
  6047. public bool HasDefaultString {
  6048. get { return result.hasDefaultString; }
  6049. }
  6050. public string DefaultString {
  6051. get { return result.DefaultString; }
  6052. set { SetDefaultString(value); }
  6053. }
  6054. public Builder SetDefaultString(string value) {
  6055. pb::ThrowHelper.ThrowIfNull(value, "value");
  6056. PrepareBuilder();
  6057. result.hasDefaultString = true;
  6058. result.defaultString_ = value;
  6059. return this;
  6060. }
  6061. public Builder ClearDefaultString() {
  6062. PrepareBuilder();
  6063. result.hasDefaultString = false;
  6064. result.defaultString_ = "hello";
  6065. return this;
  6066. }
  6067. public bool HasDefaultBytes {
  6068. get { return result.hasDefaultBytes; }
  6069. }
  6070. public pb::ByteString DefaultBytes {
  6071. get { return result.DefaultBytes; }
  6072. set { SetDefaultBytes(value); }
  6073. }
  6074. public Builder SetDefaultBytes(pb::ByteString value) {
  6075. pb::ThrowHelper.ThrowIfNull(value, "value");
  6076. PrepareBuilder();
  6077. result.hasDefaultBytes = true;
  6078. result.defaultBytes_ = value;
  6079. return this;
  6080. }
  6081. public Builder ClearDefaultBytes() {
  6082. PrepareBuilder();
  6083. result.hasDefaultBytes = false;
  6084. result.defaultBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[65].DefaultValue;
  6085. return this;
  6086. }
  6087. public bool HasDefaultNestedEnum {
  6088. get { return result.hasDefaultNestedEnum; }
  6089. }
  6090. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum {
  6091. get { return result.DefaultNestedEnum; }
  6092. set { SetDefaultNestedEnum(value); }
  6093. }
  6094. public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  6095. PrepareBuilder();
  6096. result.hasDefaultNestedEnum = true;
  6097. result.defaultNestedEnum_ = value;
  6098. return this;
  6099. }
  6100. public Builder ClearDefaultNestedEnum() {
  6101. PrepareBuilder();
  6102. result.hasDefaultNestedEnum = false;
  6103. result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR;
  6104. return this;
  6105. }
  6106. public bool HasDefaultForeignEnum {
  6107. get { return result.hasDefaultForeignEnum; }
  6108. }
  6109. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum {
  6110. get { return result.DefaultForeignEnum; }
  6111. set { SetDefaultForeignEnum(value); }
  6112. }
  6113. public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  6114. PrepareBuilder();
  6115. result.hasDefaultForeignEnum = true;
  6116. result.defaultForeignEnum_ = value;
  6117. return this;
  6118. }
  6119. public Builder ClearDefaultForeignEnum() {
  6120. PrepareBuilder();
  6121. result.hasDefaultForeignEnum = false;
  6122. result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR;
  6123. return this;
  6124. }
  6125. public bool HasDefaultImportEnum {
  6126. get { return result.hasDefaultImportEnum; }
  6127. }
  6128. public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum {
  6129. get { return result.DefaultImportEnum; }
  6130. set { SetDefaultImportEnum(value); }
  6131. }
  6132. public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  6133. PrepareBuilder();
  6134. result.hasDefaultImportEnum = true;
  6135. result.defaultImportEnum_ = value;
  6136. return this;
  6137. }
  6138. public Builder ClearDefaultImportEnum() {
  6139. PrepareBuilder();
  6140. result.hasDefaultImportEnum = false;
  6141. result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR;
  6142. return this;
  6143. }
  6144. public bool HasDefaultStringPiece {
  6145. get { return result.hasDefaultStringPiece; }
  6146. }
  6147. public string DefaultStringPiece {
  6148. get { return result.DefaultStringPiece; }
  6149. set { SetDefaultStringPiece(value); }
  6150. }
  6151. public Builder SetDefaultStringPiece(string value) {
  6152. pb::ThrowHelper.ThrowIfNull(value, "value");
  6153. PrepareBuilder();
  6154. result.hasDefaultStringPiece = true;
  6155. result.defaultStringPiece_ = value;
  6156. return this;
  6157. }
  6158. public Builder ClearDefaultStringPiece() {
  6159. PrepareBuilder();
  6160. result.hasDefaultStringPiece = false;
  6161. result.defaultStringPiece_ = "abc";
  6162. return this;
  6163. }
  6164. public bool HasDefaultCord {
  6165. get { return result.hasDefaultCord; }
  6166. }
  6167. public string DefaultCord {
  6168. get { return result.DefaultCord; }
  6169. set { SetDefaultCord(value); }
  6170. }
  6171. public Builder SetDefaultCord(string value) {
  6172. pb::ThrowHelper.ThrowIfNull(value, "value");
  6173. PrepareBuilder();
  6174. result.hasDefaultCord = true;
  6175. result.defaultCord_ = value;
  6176. return this;
  6177. }
  6178. public Builder ClearDefaultCord() {
  6179. PrepareBuilder();
  6180. result.hasDefaultCord = false;
  6181. result.defaultCord_ = "123";
  6182. return this;
  6183. }
  6184. public bool HasOneofUint32 {
  6185. get { return result.hasOneofUint32; }
  6186. }
  6187. [global::System.CLSCompliant(false)]
  6188. public uint OneofUint32 {
  6189. get { return result.OneofUint32; }
  6190. set { SetOneofUint32(value); }
  6191. }
  6192. [global::System.CLSCompliant(false)]
  6193. public Builder SetOneofUint32(uint value) {
  6194. PrepareBuilder();
  6195. result.hasOneofUint32 = true;
  6196. result.oneofUint32_ = value;
  6197. return this;
  6198. }
  6199. public Builder ClearOneofUint32() {
  6200. PrepareBuilder();
  6201. result.hasOneofUint32 = false;
  6202. result.oneofUint32_ = 0;
  6203. return this;
  6204. }
  6205. public bool HasOneofNestedMessage {
  6206. get { return result.hasOneofNestedMessage; }
  6207. }
  6208. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OneofNestedMessage {
  6209. get { return result.OneofNestedMessage; }
  6210. set { SetOneofNestedMessage(value); }
  6211. }
  6212. public Builder SetOneofNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  6213. pb::ThrowHelper.ThrowIfNull(value, "value");
  6214. PrepareBuilder();
  6215. result.hasOneofNestedMessage = true;
  6216. result.oneofNestedMessage_ = value;
  6217. return this;
  6218. }
  6219. public Builder SetOneofNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  6220. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  6221. PrepareBuilder();
  6222. result.hasOneofNestedMessage = true;
  6223. result.oneofNestedMessage_ = builderForValue.Build();
  6224. return this;
  6225. }
  6226. public Builder MergeOneofNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  6227. pb::ThrowHelper.ThrowIfNull(value, "value");
  6228. PrepareBuilder();
  6229. if (result.hasOneofNestedMessage &&
  6230. result.oneofNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
  6231. result.oneofNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.oneofNestedMessage_).MergeFrom(value).BuildPartial();
  6232. } else {
  6233. result.oneofNestedMessage_ = value;
  6234. }
  6235. result.hasOneofNestedMessage = true;
  6236. return this;
  6237. }
  6238. public Builder ClearOneofNestedMessage() {
  6239. PrepareBuilder();
  6240. result.hasOneofNestedMessage = false;
  6241. result.oneofNestedMessage_ = null;
  6242. return this;
  6243. }
  6244. public bool HasOneofString {
  6245. get { return result.hasOneofString; }
  6246. }
  6247. public string OneofString {
  6248. get { return result.OneofString; }
  6249. set { SetOneofString(value); }
  6250. }
  6251. public Builder SetOneofString(string value) {
  6252. pb::ThrowHelper.ThrowIfNull(value, "value");
  6253. PrepareBuilder();
  6254. result.hasOneofString = true;
  6255. result.oneofString_ = value;
  6256. return this;
  6257. }
  6258. public Builder ClearOneofString() {
  6259. PrepareBuilder();
  6260. result.hasOneofString = false;
  6261. result.oneofString_ = "";
  6262. return this;
  6263. }
  6264. public bool HasOneofBytes {
  6265. get { return result.hasOneofBytes; }
  6266. }
  6267. public pb::ByteString OneofBytes {
  6268. get { return result.OneofBytes; }
  6269. set { SetOneofBytes(value); }
  6270. }
  6271. public Builder SetOneofBytes(pb::ByteString value) {
  6272. pb::ThrowHelper.ThrowIfNull(value, "value");
  6273. PrepareBuilder();
  6274. result.hasOneofBytes = true;
  6275. result.oneofBytes_ = value;
  6276. return this;
  6277. }
  6278. public Builder ClearOneofBytes() {
  6279. PrepareBuilder();
  6280. result.hasOneofBytes = false;
  6281. result.oneofBytes_ = pb::ByteString.Empty;
  6282. return this;
  6283. }
  6284. }
  6285. static TestAllTypes() {
  6286. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  6287. }
  6288. }
  6289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6290. public sealed partial class NestedTestAllTypes : pb::GeneratedMessage<NestedTestAllTypes, NestedTestAllTypes.Builder> {
  6291. private NestedTestAllTypes() { }
  6292. private static readonly NestedTestAllTypes defaultInstance = new NestedTestAllTypes().MakeReadOnly();
  6293. private static readonly string[] _nestedTestAllTypesFieldNames = new string[] { "child", "payload" };
  6294. private static readonly uint[] _nestedTestAllTypesFieldTags = new uint[] { 10, 18 };
  6295. public static NestedTestAllTypes DefaultInstance {
  6296. get { return defaultInstance; }
  6297. }
  6298. public override NestedTestAllTypes DefaultInstanceForType {
  6299. get { return DefaultInstance; }
  6300. }
  6301. protected override NestedTestAllTypes ThisMessage {
  6302. get { return this; }
  6303. }
  6304. public static pbd::MessageDescriptor Descriptor {
  6305. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_NestedTestAllTypes__Descriptor; }
  6306. }
  6307. protected override pb::FieldAccess.FieldAccessorTable<NestedTestAllTypes, NestedTestAllTypes.Builder> InternalFieldAccessors {
  6308. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable; }
  6309. }
  6310. public const int ChildFieldNumber = 1;
  6311. private bool hasChild;
  6312. private global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes child_;
  6313. public bool HasChild {
  6314. get { return hasChild; }
  6315. }
  6316. public global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes Child {
  6317. get { return child_ ?? global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.DefaultInstance; }
  6318. }
  6319. public const int PayloadFieldNumber = 2;
  6320. private bool hasPayload;
  6321. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes payload_;
  6322. public bool HasPayload {
  6323. get { return hasPayload; }
  6324. }
  6325. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes Payload {
  6326. get { return payload_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
  6327. }
  6328. public override bool IsInitialized {
  6329. get {
  6330. return true;
  6331. }
  6332. }
  6333. public override void WriteTo(pb::ICodedOutputStream output) {
  6334. CalcSerializedSize();
  6335. string[] field_names = _nestedTestAllTypesFieldNames;
  6336. if (hasChild) {
  6337. output.WriteMessage(1, field_names[0], Child);
  6338. }
  6339. if (hasPayload) {
  6340. output.WriteMessage(2, field_names[1], Payload);
  6341. }
  6342. UnknownFields.WriteTo(output);
  6343. }
  6344. private int memoizedSerializedSize = -1;
  6345. public override int SerializedSize {
  6346. get {
  6347. int size = memoizedSerializedSize;
  6348. if (size != -1) return size;
  6349. return CalcSerializedSize();
  6350. }
  6351. }
  6352. private int CalcSerializedSize() {
  6353. int size = memoizedSerializedSize;
  6354. if (size != -1) return size;
  6355. size = 0;
  6356. if (hasChild) {
  6357. size += pb::CodedOutputStream.ComputeMessageSize(1, Child);
  6358. }
  6359. if (hasPayload) {
  6360. size += pb::CodedOutputStream.ComputeMessageSize(2, Payload);
  6361. }
  6362. size += UnknownFields.SerializedSize;
  6363. memoizedSerializedSize = size;
  6364. return size;
  6365. }
  6366. public static NestedTestAllTypes ParseFrom(pb::ByteString data) {
  6367. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6368. }
  6369. public static NestedTestAllTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  6370. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6371. }
  6372. public static NestedTestAllTypes ParseFrom(byte[] data) {
  6373. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6374. }
  6375. public static NestedTestAllTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  6376. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6377. }
  6378. public static NestedTestAllTypes ParseFrom(global::System.IO.Stream input) {
  6379. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6380. }
  6381. public static NestedTestAllTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6382. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6383. }
  6384. public static NestedTestAllTypes ParseDelimitedFrom(global::System.IO.Stream input) {
  6385. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  6386. }
  6387. public static NestedTestAllTypes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6388. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  6389. }
  6390. public static NestedTestAllTypes ParseFrom(pb::ICodedInputStream input) {
  6391. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6392. }
  6393. public static NestedTestAllTypes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6394. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6395. }
  6396. private NestedTestAllTypes MakeReadOnly() {
  6397. return this;
  6398. }
  6399. public static Builder CreateBuilder() { return new Builder(); }
  6400. public override Builder ToBuilder() { return CreateBuilder(this); }
  6401. public override Builder CreateBuilderForType() { return new Builder(); }
  6402. public static Builder CreateBuilder(NestedTestAllTypes prototype) {
  6403. return new Builder(prototype);
  6404. }
  6405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6406. public sealed partial class Builder : pb::GeneratedBuilder<NestedTestAllTypes, Builder> {
  6407. protected override Builder ThisBuilder {
  6408. get { return this; }
  6409. }
  6410. public Builder() {
  6411. result = DefaultInstance;
  6412. resultIsReadOnly = true;
  6413. }
  6414. internal Builder(NestedTestAllTypes cloneFrom) {
  6415. result = cloneFrom;
  6416. resultIsReadOnly = true;
  6417. }
  6418. private bool resultIsReadOnly;
  6419. private NestedTestAllTypes result;
  6420. private NestedTestAllTypes PrepareBuilder() {
  6421. if (resultIsReadOnly) {
  6422. NestedTestAllTypes original = result;
  6423. result = new NestedTestAllTypes();
  6424. resultIsReadOnly = false;
  6425. MergeFrom(original);
  6426. }
  6427. return result;
  6428. }
  6429. public override bool IsInitialized {
  6430. get { return result.IsInitialized; }
  6431. }
  6432. protected override NestedTestAllTypes MessageBeingBuilt {
  6433. get { return PrepareBuilder(); }
  6434. }
  6435. public override Builder Clear() {
  6436. result = DefaultInstance;
  6437. resultIsReadOnly = true;
  6438. return this;
  6439. }
  6440. public override Builder Clone() {
  6441. if (resultIsReadOnly) {
  6442. return new Builder(result);
  6443. } else {
  6444. return new Builder().MergeFrom(result);
  6445. }
  6446. }
  6447. public override pbd::MessageDescriptor DescriptorForType {
  6448. get { return global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.Descriptor; }
  6449. }
  6450. public override NestedTestAllTypes DefaultInstanceForType {
  6451. get { return global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.DefaultInstance; }
  6452. }
  6453. public override NestedTestAllTypes BuildPartial() {
  6454. if (resultIsReadOnly) {
  6455. return result;
  6456. }
  6457. resultIsReadOnly = true;
  6458. return result.MakeReadOnly();
  6459. }
  6460. public override Builder MergeFrom(pb::IMessage other) {
  6461. if (other is NestedTestAllTypes) {
  6462. return MergeFrom((NestedTestAllTypes) other);
  6463. } else {
  6464. base.MergeFrom(other);
  6465. return this;
  6466. }
  6467. }
  6468. public override Builder MergeFrom(NestedTestAllTypes other) {
  6469. if (other == global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.DefaultInstance) return this;
  6470. PrepareBuilder();
  6471. if (other.HasChild) {
  6472. MergeChild(other.Child);
  6473. }
  6474. if (other.HasPayload) {
  6475. MergePayload(other.Payload);
  6476. }
  6477. this.MergeUnknownFields(other.UnknownFields);
  6478. return this;
  6479. }
  6480. public override Builder MergeFrom(pb::ICodedInputStream input) {
  6481. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  6482. }
  6483. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6484. PrepareBuilder();
  6485. pb::UnknownFieldSet.Builder unknownFields = null;
  6486. uint tag;
  6487. string field_name;
  6488. while (input.ReadTag(out tag, out field_name)) {
  6489. if(tag == 0 && field_name != null) {
  6490. int field_ordinal = global::System.Array.BinarySearch(_nestedTestAllTypesFieldNames, field_name, global::System.StringComparer.Ordinal);
  6491. if(field_ordinal >= 0)
  6492. tag = _nestedTestAllTypesFieldTags[field_ordinal];
  6493. else {
  6494. if (unknownFields == null) {
  6495. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6496. }
  6497. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  6498. continue;
  6499. }
  6500. }
  6501. switch (tag) {
  6502. case 0: {
  6503. throw pb::InvalidProtocolBufferException.InvalidTag();
  6504. }
  6505. default: {
  6506. if (pb::WireFormat.IsEndGroupTag(tag)) {
  6507. if (unknownFields != null) {
  6508. this.UnknownFields = unknownFields.Build();
  6509. }
  6510. return this;
  6511. }
  6512. if (unknownFields == null) {
  6513. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6514. }
  6515. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  6516. break;
  6517. }
  6518. case 10: {
  6519. global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.CreateBuilder();
  6520. if (result.hasChild) {
  6521. subBuilder.MergeFrom(Child);
  6522. }
  6523. input.ReadMessage(subBuilder, extensionRegistry);
  6524. Child = subBuilder.BuildPartial();
  6525. break;
  6526. }
  6527. case 18: {
  6528. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
  6529. if (result.hasPayload) {
  6530. subBuilder.MergeFrom(Payload);
  6531. }
  6532. input.ReadMessage(subBuilder, extensionRegistry);
  6533. Payload = subBuilder.BuildPartial();
  6534. break;
  6535. }
  6536. }
  6537. }
  6538. if (unknownFields != null) {
  6539. this.UnknownFields = unknownFields.Build();
  6540. }
  6541. return this;
  6542. }
  6543. public bool HasChild {
  6544. get { return result.hasChild; }
  6545. }
  6546. public global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes Child {
  6547. get { return result.Child; }
  6548. set { SetChild(value); }
  6549. }
  6550. public Builder SetChild(global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes value) {
  6551. pb::ThrowHelper.ThrowIfNull(value, "value");
  6552. PrepareBuilder();
  6553. result.hasChild = true;
  6554. result.child_ = value;
  6555. return this;
  6556. }
  6557. public Builder SetChild(global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.Builder builderForValue) {
  6558. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  6559. PrepareBuilder();
  6560. result.hasChild = true;
  6561. result.child_ = builderForValue.Build();
  6562. return this;
  6563. }
  6564. public Builder MergeChild(global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes value) {
  6565. pb::ThrowHelper.ThrowIfNull(value, "value");
  6566. PrepareBuilder();
  6567. if (result.hasChild &&
  6568. result.child_ != global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.DefaultInstance) {
  6569. result.child_ = global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.CreateBuilder(result.child_).MergeFrom(value).BuildPartial();
  6570. } else {
  6571. result.child_ = value;
  6572. }
  6573. result.hasChild = true;
  6574. return this;
  6575. }
  6576. public Builder ClearChild() {
  6577. PrepareBuilder();
  6578. result.hasChild = false;
  6579. result.child_ = null;
  6580. return this;
  6581. }
  6582. public bool HasPayload {
  6583. get { return result.hasPayload; }
  6584. }
  6585. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes Payload {
  6586. get { return result.Payload; }
  6587. set { SetPayload(value); }
  6588. }
  6589. public Builder SetPayload(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  6590. pb::ThrowHelper.ThrowIfNull(value, "value");
  6591. PrepareBuilder();
  6592. result.hasPayload = true;
  6593. result.payload_ = value;
  6594. return this;
  6595. }
  6596. public Builder SetPayload(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  6597. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  6598. PrepareBuilder();
  6599. result.hasPayload = true;
  6600. result.payload_ = builderForValue.Build();
  6601. return this;
  6602. }
  6603. public Builder MergePayload(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  6604. pb::ThrowHelper.ThrowIfNull(value, "value");
  6605. PrepareBuilder();
  6606. if (result.hasPayload &&
  6607. result.payload_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
  6608. result.payload_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.payload_).MergeFrom(value).BuildPartial();
  6609. } else {
  6610. result.payload_ = value;
  6611. }
  6612. result.hasPayload = true;
  6613. return this;
  6614. }
  6615. public Builder ClearPayload() {
  6616. PrepareBuilder();
  6617. result.hasPayload = false;
  6618. result.payload_ = null;
  6619. return this;
  6620. }
  6621. }
  6622. static NestedTestAllTypes() {
  6623. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  6624. }
  6625. }
  6626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6627. public sealed partial class TestDeprecatedFields : pb::GeneratedMessage<TestDeprecatedFields, TestDeprecatedFields.Builder> {
  6628. private TestDeprecatedFields() { }
  6629. private static readonly TestDeprecatedFields defaultInstance = new TestDeprecatedFields().MakeReadOnly();
  6630. private static readonly string[] _testDeprecatedFieldsFieldNames = new string[] { "deprecated_int32" };
  6631. private static readonly uint[] _testDeprecatedFieldsFieldTags = new uint[] { 8 };
  6632. public static TestDeprecatedFields DefaultInstance {
  6633. get { return defaultInstance; }
  6634. }
  6635. public override TestDeprecatedFields DefaultInstanceForType {
  6636. get { return DefaultInstance; }
  6637. }
  6638. protected override TestDeprecatedFields ThisMessage {
  6639. get { return this; }
  6640. }
  6641. public static pbd::MessageDescriptor Descriptor {
  6642. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDeprecatedFields__Descriptor; }
  6643. }
  6644. protected override pb::FieldAccess.FieldAccessorTable<TestDeprecatedFields, TestDeprecatedFields.Builder> InternalFieldAccessors {
  6645. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable; }
  6646. }
  6647. public const int DeprecatedInt32FieldNumber = 1;
  6648. private bool hasDeprecatedInt32;
  6649. private int deprecatedInt32_;
  6650. [global::System.ObsoleteAttribute()]
  6651. public bool HasDeprecatedInt32 {
  6652. get { return hasDeprecatedInt32; }
  6653. }
  6654. [global::System.ObsoleteAttribute()]
  6655. public int DeprecatedInt32 {
  6656. get { return deprecatedInt32_; }
  6657. }
  6658. public override bool IsInitialized {
  6659. get {
  6660. return true;
  6661. }
  6662. }
  6663. public override void WriteTo(pb::ICodedOutputStream output) {
  6664. CalcSerializedSize();
  6665. string[] field_names = _testDeprecatedFieldsFieldNames;
  6666. if (hasDeprecatedInt32) {
  6667. output.WriteInt32(1, field_names[0], DeprecatedInt32);
  6668. }
  6669. UnknownFields.WriteTo(output);
  6670. }
  6671. private int memoizedSerializedSize = -1;
  6672. public override int SerializedSize {
  6673. get {
  6674. int size = memoizedSerializedSize;
  6675. if (size != -1) return size;
  6676. return CalcSerializedSize();
  6677. }
  6678. }
  6679. private int CalcSerializedSize() {
  6680. int size = memoizedSerializedSize;
  6681. if (size != -1) return size;
  6682. size = 0;
  6683. if (hasDeprecatedInt32) {
  6684. size += pb::CodedOutputStream.ComputeInt32Size(1, DeprecatedInt32);
  6685. }
  6686. size += UnknownFields.SerializedSize;
  6687. memoizedSerializedSize = size;
  6688. return size;
  6689. }
  6690. public static TestDeprecatedFields ParseFrom(pb::ByteString data) {
  6691. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6692. }
  6693. public static TestDeprecatedFields ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  6694. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6695. }
  6696. public static TestDeprecatedFields ParseFrom(byte[] data) {
  6697. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6698. }
  6699. public static TestDeprecatedFields ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  6700. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6701. }
  6702. public static TestDeprecatedFields ParseFrom(global::System.IO.Stream input) {
  6703. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6704. }
  6705. public static TestDeprecatedFields ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6706. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6707. }
  6708. public static TestDeprecatedFields ParseDelimitedFrom(global::System.IO.Stream input) {
  6709. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  6710. }
  6711. public static TestDeprecatedFields ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6712. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  6713. }
  6714. public static TestDeprecatedFields ParseFrom(pb::ICodedInputStream input) {
  6715. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6716. }
  6717. public static TestDeprecatedFields ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6718. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6719. }
  6720. private TestDeprecatedFields MakeReadOnly() {
  6721. return this;
  6722. }
  6723. public static Builder CreateBuilder() { return new Builder(); }
  6724. public override Builder ToBuilder() { return CreateBuilder(this); }
  6725. public override Builder CreateBuilderForType() { return new Builder(); }
  6726. public static Builder CreateBuilder(TestDeprecatedFields prototype) {
  6727. return new Builder(prototype);
  6728. }
  6729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6730. public sealed partial class Builder : pb::GeneratedBuilder<TestDeprecatedFields, Builder> {
  6731. protected override Builder ThisBuilder {
  6732. get { return this; }
  6733. }
  6734. public Builder() {
  6735. result = DefaultInstance;
  6736. resultIsReadOnly = true;
  6737. }
  6738. internal Builder(TestDeprecatedFields cloneFrom) {
  6739. result = cloneFrom;
  6740. resultIsReadOnly = true;
  6741. }
  6742. private bool resultIsReadOnly;
  6743. private TestDeprecatedFields result;
  6744. private TestDeprecatedFields PrepareBuilder() {
  6745. if (resultIsReadOnly) {
  6746. TestDeprecatedFields original = result;
  6747. result = new TestDeprecatedFields();
  6748. resultIsReadOnly = false;
  6749. MergeFrom(original);
  6750. }
  6751. return result;
  6752. }
  6753. public override bool IsInitialized {
  6754. get { return result.IsInitialized; }
  6755. }
  6756. protected override TestDeprecatedFields MessageBeingBuilt {
  6757. get { return PrepareBuilder(); }
  6758. }
  6759. public override Builder Clear() {
  6760. result = DefaultInstance;
  6761. resultIsReadOnly = true;
  6762. return this;
  6763. }
  6764. public override Builder Clone() {
  6765. if (resultIsReadOnly) {
  6766. return new Builder(result);
  6767. } else {
  6768. return new Builder().MergeFrom(result);
  6769. }
  6770. }
  6771. public override pbd::MessageDescriptor DescriptorForType {
  6772. get { return global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.Descriptor; }
  6773. }
  6774. public override TestDeprecatedFields DefaultInstanceForType {
  6775. get { return global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.DefaultInstance; }
  6776. }
  6777. public override TestDeprecatedFields BuildPartial() {
  6778. if (resultIsReadOnly) {
  6779. return result;
  6780. }
  6781. resultIsReadOnly = true;
  6782. return result.MakeReadOnly();
  6783. }
  6784. public override Builder MergeFrom(pb::IMessage other) {
  6785. if (other is TestDeprecatedFields) {
  6786. return MergeFrom((TestDeprecatedFields) other);
  6787. } else {
  6788. base.MergeFrom(other);
  6789. return this;
  6790. }
  6791. }
  6792. public override Builder MergeFrom(TestDeprecatedFields other) {
  6793. if (other == global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.DefaultInstance) return this;
  6794. PrepareBuilder();
  6795. if (other.HasDeprecatedInt32) {
  6796. DeprecatedInt32 = other.DeprecatedInt32;
  6797. }
  6798. this.MergeUnknownFields(other.UnknownFields);
  6799. return this;
  6800. }
  6801. public override Builder MergeFrom(pb::ICodedInputStream input) {
  6802. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  6803. }
  6804. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6805. PrepareBuilder();
  6806. pb::UnknownFieldSet.Builder unknownFields = null;
  6807. uint tag;
  6808. string field_name;
  6809. while (input.ReadTag(out tag, out field_name)) {
  6810. if(tag == 0 && field_name != null) {
  6811. int field_ordinal = global::System.Array.BinarySearch(_testDeprecatedFieldsFieldNames, field_name, global::System.StringComparer.Ordinal);
  6812. if(field_ordinal >= 0)
  6813. tag = _testDeprecatedFieldsFieldTags[field_ordinal];
  6814. else {
  6815. if (unknownFields == null) {
  6816. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6817. }
  6818. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  6819. continue;
  6820. }
  6821. }
  6822. switch (tag) {
  6823. case 0: {
  6824. throw pb::InvalidProtocolBufferException.InvalidTag();
  6825. }
  6826. default: {
  6827. if (pb::WireFormat.IsEndGroupTag(tag)) {
  6828. if (unknownFields != null) {
  6829. this.UnknownFields = unknownFields.Build();
  6830. }
  6831. return this;
  6832. }
  6833. if (unknownFields == null) {
  6834. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6835. }
  6836. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  6837. break;
  6838. }
  6839. case 8: {
  6840. result.hasDeprecatedInt32 = input.ReadInt32(ref result.deprecatedInt32_);
  6841. break;
  6842. }
  6843. }
  6844. }
  6845. if (unknownFields != null) {
  6846. this.UnknownFields = unknownFields.Build();
  6847. }
  6848. return this;
  6849. }
  6850. [global::System.ObsoleteAttribute()]
  6851. public bool HasDeprecatedInt32 {
  6852. get { return result.hasDeprecatedInt32; }
  6853. }
  6854. [global::System.ObsoleteAttribute()]
  6855. public int DeprecatedInt32 {
  6856. get { return result.DeprecatedInt32; }
  6857. set { SetDeprecatedInt32(value); }
  6858. }
  6859. [global::System.ObsoleteAttribute()]
  6860. public Builder SetDeprecatedInt32(int value) {
  6861. PrepareBuilder();
  6862. result.hasDeprecatedInt32 = true;
  6863. result.deprecatedInt32_ = value;
  6864. return this;
  6865. }
  6866. [global::System.ObsoleteAttribute()]
  6867. public Builder ClearDeprecatedInt32() {
  6868. PrepareBuilder();
  6869. result.hasDeprecatedInt32 = false;
  6870. result.deprecatedInt32_ = 0;
  6871. return this;
  6872. }
  6873. }
  6874. static TestDeprecatedFields() {
  6875. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  6876. }
  6877. }
  6878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6879. public sealed partial class ForeignMessage : pb::GeneratedMessage<ForeignMessage, ForeignMessage.Builder> {
  6880. private ForeignMessage() { }
  6881. private static readonly ForeignMessage defaultInstance = new ForeignMessage().MakeReadOnly();
  6882. private static readonly string[] _foreignMessageFieldNames = new string[] { "c" };
  6883. private static readonly uint[] _foreignMessageFieldTags = new uint[] { 8 };
  6884. public static ForeignMessage DefaultInstance {
  6885. get { return defaultInstance; }
  6886. }
  6887. public override ForeignMessage DefaultInstanceForType {
  6888. get { return DefaultInstance; }
  6889. }
  6890. protected override ForeignMessage ThisMessage {
  6891. get { return this; }
  6892. }
  6893. public static pbd::MessageDescriptor Descriptor {
  6894. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_ForeignMessage__Descriptor; }
  6895. }
  6896. protected override pb::FieldAccess.FieldAccessorTable<ForeignMessage, ForeignMessage.Builder> InternalFieldAccessors {
  6897. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; }
  6898. }
  6899. public const int CFieldNumber = 1;
  6900. private bool hasC;
  6901. private int c_;
  6902. public bool HasC {
  6903. get { return hasC; }
  6904. }
  6905. public int C {
  6906. get { return c_; }
  6907. }
  6908. public override bool IsInitialized {
  6909. get {
  6910. return true;
  6911. }
  6912. }
  6913. public override void WriteTo(pb::ICodedOutputStream output) {
  6914. CalcSerializedSize();
  6915. string[] field_names = _foreignMessageFieldNames;
  6916. if (hasC) {
  6917. output.WriteInt32(1, field_names[0], C);
  6918. }
  6919. UnknownFields.WriteTo(output);
  6920. }
  6921. private int memoizedSerializedSize = -1;
  6922. public override int SerializedSize {
  6923. get {
  6924. int size = memoizedSerializedSize;
  6925. if (size != -1) return size;
  6926. return CalcSerializedSize();
  6927. }
  6928. }
  6929. private int CalcSerializedSize() {
  6930. int size = memoizedSerializedSize;
  6931. if (size != -1) return size;
  6932. size = 0;
  6933. if (hasC) {
  6934. size += pb::CodedOutputStream.ComputeInt32Size(1, C);
  6935. }
  6936. size += UnknownFields.SerializedSize;
  6937. memoizedSerializedSize = size;
  6938. return size;
  6939. }
  6940. public static ForeignMessage ParseFrom(pb::ByteString data) {
  6941. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6942. }
  6943. public static ForeignMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  6944. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6945. }
  6946. public static ForeignMessage ParseFrom(byte[] data) {
  6947. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6948. }
  6949. public static ForeignMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  6950. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6951. }
  6952. public static ForeignMessage ParseFrom(global::System.IO.Stream input) {
  6953. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6954. }
  6955. public static ForeignMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6956. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6957. }
  6958. public static ForeignMessage ParseDelimitedFrom(global::System.IO.Stream input) {
  6959. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  6960. }
  6961. public static ForeignMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6962. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  6963. }
  6964. public static ForeignMessage ParseFrom(pb::ICodedInputStream input) {
  6965. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6966. }
  6967. public static ForeignMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6968. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6969. }
  6970. private ForeignMessage MakeReadOnly() {
  6971. return this;
  6972. }
  6973. public static Builder CreateBuilder() { return new Builder(); }
  6974. public override Builder ToBuilder() { return CreateBuilder(this); }
  6975. public override Builder CreateBuilderForType() { return new Builder(); }
  6976. public static Builder CreateBuilder(ForeignMessage prototype) {
  6977. return new Builder(prototype);
  6978. }
  6979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6980. public sealed partial class Builder : pb::GeneratedBuilder<ForeignMessage, Builder> {
  6981. protected override Builder ThisBuilder {
  6982. get { return this; }
  6983. }
  6984. public Builder() {
  6985. result = DefaultInstance;
  6986. resultIsReadOnly = true;
  6987. }
  6988. internal Builder(ForeignMessage cloneFrom) {
  6989. result = cloneFrom;
  6990. resultIsReadOnly = true;
  6991. }
  6992. private bool resultIsReadOnly;
  6993. private ForeignMessage result;
  6994. private ForeignMessage PrepareBuilder() {
  6995. if (resultIsReadOnly) {
  6996. ForeignMessage original = result;
  6997. result = new ForeignMessage();
  6998. resultIsReadOnly = false;
  6999. MergeFrom(original);
  7000. }
  7001. return result;
  7002. }
  7003. public override bool IsInitialized {
  7004. get { return result.IsInitialized; }
  7005. }
  7006. protected override ForeignMessage MessageBeingBuilt {
  7007. get { return PrepareBuilder(); }
  7008. }
  7009. public override Builder Clear() {
  7010. result = DefaultInstance;
  7011. resultIsReadOnly = true;
  7012. return this;
  7013. }
  7014. public override Builder Clone() {
  7015. if (resultIsReadOnly) {
  7016. return new Builder(result);
  7017. } else {
  7018. return new Builder().MergeFrom(result);
  7019. }
  7020. }
  7021. public override pbd::MessageDescriptor DescriptorForType {
  7022. get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Descriptor; }
  7023. }
  7024. public override ForeignMessage DefaultInstanceForType {
  7025. get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; }
  7026. }
  7027. public override ForeignMessage BuildPartial() {
  7028. if (resultIsReadOnly) {
  7029. return result;
  7030. }
  7031. resultIsReadOnly = true;
  7032. return result.MakeReadOnly();
  7033. }
  7034. public override Builder MergeFrom(pb::IMessage other) {
  7035. if (other is ForeignMessage) {
  7036. return MergeFrom((ForeignMessage) other);
  7037. } else {
  7038. base.MergeFrom(other);
  7039. return this;
  7040. }
  7041. }
  7042. public override Builder MergeFrom(ForeignMessage other) {
  7043. if (other == global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) return this;
  7044. PrepareBuilder();
  7045. if (other.HasC) {
  7046. C = other.C;
  7047. }
  7048. this.MergeUnknownFields(other.UnknownFields);
  7049. return this;
  7050. }
  7051. public override Builder MergeFrom(pb::ICodedInputStream input) {
  7052. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7053. }
  7054. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7055. PrepareBuilder();
  7056. pb::UnknownFieldSet.Builder unknownFields = null;
  7057. uint tag;
  7058. string field_name;
  7059. while (input.ReadTag(out tag, out field_name)) {
  7060. if(tag == 0 && field_name != null) {
  7061. int field_ordinal = global::System.Array.BinarySearch(_foreignMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  7062. if(field_ordinal >= 0)
  7063. tag = _foreignMessageFieldTags[field_ordinal];
  7064. else {
  7065. if (unknownFields == null) {
  7066. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7067. }
  7068. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  7069. continue;
  7070. }
  7071. }
  7072. switch (tag) {
  7073. case 0: {
  7074. throw pb::InvalidProtocolBufferException.InvalidTag();
  7075. }
  7076. default: {
  7077. if (pb::WireFormat.IsEndGroupTag(tag)) {
  7078. if (unknownFields != null) {
  7079. this.UnknownFields = unknownFields.Build();
  7080. }
  7081. return this;
  7082. }
  7083. if (unknownFields == null) {
  7084. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7085. }
  7086. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  7087. break;
  7088. }
  7089. case 8: {
  7090. result.hasC = input.ReadInt32(ref result.c_);
  7091. break;
  7092. }
  7093. }
  7094. }
  7095. if (unknownFields != null) {
  7096. this.UnknownFields = unknownFields.Build();
  7097. }
  7098. return this;
  7099. }
  7100. public bool HasC {
  7101. get { return result.hasC; }
  7102. }
  7103. public int C {
  7104. get { return result.C; }
  7105. set { SetC(value); }
  7106. }
  7107. public Builder SetC(int value) {
  7108. PrepareBuilder();
  7109. result.hasC = true;
  7110. result.c_ = value;
  7111. return this;
  7112. }
  7113. public Builder ClearC() {
  7114. PrepareBuilder();
  7115. result.hasC = false;
  7116. result.c_ = 0;
  7117. return this;
  7118. }
  7119. }
  7120. static ForeignMessage() {
  7121. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  7122. }
  7123. }
  7124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7125. public sealed partial class TestAllExtensions : pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder> {
  7126. private TestAllExtensions() { }
  7127. private static readonly TestAllExtensions defaultInstance = new TestAllExtensions().MakeReadOnly();
  7128. private static readonly string[] _testAllExtensionsFieldNames = new string[] { };
  7129. private static readonly uint[] _testAllExtensionsFieldTags = new uint[] { };
  7130. public static TestAllExtensions DefaultInstance {
  7131. get { return defaultInstance; }
  7132. }
  7133. public override TestAllExtensions DefaultInstanceForType {
  7134. get { return DefaultInstance; }
  7135. }
  7136. protected override TestAllExtensions ThisMessage {
  7137. get { return this; }
  7138. }
  7139. public static pbd::MessageDescriptor Descriptor {
  7140. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllExtensions__Descriptor; }
  7141. }
  7142. protected override pb::FieldAccess.FieldAccessorTable<TestAllExtensions, TestAllExtensions.Builder> InternalFieldAccessors {
  7143. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable; }
  7144. }
  7145. public override bool IsInitialized {
  7146. get {
  7147. if (!ExtensionsAreInitialized) return false;
  7148. return true;
  7149. }
  7150. }
  7151. public override void WriteTo(pb::ICodedOutputStream output) {
  7152. CalcSerializedSize();
  7153. string[] field_names = _testAllExtensionsFieldNames;
  7154. pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  7155. extensionWriter.WriteUntil(536870912, output);
  7156. UnknownFields.WriteTo(output);
  7157. }
  7158. private int memoizedSerializedSize = -1;
  7159. public override int SerializedSize {
  7160. get {
  7161. int size = memoizedSerializedSize;
  7162. if (size != -1) return size;
  7163. return CalcSerializedSize();
  7164. }
  7165. }
  7166. private int CalcSerializedSize() {
  7167. int size = memoizedSerializedSize;
  7168. if (size != -1) return size;
  7169. size = 0;
  7170. size += ExtensionsSerializedSize;
  7171. size += UnknownFields.SerializedSize;
  7172. memoizedSerializedSize = size;
  7173. return size;
  7174. }
  7175. public static TestAllExtensions ParseFrom(pb::ByteString data) {
  7176. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7177. }
  7178. public static TestAllExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  7179. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  7180. }
  7181. public static TestAllExtensions ParseFrom(byte[] data) {
  7182. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7183. }
  7184. public static TestAllExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  7185. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  7186. }
  7187. public static TestAllExtensions ParseFrom(global::System.IO.Stream input) {
  7188. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7189. }
  7190. public static TestAllExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  7191. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  7192. }
  7193. public static TestAllExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
  7194. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  7195. }
  7196. public static TestAllExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  7197. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  7198. }
  7199. public static TestAllExtensions ParseFrom(pb::ICodedInputStream input) {
  7200. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7201. }
  7202. public static TestAllExtensions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7203. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  7204. }
  7205. private TestAllExtensions MakeReadOnly() {
  7206. return this;
  7207. }
  7208. public static Builder CreateBuilder() { return new Builder(); }
  7209. public override Builder ToBuilder() { return CreateBuilder(this); }
  7210. public override Builder CreateBuilderForType() { return new Builder(); }
  7211. public static Builder CreateBuilder(TestAllExtensions prototype) {
  7212. return new Builder(prototype);
  7213. }
  7214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7215. public sealed partial class Builder : pb::ExtendableBuilder<TestAllExtensions, Builder> {
  7216. protected override Builder ThisBuilder {
  7217. get { return this; }
  7218. }
  7219. public Builder() {
  7220. result = DefaultInstance;
  7221. resultIsReadOnly = true;
  7222. }
  7223. internal Builder(TestAllExtensions cloneFrom) {
  7224. result = cloneFrom;
  7225. resultIsReadOnly = true;
  7226. }
  7227. private bool resultIsReadOnly;
  7228. private TestAllExtensions result;
  7229. private TestAllExtensions PrepareBuilder() {
  7230. if (resultIsReadOnly) {
  7231. TestAllExtensions original = result;
  7232. result = new TestAllExtensions();
  7233. resultIsReadOnly = false;
  7234. MergeFrom(original);
  7235. }
  7236. return result;
  7237. }
  7238. public override bool IsInitialized {
  7239. get { return result.IsInitialized; }
  7240. }
  7241. protected override TestAllExtensions MessageBeingBuilt {
  7242. get { return PrepareBuilder(); }
  7243. }
  7244. public override Builder Clear() {
  7245. result = DefaultInstance;
  7246. resultIsReadOnly = true;
  7247. return this;
  7248. }
  7249. public override Builder Clone() {
  7250. if (resultIsReadOnly) {
  7251. return new Builder(result);
  7252. } else {
  7253. return new Builder().MergeFrom(result);
  7254. }
  7255. }
  7256. public override pbd::MessageDescriptor DescriptorForType {
  7257. get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Descriptor; }
  7258. }
  7259. public override TestAllExtensions DefaultInstanceForType {
  7260. get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.DefaultInstance; }
  7261. }
  7262. public override TestAllExtensions BuildPartial() {
  7263. if (resultIsReadOnly) {
  7264. return result;
  7265. }
  7266. resultIsReadOnly = true;
  7267. return result.MakeReadOnly();
  7268. }
  7269. public override Builder MergeFrom(pb::IMessage other) {
  7270. if (other is TestAllExtensions) {
  7271. return MergeFrom((TestAllExtensions) other);
  7272. } else {
  7273. base.MergeFrom(other);
  7274. return this;
  7275. }
  7276. }
  7277. public override Builder MergeFrom(TestAllExtensions other) {
  7278. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.DefaultInstance) return this;
  7279. PrepareBuilder();
  7280. this.MergeExtensionFields(other);
  7281. this.MergeUnknownFields(other.UnknownFields);
  7282. return this;
  7283. }
  7284. public override Builder MergeFrom(pb::ICodedInputStream input) {
  7285. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7286. }
  7287. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7288. PrepareBuilder();
  7289. pb::UnknownFieldSet.Builder unknownFields = null;
  7290. uint tag;
  7291. string field_name;
  7292. while (input.ReadTag(out tag, out field_name)) {
  7293. if(tag == 0 && field_name != null) {
  7294. int field_ordinal = global::System.Array.BinarySearch(_testAllExtensionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  7295. if(field_ordinal >= 0)
  7296. tag = _testAllExtensionsFieldTags[field_ordinal];
  7297. else {
  7298. if (unknownFields == null) {
  7299. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7300. }
  7301. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  7302. continue;
  7303. }
  7304. }
  7305. switch (tag) {
  7306. case 0: {
  7307. throw pb::InvalidProtocolBufferException.InvalidTag();
  7308. }
  7309. default: {
  7310. if (pb::WireFormat.IsEndGroupTag(tag)) {
  7311. if (unknownFields != null) {
  7312. this.UnknownFields = unknownFields.Build();
  7313. }
  7314. return this;
  7315. }
  7316. if (unknownFields == null) {
  7317. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7318. }
  7319. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  7320. break;
  7321. }
  7322. }
  7323. }
  7324. if (unknownFields != null) {
  7325. this.UnknownFields = unknownFields.Build();
  7326. }
  7327. return this;
  7328. }
  7329. }
  7330. static TestAllExtensions() {
  7331. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  7332. }
  7333. }
  7334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7335. public sealed partial class OptionalGroup_extension : pb::GeneratedMessage<OptionalGroup_extension, OptionalGroup_extension.Builder> {
  7336. private OptionalGroup_extension() { }
  7337. private static readonly OptionalGroup_extension defaultInstance = new OptionalGroup_extension().MakeReadOnly();
  7338. private static readonly string[] _optionalGroupExtensionFieldNames = new string[] { "a" };
  7339. private static readonly uint[] _optionalGroupExtensionFieldTags = new uint[] { 136 };
  7340. public static OptionalGroup_extension DefaultInstance {
  7341. get { return defaultInstance; }
  7342. }
  7343. public override OptionalGroup_extension DefaultInstanceForType {
  7344. get { return DefaultInstance; }
  7345. }
  7346. protected override OptionalGroup_extension ThisMessage {
  7347. get { return this; }
  7348. }
  7349. public static pbd::MessageDescriptor Descriptor {
  7350. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor; }
  7351. }
  7352. protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup_extension, OptionalGroup_extension.Builder> InternalFieldAccessors {
  7353. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable; }
  7354. }
  7355. public const int AFieldNumber = 17;
  7356. private bool hasA;
  7357. private int a_;
  7358. public bool HasA {
  7359. get { return hasA; }
  7360. }
  7361. public int A {
  7362. get { return a_; }
  7363. }
  7364. public override bool IsInitialized {
  7365. get {
  7366. return true;
  7367. }
  7368. }
  7369. public override void WriteTo(pb::ICodedOutputStream output) {
  7370. CalcSerializedSize();
  7371. string[] field_names = _optionalGroupExtensionFieldNames;
  7372. if (hasA) {
  7373. output.WriteInt32(17, field_names[0], A);
  7374. }
  7375. UnknownFields.WriteTo(output);
  7376. }
  7377. private int memoizedSerializedSize = -1;
  7378. public override int SerializedSize {
  7379. get {
  7380. int size = memoizedSerializedSize;
  7381. if (size != -1) return size;
  7382. return CalcSerializedSize();
  7383. }
  7384. }
  7385. private int CalcSerializedSize() {
  7386. int size = memoizedSerializedSize;
  7387. if (size != -1) return size;
  7388. size = 0;
  7389. if (hasA) {
  7390. size += pb::CodedOutputStream.ComputeInt32Size(17, A);
  7391. }
  7392. size += UnknownFields.SerializedSize;
  7393. memoizedSerializedSize = size;
  7394. return size;
  7395. }
  7396. public static OptionalGroup_extension ParseFrom(pb::ByteString data) {
  7397. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7398. }
  7399. public static OptionalGroup_extension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  7400. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  7401. }
  7402. public static OptionalGroup_extension ParseFrom(byte[] data) {
  7403. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7404. }
  7405. public static OptionalGroup_extension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  7406. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  7407. }
  7408. public static OptionalGroup_extension ParseFrom(global::System.IO.Stream input) {
  7409. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7410. }
  7411. public static OptionalGroup_extension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  7412. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  7413. }
  7414. public static OptionalGroup_extension ParseDelimitedFrom(global::System.IO.Stream input) {
  7415. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  7416. }
  7417. public static OptionalGroup_extension ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  7418. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  7419. }
  7420. public static OptionalGroup_extension ParseFrom(pb::ICodedInputStream input) {
  7421. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7422. }
  7423. public static OptionalGroup_extension ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7424. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  7425. }
  7426. private OptionalGroup_extension MakeReadOnly() {
  7427. return this;
  7428. }
  7429. public static Builder CreateBuilder() { return new Builder(); }
  7430. public override Builder ToBuilder() { return CreateBuilder(this); }
  7431. public override Builder CreateBuilderForType() { return new Builder(); }
  7432. public static Builder CreateBuilder(OptionalGroup_extension prototype) {
  7433. return new Builder(prototype);
  7434. }
  7435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7436. public sealed partial class Builder : pb::GeneratedBuilder<OptionalGroup_extension, Builder> {
  7437. protected override Builder ThisBuilder {
  7438. get { return this; }
  7439. }
  7440. public Builder() {
  7441. result = DefaultInstance;
  7442. resultIsReadOnly = true;
  7443. }
  7444. internal Builder(OptionalGroup_extension cloneFrom) {
  7445. result = cloneFrom;
  7446. resultIsReadOnly = true;
  7447. }
  7448. private bool resultIsReadOnly;
  7449. private OptionalGroup_extension result;
  7450. private OptionalGroup_extension PrepareBuilder() {
  7451. if (resultIsReadOnly) {
  7452. OptionalGroup_extension original = result;
  7453. result = new OptionalGroup_extension();
  7454. resultIsReadOnly = false;
  7455. MergeFrom(original);
  7456. }
  7457. return result;
  7458. }
  7459. public override bool IsInitialized {
  7460. get { return result.IsInitialized; }
  7461. }
  7462. protected override OptionalGroup_extension MessageBeingBuilt {
  7463. get { return PrepareBuilder(); }
  7464. }
  7465. public override Builder Clear() {
  7466. result = DefaultInstance;
  7467. resultIsReadOnly = true;
  7468. return this;
  7469. }
  7470. public override Builder Clone() {
  7471. if (resultIsReadOnly) {
  7472. return new Builder(result);
  7473. } else {
  7474. return new Builder().MergeFrom(result);
  7475. }
  7476. }
  7477. public override pbd::MessageDescriptor DescriptorForType {
  7478. get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Descriptor; }
  7479. }
  7480. public override OptionalGroup_extension DefaultInstanceForType {
  7481. get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.DefaultInstance; }
  7482. }
  7483. public override OptionalGroup_extension BuildPartial() {
  7484. if (resultIsReadOnly) {
  7485. return result;
  7486. }
  7487. resultIsReadOnly = true;
  7488. return result.MakeReadOnly();
  7489. }
  7490. public override Builder MergeFrom(pb::IMessage other) {
  7491. if (other is OptionalGroup_extension) {
  7492. return MergeFrom((OptionalGroup_extension) other);
  7493. } else {
  7494. base.MergeFrom(other);
  7495. return this;
  7496. }
  7497. }
  7498. public override Builder MergeFrom(OptionalGroup_extension other) {
  7499. if (other == global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.DefaultInstance) return this;
  7500. PrepareBuilder();
  7501. if (other.HasA) {
  7502. A = other.A;
  7503. }
  7504. this.MergeUnknownFields(other.UnknownFields);
  7505. return this;
  7506. }
  7507. public override Builder MergeFrom(pb::ICodedInputStream input) {
  7508. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7509. }
  7510. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7511. PrepareBuilder();
  7512. pb::UnknownFieldSet.Builder unknownFields = null;
  7513. uint tag;
  7514. string field_name;
  7515. while (input.ReadTag(out tag, out field_name)) {
  7516. if(tag == 0 && field_name != null) {
  7517. int field_ordinal = global::System.Array.BinarySearch(_optionalGroupExtensionFieldNames, field_name, global::System.StringComparer.Ordinal);
  7518. if(field_ordinal >= 0)
  7519. tag = _optionalGroupExtensionFieldTags[field_ordinal];
  7520. else {
  7521. if (unknownFields == null) {
  7522. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7523. }
  7524. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  7525. continue;
  7526. }
  7527. }
  7528. switch (tag) {
  7529. case 0: {
  7530. throw pb::InvalidProtocolBufferException.InvalidTag();
  7531. }
  7532. default: {
  7533. if (pb::WireFormat.IsEndGroupTag(tag)) {
  7534. if (unknownFields != null) {
  7535. this.UnknownFields = unknownFields.Build();
  7536. }
  7537. return this;
  7538. }
  7539. if (unknownFields == null) {
  7540. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7541. }
  7542. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  7543. break;
  7544. }
  7545. case 136: {
  7546. result.hasA = input.ReadInt32(ref result.a_);
  7547. break;
  7548. }
  7549. }
  7550. }
  7551. if (unknownFields != null) {
  7552. this.UnknownFields = unknownFields.Build();
  7553. }
  7554. return this;
  7555. }
  7556. public bool HasA {
  7557. get { return result.hasA; }
  7558. }
  7559. public int A {
  7560. get { return result.A; }
  7561. set { SetA(value); }
  7562. }
  7563. public Builder SetA(int value) {
  7564. PrepareBuilder();
  7565. result.hasA = true;
  7566. result.a_ = value;
  7567. return this;
  7568. }
  7569. public Builder ClearA() {
  7570. PrepareBuilder();
  7571. result.hasA = false;
  7572. result.a_ = 0;
  7573. return this;
  7574. }
  7575. }
  7576. static OptionalGroup_extension() {
  7577. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  7578. }
  7579. }
  7580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7581. public sealed partial class RepeatedGroup_extension : pb::GeneratedMessage<RepeatedGroup_extension, RepeatedGroup_extension.Builder> {
  7582. private RepeatedGroup_extension() { }
  7583. private static readonly RepeatedGroup_extension defaultInstance = new RepeatedGroup_extension().MakeReadOnly();
  7584. private static readonly string[] _repeatedGroupExtensionFieldNames = new string[] { "a" };
  7585. private static readonly uint[] _repeatedGroupExtensionFieldTags = new uint[] { 376 };
  7586. public static RepeatedGroup_extension DefaultInstance {
  7587. get { return defaultInstance; }
  7588. }
  7589. public override RepeatedGroup_extension DefaultInstanceForType {
  7590. get { return DefaultInstance; }
  7591. }
  7592. protected override RepeatedGroup_extension ThisMessage {
  7593. get { return this; }
  7594. }
  7595. public static pbd::MessageDescriptor Descriptor {
  7596. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor; }
  7597. }
  7598. protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup_extension, RepeatedGroup_extension.Builder> InternalFieldAccessors {
  7599. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable; }
  7600. }
  7601. public const int AFieldNumber = 47;
  7602. private bool hasA;
  7603. private int a_;
  7604. public bool HasA {
  7605. get { return hasA; }
  7606. }
  7607. public int A {
  7608. get { return a_; }
  7609. }
  7610. public override bool IsInitialized {
  7611. get {
  7612. return true;
  7613. }
  7614. }
  7615. public override void WriteTo(pb::ICodedOutputStream output) {
  7616. CalcSerializedSize();
  7617. string[] field_names = _repeatedGroupExtensionFieldNames;
  7618. if (hasA) {
  7619. output.WriteInt32(47, field_names[0], A);
  7620. }
  7621. UnknownFields.WriteTo(output);
  7622. }
  7623. private int memoizedSerializedSize = -1;
  7624. public override int SerializedSize {
  7625. get {
  7626. int size = memoizedSerializedSize;
  7627. if (size != -1) return size;
  7628. return CalcSerializedSize();
  7629. }
  7630. }
  7631. private int CalcSerializedSize() {
  7632. int size = memoizedSerializedSize;
  7633. if (size != -1) return size;
  7634. size = 0;
  7635. if (hasA) {
  7636. size += pb::CodedOutputStream.ComputeInt32Size(47, A);
  7637. }
  7638. size += UnknownFields.SerializedSize;
  7639. memoizedSerializedSize = size;
  7640. return size;
  7641. }
  7642. public static RepeatedGroup_extension ParseFrom(pb::ByteString data) {
  7643. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7644. }
  7645. public static RepeatedGroup_extension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  7646. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  7647. }
  7648. public static RepeatedGroup_extension ParseFrom(byte[] data) {
  7649. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7650. }
  7651. public static RepeatedGroup_extension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  7652. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  7653. }
  7654. public static RepeatedGroup_extension ParseFrom(global::System.IO.Stream input) {
  7655. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7656. }
  7657. public static RepeatedGroup_extension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  7658. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  7659. }
  7660. public static RepeatedGroup_extension ParseDelimitedFrom(global::System.IO.Stream input) {
  7661. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  7662. }
  7663. public static RepeatedGroup_extension ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  7664. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  7665. }
  7666. public static RepeatedGroup_extension ParseFrom(pb::ICodedInputStream input) {
  7667. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7668. }
  7669. public static RepeatedGroup_extension ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7670. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  7671. }
  7672. private RepeatedGroup_extension MakeReadOnly() {
  7673. return this;
  7674. }
  7675. public static Builder CreateBuilder() { return new Builder(); }
  7676. public override Builder ToBuilder() { return CreateBuilder(this); }
  7677. public override Builder CreateBuilderForType() { return new Builder(); }
  7678. public static Builder CreateBuilder(RepeatedGroup_extension prototype) {
  7679. return new Builder(prototype);
  7680. }
  7681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7682. public sealed partial class Builder : pb::GeneratedBuilder<RepeatedGroup_extension, Builder> {
  7683. protected override Builder ThisBuilder {
  7684. get { return this; }
  7685. }
  7686. public Builder() {
  7687. result = DefaultInstance;
  7688. resultIsReadOnly = true;
  7689. }
  7690. internal Builder(RepeatedGroup_extension cloneFrom) {
  7691. result = cloneFrom;
  7692. resultIsReadOnly = true;
  7693. }
  7694. private bool resultIsReadOnly;
  7695. private RepeatedGroup_extension result;
  7696. private RepeatedGroup_extension PrepareBuilder() {
  7697. if (resultIsReadOnly) {
  7698. RepeatedGroup_extension original = result;
  7699. result = new RepeatedGroup_extension();
  7700. resultIsReadOnly = false;
  7701. MergeFrom(original);
  7702. }
  7703. return result;
  7704. }
  7705. public override bool IsInitialized {
  7706. get { return result.IsInitialized; }
  7707. }
  7708. protected override RepeatedGroup_extension MessageBeingBuilt {
  7709. get { return PrepareBuilder(); }
  7710. }
  7711. public override Builder Clear() {
  7712. result = DefaultInstance;
  7713. resultIsReadOnly = true;
  7714. return this;
  7715. }
  7716. public override Builder Clone() {
  7717. if (resultIsReadOnly) {
  7718. return new Builder(result);
  7719. } else {
  7720. return new Builder().MergeFrom(result);
  7721. }
  7722. }
  7723. public override pbd::MessageDescriptor DescriptorForType {
  7724. get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Descriptor; }
  7725. }
  7726. public override RepeatedGroup_extension DefaultInstanceForType {
  7727. get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.DefaultInstance; }
  7728. }
  7729. public override RepeatedGroup_extension BuildPartial() {
  7730. if (resultIsReadOnly) {
  7731. return result;
  7732. }
  7733. resultIsReadOnly = true;
  7734. return result.MakeReadOnly();
  7735. }
  7736. public override Builder MergeFrom(pb::IMessage other) {
  7737. if (other is RepeatedGroup_extension) {
  7738. return MergeFrom((RepeatedGroup_extension) other);
  7739. } else {
  7740. base.MergeFrom(other);
  7741. return this;
  7742. }
  7743. }
  7744. public override Builder MergeFrom(RepeatedGroup_extension other) {
  7745. if (other == global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.DefaultInstance) return this;
  7746. PrepareBuilder();
  7747. if (other.HasA) {
  7748. A = other.A;
  7749. }
  7750. this.MergeUnknownFields(other.UnknownFields);
  7751. return this;
  7752. }
  7753. public override Builder MergeFrom(pb::ICodedInputStream input) {
  7754. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7755. }
  7756. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7757. PrepareBuilder();
  7758. pb::UnknownFieldSet.Builder unknownFields = null;
  7759. uint tag;
  7760. string field_name;
  7761. while (input.ReadTag(out tag, out field_name)) {
  7762. if(tag == 0 && field_name != null) {
  7763. int field_ordinal = global::System.Array.BinarySearch(_repeatedGroupExtensionFieldNames, field_name, global::System.StringComparer.Ordinal);
  7764. if(field_ordinal >= 0)
  7765. tag = _repeatedGroupExtensionFieldTags[field_ordinal];
  7766. else {
  7767. if (unknownFields == null) {
  7768. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7769. }
  7770. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  7771. continue;
  7772. }
  7773. }
  7774. switch (tag) {
  7775. case 0: {
  7776. throw pb::InvalidProtocolBufferException.InvalidTag();
  7777. }
  7778. default: {
  7779. if (pb::WireFormat.IsEndGroupTag(tag)) {
  7780. if (unknownFields != null) {
  7781. this.UnknownFields = unknownFields.Build();
  7782. }
  7783. return this;
  7784. }
  7785. if (unknownFields == null) {
  7786. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7787. }
  7788. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  7789. break;
  7790. }
  7791. case 376: {
  7792. result.hasA = input.ReadInt32(ref result.a_);
  7793. break;
  7794. }
  7795. }
  7796. }
  7797. if (unknownFields != null) {
  7798. this.UnknownFields = unknownFields.Build();
  7799. }
  7800. return this;
  7801. }
  7802. public bool HasA {
  7803. get { return result.hasA; }
  7804. }
  7805. public int A {
  7806. get { return result.A; }
  7807. set { SetA(value); }
  7808. }
  7809. public Builder SetA(int value) {
  7810. PrepareBuilder();
  7811. result.hasA = true;
  7812. result.a_ = value;
  7813. return this;
  7814. }
  7815. public Builder ClearA() {
  7816. PrepareBuilder();
  7817. result.hasA = false;
  7818. result.a_ = 0;
  7819. return this;
  7820. }
  7821. }
  7822. static RepeatedGroup_extension() {
  7823. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  7824. }
  7825. }
  7826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7827. public sealed partial class TestNestedExtension : pb::GeneratedMessage<TestNestedExtension, TestNestedExtension.Builder> {
  7828. private TestNestedExtension() { }
  7829. private static readonly TestNestedExtension defaultInstance = new TestNestedExtension().MakeReadOnly();
  7830. private static readonly string[] _testNestedExtensionFieldNames = new string[] { };
  7831. private static readonly uint[] _testNestedExtensionFieldTags = new uint[] { };
  7832. public static TestNestedExtension DefaultInstance {
  7833. get { return defaultInstance; }
  7834. }
  7835. public override TestNestedExtension DefaultInstanceForType {
  7836. get { return DefaultInstance; }
  7837. }
  7838. protected override TestNestedExtension ThisMessage {
  7839. get { return this; }
  7840. }
  7841. public static pbd::MessageDescriptor Descriptor {
  7842. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestNestedExtension__Descriptor; }
  7843. }
  7844. protected override pb::FieldAccess.FieldAccessorTable<TestNestedExtension, TestNestedExtension.Builder> InternalFieldAccessors {
  7845. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestNestedExtension__FieldAccessorTable; }
  7846. }
  7847. public const int TestFieldNumber = 1002;
  7848. public static pb::GeneratedExtensionBase<string> Test;
  7849. public const int NestedStringExtensionFieldNumber = 1003;
  7850. public static pb::GeneratedExtensionBase<string> NestedStringExtension;
  7851. public override bool IsInitialized {
  7852. get {
  7853. return true;
  7854. }
  7855. }
  7856. public override void WriteTo(pb::ICodedOutputStream output) {
  7857. CalcSerializedSize();
  7858. string[] field_names = _testNestedExtensionFieldNames;
  7859. UnknownFields.WriteTo(output);
  7860. }
  7861. private int memoizedSerializedSize = -1;
  7862. public override int SerializedSize {
  7863. get {
  7864. int size = memoizedSerializedSize;
  7865. if (size != -1) return size;
  7866. return CalcSerializedSize();
  7867. }
  7868. }
  7869. private int CalcSerializedSize() {
  7870. int size = memoizedSerializedSize;
  7871. if (size != -1) return size;
  7872. size = 0;
  7873. size += UnknownFields.SerializedSize;
  7874. memoizedSerializedSize = size;
  7875. return size;
  7876. }
  7877. public static TestNestedExtension ParseFrom(pb::ByteString data) {
  7878. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7879. }
  7880. public static TestNestedExtension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  7881. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  7882. }
  7883. public static TestNestedExtension ParseFrom(byte[] data) {
  7884. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7885. }
  7886. public static TestNestedExtension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  7887. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  7888. }
  7889. public static TestNestedExtension ParseFrom(global::System.IO.Stream input) {
  7890. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7891. }
  7892. public static TestNestedExtension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  7893. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  7894. }
  7895. public static TestNestedExtension ParseDelimitedFrom(global::System.IO.Stream input) {
  7896. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  7897. }
  7898. public static TestNestedExtension ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  7899. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  7900. }
  7901. public static TestNestedExtension ParseFrom(pb::ICodedInputStream input) {
  7902. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7903. }
  7904. public static TestNestedExtension ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7905. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  7906. }
  7907. private TestNestedExtension MakeReadOnly() {
  7908. return this;
  7909. }
  7910. public static Builder CreateBuilder() { return new Builder(); }
  7911. public override Builder ToBuilder() { return CreateBuilder(this); }
  7912. public override Builder CreateBuilderForType() { return new Builder(); }
  7913. public static Builder CreateBuilder(TestNestedExtension prototype) {
  7914. return new Builder(prototype);
  7915. }
  7916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7917. public sealed partial class Builder : pb::GeneratedBuilder<TestNestedExtension, Builder> {
  7918. protected override Builder ThisBuilder {
  7919. get { return this; }
  7920. }
  7921. public Builder() {
  7922. result = DefaultInstance;
  7923. resultIsReadOnly = true;
  7924. }
  7925. internal Builder(TestNestedExtension cloneFrom) {
  7926. result = cloneFrom;
  7927. resultIsReadOnly = true;
  7928. }
  7929. private bool resultIsReadOnly;
  7930. private TestNestedExtension result;
  7931. private TestNestedExtension PrepareBuilder() {
  7932. if (resultIsReadOnly) {
  7933. TestNestedExtension original = result;
  7934. result = new TestNestedExtension();
  7935. resultIsReadOnly = false;
  7936. MergeFrom(original);
  7937. }
  7938. return result;
  7939. }
  7940. public override bool IsInitialized {
  7941. get { return result.IsInitialized; }
  7942. }
  7943. protected override TestNestedExtension MessageBeingBuilt {
  7944. get { return PrepareBuilder(); }
  7945. }
  7946. public override Builder Clear() {
  7947. result = DefaultInstance;
  7948. resultIsReadOnly = true;
  7949. return this;
  7950. }
  7951. public override Builder Clone() {
  7952. if (resultIsReadOnly) {
  7953. return new Builder(result);
  7954. } else {
  7955. return new Builder().MergeFrom(result);
  7956. }
  7957. }
  7958. public override pbd::MessageDescriptor DescriptorForType {
  7959. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Descriptor; }
  7960. }
  7961. public override TestNestedExtension DefaultInstanceForType {
  7962. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.DefaultInstance; }
  7963. }
  7964. public override TestNestedExtension BuildPartial() {
  7965. if (resultIsReadOnly) {
  7966. return result;
  7967. }
  7968. resultIsReadOnly = true;
  7969. return result.MakeReadOnly();
  7970. }
  7971. public override Builder MergeFrom(pb::IMessage other) {
  7972. if (other is TestNestedExtension) {
  7973. return MergeFrom((TestNestedExtension) other);
  7974. } else {
  7975. base.MergeFrom(other);
  7976. return this;
  7977. }
  7978. }
  7979. public override Builder MergeFrom(TestNestedExtension other) {
  7980. if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.DefaultInstance) return this;
  7981. PrepareBuilder();
  7982. this.MergeUnknownFields(other.UnknownFields);
  7983. return this;
  7984. }
  7985. public override Builder MergeFrom(pb::ICodedInputStream input) {
  7986. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7987. }
  7988. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7989. PrepareBuilder();
  7990. pb::UnknownFieldSet.Builder unknownFields = null;
  7991. uint tag;
  7992. string field_name;
  7993. while (input.ReadTag(out tag, out field_name)) {
  7994. if(tag == 0 && field_name != null) {
  7995. int field_ordinal = global::System.Array.BinarySearch(_testNestedExtensionFieldNames, field_name, global::System.StringComparer.Ordinal);
  7996. if(field_ordinal >= 0)
  7997. tag = _testNestedExtensionFieldTags[field_ordinal];
  7998. else {
  7999. if (unknownFields == null) {
  8000. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8001. }
  8002. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  8003. continue;
  8004. }
  8005. }
  8006. switch (tag) {
  8007. case 0: {
  8008. throw pb::InvalidProtocolBufferException.InvalidTag();
  8009. }
  8010. default: {
  8011. if (pb::WireFormat.IsEndGroupTag(tag)) {
  8012. if (unknownFields != null) {
  8013. this.UnknownFields = unknownFields.Build();
  8014. }
  8015. return this;
  8016. }
  8017. if (unknownFields == null) {
  8018. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8019. }
  8020. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  8021. break;
  8022. }
  8023. }
  8024. }
  8025. if (unknownFields != null) {
  8026. this.UnknownFields = unknownFields.Build();
  8027. }
  8028. return this;
  8029. }
  8030. }
  8031. static TestNestedExtension() {
  8032. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  8033. }
  8034. }
  8035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8036. public sealed partial class TestRequired : pb::GeneratedMessage<TestRequired, TestRequired.Builder> {
  8037. private TestRequired() { }
  8038. private static readonly TestRequired defaultInstance = new TestRequired().MakeReadOnly();
  8039. private static readonly string[] _testRequiredFieldNames = new string[] { "a", "b", "c", "dummy10", "dummy11", "dummy12", "dummy13", "dummy14", "dummy15", "dummy16", "dummy17", "dummy18", "dummy19", "dummy2", "dummy20", "dummy21", "dummy22", "dummy23", "dummy24", "dummy25", "dummy26", "dummy27", "dummy28", "dummy29", "dummy30", "dummy31", "dummy32", "dummy4", "dummy5", "dummy6", "dummy7", "dummy8", "dummy9" };
  8040. private static readonly uint[] _testRequiredFieldTags = new uint[] { 8, 24, 264, 80, 88, 96, 104, 112, 120, 128, 136, 144, 152, 16, 160, 168, 176, 184, 192, 200, 208, 216, 224, 232, 240, 248, 256, 32, 40, 48, 56, 64, 72 };
  8041. public static TestRequired DefaultInstance {
  8042. get { return defaultInstance; }
  8043. }
  8044. public override TestRequired DefaultInstanceForType {
  8045. get { return DefaultInstance; }
  8046. }
  8047. protected override TestRequired ThisMessage {
  8048. get { return this; }
  8049. }
  8050. public static pbd::MessageDescriptor Descriptor {
  8051. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRequired__Descriptor; }
  8052. }
  8053. protected override pb::FieldAccess.FieldAccessorTable<TestRequired, TestRequired.Builder> InternalFieldAccessors {
  8054. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRequired__FieldAccessorTable; }
  8055. }
  8056. public const int SingleFieldNumber = 1000;
  8057. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestRequired> Single;
  8058. public const int MultiFieldNumber = 1001;
  8059. public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired>> Multi;
  8060. public const int AFieldNumber = 1;
  8061. private bool hasA;
  8062. private int a_;
  8063. public bool HasA {
  8064. get { return hasA; }
  8065. }
  8066. public int A {
  8067. get { return a_; }
  8068. }
  8069. public const int Dummy2FieldNumber = 2;
  8070. private bool hasDummy2;
  8071. private int dummy2_;
  8072. public bool HasDummy2 {
  8073. get { return hasDummy2; }
  8074. }
  8075. public int Dummy2 {
  8076. get { return dummy2_; }
  8077. }
  8078. public const int BFieldNumber = 3;
  8079. private bool hasB;
  8080. private int b_;
  8081. public bool HasB {
  8082. get { return hasB; }
  8083. }
  8084. public int B {
  8085. get { return b_; }
  8086. }
  8087. public const int Dummy4FieldNumber = 4;
  8088. private bool hasDummy4;
  8089. private int dummy4_;
  8090. public bool HasDummy4 {
  8091. get { return hasDummy4; }
  8092. }
  8093. public int Dummy4 {
  8094. get { return dummy4_; }
  8095. }
  8096. public const int Dummy5FieldNumber = 5;
  8097. private bool hasDummy5;
  8098. private int dummy5_;
  8099. public bool HasDummy5 {
  8100. get { return hasDummy5; }
  8101. }
  8102. public int Dummy5 {
  8103. get { return dummy5_; }
  8104. }
  8105. public const int Dummy6FieldNumber = 6;
  8106. private bool hasDummy6;
  8107. private int dummy6_;
  8108. public bool HasDummy6 {
  8109. get { return hasDummy6; }
  8110. }
  8111. public int Dummy6 {
  8112. get { return dummy6_; }
  8113. }
  8114. public const int Dummy7FieldNumber = 7;
  8115. private bool hasDummy7;
  8116. private int dummy7_;
  8117. public bool HasDummy7 {
  8118. get { return hasDummy7; }
  8119. }
  8120. public int Dummy7 {
  8121. get { return dummy7_; }
  8122. }
  8123. public const int Dummy8FieldNumber = 8;
  8124. private bool hasDummy8;
  8125. private int dummy8_;
  8126. public bool HasDummy8 {
  8127. get { return hasDummy8; }
  8128. }
  8129. public int Dummy8 {
  8130. get { return dummy8_; }
  8131. }
  8132. public const int Dummy9FieldNumber = 9;
  8133. private bool hasDummy9;
  8134. private int dummy9_;
  8135. public bool HasDummy9 {
  8136. get { return hasDummy9; }
  8137. }
  8138. public int Dummy9 {
  8139. get { return dummy9_; }
  8140. }
  8141. public const int Dummy10FieldNumber = 10;
  8142. private bool hasDummy10;
  8143. private int dummy10_;
  8144. public bool HasDummy10 {
  8145. get { return hasDummy10; }
  8146. }
  8147. public int Dummy10 {
  8148. get { return dummy10_; }
  8149. }
  8150. public const int Dummy11FieldNumber = 11;
  8151. private bool hasDummy11;
  8152. private int dummy11_;
  8153. public bool HasDummy11 {
  8154. get { return hasDummy11; }
  8155. }
  8156. public int Dummy11 {
  8157. get { return dummy11_; }
  8158. }
  8159. public const int Dummy12FieldNumber = 12;
  8160. private bool hasDummy12;
  8161. private int dummy12_;
  8162. public bool HasDummy12 {
  8163. get { return hasDummy12; }
  8164. }
  8165. public int Dummy12 {
  8166. get { return dummy12_; }
  8167. }
  8168. public const int Dummy13FieldNumber = 13;
  8169. private bool hasDummy13;
  8170. private int dummy13_;
  8171. public bool HasDummy13 {
  8172. get { return hasDummy13; }
  8173. }
  8174. public int Dummy13 {
  8175. get { return dummy13_; }
  8176. }
  8177. public const int Dummy14FieldNumber = 14;
  8178. private bool hasDummy14;
  8179. private int dummy14_;
  8180. public bool HasDummy14 {
  8181. get { return hasDummy14; }
  8182. }
  8183. public int Dummy14 {
  8184. get { return dummy14_; }
  8185. }
  8186. public const int Dummy15FieldNumber = 15;
  8187. private bool hasDummy15;
  8188. private int dummy15_;
  8189. public bool HasDummy15 {
  8190. get { return hasDummy15; }
  8191. }
  8192. public int Dummy15 {
  8193. get { return dummy15_; }
  8194. }
  8195. public const int Dummy16FieldNumber = 16;
  8196. private bool hasDummy16;
  8197. private int dummy16_;
  8198. public bool HasDummy16 {
  8199. get { return hasDummy16; }
  8200. }
  8201. public int Dummy16 {
  8202. get { return dummy16_; }
  8203. }
  8204. public const int Dummy17FieldNumber = 17;
  8205. private bool hasDummy17;
  8206. private int dummy17_;
  8207. public bool HasDummy17 {
  8208. get { return hasDummy17; }
  8209. }
  8210. public int Dummy17 {
  8211. get { return dummy17_; }
  8212. }
  8213. public const int Dummy18FieldNumber = 18;
  8214. private bool hasDummy18;
  8215. private int dummy18_;
  8216. public bool HasDummy18 {
  8217. get { return hasDummy18; }
  8218. }
  8219. public int Dummy18 {
  8220. get { return dummy18_; }
  8221. }
  8222. public const int Dummy19FieldNumber = 19;
  8223. private bool hasDummy19;
  8224. private int dummy19_;
  8225. public bool HasDummy19 {
  8226. get { return hasDummy19; }
  8227. }
  8228. public int Dummy19 {
  8229. get { return dummy19_; }
  8230. }
  8231. public const int Dummy20FieldNumber = 20;
  8232. private bool hasDummy20;
  8233. private int dummy20_;
  8234. public bool HasDummy20 {
  8235. get { return hasDummy20; }
  8236. }
  8237. public int Dummy20 {
  8238. get { return dummy20_; }
  8239. }
  8240. public const int Dummy21FieldNumber = 21;
  8241. private bool hasDummy21;
  8242. private int dummy21_;
  8243. public bool HasDummy21 {
  8244. get { return hasDummy21; }
  8245. }
  8246. public int Dummy21 {
  8247. get { return dummy21_; }
  8248. }
  8249. public const int Dummy22FieldNumber = 22;
  8250. private bool hasDummy22;
  8251. private int dummy22_;
  8252. public bool HasDummy22 {
  8253. get { return hasDummy22; }
  8254. }
  8255. public int Dummy22 {
  8256. get { return dummy22_; }
  8257. }
  8258. public const int Dummy23FieldNumber = 23;
  8259. private bool hasDummy23;
  8260. private int dummy23_;
  8261. public bool HasDummy23 {
  8262. get { return hasDummy23; }
  8263. }
  8264. public int Dummy23 {
  8265. get { return dummy23_; }
  8266. }
  8267. public const int Dummy24FieldNumber = 24;
  8268. private bool hasDummy24;
  8269. private int dummy24_;
  8270. public bool HasDummy24 {
  8271. get { return hasDummy24; }
  8272. }
  8273. public int Dummy24 {
  8274. get { return dummy24_; }
  8275. }
  8276. public const int Dummy25FieldNumber = 25;
  8277. private bool hasDummy25;
  8278. private int dummy25_;
  8279. public bool HasDummy25 {
  8280. get { return hasDummy25; }
  8281. }
  8282. public int Dummy25 {
  8283. get { return dummy25_; }
  8284. }
  8285. public const int Dummy26FieldNumber = 26;
  8286. private bool hasDummy26;
  8287. private int dummy26_;
  8288. public bool HasDummy26 {
  8289. get { return hasDummy26; }
  8290. }
  8291. public int Dummy26 {
  8292. get { return dummy26_; }
  8293. }
  8294. public const int Dummy27FieldNumber = 27;
  8295. private bool hasDummy27;
  8296. private int dummy27_;
  8297. public bool HasDummy27 {
  8298. get { return hasDummy27; }
  8299. }
  8300. public int Dummy27 {
  8301. get { return dummy27_; }
  8302. }
  8303. public const int Dummy28FieldNumber = 28;
  8304. private bool hasDummy28;
  8305. private int dummy28_;
  8306. public bool HasDummy28 {
  8307. get { return hasDummy28; }
  8308. }
  8309. public int Dummy28 {
  8310. get { return dummy28_; }
  8311. }
  8312. public const int Dummy29FieldNumber = 29;
  8313. private bool hasDummy29;
  8314. private int dummy29_;
  8315. public bool HasDummy29 {
  8316. get { return hasDummy29; }
  8317. }
  8318. public int Dummy29 {
  8319. get { return dummy29_; }
  8320. }
  8321. public const int Dummy30FieldNumber = 30;
  8322. private bool hasDummy30;
  8323. private int dummy30_;
  8324. public bool HasDummy30 {
  8325. get { return hasDummy30; }
  8326. }
  8327. public int Dummy30 {
  8328. get { return dummy30_; }
  8329. }
  8330. public const int Dummy31FieldNumber = 31;
  8331. private bool hasDummy31;
  8332. private int dummy31_;
  8333. public bool HasDummy31 {
  8334. get { return hasDummy31; }
  8335. }
  8336. public int Dummy31 {
  8337. get { return dummy31_; }
  8338. }
  8339. public const int Dummy32FieldNumber = 32;
  8340. private bool hasDummy32;
  8341. private int dummy32_;
  8342. public bool HasDummy32 {
  8343. get { return hasDummy32; }
  8344. }
  8345. public int Dummy32 {
  8346. get { return dummy32_; }
  8347. }
  8348. public const int CFieldNumber = 33;
  8349. private bool hasC;
  8350. private int c_;
  8351. public bool HasC {
  8352. get { return hasC; }
  8353. }
  8354. public int C {
  8355. get { return c_; }
  8356. }
  8357. public override bool IsInitialized {
  8358. get {
  8359. if (!hasA) return false;
  8360. if (!hasB) return false;
  8361. if (!hasC) return false;
  8362. return true;
  8363. }
  8364. }
  8365. public override void WriteTo(pb::ICodedOutputStream output) {
  8366. CalcSerializedSize();
  8367. string[] field_names = _testRequiredFieldNames;
  8368. if (hasA) {
  8369. output.WriteInt32(1, field_names[0], A);
  8370. }
  8371. if (hasDummy2) {
  8372. output.WriteInt32(2, field_names[13], Dummy2);
  8373. }
  8374. if (hasB) {
  8375. output.WriteInt32(3, field_names[1], B);
  8376. }
  8377. if (hasDummy4) {
  8378. output.WriteInt32(4, field_names[27], Dummy4);
  8379. }
  8380. if (hasDummy5) {
  8381. output.WriteInt32(5, field_names[28], Dummy5);
  8382. }
  8383. if (hasDummy6) {
  8384. output.WriteInt32(6, field_names[29], Dummy6);
  8385. }
  8386. if (hasDummy7) {
  8387. output.WriteInt32(7, field_names[30], Dummy7);
  8388. }
  8389. if (hasDummy8) {
  8390. output.WriteInt32(8, field_names[31], Dummy8);
  8391. }
  8392. if (hasDummy9) {
  8393. output.WriteInt32(9, field_names[32], Dummy9);
  8394. }
  8395. if (hasDummy10) {
  8396. output.WriteInt32(10, field_names[3], Dummy10);
  8397. }
  8398. if (hasDummy11) {
  8399. output.WriteInt32(11, field_names[4], Dummy11);
  8400. }
  8401. if (hasDummy12) {
  8402. output.WriteInt32(12, field_names[5], Dummy12);
  8403. }
  8404. if (hasDummy13) {
  8405. output.WriteInt32(13, field_names[6], Dummy13);
  8406. }
  8407. if (hasDummy14) {
  8408. output.WriteInt32(14, field_names[7], Dummy14);
  8409. }
  8410. if (hasDummy15) {
  8411. output.WriteInt32(15, field_names[8], Dummy15);
  8412. }
  8413. if (hasDummy16) {
  8414. output.WriteInt32(16, field_names[9], Dummy16);
  8415. }
  8416. if (hasDummy17) {
  8417. output.WriteInt32(17, field_names[10], Dummy17);
  8418. }
  8419. if (hasDummy18) {
  8420. output.WriteInt32(18, field_names[11], Dummy18);
  8421. }
  8422. if (hasDummy19) {
  8423. output.WriteInt32(19, field_names[12], Dummy19);
  8424. }
  8425. if (hasDummy20) {
  8426. output.WriteInt32(20, field_names[14], Dummy20);
  8427. }
  8428. if (hasDummy21) {
  8429. output.WriteInt32(21, field_names[15], Dummy21);
  8430. }
  8431. if (hasDummy22) {
  8432. output.WriteInt32(22, field_names[16], Dummy22);
  8433. }
  8434. if (hasDummy23) {
  8435. output.WriteInt32(23, field_names[17], Dummy23);
  8436. }
  8437. if (hasDummy24) {
  8438. output.WriteInt32(24, field_names[18], Dummy24);
  8439. }
  8440. if (hasDummy25) {
  8441. output.WriteInt32(25, field_names[19], Dummy25);
  8442. }
  8443. if (hasDummy26) {
  8444. output.WriteInt32(26, field_names[20], Dummy26);
  8445. }
  8446. if (hasDummy27) {
  8447. output.WriteInt32(27, field_names[21], Dummy27);
  8448. }
  8449. if (hasDummy28) {
  8450. output.WriteInt32(28, field_names[22], Dummy28);
  8451. }
  8452. if (hasDummy29) {
  8453. output.WriteInt32(29, field_names[23], Dummy29);
  8454. }
  8455. if (hasDummy30) {
  8456. output.WriteInt32(30, field_names[24], Dummy30);
  8457. }
  8458. if (hasDummy31) {
  8459. output.WriteInt32(31, field_names[25], Dummy31);
  8460. }
  8461. if (hasDummy32) {
  8462. output.WriteInt32(32, field_names[26], Dummy32);
  8463. }
  8464. if (hasC) {
  8465. output.WriteInt32(33, field_names[2], C);
  8466. }
  8467. UnknownFields.WriteTo(output);
  8468. }
  8469. private int memoizedSerializedSize = -1;
  8470. public override int SerializedSize {
  8471. get {
  8472. int size = memoizedSerializedSize;
  8473. if (size != -1) return size;
  8474. return CalcSerializedSize();
  8475. }
  8476. }
  8477. private int CalcSerializedSize() {
  8478. int size = memoizedSerializedSize;
  8479. if (size != -1) return size;
  8480. size = 0;
  8481. if (hasA) {
  8482. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  8483. }
  8484. if (hasDummy2) {
  8485. size += pb::CodedOutputStream.ComputeInt32Size(2, Dummy2);
  8486. }
  8487. if (hasB) {
  8488. size += pb::CodedOutputStream.ComputeInt32Size(3, B);
  8489. }
  8490. if (hasDummy4) {
  8491. size += pb::CodedOutputStream.ComputeInt32Size(4, Dummy4);
  8492. }
  8493. if (hasDummy5) {
  8494. size += pb::CodedOutputStream.ComputeInt32Size(5, Dummy5);
  8495. }
  8496. if (hasDummy6) {
  8497. size += pb::CodedOutputStream.ComputeInt32Size(6, Dummy6);
  8498. }
  8499. if (hasDummy7) {
  8500. size += pb::CodedOutputStream.ComputeInt32Size(7, Dummy7);
  8501. }
  8502. if (hasDummy8) {
  8503. size += pb::CodedOutputStream.ComputeInt32Size(8, Dummy8);
  8504. }
  8505. if (hasDummy9) {
  8506. size += pb::CodedOutputStream.ComputeInt32Size(9, Dummy9);
  8507. }
  8508. if (hasDummy10) {
  8509. size += pb::CodedOutputStream.ComputeInt32Size(10, Dummy10);
  8510. }
  8511. if (hasDummy11) {
  8512. size += pb::CodedOutputStream.ComputeInt32Size(11, Dummy11);
  8513. }
  8514. if (hasDummy12) {
  8515. size += pb::CodedOutputStream.ComputeInt32Size(12, Dummy12);
  8516. }
  8517. if (hasDummy13) {
  8518. size += pb::CodedOutputStream.ComputeInt32Size(13, Dummy13);
  8519. }
  8520. if (hasDummy14) {
  8521. size += pb::CodedOutputStream.ComputeInt32Size(14, Dummy14);
  8522. }
  8523. if (hasDummy15) {
  8524. size += pb::CodedOutputStream.ComputeInt32Size(15, Dummy15);
  8525. }
  8526. if (hasDummy16) {
  8527. size += pb::CodedOutputStream.ComputeInt32Size(16, Dummy16);
  8528. }
  8529. if (hasDummy17) {
  8530. size += pb::CodedOutputStream.ComputeInt32Size(17, Dummy17);
  8531. }
  8532. if (hasDummy18) {
  8533. size += pb::CodedOutputStream.ComputeInt32Size(18, Dummy18);
  8534. }
  8535. if (hasDummy19) {
  8536. size += pb::CodedOutputStream.ComputeInt32Size(19, Dummy19);
  8537. }
  8538. if (hasDummy20) {
  8539. size += pb::CodedOutputStream.ComputeInt32Size(20, Dummy20);
  8540. }
  8541. if (hasDummy21) {
  8542. size += pb::CodedOutputStream.ComputeInt32Size(21, Dummy21);
  8543. }
  8544. if (hasDummy22) {
  8545. size += pb::CodedOutputStream.ComputeInt32Size(22, Dummy22);
  8546. }
  8547. if (hasDummy23) {
  8548. size += pb::CodedOutputStream.ComputeInt32Size(23, Dummy23);
  8549. }
  8550. if (hasDummy24) {
  8551. size += pb::CodedOutputStream.ComputeInt32Size(24, Dummy24);
  8552. }
  8553. if (hasDummy25) {
  8554. size += pb::CodedOutputStream.ComputeInt32Size(25, Dummy25);
  8555. }
  8556. if (hasDummy26) {
  8557. size += pb::CodedOutputStream.ComputeInt32Size(26, Dummy26);
  8558. }
  8559. if (hasDummy27) {
  8560. size += pb::CodedOutputStream.ComputeInt32Size(27, Dummy27);
  8561. }
  8562. if (hasDummy28) {
  8563. size += pb::CodedOutputStream.ComputeInt32Size(28, Dummy28);
  8564. }
  8565. if (hasDummy29) {
  8566. size += pb::CodedOutputStream.ComputeInt32Size(29, Dummy29);
  8567. }
  8568. if (hasDummy30) {
  8569. size += pb::CodedOutputStream.ComputeInt32Size(30, Dummy30);
  8570. }
  8571. if (hasDummy31) {
  8572. size += pb::CodedOutputStream.ComputeInt32Size(31, Dummy31);
  8573. }
  8574. if (hasDummy32) {
  8575. size += pb::CodedOutputStream.ComputeInt32Size(32, Dummy32);
  8576. }
  8577. if (hasC) {
  8578. size += pb::CodedOutputStream.ComputeInt32Size(33, C);
  8579. }
  8580. size += UnknownFields.SerializedSize;
  8581. memoizedSerializedSize = size;
  8582. return size;
  8583. }
  8584. public static TestRequired ParseFrom(pb::ByteString data) {
  8585. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8586. }
  8587. public static TestRequired ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  8588. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  8589. }
  8590. public static TestRequired ParseFrom(byte[] data) {
  8591. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8592. }
  8593. public static TestRequired ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  8594. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  8595. }
  8596. public static TestRequired ParseFrom(global::System.IO.Stream input) {
  8597. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8598. }
  8599. public static TestRequired ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  8600. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  8601. }
  8602. public static TestRequired ParseDelimitedFrom(global::System.IO.Stream input) {
  8603. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  8604. }
  8605. public static TestRequired ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  8606. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  8607. }
  8608. public static TestRequired ParseFrom(pb::ICodedInputStream input) {
  8609. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8610. }
  8611. public static TestRequired ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8612. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  8613. }
  8614. private TestRequired MakeReadOnly() {
  8615. return this;
  8616. }
  8617. public static Builder CreateBuilder() { return new Builder(); }
  8618. public override Builder ToBuilder() { return CreateBuilder(this); }
  8619. public override Builder CreateBuilderForType() { return new Builder(); }
  8620. public static Builder CreateBuilder(TestRequired prototype) {
  8621. return new Builder(prototype);
  8622. }
  8623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8624. public sealed partial class Builder : pb::GeneratedBuilder<TestRequired, Builder> {
  8625. protected override Builder ThisBuilder {
  8626. get { return this; }
  8627. }
  8628. public Builder() {
  8629. result = DefaultInstance;
  8630. resultIsReadOnly = true;
  8631. }
  8632. internal Builder(TestRequired cloneFrom) {
  8633. result = cloneFrom;
  8634. resultIsReadOnly = true;
  8635. }
  8636. private bool resultIsReadOnly;
  8637. private TestRequired result;
  8638. private TestRequired PrepareBuilder() {
  8639. if (resultIsReadOnly) {
  8640. TestRequired original = result;
  8641. result = new TestRequired();
  8642. resultIsReadOnly = false;
  8643. MergeFrom(original);
  8644. }
  8645. return result;
  8646. }
  8647. public override bool IsInitialized {
  8648. get { return result.IsInitialized; }
  8649. }
  8650. protected override TestRequired MessageBeingBuilt {
  8651. get { return PrepareBuilder(); }
  8652. }
  8653. public override Builder Clear() {
  8654. result = DefaultInstance;
  8655. resultIsReadOnly = true;
  8656. return this;
  8657. }
  8658. public override Builder Clone() {
  8659. if (resultIsReadOnly) {
  8660. return new Builder(result);
  8661. } else {
  8662. return new Builder().MergeFrom(result);
  8663. }
  8664. }
  8665. public override pbd::MessageDescriptor DescriptorForType {
  8666. get { return global::Google.ProtocolBuffers.TestProtos.TestRequired.Descriptor; }
  8667. }
  8668. public override TestRequired DefaultInstanceForType {
  8669. get { return global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance; }
  8670. }
  8671. public override TestRequired BuildPartial() {
  8672. if (resultIsReadOnly) {
  8673. return result;
  8674. }
  8675. resultIsReadOnly = true;
  8676. return result.MakeReadOnly();
  8677. }
  8678. public override Builder MergeFrom(pb::IMessage other) {
  8679. if (other is TestRequired) {
  8680. return MergeFrom((TestRequired) other);
  8681. } else {
  8682. base.MergeFrom(other);
  8683. return this;
  8684. }
  8685. }
  8686. public override Builder MergeFrom(TestRequired other) {
  8687. if (other == global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) return this;
  8688. PrepareBuilder();
  8689. if (other.HasA) {
  8690. A = other.A;
  8691. }
  8692. if (other.HasDummy2) {
  8693. Dummy2 = other.Dummy2;
  8694. }
  8695. if (other.HasB) {
  8696. B = other.B;
  8697. }
  8698. if (other.HasDummy4) {
  8699. Dummy4 = other.Dummy4;
  8700. }
  8701. if (other.HasDummy5) {
  8702. Dummy5 = other.Dummy5;
  8703. }
  8704. if (other.HasDummy6) {
  8705. Dummy6 = other.Dummy6;
  8706. }
  8707. if (other.HasDummy7) {
  8708. Dummy7 = other.Dummy7;
  8709. }
  8710. if (other.HasDummy8) {
  8711. Dummy8 = other.Dummy8;
  8712. }
  8713. if (other.HasDummy9) {
  8714. Dummy9 = other.Dummy9;
  8715. }
  8716. if (other.HasDummy10) {
  8717. Dummy10 = other.Dummy10;
  8718. }
  8719. if (other.HasDummy11) {
  8720. Dummy11 = other.Dummy11;
  8721. }
  8722. if (other.HasDummy12) {
  8723. Dummy12 = other.Dummy12;
  8724. }
  8725. if (other.HasDummy13) {
  8726. Dummy13 = other.Dummy13;
  8727. }
  8728. if (other.HasDummy14) {
  8729. Dummy14 = other.Dummy14;
  8730. }
  8731. if (other.HasDummy15) {
  8732. Dummy15 = other.Dummy15;
  8733. }
  8734. if (other.HasDummy16) {
  8735. Dummy16 = other.Dummy16;
  8736. }
  8737. if (other.HasDummy17) {
  8738. Dummy17 = other.Dummy17;
  8739. }
  8740. if (other.HasDummy18) {
  8741. Dummy18 = other.Dummy18;
  8742. }
  8743. if (other.HasDummy19) {
  8744. Dummy19 = other.Dummy19;
  8745. }
  8746. if (other.HasDummy20) {
  8747. Dummy20 = other.Dummy20;
  8748. }
  8749. if (other.HasDummy21) {
  8750. Dummy21 = other.Dummy21;
  8751. }
  8752. if (other.HasDummy22) {
  8753. Dummy22 = other.Dummy22;
  8754. }
  8755. if (other.HasDummy23) {
  8756. Dummy23 = other.Dummy23;
  8757. }
  8758. if (other.HasDummy24) {
  8759. Dummy24 = other.Dummy24;
  8760. }
  8761. if (other.HasDummy25) {
  8762. Dummy25 = other.Dummy25;
  8763. }
  8764. if (other.HasDummy26) {
  8765. Dummy26 = other.Dummy26;
  8766. }
  8767. if (other.HasDummy27) {
  8768. Dummy27 = other.Dummy27;
  8769. }
  8770. if (other.HasDummy28) {
  8771. Dummy28 = other.Dummy28;
  8772. }
  8773. if (other.HasDummy29) {
  8774. Dummy29 = other.Dummy29;
  8775. }
  8776. if (other.HasDummy30) {
  8777. Dummy30 = other.Dummy30;
  8778. }
  8779. if (other.HasDummy31) {
  8780. Dummy31 = other.Dummy31;
  8781. }
  8782. if (other.HasDummy32) {
  8783. Dummy32 = other.Dummy32;
  8784. }
  8785. if (other.HasC) {
  8786. C = other.C;
  8787. }
  8788. this.MergeUnknownFields(other.UnknownFields);
  8789. return this;
  8790. }
  8791. public override Builder MergeFrom(pb::ICodedInputStream input) {
  8792. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8793. }
  8794. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8795. PrepareBuilder();
  8796. pb::UnknownFieldSet.Builder unknownFields = null;
  8797. uint tag;
  8798. string field_name;
  8799. while (input.ReadTag(out tag, out field_name)) {
  8800. if(tag == 0 && field_name != null) {
  8801. int field_ordinal = global::System.Array.BinarySearch(_testRequiredFieldNames, field_name, global::System.StringComparer.Ordinal);
  8802. if(field_ordinal >= 0)
  8803. tag = _testRequiredFieldTags[field_ordinal];
  8804. else {
  8805. if (unknownFields == null) {
  8806. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8807. }
  8808. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  8809. continue;
  8810. }
  8811. }
  8812. switch (tag) {
  8813. case 0: {
  8814. throw pb::InvalidProtocolBufferException.InvalidTag();
  8815. }
  8816. default: {
  8817. if (pb::WireFormat.IsEndGroupTag(tag)) {
  8818. if (unknownFields != null) {
  8819. this.UnknownFields = unknownFields.Build();
  8820. }
  8821. return this;
  8822. }
  8823. if (unknownFields == null) {
  8824. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8825. }
  8826. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  8827. break;
  8828. }
  8829. case 8: {
  8830. result.hasA = input.ReadInt32(ref result.a_);
  8831. break;
  8832. }
  8833. case 16: {
  8834. result.hasDummy2 = input.ReadInt32(ref result.dummy2_);
  8835. break;
  8836. }
  8837. case 24: {
  8838. result.hasB = input.ReadInt32(ref result.b_);
  8839. break;
  8840. }
  8841. case 32: {
  8842. result.hasDummy4 = input.ReadInt32(ref result.dummy4_);
  8843. break;
  8844. }
  8845. case 40: {
  8846. result.hasDummy5 = input.ReadInt32(ref result.dummy5_);
  8847. break;
  8848. }
  8849. case 48: {
  8850. result.hasDummy6 = input.ReadInt32(ref result.dummy6_);
  8851. break;
  8852. }
  8853. case 56: {
  8854. result.hasDummy7 = input.ReadInt32(ref result.dummy7_);
  8855. break;
  8856. }
  8857. case 64: {
  8858. result.hasDummy8 = input.ReadInt32(ref result.dummy8_);
  8859. break;
  8860. }
  8861. case 72: {
  8862. result.hasDummy9 = input.ReadInt32(ref result.dummy9_);
  8863. break;
  8864. }
  8865. case 80: {
  8866. result.hasDummy10 = input.ReadInt32(ref result.dummy10_);
  8867. break;
  8868. }
  8869. case 88: {
  8870. result.hasDummy11 = input.ReadInt32(ref result.dummy11_);
  8871. break;
  8872. }
  8873. case 96: {
  8874. result.hasDummy12 = input.ReadInt32(ref result.dummy12_);
  8875. break;
  8876. }
  8877. case 104: {
  8878. result.hasDummy13 = input.ReadInt32(ref result.dummy13_);
  8879. break;
  8880. }
  8881. case 112: {
  8882. result.hasDummy14 = input.ReadInt32(ref result.dummy14_);
  8883. break;
  8884. }
  8885. case 120: {
  8886. result.hasDummy15 = input.ReadInt32(ref result.dummy15_);
  8887. break;
  8888. }
  8889. case 128: {
  8890. result.hasDummy16 = input.ReadInt32(ref result.dummy16_);
  8891. break;
  8892. }
  8893. case 136: {
  8894. result.hasDummy17 = input.ReadInt32(ref result.dummy17_);
  8895. break;
  8896. }
  8897. case 144: {
  8898. result.hasDummy18 = input.ReadInt32(ref result.dummy18_);
  8899. break;
  8900. }
  8901. case 152: {
  8902. result.hasDummy19 = input.ReadInt32(ref result.dummy19_);
  8903. break;
  8904. }
  8905. case 160: {
  8906. result.hasDummy20 = input.ReadInt32(ref result.dummy20_);
  8907. break;
  8908. }
  8909. case 168: {
  8910. result.hasDummy21 = input.ReadInt32(ref result.dummy21_);
  8911. break;
  8912. }
  8913. case 176: {
  8914. result.hasDummy22 = input.ReadInt32(ref result.dummy22_);
  8915. break;
  8916. }
  8917. case 184: {
  8918. result.hasDummy23 = input.ReadInt32(ref result.dummy23_);
  8919. break;
  8920. }
  8921. case 192: {
  8922. result.hasDummy24 = input.ReadInt32(ref result.dummy24_);
  8923. break;
  8924. }
  8925. case 200: {
  8926. result.hasDummy25 = input.ReadInt32(ref result.dummy25_);
  8927. break;
  8928. }
  8929. case 208: {
  8930. result.hasDummy26 = input.ReadInt32(ref result.dummy26_);
  8931. break;
  8932. }
  8933. case 216: {
  8934. result.hasDummy27 = input.ReadInt32(ref result.dummy27_);
  8935. break;
  8936. }
  8937. case 224: {
  8938. result.hasDummy28 = input.ReadInt32(ref result.dummy28_);
  8939. break;
  8940. }
  8941. case 232: {
  8942. result.hasDummy29 = input.ReadInt32(ref result.dummy29_);
  8943. break;
  8944. }
  8945. case 240: {
  8946. result.hasDummy30 = input.ReadInt32(ref result.dummy30_);
  8947. break;
  8948. }
  8949. case 248: {
  8950. result.hasDummy31 = input.ReadInt32(ref result.dummy31_);
  8951. break;
  8952. }
  8953. case 256: {
  8954. result.hasDummy32 = input.ReadInt32(ref result.dummy32_);
  8955. break;
  8956. }
  8957. case 264: {
  8958. result.hasC = input.ReadInt32(ref result.c_);
  8959. break;
  8960. }
  8961. }
  8962. }
  8963. if (unknownFields != null) {
  8964. this.UnknownFields = unknownFields.Build();
  8965. }
  8966. return this;
  8967. }
  8968. public bool HasA {
  8969. get { return result.hasA; }
  8970. }
  8971. public int A {
  8972. get { return result.A; }
  8973. set { SetA(value); }
  8974. }
  8975. public Builder SetA(int value) {
  8976. PrepareBuilder();
  8977. result.hasA = true;
  8978. result.a_ = value;
  8979. return this;
  8980. }
  8981. public Builder ClearA() {
  8982. PrepareBuilder();
  8983. result.hasA = false;
  8984. result.a_ = 0;
  8985. return this;
  8986. }
  8987. public bool HasDummy2 {
  8988. get { return result.hasDummy2; }
  8989. }
  8990. public int Dummy2 {
  8991. get { return result.Dummy2; }
  8992. set { SetDummy2(value); }
  8993. }
  8994. public Builder SetDummy2(int value) {
  8995. PrepareBuilder();
  8996. result.hasDummy2 = true;
  8997. result.dummy2_ = value;
  8998. return this;
  8999. }
  9000. public Builder ClearDummy2() {
  9001. PrepareBuilder();
  9002. result.hasDummy2 = false;
  9003. result.dummy2_ = 0;
  9004. return this;
  9005. }
  9006. public bool HasB {
  9007. get { return result.hasB; }
  9008. }
  9009. public int B {
  9010. get { return result.B; }
  9011. set { SetB(value); }
  9012. }
  9013. public Builder SetB(int value) {
  9014. PrepareBuilder();
  9015. result.hasB = true;
  9016. result.b_ = value;
  9017. return this;
  9018. }
  9019. public Builder ClearB() {
  9020. PrepareBuilder();
  9021. result.hasB = false;
  9022. result.b_ = 0;
  9023. return this;
  9024. }
  9025. public bool HasDummy4 {
  9026. get { return result.hasDummy4; }
  9027. }
  9028. public int Dummy4 {
  9029. get { return result.Dummy4; }
  9030. set { SetDummy4(value); }
  9031. }
  9032. public Builder SetDummy4(int value) {
  9033. PrepareBuilder();
  9034. result.hasDummy4 = true;
  9035. result.dummy4_ = value;
  9036. return this;
  9037. }
  9038. public Builder ClearDummy4() {
  9039. PrepareBuilder();
  9040. result.hasDummy4 = false;
  9041. result.dummy4_ = 0;
  9042. return this;
  9043. }
  9044. public bool HasDummy5 {
  9045. get { return result.hasDummy5; }
  9046. }
  9047. public int Dummy5 {
  9048. get { return result.Dummy5; }
  9049. set { SetDummy5(value); }
  9050. }
  9051. public Builder SetDummy5(int value) {
  9052. PrepareBuilder();
  9053. result.hasDummy5 = true;
  9054. result.dummy5_ = value;
  9055. return this;
  9056. }
  9057. public Builder ClearDummy5() {
  9058. PrepareBuilder();
  9059. result.hasDummy5 = false;
  9060. result.dummy5_ = 0;
  9061. return this;
  9062. }
  9063. public bool HasDummy6 {
  9064. get { return result.hasDummy6; }
  9065. }
  9066. public int Dummy6 {
  9067. get { return result.Dummy6; }
  9068. set { SetDummy6(value); }
  9069. }
  9070. public Builder SetDummy6(int value) {
  9071. PrepareBuilder();
  9072. result.hasDummy6 = true;
  9073. result.dummy6_ = value;
  9074. return this;
  9075. }
  9076. public Builder ClearDummy6() {
  9077. PrepareBuilder();
  9078. result.hasDummy6 = false;
  9079. result.dummy6_ = 0;
  9080. return this;
  9081. }
  9082. public bool HasDummy7 {
  9083. get { return result.hasDummy7; }
  9084. }
  9085. public int Dummy7 {
  9086. get { return result.Dummy7; }
  9087. set { SetDummy7(value); }
  9088. }
  9089. public Builder SetDummy7(int value) {
  9090. PrepareBuilder();
  9091. result.hasDummy7 = true;
  9092. result.dummy7_ = value;
  9093. return this;
  9094. }
  9095. public Builder ClearDummy7() {
  9096. PrepareBuilder();
  9097. result.hasDummy7 = false;
  9098. result.dummy7_ = 0;
  9099. return this;
  9100. }
  9101. public bool HasDummy8 {
  9102. get { return result.hasDummy8; }
  9103. }
  9104. public int Dummy8 {
  9105. get { return result.Dummy8; }
  9106. set { SetDummy8(value); }
  9107. }
  9108. public Builder SetDummy8(int value) {
  9109. PrepareBuilder();
  9110. result.hasDummy8 = true;
  9111. result.dummy8_ = value;
  9112. return this;
  9113. }
  9114. public Builder ClearDummy8() {
  9115. PrepareBuilder();
  9116. result.hasDummy8 = false;
  9117. result.dummy8_ = 0;
  9118. return this;
  9119. }
  9120. public bool HasDummy9 {
  9121. get { return result.hasDummy9; }
  9122. }
  9123. public int Dummy9 {
  9124. get { return result.Dummy9; }
  9125. set { SetDummy9(value); }
  9126. }
  9127. public Builder SetDummy9(int value) {
  9128. PrepareBuilder();
  9129. result.hasDummy9 = true;
  9130. result.dummy9_ = value;
  9131. return this;
  9132. }
  9133. public Builder ClearDummy9() {
  9134. PrepareBuilder();
  9135. result.hasDummy9 = false;
  9136. result.dummy9_ = 0;
  9137. return this;
  9138. }
  9139. public bool HasDummy10 {
  9140. get { return result.hasDummy10; }
  9141. }
  9142. public int Dummy10 {
  9143. get { return result.Dummy10; }
  9144. set { SetDummy10(value); }
  9145. }
  9146. public Builder SetDummy10(int value) {
  9147. PrepareBuilder();
  9148. result.hasDummy10 = true;
  9149. result.dummy10_ = value;
  9150. return this;
  9151. }
  9152. public Builder ClearDummy10() {
  9153. PrepareBuilder();
  9154. result.hasDummy10 = false;
  9155. result.dummy10_ = 0;
  9156. return this;
  9157. }
  9158. public bool HasDummy11 {
  9159. get { return result.hasDummy11; }
  9160. }
  9161. public int Dummy11 {
  9162. get { return result.Dummy11; }
  9163. set { SetDummy11(value); }
  9164. }
  9165. public Builder SetDummy11(int value) {
  9166. PrepareBuilder();
  9167. result.hasDummy11 = true;
  9168. result.dummy11_ = value;
  9169. return this;
  9170. }
  9171. public Builder ClearDummy11() {
  9172. PrepareBuilder();
  9173. result.hasDummy11 = false;
  9174. result.dummy11_ = 0;
  9175. return this;
  9176. }
  9177. public bool HasDummy12 {
  9178. get { return result.hasDummy12; }
  9179. }
  9180. public int Dummy12 {
  9181. get { return result.Dummy12; }
  9182. set { SetDummy12(value); }
  9183. }
  9184. public Builder SetDummy12(int value) {
  9185. PrepareBuilder();
  9186. result.hasDummy12 = true;
  9187. result.dummy12_ = value;
  9188. return this;
  9189. }
  9190. public Builder ClearDummy12() {
  9191. PrepareBuilder();
  9192. result.hasDummy12 = false;
  9193. result.dummy12_ = 0;
  9194. return this;
  9195. }
  9196. public bool HasDummy13 {
  9197. get { return result.hasDummy13; }
  9198. }
  9199. public int Dummy13 {
  9200. get { return result.Dummy13; }
  9201. set { SetDummy13(value); }
  9202. }
  9203. public Builder SetDummy13(int value) {
  9204. PrepareBuilder();
  9205. result.hasDummy13 = true;
  9206. result.dummy13_ = value;
  9207. return this;
  9208. }
  9209. public Builder ClearDummy13() {
  9210. PrepareBuilder();
  9211. result.hasDummy13 = false;
  9212. result.dummy13_ = 0;
  9213. return this;
  9214. }
  9215. public bool HasDummy14 {
  9216. get { return result.hasDummy14; }
  9217. }
  9218. public int Dummy14 {
  9219. get { return result.Dummy14; }
  9220. set { SetDummy14(value); }
  9221. }
  9222. public Builder SetDummy14(int value) {
  9223. PrepareBuilder();
  9224. result.hasDummy14 = true;
  9225. result.dummy14_ = value;
  9226. return this;
  9227. }
  9228. public Builder ClearDummy14() {
  9229. PrepareBuilder();
  9230. result.hasDummy14 = false;
  9231. result.dummy14_ = 0;
  9232. return this;
  9233. }
  9234. public bool HasDummy15 {
  9235. get { return result.hasDummy15; }
  9236. }
  9237. public int Dummy15 {
  9238. get { return result.Dummy15; }
  9239. set { SetDummy15(value); }
  9240. }
  9241. public Builder SetDummy15(int value) {
  9242. PrepareBuilder();
  9243. result.hasDummy15 = true;
  9244. result.dummy15_ = value;
  9245. return this;
  9246. }
  9247. public Builder ClearDummy15() {
  9248. PrepareBuilder();
  9249. result.hasDummy15 = false;
  9250. result.dummy15_ = 0;
  9251. return this;
  9252. }
  9253. public bool HasDummy16 {
  9254. get { return result.hasDummy16; }
  9255. }
  9256. public int Dummy16 {
  9257. get { return result.Dummy16; }
  9258. set { SetDummy16(value); }
  9259. }
  9260. public Builder SetDummy16(int value) {
  9261. PrepareBuilder();
  9262. result.hasDummy16 = true;
  9263. result.dummy16_ = value;
  9264. return this;
  9265. }
  9266. public Builder ClearDummy16() {
  9267. PrepareBuilder();
  9268. result.hasDummy16 = false;
  9269. result.dummy16_ = 0;
  9270. return this;
  9271. }
  9272. public bool HasDummy17 {
  9273. get { return result.hasDummy17; }
  9274. }
  9275. public int Dummy17 {
  9276. get { return result.Dummy17; }
  9277. set { SetDummy17(value); }
  9278. }
  9279. public Builder SetDummy17(int value) {
  9280. PrepareBuilder();
  9281. result.hasDummy17 = true;
  9282. result.dummy17_ = value;
  9283. return this;
  9284. }
  9285. public Builder ClearDummy17() {
  9286. PrepareBuilder();
  9287. result.hasDummy17 = false;
  9288. result.dummy17_ = 0;
  9289. return this;
  9290. }
  9291. public bool HasDummy18 {
  9292. get { return result.hasDummy18; }
  9293. }
  9294. public int Dummy18 {
  9295. get { return result.Dummy18; }
  9296. set { SetDummy18(value); }
  9297. }
  9298. public Builder SetDummy18(int value) {
  9299. PrepareBuilder();
  9300. result.hasDummy18 = true;
  9301. result.dummy18_ = value;
  9302. return this;
  9303. }
  9304. public Builder ClearDummy18() {
  9305. PrepareBuilder();
  9306. result.hasDummy18 = false;
  9307. result.dummy18_ = 0;
  9308. return this;
  9309. }
  9310. public bool HasDummy19 {
  9311. get { return result.hasDummy19; }
  9312. }
  9313. public int Dummy19 {
  9314. get { return result.Dummy19; }
  9315. set { SetDummy19(value); }
  9316. }
  9317. public Builder SetDummy19(int value) {
  9318. PrepareBuilder();
  9319. result.hasDummy19 = true;
  9320. result.dummy19_ = value;
  9321. return this;
  9322. }
  9323. public Builder ClearDummy19() {
  9324. PrepareBuilder();
  9325. result.hasDummy19 = false;
  9326. result.dummy19_ = 0;
  9327. return this;
  9328. }
  9329. public bool HasDummy20 {
  9330. get { return result.hasDummy20; }
  9331. }
  9332. public int Dummy20 {
  9333. get { return result.Dummy20; }
  9334. set { SetDummy20(value); }
  9335. }
  9336. public Builder SetDummy20(int value) {
  9337. PrepareBuilder();
  9338. result.hasDummy20 = true;
  9339. result.dummy20_ = value;
  9340. return this;
  9341. }
  9342. public Builder ClearDummy20() {
  9343. PrepareBuilder();
  9344. result.hasDummy20 = false;
  9345. result.dummy20_ = 0;
  9346. return this;
  9347. }
  9348. public bool HasDummy21 {
  9349. get { return result.hasDummy21; }
  9350. }
  9351. public int Dummy21 {
  9352. get { return result.Dummy21; }
  9353. set { SetDummy21(value); }
  9354. }
  9355. public Builder SetDummy21(int value) {
  9356. PrepareBuilder();
  9357. result.hasDummy21 = true;
  9358. result.dummy21_ = value;
  9359. return this;
  9360. }
  9361. public Builder ClearDummy21() {
  9362. PrepareBuilder();
  9363. result.hasDummy21 = false;
  9364. result.dummy21_ = 0;
  9365. return this;
  9366. }
  9367. public bool HasDummy22 {
  9368. get { return result.hasDummy22; }
  9369. }
  9370. public int Dummy22 {
  9371. get { return result.Dummy22; }
  9372. set { SetDummy22(value); }
  9373. }
  9374. public Builder SetDummy22(int value) {
  9375. PrepareBuilder();
  9376. result.hasDummy22 = true;
  9377. result.dummy22_ = value;
  9378. return this;
  9379. }
  9380. public Builder ClearDummy22() {
  9381. PrepareBuilder();
  9382. result.hasDummy22 = false;
  9383. result.dummy22_ = 0;
  9384. return this;
  9385. }
  9386. public bool HasDummy23 {
  9387. get { return result.hasDummy23; }
  9388. }
  9389. public int Dummy23 {
  9390. get { return result.Dummy23; }
  9391. set { SetDummy23(value); }
  9392. }
  9393. public Builder SetDummy23(int value) {
  9394. PrepareBuilder();
  9395. result.hasDummy23 = true;
  9396. result.dummy23_ = value;
  9397. return this;
  9398. }
  9399. public Builder ClearDummy23() {
  9400. PrepareBuilder();
  9401. result.hasDummy23 = false;
  9402. result.dummy23_ = 0;
  9403. return this;
  9404. }
  9405. public bool HasDummy24 {
  9406. get { return result.hasDummy24; }
  9407. }
  9408. public int Dummy24 {
  9409. get { return result.Dummy24; }
  9410. set { SetDummy24(value); }
  9411. }
  9412. public Builder SetDummy24(int value) {
  9413. PrepareBuilder();
  9414. result.hasDummy24 = true;
  9415. result.dummy24_ = value;
  9416. return this;
  9417. }
  9418. public Builder ClearDummy24() {
  9419. PrepareBuilder();
  9420. result.hasDummy24 = false;
  9421. result.dummy24_ = 0;
  9422. return this;
  9423. }
  9424. public bool HasDummy25 {
  9425. get { return result.hasDummy25; }
  9426. }
  9427. public int Dummy25 {
  9428. get { return result.Dummy25; }
  9429. set { SetDummy25(value); }
  9430. }
  9431. public Builder SetDummy25(int value) {
  9432. PrepareBuilder();
  9433. result.hasDummy25 = true;
  9434. result.dummy25_ = value;
  9435. return this;
  9436. }
  9437. public Builder ClearDummy25() {
  9438. PrepareBuilder();
  9439. result.hasDummy25 = false;
  9440. result.dummy25_ = 0;
  9441. return this;
  9442. }
  9443. public bool HasDummy26 {
  9444. get { return result.hasDummy26; }
  9445. }
  9446. public int Dummy26 {
  9447. get { return result.Dummy26; }
  9448. set { SetDummy26(value); }
  9449. }
  9450. public Builder SetDummy26(int value) {
  9451. PrepareBuilder();
  9452. result.hasDummy26 = true;
  9453. result.dummy26_ = value;
  9454. return this;
  9455. }
  9456. public Builder ClearDummy26() {
  9457. PrepareBuilder();
  9458. result.hasDummy26 = false;
  9459. result.dummy26_ = 0;
  9460. return this;
  9461. }
  9462. public bool HasDummy27 {
  9463. get { return result.hasDummy27; }
  9464. }
  9465. public int Dummy27 {
  9466. get { return result.Dummy27; }
  9467. set { SetDummy27(value); }
  9468. }
  9469. public Builder SetDummy27(int value) {
  9470. PrepareBuilder();
  9471. result.hasDummy27 = true;
  9472. result.dummy27_ = value;
  9473. return this;
  9474. }
  9475. public Builder ClearDummy27() {
  9476. PrepareBuilder();
  9477. result.hasDummy27 = false;
  9478. result.dummy27_ = 0;
  9479. return this;
  9480. }
  9481. public bool HasDummy28 {
  9482. get { return result.hasDummy28; }
  9483. }
  9484. public int Dummy28 {
  9485. get { return result.Dummy28; }
  9486. set { SetDummy28(value); }
  9487. }
  9488. public Builder SetDummy28(int value) {
  9489. PrepareBuilder();
  9490. result.hasDummy28 = true;
  9491. result.dummy28_ = value;
  9492. return this;
  9493. }
  9494. public Builder ClearDummy28() {
  9495. PrepareBuilder();
  9496. result.hasDummy28 = false;
  9497. result.dummy28_ = 0;
  9498. return this;
  9499. }
  9500. public bool HasDummy29 {
  9501. get { return result.hasDummy29; }
  9502. }
  9503. public int Dummy29 {
  9504. get { return result.Dummy29; }
  9505. set { SetDummy29(value); }
  9506. }
  9507. public Builder SetDummy29(int value) {
  9508. PrepareBuilder();
  9509. result.hasDummy29 = true;
  9510. result.dummy29_ = value;
  9511. return this;
  9512. }
  9513. public Builder ClearDummy29() {
  9514. PrepareBuilder();
  9515. result.hasDummy29 = false;
  9516. result.dummy29_ = 0;
  9517. return this;
  9518. }
  9519. public bool HasDummy30 {
  9520. get { return result.hasDummy30; }
  9521. }
  9522. public int Dummy30 {
  9523. get { return result.Dummy30; }
  9524. set { SetDummy30(value); }
  9525. }
  9526. public Builder SetDummy30(int value) {
  9527. PrepareBuilder();
  9528. result.hasDummy30 = true;
  9529. result.dummy30_ = value;
  9530. return this;
  9531. }
  9532. public Builder ClearDummy30() {
  9533. PrepareBuilder();
  9534. result.hasDummy30 = false;
  9535. result.dummy30_ = 0;
  9536. return this;
  9537. }
  9538. public bool HasDummy31 {
  9539. get { return result.hasDummy31; }
  9540. }
  9541. public int Dummy31 {
  9542. get { return result.Dummy31; }
  9543. set { SetDummy31(value); }
  9544. }
  9545. public Builder SetDummy31(int value) {
  9546. PrepareBuilder();
  9547. result.hasDummy31 = true;
  9548. result.dummy31_ = value;
  9549. return this;
  9550. }
  9551. public Builder ClearDummy31() {
  9552. PrepareBuilder();
  9553. result.hasDummy31 = false;
  9554. result.dummy31_ = 0;
  9555. return this;
  9556. }
  9557. public bool HasDummy32 {
  9558. get { return result.hasDummy32; }
  9559. }
  9560. public int Dummy32 {
  9561. get { return result.Dummy32; }
  9562. set { SetDummy32(value); }
  9563. }
  9564. public Builder SetDummy32(int value) {
  9565. PrepareBuilder();
  9566. result.hasDummy32 = true;
  9567. result.dummy32_ = value;
  9568. return this;
  9569. }
  9570. public Builder ClearDummy32() {
  9571. PrepareBuilder();
  9572. result.hasDummy32 = false;
  9573. result.dummy32_ = 0;
  9574. return this;
  9575. }
  9576. public bool HasC {
  9577. get { return result.hasC; }
  9578. }
  9579. public int C {
  9580. get { return result.C; }
  9581. set { SetC(value); }
  9582. }
  9583. public Builder SetC(int value) {
  9584. PrepareBuilder();
  9585. result.hasC = true;
  9586. result.c_ = value;
  9587. return this;
  9588. }
  9589. public Builder ClearC() {
  9590. PrepareBuilder();
  9591. result.hasC = false;
  9592. result.c_ = 0;
  9593. return this;
  9594. }
  9595. }
  9596. static TestRequired() {
  9597. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  9598. }
  9599. }
  9600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9601. public sealed partial class TestRequiredForeign : pb::GeneratedMessage<TestRequiredForeign, TestRequiredForeign.Builder> {
  9602. private TestRequiredForeign() { }
  9603. private static readonly TestRequiredForeign defaultInstance = new TestRequiredForeign().MakeReadOnly();
  9604. private static readonly string[] _testRequiredForeignFieldNames = new string[] { "dummy", "optional_message", "repeated_message" };
  9605. private static readonly uint[] _testRequiredForeignFieldTags = new uint[] { 24, 10, 18 };
  9606. public static TestRequiredForeign DefaultInstance {
  9607. get { return defaultInstance; }
  9608. }
  9609. public override TestRequiredForeign DefaultInstanceForType {
  9610. get { return DefaultInstance; }
  9611. }
  9612. protected override TestRequiredForeign ThisMessage {
  9613. get { return this; }
  9614. }
  9615. public static pbd::MessageDescriptor Descriptor {
  9616. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRequiredForeign__Descriptor; }
  9617. }
  9618. protected override pb::FieldAccess.FieldAccessorTable<TestRequiredForeign, TestRequiredForeign.Builder> InternalFieldAccessors {
  9619. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable; }
  9620. }
  9621. public const int OptionalMessageFieldNumber = 1;
  9622. private bool hasOptionalMessage;
  9623. private global::Google.ProtocolBuffers.TestProtos.TestRequired optionalMessage_;
  9624. public bool HasOptionalMessage {
  9625. get { return hasOptionalMessage; }
  9626. }
  9627. public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage {
  9628. get { return optionalMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance; }
  9629. }
  9630. public const int RepeatedMessageFieldNumber = 2;
  9631. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired> repeatedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
  9632. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList {
  9633. get { return repeatedMessage_; }
  9634. }
  9635. public int RepeatedMessageCount {
  9636. get { return repeatedMessage_.Count; }
  9637. }
  9638. public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) {
  9639. return repeatedMessage_[index];
  9640. }
  9641. public const int DummyFieldNumber = 3;
  9642. private bool hasDummy;
  9643. private int dummy_;
  9644. public bool HasDummy {
  9645. get { return hasDummy; }
  9646. }
  9647. public int Dummy {
  9648. get { return dummy_; }
  9649. }
  9650. public override bool IsInitialized {
  9651. get {
  9652. if (HasOptionalMessage) {
  9653. if (!OptionalMessage.IsInitialized) return false;
  9654. }
  9655. foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
  9656. if (!element.IsInitialized) return false;
  9657. }
  9658. return true;
  9659. }
  9660. }
  9661. public override void WriteTo(pb::ICodedOutputStream output) {
  9662. CalcSerializedSize();
  9663. string[] field_names = _testRequiredForeignFieldNames;
  9664. if (hasOptionalMessage) {
  9665. output.WriteMessage(1, field_names[1], OptionalMessage);
  9666. }
  9667. if (repeatedMessage_.Count > 0) {
  9668. output.WriteMessageArray(2, field_names[2], repeatedMessage_);
  9669. }
  9670. if (hasDummy) {
  9671. output.WriteInt32(3, field_names[0], Dummy);
  9672. }
  9673. UnknownFields.WriteTo(output);
  9674. }
  9675. private int memoizedSerializedSize = -1;
  9676. public override int SerializedSize {
  9677. get {
  9678. int size = memoizedSerializedSize;
  9679. if (size != -1) return size;
  9680. return CalcSerializedSize();
  9681. }
  9682. }
  9683. private int CalcSerializedSize() {
  9684. int size = memoizedSerializedSize;
  9685. if (size != -1) return size;
  9686. size = 0;
  9687. if (hasOptionalMessage) {
  9688. size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalMessage);
  9689. }
  9690. foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
  9691. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  9692. }
  9693. if (hasDummy) {
  9694. size += pb::CodedOutputStream.ComputeInt32Size(3, Dummy);
  9695. }
  9696. size += UnknownFields.SerializedSize;
  9697. memoizedSerializedSize = size;
  9698. return size;
  9699. }
  9700. public static TestRequiredForeign ParseFrom(pb::ByteString data) {
  9701. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9702. }
  9703. public static TestRequiredForeign ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  9704. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  9705. }
  9706. public static TestRequiredForeign ParseFrom(byte[] data) {
  9707. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9708. }
  9709. public static TestRequiredForeign ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  9710. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  9711. }
  9712. public static TestRequiredForeign ParseFrom(global::System.IO.Stream input) {
  9713. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9714. }
  9715. public static TestRequiredForeign ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  9716. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  9717. }
  9718. public static TestRequiredForeign ParseDelimitedFrom(global::System.IO.Stream input) {
  9719. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  9720. }
  9721. public static TestRequiredForeign ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  9722. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  9723. }
  9724. public static TestRequiredForeign ParseFrom(pb::ICodedInputStream input) {
  9725. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9726. }
  9727. public static TestRequiredForeign ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9728. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  9729. }
  9730. private TestRequiredForeign MakeReadOnly() {
  9731. repeatedMessage_.MakeReadOnly();
  9732. return this;
  9733. }
  9734. public static Builder CreateBuilder() { return new Builder(); }
  9735. public override Builder ToBuilder() { return CreateBuilder(this); }
  9736. public override Builder CreateBuilderForType() { return new Builder(); }
  9737. public static Builder CreateBuilder(TestRequiredForeign prototype) {
  9738. return new Builder(prototype);
  9739. }
  9740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9741. public sealed partial class Builder : pb::GeneratedBuilder<TestRequiredForeign, Builder> {
  9742. protected override Builder ThisBuilder {
  9743. get { return this; }
  9744. }
  9745. public Builder() {
  9746. result = DefaultInstance;
  9747. resultIsReadOnly = true;
  9748. }
  9749. internal Builder(TestRequiredForeign cloneFrom) {
  9750. result = cloneFrom;
  9751. resultIsReadOnly = true;
  9752. }
  9753. private bool resultIsReadOnly;
  9754. private TestRequiredForeign result;
  9755. private TestRequiredForeign PrepareBuilder() {
  9756. if (resultIsReadOnly) {
  9757. TestRequiredForeign original = result;
  9758. result = new TestRequiredForeign();
  9759. resultIsReadOnly = false;
  9760. MergeFrom(original);
  9761. }
  9762. return result;
  9763. }
  9764. public override bool IsInitialized {
  9765. get { return result.IsInitialized; }
  9766. }
  9767. protected override TestRequiredForeign MessageBeingBuilt {
  9768. get { return PrepareBuilder(); }
  9769. }
  9770. public override Builder Clear() {
  9771. result = DefaultInstance;
  9772. resultIsReadOnly = true;
  9773. return this;
  9774. }
  9775. public override Builder Clone() {
  9776. if (resultIsReadOnly) {
  9777. return new Builder(result);
  9778. } else {
  9779. return new Builder().MergeFrom(result);
  9780. }
  9781. }
  9782. public override pbd::MessageDescriptor DescriptorForType {
  9783. get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Descriptor; }
  9784. }
  9785. public override TestRequiredForeign DefaultInstanceForType {
  9786. get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.DefaultInstance; }
  9787. }
  9788. public override TestRequiredForeign BuildPartial() {
  9789. if (resultIsReadOnly) {
  9790. return result;
  9791. }
  9792. resultIsReadOnly = true;
  9793. return result.MakeReadOnly();
  9794. }
  9795. public override Builder MergeFrom(pb::IMessage other) {
  9796. if (other is TestRequiredForeign) {
  9797. return MergeFrom((TestRequiredForeign) other);
  9798. } else {
  9799. base.MergeFrom(other);
  9800. return this;
  9801. }
  9802. }
  9803. public override Builder MergeFrom(TestRequiredForeign other) {
  9804. if (other == global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.DefaultInstance) return this;
  9805. PrepareBuilder();
  9806. if (other.HasOptionalMessage) {
  9807. MergeOptionalMessage(other.OptionalMessage);
  9808. }
  9809. if (other.repeatedMessage_.Count != 0) {
  9810. result.repeatedMessage_.Add(other.repeatedMessage_);
  9811. }
  9812. if (other.HasDummy) {
  9813. Dummy = other.Dummy;
  9814. }
  9815. this.MergeUnknownFields(other.UnknownFields);
  9816. return this;
  9817. }
  9818. public override Builder MergeFrom(pb::ICodedInputStream input) {
  9819. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9820. }
  9821. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9822. PrepareBuilder();
  9823. pb::UnknownFieldSet.Builder unknownFields = null;
  9824. uint tag;
  9825. string field_name;
  9826. while (input.ReadTag(out tag, out field_name)) {
  9827. if(tag == 0 && field_name != null) {
  9828. int field_ordinal = global::System.Array.BinarySearch(_testRequiredForeignFieldNames, field_name, global::System.StringComparer.Ordinal);
  9829. if(field_ordinal >= 0)
  9830. tag = _testRequiredForeignFieldTags[field_ordinal];
  9831. else {
  9832. if (unknownFields == null) {
  9833. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9834. }
  9835. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  9836. continue;
  9837. }
  9838. }
  9839. switch (tag) {
  9840. case 0: {
  9841. throw pb::InvalidProtocolBufferException.InvalidTag();
  9842. }
  9843. default: {
  9844. if (pb::WireFormat.IsEndGroupTag(tag)) {
  9845. if (unknownFields != null) {
  9846. this.UnknownFields = unknownFields.Build();
  9847. }
  9848. return this;
  9849. }
  9850. if (unknownFields == null) {
  9851. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9852. }
  9853. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  9854. break;
  9855. }
  9856. case 10: {
  9857. global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder();
  9858. if (result.hasOptionalMessage) {
  9859. subBuilder.MergeFrom(OptionalMessage);
  9860. }
  9861. input.ReadMessage(subBuilder, extensionRegistry);
  9862. OptionalMessage = subBuilder.BuildPartial();
  9863. break;
  9864. }
  9865. case 18: {
  9866. input.ReadMessageArray(tag, field_name, result.repeatedMessage_, global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance, extensionRegistry);
  9867. break;
  9868. }
  9869. case 24: {
  9870. result.hasDummy = input.ReadInt32(ref result.dummy_);
  9871. break;
  9872. }
  9873. }
  9874. }
  9875. if (unknownFields != null) {
  9876. this.UnknownFields = unknownFields.Build();
  9877. }
  9878. return this;
  9879. }
  9880. public bool HasOptionalMessage {
  9881. get { return result.hasOptionalMessage; }
  9882. }
  9883. public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage {
  9884. get { return result.OptionalMessage; }
  9885. set { SetOptionalMessage(value); }
  9886. }
  9887. public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  9888. pb::ThrowHelper.ThrowIfNull(value, "value");
  9889. PrepareBuilder();
  9890. result.hasOptionalMessage = true;
  9891. result.optionalMessage_ = value;
  9892. return this;
  9893. }
  9894. public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
  9895. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  9896. PrepareBuilder();
  9897. result.hasOptionalMessage = true;
  9898. result.optionalMessage_ = builderForValue.Build();
  9899. return this;
  9900. }
  9901. public Builder MergeOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  9902. pb::ThrowHelper.ThrowIfNull(value, "value");
  9903. PrepareBuilder();
  9904. if (result.hasOptionalMessage &&
  9905. result.optionalMessage_ != global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) {
  9906. result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(result.optionalMessage_).MergeFrom(value).BuildPartial();
  9907. } else {
  9908. result.optionalMessage_ = value;
  9909. }
  9910. result.hasOptionalMessage = true;
  9911. return this;
  9912. }
  9913. public Builder ClearOptionalMessage() {
  9914. PrepareBuilder();
  9915. result.hasOptionalMessage = false;
  9916. result.optionalMessage_ = null;
  9917. return this;
  9918. }
  9919. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList {
  9920. get { return PrepareBuilder().repeatedMessage_; }
  9921. }
  9922. public int RepeatedMessageCount {
  9923. get { return result.RepeatedMessageCount; }
  9924. }
  9925. public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) {
  9926. return result.GetRepeatedMessage(index);
  9927. }
  9928. public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  9929. pb::ThrowHelper.ThrowIfNull(value, "value");
  9930. PrepareBuilder();
  9931. result.repeatedMessage_[index] = value;
  9932. return this;
  9933. }
  9934. public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
  9935. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  9936. PrepareBuilder();
  9937. result.repeatedMessage_[index] = builderForValue.Build();
  9938. return this;
  9939. }
  9940. public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  9941. pb::ThrowHelper.ThrowIfNull(value, "value");
  9942. PrepareBuilder();
  9943. result.repeatedMessage_.Add(value);
  9944. return this;
  9945. }
  9946. public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
  9947. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  9948. PrepareBuilder();
  9949. result.repeatedMessage_.Add(builderForValue.Build());
  9950. return this;
  9951. }
  9952. public Builder AddRangeRepeatedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestRequired> values) {
  9953. PrepareBuilder();
  9954. result.repeatedMessage_.Add(values);
  9955. return this;
  9956. }
  9957. public Builder ClearRepeatedMessage() {
  9958. PrepareBuilder();
  9959. result.repeatedMessage_.Clear();
  9960. return this;
  9961. }
  9962. public bool HasDummy {
  9963. get { return result.hasDummy; }
  9964. }
  9965. public int Dummy {
  9966. get { return result.Dummy; }
  9967. set { SetDummy(value); }
  9968. }
  9969. public Builder SetDummy(int value) {
  9970. PrepareBuilder();
  9971. result.hasDummy = true;
  9972. result.dummy_ = value;
  9973. return this;
  9974. }
  9975. public Builder ClearDummy() {
  9976. PrepareBuilder();
  9977. result.hasDummy = false;
  9978. result.dummy_ = 0;
  9979. return this;
  9980. }
  9981. }
  9982. static TestRequiredForeign() {
  9983. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  9984. }
  9985. }
  9986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9987. public sealed partial class TestForeignNested : pb::GeneratedMessage<TestForeignNested, TestForeignNested.Builder> {
  9988. private TestForeignNested() { }
  9989. private static readonly TestForeignNested defaultInstance = new TestForeignNested().MakeReadOnly();
  9990. private static readonly string[] _testForeignNestedFieldNames = new string[] { "foreign_nested" };
  9991. private static readonly uint[] _testForeignNestedFieldTags = new uint[] { 10 };
  9992. public static TestForeignNested DefaultInstance {
  9993. get { return defaultInstance; }
  9994. }
  9995. public override TestForeignNested DefaultInstanceForType {
  9996. get { return DefaultInstance; }
  9997. }
  9998. protected override TestForeignNested ThisMessage {
  9999. get { return this; }
  10000. }
  10001. public static pbd::MessageDescriptor Descriptor {
  10002. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestForeignNested__Descriptor; }
  10003. }
  10004. protected override pb::FieldAccess.FieldAccessorTable<TestForeignNested, TestForeignNested.Builder> InternalFieldAccessors {
  10005. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; }
  10006. }
  10007. public const int ForeignNestedFieldNumber = 1;
  10008. private bool hasForeignNested;
  10009. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage foreignNested_;
  10010. public bool HasForeignNested {
  10011. get { return hasForeignNested; }
  10012. }
  10013. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
  10014. get { return foreignNested_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; }
  10015. }
  10016. public override bool IsInitialized {
  10017. get {
  10018. return true;
  10019. }
  10020. }
  10021. public override void WriteTo(pb::ICodedOutputStream output) {
  10022. CalcSerializedSize();
  10023. string[] field_names = _testForeignNestedFieldNames;
  10024. if (hasForeignNested) {
  10025. output.WriteMessage(1, field_names[0], ForeignNested);
  10026. }
  10027. UnknownFields.WriteTo(output);
  10028. }
  10029. private int memoizedSerializedSize = -1;
  10030. public override int SerializedSize {
  10031. get {
  10032. int size = memoizedSerializedSize;
  10033. if (size != -1) return size;
  10034. return CalcSerializedSize();
  10035. }
  10036. }
  10037. private int CalcSerializedSize() {
  10038. int size = memoizedSerializedSize;
  10039. if (size != -1) return size;
  10040. size = 0;
  10041. if (hasForeignNested) {
  10042. size += pb::CodedOutputStream.ComputeMessageSize(1, ForeignNested);
  10043. }
  10044. size += UnknownFields.SerializedSize;
  10045. memoizedSerializedSize = size;
  10046. return size;
  10047. }
  10048. public static TestForeignNested ParseFrom(pb::ByteString data) {
  10049. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10050. }
  10051. public static TestForeignNested ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  10052. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  10053. }
  10054. public static TestForeignNested ParseFrom(byte[] data) {
  10055. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10056. }
  10057. public static TestForeignNested ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  10058. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  10059. }
  10060. public static TestForeignNested ParseFrom(global::System.IO.Stream input) {
  10061. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10062. }
  10063. public static TestForeignNested ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  10064. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  10065. }
  10066. public static TestForeignNested ParseDelimitedFrom(global::System.IO.Stream input) {
  10067. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  10068. }
  10069. public static TestForeignNested ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  10070. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  10071. }
  10072. public static TestForeignNested ParseFrom(pb::ICodedInputStream input) {
  10073. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10074. }
  10075. public static TestForeignNested ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10076. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  10077. }
  10078. private TestForeignNested MakeReadOnly() {
  10079. return this;
  10080. }
  10081. public static Builder CreateBuilder() { return new Builder(); }
  10082. public override Builder ToBuilder() { return CreateBuilder(this); }
  10083. public override Builder CreateBuilderForType() { return new Builder(); }
  10084. public static Builder CreateBuilder(TestForeignNested prototype) {
  10085. return new Builder(prototype);
  10086. }
  10087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10088. public sealed partial class Builder : pb::GeneratedBuilder<TestForeignNested, Builder> {
  10089. protected override Builder ThisBuilder {
  10090. get { return this; }
  10091. }
  10092. public Builder() {
  10093. result = DefaultInstance;
  10094. resultIsReadOnly = true;
  10095. }
  10096. internal Builder(TestForeignNested cloneFrom) {
  10097. result = cloneFrom;
  10098. resultIsReadOnly = true;
  10099. }
  10100. private bool resultIsReadOnly;
  10101. private TestForeignNested result;
  10102. private TestForeignNested PrepareBuilder() {
  10103. if (resultIsReadOnly) {
  10104. TestForeignNested original = result;
  10105. result = new TestForeignNested();
  10106. resultIsReadOnly = false;
  10107. MergeFrom(original);
  10108. }
  10109. return result;
  10110. }
  10111. public override bool IsInitialized {
  10112. get { return result.IsInitialized; }
  10113. }
  10114. protected override TestForeignNested MessageBeingBuilt {
  10115. get { return PrepareBuilder(); }
  10116. }
  10117. public override Builder Clear() {
  10118. result = DefaultInstance;
  10119. resultIsReadOnly = true;
  10120. return this;
  10121. }
  10122. public override Builder Clone() {
  10123. if (resultIsReadOnly) {
  10124. return new Builder(result);
  10125. } else {
  10126. return new Builder().MergeFrom(result);
  10127. }
  10128. }
  10129. public override pbd::MessageDescriptor DescriptorForType {
  10130. get { return global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Descriptor; }
  10131. }
  10132. public override TestForeignNested DefaultInstanceForType {
  10133. get { return global::Google.ProtocolBuffers.TestProtos.TestForeignNested.DefaultInstance; }
  10134. }
  10135. public override TestForeignNested BuildPartial() {
  10136. if (resultIsReadOnly) {
  10137. return result;
  10138. }
  10139. resultIsReadOnly = true;
  10140. return result.MakeReadOnly();
  10141. }
  10142. public override Builder MergeFrom(pb::IMessage other) {
  10143. if (other is TestForeignNested) {
  10144. return MergeFrom((TestForeignNested) other);
  10145. } else {
  10146. base.MergeFrom(other);
  10147. return this;
  10148. }
  10149. }
  10150. public override Builder MergeFrom(TestForeignNested other) {
  10151. if (other == global::Google.ProtocolBuffers.TestProtos.TestForeignNested.DefaultInstance) return this;
  10152. PrepareBuilder();
  10153. if (other.HasForeignNested) {
  10154. MergeForeignNested(other.ForeignNested);
  10155. }
  10156. this.MergeUnknownFields(other.UnknownFields);
  10157. return this;
  10158. }
  10159. public override Builder MergeFrom(pb::ICodedInputStream input) {
  10160. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  10161. }
  10162. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10163. PrepareBuilder();
  10164. pb::UnknownFieldSet.Builder unknownFields = null;
  10165. uint tag;
  10166. string field_name;
  10167. while (input.ReadTag(out tag, out field_name)) {
  10168. if(tag == 0 && field_name != null) {
  10169. int field_ordinal = global::System.Array.BinarySearch(_testForeignNestedFieldNames, field_name, global::System.StringComparer.Ordinal);
  10170. if(field_ordinal >= 0)
  10171. tag = _testForeignNestedFieldTags[field_ordinal];
  10172. else {
  10173. if (unknownFields == null) {
  10174. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10175. }
  10176. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  10177. continue;
  10178. }
  10179. }
  10180. switch (tag) {
  10181. case 0: {
  10182. throw pb::InvalidProtocolBufferException.InvalidTag();
  10183. }
  10184. default: {
  10185. if (pb::WireFormat.IsEndGroupTag(tag)) {
  10186. if (unknownFields != null) {
  10187. this.UnknownFields = unknownFields.Build();
  10188. }
  10189. return this;
  10190. }
  10191. if (unknownFields == null) {
  10192. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10193. }
  10194. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  10195. break;
  10196. }
  10197. case 10: {
  10198. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
  10199. if (result.hasForeignNested) {
  10200. subBuilder.MergeFrom(ForeignNested);
  10201. }
  10202. input.ReadMessage(subBuilder, extensionRegistry);
  10203. ForeignNested = subBuilder.BuildPartial();
  10204. break;
  10205. }
  10206. }
  10207. }
  10208. if (unknownFields != null) {
  10209. this.UnknownFields = unknownFields.Build();
  10210. }
  10211. return this;
  10212. }
  10213. public bool HasForeignNested {
  10214. get { return result.hasForeignNested; }
  10215. }
  10216. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
  10217. get { return result.ForeignNested; }
  10218. set { SetForeignNested(value); }
  10219. }
  10220. public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  10221. pb::ThrowHelper.ThrowIfNull(value, "value");
  10222. PrepareBuilder();
  10223. result.hasForeignNested = true;
  10224. result.foreignNested_ = value;
  10225. return this;
  10226. }
  10227. public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  10228. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  10229. PrepareBuilder();
  10230. result.hasForeignNested = true;
  10231. result.foreignNested_ = builderForValue.Build();
  10232. return this;
  10233. }
  10234. public Builder MergeForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  10235. pb::ThrowHelper.ThrowIfNull(value, "value");
  10236. PrepareBuilder();
  10237. if (result.hasForeignNested &&
  10238. result.foreignNested_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
  10239. result.foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.foreignNested_).MergeFrom(value).BuildPartial();
  10240. } else {
  10241. result.foreignNested_ = value;
  10242. }
  10243. result.hasForeignNested = true;
  10244. return this;
  10245. }
  10246. public Builder ClearForeignNested() {
  10247. PrepareBuilder();
  10248. result.hasForeignNested = false;
  10249. result.foreignNested_ = null;
  10250. return this;
  10251. }
  10252. }
  10253. static TestForeignNested() {
  10254. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  10255. }
  10256. }
  10257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10258. public sealed partial class TestEmptyMessage : pb::GeneratedMessage<TestEmptyMessage, TestEmptyMessage.Builder> {
  10259. private TestEmptyMessage() { }
  10260. private static readonly TestEmptyMessage defaultInstance = new TestEmptyMessage().MakeReadOnly();
  10261. private static readonly string[] _testEmptyMessageFieldNames = new string[] { };
  10262. private static readonly uint[] _testEmptyMessageFieldTags = new uint[] { };
  10263. public static TestEmptyMessage DefaultInstance {
  10264. get { return defaultInstance; }
  10265. }
  10266. public override TestEmptyMessage DefaultInstanceForType {
  10267. get { return DefaultInstance; }
  10268. }
  10269. protected override TestEmptyMessage ThisMessage {
  10270. get { return this; }
  10271. }
  10272. public static pbd::MessageDescriptor Descriptor {
  10273. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestEmptyMessage__Descriptor; }
  10274. }
  10275. protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessage, TestEmptyMessage.Builder> InternalFieldAccessors {
  10276. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable; }
  10277. }
  10278. public override bool IsInitialized {
  10279. get {
  10280. return true;
  10281. }
  10282. }
  10283. public override void WriteTo(pb::ICodedOutputStream output) {
  10284. CalcSerializedSize();
  10285. string[] field_names = _testEmptyMessageFieldNames;
  10286. UnknownFields.WriteTo(output);
  10287. }
  10288. private int memoizedSerializedSize = -1;
  10289. public override int SerializedSize {
  10290. get {
  10291. int size = memoizedSerializedSize;
  10292. if (size != -1) return size;
  10293. return CalcSerializedSize();
  10294. }
  10295. }
  10296. private int CalcSerializedSize() {
  10297. int size = memoizedSerializedSize;
  10298. if (size != -1) return size;
  10299. size = 0;
  10300. size += UnknownFields.SerializedSize;
  10301. memoizedSerializedSize = size;
  10302. return size;
  10303. }
  10304. public static TestEmptyMessage ParseFrom(pb::ByteString data) {
  10305. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10306. }
  10307. public static TestEmptyMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  10308. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  10309. }
  10310. public static TestEmptyMessage ParseFrom(byte[] data) {
  10311. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10312. }
  10313. public static TestEmptyMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  10314. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  10315. }
  10316. public static TestEmptyMessage ParseFrom(global::System.IO.Stream input) {
  10317. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10318. }
  10319. public static TestEmptyMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  10320. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  10321. }
  10322. public static TestEmptyMessage ParseDelimitedFrom(global::System.IO.Stream input) {
  10323. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  10324. }
  10325. public static TestEmptyMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  10326. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  10327. }
  10328. public static TestEmptyMessage ParseFrom(pb::ICodedInputStream input) {
  10329. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10330. }
  10331. public static TestEmptyMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10332. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  10333. }
  10334. private TestEmptyMessage MakeReadOnly() {
  10335. return this;
  10336. }
  10337. public static Builder CreateBuilder() { return new Builder(); }
  10338. public override Builder ToBuilder() { return CreateBuilder(this); }
  10339. public override Builder CreateBuilderForType() { return new Builder(); }
  10340. public static Builder CreateBuilder(TestEmptyMessage prototype) {
  10341. return new Builder(prototype);
  10342. }
  10343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10344. public sealed partial class Builder : pb::GeneratedBuilder<TestEmptyMessage, Builder> {
  10345. protected override Builder ThisBuilder {
  10346. get { return this; }
  10347. }
  10348. public Builder() {
  10349. result = DefaultInstance;
  10350. resultIsReadOnly = true;
  10351. }
  10352. internal Builder(TestEmptyMessage cloneFrom) {
  10353. result = cloneFrom;
  10354. resultIsReadOnly = true;
  10355. }
  10356. private bool resultIsReadOnly;
  10357. private TestEmptyMessage result;
  10358. private TestEmptyMessage PrepareBuilder() {
  10359. if (resultIsReadOnly) {
  10360. TestEmptyMessage original = result;
  10361. result = new TestEmptyMessage();
  10362. resultIsReadOnly = false;
  10363. MergeFrom(original);
  10364. }
  10365. return result;
  10366. }
  10367. public override bool IsInitialized {
  10368. get { return result.IsInitialized; }
  10369. }
  10370. protected override TestEmptyMessage MessageBeingBuilt {
  10371. get { return PrepareBuilder(); }
  10372. }
  10373. public override Builder Clear() {
  10374. result = DefaultInstance;
  10375. resultIsReadOnly = true;
  10376. return this;
  10377. }
  10378. public override Builder Clone() {
  10379. if (resultIsReadOnly) {
  10380. return new Builder(result);
  10381. } else {
  10382. return new Builder().MergeFrom(result);
  10383. }
  10384. }
  10385. public override pbd::MessageDescriptor DescriptorForType {
  10386. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Descriptor; }
  10387. }
  10388. public override TestEmptyMessage DefaultInstanceForType {
  10389. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.DefaultInstance; }
  10390. }
  10391. public override TestEmptyMessage BuildPartial() {
  10392. if (resultIsReadOnly) {
  10393. return result;
  10394. }
  10395. resultIsReadOnly = true;
  10396. return result.MakeReadOnly();
  10397. }
  10398. public override Builder MergeFrom(pb::IMessage other) {
  10399. if (other is TestEmptyMessage) {
  10400. return MergeFrom((TestEmptyMessage) other);
  10401. } else {
  10402. base.MergeFrom(other);
  10403. return this;
  10404. }
  10405. }
  10406. public override Builder MergeFrom(TestEmptyMessage other) {
  10407. if (other == global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.DefaultInstance) return this;
  10408. PrepareBuilder();
  10409. this.MergeUnknownFields(other.UnknownFields);
  10410. return this;
  10411. }
  10412. public override Builder MergeFrom(pb::ICodedInputStream input) {
  10413. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  10414. }
  10415. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10416. PrepareBuilder();
  10417. pb::UnknownFieldSet.Builder unknownFields = null;
  10418. uint tag;
  10419. string field_name;
  10420. while (input.ReadTag(out tag, out field_name)) {
  10421. if(tag == 0 && field_name != null) {
  10422. int field_ordinal = global::System.Array.BinarySearch(_testEmptyMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  10423. if(field_ordinal >= 0)
  10424. tag = _testEmptyMessageFieldTags[field_ordinal];
  10425. else {
  10426. if (unknownFields == null) {
  10427. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10428. }
  10429. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  10430. continue;
  10431. }
  10432. }
  10433. switch (tag) {
  10434. case 0: {
  10435. throw pb::InvalidProtocolBufferException.InvalidTag();
  10436. }
  10437. default: {
  10438. if (pb::WireFormat.IsEndGroupTag(tag)) {
  10439. if (unknownFields != null) {
  10440. this.UnknownFields = unknownFields.Build();
  10441. }
  10442. return this;
  10443. }
  10444. if (unknownFields == null) {
  10445. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10446. }
  10447. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  10448. break;
  10449. }
  10450. }
  10451. }
  10452. if (unknownFields != null) {
  10453. this.UnknownFields = unknownFields.Build();
  10454. }
  10455. return this;
  10456. }
  10457. }
  10458. static TestEmptyMessage() {
  10459. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  10460. }
  10461. }
  10462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10463. public sealed partial class TestEmptyMessageWithExtensions : pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> {
  10464. private TestEmptyMessageWithExtensions() { }
  10465. private static readonly TestEmptyMessageWithExtensions defaultInstance = new TestEmptyMessageWithExtensions().MakeReadOnly();
  10466. private static readonly string[] _testEmptyMessageWithExtensionsFieldNames = new string[] { };
  10467. private static readonly uint[] _testEmptyMessageWithExtensionsFieldTags = new uint[] { };
  10468. public static TestEmptyMessageWithExtensions DefaultInstance {
  10469. get { return defaultInstance; }
  10470. }
  10471. public override TestEmptyMessageWithExtensions DefaultInstanceForType {
  10472. get { return DefaultInstance; }
  10473. }
  10474. protected override TestEmptyMessageWithExtensions ThisMessage {
  10475. get { return this; }
  10476. }
  10477. public static pbd::MessageDescriptor Descriptor {
  10478. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor; }
  10479. }
  10480. protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> InternalFieldAccessors {
  10481. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable; }
  10482. }
  10483. public override bool IsInitialized {
  10484. get {
  10485. if (!ExtensionsAreInitialized) return false;
  10486. return true;
  10487. }
  10488. }
  10489. public override void WriteTo(pb::ICodedOutputStream output) {
  10490. CalcSerializedSize();
  10491. string[] field_names = _testEmptyMessageWithExtensionsFieldNames;
  10492. pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  10493. extensionWriter.WriteUntil(536870912, output);
  10494. UnknownFields.WriteTo(output);
  10495. }
  10496. private int memoizedSerializedSize = -1;
  10497. public override int SerializedSize {
  10498. get {
  10499. int size = memoizedSerializedSize;
  10500. if (size != -1) return size;
  10501. return CalcSerializedSize();
  10502. }
  10503. }
  10504. private int CalcSerializedSize() {
  10505. int size = memoizedSerializedSize;
  10506. if (size != -1) return size;
  10507. size = 0;
  10508. size += ExtensionsSerializedSize;
  10509. size += UnknownFields.SerializedSize;
  10510. memoizedSerializedSize = size;
  10511. return size;
  10512. }
  10513. public static TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data) {
  10514. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10515. }
  10516. public static TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  10517. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  10518. }
  10519. public static TestEmptyMessageWithExtensions ParseFrom(byte[] data) {
  10520. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10521. }
  10522. public static TestEmptyMessageWithExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  10523. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  10524. }
  10525. public static TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input) {
  10526. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10527. }
  10528. public static TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  10529. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  10530. }
  10531. public static TestEmptyMessageWithExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
  10532. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  10533. }
  10534. public static TestEmptyMessageWithExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  10535. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  10536. }
  10537. public static TestEmptyMessageWithExtensions ParseFrom(pb::ICodedInputStream input) {
  10538. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10539. }
  10540. public static TestEmptyMessageWithExtensions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10541. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  10542. }
  10543. private TestEmptyMessageWithExtensions MakeReadOnly() {
  10544. return this;
  10545. }
  10546. public static Builder CreateBuilder() { return new Builder(); }
  10547. public override Builder ToBuilder() { return CreateBuilder(this); }
  10548. public override Builder CreateBuilderForType() { return new Builder(); }
  10549. public static Builder CreateBuilder(TestEmptyMessageWithExtensions prototype) {
  10550. return new Builder(prototype);
  10551. }
  10552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10553. public sealed partial class Builder : pb::ExtendableBuilder<TestEmptyMessageWithExtensions, Builder> {
  10554. protected override Builder ThisBuilder {
  10555. get { return this; }
  10556. }
  10557. public Builder() {
  10558. result = DefaultInstance;
  10559. resultIsReadOnly = true;
  10560. }
  10561. internal Builder(TestEmptyMessageWithExtensions cloneFrom) {
  10562. result = cloneFrom;
  10563. resultIsReadOnly = true;
  10564. }
  10565. private bool resultIsReadOnly;
  10566. private TestEmptyMessageWithExtensions result;
  10567. private TestEmptyMessageWithExtensions PrepareBuilder() {
  10568. if (resultIsReadOnly) {
  10569. TestEmptyMessageWithExtensions original = result;
  10570. result = new TestEmptyMessageWithExtensions();
  10571. resultIsReadOnly = false;
  10572. MergeFrom(original);
  10573. }
  10574. return result;
  10575. }
  10576. public override bool IsInitialized {
  10577. get { return result.IsInitialized; }
  10578. }
  10579. protected override TestEmptyMessageWithExtensions MessageBeingBuilt {
  10580. get { return PrepareBuilder(); }
  10581. }
  10582. public override Builder Clear() {
  10583. result = DefaultInstance;
  10584. resultIsReadOnly = true;
  10585. return this;
  10586. }
  10587. public override Builder Clone() {
  10588. if (resultIsReadOnly) {
  10589. return new Builder(result);
  10590. } else {
  10591. return new Builder().MergeFrom(result);
  10592. }
  10593. }
  10594. public override pbd::MessageDescriptor DescriptorForType {
  10595. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Descriptor; }
  10596. }
  10597. public override TestEmptyMessageWithExtensions DefaultInstanceForType {
  10598. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.DefaultInstance; }
  10599. }
  10600. public override TestEmptyMessageWithExtensions BuildPartial() {
  10601. if (resultIsReadOnly) {
  10602. return result;
  10603. }
  10604. resultIsReadOnly = true;
  10605. return result.MakeReadOnly();
  10606. }
  10607. public override Builder MergeFrom(pb::IMessage other) {
  10608. if (other is TestEmptyMessageWithExtensions) {
  10609. return MergeFrom((TestEmptyMessageWithExtensions) other);
  10610. } else {
  10611. base.MergeFrom(other);
  10612. return this;
  10613. }
  10614. }
  10615. public override Builder MergeFrom(TestEmptyMessageWithExtensions other) {
  10616. if (other == global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.DefaultInstance) return this;
  10617. PrepareBuilder();
  10618. this.MergeExtensionFields(other);
  10619. this.MergeUnknownFields(other.UnknownFields);
  10620. return this;
  10621. }
  10622. public override Builder MergeFrom(pb::ICodedInputStream input) {
  10623. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  10624. }
  10625. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10626. PrepareBuilder();
  10627. pb::UnknownFieldSet.Builder unknownFields = null;
  10628. uint tag;
  10629. string field_name;
  10630. while (input.ReadTag(out tag, out field_name)) {
  10631. if(tag == 0 && field_name != null) {
  10632. int field_ordinal = global::System.Array.BinarySearch(_testEmptyMessageWithExtensionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  10633. if(field_ordinal >= 0)
  10634. tag = _testEmptyMessageWithExtensionsFieldTags[field_ordinal];
  10635. else {
  10636. if (unknownFields == null) {
  10637. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10638. }
  10639. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  10640. continue;
  10641. }
  10642. }
  10643. switch (tag) {
  10644. case 0: {
  10645. throw pb::InvalidProtocolBufferException.InvalidTag();
  10646. }
  10647. default: {
  10648. if (pb::WireFormat.IsEndGroupTag(tag)) {
  10649. if (unknownFields != null) {
  10650. this.UnknownFields = unknownFields.Build();
  10651. }
  10652. return this;
  10653. }
  10654. if (unknownFields == null) {
  10655. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10656. }
  10657. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  10658. break;
  10659. }
  10660. }
  10661. }
  10662. if (unknownFields != null) {
  10663. this.UnknownFields = unknownFields.Build();
  10664. }
  10665. return this;
  10666. }
  10667. }
  10668. static TestEmptyMessageWithExtensions() {
  10669. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  10670. }
  10671. }
  10672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10673. public sealed partial class TestMultipleExtensionRanges : pb::ExtendableMessage<TestMultipleExtensionRanges, TestMultipleExtensionRanges.Builder> {
  10674. private TestMultipleExtensionRanges() { }
  10675. private static readonly TestMultipleExtensionRanges defaultInstance = new TestMultipleExtensionRanges().MakeReadOnly();
  10676. private static readonly string[] _testMultipleExtensionRangesFieldNames = new string[] { };
  10677. private static readonly uint[] _testMultipleExtensionRangesFieldTags = new uint[] { };
  10678. public static TestMultipleExtensionRanges DefaultInstance {
  10679. get { return defaultInstance; }
  10680. }
  10681. public override TestMultipleExtensionRanges DefaultInstanceForType {
  10682. get { return DefaultInstance; }
  10683. }
  10684. protected override TestMultipleExtensionRanges ThisMessage {
  10685. get { return this; }
  10686. }
  10687. public static pbd::MessageDescriptor Descriptor {
  10688. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestMultipleExtensionRanges__Descriptor; }
  10689. }
  10690. protected override pb::FieldAccess.FieldAccessorTable<TestMultipleExtensionRanges, TestMultipleExtensionRanges.Builder> InternalFieldAccessors {
  10691. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestMultipleExtensionRanges__FieldAccessorTable; }
  10692. }
  10693. public override bool IsInitialized {
  10694. get {
  10695. if (!ExtensionsAreInitialized) return false;
  10696. return true;
  10697. }
  10698. }
  10699. public override void WriteTo(pb::ICodedOutputStream output) {
  10700. CalcSerializedSize();
  10701. string[] field_names = _testMultipleExtensionRangesFieldNames;
  10702. pb::ExtendableMessage<TestMultipleExtensionRanges, TestMultipleExtensionRanges.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  10703. extensionWriter.WriteUntil(43, output);
  10704. extensionWriter.WriteUntil(4244, output);
  10705. extensionWriter.WriteUntil(536870912, output);
  10706. UnknownFields.WriteTo(output);
  10707. }
  10708. private int memoizedSerializedSize = -1;
  10709. public override int SerializedSize {
  10710. get {
  10711. int size = memoizedSerializedSize;
  10712. if (size != -1) return size;
  10713. return CalcSerializedSize();
  10714. }
  10715. }
  10716. private int CalcSerializedSize() {
  10717. int size = memoizedSerializedSize;
  10718. if (size != -1) return size;
  10719. size = 0;
  10720. size += ExtensionsSerializedSize;
  10721. size += UnknownFields.SerializedSize;
  10722. memoizedSerializedSize = size;
  10723. return size;
  10724. }
  10725. public static TestMultipleExtensionRanges ParseFrom(pb::ByteString data) {
  10726. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10727. }
  10728. public static TestMultipleExtensionRanges ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  10729. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  10730. }
  10731. public static TestMultipleExtensionRanges ParseFrom(byte[] data) {
  10732. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10733. }
  10734. public static TestMultipleExtensionRanges ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  10735. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  10736. }
  10737. public static TestMultipleExtensionRanges ParseFrom(global::System.IO.Stream input) {
  10738. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10739. }
  10740. public static TestMultipleExtensionRanges ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  10741. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  10742. }
  10743. public static TestMultipleExtensionRanges ParseDelimitedFrom(global::System.IO.Stream input) {
  10744. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  10745. }
  10746. public static TestMultipleExtensionRanges ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  10747. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  10748. }
  10749. public static TestMultipleExtensionRanges ParseFrom(pb::ICodedInputStream input) {
  10750. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10751. }
  10752. public static TestMultipleExtensionRanges ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10753. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  10754. }
  10755. private TestMultipleExtensionRanges MakeReadOnly() {
  10756. return this;
  10757. }
  10758. public static Builder CreateBuilder() { return new Builder(); }
  10759. public override Builder ToBuilder() { return CreateBuilder(this); }
  10760. public override Builder CreateBuilderForType() { return new Builder(); }
  10761. public static Builder CreateBuilder(TestMultipleExtensionRanges prototype) {
  10762. return new Builder(prototype);
  10763. }
  10764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10765. public sealed partial class Builder : pb::ExtendableBuilder<TestMultipleExtensionRanges, Builder> {
  10766. protected override Builder ThisBuilder {
  10767. get { return this; }
  10768. }
  10769. public Builder() {
  10770. result = DefaultInstance;
  10771. resultIsReadOnly = true;
  10772. }
  10773. internal Builder(TestMultipleExtensionRanges cloneFrom) {
  10774. result = cloneFrom;
  10775. resultIsReadOnly = true;
  10776. }
  10777. private bool resultIsReadOnly;
  10778. private TestMultipleExtensionRanges result;
  10779. private TestMultipleExtensionRanges PrepareBuilder() {
  10780. if (resultIsReadOnly) {
  10781. TestMultipleExtensionRanges original = result;
  10782. result = new TestMultipleExtensionRanges();
  10783. resultIsReadOnly = false;
  10784. MergeFrom(original);
  10785. }
  10786. return result;
  10787. }
  10788. public override bool IsInitialized {
  10789. get { return result.IsInitialized; }
  10790. }
  10791. protected override TestMultipleExtensionRanges MessageBeingBuilt {
  10792. get { return PrepareBuilder(); }
  10793. }
  10794. public override Builder Clear() {
  10795. result = DefaultInstance;
  10796. resultIsReadOnly = true;
  10797. return this;
  10798. }
  10799. public override Builder Clone() {
  10800. if (resultIsReadOnly) {
  10801. return new Builder(result);
  10802. } else {
  10803. return new Builder().MergeFrom(result);
  10804. }
  10805. }
  10806. public override pbd::MessageDescriptor DescriptorForType {
  10807. get { return global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.Descriptor; }
  10808. }
  10809. public override TestMultipleExtensionRanges DefaultInstanceForType {
  10810. get { return global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.DefaultInstance; }
  10811. }
  10812. public override TestMultipleExtensionRanges BuildPartial() {
  10813. if (resultIsReadOnly) {
  10814. return result;
  10815. }
  10816. resultIsReadOnly = true;
  10817. return result.MakeReadOnly();
  10818. }
  10819. public override Builder MergeFrom(pb::IMessage other) {
  10820. if (other is TestMultipleExtensionRanges) {
  10821. return MergeFrom((TestMultipleExtensionRanges) other);
  10822. } else {
  10823. base.MergeFrom(other);
  10824. return this;
  10825. }
  10826. }
  10827. public override Builder MergeFrom(TestMultipleExtensionRanges other) {
  10828. if (other == global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.DefaultInstance) return this;
  10829. PrepareBuilder();
  10830. this.MergeExtensionFields(other);
  10831. this.MergeUnknownFields(other.UnknownFields);
  10832. return this;
  10833. }
  10834. public override Builder MergeFrom(pb::ICodedInputStream input) {
  10835. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  10836. }
  10837. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10838. PrepareBuilder();
  10839. pb::UnknownFieldSet.Builder unknownFields = null;
  10840. uint tag;
  10841. string field_name;
  10842. while (input.ReadTag(out tag, out field_name)) {
  10843. if(tag == 0 && field_name != null) {
  10844. int field_ordinal = global::System.Array.BinarySearch(_testMultipleExtensionRangesFieldNames, field_name, global::System.StringComparer.Ordinal);
  10845. if(field_ordinal >= 0)
  10846. tag = _testMultipleExtensionRangesFieldTags[field_ordinal];
  10847. else {
  10848. if (unknownFields == null) {
  10849. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10850. }
  10851. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  10852. continue;
  10853. }
  10854. }
  10855. switch (tag) {
  10856. case 0: {
  10857. throw pb::InvalidProtocolBufferException.InvalidTag();
  10858. }
  10859. default: {
  10860. if (pb::WireFormat.IsEndGroupTag(tag)) {
  10861. if (unknownFields != null) {
  10862. this.UnknownFields = unknownFields.Build();
  10863. }
  10864. return this;
  10865. }
  10866. if (unknownFields == null) {
  10867. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10868. }
  10869. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  10870. break;
  10871. }
  10872. }
  10873. }
  10874. if (unknownFields != null) {
  10875. this.UnknownFields = unknownFields.Build();
  10876. }
  10877. return this;
  10878. }
  10879. }
  10880. static TestMultipleExtensionRanges() {
  10881. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  10882. }
  10883. }
  10884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10885. public sealed partial class TestReallyLargeTagNumber : pb::GeneratedMessage<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> {
  10886. private TestReallyLargeTagNumber() { }
  10887. private static readonly TestReallyLargeTagNumber defaultInstance = new TestReallyLargeTagNumber().MakeReadOnly();
  10888. private static readonly string[] _testReallyLargeTagNumberFieldNames = new string[] { "a", "bb" };
  10889. private static readonly uint[] _testReallyLargeTagNumberFieldTags = new uint[] { 8, 2147483640 };
  10890. public static TestReallyLargeTagNumber DefaultInstance {
  10891. get { return defaultInstance; }
  10892. }
  10893. public override TestReallyLargeTagNumber DefaultInstanceForType {
  10894. get { return DefaultInstance; }
  10895. }
  10896. protected override TestReallyLargeTagNumber ThisMessage {
  10897. get { return this; }
  10898. }
  10899. public static pbd::MessageDescriptor Descriptor {
  10900. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor; }
  10901. }
  10902. protected override pb::FieldAccess.FieldAccessorTable<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> InternalFieldAccessors {
  10903. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; }
  10904. }
  10905. public const int AFieldNumber = 1;
  10906. private bool hasA;
  10907. private int a_;
  10908. public bool HasA {
  10909. get { return hasA; }
  10910. }
  10911. public int A {
  10912. get { return a_; }
  10913. }
  10914. public const int BbFieldNumber = 268435455;
  10915. private bool hasBb;
  10916. private int bb_;
  10917. public bool HasBb {
  10918. get { return hasBb; }
  10919. }
  10920. public int Bb {
  10921. get { return bb_; }
  10922. }
  10923. public override bool IsInitialized {
  10924. get {
  10925. return true;
  10926. }
  10927. }
  10928. public override void WriteTo(pb::ICodedOutputStream output) {
  10929. CalcSerializedSize();
  10930. string[] field_names = _testReallyLargeTagNumberFieldNames;
  10931. if (hasA) {
  10932. output.WriteInt32(1, field_names[0], A);
  10933. }
  10934. if (hasBb) {
  10935. output.WriteInt32(268435455, field_names[1], Bb);
  10936. }
  10937. UnknownFields.WriteTo(output);
  10938. }
  10939. private int memoizedSerializedSize = -1;
  10940. public override int SerializedSize {
  10941. get {
  10942. int size = memoizedSerializedSize;
  10943. if (size != -1) return size;
  10944. return CalcSerializedSize();
  10945. }
  10946. }
  10947. private int CalcSerializedSize() {
  10948. int size = memoizedSerializedSize;
  10949. if (size != -1) return size;
  10950. size = 0;
  10951. if (hasA) {
  10952. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  10953. }
  10954. if (hasBb) {
  10955. size += pb::CodedOutputStream.ComputeInt32Size(268435455, Bb);
  10956. }
  10957. size += UnknownFields.SerializedSize;
  10958. memoizedSerializedSize = size;
  10959. return size;
  10960. }
  10961. public static TestReallyLargeTagNumber ParseFrom(pb::ByteString data) {
  10962. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10963. }
  10964. public static TestReallyLargeTagNumber ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  10965. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  10966. }
  10967. public static TestReallyLargeTagNumber ParseFrom(byte[] data) {
  10968. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10969. }
  10970. public static TestReallyLargeTagNumber ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  10971. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  10972. }
  10973. public static TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input) {
  10974. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10975. }
  10976. public static TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  10977. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  10978. }
  10979. public static TestReallyLargeTagNumber ParseDelimitedFrom(global::System.IO.Stream input) {
  10980. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  10981. }
  10982. public static TestReallyLargeTagNumber ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  10983. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  10984. }
  10985. public static TestReallyLargeTagNumber ParseFrom(pb::ICodedInputStream input) {
  10986. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10987. }
  10988. public static TestReallyLargeTagNumber ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10989. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  10990. }
  10991. private TestReallyLargeTagNumber MakeReadOnly() {
  10992. return this;
  10993. }
  10994. public static Builder CreateBuilder() { return new Builder(); }
  10995. public override Builder ToBuilder() { return CreateBuilder(this); }
  10996. public override Builder CreateBuilderForType() { return new Builder(); }
  10997. public static Builder CreateBuilder(TestReallyLargeTagNumber prototype) {
  10998. return new Builder(prototype);
  10999. }
  11000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11001. public sealed partial class Builder : pb::GeneratedBuilder<TestReallyLargeTagNumber, Builder> {
  11002. protected override Builder ThisBuilder {
  11003. get { return this; }
  11004. }
  11005. public Builder() {
  11006. result = DefaultInstance;
  11007. resultIsReadOnly = true;
  11008. }
  11009. internal Builder(TestReallyLargeTagNumber cloneFrom) {
  11010. result = cloneFrom;
  11011. resultIsReadOnly = true;
  11012. }
  11013. private bool resultIsReadOnly;
  11014. private TestReallyLargeTagNumber result;
  11015. private TestReallyLargeTagNumber PrepareBuilder() {
  11016. if (resultIsReadOnly) {
  11017. TestReallyLargeTagNumber original = result;
  11018. result = new TestReallyLargeTagNumber();
  11019. resultIsReadOnly = false;
  11020. MergeFrom(original);
  11021. }
  11022. return result;
  11023. }
  11024. public override bool IsInitialized {
  11025. get { return result.IsInitialized; }
  11026. }
  11027. protected override TestReallyLargeTagNumber MessageBeingBuilt {
  11028. get { return PrepareBuilder(); }
  11029. }
  11030. public override Builder Clear() {
  11031. result = DefaultInstance;
  11032. resultIsReadOnly = true;
  11033. return this;
  11034. }
  11035. public override Builder Clone() {
  11036. if (resultIsReadOnly) {
  11037. return new Builder(result);
  11038. } else {
  11039. return new Builder().MergeFrom(result);
  11040. }
  11041. }
  11042. public override pbd::MessageDescriptor DescriptorForType {
  11043. get { return global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Descriptor; }
  11044. }
  11045. public override TestReallyLargeTagNumber DefaultInstanceForType {
  11046. get { return global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.DefaultInstance; }
  11047. }
  11048. public override TestReallyLargeTagNumber BuildPartial() {
  11049. if (resultIsReadOnly) {
  11050. return result;
  11051. }
  11052. resultIsReadOnly = true;
  11053. return result.MakeReadOnly();
  11054. }
  11055. public override Builder MergeFrom(pb::IMessage other) {
  11056. if (other is TestReallyLargeTagNumber) {
  11057. return MergeFrom((TestReallyLargeTagNumber) other);
  11058. } else {
  11059. base.MergeFrom(other);
  11060. return this;
  11061. }
  11062. }
  11063. public override Builder MergeFrom(TestReallyLargeTagNumber other) {
  11064. if (other == global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.DefaultInstance) return this;
  11065. PrepareBuilder();
  11066. if (other.HasA) {
  11067. A = other.A;
  11068. }
  11069. if (other.HasBb) {
  11070. Bb = other.Bb;
  11071. }
  11072. this.MergeUnknownFields(other.UnknownFields);
  11073. return this;
  11074. }
  11075. public override Builder MergeFrom(pb::ICodedInputStream input) {
  11076. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11077. }
  11078. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11079. PrepareBuilder();
  11080. pb::UnknownFieldSet.Builder unknownFields = null;
  11081. uint tag;
  11082. string field_name;
  11083. while (input.ReadTag(out tag, out field_name)) {
  11084. if(tag == 0 && field_name != null) {
  11085. int field_ordinal = global::System.Array.BinarySearch(_testReallyLargeTagNumberFieldNames, field_name, global::System.StringComparer.Ordinal);
  11086. if(field_ordinal >= 0)
  11087. tag = _testReallyLargeTagNumberFieldTags[field_ordinal];
  11088. else {
  11089. if (unknownFields == null) {
  11090. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11091. }
  11092. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  11093. continue;
  11094. }
  11095. }
  11096. switch (tag) {
  11097. case 0: {
  11098. throw pb::InvalidProtocolBufferException.InvalidTag();
  11099. }
  11100. default: {
  11101. if (pb::WireFormat.IsEndGroupTag(tag)) {
  11102. if (unknownFields != null) {
  11103. this.UnknownFields = unknownFields.Build();
  11104. }
  11105. return this;
  11106. }
  11107. if (unknownFields == null) {
  11108. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11109. }
  11110. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  11111. break;
  11112. }
  11113. case 8: {
  11114. result.hasA = input.ReadInt32(ref result.a_);
  11115. break;
  11116. }
  11117. case 2147483640: {
  11118. result.hasBb = input.ReadInt32(ref result.bb_);
  11119. break;
  11120. }
  11121. }
  11122. }
  11123. if (unknownFields != null) {
  11124. this.UnknownFields = unknownFields.Build();
  11125. }
  11126. return this;
  11127. }
  11128. public bool HasA {
  11129. get { return result.hasA; }
  11130. }
  11131. public int A {
  11132. get { return result.A; }
  11133. set { SetA(value); }
  11134. }
  11135. public Builder SetA(int value) {
  11136. PrepareBuilder();
  11137. result.hasA = true;
  11138. result.a_ = value;
  11139. return this;
  11140. }
  11141. public Builder ClearA() {
  11142. PrepareBuilder();
  11143. result.hasA = false;
  11144. result.a_ = 0;
  11145. return this;
  11146. }
  11147. public bool HasBb {
  11148. get { return result.hasBb; }
  11149. }
  11150. public int Bb {
  11151. get { return result.Bb; }
  11152. set { SetBb(value); }
  11153. }
  11154. public Builder SetBb(int value) {
  11155. PrepareBuilder();
  11156. result.hasBb = true;
  11157. result.bb_ = value;
  11158. return this;
  11159. }
  11160. public Builder ClearBb() {
  11161. PrepareBuilder();
  11162. result.hasBb = false;
  11163. result.bb_ = 0;
  11164. return this;
  11165. }
  11166. }
  11167. static TestReallyLargeTagNumber() {
  11168. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  11169. }
  11170. }
  11171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11172. public sealed partial class TestRecursiveMessage : pb::GeneratedMessage<TestRecursiveMessage, TestRecursiveMessage.Builder> {
  11173. private TestRecursiveMessage() { }
  11174. private static readonly TestRecursiveMessage defaultInstance = new TestRecursiveMessage().MakeReadOnly();
  11175. private static readonly string[] _testRecursiveMessageFieldNames = new string[] { "a", "i" };
  11176. private static readonly uint[] _testRecursiveMessageFieldTags = new uint[] { 10, 16 };
  11177. public static TestRecursiveMessage DefaultInstance {
  11178. get { return defaultInstance; }
  11179. }
  11180. public override TestRecursiveMessage DefaultInstanceForType {
  11181. get { return DefaultInstance; }
  11182. }
  11183. protected override TestRecursiveMessage ThisMessage {
  11184. get { return this; }
  11185. }
  11186. public static pbd::MessageDescriptor Descriptor {
  11187. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor; }
  11188. }
  11189. protected override pb::FieldAccess.FieldAccessorTable<TestRecursiveMessage, TestRecursiveMessage.Builder> InternalFieldAccessors {
  11190. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; }
  11191. }
  11192. public const int AFieldNumber = 1;
  11193. private bool hasA;
  11194. private global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage a_;
  11195. public bool HasA {
  11196. get { return hasA; }
  11197. }
  11198. public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A {
  11199. get { return a_ ?? global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance; }
  11200. }
  11201. public const int IFieldNumber = 2;
  11202. private bool hasI;
  11203. private int i_;
  11204. public bool HasI {
  11205. get { return hasI; }
  11206. }
  11207. public int I {
  11208. get { return i_; }
  11209. }
  11210. public override bool IsInitialized {
  11211. get {
  11212. return true;
  11213. }
  11214. }
  11215. public override void WriteTo(pb::ICodedOutputStream output) {
  11216. CalcSerializedSize();
  11217. string[] field_names = _testRecursiveMessageFieldNames;
  11218. if (hasA) {
  11219. output.WriteMessage(1, field_names[0], A);
  11220. }
  11221. if (hasI) {
  11222. output.WriteInt32(2, field_names[1], I);
  11223. }
  11224. UnknownFields.WriteTo(output);
  11225. }
  11226. private int memoizedSerializedSize = -1;
  11227. public override int SerializedSize {
  11228. get {
  11229. int size = memoizedSerializedSize;
  11230. if (size != -1) return size;
  11231. return CalcSerializedSize();
  11232. }
  11233. }
  11234. private int CalcSerializedSize() {
  11235. int size = memoizedSerializedSize;
  11236. if (size != -1) return size;
  11237. size = 0;
  11238. if (hasA) {
  11239. size += pb::CodedOutputStream.ComputeMessageSize(1, A);
  11240. }
  11241. if (hasI) {
  11242. size += pb::CodedOutputStream.ComputeInt32Size(2, I);
  11243. }
  11244. size += UnknownFields.SerializedSize;
  11245. memoizedSerializedSize = size;
  11246. return size;
  11247. }
  11248. public static TestRecursiveMessage ParseFrom(pb::ByteString data) {
  11249. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11250. }
  11251. public static TestRecursiveMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  11252. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  11253. }
  11254. public static TestRecursiveMessage ParseFrom(byte[] data) {
  11255. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11256. }
  11257. public static TestRecursiveMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  11258. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  11259. }
  11260. public static TestRecursiveMessage ParseFrom(global::System.IO.Stream input) {
  11261. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11262. }
  11263. public static TestRecursiveMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  11264. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  11265. }
  11266. public static TestRecursiveMessage ParseDelimitedFrom(global::System.IO.Stream input) {
  11267. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  11268. }
  11269. public static TestRecursiveMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  11270. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  11271. }
  11272. public static TestRecursiveMessage ParseFrom(pb::ICodedInputStream input) {
  11273. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11274. }
  11275. public static TestRecursiveMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11276. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  11277. }
  11278. private TestRecursiveMessage MakeReadOnly() {
  11279. return this;
  11280. }
  11281. public static Builder CreateBuilder() { return new Builder(); }
  11282. public override Builder ToBuilder() { return CreateBuilder(this); }
  11283. public override Builder CreateBuilderForType() { return new Builder(); }
  11284. public static Builder CreateBuilder(TestRecursiveMessage prototype) {
  11285. return new Builder(prototype);
  11286. }
  11287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11288. public sealed partial class Builder : pb::GeneratedBuilder<TestRecursiveMessage, Builder> {
  11289. protected override Builder ThisBuilder {
  11290. get { return this; }
  11291. }
  11292. public Builder() {
  11293. result = DefaultInstance;
  11294. resultIsReadOnly = true;
  11295. }
  11296. internal Builder(TestRecursiveMessage cloneFrom) {
  11297. result = cloneFrom;
  11298. resultIsReadOnly = true;
  11299. }
  11300. private bool resultIsReadOnly;
  11301. private TestRecursiveMessage result;
  11302. private TestRecursiveMessage PrepareBuilder() {
  11303. if (resultIsReadOnly) {
  11304. TestRecursiveMessage original = result;
  11305. result = new TestRecursiveMessage();
  11306. resultIsReadOnly = false;
  11307. MergeFrom(original);
  11308. }
  11309. return result;
  11310. }
  11311. public override bool IsInitialized {
  11312. get { return result.IsInitialized; }
  11313. }
  11314. protected override TestRecursiveMessage MessageBeingBuilt {
  11315. get { return PrepareBuilder(); }
  11316. }
  11317. public override Builder Clear() {
  11318. result = DefaultInstance;
  11319. resultIsReadOnly = true;
  11320. return this;
  11321. }
  11322. public override Builder Clone() {
  11323. if (resultIsReadOnly) {
  11324. return new Builder(result);
  11325. } else {
  11326. return new Builder().MergeFrom(result);
  11327. }
  11328. }
  11329. public override pbd::MessageDescriptor DescriptorForType {
  11330. get { return global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Descriptor; }
  11331. }
  11332. public override TestRecursiveMessage DefaultInstanceForType {
  11333. get { return global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance; }
  11334. }
  11335. public override TestRecursiveMessage BuildPartial() {
  11336. if (resultIsReadOnly) {
  11337. return result;
  11338. }
  11339. resultIsReadOnly = true;
  11340. return result.MakeReadOnly();
  11341. }
  11342. public override Builder MergeFrom(pb::IMessage other) {
  11343. if (other is TestRecursiveMessage) {
  11344. return MergeFrom((TestRecursiveMessage) other);
  11345. } else {
  11346. base.MergeFrom(other);
  11347. return this;
  11348. }
  11349. }
  11350. public override Builder MergeFrom(TestRecursiveMessage other) {
  11351. if (other == global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) return this;
  11352. PrepareBuilder();
  11353. if (other.HasA) {
  11354. MergeA(other.A);
  11355. }
  11356. if (other.HasI) {
  11357. I = other.I;
  11358. }
  11359. this.MergeUnknownFields(other.UnknownFields);
  11360. return this;
  11361. }
  11362. public override Builder MergeFrom(pb::ICodedInputStream input) {
  11363. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11364. }
  11365. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11366. PrepareBuilder();
  11367. pb::UnknownFieldSet.Builder unknownFields = null;
  11368. uint tag;
  11369. string field_name;
  11370. while (input.ReadTag(out tag, out field_name)) {
  11371. if(tag == 0 && field_name != null) {
  11372. int field_ordinal = global::System.Array.BinarySearch(_testRecursiveMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  11373. if(field_ordinal >= 0)
  11374. tag = _testRecursiveMessageFieldTags[field_ordinal];
  11375. else {
  11376. if (unknownFields == null) {
  11377. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11378. }
  11379. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  11380. continue;
  11381. }
  11382. }
  11383. switch (tag) {
  11384. case 0: {
  11385. throw pb::InvalidProtocolBufferException.InvalidTag();
  11386. }
  11387. default: {
  11388. if (pb::WireFormat.IsEndGroupTag(tag)) {
  11389. if (unknownFields != null) {
  11390. this.UnknownFields = unknownFields.Build();
  11391. }
  11392. return this;
  11393. }
  11394. if (unknownFields == null) {
  11395. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11396. }
  11397. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  11398. break;
  11399. }
  11400. case 10: {
  11401. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder();
  11402. if (result.hasA) {
  11403. subBuilder.MergeFrom(A);
  11404. }
  11405. input.ReadMessage(subBuilder, extensionRegistry);
  11406. A = subBuilder.BuildPartial();
  11407. break;
  11408. }
  11409. case 16: {
  11410. result.hasI = input.ReadInt32(ref result.i_);
  11411. break;
  11412. }
  11413. }
  11414. }
  11415. if (unknownFields != null) {
  11416. this.UnknownFields = unknownFields.Build();
  11417. }
  11418. return this;
  11419. }
  11420. public bool HasA {
  11421. get { return result.hasA; }
  11422. }
  11423. public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A {
  11424. get { return result.A; }
  11425. set { SetA(value); }
  11426. }
  11427. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) {
  11428. pb::ThrowHelper.ThrowIfNull(value, "value");
  11429. PrepareBuilder();
  11430. result.hasA = true;
  11431. result.a_ = value;
  11432. return this;
  11433. }
  11434. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder builderForValue) {
  11435. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  11436. PrepareBuilder();
  11437. result.hasA = true;
  11438. result.a_ = builderForValue.Build();
  11439. return this;
  11440. }
  11441. public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) {
  11442. pb::ThrowHelper.ThrowIfNull(value, "value");
  11443. PrepareBuilder();
  11444. if (result.hasA &&
  11445. result.a_ != global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) {
  11446. result.a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
  11447. } else {
  11448. result.a_ = value;
  11449. }
  11450. result.hasA = true;
  11451. return this;
  11452. }
  11453. public Builder ClearA() {
  11454. PrepareBuilder();
  11455. result.hasA = false;
  11456. result.a_ = null;
  11457. return this;
  11458. }
  11459. public bool HasI {
  11460. get { return result.hasI; }
  11461. }
  11462. public int I {
  11463. get { return result.I; }
  11464. set { SetI(value); }
  11465. }
  11466. public Builder SetI(int value) {
  11467. PrepareBuilder();
  11468. result.hasI = true;
  11469. result.i_ = value;
  11470. return this;
  11471. }
  11472. public Builder ClearI() {
  11473. PrepareBuilder();
  11474. result.hasI = false;
  11475. result.i_ = 0;
  11476. return this;
  11477. }
  11478. }
  11479. static TestRecursiveMessage() {
  11480. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  11481. }
  11482. }
  11483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11484. public sealed partial class TestMutualRecursionA : pb::GeneratedMessage<TestMutualRecursionA, TestMutualRecursionA.Builder> {
  11485. private TestMutualRecursionA() { }
  11486. private static readonly TestMutualRecursionA defaultInstance = new TestMutualRecursionA().MakeReadOnly();
  11487. private static readonly string[] _testMutualRecursionAFieldNames = new string[] { "bb" };
  11488. private static readonly uint[] _testMutualRecursionAFieldTags = new uint[] { 10 };
  11489. public static TestMutualRecursionA DefaultInstance {
  11490. get { return defaultInstance; }
  11491. }
  11492. public override TestMutualRecursionA DefaultInstanceForType {
  11493. get { return DefaultInstance; }
  11494. }
  11495. protected override TestMutualRecursionA ThisMessage {
  11496. get { return this; }
  11497. }
  11498. public static pbd::MessageDescriptor Descriptor {
  11499. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor; }
  11500. }
  11501. protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionA, TestMutualRecursionA.Builder> InternalFieldAccessors {
  11502. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; }
  11503. }
  11504. public const int BbFieldNumber = 1;
  11505. private bool hasBb;
  11506. private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB bb_;
  11507. public bool HasBb {
  11508. get { return hasBb; }
  11509. }
  11510. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb {
  11511. get { return bb_ ?? global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance; }
  11512. }
  11513. public override bool IsInitialized {
  11514. get {
  11515. return true;
  11516. }
  11517. }
  11518. public override void WriteTo(pb::ICodedOutputStream output) {
  11519. CalcSerializedSize();
  11520. string[] field_names = _testMutualRecursionAFieldNames;
  11521. if (hasBb) {
  11522. output.WriteMessage(1, field_names[0], Bb);
  11523. }
  11524. UnknownFields.WriteTo(output);
  11525. }
  11526. private int memoizedSerializedSize = -1;
  11527. public override int SerializedSize {
  11528. get {
  11529. int size = memoizedSerializedSize;
  11530. if (size != -1) return size;
  11531. return CalcSerializedSize();
  11532. }
  11533. }
  11534. private int CalcSerializedSize() {
  11535. int size = memoizedSerializedSize;
  11536. if (size != -1) return size;
  11537. size = 0;
  11538. if (hasBb) {
  11539. size += pb::CodedOutputStream.ComputeMessageSize(1, Bb);
  11540. }
  11541. size += UnknownFields.SerializedSize;
  11542. memoizedSerializedSize = size;
  11543. return size;
  11544. }
  11545. public static TestMutualRecursionA ParseFrom(pb::ByteString data) {
  11546. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11547. }
  11548. public static TestMutualRecursionA ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  11549. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  11550. }
  11551. public static TestMutualRecursionA ParseFrom(byte[] data) {
  11552. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11553. }
  11554. public static TestMutualRecursionA ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  11555. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  11556. }
  11557. public static TestMutualRecursionA ParseFrom(global::System.IO.Stream input) {
  11558. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11559. }
  11560. public static TestMutualRecursionA ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  11561. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  11562. }
  11563. public static TestMutualRecursionA ParseDelimitedFrom(global::System.IO.Stream input) {
  11564. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  11565. }
  11566. public static TestMutualRecursionA ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  11567. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  11568. }
  11569. public static TestMutualRecursionA ParseFrom(pb::ICodedInputStream input) {
  11570. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11571. }
  11572. public static TestMutualRecursionA ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11573. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  11574. }
  11575. private TestMutualRecursionA MakeReadOnly() {
  11576. return this;
  11577. }
  11578. public static Builder CreateBuilder() { return new Builder(); }
  11579. public override Builder ToBuilder() { return CreateBuilder(this); }
  11580. public override Builder CreateBuilderForType() { return new Builder(); }
  11581. public static Builder CreateBuilder(TestMutualRecursionA prototype) {
  11582. return new Builder(prototype);
  11583. }
  11584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11585. public sealed partial class Builder : pb::GeneratedBuilder<TestMutualRecursionA, Builder> {
  11586. protected override Builder ThisBuilder {
  11587. get { return this; }
  11588. }
  11589. public Builder() {
  11590. result = DefaultInstance;
  11591. resultIsReadOnly = true;
  11592. }
  11593. internal Builder(TestMutualRecursionA cloneFrom) {
  11594. result = cloneFrom;
  11595. resultIsReadOnly = true;
  11596. }
  11597. private bool resultIsReadOnly;
  11598. private TestMutualRecursionA result;
  11599. private TestMutualRecursionA PrepareBuilder() {
  11600. if (resultIsReadOnly) {
  11601. TestMutualRecursionA original = result;
  11602. result = new TestMutualRecursionA();
  11603. resultIsReadOnly = false;
  11604. MergeFrom(original);
  11605. }
  11606. return result;
  11607. }
  11608. public override bool IsInitialized {
  11609. get { return result.IsInitialized; }
  11610. }
  11611. protected override TestMutualRecursionA MessageBeingBuilt {
  11612. get { return PrepareBuilder(); }
  11613. }
  11614. public override Builder Clear() {
  11615. result = DefaultInstance;
  11616. resultIsReadOnly = true;
  11617. return this;
  11618. }
  11619. public override Builder Clone() {
  11620. if (resultIsReadOnly) {
  11621. return new Builder(result);
  11622. } else {
  11623. return new Builder().MergeFrom(result);
  11624. }
  11625. }
  11626. public override pbd::MessageDescriptor DescriptorForType {
  11627. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Descriptor; }
  11628. }
  11629. public override TestMutualRecursionA DefaultInstanceForType {
  11630. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance; }
  11631. }
  11632. public override TestMutualRecursionA BuildPartial() {
  11633. if (resultIsReadOnly) {
  11634. return result;
  11635. }
  11636. resultIsReadOnly = true;
  11637. return result.MakeReadOnly();
  11638. }
  11639. public override Builder MergeFrom(pb::IMessage other) {
  11640. if (other is TestMutualRecursionA) {
  11641. return MergeFrom((TestMutualRecursionA) other);
  11642. } else {
  11643. base.MergeFrom(other);
  11644. return this;
  11645. }
  11646. }
  11647. public override Builder MergeFrom(TestMutualRecursionA other) {
  11648. if (other == global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) return this;
  11649. PrepareBuilder();
  11650. if (other.HasBb) {
  11651. MergeBb(other.Bb);
  11652. }
  11653. this.MergeUnknownFields(other.UnknownFields);
  11654. return this;
  11655. }
  11656. public override Builder MergeFrom(pb::ICodedInputStream input) {
  11657. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11658. }
  11659. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11660. PrepareBuilder();
  11661. pb::UnknownFieldSet.Builder unknownFields = null;
  11662. uint tag;
  11663. string field_name;
  11664. while (input.ReadTag(out tag, out field_name)) {
  11665. if(tag == 0 && field_name != null) {
  11666. int field_ordinal = global::System.Array.BinarySearch(_testMutualRecursionAFieldNames, field_name, global::System.StringComparer.Ordinal);
  11667. if(field_ordinal >= 0)
  11668. tag = _testMutualRecursionAFieldTags[field_ordinal];
  11669. else {
  11670. if (unknownFields == null) {
  11671. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11672. }
  11673. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  11674. continue;
  11675. }
  11676. }
  11677. switch (tag) {
  11678. case 0: {
  11679. throw pb::InvalidProtocolBufferException.InvalidTag();
  11680. }
  11681. default: {
  11682. if (pb::WireFormat.IsEndGroupTag(tag)) {
  11683. if (unknownFields != null) {
  11684. this.UnknownFields = unknownFields.Build();
  11685. }
  11686. return this;
  11687. }
  11688. if (unknownFields == null) {
  11689. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11690. }
  11691. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  11692. break;
  11693. }
  11694. case 10: {
  11695. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder();
  11696. if (result.hasBb) {
  11697. subBuilder.MergeFrom(Bb);
  11698. }
  11699. input.ReadMessage(subBuilder, extensionRegistry);
  11700. Bb = subBuilder.BuildPartial();
  11701. break;
  11702. }
  11703. }
  11704. }
  11705. if (unknownFields != null) {
  11706. this.UnknownFields = unknownFields.Build();
  11707. }
  11708. return this;
  11709. }
  11710. public bool HasBb {
  11711. get { return result.hasBb; }
  11712. }
  11713. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb {
  11714. get { return result.Bb; }
  11715. set { SetBb(value); }
  11716. }
  11717. public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) {
  11718. pb::ThrowHelper.ThrowIfNull(value, "value");
  11719. PrepareBuilder();
  11720. result.hasBb = true;
  11721. result.bb_ = value;
  11722. return this;
  11723. }
  11724. public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder builderForValue) {
  11725. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  11726. PrepareBuilder();
  11727. result.hasBb = true;
  11728. result.bb_ = builderForValue.Build();
  11729. return this;
  11730. }
  11731. public Builder MergeBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) {
  11732. pb::ThrowHelper.ThrowIfNull(value, "value");
  11733. PrepareBuilder();
  11734. if (result.hasBb &&
  11735. result.bb_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) {
  11736. result.bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder(result.bb_).MergeFrom(value).BuildPartial();
  11737. } else {
  11738. result.bb_ = value;
  11739. }
  11740. result.hasBb = true;
  11741. return this;
  11742. }
  11743. public Builder ClearBb() {
  11744. PrepareBuilder();
  11745. result.hasBb = false;
  11746. result.bb_ = null;
  11747. return this;
  11748. }
  11749. }
  11750. static TestMutualRecursionA() {
  11751. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  11752. }
  11753. }
  11754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11755. public sealed partial class TestMutualRecursionB : pb::GeneratedMessage<TestMutualRecursionB, TestMutualRecursionB.Builder> {
  11756. private TestMutualRecursionB() { }
  11757. private static readonly TestMutualRecursionB defaultInstance = new TestMutualRecursionB().MakeReadOnly();
  11758. private static readonly string[] _testMutualRecursionBFieldNames = new string[] { "a", "optional_int32" };
  11759. private static readonly uint[] _testMutualRecursionBFieldTags = new uint[] { 10, 16 };
  11760. public static TestMutualRecursionB DefaultInstance {
  11761. get { return defaultInstance; }
  11762. }
  11763. public override TestMutualRecursionB DefaultInstanceForType {
  11764. get { return DefaultInstance; }
  11765. }
  11766. protected override TestMutualRecursionB ThisMessage {
  11767. get { return this; }
  11768. }
  11769. public static pbd::MessageDescriptor Descriptor {
  11770. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor; }
  11771. }
  11772. protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionB, TestMutualRecursionB.Builder> InternalFieldAccessors {
  11773. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; }
  11774. }
  11775. public const int AFieldNumber = 1;
  11776. private bool hasA;
  11777. private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA a_;
  11778. public bool HasA {
  11779. get { return hasA; }
  11780. }
  11781. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A {
  11782. get { return a_ ?? global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance; }
  11783. }
  11784. public const int OptionalInt32FieldNumber = 2;
  11785. private bool hasOptionalInt32;
  11786. private int optionalInt32_;
  11787. public bool HasOptionalInt32 {
  11788. get { return hasOptionalInt32; }
  11789. }
  11790. public int OptionalInt32 {
  11791. get { return optionalInt32_; }
  11792. }
  11793. public override bool IsInitialized {
  11794. get {
  11795. return true;
  11796. }
  11797. }
  11798. public override void WriteTo(pb::ICodedOutputStream output) {
  11799. CalcSerializedSize();
  11800. string[] field_names = _testMutualRecursionBFieldNames;
  11801. if (hasA) {
  11802. output.WriteMessage(1, field_names[0], A);
  11803. }
  11804. if (hasOptionalInt32) {
  11805. output.WriteInt32(2, field_names[1], OptionalInt32);
  11806. }
  11807. UnknownFields.WriteTo(output);
  11808. }
  11809. private int memoizedSerializedSize = -1;
  11810. public override int SerializedSize {
  11811. get {
  11812. int size = memoizedSerializedSize;
  11813. if (size != -1) return size;
  11814. return CalcSerializedSize();
  11815. }
  11816. }
  11817. private int CalcSerializedSize() {
  11818. int size = memoizedSerializedSize;
  11819. if (size != -1) return size;
  11820. size = 0;
  11821. if (hasA) {
  11822. size += pb::CodedOutputStream.ComputeMessageSize(1, A);
  11823. }
  11824. if (hasOptionalInt32) {
  11825. size += pb::CodedOutputStream.ComputeInt32Size(2, OptionalInt32);
  11826. }
  11827. size += UnknownFields.SerializedSize;
  11828. memoizedSerializedSize = size;
  11829. return size;
  11830. }
  11831. public static TestMutualRecursionB ParseFrom(pb::ByteString data) {
  11832. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11833. }
  11834. public static TestMutualRecursionB ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  11835. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  11836. }
  11837. public static TestMutualRecursionB ParseFrom(byte[] data) {
  11838. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11839. }
  11840. public static TestMutualRecursionB ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  11841. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  11842. }
  11843. public static TestMutualRecursionB ParseFrom(global::System.IO.Stream input) {
  11844. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11845. }
  11846. public static TestMutualRecursionB ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  11847. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  11848. }
  11849. public static TestMutualRecursionB ParseDelimitedFrom(global::System.IO.Stream input) {
  11850. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  11851. }
  11852. public static TestMutualRecursionB ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  11853. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  11854. }
  11855. public static TestMutualRecursionB ParseFrom(pb::ICodedInputStream input) {
  11856. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11857. }
  11858. public static TestMutualRecursionB ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11859. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  11860. }
  11861. private TestMutualRecursionB MakeReadOnly() {
  11862. return this;
  11863. }
  11864. public static Builder CreateBuilder() { return new Builder(); }
  11865. public override Builder ToBuilder() { return CreateBuilder(this); }
  11866. public override Builder CreateBuilderForType() { return new Builder(); }
  11867. public static Builder CreateBuilder(TestMutualRecursionB prototype) {
  11868. return new Builder(prototype);
  11869. }
  11870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11871. public sealed partial class Builder : pb::GeneratedBuilder<TestMutualRecursionB, Builder> {
  11872. protected override Builder ThisBuilder {
  11873. get { return this; }
  11874. }
  11875. public Builder() {
  11876. result = DefaultInstance;
  11877. resultIsReadOnly = true;
  11878. }
  11879. internal Builder(TestMutualRecursionB cloneFrom) {
  11880. result = cloneFrom;
  11881. resultIsReadOnly = true;
  11882. }
  11883. private bool resultIsReadOnly;
  11884. private TestMutualRecursionB result;
  11885. private TestMutualRecursionB PrepareBuilder() {
  11886. if (resultIsReadOnly) {
  11887. TestMutualRecursionB original = result;
  11888. result = new TestMutualRecursionB();
  11889. resultIsReadOnly = false;
  11890. MergeFrom(original);
  11891. }
  11892. return result;
  11893. }
  11894. public override bool IsInitialized {
  11895. get { return result.IsInitialized; }
  11896. }
  11897. protected override TestMutualRecursionB MessageBeingBuilt {
  11898. get { return PrepareBuilder(); }
  11899. }
  11900. public override Builder Clear() {
  11901. result = DefaultInstance;
  11902. resultIsReadOnly = true;
  11903. return this;
  11904. }
  11905. public override Builder Clone() {
  11906. if (resultIsReadOnly) {
  11907. return new Builder(result);
  11908. } else {
  11909. return new Builder().MergeFrom(result);
  11910. }
  11911. }
  11912. public override pbd::MessageDescriptor DescriptorForType {
  11913. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Descriptor; }
  11914. }
  11915. public override TestMutualRecursionB DefaultInstanceForType {
  11916. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance; }
  11917. }
  11918. public override TestMutualRecursionB BuildPartial() {
  11919. if (resultIsReadOnly) {
  11920. return result;
  11921. }
  11922. resultIsReadOnly = true;
  11923. return result.MakeReadOnly();
  11924. }
  11925. public override Builder MergeFrom(pb::IMessage other) {
  11926. if (other is TestMutualRecursionB) {
  11927. return MergeFrom((TestMutualRecursionB) other);
  11928. } else {
  11929. base.MergeFrom(other);
  11930. return this;
  11931. }
  11932. }
  11933. public override Builder MergeFrom(TestMutualRecursionB other) {
  11934. if (other == global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) return this;
  11935. PrepareBuilder();
  11936. if (other.HasA) {
  11937. MergeA(other.A);
  11938. }
  11939. if (other.HasOptionalInt32) {
  11940. OptionalInt32 = other.OptionalInt32;
  11941. }
  11942. this.MergeUnknownFields(other.UnknownFields);
  11943. return this;
  11944. }
  11945. public override Builder MergeFrom(pb::ICodedInputStream input) {
  11946. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11947. }
  11948. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11949. PrepareBuilder();
  11950. pb::UnknownFieldSet.Builder unknownFields = null;
  11951. uint tag;
  11952. string field_name;
  11953. while (input.ReadTag(out tag, out field_name)) {
  11954. if(tag == 0 && field_name != null) {
  11955. int field_ordinal = global::System.Array.BinarySearch(_testMutualRecursionBFieldNames, field_name, global::System.StringComparer.Ordinal);
  11956. if(field_ordinal >= 0)
  11957. tag = _testMutualRecursionBFieldTags[field_ordinal];
  11958. else {
  11959. if (unknownFields == null) {
  11960. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11961. }
  11962. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  11963. continue;
  11964. }
  11965. }
  11966. switch (tag) {
  11967. case 0: {
  11968. throw pb::InvalidProtocolBufferException.InvalidTag();
  11969. }
  11970. default: {
  11971. if (pb::WireFormat.IsEndGroupTag(tag)) {
  11972. if (unknownFields != null) {
  11973. this.UnknownFields = unknownFields.Build();
  11974. }
  11975. return this;
  11976. }
  11977. if (unknownFields == null) {
  11978. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11979. }
  11980. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  11981. break;
  11982. }
  11983. case 10: {
  11984. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder();
  11985. if (result.hasA) {
  11986. subBuilder.MergeFrom(A);
  11987. }
  11988. input.ReadMessage(subBuilder, extensionRegistry);
  11989. A = subBuilder.BuildPartial();
  11990. break;
  11991. }
  11992. case 16: {
  11993. result.hasOptionalInt32 = input.ReadInt32(ref result.optionalInt32_);
  11994. break;
  11995. }
  11996. }
  11997. }
  11998. if (unknownFields != null) {
  11999. this.UnknownFields = unknownFields.Build();
  12000. }
  12001. return this;
  12002. }
  12003. public bool HasA {
  12004. get { return result.hasA; }
  12005. }
  12006. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A {
  12007. get { return result.A; }
  12008. set { SetA(value); }
  12009. }
  12010. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) {
  12011. pb::ThrowHelper.ThrowIfNull(value, "value");
  12012. PrepareBuilder();
  12013. result.hasA = true;
  12014. result.a_ = value;
  12015. return this;
  12016. }
  12017. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder builderForValue) {
  12018. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  12019. PrepareBuilder();
  12020. result.hasA = true;
  12021. result.a_ = builderForValue.Build();
  12022. return this;
  12023. }
  12024. public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) {
  12025. pb::ThrowHelper.ThrowIfNull(value, "value");
  12026. PrepareBuilder();
  12027. if (result.hasA &&
  12028. result.a_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) {
  12029. result.a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
  12030. } else {
  12031. result.a_ = value;
  12032. }
  12033. result.hasA = true;
  12034. return this;
  12035. }
  12036. public Builder ClearA() {
  12037. PrepareBuilder();
  12038. result.hasA = false;
  12039. result.a_ = null;
  12040. return this;
  12041. }
  12042. public bool HasOptionalInt32 {
  12043. get { return result.hasOptionalInt32; }
  12044. }
  12045. public int OptionalInt32 {
  12046. get { return result.OptionalInt32; }
  12047. set { SetOptionalInt32(value); }
  12048. }
  12049. public Builder SetOptionalInt32(int value) {
  12050. PrepareBuilder();
  12051. result.hasOptionalInt32 = true;
  12052. result.optionalInt32_ = value;
  12053. return this;
  12054. }
  12055. public Builder ClearOptionalInt32() {
  12056. PrepareBuilder();
  12057. result.hasOptionalInt32 = false;
  12058. result.optionalInt32_ = 0;
  12059. return this;
  12060. }
  12061. }
  12062. static TestMutualRecursionB() {
  12063. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  12064. }
  12065. }
  12066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12067. public sealed partial class TestDupFieldNumber : pb::GeneratedMessage<TestDupFieldNumber, TestDupFieldNumber.Builder> {
  12068. private TestDupFieldNumber() { }
  12069. private static readonly TestDupFieldNumber defaultInstance = new TestDupFieldNumber().MakeReadOnly();
  12070. private static readonly string[] _testDupFieldNumberFieldNames = new string[] { "a", "bar", "foo" };
  12071. private static readonly uint[] _testDupFieldNumberFieldTags = new uint[] { 8, 27, 19 };
  12072. public static TestDupFieldNumber DefaultInstance {
  12073. get { return defaultInstance; }
  12074. }
  12075. public override TestDupFieldNumber DefaultInstanceForType {
  12076. get { return DefaultInstance; }
  12077. }
  12078. protected override TestDupFieldNumber ThisMessage {
  12079. get { return this; }
  12080. }
  12081. public static pbd::MessageDescriptor Descriptor {
  12082. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor; }
  12083. }
  12084. protected override pb::FieldAccess.FieldAccessorTable<TestDupFieldNumber, TestDupFieldNumber.Builder> InternalFieldAccessors {
  12085. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable; }
  12086. }
  12087. #region Nested types
  12088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12089. public static partial class Types {
  12090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12091. public sealed partial class Foo : pb::GeneratedMessage<Foo, Foo.Builder> {
  12092. private Foo() { }
  12093. private static readonly Foo defaultInstance = new Foo().MakeReadOnly();
  12094. private static readonly string[] _fooFieldNames = new string[] { "a" };
  12095. private static readonly uint[] _fooFieldTags = new uint[] { 8 };
  12096. public static Foo DefaultInstance {
  12097. get { return defaultInstance; }
  12098. }
  12099. public override Foo DefaultInstanceForType {
  12100. get { return DefaultInstance; }
  12101. }
  12102. protected override Foo ThisMessage {
  12103. get { return this; }
  12104. }
  12105. public static pbd::MessageDescriptor Descriptor {
  12106. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor; }
  12107. }
  12108. protected override pb::FieldAccess.FieldAccessorTable<Foo, Foo.Builder> InternalFieldAccessors {
  12109. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable; }
  12110. }
  12111. public const int AFieldNumber = 1;
  12112. private bool hasA;
  12113. private int a_;
  12114. public bool HasA {
  12115. get { return hasA; }
  12116. }
  12117. public int A {
  12118. get { return a_; }
  12119. }
  12120. public override bool IsInitialized {
  12121. get {
  12122. return true;
  12123. }
  12124. }
  12125. public override void WriteTo(pb::ICodedOutputStream output) {
  12126. CalcSerializedSize();
  12127. string[] field_names = _fooFieldNames;
  12128. if (hasA) {
  12129. output.WriteInt32(1, field_names[0], A);
  12130. }
  12131. UnknownFields.WriteTo(output);
  12132. }
  12133. private int memoizedSerializedSize = -1;
  12134. public override int SerializedSize {
  12135. get {
  12136. int size = memoizedSerializedSize;
  12137. if (size != -1) return size;
  12138. return CalcSerializedSize();
  12139. }
  12140. }
  12141. private int CalcSerializedSize() {
  12142. int size = memoizedSerializedSize;
  12143. if (size != -1) return size;
  12144. size = 0;
  12145. if (hasA) {
  12146. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  12147. }
  12148. size += UnknownFields.SerializedSize;
  12149. memoizedSerializedSize = size;
  12150. return size;
  12151. }
  12152. public static Foo ParseFrom(pb::ByteString data) {
  12153. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  12154. }
  12155. public static Foo ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  12156. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  12157. }
  12158. public static Foo ParseFrom(byte[] data) {
  12159. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  12160. }
  12161. public static Foo ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  12162. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  12163. }
  12164. public static Foo ParseFrom(global::System.IO.Stream input) {
  12165. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  12166. }
  12167. public static Foo ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  12168. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  12169. }
  12170. public static Foo ParseDelimitedFrom(global::System.IO.Stream input) {
  12171. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  12172. }
  12173. public static Foo ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  12174. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  12175. }
  12176. public static Foo ParseFrom(pb::ICodedInputStream input) {
  12177. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  12178. }
  12179. public static Foo ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  12180. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  12181. }
  12182. private Foo MakeReadOnly() {
  12183. return this;
  12184. }
  12185. public static Builder CreateBuilder() { return new Builder(); }
  12186. public override Builder ToBuilder() { return CreateBuilder(this); }
  12187. public override Builder CreateBuilderForType() { return new Builder(); }
  12188. public static Builder CreateBuilder(Foo prototype) {
  12189. return new Builder(prototype);
  12190. }
  12191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12192. public sealed partial class Builder : pb::GeneratedBuilder<Foo, Builder> {
  12193. protected override Builder ThisBuilder {
  12194. get { return this; }
  12195. }
  12196. public Builder() {
  12197. result = DefaultInstance;
  12198. resultIsReadOnly = true;
  12199. }
  12200. internal Builder(Foo cloneFrom) {
  12201. result = cloneFrom;
  12202. resultIsReadOnly = true;
  12203. }
  12204. private bool resultIsReadOnly;
  12205. private Foo result;
  12206. private Foo PrepareBuilder() {
  12207. if (resultIsReadOnly) {
  12208. Foo original = result;
  12209. result = new Foo();
  12210. resultIsReadOnly = false;
  12211. MergeFrom(original);
  12212. }
  12213. return result;
  12214. }
  12215. public override bool IsInitialized {
  12216. get { return result.IsInitialized; }
  12217. }
  12218. protected override Foo MessageBeingBuilt {
  12219. get { return PrepareBuilder(); }
  12220. }
  12221. public override Builder Clear() {
  12222. result = DefaultInstance;
  12223. resultIsReadOnly = true;
  12224. return this;
  12225. }
  12226. public override Builder Clone() {
  12227. if (resultIsReadOnly) {
  12228. return new Builder(result);
  12229. } else {
  12230. return new Builder().MergeFrom(result);
  12231. }
  12232. }
  12233. public override pbd::MessageDescriptor DescriptorForType {
  12234. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Descriptor; }
  12235. }
  12236. public override Foo DefaultInstanceForType {
  12237. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance; }
  12238. }
  12239. public override Foo BuildPartial() {
  12240. if (resultIsReadOnly) {
  12241. return result;
  12242. }
  12243. resultIsReadOnly = true;
  12244. return result.MakeReadOnly();
  12245. }
  12246. public override Builder MergeFrom(pb::IMessage other) {
  12247. if (other is Foo) {
  12248. return MergeFrom((Foo) other);
  12249. } else {
  12250. base.MergeFrom(other);
  12251. return this;
  12252. }
  12253. }
  12254. public override Builder MergeFrom(Foo other) {
  12255. if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) return this;
  12256. PrepareBuilder();
  12257. if (other.HasA) {
  12258. A = other.A;
  12259. }
  12260. this.MergeUnknownFields(other.UnknownFields);
  12261. return this;
  12262. }
  12263. public override Builder MergeFrom(pb::ICodedInputStream input) {
  12264. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  12265. }
  12266. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  12267. PrepareBuilder();
  12268. pb::UnknownFieldSet.Builder unknownFields = null;
  12269. uint tag;
  12270. string field_name;
  12271. while (input.ReadTag(out tag, out field_name)) {
  12272. if(tag == 0 && field_name != null) {
  12273. int field_ordinal = global::System.Array.BinarySearch(_fooFieldNames, field_name, global::System.StringComparer.Ordinal);
  12274. if(field_ordinal >= 0)
  12275. tag = _fooFieldTags[field_ordinal];
  12276. else {
  12277. if (unknownFields == null) {
  12278. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  12279. }
  12280. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  12281. continue;
  12282. }
  12283. }
  12284. switch (tag) {
  12285. case 0: {
  12286. throw pb::InvalidProtocolBufferException.InvalidTag();
  12287. }
  12288. default: {
  12289. if (pb::WireFormat.IsEndGroupTag(tag)) {
  12290. if (unknownFields != null) {
  12291. this.UnknownFields = unknownFields.Build();
  12292. }
  12293. return this;
  12294. }
  12295. if (unknownFields == null) {
  12296. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  12297. }
  12298. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  12299. break;
  12300. }
  12301. case 8: {
  12302. result.hasA = input.ReadInt32(ref result.a_);
  12303. break;
  12304. }
  12305. }
  12306. }
  12307. if (unknownFields != null) {
  12308. this.UnknownFields = unknownFields.Build();
  12309. }
  12310. return this;
  12311. }
  12312. public bool HasA {
  12313. get { return result.hasA; }
  12314. }
  12315. public int A {
  12316. get { return result.A; }
  12317. set { SetA(value); }
  12318. }
  12319. public Builder SetA(int value) {
  12320. PrepareBuilder();
  12321. result.hasA = true;
  12322. result.a_ = value;
  12323. return this;
  12324. }
  12325. public Builder ClearA() {
  12326. PrepareBuilder();
  12327. result.hasA = false;
  12328. result.a_ = 0;
  12329. return this;
  12330. }
  12331. }
  12332. static Foo() {
  12333. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  12334. }
  12335. }
  12336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12337. public sealed partial class Bar : pb::GeneratedMessage<Bar, Bar.Builder> {
  12338. private Bar() { }
  12339. private static readonly Bar defaultInstance = new Bar().MakeReadOnly();
  12340. private static readonly string[] _barFieldNames = new string[] { "a" };
  12341. private static readonly uint[] _barFieldTags = new uint[] { 8 };
  12342. public static Bar DefaultInstance {
  12343. get { return defaultInstance; }
  12344. }
  12345. public override Bar DefaultInstanceForType {
  12346. get { return DefaultInstance; }
  12347. }
  12348. protected override Bar ThisMessage {
  12349. get { return this; }
  12350. }
  12351. public static pbd::MessageDescriptor Descriptor {
  12352. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor; }
  12353. }
  12354. protected override pb::FieldAccess.FieldAccessorTable<Bar, Bar.Builder> InternalFieldAccessors {
  12355. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable; }
  12356. }
  12357. public const int AFieldNumber = 1;
  12358. private bool hasA;
  12359. private int a_;
  12360. public bool HasA {
  12361. get { return hasA; }
  12362. }
  12363. public int A {
  12364. get { return a_; }
  12365. }
  12366. public override bool IsInitialized {
  12367. get {
  12368. return true;
  12369. }
  12370. }
  12371. public override void WriteTo(pb::ICodedOutputStream output) {
  12372. CalcSerializedSize();
  12373. string[] field_names = _barFieldNames;
  12374. if (hasA) {
  12375. output.WriteInt32(1, field_names[0], A);
  12376. }
  12377. UnknownFields.WriteTo(output);
  12378. }
  12379. private int memoizedSerializedSize = -1;
  12380. public override int SerializedSize {
  12381. get {
  12382. int size = memoizedSerializedSize;
  12383. if (size != -1) return size;
  12384. return CalcSerializedSize();
  12385. }
  12386. }
  12387. private int CalcSerializedSize() {
  12388. int size = memoizedSerializedSize;
  12389. if (size != -1) return size;
  12390. size = 0;
  12391. if (hasA) {
  12392. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  12393. }
  12394. size += UnknownFields.SerializedSize;
  12395. memoizedSerializedSize = size;
  12396. return size;
  12397. }
  12398. public static Bar ParseFrom(pb::ByteString data) {
  12399. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  12400. }
  12401. public static Bar ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  12402. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  12403. }
  12404. public static Bar ParseFrom(byte[] data) {
  12405. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  12406. }
  12407. public static Bar ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  12408. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  12409. }
  12410. public static Bar ParseFrom(global::System.IO.Stream input) {
  12411. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  12412. }
  12413. public static Bar ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  12414. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  12415. }
  12416. public static Bar ParseDelimitedFrom(global::System.IO.Stream input) {
  12417. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  12418. }
  12419. public static Bar ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  12420. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  12421. }
  12422. public static Bar ParseFrom(pb::ICodedInputStream input) {
  12423. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  12424. }
  12425. public static Bar ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  12426. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  12427. }
  12428. private Bar MakeReadOnly() {
  12429. return this;
  12430. }
  12431. public static Builder CreateBuilder() { return new Builder(); }
  12432. public override Builder ToBuilder() { return CreateBuilder(this); }
  12433. public override Builder CreateBuilderForType() { return new Builder(); }
  12434. public static Builder CreateBuilder(Bar prototype) {
  12435. return new Builder(prototype);
  12436. }
  12437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12438. public sealed partial class Builder : pb::GeneratedBuilder<Bar, Builder> {
  12439. protected override Builder ThisBuilder {
  12440. get { return this; }
  12441. }
  12442. public Builder() {
  12443. result = DefaultInstance;
  12444. resultIsReadOnly = true;
  12445. }
  12446. internal Builder(Bar cloneFrom) {
  12447. result = cloneFrom;
  12448. resultIsReadOnly = true;
  12449. }
  12450. private bool resultIsReadOnly;
  12451. private Bar result;
  12452. private Bar PrepareBuilder() {
  12453. if (resultIsReadOnly) {
  12454. Bar original = result;
  12455. result = new Bar();
  12456. resultIsReadOnly = false;
  12457. MergeFrom(original);
  12458. }
  12459. return result;
  12460. }
  12461. public override bool IsInitialized {
  12462. get { return result.IsInitialized; }
  12463. }
  12464. protected override Bar MessageBeingBuilt {
  12465. get { return PrepareBuilder(); }
  12466. }
  12467. public override Builder Clear() {
  12468. result = DefaultInstance;
  12469. resultIsReadOnly = true;
  12470. return this;
  12471. }
  12472. public override Builder Clone() {
  12473. if (resultIsReadOnly) {
  12474. return new Builder(result);
  12475. } else {
  12476. return new Builder().MergeFrom(result);
  12477. }
  12478. }
  12479. public override pbd::MessageDescriptor DescriptorForType {
  12480. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Descriptor; }
  12481. }
  12482. public override Bar DefaultInstanceForType {
  12483. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance; }
  12484. }
  12485. public override Bar BuildPartial() {
  12486. if (resultIsReadOnly) {
  12487. return result;
  12488. }
  12489. resultIsReadOnly = true;
  12490. return result.MakeReadOnly();
  12491. }
  12492. public override Builder MergeFrom(pb::IMessage other) {
  12493. if (other is Bar) {
  12494. return MergeFrom((Bar) other);
  12495. } else {
  12496. base.MergeFrom(other);
  12497. return this;
  12498. }
  12499. }
  12500. public override Builder MergeFrom(Bar other) {
  12501. if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) return this;
  12502. PrepareBuilder();
  12503. if (other.HasA) {
  12504. A = other.A;
  12505. }
  12506. this.MergeUnknownFields(other.UnknownFields);
  12507. return this;
  12508. }
  12509. public override Builder MergeFrom(pb::ICodedInputStream input) {
  12510. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  12511. }
  12512. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  12513. PrepareBuilder();
  12514. pb::UnknownFieldSet.Builder unknownFields = null;
  12515. uint tag;
  12516. string field_name;
  12517. while (input.ReadTag(out tag, out field_name)) {
  12518. if(tag == 0 && field_name != null) {
  12519. int field_ordinal = global::System.Array.BinarySearch(_barFieldNames, field_name, global::System.StringComparer.Ordinal);
  12520. if(field_ordinal >= 0)
  12521. tag = _barFieldTags[field_ordinal];
  12522. else {
  12523. if (unknownFields == null) {
  12524. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  12525. }
  12526. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  12527. continue;
  12528. }
  12529. }
  12530. switch (tag) {
  12531. case 0: {
  12532. throw pb::InvalidProtocolBufferException.InvalidTag();
  12533. }
  12534. default: {
  12535. if (pb::WireFormat.IsEndGroupTag(tag)) {
  12536. if (unknownFields != null) {
  12537. this.UnknownFields = unknownFields.Build();
  12538. }
  12539. return this;
  12540. }
  12541. if (unknownFields == null) {
  12542. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  12543. }
  12544. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  12545. break;
  12546. }
  12547. case 8: {
  12548. result.hasA = input.ReadInt32(ref result.a_);
  12549. break;
  12550. }
  12551. }
  12552. }
  12553. if (unknownFields != null) {
  12554. this.UnknownFields = unknownFields.Build();
  12555. }
  12556. return this;
  12557. }
  12558. public bool HasA {
  12559. get { return result.hasA; }
  12560. }
  12561. public int A {
  12562. get { return result.A; }
  12563. set { SetA(value); }
  12564. }
  12565. public Builder SetA(int value) {
  12566. PrepareBuilder();
  12567. result.hasA = true;
  12568. result.a_ = value;
  12569. return this;
  12570. }
  12571. public Builder ClearA() {
  12572. PrepareBuilder();
  12573. result.hasA = false;
  12574. result.a_ = 0;
  12575. return this;
  12576. }
  12577. }
  12578. static Bar() {
  12579. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  12580. }
  12581. }
  12582. }
  12583. #endregion
  12584. public const int AFieldNumber = 1;
  12585. private bool hasA;
  12586. private int a_;
  12587. public bool HasA {
  12588. get { return hasA; }
  12589. }
  12590. public int A {
  12591. get { return a_; }
  12592. }
  12593. public const int FooFieldNumber = 2;
  12594. private bool hasFoo;
  12595. private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo foo_;
  12596. public bool HasFoo {
  12597. get { return hasFoo; }
  12598. }
  12599. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo {
  12600. get { return foo_ ?? global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance; }
  12601. }
  12602. public const int BarFieldNumber = 3;
  12603. private bool hasBar;
  12604. private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar bar_;
  12605. public bool HasBar {
  12606. get { return hasBar; }
  12607. }
  12608. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar {
  12609. get { return bar_ ?? global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance; }
  12610. }
  12611. public override bool IsInitialized {
  12612. get {
  12613. return true;
  12614. }
  12615. }
  12616. public override void WriteTo(pb::ICodedOutputStream output) {
  12617. CalcSerializedSize();
  12618. string[] field_names = _testDupFieldNumberFieldNames;
  12619. if (hasA) {
  12620. output.WriteInt32(1, field_names[0], A);
  12621. }
  12622. if (hasFoo) {
  12623. output.WriteGroup(2, field_names[2], Foo);
  12624. }
  12625. if (hasBar) {
  12626. output.WriteGroup(3, field_names[1], Bar);
  12627. }
  12628. UnknownFields.WriteTo(output);
  12629. }
  12630. private int memoizedSerializedSize = -1;
  12631. public override int SerializedSize {
  12632. get {
  12633. int size = memoizedSerializedSize;
  12634. if (size != -1) return size;
  12635. return CalcSerializedSize();
  12636. }
  12637. }
  12638. private int CalcSerializedSize() {
  12639. int size = memoizedSerializedSize;
  12640. if (size != -1) return size;
  12641. size = 0;
  12642. if (hasA) {
  12643. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  12644. }
  12645. if (hasFoo) {
  12646. size += pb::CodedOutputStream.ComputeGroupSize(2, Foo);
  12647. }
  12648. if (hasBar) {
  12649. size += pb::CodedOutputStream.ComputeGroupSize(3, Bar);
  12650. }
  12651. size += UnknownFields.SerializedSize;
  12652. memoizedSerializedSize = size;
  12653. return size;
  12654. }
  12655. public static TestDupFieldNumber ParseFrom(pb::ByteString data) {
  12656. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  12657. }
  12658. public static TestDupFieldNumber ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  12659. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  12660. }
  12661. public static TestDupFieldNumber ParseFrom(byte[] data) {
  12662. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  12663. }
  12664. public static TestDupFieldNumber ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  12665. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  12666. }
  12667. public static TestDupFieldNumber ParseFrom(global::System.IO.Stream input) {
  12668. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  12669. }
  12670. public static TestDupFieldNumber ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  12671. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  12672. }
  12673. public static TestDupFieldNumber ParseDelimitedFrom(global::System.IO.Stream input) {
  12674. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  12675. }
  12676. public static TestDupFieldNumber ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  12677. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  12678. }
  12679. public static TestDupFieldNumber ParseFrom(pb::ICodedInputStream input) {
  12680. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  12681. }
  12682. public static TestDupFieldNumber ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  12683. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  12684. }
  12685. private TestDupFieldNumber MakeReadOnly() {
  12686. return this;
  12687. }
  12688. public static Builder CreateBuilder() { return new Builder(); }
  12689. public override Builder ToBuilder() { return CreateBuilder(this); }
  12690. public override Builder CreateBuilderForType() { return new Builder(); }
  12691. public static Builder CreateBuilder(TestDupFieldNumber prototype) {
  12692. return new Builder(prototype);
  12693. }
  12694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12695. public sealed partial class Builder : pb::GeneratedBuilder<TestDupFieldNumber, Builder> {
  12696. protected override Builder ThisBuilder {
  12697. get { return this; }
  12698. }
  12699. public Builder() {
  12700. result = DefaultInstance;
  12701. resultIsReadOnly = true;
  12702. }
  12703. internal Builder(TestDupFieldNumber cloneFrom) {
  12704. result = cloneFrom;
  12705. resultIsReadOnly = true;
  12706. }
  12707. private bool resultIsReadOnly;
  12708. private TestDupFieldNumber result;
  12709. private TestDupFieldNumber PrepareBuilder() {
  12710. if (resultIsReadOnly) {
  12711. TestDupFieldNumber original = result;
  12712. result = new TestDupFieldNumber();
  12713. resultIsReadOnly = false;
  12714. MergeFrom(original);
  12715. }
  12716. return result;
  12717. }
  12718. public override bool IsInitialized {
  12719. get { return result.IsInitialized; }
  12720. }
  12721. protected override TestDupFieldNumber MessageBeingBuilt {
  12722. get { return PrepareBuilder(); }
  12723. }
  12724. public override Builder Clear() {
  12725. result = DefaultInstance;
  12726. resultIsReadOnly = true;
  12727. return this;
  12728. }
  12729. public override Builder Clone() {
  12730. if (resultIsReadOnly) {
  12731. return new Builder(result);
  12732. } else {
  12733. return new Builder().MergeFrom(result);
  12734. }
  12735. }
  12736. public override pbd::MessageDescriptor DescriptorForType {
  12737. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Descriptor; }
  12738. }
  12739. public override TestDupFieldNumber DefaultInstanceForType {
  12740. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.DefaultInstance; }
  12741. }
  12742. public override TestDupFieldNumber BuildPartial() {
  12743. if (resultIsReadOnly) {
  12744. return result;
  12745. }
  12746. resultIsReadOnly = true;
  12747. return result.MakeReadOnly();
  12748. }
  12749. public override Builder MergeFrom(pb::IMessage other) {
  12750. if (other is TestDupFieldNumber) {
  12751. return MergeFrom((TestDupFieldNumber) other);
  12752. } else {
  12753. base.MergeFrom(other);
  12754. return this;
  12755. }
  12756. }
  12757. public override Builder MergeFrom(TestDupFieldNumber other) {
  12758. if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.DefaultInstance) return this;
  12759. PrepareBuilder();
  12760. if (other.HasA) {
  12761. A = other.A;
  12762. }
  12763. if (other.HasFoo) {
  12764. MergeFoo(other.Foo);
  12765. }
  12766. if (other.HasBar) {
  12767. MergeBar(other.Bar);
  12768. }
  12769. this.MergeUnknownFields(other.UnknownFields);
  12770. return this;
  12771. }
  12772. public override Builder MergeFrom(pb::ICodedInputStream input) {
  12773. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  12774. }
  12775. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  12776. PrepareBuilder();
  12777. pb::UnknownFieldSet.Builder unknownFields = null;
  12778. uint tag;
  12779. string field_name;
  12780. while (input.ReadTag(out tag, out field_name)) {
  12781. if(tag == 0 && field_name != null) {
  12782. int field_ordinal = global::System.Array.BinarySearch(_testDupFieldNumberFieldNames, field_name, global::System.StringComparer.Ordinal);
  12783. if(field_ordinal >= 0)
  12784. tag = _testDupFieldNumberFieldTags[field_ordinal];
  12785. else {
  12786. if (unknownFields == null) {
  12787. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  12788. }
  12789. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  12790. continue;
  12791. }
  12792. }
  12793. switch (tag) {
  12794. case 0: {
  12795. throw pb::InvalidProtocolBufferException.InvalidTag();
  12796. }
  12797. default: {
  12798. if (pb::WireFormat.IsEndGroupTag(tag)) {
  12799. if (unknownFields != null) {
  12800. this.UnknownFields = unknownFields.Build();
  12801. }
  12802. return this;
  12803. }
  12804. if (unknownFields == null) {
  12805. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  12806. }
  12807. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  12808. break;
  12809. }
  12810. case 8: {
  12811. result.hasA = input.ReadInt32(ref result.a_);
  12812. break;
  12813. }
  12814. case 19: {
  12815. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder();
  12816. if (result.hasFoo) {
  12817. subBuilder.MergeFrom(Foo);
  12818. }
  12819. input.ReadGroup(2, subBuilder, extensionRegistry);
  12820. Foo = subBuilder.BuildPartial();
  12821. break;
  12822. }
  12823. case 27: {
  12824. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder();
  12825. if (result.hasBar) {
  12826. subBuilder.MergeFrom(Bar);
  12827. }
  12828. input.ReadGroup(3, subBuilder, extensionRegistry);
  12829. Bar = subBuilder.BuildPartial();
  12830. break;
  12831. }
  12832. }
  12833. }
  12834. if (unknownFields != null) {
  12835. this.UnknownFields = unknownFields.Build();
  12836. }
  12837. return this;
  12838. }
  12839. public bool HasA {
  12840. get { return result.hasA; }
  12841. }
  12842. public int A {
  12843. get { return result.A; }
  12844. set { SetA(value); }
  12845. }
  12846. public Builder SetA(int value) {
  12847. PrepareBuilder();
  12848. result.hasA = true;
  12849. result.a_ = value;
  12850. return this;
  12851. }
  12852. public Builder ClearA() {
  12853. PrepareBuilder();
  12854. result.hasA = false;
  12855. result.a_ = 0;
  12856. return this;
  12857. }
  12858. public bool HasFoo {
  12859. get { return result.hasFoo; }
  12860. }
  12861. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo {
  12862. get { return result.Foo; }
  12863. set { SetFoo(value); }
  12864. }
  12865. public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) {
  12866. pb::ThrowHelper.ThrowIfNull(value, "value");
  12867. PrepareBuilder();
  12868. result.hasFoo = true;
  12869. result.foo_ = value;
  12870. return this;
  12871. }
  12872. public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder builderForValue) {
  12873. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  12874. PrepareBuilder();
  12875. result.hasFoo = true;
  12876. result.foo_ = builderForValue.Build();
  12877. return this;
  12878. }
  12879. public Builder MergeFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) {
  12880. pb::ThrowHelper.ThrowIfNull(value, "value");
  12881. PrepareBuilder();
  12882. if (result.hasFoo &&
  12883. result.foo_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) {
  12884. result.foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder(result.foo_).MergeFrom(value).BuildPartial();
  12885. } else {
  12886. result.foo_ = value;
  12887. }
  12888. result.hasFoo = true;
  12889. return this;
  12890. }
  12891. public Builder ClearFoo() {
  12892. PrepareBuilder();
  12893. result.hasFoo = false;
  12894. result.foo_ = null;
  12895. return this;
  12896. }
  12897. public bool HasBar {
  12898. get { return result.hasBar; }
  12899. }
  12900. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar {
  12901. get { return result.Bar; }
  12902. set { SetBar(value); }
  12903. }
  12904. public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) {
  12905. pb::ThrowHelper.ThrowIfNull(value, "value");
  12906. PrepareBuilder();
  12907. result.hasBar = true;
  12908. result.bar_ = value;
  12909. return this;
  12910. }
  12911. public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder builderForValue) {
  12912. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  12913. PrepareBuilder();
  12914. result.hasBar = true;
  12915. result.bar_ = builderForValue.Build();
  12916. return this;
  12917. }
  12918. public Builder MergeBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) {
  12919. pb::ThrowHelper.ThrowIfNull(value, "value");
  12920. PrepareBuilder();
  12921. if (result.hasBar &&
  12922. result.bar_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) {
  12923. result.bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder(result.bar_).MergeFrom(value).BuildPartial();
  12924. } else {
  12925. result.bar_ = value;
  12926. }
  12927. result.hasBar = true;
  12928. return this;
  12929. }
  12930. public Builder ClearBar() {
  12931. PrepareBuilder();
  12932. result.hasBar = false;
  12933. result.bar_ = null;
  12934. return this;
  12935. }
  12936. }
  12937. static TestDupFieldNumber() {
  12938. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  12939. }
  12940. }
  12941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12942. public sealed partial class TestEagerMessage : pb::GeneratedMessage<TestEagerMessage, TestEagerMessage.Builder> {
  12943. private TestEagerMessage() { }
  12944. private static readonly TestEagerMessage defaultInstance = new TestEagerMessage().MakeReadOnly();
  12945. private static readonly string[] _testEagerMessageFieldNames = new string[] { "sub_message" };
  12946. private static readonly uint[] _testEagerMessageFieldTags = new uint[] { 10 };
  12947. public static TestEagerMessage DefaultInstance {
  12948. get { return defaultInstance; }
  12949. }
  12950. public override TestEagerMessage DefaultInstanceForType {
  12951. get { return DefaultInstance; }
  12952. }
  12953. protected override TestEagerMessage ThisMessage {
  12954. get { return this; }
  12955. }
  12956. public static pbd::MessageDescriptor Descriptor {
  12957. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestEagerMessage__Descriptor; }
  12958. }
  12959. protected override pb::FieldAccess.FieldAccessorTable<TestEagerMessage, TestEagerMessage.Builder> InternalFieldAccessors {
  12960. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestEagerMessage__FieldAccessorTable; }
  12961. }
  12962. public const int SubMessageFieldNumber = 1;
  12963. private bool hasSubMessage;
  12964. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes subMessage_;
  12965. public bool HasSubMessage {
  12966. get { return hasSubMessage; }
  12967. }
  12968. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes SubMessage {
  12969. get { return subMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
  12970. }
  12971. public override bool IsInitialized {
  12972. get {
  12973. return true;
  12974. }
  12975. }
  12976. public override void WriteTo(pb::ICodedOutputStream output) {
  12977. CalcSerializedSize();
  12978. string[] field_names = _testEagerMessageFieldNames;
  12979. if (hasSubMessage) {
  12980. output.WriteMessage(1, field_names[0], SubMessage);
  12981. }
  12982. UnknownFields.WriteTo(output);
  12983. }
  12984. private int memoizedSerializedSize = -1;
  12985. public override int SerializedSize {
  12986. get {
  12987. int size = memoizedSerializedSize;
  12988. if (size != -1) return size;
  12989. return CalcSerializedSize();
  12990. }
  12991. }
  12992. private int CalcSerializedSize() {
  12993. int size = memoizedSerializedSize;
  12994. if (size != -1) return size;
  12995. size = 0;
  12996. if (hasSubMessage) {
  12997. size += pb::CodedOutputStream.ComputeMessageSize(1, SubMessage);
  12998. }
  12999. size += UnknownFields.SerializedSize;
  13000. memoizedSerializedSize = size;
  13001. return size;
  13002. }
  13003. public static TestEagerMessage ParseFrom(pb::ByteString data) {
  13004. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  13005. }
  13006. public static TestEagerMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  13007. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  13008. }
  13009. public static TestEagerMessage ParseFrom(byte[] data) {
  13010. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  13011. }
  13012. public static TestEagerMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  13013. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  13014. }
  13015. public static TestEagerMessage ParseFrom(global::System.IO.Stream input) {
  13016. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  13017. }
  13018. public static TestEagerMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  13019. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  13020. }
  13021. public static TestEagerMessage ParseDelimitedFrom(global::System.IO.Stream input) {
  13022. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  13023. }
  13024. public static TestEagerMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  13025. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  13026. }
  13027. public static TestEagerMessage ParseFrom(pb::ICodedInputStream input) {
  13028. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  13029. }
  13030. public static TestEagerMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  13031. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  13032. }
  13033. private TestEagerMessage MakeReadOnly() {
  13034. return this;
  13035. }
  13036. public static Builder CreateBuilder() { return new Builder(); }
  13037. public override Builder ToBuilder() { return CreateBuilder(this); }
  13038. public override Builder CreateBuilderForType() { return new Builder(); }
  13039. public static Builder CreateBuilder(TestEagerMessage prototype) {
  13040. return new Builder(prototype);
  13041. }
  13042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13043. public sealed partial class Builder : pb::GeneratedBuilder<TestEagerMessage, Builder> {
  13044. protected override Builder ThisBuilder {
  13045. get { return this; }
  13046. }
  13047. public Builder() {
  13048. result = DefaultInstance;
  13049. resultIsReadOnly = true;
  13050. }
  13051. internal Builder(TestEagerMessage cloneFrom) {
  13052. result = cloneFrom;
  13053. resultIsReadOnly = true;
  13054. }
  13055. private bool resultIsReadOnly;
  13056. private TestEagerMessage result;
  13057. private TestEagerMessage PrepareBuilder() {
  13058. if (resultIsReadOnly) {
  13059. TestEagerMessage original = result;
  13060. result = new TestEagerMessage();
  13061. resultIsReadOnly = false;
  13062. MergeFrom(original);
  13063. }
  13064. return result;
  13065. }
  13066. public override bool IsInitialized {
  13067. get { return result.IsInitialized; }
  13068. }
  13069. protected override TestEagerMessage MessageBeingBuilt {
  13070. get { return PrepareBuilder(); }
  13071. }
  13072. public override Builder Clear() {
  13073. result = DefaultInstance;
  13074. resultIsReadOnly = true;
  13075. return this;
  13076. }
  13077. public override Builder Clone() {
  13078. if (resultIsReadOnly) {
  13079. return new Builder(result);
  13080. } else {
  13081. return new Builder().MergeFrom(result);
  13082. }
  13083. }
  13084. public override pbd::MessageDescriptor DescriptorForType {
  13085. get { return global::Google.ProtocolBuffers.TestProtos.TestEagerMessage.Descriptor; }
  13086. }
  13087. public override TestEagerMessage DefaultInstanceForType {
  13088. get { return global::Google.ProtocolBuffers.TestProtos.TestEagerMessage.DefaultInstance; }
  13089. }
  13090. public override TestEagerMessage BuildPartial() {
  13091. if (resultIsReadOnly) {
  13092. return result;
  13093. }
  13094. resultIsReadOnly = true;
  13095. return result.MakeReadOnly();
  13096. }
  13097. public override Builder MergeFrom(pb::IMessage other) {
  13098. if (other is TestEagerMessage) {
  13099. return MergeFrom((TestEagerMessage) other);
  13100. } else {
  13101. base.MergeFrom(other);
  13102. return this;
  13103. }
  13104. }
  13105. public override Builder MergeFrom(TestEagerMessage other) {
  13106. if (other == global::Google.ProtocolBuffers.TestProtos.TestEagerMessage.DefaultInstance) return this;
  13107. PrepareBuilder();
  13108. if (other.HasSubMessage) {
  13109. MergeSubMessage(other.SubMessage);
  13110. }
  13111. this.MergeUnknownFields(other.UnknownFields);
  13112. return this;
  13113. }
  13114. public override Builder MergeFrom(pb::ICodedInputStream input) {
  13115. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  13116. }
  13117. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  13118. PrepareBuilder();
  13119. pb::UnknownFieldSet.Builder unknownFields = null;
  13120. uint tag;
  13121. string field_name;
  13122. while (input.ReadTag(out tag, out field_name)) {
  13123. if(tag == 0 && field_name != null) {
  13124. int field_ordinal = global::System.Array.BinarySearch(_testEagerMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  13125. if(field_ordinal >= 0)
  13126. tag = _testEagerMessageFieldTags[field_ordinal];
  13127. else {
  13128. if (unknownFields == null) {
  13129. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  13130. }
  13131. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  13132. continue;
  13133. }
  13134. }
  13135. switch (tag) {
  13136. case 0: {
  13137. throw pb::InvalidProtocolBufferException.InvalidTag();
  13138. }
  13139. default: {
  13140. if (pb::WireFormat.IsEndGroupTag(tag)) {
  13141. if (unknownFields != null) {
  13142. this.UnknownFields = unknownFields.Build();
  13143. }
  13144. return this;
  13145. }
  13146. if (unknownFields == null) {
  13147. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  13148. }
  13149. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  13150. break;
  13151. }
  13152. case 10: {
  13153. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
  13154. if (result.hasSubMessage) {
  13155. subBuilder.MergeFrom(SubMessage);
  13156. }
  13157. input.ReadMessage(subBuilder, extensionRegistry);
  13158. SubMessage = subBuilder.BuildPartial();
  13159. break;
  13160. }
  13161. }
  13162. }
  13163. if (unknownFields != null) {
  13164. this.UnknownFields = unknownFields.Build();
  13165. }
  13166. return this;
  13167. }
  13168. public bool HasSubMessage {
  13169. get { return result.hasSubMessage; }
  13170. }
  13171. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes SubMessage {
  13172. get { return result.SubMessage; }
  13173. set { SetSubMessage(value); }
  13174. }
  13175. public Builder SetSubMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  13176. pb::ThrowHelper.ThrowIfNull(value, "value");
  13177. PrepareBuilder();
  13178. result.hasSubMessage = true;
  13179. result.subMessage_ = value;
  13180. return this;
  13181. }
  13182. public Builder SetSubMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  13183. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  13184. PrepareBuilder();
  13185. result.hasSubMessage = true;
  13186. result.subMessage_ = builderForValue.Build();
  13187. return this;
  13188. }
  13189. public Builder MergeSubMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  13190. pb::ThrowHelper.ThrowIfNull(value, "value");
  13191. PrepareBuilder();
  13192. if (result.hasSubMessage &&
  13193. result.subMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
  13194. result.subMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.subMessage_).MergeFrom(value).BuildPartial();
  13195. } else {
  13196. result.subMessage_ = value;
  13197. }
  13198. result.hasSubMessage = true;
  13199. return this;
  13200. }
  13201. public Builder ClearSubMessage() {
  13202. PrepareBuilder();
  13203. result.hasSubMessage = false;
  13204. result.subMessage_ = null;
  13205. return this;
  13206. }
  13207. }
  13208. static TestEagerMessage() {
  13209. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  13210. }
  13211. }
  13212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13213. public sealed partial class TestLazyMessage : pb::GeneratedMessage<TestLazyMessage, TestLazyMessage.Builder> {
  13214. private TestLazyMessage() { }
  13215. private static readonly TestLazyMessage defaultInstance = new TestLazyMessage().MakeReadOnly();
  13216. private static readonly string[] _testLazyMessageFieldNames = new string[] { "sub_message" };
  13217. private static readonly uint[] _testLazyMessageFieldTags = new uint[] { 10 };
  13218. public static TestLazyMessage DefaultInstance {
  13219. get { return defaultInstance; }
  13220. }
  13221. public override TestLazyMessage DefaultInstanceForType {
  13222. get { return DefaultInstance; }
  13223. }
  13224. protected override TestLazyMessage ThisMessage {
  13225. get { return this; }
  13226. }
  13227. public static pbd::MessageDescriptor Descriptor {
  13228. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestLazyMessage__Descriptor; }
  13229. }
  13230. protected override pb::FieldAccess.FieldAccessorTable<TestLazyMessage, TestLazyMessage.Builder> InternalFieldAccessors {
  13231. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestLazyMessage__FieldAccessorTable; }
  13232. }
  13233. public const int SubMessageFieldNumber = 1;
  13234. private bool hasSubMessage;
  13235. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes subMessage_;
  13236. public bool HasSubMessage {
  13237. get { return hasSubMessage; }
  13238. }
  13239. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes SubMessage {
  13240. get { return subMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
  13241. }
  13242. public override bool IsInitialized {
  13243. get {
  13244. return true;
  13245. }
  13246. }
  13247. public override void WriteTo(pb::ICodedOutputStream output) {
  13248. CalcSerializedSize();
  13249. string[] field_names = _testLazyMessageFieldNames;
  13250. if (hasSubMessage) {
  13251. output.WriteMessage(1, field_names[0], SubMessage);
  13252. }
  13253. UnknownFields.WriteTo(output);
  13254. }
  13255. private int memoizedSerializedSize = -1;
  13256. public override int SerializedSize {
  13257. get {
  13258. int size = memoizedSerializedSize;
  13259. if (size != -1) return size;
  13260. return CalcSerializedSize();
  13261. }
  13262. }
  13263. private int CalcSerializedSize() {
  13264. int size = memoizedSerializedSize;
  13265. if (size != -1) return size;
  13266. size = 0;
  13267. if (hasSubMessage) {
  13268. size += pb::CodedOutputStream.ComputeMessageSize(1, SubMessage);
  13269. }
  13270. size += UnknownFields.SerializedSize;
  13271. memoizedSerializedSize = size;
  13272. return size;
  13273. }
  13274. public static TestLazyMessage ParseFrom(pb::ByteString data) {
  13275. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  13276. }
  13277. public static TestLazyMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  13278. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  13279. }
  13280. public static TestLazyMessage ParseFrom(byte[] data) {
  13281. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  13282. }
  13283. public static TestLazyMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  13284. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  13285. }
  13286. public static TestLazyMessage ParseFrom(global::System.IO.Stream input) {
  13287. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  13288. }
  13289. public static TestLazyMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  13290. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  13291. }
  13292. public static TestLazyMessage ParseDelimitedFrom(global::System.IO.Stream input) {
  13293. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  13294. }
  13295. public static TestLazyMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  13296. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  13297. }
  13298. public static TestLazyMessage ParseFrom(pb::ICodedInputStream input) {
  13299. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  13300. }
  13301. public static TestLazyMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  13302. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  13303. }
  13304. private TestLazyMessage MakeReadOnly() {
  13305. return this;
  13306. }
  13307. public static Builder CreateBuilder() { return new Builder(); }
  13308. public override Builder ToBuilder() { return CreateBuilder(this); }
  13309. public override Builder CreateBuilderForType() { return new Builder(); }
  13310. public static Builder CreateBuilder(TestLazyMessage prototype) {
  13311. return new Builder(prototype);
  13312. }
  13313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13314. public sealed partial class Builder : pb::GeneratedBuilder<TestLazyMessage, Builder> {
  13315. protected override Builder ThisBuilder {
  13316. get { return this; }
  13317. }
  13318. public Builder() {
  13319. result = DefaultInstance;
  13320. resultIsReadOnly = true;
  13321. }
  13322. internal Builder(TestLazyMessage cloneFrom) {
  13323. result = cloneFrom;
  13324. resultIsReadOnly = true;
  13325. }
  13326. private bool resultIsReadOnly;
  13327. private TestLazyMessage result;
  13328. private TestLazyMessage PrepareBuilder() {
  13329. if (resultIsReadOnly) {
  13330. TestLazyMessage original = result;
  13331. result = new TestLazyMessage();
  13332. resultIsReadOnly = false;
  13333. MergeFrom(original);
  13334. }
  13335. return result;
  13336. }
  13337. public override bool IsInitialized {
  13338. get { return result.IsInitialized; }
  13339. }
  13340. protected override TestLazyMessage MessageBeingBuilt {
  13341. get { return PrepareBuilder(); }
  13342. }
  13343. public override Builder Clear() {
  13344. result = DefaultInstance;
  13345. resultIsReadOnly = true;
  13346. return this;
  13347. }
  13348. public override Builder Clone() {
  13349. if (resultIsReadOnly) {
  13350. return new Builder(result);
  13351. } else {
  13352. return new Builder().MergeFrom(result);
  13353. }
  13354. }
  13355. public override pbd::MessageDescriptor DescriptorForType {
  13356. get { return global::Google.ProtocolBuffers.TestProtos.TestLazyMessage.Descriptor; }
  13357. }
  13358. public override TestLazyMessage DefaultInstanceForType {
  13359. get { return global::Google.ProtocolBuffers.TestProtos.TestLazyMessage.DefaultInstance; }
  13360. }
  13361. public override TestLazyMessage BuildPartial() {
  13362. if (resultIsReadOnly) {
  13363. return result;
  13364. }
  13365. resultIsReadOnly = true;
  13366. return result.MakeReadOnly();
  13367. }
  13368. public override Builder MergeFrom(pb::IMessage other) {
  13369. if (other is TestLazyMessage) {
  13370. return MergeFrom((TestLazyMessage) other);
  13371. } else {
  13372. base.MergeFrom(other);
  13373. return this;
  13374. }
  13375. }
  13376. public override Builder MergeFrom(TestLazyMessage other) {
  13377. if (other == global::Google.ProtocolBuffers.TestProtos.TestLazyMessage.DefaultInstance) return this;
  13378. PrepareBuilder();
  13379. if (other.HasSubMessage) {
  13380. MergeSubMessage(other.SubMessage);
  13381. }
  13382. this.MergeUnknownFields(other.UnknownFields);
  13383. return this;
  13384. }
  13385. public override Builder MergeFrom(pb::ICodedInputStream input) {
  13386. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  13387. }
  13388. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  13389. PrepareBuilder();
  13390. pb::UnknownFieldSet.Builder unknownFields = null;
  13391. uint tag;
  13392. string field_name;
  13393. while (input.ReadTag(out tag, out field_name)) {
  13394. if(tag == 0 && field_name != null) {
  13395. int field_ordinal = global::System.Array.BinarySearch(_testLazyMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  13396. if(field_ordinal >= 0)
  13397. tag = _testLazyMessageFieldTags[field_ordinal];
  13398. else {
  13399. if (unknownFields == null) {
  13400. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  13401. }
  13402. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  13403. continue;
  13404. }
  13405. }
  13406. switch (tag) {
  13407. case 0: {
  13408. throw pb::InvalidProtocolBufferException.InvalidTag();
  13409. }
  13410. default: {
  13411. if (pb::WireFormat.IsEndGroupTag(tag)) {
  13412. if (unknownFields != null) {
  13413. this.UnknownFields = unknownFields.Build();
  13414. }
  13415. return this;
  13416. }
  13417. if (unknownFields == null) {
  13418. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  13419. }
  13420. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  13421. break;
  13422. }
  13423. case 10: {
  13424. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
  13425. if (result.hasSubMessage) {
  13426. subBuilder.MergeFrom(SubMessage);
  13427. }
  13428. input.ReadMessage(subBuilder, extensionRegistry);
  13429. SubMessage = subBuilder.BuildPartial();
  13430. break;
  13431. }
  13432. }
  13433. }
  13434. if (unknownFields != null) {
  13435. this.UnknownFields = unknownFields.Build();
  13436. }
  13437. return this;
  13438. }
  13439. public bool HasSubMessage {
  13440. get { return result.hasSubMessage; }
  13441. }
  13442. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes SubMessage {
  13443. get { return result.SubMessage; }
  13444. set { SetSubMessage(value); }
  13445. }
  13446. public Builder SetSubMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  13447. pb::ThrowHelper.ThrowIfNull(value, "value");
  13448. PrepareBuilder();
  13449. result.hasSubMessage = true;
  13450. result.subMessage_ = value;
  13451. return this;
  13452. }
  13453. public Builder SetSubMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  13454. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  13455. PrepareBuilder();
  13456. result.hasSubMessage = true;
  13457. result.subMessage_ = builderForValue.Build();
  13458. return this;
  13459. }
  13460. public Builder MergeSubMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  13461. pb::ThrowHelper.ThrowIfNull(value, "value");
  13462. PrepareBuilder();
  13463. if (result.hasSubMessage &&
  13464. result.subMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
  13465. result.subMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.subMessage_).MergeFrom(value).BuildPartial();
  13466. } else {
  13467. result.subMessage_ = value;
  13468. }
  13469. result.hasSubMessage = true;
  13470. return this;
  13471. }
  13472. public Builder ClearSubMessage() {
  13473. PrepareBuilder();
  13474. result.hasSubMessage = false;
  13475. result.subMessage_ = null;
  13476. return this;
  13477. }
  13478. }
  13479. static TestLazyMessage() {
  13480. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  13481. }
  13482. }
  13483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13484. public sealed partial class TestNestedMessageHasBits : pb::GeneratedMessage<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> {
  13485. private TestNestedMessageHasBits() { }
  13486. private static readonly TestNestedMessageHasBits defaultInstance = new TestNestedMessageHasBits().MakeReadOnly();
  13487. private static readonly string[] _testNestedMessageHasBitsFieldNames = new string[] { "optional_nested_message" };
  13488. private static readonly uint[] _testNestedMessageHasBitsFieldTags = new uint[] { 10 };
  13489. public static TestNestedMessageHasBits DefaultInstance {
  13490. get { return defaultInstance; }
  13491. }
  13492. public override TestNestedMessageHasBits DefaultInstanceForType {
  13493. get { return DefaultInstance; }
  13494. }
  13495. protected override TestNestedMessageHasBits ThisMessage {
  13496. get { return this; }
  13497. }
  13498. public static pbd::MessageDescriptor Descriptor {
  13499. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor; }
  13500. }
  13501. protected override pb::FieldAccess.FieldAccessorTable<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> InternalFieldAccessors {
  13502. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable; }
  13503. }
  13504. #region Nested types
  13505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13506. public static partial class Types {
  13507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13508. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  13509. private NestedMessage() { }
  13510. private static readonly NestedMessage defaultInstance = new NestedMessage().MakeReadOnly();
  13511. private static readonly string[] _nestedMessageFieldNames = new string[] { "nestedmessage_repeated_foreignmessage", "nestedmessage_repeated_int32" };
  13512. private static readonly uint[] _nestedMessageFieldTags = new uint[] { 18, 8 };
  13513. public static NestedMessage DefaultInstance {
  13514. get { return defaultInstance; }
  13515. }
  13516. public override NestedMessage DefaultInstanceForType {
  13517. get { return DefaultInstance; }
  13518. }
  13519. protected override NestedMessage ThisMessage {
  13520. get { return this; }
  13521. }
  13522. public static pbd::MessageDescriptor Descriptor {
  13523. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor; }
  13524. }
  13525. protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
  13526. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable; }
  13527. }
  13528. public const int NestedmessageRepeatedInt32FieldNumber = 1;
  13529. private pbc::PopsicleList<int> nestedmessageRepeatedInt32_ = new pbc::PopsicleList<int>();
  13530. public scg::IList<int> NestedmessageRepeatedInt32List {
  13531. get { return pbc::Lists.AsReadOnly(nestedmessageRepeatedInt32_); }
  13532. }
  13533. public int NestedmessageRepeatedInt32Count {
  13534. get { return nestedmessageRepeatedInt32_.Count; }
  13535. }
  13536. public int GetNestedmessageRepeatedInt32(int index) {
  13537. return nestedmessageRepeatedInt32_[index];
  13538. }
  13539. public const int NestedmessageRepeatedForeignmessageFieldNumber = 2;
  13540. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> nestedmessageRepeatedForeignmessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  13541. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList {
  13542. get { return nestedmessageRepeatedForeignmessage_; }
  13543. }
  13544. public int NestedmessageRepeatedForeignmessageCount {
  13545. get { return nestedmessageRepeatedForeignmessage_.Count; }
  13546. }
  13547. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
  13548. return nestedmessageRepeatedForeignmessage_[index];
  13549. }
  13550. public override bool IsInitialized {
  13551. get {
  13552. return true;
  13553. }
  13554. }
  13555. public override void WriteTo(pb::ICodedOutputStream output) {
  13556. CalcSerializedSize();
  13557. string[] field_names = _nestedMessageFieldNames;
  13558. if (nestedmessageRepeatedInt32_.Count > 0) {
  13559. output.WriteInt32Array(1, field_names[1], nestedmessageRepeatedInt32_);
  13560. }
  13561. if (nestedmessageRepeatedForeignmessage_.Count > 0) {
  13562. output.WriteMessageArray(2, field_names[0], nestedmessageRepeatedForeignmessage_);
  13563. }
  13564. UnknownFields.WriteTo(output);
  13565. }
  13566. private int memoizedSerializedSize = -1;
  13567. public override int SerializedSize {
  13568. get {
  13569. int size = memoizedSerializedSize;
  13570. if (size != -1) return size;
  13571. return CalcSerializedSize();
  13572. }
  13573. }
  13574. private int CalcSerializedSize() {
  13575. int size = memoizedSerializedSize;
  13576. if (size != -1) return size;
  13577. size = 0;
  13578. {
  13579. int dataSize = 0;
  13580. foreach (int element in NestedmessageRepeatedInt32List) {
  13581. dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
  13582. }
  13583. size += dataSize;
  13584. size += 1 * nestedmessageRepeatedInt32_.Count;
  13585. }
  13586. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
  13587. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  13588. }
  13589. size += UnknownFields.SerializedSize;
  13590. memoizedSerializedSize = size;
  13591. return size;
  13592. }
  13593. public static NestedMessage ParseFrom(pb::ByteString data) {
  13594. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  13595. }
  13596. public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  13597. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  13598. }
  13599. public static NestedMessage ParseFrom(byte[] data) {
  13600. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  13601. }
  13602. public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  13603. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  13604. }
  13605. public static NestedMessage ParseFrom(global::System.IO.Stream input) {
  13606. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  13607. }
  13608. public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  13609. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  13610. }
  13611. public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
  13612. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  13613. }
  13614. public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  13615. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  13616. }
  13617. public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
  13618. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  13619. }
  13620. public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  13621. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  13622. }
  13623. private NestedMessage MakeReadOnly() {
  13624. nestedmessageRepeatedInt32_.MakeReadOnly();
  13625. nestedmessageRepeatedForeignmessage_.MakeReadOnly();
  13626. return this;
  13627. }
  13628. public static Builder CreateBuilder() { return new Builder(); }
  13629. public override Builder ToBuilder() { return CreateBuilder(this); }
  13630. public override Builder CreateBuilderForType() { return new Builder(); }
  13631. public static Builder CreateBuilder(NestedMessage prototype) {
  13632. return new Builder(prototype);
  13633. }
  13634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13635. public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> {
  13636. protected override Builder ThisBuilder {
  13637. get { return this; }
  13638. }
  13639. public Builder() {
  13640. result = DefaultInstance;
  13641. resultIsReadOnly = true;
  13642. }
  13643. internal Builder(NestedMessage cloneFrom) {
  13644. result = cloneFrom;
  13645. resultIsReadOnly = true;
  13646. }
  13647. private bool resultIsReadOnly;
  13648. private NestedMessage result;
  13649. private NestedMessage PrepareBuilder() {
  13650. if (resultIsReadOnly) {
  13651. NestedMessage original = result;
  13652. result = new NestedMessage();
  13653. resultIsReadOnly = false;
  13654. MergeFrom(original);
  13655. }
  13656. return result;
  13657. }
  13658. public override bool IsInitialized {
  13659. get { return result.IsInitialized; }
  13660. }
  13661. protected override NestedMessage MessageBeingBuilt {
  13662. get { return PrepareBuilder(); }
  13663. }
  13664. public override Builder Clear() {
  13665. result = DefaultInstance;
  13666. resultIsReadOnly = true;
  13667. return this;
  13668. }
  13669. public override Builder Clone() {
  13670. if (resultIsReadOnly) {
  13671. return new Builder(result);
  13672. } else {
  13673. return new Builder().MergeFrom(result);
  13674. }
  13675. }
  13676. public override pbd::MessageDescriptor DescriptorForType {
  13677. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Descriptor; }
  13678. }
  13679. public override NestedMessage DefaultInstanceForType {
  13680. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; }
  13681. }
  13682. public override NestedMessage BuildPartial() {
  13683. if (resultIsReadOnly) {
  13684. return result;
  13685. }
  13686. resultIsReadOnly = true;
  13687. return result.MakeReadOnly();
  13688. }
  13689. public override Builder MergeFrom(pb::IMessage other) {
  13690. if (other is NestedMessage) {
  13691. return MergeFrom((NestedMessage) other);
  13692. } else {
  13693. base.MergeFrom(other);
  13694. return this;
  13695. }
  13696. }
  13697. public override Builder MergeFrom(NestedMessage other) {
  13698. if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) return this;
  13699. PrepareBuilder();
  13700. if (other.nestedmessageRepeatedInt32_.Count != 0) {
  13701. result.nestedmessageRepeatedInt32_.Add(other.nestedmessageRepeatedInt32_);
  13702. }
  13703. if (other.nestedmessageRepeatedForeignmessage_.Count != 0) {
  13704. result.nestedmessageRepeatedForeignmessage_.Add(other.nestedmessageRepeatedForeignmessage_);
  13705. }
  13706. this.MergeUnknownFields(other.UnknownFields);
  13707. return this;
  13708. }
  13709. public override Builder MergeFrom(pb::ICodedInputStream input) {
  13710. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  13711. }
  13712. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  13713. PrepareBuilder();
  13714. pb::UnknownFieldSet.Builder unknownFields = null;
  13715. uint tag;
  13716. string field_name;
  13717. while (input.ReadTag(out tag, out field_name)) {
  13718. if(tag == 0 && field_name != null) {
  13719. int field_ordinal = global::System.Array.BinarySearch(_nestedMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  13720. if(field_ordinal >= 0)
  13721. tag = _nestedMessageFieldTags[field_ordinal];
  13722. else {
  13723. if (unknownFields == null) {
  13724. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  13725. }
  13726. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  13727. continue;
  13728. }
  13729. }
  13730. switch (tag) {
  13731. case 0: {
  13732. throw pb::InvalidProtocolBufferException.InvalidTag();
  13733. }
  13734. default: {
  13735. if (pb::WireFormat.IsEndGroupTag(tag)) {
  13736. if (unknownFields != null) {
  13737. this.UnknownFields = unknownFields.Build();
  13738. }
  13739. return this;
  13740. }
  13741. if (unknownFields == null) {
  13742. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  13743. }
  13744. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  13745. break;
  13746. }
  13747. case 10:
  13748. case 8: {
  13749. input.ReadInt32Array(tag, field_name, result.nestedmessageRepeatedInt32_);
  13750. break;
  13751. }
  13752. case 18: {
  13753. input.ReadMessageArray(tag, field_name, result.nestedmessageRepeatedForeignmessage_, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance, extensionRegistry);
  13754. break;
  13755. }
  13756. }
  13757. }
  13758. if (unknownFields != null) {
  13759. this.UnknownFields = unknownFields.Build();
  13760. }
  13761. return this;
  13762. }
  13763. public pbc::IPopsicleList<int> NestedmessageRepeatedInt32List {
  13764. get { return PrepareBuilder().nestedmessageRepeatedInt32_; }
  13765. }
  13766. public int NestedmessageRepeatedInt32Count {
  13767. get { return result.NestedmessageRepeatedInt32Count; }
  13768. }
  13769. public int GetNestedmessageRepeatedInt32(int index) {
  13770. return result.GetNestedmessageRepeatedInt32(index);
  13771. }
  13772. public Builder SetNestedmessageRepeatedInt32(int index, int value) {
  13773. PrepareBuilder();
  13774. result.nestedmessageRepeatedInt32_[index] = value;
  13775. return this;
  13776. }
  13777. public Builder AddNestedmessageRepeatedInt32(int value) {
  13778. PrepareBuilder();
  13779. result.nestedmessageRepeatedInt32_.Add(value);
  13780. return this;
  13781. }
  13782. public Builder AddRangeNestedmessageRepeatedInt32(scg::IEnumerable<int> values) {
  13783. PrepareBuilder();
  13784. result.nestedmessageRepeatedInt32_.Add(values);
  13785. return this;
  13786. }
  13787. public Builder ClearNestedmessageRepeatedInt32() {
  13788. PrepareBuilder();
  13789. result.nestedmessageRepeatedInt32_.Clear();
  13790. return this;
  13791. }
  13792. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList {
  13793. get { return PrepareBuilder().nestedmessageRepeatedForeignmessage_; }
  13794. }
  13795. public int NestedmessageRepeatedForeignmessageCount {
  13796. get { return result.NestedmessageRepeatedForeignmessageCount; }
  13797. }
  13798. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
  13799. return result.GetNestedmessageRepeatedForeignmessage(index);
  13800. }
  13801. public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  13802. pb::ThrowHelper.ThrowIfNull(value, "value");
  13803. PrepareBuilder();
  13804. result.nestedmessageRepeatedForeignmessage_[index] = value;
  13805. return this;
  13806. }
  13807. public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  13808. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  13809. PrepareBuilder();
  13810. result.nestedmessageRepeatedForeignmessage_[index] = builderForValue.Build();
  13811. return this;
  13812. }
  13813. public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  13814. pb::ThrowHelper.ThrowIfNull(value, "value");
  13815. PrepareBuilder();
  13816. result.nestedmessageRepeatedForeignmessage_.Add(value);
  13817. return this;
  13818. }
  13819. public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  13820. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  13821. PrepareBuilder();
  13822. result.nestedmessageRepeatedForeignmessage_.Add(builderForValue.Build());
  13823. return this;
  13824. }
  13825. public Builder AddRangeNestedmessageRepeatedForeignmessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
  13826. PrepareBuilder();
  13827. result.nestedmessageRepeatedForeignmessage_.Add(values);
  13828. return this;
  13829. }
  13830. public Builder ClearNestedmessageRepeatedForeignmessage() {
  13831. PrepareBuilder();
  13832. result.nestedmessageRepeatedForeignmessage_.Clear();
  13833. return this;
  13834. }
  13835. }
  13836. static NestedMessage() {
  13837. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  13838. }
  13839. }
  13840. }
  13841. #endregion
  13842. public const int OptionalNestedMessageFieldNumber = 1;
  13843. private bool hasOptionalNestedMessage;
  13844. private global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_;
  13845. public bool HasOptionalNestedMessage {
  13846. get { return hasOptionalNestedMessage; }
  13847. }
  13848. public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  13849. get { return optionalNestedMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; }
  13850. }
  13851. public override bool IsInitialized {
  13852. get {
  13853. return true;
  13854. }
  13855. }
  13856. public override void WriteTo(pb::ICodedOutputStream output) {
  13857. CalcSerializedSize();
  13858. string[] field_names = _testNestedMessageHasBitsFieldNames;
  13859. if (hasOptionalNestedMessage) {
  13860. output.WriteMessage(1, field_names[0], OptionalNestedMessage);
  13861. }
  13862. UnknownFields.WriteTo(output);
  13863. }
  13864. private int memoizedSerializedSize = -1;
  13865. public override int SerializedSize {
  13866. get {
  13867. int size = memoizedSerializedSize;
  13868. if (size != -1) return size;
  13869. return CalcSerializedSize();
  13870. }
  13871. }
  13872. private int CalcSerializedSize() {
  13873. int size = memoizedSerializedSize;
  13874. if (size != -1) return size;
  13875. size = 0;
  13876. if (hasOptionalNestedMessage) {
  13877. size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalNestedMessage);
  13878. }
  13879. size += UnknownFields.SerializedSize;
  13880. memoizedSerializedSize = size;
  13881. return size;
  13882. }
  13883. public static TestNestedMessageHasBits ParseFrom(pb::ByteString data) {
  13884. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  13885. }
  13886. public static TestNestedMessageHasBits ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  13887. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  13888. }
  13889. public static TestNestedMessageHasBits ParseFrom(byte[] data) {
  13890. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  13891. }
  13892. public static TestNestedMessageHasBits ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  13893. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  13894. }
  13895. public static TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input) {
  13896. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  13897. }
  13898. public static TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  13899. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  13900. }
  13901. public static TestNestedMessageHasBits ParseDelimitedFrom(global::System.IO.Stream input) {
  13902. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  13903. }
  13904. public static TestNestedMessageHasBits ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  13905. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  13906. }
  13907. public static TestNestedMessageHasBits ParseFrom(pb::ICodedInputStream input) {
  13908. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  13909. }
  13910. public static TestNestedMessageHasBits ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  13911. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  13912. }
  13913. private TestNestedMessageHasBits MakeReadOnly() {
  13914. return this;
  13915. }
  13916. public static Builder CreateBuilder() { return new Builder(); }
  13917. public override Builder ToBuilder() { return CreateBuilder(this); }
  13918. public override Builder CreateBuilderForType() { return new Builder(); }
  13919. public static Builder CreateBuilder(TestNestedMessageHasBits prototype) {
  13920. return new Builder(prototype);
  13921. }
  13922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13923. public sealed partial class Builder : pb::GeneratedBuilder<TestNestedMessageHasBits, Builder> {
  13924. protected override Builder ThisBuilder {
  13925. get { return this; }
  13926. }
  13927. public Builder() {
  13928. result = DefaultInstance;
  13929. resultIsReadOnly = true;
  13930. }
  13931. internal Builder(TestNestedMessageHasBits cloneFrom) {
  13932. result = cloneFrom;
  13933. resultIsReadOnly = true;
  13934. }
  13935. private bool resultIsReadOnly;
  13936. private TestNestedMessageHasBits result;
  13937. private TestNestedMessageHasBits PrepareBuilder() {
  13938. if (resultIsReadOnly) {
  13939. TestNestedMessageHasBits original = result;
  13940. result = new TestNestedMessageHasBits();
  13941. resultIsReadOnly = false;
  13942. MergeFrom(original);
  13943. }
  13944. return result;
  13945. }
  13946. public override bool IsInitialized {
  13947. get { return result.IsInitialized; }
  13948. }
  13949. protected override TestNestedMessageHasBits MessageBeingBuilt {
  13950. get { return PrepareBuilder(); }
  13951. }
  13952. public override Builder Clear() {
  13953. result = DefaultInstance;
  13954. resultIsReadOnly = true;
  13955. return this;
  13956. }
  13957. public override Builder Clone() {
  13958. if (resultIsReadOnly) {
  13959. return new Builder(result);
  13960. } else {
  13961. return new Builder().MergeFrom(result);
  13962. }
  13963. }
  13964. public override pbd::MessageDescriptor DescriptorForType {
  13965. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Descriptor; }
  13966. }
  13967. public override TestNestedMessageHasBits DefaultInstanceForType {
  13968. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.DefaultInstance; }
  13969. }
  13970. public override TestNestedMessageHasBits BuildPartial() {
  13971. if (resultIsReadOnly) {
  13972. return result;
  13973. }
  13974. resultIsReadOnly = true;
  13975. return result.MakeReadOnly();
  13976. }
  13977. public override Builder MergeFrom(pb::IMessage other) {
  13978. if (other is TestNestedMessageHasBits) {
  13979. return MergeFrom((TestNestedMessageHasBits) other);
  13980. } else {
  13981. base.MergeFrom(other);
  13982. return this;
  13983. }
  13984. }
  13985. public override Builder MergeFrom(TestNestedMessageHasBits other) {
  13986. if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.DefaultInstance) return this;
  13987. PrepareBuilder();
  13988. if (other.HasOptionalNestedMessage) {
  13989. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  13990. }
  13991. this.MergeUnknownFields(other.UnknownFields);
  13992. return this;
  13993. }
  13994. public override Builder MergeFrom(pb::ICodedInputStream input) {
  13995. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  13996. }
  13997. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  13998. PrepareBuilder();
  13999. pb::UnknownFieldSet.Builder unknownFields = null;
  14000. uint tag;
  14001. string field_name;
  14002. while (input.ReadTag(out tag, out field_name)) {
  14003. if(tag == 0 && field_name != null) {
  14004. int field_ordinal = global::System.Array.BinarySearch(_testNestedMessageHasBitsFieldNames, field_name, global::System.StringComparer.Ordinal);
  14005. if(field_ordinal >= 0)
  14006. tag = _testNestedMessageHasBitsFieldTags[field_ordinal];
  14007. else {
  14008. if (unknownFields == null) {
  14009. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  14010. }
  14011. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  14012. continue;
  14013. }
  14014. }
  14015. switch (tag) {
  14016. case 0: {
  14017. throw pb::InvalidProtocolBufferException.InvalidTag();
  14018. }
  14019. default: {
  14020. if (pb::WireFormat.IsEndGroupTag(tag)) {
  14021. if (unknownFields != null) {
  14022. this.UnknownFields = unknownFields.Build();
  14023. }
  14024. return this;
  14025. }
  14026. if (unknownFields == null) {
  14027. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  14028. }
  14029. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  14030. break;
  14031. }
  14032. case 10: {
  14033. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder();
  14034. if (result.hasOptionalNestedMessage) {
  14035. subBuilder.MergeFrom(OptionalNestedMessage);
  14036. }
  14037. input.ReadMessage(subBuilder, extensionRegistry);
  14038. OptionalNestedMessage = subBuilder.BuildPartial();
  14039. break;
  14040. }
  14041. }
  14042. }
  14043. if (unknownFields != null) {
  14044. this.UnknownFields = unknownFields.Build();
  14045. }
  14046. return this;
  14047. }
  14048. public bool HasOptionalNestedMessage {
  14049. get { return result.hasOptionalNestedMessage; }
  14050. }
  14051. public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  14052. get { return result.OptionalNestedMessage; }
  14053. set { SetOptionalNestedMessage(value); }
  14054. }
  14055. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) {
  14056. pb::ThrowHelper.ThrowIfNull(value, "value");
  14057. PrepareBuilder();
  14058. result.hasOptionalNestedMessage = true;
  14059. result.optionalNestedMessage_ = value;
  14060. return this;
  14061. }
  14062. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder builderForValue) {
  14063. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  14064. PrepareBuilder();
  14065. result.hasOptionalNestedMessage = true;
  14066. result.optionalNestedMessage_ = builderForValue.Build();
  14067. return this;
  14068. }
  14069. public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) {
  14070. pb::ThrowHelper.ThrowIfNull(value, "value");
  14071. PrepareBuilder();
  14072. if (result.hasOptionalNestedMessage &&
  14073. result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) {
  14074. result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  14075. } else {
  14076. result.optionalNestedMessage_ = value;
  14077. }
  14078. result.hasOptionalNestedMessage = true;
  14079. return this;
  14080. }
  14081. public Builder ClearOptionalNestedMessage() {
  14082. PrepareBuilder();
  14083. result.hasOptionalNestedMessage = false;
  14084. result.optionalNestedMessage_ = null;
  14085. return this;
  14086. }
  14087. }
  14088. static TestNestedMessageHasBits() {
  14089. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  14090. }
  14091. }
  14092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14093. public sealed partial class TestCamelCaseFieldNames : pb::GeneratedMessage<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> {
  14094. private TestCamelCaseFieldNames() { }
  14095. private static readonly TestCamelCaseFieldNames defaultInstance = new TestCamelCaseFieldNames().MakeReadOnly();
  14096. private static readonly string[] _testCamelCaseFieldNamesFieldNames = new string[] { "CordField", "EnumField", "MessageField", "PrimitiveField", "RepeatedCordField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedStringPieceField", "StringField", "StringPieceField" };
  14097. private static readonly uint[] _testCamelCaseFieldNamesFieldTags = new uint[] { 50, 24, 34, 8, 98, 72, 82, 56, 66, 90, 18, 42 };
  14098. public static TestCamelCaseFieldNames DefaultInstance {
  14099. get { return defaultInstance; }
  14100. }
  14101. public override TestCamelCaseFieldNames DefaultInstanceForType {
  14102. get { return DefaultInstance; }
  14103. }
  14104. protected override TestCamelCaseFieldNames ThisMessage {
  14105. get { return this; }
  14106. }
  14107. public static pbd::MessageDescriptor Descriptor {
  14108. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor; }
  14109. }
  14110. protected override pb::FieldAccess.FieldAccessorTable<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> InternalFieldAccessors {
  14111. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; }
  14112. }
  14113. public const int PrimitiveFieldFieldNumber = 1;
  14114. private bool hasPrimitiveField;
  14115. private int primitiveField_;
  14116. public bool HasPrimitiveField {
  14117. get { return hasPrimitiveField; }
  14118. }
  14119. public int PrimitiveField {
  14120. get { return primitiveField_; }
  14121. }
  14122. public const int StringFieldFieldNumber = 2;
  14123. private bool hasStringField;
  14124. private string stringField_ = "";
  14125. public bool HasStringField {
  14126. get { return hasStringField; }
  14127. }
  14128. public string StringField {
  14129. get { return stringField_; }
  14130. }
  14131. public const int EnumFieldFieldNumber = 3;
  14132. private bool hasEnumField;
  14133. private global::Google.ProtocolBuffers.TestProtos.ForeignEnum enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  14134. public bool HasEnumField {
  14135. get { return hasEnumField; }
  14136. }
  14137. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField {
  14138. get { return enumField_; }
  14139. }
  14140. public const int MessageFieldFieldNumber = 4;
  14141. private bool hasMessageField;
  14142. private global::Google.ProtocolBuffers.TestProtos.ForeignMessage messageField_;
  14143. public bool HasMessageField {
  14144. get { return hasMessageField; }
  14145. }
  14146. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField {
  14147. get { return messageField_ ?? global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; }
  14148. }
  14149. public const int StringPieceFieldFieldNumber = 5;
  14150. private bool hasStringPieceField;
  14151. private string stringPieceField_ = "";
  14152. public bool HasStringPieceField {
  14153. get { return hasStringPieceField; }
  14154. }
  14155. public string StringPieceField {
  14156. get { return stringPieceField_; }
  14157. }
  14158. public const int CordFieldFieldNumber = 6;
  14159. private bool hasCordField;
  14160. private string cordField_ = "";
  14161. public bool HasCordField {
  14162. get { return hasCordField; }
  14163. }
  14164. public string CordField {
  14165. get { return cordField_; }
  14166. }
  14167. public const int RepeatedPrimitiveFieldFieldNumber = 7;
  14168. private pbc::PopsicleList<int> repeatedPrimitiveField_ = new pbc::PopsicleList<int>();
  14169. public scg::IList<int> RepeatedPrimitiveFieldList {
  14170. get { return pbc::Lists.AsReadOnly(repeatedPrimitiveField_); }
  14171. }
  14172. public int RepeatedPrimitiveFieldCount {
  14173. get { return repeatedPrimitiveField_.Count; }
  14174. }
  14175. public int GetRepeatedPrimitiveField(int index) {
  14176. return repeatedPrimitiveField_[index];
  14177. }
  14178. public const int RepeatedStringFieldFieldNumber = 8;
  14179. private pbc::PopsicleList<string> repeatedStringField_ = new pbc::PopsicleList<string>();
  14180. public scg::IList<string> RepeatedStringFieldList {
  14181. get { return pbc::Lists.AsReadOnly(repeatedStringField_); }
  14182. }
  14183. public int RepeatedStringFieldCount {
  14184. get { return repeatedStringField_.Count; }
  14185. }
  14186. public string GetRepeatedStringField(int index) {
  14187. return repeatedStringField_[index];
  14188. }
  14189. public const int RepeatedEnumFieldFieldNumber = 9;
  14190. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedEnumField_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  14191. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList {
  14192. get { return pbc::Lists.AsReadOnly(repeatedEnumField_); }
  14193. }
  14194. public int RepeatedEnumFieldCount {
  14195. get { return repeatedEnumField_.Count; }
  14196. }
  14197. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) {
  14198. return repeatedEnumField_[index];
  14199. }
  14200. public const int RepeatedMessageFieldFieldNumber = 10;
  14201. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedMessageField_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  14202. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList {
  14203. get { return repeatedMessageField_; }
  14204. }
  14205. public int RepeatedMessageFieldCount {
  14206. get { return repeatedMessageField_.Count; }
  14207. }
  14208. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) {
  14209. return repeatedMessageField_[index];
  14210. }
  14211. public const int RepeatedStringPieceFieldFieldNumber = 11;
  14212. private pbc::PopsicleList<string> repeatedStringPieceField_ = new pbc::PopsicleList<string>();
  14213. public scg::IList<string> RepeatedStringPieceFieldList {
  14214. get { return pbc::Lists.AsReadOnly(repeatedStringPieceField_); }
  14215. }
  14216. public int RepeatedStringPieceFieldCount {
  14217. get { return repeatedStringPieceField_.Count; }
  14218. }
  14219. public string GetRepeatedStringPieceField(int index) {
  14220. return repeatedStringPieceField_[index];
  14221. }
  14222. public const int RepeatedCordFieldFieldNumber = 12;
  14223. private pbc::PopsicleList<string> repeatedCordField_ = new pbc::PopsicleList<string>();
  14224. public scg::IList<string> RepeatedCordFieldList {
  14225. get { return pbc::Lists.AsReadOnly(repeatedCordField_); }
  14226. }
  14227. public int RepeatedCordFieldCount {
  14228. get { return repeatedCordField_.Count; }
  14229. }
  14230. public string GetRepeatedCordField(int index) {
  14231. return repeatedCordField_[index];
  14232. }
  14233. public override bool IsInitialized {
  14234. get {
  14235. return true;
  14236. }
  14237. }
  14238. public override void WriteTo(pb::ICodedOutputStream output) {
  14239. CalcSerializedSize();
  14240. string[] field_names = _testCamelCaseFieldNamesFieldNames;
  14241. if (hasPrimitiveField) {
  14242. output.WriteInt32(1, field_names[3], PrimitiveField);
  14243. }
  14244. if (hasStringField) {
  14245. output.WriteString(2, field_names[10], StringField);
  14246. }
  14247. if (hasEnumField) {
  14248. output.WriteEnum(3, field_names[1], (int) EnumField, EnumField);
  14249. }
  14250. if (hasMessageField) {
  14251. output.WriteMessage(4, field_names[2], MessageField);
  14252. }
  14253. if (hasStringPieceField) {
  14254. output.WriteString(5, field_names[11], StringPieceField);
  14255. }
  14256. if (hasCordField) {
  14257. output.WriteString(6, field_names[0], CordField);
  14258. }
  14259. if (repeatedPrimitiveField_.Count > 0) {
  14260. output.WriteInt32Array(7, field_names[7], repeatedPrimitiveField_);
  14261. }
  14262. if (repeatedStringField_.Count > 0) {
  14263. output.WriteStringArray(8, field_names[8], repeatedStringField_);
  14264. }
  14265. if (repeatedEnumField_.Count > 0) {
  14266. output.WriteEnumArray(9, field_names[5], repeatedEnumField_);
  14267. }
  14268. if (repeatedMessageField_.Count > 0) {
  14269. output.WriteMessageArray(10, field_names[6], repeatedMessageField_);
  14270. }
  14271. if (repeatedStringPieceField_.Count > 0) {
  14272. output.WriteStringArray(11, field_names[9], repeatedStringPieceField_);
  14273. }
  14274. if (repeatedCordField_.Count > 0) {
  14275. output.WriteStringArray(12, field_names[4], repeatedCordField_);
  14276. }
  14277. UnknownFields.WriteTo(output);
  14278. }
  14279. private int memoizedSerializedSize = -1;
  14280. public override int SerializedSize {
  14281. get {
  14282. int size = memoizedSerializedSize;
  14283. if (size != -1) return size;
  14284. return CalcSerializedSize();
  14285. }
  14286. }
  14287. private int CalcSerializedSize() {
  14288. int size = memoizedSerializedSize;
  14289. if (size != -1) return size;
  14290. size = 0;
  14291. if (hasPrimitiveField) {
  14292. size += pb::CodedOutputStream.ComputeInt32Size(1, PrimitiveField);
  14293. }
  14294. if (hasStringField) {
  14295. size += pb::CodedOutputStream.ComputeStringSize(2, StringField);
  14296. }
  14297. if (hasEnumField) {
  14298. size += pb::CodedOutputStream.ComputeEnumSize(3, (int) EnumField);
  14299. }
  14300. if (hasMessageField) {
  14301. size += pb::CodedOutputStream.ComputeMessageSize(4, MessageField);
  14302. }
  14303. if (hasStringPieceField) {
  14304. size += pb::CodedOutputStream.ComputeStringSize(5, StringPieceField);
  14305. }
  14306. if (hasCordField) {
  14307. size += pb::CodedOutputStream.ComputeStringSize(6, CordField);
  14308. }
  14309. {
  14310. int dataSize = 0;
  14311. foreach (int element in RepeatedPrimitiveFieldList) {
  14312. dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
  14313. }
  14314. size += dataSize;
  14315. size += 1 * repeatedPrimitiveField_.Count;
  14316. }
  14317. {
  14318. int dataSize = 0;
  14319. foreach (string element in RepeatedStringFieldList) {
  14320. dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
  14321. }
  14322. size += dataSize;
  14323. size += 1 * repeatedStringField_.Count;
  14324. }
  14325. {
  14326. int dataSize = 0;
  14327. if (repeatedEnumField_.Count > 0) {
  14328. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in repeatedEnumField_) {
  14329. dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
  14330. }
  14331. size += dataSize;
  14332. size += 1 * repeatedEnumField_.Count;
  14333. }
  14334. }
  14335. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) {
  14336. size += pb::CodedOutputStream.ComputeMessageSize(10, element);
  14337. }
  14338. {
  14339. int dataSize = 0;
  14340. foreach (string element in RepeatedStringPieceFieldList) {
  14341. dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
  14342. }
  14343. size += dataSize;
  14344. size += 1 * repeatedStringPieceField_.Count;
  14345. }
  14346. {
  14347. int dataSize = 0;
  14348. foreach (string element in RepeatedCordFieldList) {
  14349. dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
  14350. }
  14351. size += dataSize;
  14352. size += 1 * repeatedCordField_.Count;
  14353. }
  14354. size += UnknownFields.SerializedSize;
  14355. memoizedSerializedSize = size;
  14356. return size;
  14357. }
  14358. public static TestCamelCaseFieldNames ParseFrom(pb::ByteString data) {
  14359. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  14360. }
  14361. public static TestCamelCaseFieldNames ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  14362. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  14363. }
  14364. public static TestCamelCaseFieldNames ParseFrom(byte[] data) {
  14365. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  14366. }
  14367. public static TestCamelCaseFieldNames ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  14368. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  14369. }
  14370. public static TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input) {
  14371. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  14372. }
  14373. public static TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  14374. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  14375. }
  14376. public static TestCamelCaseFieldNames ParseDelimitedFrom(global::System.IO.Stream input) {
  14377. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  14378. }
  14379. public static TestCamelCaseFieldNames ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  14380. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  14381. }
  14382. public static TestCamelCaseFieldNames ParseFrom(pb::ICodedInputStream input) {
  14383. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  14384. }
  14385. public static TestCamelCaseFieldNames ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  14386. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  14387. }
  14388. private TestCamelCaseFieldNames MakeReadOnly() {
  14389. repeatedPrimitiveField_.MakeReadOnly();
  14390. repeatedStringField_.MakeReadOnly();
  14391. repeatedEnumField_.MakeReadOnly();
  14392. repeatedMessageField_.MakeReadOnly();
  14393. repeatedStringPieceField_.MakeReadOnly();
  14394. repeatedCordField_.MakeReadOnly();
  14395. return this;
  14396. }
  14397. public static Builder CreateBuilder() { return new Builder(); }
  14398. public override Builder ToBuilder() { return CreateBuilder(this); }
  14399. public override Builder CreateBuilderForType() { return new Builder(); }
  14400. public static Builder CreateBuilder(TestCamelCaseFieldNames prototype) {
  14401. return new Builder(prototype);
  14402. }
  14403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14404. public sealed partial class Builder : pb::GeneratedBuilder<TestCamelCaseFieldNames, Builder> {
  14405. protected override Builder ThisBuilder {
  14406. get { return this; }
  14407. }
  14408. public Builder() {
  14409. result = DefaultInstance;
  14410. resultIsReadOnly = true;
  14411. }
  14412. internal Builder(TestCamelCaseFieldNames cloneFrom) {
  14413. result = cloneFrom;
  14414. resultIsReadOnly = true;
  14415. }
  14416. private bool resultIsReadOnly;
  14417. private TestCamelCaseFieldNames result;
  14418. private TestCamelCaseFieldNames PrepareBuilder() {
  14419. if (resultIsReadOnly) {
  14420. TestCamelCaseFieldNames original = result;
  14421. result = new TestCamelCaseFieldNames();
  14422. resultIsReadOnly = false;
  14423. MergeFrom(original);
  14424. }
  14425. return result;
  14426. }
  14427. public override bool IsInitialized {
  14428. get { return result.IsInitialized; }
  14429. }
  14430. protected override TestCamelCaseFieldNames MessageBeingBuilt {
  14431. get { return PrepareBuilder(); }
  14432. }
  14433. public override Builder Clear() {
  14434. result = DefaultInstance;
  14435. resultIsReadOnly = true;
  14436. return this;
  14437. }
  14438. public override Builder Clone() {
  14439. if (resultIsReadOnly) {
  14440. return new Builder(result);
  14441. } else {
  14442. return new Builder().MergeFrom(result);
  14443. }
  14444. }
  14445. public override pbd::MessageDescriptor DescriptorForType {
  14446. get { return global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Descriptor; }
  14447. }
  14448. public override TestCamelCaseFieldNames DefaultInstanceForType {
  14449. get { return global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.DefaultInstance; }
  14450. }
  14451. public override TestCamelCaseFieldNames BuildPartial() {
  14452. if (resultIsReadOnly) {
  14453. return result;
  14454. }
  14455. resultIsReadOnly = true;
  14456. return result.MakeReadOnly();
  14457. }
  14458. public override Builder MergeFrom(pb::IMessage other) {
  14459. if (other is TestCamelCaseFieldNames) {
  14460. return MergeFrom((TestCamelCaseFieldNames) other);
  14461. } else {
  14462. base.MergeFrom(other);
  14463. return this;
  14464. }
  14465. }
  14466. public override Builder MergeFrom(TestCamelCaseFieldNames other) {
  14467. if (other == global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.DefaultInstance) return this;
  14468. PrepareBuilder();
  14469. if (other.HasPrimitiveField) {
  14470. PrimitiveField = other.PrimitiveField;
  14471. }
  14472. if (other.HasStringField) {
  14473. StringField = other.StringField;
  14474. }
  14475. if (other.HasEnumField) {
  14476. EnumField = other.EnumField;
  14477. }
  14478. if (other.HasMessageField) {
  14479. MergeMessageField(other.MessageField);
  14480. }
  14481. if (other.HasStringPieceField) {
  14482. StringPieceField = other.StringPieceField;
  14483. }
  14484. if (other.HasCordField) {
  14485. CordField = other.CordField;
  14486. }
  14487. if (other.repeatedPrimitiveField_.Count != 0) {
  14488. result.repeatedPrimitiveField_.Add(other.repeatedPrimitiveField_);
  14489. }
  14490. if (other.repeatedStringField_.Count != 0) {
  14491. result.repeatedStringField_.Add(other.repeatedStringField_);
  14492. }
  14493. if (other.repeatedEnumField_.Count != 0) {
  14494. result.repeatedEnumField_.Add(other.repeatedEnumField_);
  14495. }
  14496. if (other.repeatedMessageField_.Count != 0) {
  14497. result.repeatedMessageField_.Add(other.repeatedMessageField_);
  14498. }
  14499. if (other.repeatedStringPieceField_.Count != 0) {
  14500. result.repeatedStringPieceField_.Add(other.repeatedStringPieceField_);
  14501. }
  14502. if (other.repeatedCordField_.Count != 0) {
  14503. result.repeatedCordField_.Add(other.repeatedCordField_);
  14504. }
  14505. this.MergeUnknownFields(other.UnknownFields);
  14506. return this;
  14507. }
  14508. public override Builder MergeFrom(pb::ICodedInputStream input) {
  14509. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  14510. }
  14511. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  14512. PrepareBuilder();
  14513. pb::UnknownFieldSet.Builder unknownFields = null;
  14514. uint tag;
  14515. string field_name;
  14516. while (input.ReadTag(out tag, out field_name)) {
  14517. if(tag == 0 && field_name != null) {
  14518. int field_ordinal = global::System.Array.BinarySearch(_testCamelCaseFieldNamesFieldNames, field_name, global::System.StringComparer.Ordinal);
  14519. if(field_ordinal >= 0)
  14520. tag = _testCamelCaseFieldNamesFieldTags[field_ordinal];
  14521. else {
  14522. if (unknownFields == null) {
  14523. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  14524. }
  14525. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  14526. continue;
  14527. }
  14528. }
  14529. switch (tag) {
  14530. case 0: {
  14531. throw pb::InvalidProtocolBufferException.InvalidTag();
  14532. }
  14533. default: {
  14534. if (pb::WireFormat.IsEndGroupTag(tag)) {
  14535. if (unknownFields != null) {
  14536. this.UnknownFields = unknownFields.Build();
  14537. }
  14538. return this;
  14539. }
  14540. if (unknownFields == null) {
  14541. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  14542. }
  14543. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  14544. break;
  14545. }
  14546. case 8: {
  14547. result.hasPrimitiveField = input.ReadInt32(ref result.primitiveField_);
  14548. break;
  14549. }
  14550. case 18: {
  14551. result.hasStringField = input.ReadString(ref result.stringField_);
  14552. break;
  14553. }
  14554. case 24: {
  14555. object unknown;
  14556. if(input.ReadEnum(ref result.enumField_, out unknown)) {
  14557. result.hasEnumField = true;
  14558. } else if(unknown is int) {
  14559. if (unknownFields == null) {
  14560. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  14561. }
  14562. unknownFields.MergeVarintField(3, (ulong)(int)unknown);
  14563. }
  14564. break;
  14565. }
  14566. case 34: {
  14567. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  14568. if (result.hasMessageField) {
  14569. subBuilder.MergeFrom(MessageField);
  14570. }
  14571. input.ReadMessage(subBuilder, extensionRegistry);
  14572. MessageField = subBuilder.BuildPartial();
  14573. break;
  14574. }
  14575. case 42: {
  14576. result.hasStringPieceField = input.ReadString(ref result.stringPieceField_);
  14577. break;
  14578. }
  14579. case 50: {
  14580. result.hasCordField = input.ReadString(ref result.cordField_);
  14581. break;
  14582. }
  14583. case 58:
  14584. case 56: {
  14585. input.ReadInt32Array(tag, field_name, result.repeatedPrimitiveField_);
  14586. break;
  14587. }
  14588. case 66: {
  14589. input.ReadStringArray(tag, field_name, result.repeatedStringField_);
  14590. break;
  14591. }
  14592. case 74:
  14593. case 72: {
  14594. scg::ICollection<object> unknownItems;
  14595. input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(tag, field_name, result.repeatedEnumField_, out unknownItems);
  14596. if (unknownItems != null) {
  14597. if (unknownFields == null) {
  14598. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  14599. }
  14600. foreach (object rawValue in unknownItems)
  14601. if (rawValue is int)
  14602. unknownFields.MergeVarintField(9, (ulong)(int)rawValue);
  14603. }
  14604. break;
  14605. }
  14606. case 82: {
  14607. input.ReadMessageArray(tag, field_name, result.repeatedMessageField_, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance, extensionRegistry);
  14608. break;
  14609. }
  14610. case 90: {
  14611. input.ReadStringArray(tag, field_name, result.repeatedStringPieceField_);
  14612. break;
  14613. }
  14614. case 98: {
  14615. input.ReadStringArray(tag, field_name, result.repeatedCordField_);
  14616. break;
  14617. }
  14618. }
  14619. }
  14620. if (unknownFields != null) {
  14621. this.UnknownFields = unknownFields.Build();
  14622. }
  14623. return this;
  14624. }
  14625. public bool HasPrimitiveField {
  14626. get { return result.hasPrimitiveField; }
  14627. }
  14628. public int PrimitiveField {
  14629. get { return result.PrimitiveField; }
  14630. set { SetPrimitiveField(value); }
  14631. }
  14632. public Builder SetPrimitiveField(int value) {
  14633. PrepareBuilder();
  14634. result.hasPrimitiveField = true;
  14635. result.primitiveField_ = value;
  14636. return this;
  14637. }
  14638. public Builder ClearPrimitiveField() {
  14639. PrepareBuilder();
  14640. result.hasPrimitiveField = false;
  14641. result.primitiveField_ = 0;
  14642. return this;
  14643. }
  14644. public bool HasStringField {
  14645. get { return result.hasStringField; }
  14646. }
  14647. public string StringField {
  14648. get { return result.StringField; }
  14649. set { SetStringField(value); }
  14650. }
  14651. public Builder SetStringField(string value) {
  14652. pb::ThrowHelper.ThrowIfNull(value, "value");
  14653. PrepareBuilder();
  14654. result.hasStringField = true;
  14655. result.stringField_ = value;
  14656. return this;
  14657. }
  14658. public Builder ClearStringField() {
  14659. PrepareBuilder();
  14660. result.hasStringField = false;
  14661. result.stringField_ = "";
  14662. return this;
  14663. }
  14664. public bool HasEnumField {
  14665. get { return result.hasEnumField; }
  14666. }
  14667. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField {
  14668. get { return result.EnumField; }
  14669. set { SetEnumField(value); }
  14670. }
  14671. public Builder SetEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  14672. PrepareBuilder();
  14673. result.hasEnumField = true;
  14674. result.enumField_ = value;
  14675. return this;
  14676. }
  14677. public Builder ClearEnumField() {
  14678. PrepareBuilder();
  14679. result.hasEnumField = false;
  14680. result.enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  14681. return this;
  14682. }
  14683. public bool HasMessageField {
  14684. get { return result.hasMessageField; }
  14685. }
  14686. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField {
  14687. get { return result.MessageField; }
  14688. set { SetMessageField(value); }
  14689. }
  14690. public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  14691. pb::ThrowHelper.ThrowIfNull(value, "value");
  14692. PrepareBuilder();
  14693. result.hasMessageField = true;
  14694. result.messageField_ = value;
  14695. return this;
  14696. }
  14697. public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  14698. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  14699. PrepareBuilder();
  14700. result.hasMessageField = true;
  14701. result.messageField_ = builderForValue.Build();
  14702. return this;
  14703. }
  14704. public Builder MergeMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  14705. pb::ThrowHelper.ThrowIfNull(value, "value");
  14706. PrepareBuilder();
  14707. if (result.hasMessageField &&
  14708. result.messageField_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
  14709. result.messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.messageField_).MergeFrom(value).BuildPartial();
  14710. } else {
  14711. result.messageField_ = value;
  14712. }
  14713. result.hasMessageField = true;
  14714. return this;
  14715. }
  14716. public Builder ClearMessageField() {
  14717. PrepareBuilder();
  14718. result.hasMessageField = false;
  14719. result.messageField_ = null;
  14720. return this;
  14721. }
  14722. public bool HasStringPieceField {
  14723. get { return result.hasStringPieceField; }
  14724. }
  14725. public string StringPieceField {
  14726. get { return result.StringPieceField; }
  14727. set { SetStringPieceField(value); }
  14728. }
  14729. public Builder SetStringPieceField(string value) {
  14730. pb::ThrowHelper.ThrowIfNull(value, "value");
  14731. PrepareBuilder();
  14732. result.hasStringPieceField = true;
  14733. result.stringPieceField_ = value;
  14734. return this;
  14735. }
  14736. public Builder ClearStringPieceField() {
  14737. PrepareBuilder();
  14738. result.hasStringPieceField = false;
  14739. result.stringPieceField_ = "";
  14740. return this;
  14741. }
  14742. public bool HasCordField {
  14743. get { return result.hasCordField; }
  14744. }
  14745. public string CordField {
  14746. get { return result.CordField; }
  14747. set { SetCordField(value); }
  14748. }
  14749. public Builder SetCordField(string value) {
  14750. pb::ThrowHelper.ThrowIfNull(value, "value");
  14751. PrepareBuilder();
  14752. result.hasCordField = true;
  14753. result.cordField_ = value;
  14754. return this;
  14755. }
  14756. public Builder ClearCordField() {
  14757. PrepareBuilder();
  14758. result.hasCordField = false;
  14759. result.cordField_ = "";
  14760. return this;
  14761. }
  14762. public pbc::IPopsicleList<int> RepeatedPrimitiveFieldList {
  14763. get { return PrepareBuilder().repeatedPrimitiveField_; }
  14764. }
  14765. public int RepeatedPrimitiveFieldCount {
  14766. get { return result.RepeatedPrimitiveFieldCount; }
  14767. }
  14768. public int GetRepeatedPrimitiveField(int index) {
  14769. return result.GetRepeatedPrimitiveField(index);
  14770. }
  14771. public Builder SetRepeatedPrimitiveField(int index, int value) {
  14772. PrepareBuilder();
  14773. result.repeatedPrimitiveField_[index] = value;
  14774. return this;
  14775. }
  14776. public Builder AddRepeatedPrimitiveField(int value) {
  14777. PrepareBuilder();
  14778. result.repeatedPrimitiveField_.Add(value);
  14779. return this;
  14780. }
  14781. public Builder AddRangeRepeatedPrimitiveField(scg::IEnumerable<int> values) {
  14782. PrepareBuilder();
  14783. result.repeatedPrimitiveField_.Add(values);
  14784. return this;
  14785. }
  14786. public Builder ClearRepeatedPrimitiveField() {
  14787. PrepareBuilder();
  14788. result.repeatedPrimitiveField_.Clear();
  14789. return this;
  14790. }
  14791. public pbc::IPopsicleList<string> RepeatedStringFieldList {
  14792. get { return PrepareBuilder().repeatedStringField_; }
  14793. }
  14794. public int RepeatedStringFieldCount {
  14795. get { return result.RepeatedStringFieldCount; }
  14796. }
  14797. public string GetRepeatedStringField(int index) {
  14798. return result.GetRepeatedStringField(index);
  14799. }
  14800. public Builder SetRepeatedStringField(int index, string value) {
  14801. pb::ThrowHelper.ThrowIfNull(value, "value");
  14802. PrepareBuilder();
  14803. result.repeatedStringField_[index] = value;
  14804. return this;
  14805. }
  14806. public Builder AddRepeatedStringField(string value) {
  14807. pb::ThrowHelper.ThrowIfNull(value, "value");
  14808. PrepareBuilder();
  14809. result.repeatedStringField_.Add(value);
  14810. return this;
  14811. }
  14812. public Builder AddRangeRepeatedStringField(scg::IEnumerable<string> values) {
  14813. PrepareBuilder();
  14814. result.repeatedStringField_.Add(values);
  14815. return this;
  14816. }
  14817. public Builder ClearRepeatedStringField() {
  14818. PrepareBuilder();
  14819. result.repeatedStringField_.Clear();
  14820. return this;
  14821. }
  14822. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList {
  14823. get { return PrepareBuilder().repeatedEnumField_; }
  14824. }
  14825. public int RepeatedEnumFieldCount {
  14826. get { return result.RepeatedEnumFieldCount; }
  14827. }
  14828. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) {
  14829. return result.GetRepeatedEnumField(index);
  14830. }
  14831. public Builder SetRepeatedEnumField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  14832. PrepareBuilder();
  14833. result.repeatedEnumField_[index] = value;
  14834. return this;
  14835. }
  14836. public Builder AddRepeatedEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  14837. PrepareBuilder();
  14838. result.repeatedEnumField_.Add(value);
  14839. return this;
  14840. }
  14841. public Builder AddRangeRepeatedEnumField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
  14842. PrepareBuilder();
  14843. result.repeatedEnumField_.Add(values);
  14844. return this;
  14845. }
  14846. public Builder ClearRepeatedEnumField() {
  14847. PrepareBuilder();
  14848. result.repeatedEnumField_.Clear();
  14849. return this;
  14850. }
  14851. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList {
  14852. get { return PrepareBuilder().repeatedMessageField_; }
  14853. }
  14854. public int RepeatedMessageFieldCount {
  14855. get { return result.RepeatedMessageFieldCount; }
  14856. }
  14857. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) {
  14858. return result.GetRepeatedMessageField(index);
  14859. }
  14860. public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  14861. pb::ThrowHelper.ThrowIfNull(value, "value");
  14862. PrepareBuilder();
  14863. result.repeatedMessageField_[index] = value;
  14864. return this;
  14865. }
  14866. public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  14867. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  14868. PrepareBuilder();
  14869. result.repeatedMessageField_[index] = builderForValue.Build();
  14870. return this;
  14871. }
  14872. public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  14873. pb::ThrowHelper.ThrowIfNull(value, "value");
  14874. PrepareBuilder();
  14875. result.repeatedMessageField_.Add(value);
  14876. return this;
  14877. }
  14878. public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  14879. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  14880. PrepareBuilder();
  14881. result.repeatedMessageField_.Add(builderForValue.Build());
  14882. return this;
  14883. }
  14884. public Builder AddRangeRepeatedMessageField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
  14885. PrepareBuilder();
  14886. result.repeatedMessageField_.Add(values);
  14887. return this;
  14888. }
  14889. public Builder ClearRepeatedMessageField() {
  14890. PrepareBuilder();
  14891. result.repeatedMessageField_.Clear();
  14892. return this;
  14893. }
  14894. public pbc::IPopsicleList<string> RepeatedStringPieceFieldList {
  14895. get { return PrepareBuilder().repeatedStringPieceField_; }
  14896. }
  14897. public int RepeatedStringPieceFieldCount {
  14898. get { return result.RepeatedStringPieceFieldCount; }
  14899. }
  14900. public string GetRepeatedStringPieceField(int index) {
  14901. return result.GetRepeatedStringPieceField(index);
  14902. }
  14903. public Builder SetRepeatedStringPieceField(int index, string value) {
  14904. pb::ThrowHelper.ThrowIfNull(value, "value");
  14905. PrepareBuilder();
  14906. result.repeatedStringPieceField_[index] = value;
  14907. return this;
  14908. }
  14909. public Builder AddRepeatedStringPieceField(string value) {
  14910. pb::ThrowHelper.ThrowIfNull(value, "value");
  14911. PrepareBuilder();
  14912. result.repeatedStringPieceField_.Add(value);
  14913. return this;
  14914. }
  14915. public Builder AddRangeRepeatedStringPieceField(scg::IEnumerable<string> values) {
  14916. PrepareBuilder();
  14917. result.repeatedStringPieceField_.Add(values);
  14918. return this;
  14919. }
  14920. public Builder ClearRepeatedStringPieceField() {
  14921. PrepareBuilder();
  14922. result.repeatedStringPieceField_.Clear();
  14923. return this;
  14924. }
  14925. public pbc::IPopsicleList<string> RepeatedCordFieldList {
  14926. get { return PrepareBuilder().repeatedCordField_; }
  14927. }
  14928. public int RepeatedCordFieldCount {
  14929. get { return result.RepeatedCordFieldCount; }
  14930. }
  14931. public string GetRepeatedCordField(int index) {
  14932. return result.GetRepeatedCordField(index);
  14933. }
  14934. public Builder SetRepeatedCordField(int index, string value) {
  14935. pb::ThrowHelper.ThrowIfNull(value, "value");
  14936. PrepareBuilder();
  14937. result.repeatedCordField_[index] = value;
  14938. return this;
  14939. }
  14940. public Builder AddRepeatedCordField(string value) {
  14941. pb::ThrowHelper.ThrowIfNull(value, "value");
  14942. PrepareBuilder();
  14943. result.repeatedCordField_.Add(value);
  14944. return this;
  14945. }
  14946. public Builder AddRangeRepeatedCordField(scg::IEnumerable<string> values) {
  14947. PrepareBuilder();
  14948. result.repeatedCordField_.Add(values);
  14949. return this;
  14950. }
  14951. public Builder ClearRepeatedCordField() {
  14952. PrepareBuilder();
  14953. result.repeatedCordField_.Clear();
  14954. return this;
  14955. }
  14956. }
  14957. static TestCamelCaseFieldNames() {
  14958. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  14959. }
  14960. }
  14961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14962. public sealed partial class TestFieldOrderings : pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder> {
  14963. private TestFieldOrderings() { }
  14964. private static readonly TestFieldOrderings defaultInstance = new TestFieldOrderings().MakeReadOnly();
  14965. private static readonly string[] _testFieldOrderingsFieldNames = new string[] { "my_float", "my_int", "my_string", "optional_nested_message" };
  14966. private static readonly uint[] _testFieldOrderingsFieldTags = new uint[] { 813, 8, 90, 1602 };
  14967. public static TestFieldOrderings DefaultInstance {
  14968. get { return defaultInstance; }
  14969. }
  14970. public override TestFieldOrderings DefaultInstanceForType {
  14971. get { return DefaultInstance; }
  14972. }
  14973. protected override TestFieldOrderings ThisMessage {
  14974. get { return this; }
  14975. }
  14976. public static pbd::MessageDescriptor Descriptor {
  14977. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestFieldOrderings__Descriptor; }
  14978. }
  14979. protected override pb::FieldAccess.FieldAccessorTable<TestFieldOrderings, TestFieldOrderings.Builder> InternalFieldAccessors {
  14980. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; }
  14981. }
  14982. #region Nested types
  14983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14984. public static partial class Types {
  14985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14986. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  14987. private NestedMessage() { }
  14988. private static readonly NestedMessage defaultInstance = new NestedMessage().MakeReadOnly();
  14989. private static readonly string[] _nestedMessageFieldNames = new string[] { "bb", "oo" };
  14990. private static readonly uint[] _nestedMessageFieldTags = new uint[] { 8, 16 };
  14991. public static NestedMessage DefaultInstance {
  14992. get { return defaultInstance; }
  14993. }
  14994. public override NestedMessage DefaultInstanceForType {
  14995. get { return DefaultInstance; }
  14996. }
  14997. protected override NestedMessage ThisMessage {
  14998. get { return this; }
  14999. }
  15000. public static pbd::MessageDescriptor Descriptor {
  15001. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__Descriptor; }
  15002. }
  15003. protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
  15004. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__FieldAccessorTable; }
  15005. }
  15006. public const int OoFieldNumber = 2;
  15007. private bool hasOo;
  15008. private long oo_;
  15009. public bool HasOo {
  15010. get { return hasOo; }
  15011. }
  15012. public long Oo {
  15013. get { return oo_; }
  15014. }
  15015. public const int BbFieldNumber = 1;
  15016. private bool hasBb;
  15017. private int bb_;
  15018. public bool HasBb {
  15019. get { return hasBb; }
  15020. }
  15021. public int Bb {
  15022. get { return bb_; }
  15023. }
  15024. public override bool IsInitialized {
  15025. get {
  15026. return true;
  15027. }
  15028. }
  15029. public override void WriteTo(pb::ICodedOutputStream output) {
  15030. CalcSerializedSize();
  15031. string[] field_names = _nestedMessageFieldNames;
  15032. if (hasBb) {
  15033. output.WriteInt32(1, field_names[0], Bb);
  15034. }
  15035. if (hasOo) {
  15036. output.WriteInt64(2, field_names[1], Oo);
  15037. }
  15038. UnknownFields.WriteTo(output);
  15039. }
  15040. private int memoizedSerializedSize = -1;
  15041. public override int SerializedSize {
  15042. get {
  15043. int size = memoizedSerializedSize;
  15044. if (size != -1) return size;
  15045. return CalcSerializedSize();
  15046. }
  15047. }
  15048. private int CalcSerializedSize() {
  15049. int size = memoizedSerializedSize;
  15050. if (size != -1) return size;
  15051. size = 0;
  15052. if (hasOo) {
  15053. size += pb::CodedOutputStream.ComputeInt64Size(2, Oo);
  15054. }
  15055. if (hasBb) {
  15056. size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
  15057. }
  15058. size += UnknownFields.SerializedSize;
  15059. memoizedSerializedSize = size;
  15060. return size;
  15061. }
  15062. public static NestedMessage ParseFrom(pb::ByteString data) {
  15063. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  15064. }
  15065. public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  15066. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  15067. }
  15068. public static NestedMessage ParseFrom(byte[] data) {
  15069. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  15070. }
  15071. public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  15072. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  15073. }
  15074. public static NestedMessage ParseFrom(global::System.IO.Stream input) {
  15075. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  15076. }
  15077. public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  15078. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  15079. }
  15080. public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
  15081. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  15082. }
  15083. public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  15084. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  15085. }
  15086. public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
  15087. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  15088. }
  15089. public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  15090. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  15091. }
  15092. private NestedMessage MakeReadOnly() {
  15093. return this;
  15094. }
  15095. public static Builder CreateBuilder() { return new Builder(); }
  15096. public override Builder ToBuilder() { return CreateBuilder(this); }
  15097. public override Builder CreateBuilderForType() { return new Builder(); }
  15098. public static Builder CreateBuilder(NestedMessage prototype) {
  15099. return new Builder(prototype);
  15100. }
  15101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15102. public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> {
  15103. protected override Builder ThisBuilder {
  15104. get { return this; }
  15105. }
  15106. public Builder() {
  15107. result = DefaultInstance;
  15108. resultIsReadOnly = true;
  15109. }
  15110. internal Builder(NestedMessage cloneFrom) {
  15111. result = cloneFrom;
  15112. resultIsReadOnly = true;
  15113. }
  15114. private bool resultIsReadOnly;
  15115. private NestedMessage result;
  15116. private NestedMessage PrepareBuilder() {
  15117. if (resultIsReadOnly) {
  15118. NestedMessage original = result;
  15119. result = new NestedMessage();
  15120. resultIsReadOnly = false;
  15121. MergeFrom(original);
  15122. }
  15123. return result;
  15124. }
  15125. public override bool IsInitialized {
  15126. get { return result.IsInitialized; }
  15127. }
  15128. protected override NestedMessage MessageBeingBuilt {
  15129. get { return PrepareBuilder(); }
  15130. }
  15131. public override Builder Clear() {
  15132. result = DefaultInstance;
  15133. resultIsReadOnly = true;
  15134. return this;
  15135. }
  15136. public override Builder Clone() {
  15137. if (resultIsReadOnly) {
  15138. return new Builder(result);
  15139. } else {
  15140. return new Builder().MergeFrom(result);
  15141. }
  15142. }
  15143. public override pbd::MessageDescriptor DescriptorForType {
  15144. get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.Descriptor; }
  15145. }
  15146. public override NestedMessage DefaultInstanceForType {
  15147. get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.DefaultInstance; }
  15148. }
  15149. public override NestedMessage BuildPartial() {
  15150. if (resultIsReadOnly) {
  15151. return result;
  15152. }
  15153. resultIsReadOnly = true;
  15154. return result.MakeReadOnly();
  15155. }
  15156. public override Builder MergeFrom(pb::IMessage other) {
  15157. if (other is NestedMessage) {
  15158. return MergeFrom((NestedMessage) other);
  15159. } else {
  15160. base.MergeFrom(other);
  15161. return this;
  15162. }
  15163. }
  15164. public override Builder MergeFrom(NestedMessage other) {
  15165. if (other == global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.DefaultInstance) return this;
  15166. PrepareBuilder();
  15167. if (other.HasOo) {
  15168. Oo = other.Oo;
  15169. }
  15170. if (other.HasBb) {
  15171. Bb = other.Bb;
  15172. }
  15173. this.MergeUnknownFields(other.UnknownFields);
  15174. return this;
  15175. }
  15176. public override Builder MergeFrom(pb::ICodedInputStream input) {
  15177. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  15178. }
  15179. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  15180. PrepareBuilder();
  15181. pb::UnknownFieldSet.Builder unknownFields = null;
  15182. uint tag;
  15183. string field_name;
  15184. while (input.ReadTag(out tag, out field_name)) {
  15185. if(tag == 0 && field_name != null) {
  15186. int field_ordinal = global::System.Array.BinarySearch(_nestedMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  15187. if(field_ordinal >= 0)
  15188. tag = _nestedMessageFieldTags[field_ordinal];
  15189. else {
  15190. if (unknownFields == null) {
  15191. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  15192. }
  15193. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  15194. continue;
  15195. }
  15196. }
  15197. switch (tag) {
  15198. case 0: {
  15199. throw pb::InvalidProtocolBufferException.InvalidTag();
  15200. }
  15201. default: {
  15202. if (pb::WireFormat.IsEndGroupTag(tag)) {
  15203. if (unknownFields != null) {
  15204. this.UnknownFields = unknownFields.Build();
  15205. }
  15206. return this;
  15207. }
  15208. if (unknownFields == null) {
  15209. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  15210. }
  15211. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  15212. break;
  15213. }
  15214. case 8: {
  15215. result.hasBb = input.ReadInt32(ref result.bb_);
  15216. break;
  15217. }
  15218. case 16: {
  15219. result.hasOo = input.ReadInt64(ref result.oo_);
  15220. break;
  15221. }
  15222. }
  15223. }
  15224. if (unknownFields != null) {
  15225. this.UnknownFields = unknownFields.Build();
  15226. }
  15227. return this;
  15228. }
  15229. public bool HasOo {
  15230. get { return result.hasOo; }
  15231. }
  15232. public long Oo {
  15233. get { return result.Oo; }
  15234. set { SetOo(value); }
  15235. }
  15236. public Builder SetOo(long value) {
  15237. PrepareBuilder();
  15238. result.hasOo = true;
  15239. result.oo_ = value;
  15240. return this;
  15241. }
  15242. public Builder ClearOo() {
  15243. PrepareBuilder();
  15244. result.hasOo = false;
  15245. result.oo_ = 0L;
  15246. return this;
  15247. }
  15248. public bool HasBb {
  15249. get { return result.hasBb; }
  15250. }
  15251. public int Bb {
  15252. get { return result.Bb; }
  15253. set { SetBb(value); }
  15254. }
  15255. public Builder SetBb(int value) {
  15256. PrepareBuilder();
  15257. result.hasBb = true;
  15258. result.bb_ = value;
  15259. return this;
  15260. }
  15261. public Builder ClearBb() {
  15262. PrepareBuilder();
  15263. result.hasBb = false;
  15264. result.bb_ = 0;
  15265. return this;
  15266. }
  15267. }
  15268. static NestedMessage() {
  15269. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  15270. }
  15271. }
  15272. }
  15273. #endregion
  15274. public const int MyStringFieldNumber = 11;
  15275. private bool hasMyString;
  15276. private string myString_ = "";
  15277. public bool HasMyString {
  15278. get { return hasMyString; }
  15279. }
  15280. public string MyString {
  15281. get { return myString_; }
  15282. }
  15283. public const int MyIntFieldNumber = 1;
  15284. private bool hasMyInt;
  15285. private long myInt_;
  15286. public bool HasMyInt {
  15287. get { return hasMyInt; }
  15288. }
  15289. public long MyInt {
  15290. get { return myInt_; }
  15291. }
  15292. public const int MyFloatFieldNumber = 101;
  15293. private bool hasMyFloat;
  15294. private float myFloat_;
  15295. public bool HasMyFloat {
  15296. get { return hasMyFloat; }
  15297. }
  15298. public float MyFloat {
  15299. get { return myFloat_; }
  15300. }
  15301. public const int OptionalNestedMessageFieldNumber = 200;
  15302. private bool hasOptionalNestedMessage;
  15303. private global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage optionalNestedMessage_;
  15304. public bool HasOptionalNestedMessage {
  15305. get { return hasOptionalNestedMessage; }
  15306. }
  15307. public global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage OptionalNestedMessage {
  15308. get { return optionalNestedMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.DefaultInstance; }
  15309. }
  15310. public override bool IsInitialized {
  15311. get {
  15312. if (!ExtensionsAreInitialized) return false;
  15313. return true;
  15314. }
  15315. }
  15316. public override void WriteTo(pb::ICodedOutputStream output) {
  15317. CalcSerializedSize();
  15318. string[] field_names = _testFieldOrderingsFieldNames;
  15319. pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  15320. if (hasMyInt) {
  15321. output.WriteInt64(1, field_names[1], MyInt);
  15322. }
  15323. extensionWriter.WriteUntil(11, output);
  15324. if (hasMyString) {
  15325. output.WriteString(11, field_names[2], MyString);
  15326. }
  15327. extensionWriter.WriteUntil(101, output);
  15328. if (hasMyFloat) {
  15329. output.WriteFloat(101, field_names[0], MyFloat);
  15330. }
  15331. if (hasOptionalNestedMessage) {
  15332. output.WriteMessage(200, field_names[3], OptionalNestedMessage);
  15333. }
  15334. UnknownFields.WriteTo(output);
  15335. }
  15336. private int memoizedSerializedSize = -1;
  15337. public override int SerializedSize {
  15338. get {
  15339. int size = memoizedSerializedSize;
  15340. if (size != -1) return size;
  15341. return CalcSerializedSize();
  15342. }
  15343. }
  15344. private int CalcSerializedSize() {
  15345. int size = memoizedSerializedSize;
  15346. if (size != -1) return size;
  15347. size = 0;
  15348. if (hasMyString) {
  15349. size += pb::CodedOutputStream.ComputeStringSize(11, MyString);
  15350. }
  15351. if (hasMyInt) {
  15352. size += pb::CodedOutputStream.ComputeInt64Size(1, MyInt);
  15353. }
  15354. if (hasMyFloat) {
  15355. size += pb::CodedOutputStream.ComputeFloatSize(101, MyFloat);
  15356. }
  15357. if (hasOptionalNestedMessage) {
  15358. size += pb::CodedOutputStream.ComputeMessageSize(200, OptionalNestedMessage);
  15359. }
  15360. size += ExtensionsSerializedSize;
  15361. size += UnknownFields.SerializedSize;
  15362. memoizedSerializedSize = size;
  15363. return size;
  15364. }
  15365. public static TestFieldOrderings ParseFrom(pb::ByteString data) {
  15366. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  15367. }
  15368. public static TestFieldOrderings ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  15369. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  15370. }
  15371. public static TestFieldOrderings ParseFrom(byte[] data) {
  15372. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  15373. }
  15374. public static TestFieldOrderings ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  15375. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  15376. }
  15377. public static TestFieldOrderings ParseFrom(global::System.IO.Stream input) {
  15378. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  15379. }
  15380. public static TestFieldOrderings ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  15381. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  15382. }
  15383. public static TestFieldOrderings ParseDelimitedFrom(global::System.IO.Stream input) {
  15384. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  15385. }
  15386. public static TestFieldOrderings ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  15387. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  15388. }
  15389. public static TestFieldOrderings ParseFrom(pb::ICodedInputStream input) {
  15390. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  15391. }
  15392. public static TestFieldOrderings ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  15393. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  15394. }
  15395. private TestFieldOrderings MakeReadOnly() {
  15396. return this;
  15397. }
  15398. public static Builder CreateBuilder() { return new Builder(); }
  15399. public override Builder ToBuilder() { return CreateBuilder(this); }
  15400. public override Builder CreateBuilderForType() { return new Builder(); }
  15401. public static Builder CreateBuilder(TestFieldOrderings prototype) {
  15402. return new Builder(prototype);
  15403. }
  15404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15405. public sealed partial class Builder : pb::ExtendableBuilder<TestFieldOrderings, Builder> {
  15406. protected override Builder ThisBuilder {
  15407. get { return this; }
  15408. }
  15409. public Builder() {
  15410. result = DefaultInstance;
  15411. resultIsReadOnly = true;
  15412. }
  15413. internal Builder(TestFieldOrderings cloneFrom) {
  15414. result = cloneFrom;
  15415. resultIsReadOnly = true;
  15416. }
  15417. private bool resultIsReadOnly;
  15418. private TestFieldOrderings result;
  15419. private TestFieldOrderings PrepareBuilder() {
  15420. if (resultIsReadOnly) {
  15421. TestFieldOrderings original = result;
  15422. result = new TestFieldOrderings();
  15423. resultIsReadOnly = false;
  15424. MergeFrom(original);
  15425. }
  15426. return result;
  15427. }
  15428. public override bool IsInitialized {
  15429. get { return result.IsInitialized; }
  15430. }
  15431. protected override TestFieldOrderings MessageBeingBuilt {
  15432. get { return PrepareBuilder(); }
  15433. }
  15434. public override Builder Clear() {
  15435. result = DefaultInstance;
  15436. resultIsReadOnly = true;
  15437. return this;
  15438. }
  15439. public override Builder Clone() {
  15440. if (resultIsReadOnly) {
  15441. return new Builder(result);
  15442. } else {
  15443. return new Builder().MergeFrom(result);
  15444. }
  15445. }
  15446. public override pbd::MessageDescriptor DescriptorForType {
  15447. get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Descriptor; }
  15448. }
  15449. public override TestFieldOrderings DefaultInstanceForType {
  15450. get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.DefaultInstance; }
  15451. }
  15452. public override TestFieldOrderings BuildPartial() {
  15453. if (resultIsReadOnly) {
  15454. return result;
  15455. }
  15456. resultIsReadOnly = true;
  15457. return result.MakeReadOnly();
  15458. }
  15459. public override Builder MergeFrom(pb::IMessage other) {
  15460. if (other is TestFieldOrderings) {
  15461. return MergeFrom((TestFieldOrderings) other);
  15462. } else {
  15463. base.MergeFrom(other);
  15464. return this;
  15465. }
  15466. }
  15467. public override Builder MergeFrom(TestFieldOrderings other) {
  15468. if (other == global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.DefaultInstance) return this;
  15469. PrepareBuilder();
  15470. if (other.HasMyString) {
  15471. MyString = other.MyString;
  15472. }
  15473. if (other.HasMyInt) {
  15474. MyInt = other.MyInt;
  15475. }
  15476. if (other.HasMyFloat) {
  15477. MyFloat = other.MyFloat;
  15478. }
  15479. if (other.HasOptionalNestedMessage) {
  15480. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  15481. }
  15482. this.MergeExtensionFields(other);
  15483. this.MergeUnknownFields(other.UnknownFields);
  15484. return this;
  15485. }
  15486. public override Builder MergeFrom(pb::ICodedInputStream input) {
  15487. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  15488. }
  15489. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  15490. PrepareBuilder();
  15491. pb::UnknownFieldSet.Builder unknownFields = null;
  15492. uint tag;
  15493. string field_name;
  15494. while (input.ReadTag(out tag, out field_name)) {
  15495. if(tag == 0 && field_name != null) {
  15496. int field_ordinal = global::System.Array.BinarySearch(_testFieldOrderingsFieldNames, field_name, global::System.StringComparer.Ordinal);
  15497. if(field_ordinal >= 0)
  15498. tag = _testFieldOrderingsFieldTags[field_ordinal];
  15499. else {
  15500. if (unknownFields == null) {
  15501. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  15502. }
  15503. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  15504. continue;
  15505. }
  15506. }
  15507. switch (tag) {
  15508. case 0: {
  15509. throw pb::InvalidProtocolBufferException.InvalidTag();
  15510. }
  15511. default: {
  15512. if (pb::WireFormat.IsEndGroupTag(tag)) {
  15513. if (unknownFields != null) {
  15514. this.UnknownFields = unknownFields.Build();
  15515. }
  15516. return this;
  15517. }
  15518. if (unknownFields == null) {
  15519. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  15520. }
  15521. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  15522. break;
  15523. }
  15524. case 8: {
  15525. result.hasMyInt = input.ReadInt64(ref result.myInt_);
  15526. break;
  15527. }
  15528. case 90: {
  15529. result.hasMyString = input.ReadString(ref result.myString_);
  15530. break;
  15531. }
  15532. case 813: {
  15533. result.hasMyFloat = input.ReadFloat(ref result.myFloat_);
  15534. break;
  15535. }
  15536. case 1602: {
  15537. global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.CreateBuilder();
  15538. if (result.hasOptionalNestedMessage) {
  15539. subBuilder.MergeFrom(OptionalNestedMessage);
  15540. }
  15541. input.ReadMessage(subBuilder, extensionRegistry);
  15542. OptionalNestedMessage = subBuilder.BuildPartial();
  15543. break;
  15544. }
  15545. }
  15546. }
  15547. if (unknownFields != null) {
  15548. this.UnknownFields = unknownFields.Build();
  15549. }
  15550. return this;
  15551. }
  15552. public bool HasMyString {
  15553. get { return result.hasMyString; }
  15554. }
  15555. public string MyString {
  15556. get { return result.MyString; }
  15557. set { SetMyString(value); }
  15558. }
  15559. public Builder SetMyString(string value) {
  15560. pb::ThrowHelper.ThrowIfNull(value, "value");
  15561. PrepareBuilder();
  15562. result.hasMyString = true;
  15563. result.myString_ = value;
  15564. return this;
  15565. }
  15566. public Builder ClearMyString() {
  15567. PrepareBuilder();
  15568. result.hasMyString = false;
  15569. result.myString_ = "";
  15570. return this;
  15571. }
  15572. public bool HasMyInt {
  15573. get { return result.hasMyInt; }
  15574. }
  15575. public long MyInt {
  15576. get { return result.MyInt; }
  15577. set { SetMyInt(value); }
  15578. }
  15579. public Builder SetMyInt(long value) {
  15580. PrepareBuilder();
  15581. result.hasMyInt = true;
  15582. result.myInt_ = value;
  15583. return this;
  15584. }
  15585. public Builder ClearMyInt() {
  15586. PrepareBuilder();
  15587. result.hasMyInt = false;
  15588. result.myInt_ = 0L;
  15589. return this;
  15590. }
  15591. public bool HasMyFloat {
  15592. get { return result.hasMyFloat; }
  15593. }
  15594. public float MyFloat {
  15595. get { return result.MyFloat; }
  15596. set { SetMyFloat(value); }
  15597. }
  15598. public Builder SetMyFloat(float value) {
  15599. PrepareBuilder();
  15600. result.hasMyFloat = true;
  15601. result.myFloat_ = value;
  15602. return this;
  15603. }
  15604. public Builder ClearMyFloat() {
  15605. PrepareBuilder();
  15606. result.hasMyFloat = false;
  15607. result.myFloat_ = 0F;
  15608. return this;
  15609. }
  15610. public bool HasOptionalNestedMessage {
  15611. get { return result.hasOptionalNestedMessage; }
  15612. }
  15613. public global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage OptionalNestedMessage {
  15614. get { return result.OptionalNestedMessage; }
  15615. set { SetOptionalNestedMessage(value); }
  15616. }
  15617. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage value) {
  15618. pb::ThrowHelper.ThrowIfNull(value, "value");
  15619. PrepareBuilder();
  15620. result.hasOptionalNestedMessage = true;
  15621. result.optionalNestedMessage_ = value;
  15622. return this;
  15623. }
  15624. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.Builder builderForValue) {
  15625. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  15626. PrepareBuilder();
  15627. result.hasOptionalNestedMessage = true;
  15628. result.optionalNestedMessage_ = builderForValue.Build();
  15629. return this;
  15630. }
  15631. public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage value) {
  15632. pb::ThrowHelper.ThrowIfNull(value, "value");
  15633. PrepareBuilder();
  15634. if (result.hasOptionalNestedMessage &&
  15635. result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.DefaultInstance) {
  15636. result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  15637. } else {
  15638. result.optionalNestedMessage_ = value;
  15639. }
  15640. result.hasOptionalNestedMessage = true;
  15641. return this;
  15642. }
  15643. public Builder ClearOptionalNestedMessage() {
  15644. PrepareBuilder();
  15645. result.hasOptionalNestedMessage = false;
  15646. result.optionalNestedMessage_ = null;
  15647. return this;
  15648. }
  15649. }
  15650. static TestFieldOrderings() {
  15651. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  15652. }
  15653. }
  15654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15655. public sealed partial class TestExtremeDefaultValues : pb::GeneratedMessage<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> {
  15656. private TestExtremeDefaultValues() { }
  15657. private static readonly TestExtremeDefaultValues defaultInstance = new TestExtremeDefaultValues().MakeReadOnly();
  15658. private static readonly string[] _testExtremeDefaultValuesFieldNames = new string[] { "bytes_with_zero", "cord_with_zero", "cpp_trigraph", "escaped_bytes", "inf_double", "inf_float", "large_float", "large_uint32", "large_uint64", "nan_double", "nan_float", "neg_inf_double", "neg_inf_float", "negative_float", "negative_one_float", "one_float", "really_small_int32", "really_small_int64", "replacement_string", "small_float", "small_int32", "small_int64", "small_negative_float", "string_piece_with_zero", "string_with_zero", "utf8_string", "zero_float" };
  15659. private static readonly uint[] _testExtremeDefaultValuesFieldTags = new uint[] { 194, 210, 162, 10, 113, 141, 101, 16, 24, 129, 157, 121, 149, 93, 85, 69, 168, 176, 218, 77, 32, 40, 109, 202, 186, 50, 61 };
  15660. public static TestExtremeDefaultValues DefaultInstance {
  15661. get { return defaultInstance; }
  15662. }
  15663. public override TestExtremeDefaultValues DefaultInstanceForType {
  15664. get { return DefaultInstance; }
  15665. }
  15666. protected override TestExtremeDefaultValues ThisMessage {
  15667. get { return this; }
  15668. }
  15669. public static pbd::MessageDescriptor Descriptor {
  15670. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor; }
  15671. }
  15672. protected override pb::FieldAccess.FieldAccessorTable<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> InternalFieldAccessors {
  15673. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable; }
  15674. }
  15675. public const int EscapedBytesFieldNumber = 1;
  15676. private bool hasEscapedBytes;
  15677. private pb::ByteString escapedBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue;
  15678. public bool HasEscapedBytes {
  15679. get { return hasEscapedBytes; }
  15680. }
  15681. public pb::ByteString EscapedBytes {
  15682. get { return escapedBytes_; }
  15683. }
  15684. public const int LargeUint32FieldNumber = 2;
  15685. private bool hasLargeUint32;
  15686. private uint largeUint32_ = 4294967295;
  15687. public bool HasLargeUint32 {
  15688. get { return hasLargeUint32; }
  15689. }
  15690. [global::System.CLSCompliant(false)]
  15691. public uint LargeUint32 {
  15692. get { return largeUint32_; }
  15693. }
  15694. public const int LargeUint64FieldNumber = 3;
  15695. private bool hasLargeUint64;
  15696. private ulong largeUint64_ = 18446744073709551615UL;
  15697. public bool HasLargeUint64 {
  15698. get { return hasLargeUint64; }
  15699. }
  15700. [global::System.CLSCompliant(false)]
  15701. public ulong LargeUint64 {
  15702. get { return largeUint64_; }
  15703. }
  15704. public const int SmallInt32FieldNumber = 4;
  15705. private bool hasSmallInt32;
  15706. private int smallInt32_ = -2147483647;
  15707. public bool HasSmallInt32 {
  15708. get { return hasSmallInt32; }
  15709. }
  15710. public int SmallInt32 {
  15711. get { return smallInt32_; }
  15712. }
  15713. public const int SmallInt64FieldNumber = 5;
  15714. private bool hasSmallInt64;
  15715. private long smallInt64_ = -9223372036854775807L;
  15716. public bool HasSmallInt64 {
  15717. get { return hasSmallInt64; }
  15718. }
  15719. public long SmallInt64 {
  15720. get { return smallInt64_; }
  15721. }
  15722. public const int ReallySmallInt32FieldNumber = 21;
  15723. private bool hasReallySmallInt32;
  15724. private int reallySmallInt32_ = -2147483648;
  15725. public bool HasReallySmallInt32 {
  15726. get { return hasReallySmallInt32; }
  15727. }
  15728. public int ReallySmallInt32 {
  15729. get { return reallySmallInt32_; }
  15730. }
  15731. public const int ReallySmallInt64FieldNumber = 22;
  15732. private bool hasReallySmallInt64;
  15733. private long reallySmallInt64_ = -9223372036854775808L;
  15734. public bool HasReallySmallInt64 {
  15735. get { return hasReallySmallInt64; }
  15736. }
  15737. public long ReallySmallInt64 {
  15738. get { return reallySmallInt64_; }
  15739. }
  15740. public const int Utf8StringFieldNumber = 6;
  15741. private bool hasUtf8String;
  15742. private string utf8String_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[7].DefaultValue;
  15743. public bool HasUtf8String {
  15744. get { return hasUtf8String; }
  15745. }
  15746. public string Utf8String {
  15747. get { return utf8String_; }
  15748. }
  15749. public const int ZeroFloatFieldNumber = 7;
  15750. private bool hasZeroFloat;
  15751. private float zeroFloat_;
  15752. public bool HasZeroFloat {
  15753. get { return hasZeroFloat; }
  15754. }
  15755. public float ZeroFloat {
  15756. get { return zeroFloat_; }
  15757. }
  15758. public const int OneFloatFieldNumber = 8;
  15759. private bool hasOneFloat;
  15760. private float oneFloat_ = 1F;
  15761. public bool HasOneFloat {
  15762. get { return hasOneFloat; }
  15763. }
  15764. public float OneFloat {
  15765. get { return oneFloat_; }
  15766. }
  15767. public const int SmallFloatFieldNumber = 9;
  15768. private bool hasSmallFloat;
  15769. private float smallFloat_ = 1.5F;
  15770. public bool HasSmallFloat {
  15771. get { return hasSmallFloat; }
  15772. }
  15773. public float SmallFloat {
  15774. get { return smallFloat_; }
  15775. }
  15776. public const int NegativeOneFloatFieldNumber = 10;
  15777. private bool hasNegativeOneFloat;
  15778. private float negativeOneFloat_ = -1F;
  15779. public bool HasNegativeOneFloat {
  15780. get { return hasNegativeOneFloat; }
  15781. }
  15782. public float NegativeOneFloat {
  15783. get { return negativeOneFloat_; }
  15784. }
  15785. public const int NegativeFloatFieldNumber = 11;
  15786. private bool hasNegativeFloat;
  15787. private float negativeFloat_ = -1.5F;
  15788. public bool HasNegativeFloat {
  15789. get { return hasNegativeFloat; }
  15790. }
  15791. public float NegativeFloat {
  15792. get { return negativeFloat_; }
  15793. }
  15794. public const int LargeFloatFieldNumber = 12;
  15795. private bool hasLargeFloat;
  15796. private float largeFloat_ = 2e+08F;
  15797. public bool HasLargeFloat {
  15798. get { return hasLargeFloat; }
  15799. }
  15800. public float LargeFloat {
  15801. get { return largeFloat_; }
  15802. }
  15803. public const int SmallNegativeFloatFieldNumber = 13;
  15804. private bool hasSmallNegativeFloat;
  15805. private float smallNegativeFloat_ = -8e-28F;
  15806. public bool HasSmallNegativeFloat {
  15807. get { return hasSmallNegativeFloat; }
  15808. }
  15809. public float SmallNegativeFloat {
  15810. get { return smallNegativeFloat_; }
  15811. }
  15812. public const int InfDoubleFieldNumber = 14;
  15813. private bool hasInfDouble;
  15814. private double infDouble_ = double.PositiveInfinity;
  15815. public bool HasInfDouble {
  15816. get { return hasInfDouble; }
  15817. }
  15818. public double InfDouble {
  15819. get { return infDouble_; }
  15820. }
  15821. public const int NegInfDoubleFieldNumber = 15;
  15822. private bool hasNegInfDouble;
  15823. private double negInfDouble_ = double.NegativeInfinity;
  15824. public bool HasNegInfDouble {
  15825. get { return hasNegInfDouble; }
  15826. }
  15827. public double NegInfDouble {
  15828. get { return negInfDouble_; }
  15829. }
  15830. public const int NanDoubleFieldNumber = 16;
  15831. private bool hasNanDouble;
  15832. private double nanDouble_ = double.NaN;
  15833. public bool HasNanDouble {
  15834. get { return hasNanDouble; }
  15835. }
  15836. public double NanDouble {
  15837. get { return nanDouble_; }
  15838. }
  15839. public const int InfFloatFieldNumber = 17;
  15840. private bool hasInfFloat;
  15841. private float infFloat_ = float.PositiveInfinity;
  15842. public bool HasInfFloat {
  15843. get { return hasInfFloat; }
  15844. }
  15845. public float InfFloat {
  15846. get { return infFloat_; }
  15847. }
  15848. public const int NegInfFloatFieldNumber = 18;
  15849. private bool hasNegInfFloat;
  15850. private float negInfFloat_ = float.NegativeInfinity;
  15851. public bool HasNegInfFloat {
  15852. get { return hasNegInfFloat; }
  15853. }
  15854. public float NegInfFloat {
  15855. get { return negInfFloat_; }
  15856. }
  15857. public const int NanFloatFieldNumber = 19;
  15858. private bool hasNanFloat;
  15859. private float nanFloat_ = float.NaN;
  15860. public bool HasNanFloat {
  15861. get { return hasNanFloat; }
  15862. }
  15863. public float NanFloat {
  15864. get { return nanFloat_; }
  15865. }
  15866. public const int CppTrigraphFieldNumber = 20;
  15867. private bool hasCppTrigraph;
  15868. private string cppTrigraph_ = "? ? ?? ?? ??? ??/ ??-";
  15869. public bool HasCppTrigraph {
  15870. get { return hasCppTrigraph; }
  15871. }
  15872. public string CppTrigraph {
  15873. get { return cppTrigraph_; }
  15874. }
  15875. public const int StringWithZeroFieldNumber = 23;
  15876. private bool hasStringWithZero;
  15877. private string stringWithZero_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[22].DefaultValue;
  15878. public bool HasStringWithZero {
  15879. get { return hasStringWithZero; }
  15880. }
  15881. public string StringWithZero {
  15882. get { return stringWithZero_; }
  15883. }
  15884. public const int BytesWithZeroFieldNumber = 24;
  15885. private bool hasBytesWithZero;
  15886. private pb::ByteString bytesWithZero_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[23].DefaultValue;
  15887. public bool HasBytesWithZero {
  15888. get { return hasBytesWithZero; }
  15889. }
  15890. public pb::ByteString BytesWithZero {
  15891. get { return bytesWithZero_; }
  15892. }
  15893. public const int StringPieceWithZeroFieldNumber = 25;
  15894. private bool hasStringPieceWithZero;
  15895. private string stringPieceWithZero_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[24].DefaultValue;
  15896. public bool HasStringPieceWithZero {
  15897. get { return hasStringPieceWithZero; }
  15898. }
  15899. public string StringPieceWithZero {
  15900. get { return stringPieceWithZero_; }
  15901. }
  15902. public const int CordWithZeroFieldNumber = 26;
  15903. private bool hasCordWithZero;
  15904. private string cordWithZero_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[25].DefaultValue;
  15905. public bool HasCordWithZero {
  15906. get { return hasCordWithZero; }
  15907. }
  15908. public string CordWithZero {
  15909. get { return cordWithZero_; }
  15910. }
  15911. public const int ReplacementStringFieldNumber = 27;
  15912. private bool hasReplacementString;
  15913. private string replacementString_ = "${unknown}";
  15914. public bool HasReplacementString {
  15915. get { return hasReplacementString; }
  15916. }
  15917. public string ReplacementString {
  15918. get { return replacementString_; }
  15919. }
  15920. public override bool IsInitialized {
  15921. get {
  15922. return true;
  15923. }
  15924. }
  15925. public override void WriteTo(pb::ICodedOutputStream output) {
  15926. CalcSerializedSize();
  15927. string[] field_names = _testExtremeDefaultValuesFieldNames;
  15928. if (hasEscapedBytes) {
  15929. output.WriteBytes(1, field_names[3], EscapedBytes);
  15930. }
  15931. if (hasLargeUint32) {
  15932. output.WriteUInt32(2, field_names[7], LargeUint32);
  15933. }
  15934. if (hasLargeUint64) {
  15935. output.WriteUInt64(3, field_names[8], LargeUint64);
  15936. }
  15937. if (hasSmallInt32) {
  15938. output.WriteInt32(4, field_names[20], SmallInt32);
  15939. }
  15940. if (hasSmallInt64) {
  15941. output.WriteInt64(5, field_names[21], SmallInt64);
  15942. }
  15943. if (hasUtf8String) {
  15944. output.WriteString(6, field_names[25], Utf8String);
  15945. }
  15946. if (hasZeroFloat) {
  15947. output.WriteFloat(7, field_names[26], ZeroFloat);
  15948. }
  15949. if (hasOneFloat) {
  15950. output.WriteFloat(8, field_names[15], OneFloat);
  15951. }
  15952. if (hasSmallFloat) {
  15953. output.WriteFloat(9, field_names[19], SmallFloat);
  15954. }
  15955. if (hasNegativeOneFloat) {
  15956. output.WriteFloat(10, field_names[14], NegativeOneFloat);
  15957. }
  15958. if (hasNegativeFloat) {
  15959. output.WriteFloat(11, field_names[13], NegativeFloat);
  15960. }
  15961. if (hasLargeFloat) {
  15962. output.WriteFloat(12, field_names[6], LargeFloat);
  15963. }
  15964. if (hasSmallNegativeFloat) {
  15965. output.WriteFloat(13, field_names[22], SmallNegativeFloat);
  15966. }
  15967. if (hasInfDouble) {
  15968. output.WriteDouble(14, field_names[4], InfDouble);
  15969. }
  15970. if (hasNegInfDouble) {
  15971. output.WriteDouble(15, field_names[11], NegInfDouble);
  15972. }
  15973. if (hasNanDouble) {
  15974. output.WriteDouble(16, field_names[9], NanDouble);
  15975. }
  15976. if (hasInfFloat) {
  15977. output.WriteFloat(17, field_names[5], InfFloat);
  15978. }
  15979. if (hasNegInfFloat) {
  15980. output.WriteFloat(18, field_names[12], NegInfFloat);
  15981. }
  15982. if (hasNanFloat) {
  15983. output.WriteFloat(19, field_names[10], NanFloat);
  15984. }
  15985. if (hasCppTrigraph) {
  15986. output.WriteString(20, field_names[2], CppTrigraph);
  15987. }
  15988. if (hasReallySmallInt32) {
  15989. output.WriteInt32(21, field_names[16], ReallySmallInt32);
  15990. }
  15991. if (hasReallySmallInt64) {
  15992. output.WriteInt64(22, field_names[17], ReallySmallInt64);
  15993. }
  15994. if (hasStringWithZero) {
  15995. output.WriteString(23, field_names[24], StringWithZero);
  15996. }
  15997. if (hasBytesWithZero) {
  15998. output.WriteBytes(24, field_names[0], BytesWithZero);
  15999. }
  16000. if (hasStringPieceWithZero) {
  16001. output.WriteString(25, field_names[23], StringPieceWithZero);
  16002. }
  16003. if (hasCordWithZero) {
  16004. output.WriteString(26, field_names[1], CordWithZero);
  16005. }
  16006. if (hasReplacementString) {
  16007. output.WriteString(27, field_names[18], ReplacementString);
  16008. }
  16009. UnknownFields.WriteTo(output);
  16010. }
  16011. private int memoizedSerializedSize = -1;
  16012. public override int SerializedSize {
  16013. get {
  16014. int size = memoizedSerializedSize;
  16015. if (size != -1) return size;
  16016. return CalcSerializedSize();
  16017. }
  16018. }
  16019. private int CalcSerializedSize() {
  16020. int size = memoizedSerializedSize;
  16021. if (size != -1) return size;
  16022. size = 0;
  16023. if (hasEscapedBytes) {
  16024. size += pb::CodedOutputStream.ComputeBytesSize(1, EscapedBytes);
  16025. }
  16026. if (hasLargeUint32) {
  16027. size += pb::CodedOutputStream.ComputeUInt32Size(2, LargeUint32);
  16028. }
  16029. if (hasLargeUint64) {
  16030. size += pb::CodedOutputStream.ComputeUInt64Size(3, LargeUint64);
  16031. }
  16032. if (hasSmallInt32) {
  16033. size += pb::CodedOutputStream.ComputeInt32Size(4, SmallInt32);
  16034. }
  16035. if (hasSmallInt64) {
  16036. size += pb::CodedOutputStream.ComputeInt64Size(5, SmallInt64);
  16037. }
  16038. if (hasReallySmallInt32) {
  16039. size += pb::CodedOutputStream.ComputeInt32Size(21, ReallySmallInt32);
  16040. }
  16041. if (hasReallySmallInt64) {
  16042. size += pb::CodedOutputStream.ComputeInt64Size(22, ReallySmallInt64);
  16043. }
  16044. if (hasUtf8String) {
  16045. size += pb::CodedOutputStream.ComputeStringSize(6, Utf8String);
  16046. }
  16047. if (hasZeroFloat) {
  16048. size += pb::CodedOutputStream.ComputeFloatSize(7, ZeroFloat);
  16049. }
  16050. if (hasOneFloat) {
  16051. size += pb::CodedOutputStream.ComputeFloatSize(8, OneFloat);
  16052. }
  16053. if (hasSmallFloat) {
  16054. size += pb::CodedOutputStream.ComputeFloatSize(9, SmallFloat);
  16055. }
  16056. if (hasNegativeOneFloat) {
  16057. size += pb::CodedOutputStream.ComputeFloatSize(10, NegativeOneFloat);
  16058. }
  16059. if (hasNegativeFloat) {
  16060. size += pb::CodedOutputStream.ComputeFloatSize(11, NegativeFloat);
  16061. }
  16062. if (hasLargeFloat) {
  16063. size += pb::CodedOutputStream.ComputeFloatSize(12, LargeFloat);
  16064. }
  16065. if (hasSmallNegativeFloat) {
  16066. size += pb::CodedOutputStream.ComputeFloatSize(13, SmallNegativeFloat);
  16067. }
  16068. if (hasInfDouble) {
  16069. size += pb::CodedOutputStream.ComputeDoubleSize(14, InfDouble);
  16070. }
  16071. if (hasNegInfDouble) {
  16072. size += pb::CodedOutputStream.ComputeDoubleSize(15, NegInfDouble);
  16073. }
  16074. if (hasNanDouble) {
  16075. size += pb::CodedOutputStream.ComputeDoubleSize(16, NanDouble);
  16076. }
  16077. if (hasInfFloat) {
  16078. size += pb::CodedOutputStream.ComputeFloatSize(17, InfFloat);
  16079. }
  16080. if (hasNegInfFloat) {
  16081. size += pb::CodedOutputStream.ComputeFloatSize(18, NegInfFloat);
  16082. }
  16083. if (hasNanFloat) {
  16084. size += pb::CodedOutputStream.ComputeFloatSize(19, NanFloat);
  16085. }
  16086. if (hasCppTrigraph) {
  16087. size += pb::CodedOutputStream.ComputeStringSize(20, CppTrigraph);
  16088. }
  16089. if (hasStringWithZero) {
  16090. size += pb::CodedOutputStream.ComputeStringSize(23, StringWithZero);
  16091. }
  16092. if (hasBytesWithZero) {
  16093. size += pb::CodedOutputStream.ComputeBytesSize(24, BytesWithZero);
  16094. }
  16095. if (hasStringPieceWithZero) {
  16096. size += pb::CodedOutputStream.ComputeStringSize(25, StringPieceWithZero);
  16097. }
  16098. if (hasCordWithZero) {
  16099. size += pb::CodedOutputStream.ComputeStringSize(26, CordWithZero);
  16100. }
  16101. if (hasReplacementString) {
  16102. size += pb::CodedOutputStream.ComputeStringSize(27, ReplacementString);
  16103. }
  16104. size += UnknownFields.SerializedSize;
  16105. memoizedSerializedSize = size;
  16106. return size;
  16107. }
  16108. public static TestExtremeDefaultValues ParseFrom(pb::ByteString data) {
  16109. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  16110. }
  16111. public static TestExtremeDefaultValues ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  16112. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  16113. }
  16114. public static TestExtremeDefaultValues ParseFrom(byte[] data) {
  16115. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  16116. }
  16117. public static TestExtremeDefaultValues ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  16118. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  16119. }
  16120. public static TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input) {
  16121. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  16122. }
  16123. public static TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  16124. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  16125. }
  16126. public static TestExtremeDefaultValues ParseDelimitedFrom(global::System.IO.Stream input) {
  16127. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  16128. }
  16129. public static TestExtremeDefaultValues ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  16130. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  16131. }
  16132. public static TestExtremeDefaultValues ParseFrom(pb::ICodedInputStream input) {
  16133. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  16134. }
  16135. public static TestExtremeDefaultValues ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  16136. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  16137. }
  16138. private TestExtremeDefaultValues MakeReadOnly() {
  16139. return this;
  16140. }
  16141. public static Builder CreateBuilder() { return new Builder(); }
  16142. public override Builder ToBuilder() { return CreateBuilder(this); }
  16143. public override Builder CreateBuilderForType() { return new Builder(); }
  16144. public static Builder CreateBuilder(TestExtremeDefaultValues prototype) {
  16145. return new Builder(prototype);
  16146. }
  16147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16148. public sealed partial class Builder : pb::GeneratedBuilder<TestExtremeDefaultValues, Builder> {
  16149. protected override Builder ThisBuilder {
  16150. get { return this; }
  16151. }
  16152. public Builder() {
  16153. result = DefaultInstance;
  16154. resultIsReadOnly = true;
  16155. }
  16156. internal Builder(TestExtremeDefaultValues cloneFrom) {
  16157. result = cloneFrom;
  16158. resultIsReadOnly = true;
  16159. }
  16160. private bool resultIsReadOnly;
  16161. private TestExtremeDefaultValues result;
  16162. private TestExtremeDefaultValues PrepareBuilder() {
  16163. if (resultIsReadOnly) {
  16164. TestExtremeDefaultValues original = result;
  16165. result = new TestExtremeDefaultValues();
  16166. resultIsReadOnly = false;
  16167. MergeFrom(original);
  16168. }
  16169. return result;
  16170. }
  16171. public override bool IsInitialized {
  16172. get { return result.IsInitialized; }
  16173. }
  16174. protected override TestExtremeDefaultValues MessageBeingBuilt {
  16175. get { return PrepareBuilder(); }
  16176. }
  16177. public override Builder Clear() {
  16178. result = DefaultInstance;
  16179. resultIsReadOnly = true;
  16180. return this;
  16181. }
  16182. public override Builder Clone() {
  16183. if (resultIsReadOnly) {
  16184. return new Builder(result);
  16185. } else {
  16186. return new Builder().MergeFrom(result);
  16187. }
  16188. }
  16189. public override pbd::MessageDescriptor DescriptorForType {
  16190. get { return global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor; }
  16191. }
  16192. public override TestExtremeDefaultValues DefaultInstanceForType {
  16193. get { return global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.DefaultInstance; }
  16194. }
  16195. public override TestExtremeDefaultValues BuildPartial() {
  16196. if (resultIsReadOnly) {
  16197. return result;
  16198. }
  16199. resultIsReadOnly = true;
  16200. return result.MakeReadOnly();
  16201. }
  16202. public override Builder MergeFrom(pb::IMessage other) {
  16203. if (other is TestExtremeDefaultValues) {
  16204. return MergeFrom((TestExtremeDefaultValues) other);
  16205. } else {
  16206. base.MergeFrom(other);
  16207. return this;
  16208. }
  16209. }
  16210. public override Builder MergeFrom(TestExtremeDefaultValues other) {
  16211. if (other == global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.DefaultInstance) return this;
  16212. PrepareBuilder();
  16213. if (other.HasEscapedBytes) {
  16214. EscapedBytes = other.EscapedBytes;
  16215. }
  16216. if (other.HasLargeUint32) {
  16217. LargeUint32 = other.LargeUint32;
  16218. }
  16219. if (other.HasLargeUint64) {
  16220. LargeUint64 = other.LargeUint64;
  16221. }
  16222. if (other.HasSmallInt32) {
  16223. SmallInt32 = other.SmallInt32;
  16224. }
  16225. if (other.HasSmallInt64) {
  16226. SmallInt64 = other.SmallInt64;
  16227. }
  16228. if (other.HasReallySmallInt32) {
  16229. ReallySmallInt32 = other.ReallySmallInt32;
  16230. }
  16231. if (other.HasReallySmallInt64) {
  16232. ReallySmallInt64 = other.ReallySmallInt64;
  16233. }
  16234. if (other.HasUtf8String) {
  16235. Utf8String = other.Utf8String;
  16236. }
  16237. if (other.HasZeroFloat) {
  16238. ZeroFloat = other.ZeroFloat;
  16239. }
  16240. if (other.HasOneFloat) {
  16241. OneFloat = other.OneFloat;
  16242. }
  16243. if (other.HasSmallFloat) {
  16244. SmallFloat = other.SmallFloat;
  16245. }
  16246. if (other.HasNegativeOneFloat) {
  16247. NegativeOneFloat = other.NegativeOneFloat;
  16248. }
  16249. if (other.HasNegativeFloat) {
  16250. NegativeFloat = other.NegativeFloat;
  16251. }
  16252. if (other.HasLargeFloat) {
  16253. LargeFloat = other.LargeFloat;
  16254. }
  16255. if (other.HasSmallNegativeFloat) {
  16256. SmallNegativeFloat = other.SmallNegativeFloat;
  16257. }
  16258. if (other.HasInfDouble) {
  16259. InfDouble = other.InfDouble;
  16260. }
  16261. if (other.HasNegInfDouble) {
  16262. NegInfDouble = other.NegInfDouble;
  16263. }
  16264. if (other.HasNanDouble) {
  16265. NanDouble = other.NanDouble;
  16266. }
  16267. if (other.HasInfFloat) {
  16268. InfFloat = other.InfFloat;
  16269. }
  16270. if (other.HasNegInfFloat) {
  16271. NegInfFloat = other.NegInfFloat;
  16272. }
  16273. if (other.HasNanFloat) {
  16274. NanFloat = other.NanFloat;
  16275. }
  16276. if (other.HasCppTrigraph) {
  16277. CppTrigraph = other.CppTrigraph;
  16278. }
  16279. if (other.HasStringWithZero) {
  16280. StringWithZero = other.StringWithZero;
  16281. }
  16282. if (other.HasBytesWithZero) {
  16283. BytesWithZero = other.BytesWithZero;
  16284. }
  16285. if (other.HasStringPieceWithZero) {
  16286. StringPieceWithZero = other.StringPieceWithZero;
  16287. }
  16288. if (other.HasCordWithZero) {
  16289. CordWithZero = other.CordWithZero;
  16290. }
  16291. if (other.HasReplacementString) {
  16292. ReplacementString = other.ReplacementString;
  16293. }
  16294. this.MergeUnknownFields(other.UnknownFields);
  16295. return this;
  16296. }
  16297. public override Builder MergeFrom(pb::ICodedInputStream input) {
  16298. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  16299. }
  16300. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  16301. PrepareBuilder();
  16302. pb::UnknownFieldSet.Builder unknownFields = null;
  16303. uint tag;
  16304. string field_name;
  16305. while (input.ReadTag(out tag, out field_name)) {
  16306. if(tag == 0 && field_name != null) {
  16307. int field_ordinal = global::System.Array.BinarySearch(_testExtremeDefaultValuesFieldNames, field_name, global::System.StringComparer.Ordinal);
  16308. if(field_ordinal >= 0)
  16309. tag = _testExtremeDefaultValuesFieldTags[field_ordinal];
  16310. else {
  16311. if (unknownFields == null) {
  16312. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  16313. }
  16314. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  16315. continue;
  16316. }
  16317. }
  16318. switch (tag) {
  16319. case 0: {
  16320. throw pb::InvalidProtocolBufferException.InvalidTag();
  16321. }
  16322. default: {
  16323. if (pb::WireFormat.IsEndGroupTag(tag)) {
  16324. if (unknownFields != null) {
  16325. this.UnknownFields = unknownFields.Build();
  16326. }
  16327. return this;
  16328. }
  16329. if (unknownFields == null) {
  16330. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  16331. }
  16332. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  16333. break;
  16334. }
  16335. case 10: {
  16336. result.hasEscapedBytes = input.ReadBytes(ref result.escapedBytes_);
  16337. break;
  16338. }
  16339. case 16: {
  16340. result.hasLargeUint32 = input.ReadUInt32(ref result.largeUint32_);
  16341. break;
  16342. }
  16343. case 24: {
  16344. result.hasLargeUint64 = input.ReadUInt64(ref result.largeUint64_);
  16345. break;
  16346. }
  16347. case 32: {
  16348. result.hasSmallInt32 = input.ReadInt32(ref result.smallInt32_);
  16349. break;
  16350. }
  16351. case 40: {
  16352. result.hasSmallInt64 = input.ReadInt64(ref result.smallInt64_);
  16353. break;
  16354. }
  16355. case 50: {
  16356. result.hasUtf8String = input.ReadString(ref result.utf8String_);
  16357. break;
  16358. }
  16359. case 61: {
  16360. result.hasZeroFloat = input.ReadFloat(ref result.zeroFloat_);
  16361. break;
  16362. }
  16363. case 69: {
  16364. result.hasOneFloat = input.ReadFloat(ref result.oneFloat_);
  16365. break;
  16366. }
  16367. case 77: {
  16368. result.hasSmallFloat = input.ReadFloat(ref result.smallFloat_);
  16369. break;
  16370. }
  16371. case 85: {
  16372. result.hasNegativeOneFloat = input.ReadFloat(ref result.negativeOneFloat_);
  16373. break;
  16374. }
  16375. case 93: {
  16376. result.hasNegativeFloat = input.ReadFloat(ref result.negativeFloat_);
  16377. break;
  16378. }
  16379. case 101: {
  16380. result.hasLargeFloat = input.ReadFloat(ref result.largeFloat_);
  16381. break;
  16382. }
  16383. case 109: {
  16384. result.hasSmallNegativeFloat = input.ReadFloat(ref result.smallNegativeFloat_);
  16385. break;
  16386. }
  16387. case 113: {
  16388. result.hasInfDouble = input.ReadDouble(ref result.infDouble_);
  16389. break;
  16390. }
  16391. case 121: {
  16392. result.hasNegInfDouble = input.ReadDouble(ref result.negInfDouble_);
  16393. break;
  16394. }
  16395. case 129: {
  16396. result.hasNanDouble = input.ReadDouble(ref result.nanDouble_);
  16397. break;
  16398. }
  16399. case 141: {
  16400. result.hasInfFloat = input.ReadFloat(ref result.infFloat_);
  16401. break;
  16402. }
  16403. case 149: {
  16404. result.hasNegInfFloat = input.ReadFloat(ref result.negInfFloat_);
  16405. break;
  16406. }
  16407. case 157: {
  16408. result.hasNanFloat = input.ReadFloat(ref result.nanFloat_);
  16409. break;
  16410. }
  16411. case 162: {
  16412. result.hasCppTrigraph = input.ReadString(ref result.cppTrigraph_);
  16413. break;
  16414. }
  16415. case 168: {
  16416. result.hasReallySmallInt32 = input.ReadInt32(ref result.reallySmallInt32_);
  16417. break;
  16418. }
  16419. case 176: {
  16420. result.hasReallySmallInt64 = input.ReadInt64(ref result.reallySmallInt64_);
  16421. break;
  16422. }
  16423. case 186: {
  16424. result.hasStringWithZero = input.ReadString(ref result.stringWithZero_);
  16425. break;
  16426. }
  16427. case 194: {
  16428. result.hasBytesWithZero = input.ReadBytes(ref result.bytesWithZero_);
  16429. break;
  16430. }
  16431. case 202: {
  16432. result.hasStringPieceWithZero = input.ReadString(ref result.stringPieceWithZero_);
  16433. break;
  16434. }
  16435. case 210: {
  16436. result.hasCordWithZero = input.ReadString(ref result.cordWithZero_);
  16437. break;
  16438. }
  16439. case 218: {
  16440. result.hasReplacementString = input.ReadString(ref result.replacementString_);
  16441. break;
  16442. }
  16443. }
  16444. }
  16445. if (unknownFields != null) {
  16446. this.UnknownFields = unknownFields.Build();
  16447. }
  16448. return this;
  16449. }
  16450. public bool HasEscapedBytes {
  16451. get { return result.hasEscapedBytes; }
  16452. }
  16453. public pb::ByteString EscapedBytes {
  16454. get { return result.EscapedBytes; }
  16455. set { SetEscapedBytes(value); }
  16456. }
  16457. public Builder SetEscapedBytes(pb::ByteString value) {
  16458. pb::ThrowHelper.ThrowIfNull(value, "value");
  16459. PrepareBuilder();
  16460. result.hasEscapedBytes = true;
  16461. result.escapedBytes_ = value;
  16462. return this;
  16463. }
  16464. public Builder ClearEscapedBytes() {
  16465. PrepareBuilder();
  16466. result.hasEscapedBytes = false;
  16467. result.escapedBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue;
  16468. return this;
  16469. }
  16470. public bool HasLargeUint32 {
  16471. get { return result.hasLargeUint32; }
  16472. }
  16473. [global::System.CLSCompliant(false)]
  16474. public uint LargeUint32 {
  16475. get { return result.LargeUint32; }
  16476. set { SetLargeUint32(value); }
  16477. }
  16478. [global::System.CLSCompliant(false)]
  16479. public Builder SetLargeUint32(uint value) {
  16480. PrepareBuilder();
  16481. result.hasLargeUint32 = true;
  16482. result.largeUint32_ = value;
  16483. return this;
  16484. }
  16485. public Builder ClearLargeUint32() {
  16486. PrepareBuilder();
  16487. result.hasLargeUint32 = false;
  16488. result.largeUint32_ = 4294967295;
  16489. return this;
  16490. }
  16491. public bool HasLargeUint64 {
  16492. get { return result.hasLargeUint64; }
  16493. }
  16494. [global::System.CLSCompliant(false)]
  16495. public ulong LargeUint64 {
  16496. get { return result.LargeUint64; }
  16497. set { SetLargeUint64(value); }
  16498. }
  16499. [global::System.CLSCompliant(false)]
  16500. public Builder SetLargeUint64(ulong value) {
  16501. PrepareBuilder();
  16502. result.hasLargeUint64 = true;
  16503. result.largeUint64_ = value;
  16504. return this;
  16505. }
  16506. public Builder ClearLargeUint64() {
  16507. PrepareBuilder();
  16508. result.hasLargeUint64 = false;
  16509. result.largeUint64_ = 18446744073709551615UL;
  16510. return this;
  16511. }
  16512. public bool HasSmallInt32 {
  16513. get { return result.hasSmallInt32; }
  16514. }
  16515. public int SmallInt32 {
  16516. get { return result.SmallInt32; }
  16517. set { SetSmallInt32(value); }
  16518. }
  16519. public Builder SetSmallInt32(int value) {
  16520. PrepareBuilder();
  16521. result.hasSmallInt32 = true;
  16522. result.smallInt32_ = value;
  16523. return this;
  16524. }
  16525. public Builder ClearSmallInt32() {
  16526. PrepareBuilder();
  16527. result.hasSmallInt32 = false;
  16528. result.smallInt32_ = -2147483647;
  16529. return this;
  16530. }
  16531. public bool HasSmallInt64 {
  16532. get { return result.hasSmallInt64; }
  16533. }
  16534. public long SmallInt64 {
  16535. get { return result.SmallInt64; }
  16536. set { SetSmallInt64(value); }
  16537. }
  16538. public Builder SetSmallInt64(long value) {
  16539. PrepareBuilder();
  16540. result.hasSmallInt64 = true;
  16541. result.smallInt64_ = value;
  16542. return this;
  16543. }
  16544. public Builder ClearSmallInt64() {
  16545. PrepareBuilder();
  16546. result.hasSmallInt64 = false;
  16547. result.smallInt64_ = -9223372036854775807L;
  16548. return this;
  16549. }
  16550. public bool HasReallySmallInt32 {
  16551. get { return result.hasReallySmallInt32; }
  16552. }
  16553. public int ReallySmallInt32 {
  16554. get { return result.ReallySmallInt32; }
  16555. set { SetReallySmallInt32(value); }
  16556. }
  16557. public Builder SetReallySmallInt32(int value) {
  16558. PrepareBuilder();
  16559. result.hasReallySmallInt32 = true;
  16560. result.reallySmallInt32_ = value;
  16561. return this;
  16562. }
  16563. public Builder ClearReallySmallInt32() {
  16564. PrepareBuilder();
  16565. result.hasReallySmallInt32 = false;
  16566. result.reallySmallInt32_ = -2147483648;
  16567. return this;
  16568. }
  16569. public bool HasReallySmallInt64 {
  16570. get { return result.hasReallySmallInt64; }
  16571. }
  16572. public long ReallySmallInt64 {
  16573. get { return result.ReallySmallInt64; }
  16574. set { SetReallySmallInt64(value); }
  16575. }
  16576. public Builder SetReallySmallInt64(long value) {
  16577. PrepareBuilder();
  16578. result.hasReallySmallInt64 = true;
  16579. result.reallySmallInt64_ = value;
  16580. return this;
  16581. }
  16582. public Builder ClearReallySmallInt64() {
  16583. PrepareBuilder();
  16584. result.hasReallySmallInt64 = false;
  16585. result.reallySmallInt64_ = -9223372036854775808L;
  16586. return this;
  16587. }
  16588. public bool HasUtf8String {
  16589. get { return result.hasUtf8String; }
  16590. }
  16591. public string Utf8String {
  16592. get { return result.Utf8String; }
  16593. set { SetUtf8String(value); }
  16594. }
  16595. public Builder SetUtf8String(string value) {
  16596. pb::ThrowHelper.ThrowIfNull(value, "value");
  16597. PrepareBuilder();
  16598. result.hasUtf8String = true;
  16599. result.utf8String_ = value;
  16600. return this;
  16601. }
  16602. public Builder ClearUtf8String() {
  16603. PrepareBuilder();
  16604. result.hasUtf8String = false;
  16605. result.utf8String_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[7].DefaultValue;
  16606. return this;
  16607. }
  16608. public bool HasZeroFloat {
  16609. get { return result.hasZeroFloat; }
  16610. }
  16611. public float ZeroFloat {
  16612. get { return result.ZeroFloat; }
  16613. set { SetZeroFloat(value); }
  16614. }
  16615. public Builder SetZeroFloat(float value) {
  16616. PrepareBuilder();
  16617. result.hasZeroFloat = true;
  16618. result.zeroFloat_ = value;
  16619. return this;
  16620. }
  16621. public Builder ClearZeroFloat() {
  16622. PrepareBuilder();
  16623. result.hasZeroFloat = false;
  16624. result.zeroFloat_ = 0F;
  16625. return this;
  16626. }
  16627. public bool HasOneFloat {
  16628. get { return result.hasOneFloat; }
  16629. }
  16630. public float OneFloat {
  16631. get { return result.OneFloat; }
  16632. set { SetOneFloat(value); }
  16633. }
  16634. public Builder SetOneFloat(float value) {
  16635. PrepareBuilder();
  16636. result.hasOneFloat = true;
  16637. result.oneFloat_ = value;
  16638. return this;
  16639. }
  16640. public Builder ClearOneFloat() {
  16641. PrepareBuilder();
  16642. result.hasOneFloat = false;
  16643. result.oneFloat_ = 1F;
  16644. return this;
  16645. }
  16646. public bool HasSmallFloat {
  16647. get { return result.hasSmallFloat; }
  16648. }
  16649. public float SmallFloat {
  16650. get { return result.SmallFloat; }
  16651. set { SetSmallFloat(value); }
  16652. }
  16653. public Builder SetSmallFloat(float value) {
  16654. PrepareBuilder();
  16655. result.hasSmallFloat = true;
  16656. result.smallFloat_ = value;
  16657. return this;
  16658. }
  16659. public Builder ClearSmallFloat() {
  16660. PrepareBuilder();
  16661. result.hasSmallFloat = false;
  16662. result.smallFloat_ = 1.5F;
  16663. return this;
  16664. }
  16665. public bool HasNegativeOneFloat {
  16666. get { return result.hasNegativeOneFloat; }
  16667. }
  16668. public float NegativeOneFloat {
  16669. get { return result.NegativeOneFloat; }
  16670. set { SetNegativeOneFloat(value); }
  16671. }
  16672. public Builder SetNegativeOneFloat(float value) {
  16673. PrepareBuilder();
  16674. result.hasNegativeOneFloat = true;
  16675. result.negativeOneFloat_ = value;
  16676. return this;
  16677. }
  16678. public Builder ClearNegativeOneFloat() {
  16679. PrepareBuilder();
  16680. result.hasNegativeOneFloat = false;
  16681. result.negativeOneFloat_ = -1F;
  16682. return this;
  16683. }
  16684. public bool HasNegativeFloat {
  16685. get { return result.hasNegativeFloat; }
  16686. }
  16687. public float NegativeFloat {
  16688. get { return result.NegativeFloat; }
  16689. set { SetNegativeFloat(value); }
  16690. }
  16691. public Builder SetNegativeFloat(float value) {
  16692. PrepareBuilder();
  16693. result.hasNegativeFloat = true;
  16694. result.negativeFloat_ = value;
  16695. return this;
  16696. }
  16697. public Builder ClearNegativeFloat() {
  16698. PrepareBuilder();
  16699. result.hasNegativeFloat = false;
  16700. result.negativeFloat_ = -1.5F;
  16701. return this;
  16702. }
  16703. public bool HasLargeFloat {
  16704. get { return result.hasLargeFloat; }
  16705. }
  16706. public float LargeFloat {
  16707. get { return result.LargeFloat; }
  16708. set { SetLargeFloat(value); }
  16709. }
  16710. public Builder SetLargeFloat(float value) {
  16711. PrepareBuilder();
  16712. result.hasLargeFloat = true;
  16713. result.largeFloat_ = value;
  16714. return this;
  16715. }
  16716. public Builder ClearLargeFloat() {
  16717. PrepareBuilder();
  16718. result.hasLargeFloat = false;
  16719. result.largeFloat_ = 2e+08F;
  16720. return this;
  16721. }
  16722. public bool HasSmallNegativeFloat {
  16723. get { return result.hasSmallNegativeFloat; }
  16724. }
  16725. public float SmallNegativeFloat {
  16726. get { return result.SmallNegativeFloat; }
  16727. set { SetSmallNegativeFloat(value); }
  16728. }
  16729. public Builder SetSmallNegativeFloat(float value) {
  16730. PrepareBuilder();
  16731. result.hasSmallNegativeFloat = true;
  16732. result.smallNegativeFloat_ = value;
  16733. return this;
  16734. }
  16735. public Builder ClearSmallNegativeFloat() {
  16736. PrepareBuilder();
  16737. result.hasSmallNegativeFloat = false;
  16738. result.smallNegativeFloat_ = -8e-28F;
  16739. return this;
  16740. }
  16741. public bool HasInfDouble {
  16742. get { return result.hasInfDouble; }
  16743. }
  16744. public double InfDouble {
  16745. get { return result.InfDouble; }
  16746. set { SetInfDouble(value); }
  16747. }
  16748. public Builder SetInfDouble(double value) {
  16749. PrepareBuilder();
  16750. result.hasInfDouble = true;
  16751. result.infDouble_ = value;
  16752. return this;
  16753. }
  16754. public Builder ClearInfDouble() {
  16755. PrepareBuilder();
  16756. result.hasInfDouble = false;
  16757. result.infDouble_ = double.PositiveInfinity;
  16758. return this;
  16759. }
  16760. public bool HasNegInfDouble {
  16761. get { return result.hasNegInfDouble; }
  16762. }
  16763. public double NegInfDouble {
  16764. get { return result.NegInfDouble; }
  16765. set { SetNegInfDouble(value); }
  16766. }
  16767. public Builder SetNegInfDouble(double value) {
  16768. PrepareBuilder();
  16769. result.hasNegInfDouble = true;
  16770. result.negInfDouble_ = value;
  16771. return this;
  16772. }
  16773. public Builder ClearNegInfDouble() {
  16774. PrepareBuilder();
  16775. result.hasNegInfDouble = false;
  16776. result.negInfDouble_ = double.NegativeInfinity;
  16777. return this;
  16778. }
  16779. public bool HasNanDouble {
  16780. get { return result.hasNanDouble; }
  16781. }
  16782. public double NanDouble {
  16783. get { return result.NanDouble; }
  16784. set { SetNanDouble(value); }
  16785. }
  16786. public Builder SetNanDouble(double value) {
  16787. PrepareBuilder();
  16788. result.hasNanDouble = true;
  16789. result.nanDouble_ = value;
  16790. return this;
  16791. }
  16792. public Builder ClearNanDouble() {
  16793. PrepareBuilder();
  16794. result.hasNanDouble = false;
  16795. result.nanDouble_ = double.NaN;
  16796. return this;
  16797. }
  16798. public bool HasInfFloat {
  16799. get { return result.hasInfFloat; }
  16800. }
  16801. public float InfFloat {
  16802. get { return result.InfFloat; }
  16803. set { SetInfFloat(value); }
  16804. }
  16805. public Builder SetInfFloat(float value) {
  16806. PrepareBuilder();
  16807. result.hasInfFloat = true;
  16808. result.infFloat_ = value;
  16809. return this;
  16810. }
  16811. public Builder ClearInfFloat() {
  16812. PrepareBuilder();
  16813. result.hasInfFloat = false;
  16814. result.infFloat_ = float.PositiveInfinity;
  16815. return this;
  16816. }
  16817. public bool HasNegInfFloat {
  16818. get { return result.hasNegInfFloat; }
  16819. }
  16820. public float NegInfFloat {
  16821. get { return result.NegInfFloat; }
  16822. set { SetNegInfFloat(value); }
  16823. }
  16824. public Builder SetNegInfFloat(float value) {
  16825. PrepareBuilder();
  16826. result.hasNegInfFloat = true;
  16827. result.negInfFloat_ = value;
  16828. return this;
  16829. }
  16830. public Builder ClearNegInfFloat() {
  16831. PrepareBuilder();
  16832. result.hasNegInfFloat = false;
  16833. result.negInfFloat_ = float.NegativeInfinity;
  16834. return this;
  16835. }
  16836. public bool HasNanFloat {
  16837. get { return result.hasNanFloat; }
  16838. }
  16839. public float NanFloat {
  16840. get { return result.NanFloat; }
  16841. set { SetNanFloat(value); }
  16842. }
  16843. public Builder SetNanFloat(float value) {
  16844. PrepareBuilder();
  16845. result.hasNanFloat = true;
  16846. result.nanFloat_ = value;
  16847. return this;
  16848. }
  16849. public Builder ClearNanFloat() {
  16850. PrepareBuilder();
  16851. result.hasNanFloat = false;
  16852. result.nanFloat_ = float.NaN;
  16853. return this;
  16854. }
  16855. public bool HasCppTrigraph {
  16856. get { return result.hasCppTrigraph; }
  16857. }
  16858. public string CppTrigraph {
  16859. get { return result.CppTrigraph; }
  16860. set { SetCppTrigraph(value); }
  16861. }
  16862. public Builder SetCppTrigraph(string value) {
  16863. pb::ThrowHelper.ThrowIfNull(value, "value");
  16864. PrepareBuilder();
  16865. result.hasCppTrigraph = true;
  16866. result.cppTrigraph_ = value;
  16867. return this;
  16868. }
  16869. public Builder ClearCppTrigraph() {
  16870. PrepareBuilder();
  16871. result.hasCppTrigraph = false;
  16872. result.cppTrigraph_ = "? ? ?? ?? ??? ??/ ??-";
  16873. return this;
  16874. }
  16875. public bool HasStringWithZero {
  16876. get { return result.hasStringWithZero; }
  16877. }
  16878. public string StringWithZero {
  16879. get { return result.StringWithZero; }
  16880. set { SetStringWithZero(value); }
  16881. }
  16882. public Builder SetStringWithZero(string value) {
  16883. pb::ThrowHelper.ThrowIfNull(value, "value");
  16884. PrepareBuilder();
  16885. result.hasStringWithZero = true;
  16886. result.stringWithZero_ = value;
  16887. return this;
  16888. }
  16889. public Builder ClearStringWithZero() {
  16890. PrepareBuilder();
  16891. result.hasStringWithZero = false;
  16892. result.stringWithZero_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[22].DefaultValue;
  16893. return this;
  16894. }
  16895. public bool HasBytesWithZero {
  16896. get { return result.hasBytesWithZero; }
  16897. }
  16898. public pb::ByteString BytesWithZero {
  16899. get { return result.BytesWithZero; }
  16900. set { SetBytesWithZero(value); }
  16901. }
  16902. public Builder SetBytesWithZero(pb::ByteString value) {
  16903. pb::ThrowHelper.ThrowIfNull(value, "value");
  16904. PrepareBuilder();
  16905. result.hasBytesWithZero = true;
  16906. result.bytesWithZero_ = value;
  16907. return this;
  16908. }
  16909. public Builder ClearBytesWithZero() {
  16910. PrepareBuilder();
  16911. result.hasBytesWithZero = false;
  16912. result.bytesWithZero_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[23].DefaultValue;
  16913. return this;
  16914. }
  16915. public bool HasStringPieceWithZero {
  16916. get { return result.hasStringPieceWithZero; }
  16917. }
  16918. public string StringPieceWithZero {
  16919. get { return result.StringPieceWithZero; }
  16920. set { SetStringPieceWithZero(value); }
  16921. }
  16922. public Builder SetStringPieceWithZero(string value) {
  16923. pb::ThrowHelper.ThrowIfNull(value, "value");
  16924. PrepareBuilder();
  16925. result.hasStringPieceWithZero = true;
  16926. result.stringPieceWithZero_ = value;
  16927. return this;
  16928. }
  16929. public Builder ClearStringPieceWithZero() {
  16930. PrepareBuilder();
  16931. result.hasStringPieceWithZero = false;
  16932. result.stringPieceWithZero_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[24].DefaultValue;
  16933. return this;
  16934. }
  16935. public bool HasCordWithZero {
  16936. get { return result.hasCordWithZero; }
  16937. }
  16938. public string CordWithZero {
  16939. get { return result.CordWithZero; }
  16940. set { SetCordWithZero(value); }
  16941. }
  16942. public Builder SetCordWithZero(string value) {
  16943. pb::ThrowHelper.ThrowIfNull(value, "value");
  16944. PrepareBuilder();
  16945. result.hasCordWithZero = true;
  16946. result.cordWithZero_ = value;
  16947. return this;
  16948. }
  16949. public Builder ClearCordWithZero() {
  16950. PrepareBuilder();
  16951. result.hasCordWithZero = false;
  16952. result.cordWithZero_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[25].DefaultValue;
  16953. return this;
  16954. }
  16955. public bool HasReplacementString {
  16956. get { return result.hasReplacementString; }
  16957. }
  16958. public string ReplacementString {
  16959. get { return result.ReplacementString; }
  16960. set { SetReplacementString(value); }
  16961. }
  16962. public Builder SetReplacementString(string value) {
  16963. pb::ThrowHelper.ThrowIfNull(value, "value");
  16964. PrepareBuilder();
  16965. result.hasReplacementString = true;
  16966. result.replacementString_ = value;
  16967. return this;
  16968. }
  16969. public Builder ClearReplacementString() {
  16970. PrepareBuilder();
  16971. result.hasReplacementString = false;
  16972. result.replacementString_ = "${unknown}";
  16973. return this;
  16974. }
  16975. }
  16976. static TestExtremeDefaultValues() {
  16977. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  16978. }
  16979. }
  16980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16981. public sealed partial class SparseEnumMessage : pb::GeneratedMessage<SparseEnumMessage, SparseEnumMessage.Builder> {
  16982. private SparseEnumMessage() { }
  16983. private static readonly SparseEnumMessage defaultInstance = new SparseEnumMessage().MakeReadOnly();
  16984. private static readonly string[] _sparseEnumMessageFieldNames = new string[] { "sparse_enum" };
  16985. private static readonly uint[] _sparseEnumMessageFieldTags = new uint[] { 8 };
  16986. public static SparseEnumMessage DefaultInstance {
  16987. get { return defaultInstance; }
  16988. }
  16989. public override SparseEnumMessage DefaultInstanceForType {
  16990. get { return DefaultInstance; }
  16991. }
  16992. protected override SparseEnumMessage ThisMessage {
  16993. get { return this; }
  16994. }
  16995. public static pbd::MessageDescriptor Descriptor {
  16996. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_SparseEnumMessage__Descriptor; }
  16997. }
  16998. protected override pb::FieldAccess.FieldAccessorTable<SparseEnumMessage, SparseEnumMessage.Builder> InternalFieldAccessors {
  16999. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_SparseEnumMessage__FieldAccessorTable; }
  17000. }
  17001. public const int SparseEnumFieldNumber = 1;
  17002. private bool hasSparseEnum;
  17003. private global::Google.ProtocolBuffers.TestProtos.TestSparseEnum sparseEnum_ = global::Google.ProtocolBuffers.TestProtos.TestSparseEnum.SPARSE_A;
  17004. public bool HasSparseEnum {
  17005. get { return hasSparseEnum; }
  17006. }
  17007. public global::Google.ProtocolBuffers.TestProtos.TestSparseEnum SparseEnum {
  17008. get { return sparseEnum_; }
  17009. }
  17010. public override bool IsInitialized {
  17011. get {
  17012. return true;
  17013. }
  17014. }
  17015. public override void WriteTo(pb::ICodedOutputStream output) {
  17016. CalcSerializedSize();
  17017. string[] field_names = _sparseEnumMessageFieldNames;
  17018. if (hasSparseEnum) {
  17019. output.WriteEnum(1, field_names[0], (int) SparseEnum, SparseEnum);
  17020. }
  17021. UnknownFields.WriteTo(output);
  17022. }
  17023. private int memoizedSerializedSize = -1;
  17024. public override int SerializedSize {
  17025. get {
  17026. int size = memoizedSerializedSize;
  17027. if (size != -1) return size;
  17028. return CalcSerializedSize();
  17029. }
  17030. }
  17031. private int CalcSerializedSize() {
  17032. int size = memoizedSerializedSize;
  17033. if (size != -1) return size;
  17034. size = 0;
  17035. if (hasSparseEnum) {
  17036. size += pb::CodedOutputStream.ComputeEnumSize(1, (int) SparseEnum);
  17037. }
  17038. size += UnknownFields.SerializedSize;
  17039. memoizedSerializedSize = size;
  17040. return size;
  17041. }
  17042. public static SparseEnumMessage ParseFrom(pb::ByteString data) {
  17043. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  17044. }
  17045. public static SparseEnumMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  17046. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  17047. }
  17048. public static SparseEnumMessage ParseFrom(byte[] data) {
  17049. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  17050. }
  17051. public static SparseEnumMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  17052. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  17053. }
  17054. public static SparseEnumMessage ParseFrom(global::System.IO.Stream input) {
  17055. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  17056. }
  17057. public static SparseEnumMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  17058. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  17059. }
  17060. public static SparseEnumMessage ParseDelimitedFrom(global::System.IO.Stream input) {
  17061. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  17062. }
  17063. public static SparseEnumMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  17064. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  17065. }
  17066. public static SparseEnumMessage ParseFrom(pb::ICodedInputStream input) {
  17067. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  17068. }
  17069. public static SparseEnumMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  17070. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  17071. }
  17072. private SparseEnumMessage MakeReadOnly() {
  17073. return this;
  17074. }
  17075. public static Builder CreateBuilder() { return new Builder(); }
  17076. public override Builder ToBuilder() { return CreateBuilder(this); }
  17077. public override Builder CreateBuilderForType() { return new Builder(); }
  17078. public static Builder CreateBuilder(SparseEnumMessage prototype) {
  17079. return new Builder(prototype);
  17080. }
  17081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  17082. public sealed partial class Builder : pb::GeneratedBuilder<SparseEnumMessage, Builder> {
  17083. protected override Builder ThisBuilder {
  17084. get { return this; }
  17085. }
  17086. public Builder() {
  17087. result = DefaultInstance;
  17088. resultIsReadOnly = true;
  17089. }
  17090. internal Builder(SparseEnumMessage cloneFrom) {
  17091. result = cloneFrom;
  17092. resultIsReadOnly = true;
  17093. }
  17094. private bool resultIsReadOnly;
  17095. private SparseEnumMessage result;
  17096. private SparseEnumMessage PrepareBuilder() {
  17097. if (resultIsReadOnly) {
  17098. SparseEnumMessage original = result;
  17099. result = new SparseEnumMessage();
  17100. resultIsReadOnly = false;
  17101. MergeFrom(original);
  17102. }
  17103. return result;
  17104. }
  17105. public override bool IsInitialized {
  17106. get { return result.IsInitialized; }
  17107. }
  17108. protected override SparseEnumMessage MessageBeingBuilt {
  17109. get { return PrepareBuilder(); }
  17110. }
  17111. public override Builder Clear() {
  17112. result = DefaultInstance;
  17113. resultIsReadOnly = true;
  17114. return this;
  17115. }
  17116. public override Builder Clone() {
  17117. if (resultIsReadOnly) {
  17118. return new Builder(result);
  17119. } else {
  17120. return new Builder().MergeFrom(result);
  17121. }
  17122. }
  17123. public override pbd::MessageDescriptor DescriptorForType {
  17124. get { return global::Google.ProtocolBuffers.TestProtos.SparseEnumMessage.Descriptor; }
  17125. }
  17126. public override SparseEnumMessage DefaultInstanceForType {
  17127. get { return global::Google.ProtocolBuffers.TestProtos.SparseEnumMessage.DefaultInstance; }
  17128. }
  17129. public override SparseEnumMessage BuildPartial() {
  17130. if (resultIsReadOnly) {
  17131. return result;
  17132. }
  17133. resultIsReadOnly = true;
  17134. return result.MakeReadOnly();
  17135. }
  17136. public override Builder MergeFrom(pb::IMessage other) {
  17137. if (other is SparseEnumMessage) {
  17138. return MergeFrom((SparseEnumMessage) other);
  17139. } else {
  17140. base.MergeFrom(other);
  17141. return this;
  17142. }
  17143. }
  17144. public override Builder MergeFrom(SparseEnumMessage other) {
  17145. if (other == global::Google.ProtocolBuffers.TestProtos.SparseEnumMessage.DefaultInstance) return this;
  17146. PrepareBuilder();
  17147. if (other.HasSparseEnum) {
  17148. SparseEnum = other.SparseEnum;
  17149. }
  17150. this.MergeUnknownFields(other.UnknownFields);
  17151. return this;
  17152. }
  17153. public override Builder MergeFrom(pb::ICodedInputStream input) {
  17154. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  17155. }
  17156. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  17157. PrepareBuilder();
  17158. pb::UnknownFieldSet.Builder unknownFields = null;
  17159. uint tag;
  17160. string field_name;
  17161. while (input.ReadTag(out tag, out field_name)) {
  17162. if(tag == 0 && field_name != null) {
  17163. int field_ordinal = global::System.Array.BinarySearch(_sparseEnumMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  17164. if(field_ordinal >= 0)
  17165. tag = _sparseEnumMessageFieldTags[field_ordinal];
  17166. else {
  17167. if (unknownFields == null) {
  17168. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  17169. }
  17170. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  17171. continue;
  17172. }
  17173. }
  17174. switch (tag) {
  17175. case 0: {
  17176. throw pb::InvalidProtocolBufferException.InvalidTag();
  17177. }
  17178. default: {
  17179. if (pb::WireFormat.IsEndGroupTag(tag)) {
  17180. if (unknownFields != null) {
  17181. this.UnknownFields = unknownFields.Build();
  17182. }
  17183. return this;
  17184. }
  17185. if (unknownFields == null) {
  17186. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  17187. }
  17188. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  17189. break;
  17190. }
  17191. case 8: {
  17192. object unknown;
  17193. if(input.ReadEnum(ref result.sparseEnum_, out unknown)) {
  17194. result.hasSparseEnum = true;
  17195. } else if(unknown is int) {
  17196. if (unknownFields == null) {
  17197. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  17198. }
  17199. unknownFields.MergeVarintField(1, (ulong)(int)unknown);
  17200. }
  17201. break;
  17202. }
  17203. }
  17204. }
  17205. if (unknownFields != null) {
  17206. this.UnknownFields = unknownFields.Build();
  17207. }
  17208. return this;
  17209. }
  17210. public bool HasSparseEnum {
  17211. get { return result.hasSparseEnum; }
  17212. }
  17213. public global::Google.ProtocolBuffers.TestProtos.TestSparseEnum SparseEnum {
  17214. get { return result.SparseEnum; }
  17215. set { SetSparseEnum(value); }
  17216. }
  17217. public Builder SetSparseEnum(global::Google.ProtocolBuffers.TestProtos.TestSparseEnum value) {
  17218. PrepareBuilder();
  17219. result.hasSparseEnum = true;
  17220. result.sparseEnum_ = value;
  17221. return this;
  17222. }
  17223. public Builder ClearSparseEnum() {
  17224. PrepareBuilder();
  17225. result.hasSparseEnum = false;
  17226. result.sparseEnum_ = global::Google.ProtocolBuffers.TestProtos.TestSparseEnum.SPARSE_A;
  17227. return this;
  17228. }
  17229. }
  17230. static SparseEnumMessage() {
  17231. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  17232. }
  17233. }
  17234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  17235. public sealed partial class OneString : pb::GeneratedMessage<OneString, OneString.Builder> {
  17236. private OneString() { }
  17237. private static readonly OneString defaultInstance = new OneString().MakeReadOnly();
  17238. private static readonly string[] _oneStringFieldNames = new string[] { "data" };
  17239. private static readonly uint[] _oneStringFieldTags = new uint[] { 10 };
  17240. public static OneString DefaultInstance {
  17241. get { return defaultInstance; }
  17242. }
  17243. public override OneString DefaultInstanceForType {
  17244. get { return DefaultInstance; }
  17245. }
  17246. protected override OneString ThisMessage {
  17247. get { return this; }
  17248. }
  17249. public static pbd::MessageDescriptor Descriptor {
  17250. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_OneString__Descriptor; }
  17251. }
  17252. protected override pb::FieldAccess.FieldAccessorTable<OneString, OneString.Builder> InternalFieldAccessors {
  17253. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_OneString__FieldAccessorTable; }
  17254. }
  17255. public const int DataFieldNumber = 1;
  17256. private bool hasData;
  17257. private string data_ = "";
  17258. public bool HasData {
  17259. get { return hasData; }
  17260. }
  17261. public string Data {
  17262. get { return data_; }
  17263. }
  17264. public override bool IsInitialized {
  17265. get {
  17266. return true;
  17267. }
  17268. }
  17269. public override void WriteTo(pb::ICodedOutputStream output) {
  17270. CalcSerializedSize();
  17271. string[] field_names = _oneStringFieldNames;
  17272. if (hasData) {
  17273. output.WriteString(1, field_names[0], Data);
  17274. }
  17275. UnknownFields.WriteTo(output);
  17276. }
  17277. private int memoizedSerializedSize = -1;
  17278. public override int SerializedSize {
  17279. get {
  17280. int size = memoizedSerializedSize;
  17281. if (size != -1) return size;
  17282. return CalcSerializedSize();
  17283. }
  17284. }
  17285. private int CalcSerializedSize() {
  17286. int size = memoizedSerializedSize;
  17287. if (size != -1) return size;
  17288. size = 0;
  17289. if (hasData) {
  17290. size += pb::CodedOutputStream.ComputeStringSize(1, Data);
  17291. }
  17292. size += UnknownFields.SerializedSize;
  17293. memoizedSerializedSize = size;
  17294. return size;
  17295. }
  17296. public static OneString ParseFrom(pb::ByteString data) {
  17297. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  17298. }
  17299. public static OneString ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  17300. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  17301. }
  17302. public static OneString ParseFrom(byte[] data) {
  17303. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  17304. }
  17305. public static OneString ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  17306. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  17307. }
  17308. public static OneString ParseFrom(global::System.IO.Stream input) {
  17309. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  17310. }
  17311. public static OneString ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  17312. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  17313. }
  17314. public static OneString ParseDelimitedFrom(global::System.IO.Stream input) {
  17315. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  17316. }
  17317. public static OneString ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  17318. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  17319. }
  17320. public static OneString ParseFrom(pb::ICodedInputStream input) {
  17321. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  17322. }
  17323. public static OneString ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  17324. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  17325. }
  17326. private OneString MakeReadOnly() {
  17327. return this;
  17328. }
  17329. public static Builder CreateBuilder() { return new Builder(); }
  17330. public override Builder ToBuilder() { return CreateBuilder(this); }
  17331. public override Builder CreateBuilderForType() { return new Builder(); }
  17332. public static Builder CreateBuilder(OneString prototype) {
  17333. return new Builder(prototype);
  17334. }
  17335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  17336. public sealed partial class Builder : pb::GeneratedBuilder<OneString, Builder> {
  17337. protected override Builder ThisBuilder {
  17338. get { return this; }
  17339. }
  17340. public Builder() {
  17341. result = DefaultInstance;
  17342. resultIsReadOnly = true;
  17343. }
  17344. internal Builder(OneString cloneFrom) {
  17345. result = cloneFrom;
  17346. resultIsReadOnly = true;
  17347. }
  17348. private bool resultIsReadOnly;
  17349. private OneString result;
  17350. private OneString PrepareBuilder() {
  17351. if (resultIsReadOnly) {
  17352. OneString original = result;
  17353. result = new OneString();
  17354. resultIsReadOnly = false;
  17355. MergeFrom(original);
  17356. }
  17357. return result;
  17358. }
  17359. public override bool IsInitialized {
  17360. get { return result.IsInitialized; }
  17361. }
  17362. protected override OneString MessageBeingBuilt {
  17363. get { return PrepareBuilder(); }
  17364. }
  17365. public override Builder Clear() {
  17366. result = DefaultInstance;
  17367. resultIsReadOnly = true;
  17368. return this;
  17369. }
  17370. public override Builder Clone() {
  17371. if (resultIsReadOnly) {
  17372. return new Builder(result);
  17373. } else {
  17374. return new Builder().MergeFrom(result);
  17375. }
  17376. }
  17377. public override pbd::MessageDescriptor DescriptorForType {
  17378. get { return global::Google.ProtocolBuffers.TestProtos.OneString.Descriptor; }
  17379. }
  17380. public override OneString DefaultInstanceForType {
  17381. get { return global::Google.ProtocolBuffers.TestProtos.OneString.DefaultInstance; }
  17382. }
  17383. public override OneString BuildPartial() {
  17384. if (resultIsReadOnly) {
  17385. return result;
  17386. }
  17387. resultIsReadOnly = true;
  17388. return result.MakeReadOnly();
  17389. }
  17390. public override Builder MergeFrom(pb::IMessage other) {
  17391. if (other is OneString) {
  17392. return MergeFrom((OneString) other);
  17393. } else {
  17394. base.MergeFrom(other);
  17395. return this;
  17396. }
  17397. }
  17398. public override Builder MergeFrom(OneString other) {
  17399. if (other == global::Google.ProtocolBuffers.TestProtos.OneString.DefaultInstance) return this;
  17400. PrepareBuilder();
  17401. if (other.HasData) {
  17402. Data = other.Data;
  17403. }
  17404. this.MergeUnknownFields(other.UnknownFields);
  17405. return this;
  17406. }
  17407. public override Builder MergeFrom(pb::ICodedInputStream input) {
  17408. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  17409. }
  17410. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  17411. PrepareBuilder();
  17412. pb::UnknownFieldSet.Builder unknownFields = null;
  17413. uint tag;
  17414. string field_name;
  17415. while (input.ReadTag(out tag, out field_name)) {
  17416. if(tag == 0 && field_name != null) {
  17417. int field_ordinal = global::System.Array.BinarySearch(_oneStringFieldNames, field_name, global::System.StringComparer.Ordinal);
  17418. if(field_ordinal >= 0)
  17419. tag = _oneStringFieldTags[field_ordinal];
  17420. else {
  17421. if (unknownFields == null) {
  17422. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  17423. }
  17424. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  17425. continue;
  17426. }
  17427. }
  17428. switch (tag) {
  17429. case 0: {
  17430. throw pb::InvalidProtocolBufferException.InvalidTag();
  17431. }
  17432. default: {
  17433. if (pb::WireFormat.IsEndGroupTag(tag)) {
  17434. if (unknownFields != null) {
  17435. this.UnknownFields = unknownFields.Build();
  17436. }
  17437. return this;
  17438. }
  17439. if (unknownFields == null) {
  17440. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  17441. }
  17442. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  17443. break;
  17444. }
  17445. case 10: {
  17446. result.hasData = input.ReadString(ref result.data_);
  17447. break;
  17448. }
  17449. }
  17450. }
  17451. if (unknownFields != null) {
  17452. this.UnknownFields = unknownFields.Build();
  17453. }
  17454. return this;
  17455. }
  17456. public bool HasData {
  17457. get { return result.hasData; }
  17458. }
  17459. public string Data {
  17460. get { return result.Data; }
  17461. set { SetData(value); }
  17462. }
  17463. public Builder SetData(string value) {
  17464. pb::ThrowHelper.ThrowIfNull(value, "value");
  17465. PrepareBuilder();
  17466. result.hasData = true;
  17467. result.data_ = value;
  17468. return this;
  17469. }
  17470. public Builder ClearData() {
  17471. PrepareBuilder();
  17472. result.hasData = false;
  17473. result.data_ = "";
  17474. return this;
  17475. }
  17476. }
  17477. static OneString() {
  17478. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  17479. }
  17480. }
  17481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  17482. public sealed partial class MoreString : pb::GeneratedMessage<MoreString, MoreString.Builder> {
  17483. private MoreString() { }
  17484. private static readonly MoreString defaultInstance = new MoreString().MakeReadOnly();
  17485. private static readonly string[] _moreStringFieldNames = new string[] { "data" };
  17486. private static readonly uint[] _moreStringFieldTags = new uint[] { 10 };
  17487. public static MoreString DefaultInstance {
  17488. get { return defaultInstance; }
  17489. }
  17490. public override MoreString DefaultInstanceForType {
  17491. get { return DefaultInstance; }
  17492. }
  17493. protected override MoreString ThisMessage {
  17494. get { return this; }
  17495. }
  17496. public static pbd::MessageDescriptor Descriptor {
  17497. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_MoreString__Descriptor; }
  17498. }
  17499. protected override pb::FieldAccess.FieldAccessorTable<MoreString, MoreString.Builder> InternalFieldAccessors {
  17500. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_MoreString__FieldAccessorTable; }
  17501. }
  17502. public const int DataFieldNumber = 1;
  17503. private pbc::PopsicleList<string> data_ = new pbc::PopsicleList<string>();
  17504. public scg::IList<string> DataList {
  17505. get { return pbc::Lists.AsReadOnly(data_); }
  17506. }
  17507. public int DataCount {
  17508. get { return data_.Count; }
  17509. }
  17510. public string GetData(int index) {
  17511. return data_[index];
  17512. }
  17513. public override bool IsInitialized {
  17514. get {
  17515. return true;
  17516. }
  17517. }
  17518. public override void WriteTo(pb::ICodedOutputStream output) {
  17519. CalcSerializedSize();
  17520. string[] field_names = _moreStringFieldNames;
  17521. if (data_.Count > 0) {
  17522. output.WriteStringArray(1, field_names[0], data_);
  17523. }
  17524. UnknownFields.WriteTo(output);
  17525. }
  17526. private int memoizedSerializedSize = -1;
  17527. public override int SerializedSize {
  17528. get {
  17529. int size = memoizedSerializedSize;
  17530. if (size != -1) return size;
  17531. return CalcSerializedSize();
  17532. }
  17533. }
  17534. private int CalcSerializedSize() {
  17535. int size = memoizedSerializedSize;
  17536. if (size != -1) return size;
  17537. size = 0;
  17538. {
  17539. int dataSize = 0;
  17540. foreach (string element in DataList) {
  17541. dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
  17542. }
  17543. size += dataSize;
  17544. size += 1 * data_.Count;
  17545. }
  17546. size += UnknownFields.SerializedSize;
  17547. memoizedSerializedSize = size;
  17548. return size;
  17549. }
  17550. public static MoreString ParseFrom(pb::ByteString data) {
  17551. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  17552. }
  17553. public static MoreString ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  17554. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  17555. }
  17556. public static MoreString ParseFrom(byte[] data) {
  17557. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  17558. }
  17559. public static MoreString ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  17560. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  17561. }
  17562. public static MoreString ParseFrom(global::System.IO.Stream input) {
  17563. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  17564. }
  17565. public static MoreString ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  17566. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  17567. }
  17568. public static MoreString ParseDelimitedFrom(global::System.IO.Stream input) {
  17569. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  17570. }
  17571. public static MoreString ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  17572. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  17573. }
  17574. public static MoreString ParseFrom(pb::ICodedInputStream input) {
  17575. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  17576. }
  17577. public static MoreString ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  17578. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  17579. }
  17580. private MoreString MakeReadOnly() {
  17581. data_.MakeReadOnly();
  17582. return this;
  17583. }
  17584. public static Builder CreateBuilder() { return new Builder(); }
  17585. public override Builder ToBuilder() { return CreateBuilder(this); }
  17586. public override Builder CreateBuilderForType() { return new Builder(); }
  17587. public static Builder CreateBuilder(MoreString prototype) {
  17588. return new Builder(prototype);
  17589. }
  17590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  17591. public sealed partial class Builder : pb::GeneratedBuilder<MoreString, Builder> {
  17592. protected override Builder ThisBuilder {
  17593. get { return this; }
  17594. }
  17595. public Builder() {
  17596. result = DefaultInstance;
  17597. resultIsReadOnly = true;
  17598. }
  17599. internal Builder(MoreString cloneFrom) {
  17600. result = cloneFrom;
  17601. resultIsReadOnly = true;
  17602. }
  17603. private bool resultIsReadOnly;
  17604. private MoreString result;
  17605. private MoreString PrepareBuilder() {
  17606. if (resultIsReadOnly) {
  17607. MoreString original = result;
  17608. result = new MoreString();
  17609. resultIsReadOnly = false;
  17610. MergeFrom(original);
  17611. }
  17612. return result;
  17613. }
  17614. public override bool IsInitialized {
  17615. get { return result.IsInitialized; }
  17616. }
  17617. protected override MoreString MessageBeingBuilt {
  17618. get { return PrepareBuilder(); }
  17619. }
  17620. public override Builder Clear() {
  17621. result = DefaultInstance;
  17622. resultIsReadOnly = true;
  17623. return this;
  17624. }
  17625. public override Builder Clone() {
  17626. if (resultIsReadOnly) {
  17627. return new Builder(result);
  17628. } else {
  17629. return new Builder().MergeFrom(result);
  17630. }
  17631. }
  17632. public override pbd::MessageDescriptor DescriptorForType {
  17633. get { return global::Google.ProtocolBuffers.TestProtos.MoreString.Descriptor; }
  17634. }
  17635. public override MoreString DefaultInstanceForType {
  17636. get { return global::Google.ProtocolBuffers.TestProtos.MoreString.DefaultInstance; }
  17637. }
  17638. public override MoreString BuildPartial() {
  17639. if (resultIsReadOnly) {
  17640. return result;
  17641. }
  17642. resultIsReadOnly = true;
  17643. return result.MakeReadOnly();
  17644. }
  17645. public override Builder MergeFrom(pb::IMessage other) {
  17646. if (other is MoreString) {
  17647. return MergeFrom((MoreString) other);
  17648. } else {
  17649. base.MergeFrom(other);
  17650. return this;
  17651. }
  17652. }
  17653. public override Builder MergeFrom(MoreString other) {
  17654. if (other == global::Google.ProtocolBuffers.TestProtos.MoreString.DefaultInstance) return this;
  17655. PrepareBuilder();
  17656. if (other.data_.Count != 0) {
  17657. result.data_.Add(other.data_);
  17658. }
  17659. this.MergeUnknownFields(other.UnknownFields);
  17660. return this;
  17661. }
  17662. public override Builder MergeFrom(pb::ICodedInputStream input) {
  17663. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  17664. }
  17665. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  17666. PrepareBuilder();
  17667. pb::UnknownFieldSet.Builder unknownFields = null;
  17668. uint tag;
  17669. string field_name;
  17670. while (input.ReadTag(out tag, out field_name)) {
  17671. if(tag == 0 && field_name != null) {
  17672. int field_ordinal = global::System.Array.BinarySearch(_moreStringFieldNames, field_name, global::System.StringComparer.Ordinal);
  17673. if(field_ordinal >= 0)
  17674. tag = _moreStringFieldTags[field_ordinal];
  17675. else {
  17676. if (unknownFields == null) {
  17677. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  17678. }
  17679. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  17680. continue;
  17681. }
  17682. }
  17683. switch (tag) {
  17684. case 0: {
  17685. throw pb::InvalidProtocolBufferException.InvalidTag();
  17686. }
  17687. default: {
  17688. if (pb::WireFormat.IsEndGroupTag(tag)) {
  17689. if (unknownFields != null) {
  17690. this.UnknownFields = unknownFields.Build();
  17691. }
  17692. return this;
  17693. }
  17694. if (unknownFields == null) {
  17695. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  17696. }
  17697. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  17698. break;
  17699. }
  17700. case 10: {
  17701. input.ReadStringArray(tag, field_name, result.data_);
  17702. break;
  17703. }
  17704. }
  17705. }
  17706. if (unknownFields != null) {
  17707. this.UnknownFields = unknownFields.Build();
  17708. }
  17709. return this;
  17710. }
  17711. public pbc::IPopsicleList<string> DataList {
  17712. get { return PrepareBuilder().data_; }
  17713. }
  17714. public int DataCount {
  17715. get { return result.DataCount; }
  17716. }
  17717. public string GetData(int index) {
  17718. return result.GetData(index);
  17719. }
  17720. public Builder SetData(int index, string value) {
  17721. pb::ThrowHelper.ThrowIfNull(value, "value");
  17722. PrepareBuilder();
  17723. result.data_[index] = value;
  17724. return this;
  17725. }
  17726. public Builder AddData(string value) {
  17727. pb::ThrowHelper.ThrowIfNull(value, "value");
  17728. PrepareBuilder();
  17729. result.data_.Add(value);
  17730. return this;
  17731. }
  17732. public Builder AddRangeData(scg::IEnumerable<string> values) {
  17733. PrepareBuilder();
  17734. result.data_.Add(values);
  17735. return this;
  17736. }
  17737. public Builder ClearData() {
  17738. PrepareBuilder();
  17739. result.data_.Clear();
  17740. return this;
  17741. }
  17742. }
  17743. static MoreString() {
  17744. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  17745. }
  17746. }
  17747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  17748. public sealed partial class OneBytes : pb::GeneratedMessage<OneBytes, OneBytes.Builder> {
  17749. private OneBytes() { }
  17750. private static readonly OneBytes defaultInstance = new OneBytes().MakeReadOnly();
  17751. private static readonly string[] _oneBytesFieldNames = new string[] { "data" };
  17752. private static readonly uint[] _oneBytesFieldTags = new uint[] { 10 };
  17753. public static OneBytes DefaultInstance {
  17754. get { return defaultInstance; }
  17755. }
  17756. public override OneBytes DefaultInstanceForType {
  17757. get { return DefaultInstance; }
  17758. }
  17759. protected override OneBytes ThisMessage {
  17760. get { return this; }
  17761. }
  17762. public static pbd::MessageDescriptor Descriptor {
  17763. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_OneBytes__Descriptor; }
  17764. }
  17765. protected override pb::FieldAccess.FieldAccessorTable<OneBytes, OneBytes.Builder> InternalFieldAccessors {
  17766. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_OneBytes__FieldAccessorTable; }
  17767. }
  17768. public const int DataFieldNumber = 1;
  17769. private bool hasData;
  17770. private pb::ByteString data_ = pb::ByteString.Empty;
  17771. public bool HasData {
  17772. get { return hasData; }
  17773. }
  17774. public pb::ByteString Data {
  17775. get { return data_; }
  17776. }
  17777. public override bool IsInitialized {
  17778. get {
  17779. return true;
  17780. }
  17781. }
  17782. public override void WriteTo(pb::ICodedOutputStream output) {
  17783. CalcSerializedSize();
  17784. string[] field_names = _oneBytesFieldNames;
  17785. if (hasData) {
  17786. output.WriteBytes(1, field_names[0], Data);
  17787. }
  17788. UnknownFields.WriteTo(output);
  17789. }
  17790. private int memoizedSerializedSize = -1;
  17791. public override int SerializedSize {
  17792. get {
  17793. int size = memoizedSerializedSize;
  17794. if (size != -1) return size;
  17795. return CalcSerializedSize();
  17796. }
  17797. }
  17798. private int CalcSerializedSize() {
  17799. int size = memoizedSerializedSize;
  17800. if (size != -1) return size;
  17801. size = 0;
  17802. if (hasData) {
  17803. size += pb::CodedOutputStream.ComputeBytesSize(1, Data);
  17804. }
  17805. size += UnknownFields.SerializedSize;
  17806. memoizedSerializedSize = size;
  17807. return size;
  17808. }
  17809. public static OneBytes ParseFrom(pb::ByteString data) {
  17810. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  17811. }
  17812. public static OneBytes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  17813. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  17814. }
  17815. public static OneBytes ParseFrom(byte[] data) {
  17816. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  17817. }
  17818. public static OneBytes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  17819. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  17820. }
  17821. public static OneBytes ParseFrom(global::System.IO.Stream input) {
  17822. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  17823. }
  17824. public static OneBytes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  17825. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  17826. }
  17827. public static OneBytes ParseDelimitedFrom(global::System.IO.Stream input) {
  17828. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  17829. }
  17830. public static OneBytes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  17831. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  17832. }
  17833. public static OneBytes ParseFrom(pb::ICodedInputStream input) {
  17834. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  17835. }
  17836. public static OneBytes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  17837. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  17838. }
  17839. private OneBytes MakeReadOnly() {
  17840. return this;
  17841. }
  17842. public static Builder CreateBuilder() { return new Builder(); }
  17843. public override Builder ToBuilder() { return CreateBuilder(this); }
  17844. public override Builder CreateBuilderForType() { return new Builder(); }
  17845. public static Builder CreateBuilder(OneBytes prototype) {
  17846. return new Builder(prototype);
  17847. }
  17848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  17849. public sealed partial class Builder : pb::GeneratedBuilder<OneBytes, Builder> {
  17850. protected override Builder ThisBuilder {
  17851. get { return this; }
  17852. }
  17853. public Builder() {
  17854. result = DefaultInstance;
  17855. resultIsReadOnly = true;
  17856. }
  17857. internal Builder(OneBytes cloneFrom) {
  17858. result = cloneFrom;
  17859. resultIsReadOnly = true;
  17860. }
  17861. private bool resultIsReadOnly;
  17862. private OneBytes result;
  17863. private OneBytes PrepareBuilder() {
  17864. if (resultIsReadOnly) {
  17865. OneBytes original = result;
  17866. result = new OneBytes();
  17867. resultIsReadOnly = false;
  17868. MergeFrom(original);
  17869. }
  17870. return result;
  17871. }
  17872. public override bool IsInitialized {
  17873. get { return result.IsInitialized; }
  17874. }
  17875. protected override OneBytes MessageBeingBuilt {
  17876. get { return PrepareBuilder(); }
  17877. }
  17878. public override Builder Clear() {
  17879. result = DefaultInstance;
  17880. resultIsReadOnly = true;
  17881. return this;
  17882. }
  17883. public override Builder Clone() {
  17884. if (resultIsReadOnly) {
  17885. return new Builder(result);
  17886. } else {
  17887. return new Builder().MergeFrom(result);
  17888. }
  17889. }
  17890. public override pbd::MessageDescriptor DescriptorForType {
  17891. get { return global::Google.ProtocolBuffers.TestProtos.OneBytes.Descriptor; }
  17892. }
  17893. public override OneBytes DefaultInstanceForType {
  17894. get { return global::Google.ProtocolBuffers.TestProtos.OneBytes.DefaultInstance; }
  17895. }
  17896. public override OneBytes BuildPartial() {
  17897. if (resultIsReadOnly) {
  17898. return result;
  17899. }
  17900. resultIsReadOnly = true;
  17901. return result.MakeReadOnly();
  17902. }
  17903. public override Builder MergeFrom(pb::IMessage other) {
  17904. if (other is OneBytes) {
  17905. return MergeFrom((OneBytes) other);
  17906. } else {
  17907. base.MergeFrom(other);
  17908. return this;
  17909. }
  17910. }
  17911. public override Builder MergeFrom(OneBytes other) {
  17912. if (other == global::Google.ProtocolBuffers.TestProtos.OneBytes.DefaultInstance) return this;
  17913. PrepareBuilder();
  17914. if (other.HasData) {
  17915. Data = other.Data;
  17916. }
  17917. this.MergeUnknownFields(other.UnknownFields);
  17918. return this;
  17919. }
  17920. public override Builder MergeFrom(pb::ICodedInputStream input) {
  17921. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  17922. }
  17923. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  17924. PrepareBuilder();
  17925. pb::UnknownFieldSet.Builder unknownFields = null;
  17926. uint tag;
  17927. string field_name;
  17928. while (input.ReadTag(out tag, out field_name)) {
  17929. if(tag == 0 && field_name != null) {
  17930. int field_ordinal = global::System.Array.BinarySearch(_oneBytesFieldNames, field_name, global::System.StringComparer.Ordinal);
  17931. if(field_ordinal >= 0)
  17932. tag = _oneBytesFieldTags[field_ordinal];
  17933. else {
  17934. if (unknownFields == null) {
  17935. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  17936. }
  17937. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  17938. continue;
  17939. }
  17940. }
  17941. switch (tag) {
  17942. case 0: {
  17943. throw pb::InvalidProtocolBufferException.InvalidTag();
  17944. }
  17945. default: {
  17946. if (pb::WireFormat.IsEndGroupTag(tag)) {
  17947. if (unknownFields != null) {
  17948. this.UnknownFields = unknownFields.Build();
  17949. }
  17950. return this;
  17951. }
  17952. if (unknownFields == null) {
  17953. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  17954. }
  17955. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  17956. break;
  17957. }
  17958. case 10: {
  17959. result.hasData = input.ReadBytes(ref result.data_);
  17960. break;
  17961. }
  17962. }
  17963. }
  17964. if (unknownFields != null) {
  17965. this.UnknownFields = unknownFields.Build();
  17966. }
  17967. return this;
  17968. }
  17969. public bool HasData {
  17970. get { return result.hasData; }
  17971. }
  17972. public pb::ByteString Data {
  17973. get { return result.Data; }
  17974. set { SetData(value); }
  17975. }
  17976. public Builder SetData(pb::ByteString value) {
  17977. pb::ThrowHelper.ThrowIfNull(value, "value");
  17978. PrepareBuilder();
  17979. result.hasData = true;
  17980. result.data_ = value;
  17981. return this;
  17982. }
  17983. public Builder ClearData() {
  17984. PrepareBuilder();
  17985. result.hasData = false;
  17986. result.data_ = pb::ByteString.Empty;
  17987. return this;
  17988. }
  17989. }
  17990. static OneBytes() {
  17991. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  17992. }
  17993. }
  17994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  17995. public sealed partial class MoreBytes : pb::GeneratedMessage<MoreBytes, MoreBytes.Builder> {
  17996. private MoreBytes() { }
  17997. private static readonly MoreBytes defaultInstance = new MoreBytes().MakeReadOnly();
  17998. private static readonly string[] _moreBytesFieldNames = new string[] { "data" };
  17999. private static readonly uint[] _moreBytesFieldTags = new uint[] { 10 };
  18000. public static MoreBytes DefaultInstance {
  18001. get { return defaultInstance; }
  18002. }
  18003. public override MoreBytes DefaultInstanceForType {
  18004. get { return DefaultInstance; }
  18005. }
  18006. protected override MoreBytes ThisMessage {
  18007. get { return this; }
  18008. }
  18009. public static pbd::MessageDescriptor Descriptor {
  18010. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_MoreBytes__Descriptor; }
  18011. }
  18012. protected override pb::FieldAccess.FieldAccessorTable<MoreBytes, MoreBytes.Builder> InternalFieldAccessors {
  18013. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_MoreBytes__FieldAccessorTable; }
  18014. }
  18015. public const int DataFieldNumber = 1;
  18016. private pbc::PopsicleList<pb::ByteString> data_ = new pbc::PopsicleList<pb::ByteString>();
  18017. public scg::IList<pb::ByteString> DataList {
  18018. get { return pbc::Lists.AsReadOnly(data_); }
  18019. }
  18020. public int DataCount {
  18021. get { return data_.Count; }
  18022. }
  18023. public pb::ByteString GetData(int index) {
  18024. return data_[index];
  18025. }
  18026. public override bool IsInitialized {
  18027. get {
  18028. return true;
  18029. }
  18030. }
  18031. public override void WriteTo(pb::ICodedOutputStream output) {
  18032. CalcSerializedSize();
  18033. string[] field_names = _moreBytesFieldNames;
  18034. if (data_.Count > 0) {
  18035. output.WriteBytesArray(1, field_names[0], data_);
  18036. }
  18037. UnknownFields.WriteTo(output);
  18038. }
  18039. private int memoizedSerializedSize = -1;
  18040. public override int SerializedSize {
  18041. get {
  18042. int size = memoizedSerializedSize;
  18043. if (size != -1) return size;
  18044. return CalcSerializedSize();
  18045. }
  18046. }
  18047. private int CalcSerializedSize() {
  18048. int size = memoizedSerializedSize;
  18049. if (size != -1) return size;
  18050. size = 0;
  18051. {
  18052. int dataSize = 0;
  18053. foreach (pb::ByteString element in DataList) {
  18054. dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element);
  18055. }
  18056. size += dataSize;
  18057. size += 1 * data_.Count;
  18058. }
  18059. size += UnknownFields.SerializedSize;
  18060. memoizedSerializedSize = size;
  18061. return size;
  18062. }
  18063. public static MoreBytes ParseFrom(pb::ByteString data) {
  18064. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  18065. }
  18066. public static MoreBytes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  18067. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  18068. }
  18069. public static MoreBytes ParseFrom(byte[] data) {
  18070. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  18071. }
  18072. public static MoreBytes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  18073. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  18074. }
  18075. public static MoreBytes ParseFrom(global::System.IO.Stream input) {
  18076. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  18077. }
  18078. public static MoreBytes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  18079. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  18080. }
  18081. public static MoreBytes ParseDelimitedFrom(global::System.IO.Stream input) {
  18082. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  18083. }
  18084. public static MoreBytes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  18085. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  18086. }
  18087. public static MoreBytes ParseFrom(pb::ICodedInputStream input) {
  18088. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  18089. }
  18090. public static MoreBytes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  18091. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  18092. }
  18093. private MoreBytes MakeReadOnly() {
  18094. data_.MakeReadOnly();
  18095. return this;
  18096. }
  18097. public static Builder CreateBuilder() { return new Builder(); }
  18098. public override Builder ToBuilder() { return CreateBuilder(this); }
  18099. public override Builder CreateBuilderForType() { return new Builder(); }
  18100. public static Builder CreateBuilder(MoreBytes prototype) {
  18101. return new Builder(prototype);
  18102. }
  18103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  18104. public sealed partial class Builder : pb::GeneratedBuilder<MoreBytes, Builder> {
  18105. protected override Builder ThisBuilder {
  18106. get { return this; }
  18107. }
  18108. public Builder() {
  18109. result = DefaultInstance;
  18110. resultIsReadOnly = true;
  18111. }
  18112. internal Builder(MoreBytes cloneFrom) {
  18113. result = cloneFrom;
  18114. resultIsReadOnly = true;
  18115. }
  18116. private bool resultIsReadOnly;
  18117. private MoreBytes result;
  18118. private MoreBytes PrepareBuilder() {
  18119. if (resultIsReadOnly) {
  18120. MoreBytes original = result;
  18121. result = new MoreBytes();
  18122. resultIsReadOnly = false;
  18123. MergeFrom(original);
  18124. }
  18125. return result;
  18126. }
  18127. public override bool IsInitialized {
  18128. get { return result.IsInitialized; }
  18129. }
  18130. protected override MoreBytes MessageBeingBuilt {
  18131. get { return PrepareBuilder(); }
  18132. }
  18133. public override Builder Clear() {
  18134. result = DefaultInstance;
  18135. resultIsReadOnly = true;
  18136. return this;
  18137. }
  18138. public override Builder Clone() {
  18139. if (resultIsReadOnly) {
  18140. return new Builder(result);
  18141. } else {
  18142. return new Builder().MergeFrom(result);
  18143. }
  18144. }
  18145. public override pbd::MessageDescriptor DescriptorForType {
  18146. get { return global::Google.ProtocolBuffers.TestProtos.MoreBytes.Descriptor; }
  18147. }
  18148. public override MoreBytes DefaultInstanceForType {
  18149. get { return global::Google.ProtocolBuffers.TestProtos.MoreBytes.DefaultInstance; }
  18150. }
  18151. public override MoreBytes BuildPartial() {
  18152. if (resultIsReadOnly) {
  18153. return result;
  18154. }
  18155. resultIsReadOnly = true;
  18156. return result.MakeReadOnly();
  18157. }
  18158. public override Builder MergeFrom(pb::IMessage other) {
  18159. if (other is MoreBytes) {
  18160. return MergeFrom((MoreBytes) other);
  18161. } else {
  18162. base.MergeFrom(other);
  18163. return this;
  18164. }
  18165. }
  18166. public override Builder MergeFrom(MoreBytes other) {
  18167. if (other == global::Google.ProtocolBuffers.TestProtos.MoreBytes.DefaultInstance) return this;
  18168. PrepareBuilder();
  18169. if (other.data_.Count != 0) {
  18170. result.data_.Add(other.data_);
  18171. }
  18172. this.MergeUnknownFields(other.UnknownFields);
  18173. return this;
  18174. }
  18175. public override Builder MergeFrom(pb::ICodedInputStream input) {
  18176. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  18177. }
  18178. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  18179. PrepareBuilder();
  18180. pb::UnknownFieldSet.Builder unknownFields = null;
  18181. uint tag;
  18182. string field_name;
  18183. while (input.ReadTag(out tag, out field_name)) {
  18184. if(tag == 0 && field_name != null) {
  18185. int field_ordinal = global::System.Array.BinarySearch(_moreBytesFieldNames, field_name, global::System.StringComparer.Ordinal);
  18186. if(field_ordinal >= 0)
  18187. tag = _moreBytesFieldTags[field_ordinal];
  18188. else {
  18189. if (unknownFields == null) {
  18190. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  18191. }
  18192. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  18193. continue;
  18194. }
  18195. }
  18196. switch (tag) {
  18197. case 0: {
  18198. throw pb::InvalidProtocolBufferException.InvalidTag();
  18199. }
  18200. default: {
  18201. if (pb::WireFormat.IsEndGroupTag(tag)) {
  18202. if (unknownFields != null) {
  18203. this.UnknownFields = unknownFields.Build();
  18204. }
  18205. return this;
  18206. }
  18207. if (unknownFields == null) {
  18208. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  18209. }
  18210. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  18211. break;
  18212. }
  18213. case 10: {
  18214. input.ReadBytesArray(tag, field_name, result.data_);
  18215. break;
  18216. }
  18217. }
  18218. }
  18219. if (unknownFields != null) {
  18220. this.UnknownFields = unknownFields.Build();
  18221. }
  18222. return this;
  18223. }
  18224. public pbc::IPopsicleList<pb::ByteString> DataList {
  18225. get { return PrepareBuilder().data_; }
  18226. }
  18227. public int DataCount {
  18228. get { return result.DataCount; }
  18229. }
  18230. public pb::ByteString GetData(int index) {
  18231. return result.GetData(index);
  18232. }
  18233. public Builder SetData(int index, pb::ByteString value) {
  18234. pb::ThrowHelper.ThrowIfNull(value, "value");
  18235. PrepareBuilder();
  18236. result.data_[index] = value;
  18237. return this;
  18238. }
  18239. public Builder AddData(pb::ByteString value) {
  18240. pb::ThrowHelper.ThrowIfNull(value, "value");
  18241. PrepareBuilder();
  18242. result.data_.Add(value);
  18243. return this;
  18244. }
  18245. public Builder AddRangeData(scg::IEnumerable<pb::ByteString> values) {
  18246. PrepareBuilder();
  18247. result.data_.Add(values);
  18248. return this;
  18249. }
  18250. public Builder ClearData() {
  18251. PrepareBuilder();
  18252. result.data_.Clear();
  18253. return this;
  18254. }
  18255. }
  18256. static MoreBytes() {
  18257. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  18258. }
  18259. }
  18260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  18261. public sealed partial class Int32Message : pb::GeneratedMessage<Int32Message, Int32Message.Builder> {
  18262. private Int32Message() { }
  18263. private static readonly Int32Message defaultInstance = new Int32Message().MakeReadOnly();
  18264. private static readonly string[] _int32MessageFieldNames = new string[] { "data" };
  18265. private static readonly uint[] _int32MessageFieldTags = new uint[] { 8 };
  18266. public static Int32Message DefaultInstance {
  18267. get { return defaultInstance; }
  18268. }
  18269. public override Int32Message DefaultInstanceForType {
  18270. get { return DefaultInstance; }
  18271. }
  18272. protected override Int32Message ThisMessage {
  18273. get { return this; }
  18274. }
  18275. public static pbd::MessageDescriptor Descriptor {
  18276. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_Int32Message__Descriptor; }
  18277. }
  18278. protected override pb::FieldAccess.FieldAccessorTable<Int32Message, Int32Message.Builder> InternalFieldAccessors {
  18279. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_Int32Message__FieldAccessorTable; }
  18280. }
  18281. public const int DataFieldNumber = 1;
  18282. private bool hasData;
  18283. private int data_;
  18284. public bool HasData {
  18285. get { return hasData; }
  18286. }
  18287. public int Data {
  18288. get { return data_; }
  18289. }
  18290. public override bool IsInitialized {
  18291. get {
  18292. return true;
  18293. }
  18294. }
  18295. public override void WriteTo(pb::ICodedOutputStream output) {
  18296. CalcSerializedSize();
  18297. string[] field_names = _int32MessageFieldNames;
  18298. if (hasData) {
  18299. output.WriteInt32(1, field_names[0], Data);
  18300. }
  18301. UnknownFields.WriteTo(output);
  18302. }
  18303. private int memoizedSerializedSize = -1;
  18304. public override int SerializedSize {
  18305. get {
  18306. int size = memoizedSerializedSize;
  18307. if (size != -1) return size;
  18308. return CalcSerializedSize();
  18309. }
  18310. }
  18311. private int CalcSerializedSize() {
  18312. int size = memoizedSerializedSize;
  18313. if (size != -1) return size;
  18314. size = 0;
  18315. if (hasData) {
  18316. size += pb::CodedOutputStream.ComputeInt32Size(1, Data);
  18317. }
  18318. size += UnknownFields.SerializedSize;
  18319. memoizedSerializedSize = size;
  18320. return size;
  18321. }
  18322. public static Int32Message ParseFrom(pb::ByteString data) {
  18323. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  18324. }
  18325. public static Int32Message ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  18326. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  18327. }
  18328. public static Int32Message ParseFrom(byte[] data) {
  18329. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  18330. }
  18331. public static Int32Message ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  18332. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  18333. }
  18334. public static Int32Message ParseFrom(global::System.IO.Stream input) {
  18335. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  18336. }
  18337. public static Int32Message ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  18338. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  18339. }
  18340. public static Int32Message ParseDelimitedFrom(global::System.IO.Stream input) {
  18341. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  18342. }
  18343. public static Int32Message ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  18344. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  18345. }
  18346. public static Int32Message ParseFrom(pb::ICodedInputStream input) {
  18347. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  18348. }
  18349. public static Int32Message ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  18350. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  18351. }
  18352. private Int32Message MakeReadOnly() {
  18353. return this;
  18354. }
  18355. public static Builder CreateBuilder() { return new Builder(); }
  18356. public override Builder ToBuilder() { return CreateBuilder(this); }
  18357. public override Builder CreateBuilderForType() { return new Builder(); }
  18358. public static Builder CreateBuilder(Int32Message prototype) {
  18359. return new Builder(prototype);
  18360. }
  18361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  18362. public sealed partial class Builder : pb::GeneratedBuilder<Int32Message, Builder> {
  18363. protected override Builder ThisBuilder {
  18364. get { return this; }
  18365. }
  18366. public Builder() {
  18367. result = DefaultInstance;
  18368. resultIsReadOnly = true;
  18369. }
  18370. internal Builder(Int32Message cloneFrom) {
  18371. result = cloneFrom;
  18372. resultIsReadOnly = true;
  18373. }
  18374. private bool resultIsReadOnly;
  18375. private Int32Message result;
  18376. private Int32Message PrepareBuilder() {
  18377. if (resultIsReadOnly) {
  18378. Int32Message original = result;
  18379. result = new Int32Message();
  18380. resultIsReadOnly = false;
  18381. MergeFrom(original);
  18382. }
  18383. return result;
  18384. }
  18385. public override bool IsInitialized {
  18386. get { return result.IsInitialized; }
  18387. }
  18388. protected override Int32Message MessageBeingBuilt {
  18389. get { return PrepareBuilder(); }
  18390. }
  18391. public override Builder Clear() {
  18392. result = DefaultInstance;
  18393. resultIsReadOnly = true;
  18394. return this;
  18395. }
  18396. public override Builder Clone() {
  18397. if (resultIsReadOnly) {
  18398. return new Builder(result);
  18399. } else {
  18400. return new Builder().MergeFrom(result);
  18401. }
  18402. }
  18403. public override pbd::MessageDescriptor DescriptorForType {
  18404. get { return global::Google.ProtocolBuffers.TestProtos.Int32Message.Descriptor; }
  18405. }
  18406. public override Int32Message DefaultInstanceForType {
  18407. get { return global::Google.ProtocolBuffers.TestProtos.Int32Message.DefaultInstance; }
  18408. }
  18409. public override Int32Message BuildPartial() {
  18410. if (resultIsReadOnly) {
  18411. return result;
  18412. }
  18413. resultIsReadOnly = true;
  18414. return result.MakeReadOnly();
  18415. }
  18416. public override Builder MergeFrom(pb::IMessage other) {
  18417. if (other is Int32Message) {
  18418. return MergeFrom((Int32Message) other);
  18419. } else {
  18420. base.MergeFrom(other);
  18421. return this;
  18422. }
  18423. }
  18424. public override Builder MergeFrom(Int32Message other) {
  18425. if (other == global::Google.ProtocolBuffers.TestProtos.Int32Message.DefaultInstance) return this;
  18426. PrepareBuilder();
  18427. if (other.HasData) {
  18428. Data = other.Data;
  18429. }
  18430. this.MergeUnknownFields(other.UnknownFields);
  18431. return this;
  18432. }
  18433. public override Builder MergeFrom(pb::ICodedInputStream input) {
  18434. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  18435. }
  18436. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  18437. PrepareBuilder();
  18438. pb::UnknownFieldSet.Builder unknownFields = null;
  18439. uint tag;
  18440. string field_name;
  18441. while (input.ReadTag(out tag, out field_name)) {
  18442. if(tag == 0 && field_name != null) {
  18443. int field_ordinal = global::System.Array.BinarySearch(_int32MessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  18444. if(field_ordinal >= 0)
  18445. tag = _int32MessageFieldTags[field_ordinal];
  18446. else {
  18447. if (unknownFields == null) {
  18448. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  18449. }
  18450. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  18451. continue;
  18452. }
  18453. }
  18454. switch (tag) {
  18455. case 0: {
  18456. throw pb::InvalidProtocolBufferException.InvalidTag();
  18457. }
  18458. default: {
  18459. if (pb::WireFormat.IsEndGroupTag(tag)) {
  18460. if (unknownFields != null) {
  18461. this.UnknownFields = unknownFields.Build();
  18462. }
  18463. return this;
  18464. }
  18465. if (unknownFields == null) {
  18466. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  18467. }
  18468. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  18469. break;
  18470. }
  18471. case 8: {
  18472. result.hasData = input.ReadInt32(ref result.data_);
  18473. break;
  18474. }
  18475. }
  18476. }
  18477. if (unknownFields != null) {
  18478. this.UnknownFields = unknownFields.Build();
  18479. }
  18480. return this;
  18481. }
  18482. public bool HasData {
  18483. get { return result.hasData; }
  18484. }
  18485. public int Data {
  18486. get { return result.Data; }
  18487. set { SetData(value); }
  18488. }
  18489. public Builder SetData(int value) {
  18490. PrepareBuilder();
  18491. result.hasData = true;
  18492. result.data_ = value;
  18493. return this;
  18494. }
  18495. public Builder ClearData() {
  18496. PrepareBuilder();
  18497. result.hasData = false;
  18498. result.data_ = 0;
  18499. return this;
  18500. }
  18501. }
  18502. static Int32Message() {
  18503. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  18504. }
  18505. }
  18506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  18507. public sealed partial class Uint32Message : pb::GeneratedMessage<Uint32Message, Uint32Message.Builder> {
  18508. private Uint32Message() { }
  18509. private static readonly Uint32Message defaultInstance = new Uint32Message().MakeReadOnly();
  18510. private static readonly string[] _uint32MessageFieldNames = new string[] { "data" };
  18511. private static readonly uint[] _uint32MessageFieldTags = new uint[] { 8 };
  18512. public static Uint32Message DefaultInstance {
  18513. get { return defaultInstance; }
  18514. }
  18515. public override Uint32Message DefaultInstanceForType {
  18516. get { return DefaultInstance; }
  18517. }
  18518. protected override Uint32Message ThisMessage {
  18519. get { return this; }
  18520. }
  18521. public static pbd::MessageDescriptor Descriptor {
  18522. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_Uint32Message__Descriptor; }
  18523. }
  18524. protected override pb::FieldAccess.FieldAccessorTable<Uint32Message, Uint32Message.Builder> InternalFieldAccessors {
  18525. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_Uint32Message__FieldAccessorTable; }
  18526. }
  18527. public const int DataFieldNumber = 1;
  18528. private bool hasData;
  18529. private uint data_;
  18530. public bool HasData {
  18531. get { return hasData; }
  18532. }
  18533. [global::System.CLSCompliant(false)]
  18534. public uint Data {
  18535. get { return data_; }
  18536. }
  18537. public override bool IsInitialized {
  18538. get {
  18539. return true;
  18540. }
  18541. }
  18542. public override void WriteTo(pb::ICodedOutputStream output) {
  18543. CalcSerializedSize();
  18544. string[] field_names = _uint32MessageFieldNames;
  18545. if (hasData) {
  18546. output.WriteUInt32(1, field_names[0], Data);
  18547. }
  18548. UnknownFields.WriteTo(output);
  18549. }
  18550. private int memoizedSerializedSize = -1;
  18551. public override int SerializedSize {
  18552. get {
  18553. int size = memoizedSerializedSize;
  18554. if (size != -1) return size;
  18555. return CalcSerializedSize();
  18556. }
  18557. }
  18558. private int CalcSerializedSize() {
  18559. int size = memoizedSerializedSize;
  18560. if (size != -1) return size;
  18561. size = 0;
  18562. if (hasData) {
  18563. size += pb::CodedOutputStream.ComputeUInt32Size(1, Data);
  18564. }
  18565. size += UnknownFields.SerializedSize;
  18566. memoizedSerializedSize = size;
  18567. return size;
  18568. }
  18569. public static Uint32Message ParseFrom(pb::ByteString data) {
  18570. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  18571. }
  18572. public static Uint32Message ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  18573. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  18574. }
  18575. public static Uint32Message ParseFrom(byte[] data) {
  18576. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  18577. }
  18578. public static Uint32Message ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  18579. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  18580. }
  18581. public static Uint32Message ParseFrom(global::System.IO.Stream input) {
  18582. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  18583. }
  18584. public static Uint32Message ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  18585. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  18586. }
  18587. public static Uint32Message ParseDelimitedFrom(global::System.IO.Stream input) {
  18588. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  18589. }
  18590. public static Uint32Message ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  18591. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  18592. }
  18593. public static Uint32Message ParseFrom(pb::ICodedInputStream input) {
  18594. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  18595. }
  18596. public static Uint32Message ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  18597. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  18598. }
  18599. private Uint32Message MakeReadOnly() {
  18600. return this;
  18601. }
  18602. public static Builder CreateBuilder() { return new Builder(); }
  18603. public override Builder ToBuilder() { return CreateBuilder(this); }
  18604. public override Builder CreateBuilderForType() { return new Builder(); }
  18605. public static Builder CreateBuilder(Uint32Message prototype) {
  18606. return new Builder(prototype);
  18607. }
  18608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  18609. public sealed partial class Builder : pb::GeneratedBuilder<Uint32Message, Builder> {
  18610. protected override Builder ThisBuilder {
  18611. get { return this; }
  18612. }
  18613. public Builder() {
  18614. result = DefaultInstance;
  18615. resultIsReadOnly = true;
  18616. }
  18617. internal Builder(Uint32Message cloneFrom) {
  18618. result = cloneFrom;
  18619. resultIsReadOnly = true;
  18620. }
  18621. private bool resultIsReadOnly;
  18622. private Uint32Message result;
  18623. private Uint32Message PrepareBuilder() {
  18624. if (resultIsReadOnly) {
  18625. Uint32Message original = result;
  18626. result = new Uint32Message();
  18627. resultIsReadOnly = false;
  18628. MergeFrom(original);
  18629. }
  18630. return result;
  18631. }
  18632. public override bool IsInitialized {
  18633. get { return result.IsInitialized; }
  18634. }
  18635. protected override Uint32Message MessageBeingBuilt {
  18636. get { return PrepareBuilder(); }
  18637. }
  18638. public override Builder Clear() {
  18639. result = DefaultInstance;
  18640. resultIsReadOnly = true;
  18641. return this;
  18642. }
  18643. public override Builder Clone() {
  18644. if (resultIsReadOnly) {
  18645. return new Builder(result);
  18646. } else {
  18647. return new Builder().MergeFrom(result);
  18648. }
  18649. }
  18650. public override pbd::MessageDescriptor DescriptorForType {
  18651. get { return global::Google.ProtocolBuffers.TestProtos.Uint32Message.Descriptor; }
  18652. }
  18653. public override Uint32Message DefaultInstanceForType {
  18654. get { return global::Google.ProtocolBuffers.TestProtos.Uint32Message.DefaultInstance; }
  18655. }
  18656. public override Uint32Message BuildPartial() {
  18657. if (resultIsReadOnly) {
  18658. return result;
  18659. }
  18660. resultIsReadOnly = true;
  18661. return result.MakeReadOnly();
  18662. }
  18663. public override Builder MergeFrom(pb::IMessage other) {
  18664. if (other is Uint32Message) {
  18665. return MergeFrom((Uint32Message) other);
  18666. } else {
  18667. base.MergeFrom(other);
  18668. return this;
  18669. }
  18670. }
  18671. public override Builder MergeFrom(Uint32Message other) {
  18672. if (other == global::Google.ProtocolBuffers.TestProtos.Uint32Message.DefaultInstance) return this;
  18673. PrepareBuilder();
  18674. if (other.HasData) {
  18675. Data = other.Data;
  18676. }
  18677. this.MergeUnknownFields(other.UnknownFields);
  18678. return this;
  18679. }
  18680. public override Builder MergeFrom(pb::ICodedInputStream input) {
  18681. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  18682. }
  18683. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  18684. PrepareBuilder();
  18685. pb::UnknownFieldSet.Builder unknownFields = null;
  18686. uint tag;
  18687. string field_name;
  18688. while (input.ReadTag(out tag, out field_name)) {
  18689. if(tag == 0 && field_name != null) {
  18690. int field_ordinal = global::System.Array.BinarySearch(_uint32MessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  18691. if(field_ordinal >= 0)
  18692. tag = _uint32MessageFieldTags[field_ordinal];
  18693. else {
  18694. if (unknownFields == null) {
  18695. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  18696. }
  18697. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  18698. continue;
  18699. }
  18700. }
  18701. switch (tag) {
  18702. case 0: {
  18703. throw pb::InvalidProtocolBufferException.InvalidTag();
  18704. }
  18705. default: {
  18706. if (pb::WireFormat.IsEndGroupTag(tag)) {
  18707. if (unknownFields != null) {
  18708. this.UnknownFields = unknownFields.Build();
  18709. }
  18710. return this;
  18711. }
  18712. if (unknownFields == null) {
  18713. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  18714. }
  18715. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  18716. break;
  18717. }
  18718. case 8: {
  18719. result.hasData = input.ReadUInt32(ref result.data_);
  18720. break;
  18721. }
  18722. }
  18723. }
  18724. if (unknownFields != null) {
  18725. this.UnknownFields = unknownFields.Build();
  18726. }
  18727. return this;
  18728. }
  18729. public bool HasData {
  18730. get { return result.hasData; }
  18731. }
  18732. [global::System.CLSCompliant(false)]
  18733. public uint Data {
  18734. get { return result.Data; }
  18735. set { SetData(value); }
  18736. }
  18737. [global::System.CLSCompliant(false)]
  18738. public Builder SetData(uint value) {
  18739. PrepareBuilder();
  18740. result.hasData = true;
  18741. result.data_ = value;
  18742. return this;
  18743. }
  18744. public Builder ClearData() {
  18745. PrepareBuilder();
  18746. result.hasData = false;
  18747. result.data_ = 0;
  18748. return this;
  18749. }
  18750. }
  18751. static Uint32Message() {
  18752. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  18753. }
  18754. }
  18755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  18756. public sealed partial class Int64Message : pb::GeneratedMessage<Int64Message, Int64Message.Builder> {
  18757. private Int64Message() { }
  18758. private static readonly Int64Message defaultInstance = new Int64Message().MakeReadOnly();
  18759. private static readonly string[] _int64MessageFieldNames = new string[] { "data" };
  18760. private static readonly uint[] _int64MessageFieldTags = new uint[] { 8 };
  18761. public static Int64Message DefaultInstance {
  18762. get { return defaultInstance; }
  18763. }
  18764. public override Int64Message DefaultInstanceForType {
  18765. get { return DefaultInstance; }
  18766. }
  18767. protected override Int64Message ThisMessage {
  18768. get { return this; }
  18769. }
  18770. public static pbd::MessageDescriptor Descriptor {
  18771. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_Int64Message__Descriptor; }
  18772. }
  18773. protected override pb::FieldAccess.FieldAccessorTable<Int64Message, Int64Message.Builder> InternalFieldAccessors {
  18774. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_Int64Message__FieldAccessorTable; }
  18775. }
  18776. public const int DataFieldNumber = 1;
  18777. private bool hasData;
  18778. private long data_;
  18779. public bool HasData {
  18780. get { return hasData; }
  18781. }
  18782. public long Data {
  18783. get { return data_; }
  18784. }
  18785. public override bool IsInitialized {
  18786. get {
  18787. return true;
  18788. }
  18789. }
  18790. public override void WriteTo(pb::ICodedOutputStream output) {
  18791. CalcSerializedSize();
  18792. string[] field_names = _int64MessageFieldNames;
  18793. if (hasData) {
  18794. output.WriteInt64(1, field_names[0], Data);
  18795. }
  18796. UnknownFields.WriteTo(output);
  18797. }
  18798. private int memoizedSerializedSize = -1;
  18799. public override int SerializedSize {
  18800. get {
  18801. int size = memoizedSerializedSize;
  18802. if (size != -1) return size;
  18803. return CalcSerializedSize();
  18804. }
  18805. }
  18806. private int CalcSerializedSize() {
  18807. int size = memoizedSerializedSize;
  18808. if (size != -1) return size;
  18809. size = 0;
  18810. if (hasData) {
  18811. size += pb::CodedOutputStream.ComputeInt64Size(1, Data);
  18812. }
  18813. size += UnknownFields.SerializedSize;
  18814. memoizedSerializedSize = size;
  18815. return size;
  18816. }
  18817. public static Int64Message ParseFrom(pb::ByteString data) {
  18818. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  18819. }
  18820. public static Int64Message ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  18821. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  18822. }
  18823. public static Int64Message ParseFrom(byte[] data) {
  18824. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  18825. }
  18826. public static Int64Message ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  18827. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  18828. }
  18829. public static Int64Message ParseFrom(global::System.IO.Stream input) {
  18830. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  18831. }
  18832. public static Int64Message ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  18833. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  18834. }
  18835. public static Int64Message ParseDelimitedFrom(global::System.IO.Stream input) {
  18836. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  18837. }
  18838. public static Int64Message ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  18839. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  18840. }
  18841. public static Int64Message ParseFrom(pb::ICodedInputStream input) {
  18842. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  18843. }
  18844. public static Int64Message ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  18845. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  18846. }
  18847. private Int64Message MakeReadOnly() {
  18848. return this;
  18849. }
  18850. public static Builder CreateBuilder() { return new Builder(); }
  18851. public override Builder ToBuilder() { return CreateBuilder(this); }
  18852. public override Builder CreateBuilderForType() { return new Builder(); }
  18853. public static Builder CreateBuilder(Int64Message prototype) {
  18854. return new Builder(prototype);
  18855. }
  18856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  18857. public sealed partial class Builder : pb::GeneratedBuilder<Int64Message, Builder> {
  18858. protected override Builder ThisBuilder {
  18859. get { return this; }
  18860. }
  18861. public Builder() {
  18862. result = DefaultInstance;
  18863. resultIsReadOnly = true;
  18864. }
  18865. internal Builder(Int64Message cloneFrom) {
  18866. result = cloneFrom;
  18867. resultIsReadOnly = true;
  18868. }
  18869. private bool resultIsReadOnly;
  18870. private Int64Message result;
  18871. private Int64Message PrepareBuilder() {
  18872. if (resultIsReadOnly) {
  18873. Int64Message original = result;
  18874. result = new Int64Message();
  18875. resultIsReadOnly = false;
  18876. MergeFrom(original);
  18877. }
  18878. return result;
  18879. }
  18880. public override bool IsInitialized {
  18881. get { return result.IsInitialized; }
  18882. }
  18883. protected override Int64Message MessageBeingBuilt {
  18884. get { return PrepareBuilder(); }
  18885. }
  18886. public override Builder Clear() {
  18887. result = DefaultInstance;
  18888. resultIsReadOnly = true;
  18889. return this;
  18890. }
  18891. public override Builder Clone() {
  18892. if (resultIsReadOnly) {
  18893. return new Builder(result);
  18894. } else {
  18895. return new Builder().MergeFrom(result);
  18896. }
  18897. }
  18898. public override pbd::MessageDescriptor DescriptorForType {
  18899. get { return global::Google.ProtocolBuffers.TestProtos.Int64Message.Descriptor; }
  18900. }
  18901. public override Int64Message DefaultInstanceForType {
  18902. get { return global::Google.ProtocolBuffers.TestProtos.Int64Message.DefaultInstance; }
  18903. }
  18904. public override Int64Message BuildPartial() {
  18905. if (resultIsReadOnly) {
  18906. return result;
  18907. }
  18908. resultIsReadOnly = true;
  18909. return result.MakeReadOnly();
  18910. }
  18911. public override Builder MergeFrom(pb::IMessage other) {
  18912. if (other is Int64Message) {
  18913. return MergeFrom((Int64Message) other);
  18914. } else {
  18915. base.MergeFrom(other);
  18916. return this;
  18917. }
  18918. }
  18919. public override Builder MergeFrom(Int64Message other) {
  18920. if (other == global::Google.ProtocolBuffers.TestProtos.Int64Message.DefaultInstance) return this;
  18921. PrepareBuilder();
  18922. if (other.HasData) {
  18923. Data = other.Data;
  18924. }
  18925. this.MergeUnknownFields(other.UnknownFields);
  18926. return this;
  18927. }
  18928. public override Builder MergeFrom(pb::ICodedInputStream input) {
  18929. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  18930. }
  18931. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  18932. PrepareBuilder();
  18933. pb::UnknownFieldSet.Builder unknownFields = null;
  18934. uint tag;
  18935. string field_name;
  18936. while (input.ReadTag(out tag, out field_name)) {
  18937. if(tag == 0 && field_name != null) {
  18938. int field_ordinal = global::System.Array.BinarySearch(_int64MessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  18939. if(field_ordinal >= 0)
  18940. tag = _int64MessageFieldTags[field_ordinal];
  18941. else {
  18942. if (unknownFields == null) {
  18943. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  18944. }
  18945. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  18946. continue;
  18947. }
  18948. }
  18949. switch (tag) {
  18950. case 0: {
  18951. throw pb::InvalidProtocolBufferException.InvalidTag();
  18952. }
  18953. default: {
  18954. if (pb::WireFormat.IsEndGroupTag(tag)) {
  18955. if (unknownFields != null) {
  18956. this.UnknownFields = unknownFields.Build();
  18957. }
  18958. return this;
  18959. }
  18960. if (unknownFields == null) {
  18961. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  18962. }
  18963. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  18964. break;
  18965. }
  18966. case 8: {
  18967. result.hasData = input.ReadInt64(ref result.data_);
  18968. break;
  18969. }
  18970. }
  18971. }
  18972. if (unknownFields != null) {
  18973. this.UnknownFields = unknownFields.Build();
  18974. }
  18975. return this;
  18976. }
  18977. public bool HasData {
  18978. get { return result.hasData; }
  18979. }
  18980. public long Data {
  18981. get { return result.Data; }
  18982. set { SetData(value); }
  18983. }
  18984. public Builder SetData(long value) {
  18985. PrepareBuilder();
  18986. result.hasData = true;
  18987. result.data_ = value;
  18988. return this;
  18989. }
  18990. public Builder ClearData() {
  18991. PrepareBuilder();
  18992. result.hasData = false;
  18993. result.data_ = 0L;
  18994. return this;
  18995. }
  18996. }
  18997. static Int64Message() {
  18998. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  18999. }
  19000. }
  19001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  19002. public sealed partial class Uint64Message : pb::GeneratedMessage<Uint64Message, Uint64Message.Builder> {
  19003. private Uint64Message() { }
  19004. private static readonly Uint64Message defaultInstance = new Uint64Message().MakeReadOnly();
  19005. private static readonly string[] _uint64MessageFieldNames = new string[] { "data" };
  19006. private static readonly uint[] _uint64MessageFieldTags = new uint[] { 8 };
  19007. public static Uint64Message DefaultInstance {
  19008. get { return defaultInstance; }
  19009. }
  19010. public override Uint64Message DefaultInstanceForType {
  19011. get { return DefaultInstance; }
  19012. }
  19013. protected override Uint64Message ThisMessage {
  19014. get { return this; }
  19015. }
  19016. public static pbd::MessageDescriptor Descriptor {
  19017. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_Uint64Message__Descriptor; }
  19018. }
  19019. protected override pb::FieldAccess.FieldAccessorTable<Uint64Message, Uint64Message.Builder> InternalFieldAccessors {
  19020. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_Uint64Message__FieldAccessorTable; }
  19021. }
  19022. public const int DataFieldNumber = 1;
  19023. private bool hasData;
  19024. private ulong data_;
  19025. public bool HasData {
  19026. get { return hasData; }
  19027. }
  19028. [global::System.CLSCompliant(false)]
  19029. public ulong Data {
  19030. get { return data_; }
  19031. }
  19032. public override bool IsInitialized {
  19033. get {
  19034. return true;
  19035. }
  19036. }
  19037. public override void WriteTo(pb::ICodedOutputStream output) {
  19038. CalcSerializedSize();
  19039. string[] field_names = _uint64MessageFieldNames;
  19040. if (hasData) {
  19041. output.WriteUInt64(1, field_names[0], Data);
  19042. }
  19043. UnknownFields.WriteTo(output);
  19044. }
  19045. private int memoizedSerializedSize = -1;
  19046. public override int SerializedSize {
  19047. get {
  19048. int size = memoizedSerializedSize;
  19049. if (size != -1) return size;
  19050. return CalcSerializedSize();
  19051. }
  19052. }
  19053. private int CalcSerializedSize() {
  19054. int size = memoizedSerializedSize;
  19055. if (size != -1) return size;
  19056. size = 0;
  19057. if (hasData) {
  19058. size += pb::CodedOutputStream.ComputeUInt64Size(1, Data);
  19059. }
  19060. size += UnknownFields.SerializedSize;
  19061. memoizedSerializedSize = size;
  19062. return size;
  19063. }
  19064. public static Uint64Message ParseFrom(pb::ByteString data) {
  19065. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  19066. }
  19067. public static Uint64Message ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  19068. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  19069. }
  19070. public static Uint64Message ParseFrom(byte[] data) {
  19071. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  19072. }
  19073. public static Uint64Message ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  19074. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  19075. }
  19076. public static Uint64Message ParseFrom(global::System.IO.Stream input) {
  19077. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  19078. }
  19079. public static Uint64Message ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  19080. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  19081. }
  19082. public static Uint64Message ParseDelimitedFrom(global::System.IO.Stream input) {
  19083. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  19084. }
  19085. public static Uint64Message ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  19086. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  19087. }
  19088. public static Uint64Message ParseFrom(pb::ICodedInputStream input) {
  19089. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  19090. }
  19091. public static Uint64Message ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  19092. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  19093. }
  19094. private Uint64Message MakeReadOnly() {
  19095. return this;
  19096. }
  19097. public static Builder CreateBuilder() { return new Builder(); }
  19098. public override Builder ToBuilder() { return CreateBuilder(this); }
  19099. public override Builder CreateBuilderForType() { return new Builder(); }
  19100. public static Builder CreateBuilder(Uint64Message prototype) {
  19101. return new Builder(prototype);
  19102. }
  19103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  19104. public sealed partial class Builder : pb::GeneratedBuilder<Uint64Message, Builder> {
  19105. protected override Builder ThisBuilder {
  19106. get { return this; }
  19107. }
  19108. public Builder() {
  19109. result = DefaultInstance;
  19110. resultIsReadOnly = true;
  19111. }
  19112. internal Builder(Uint64Message cloneFrom) {
  19113. result = cloneFrom;
  19114. resultIsReadOnly = true;
  19115. }
  19116. private bool resultIsReadOnly;
  19117. private Uint64Message result;
  19118. private Uint64Message PrepareBuilder() {
  19119. if (resultIsReadOnly) {
  19120. Uint64Message original = result;
  19121. result = new Uint64Message();
  19122. resultIsReadOnly = false;
  19123. MergeFrom(original);
  19124. }
  19125. return result;
  19126. }
  19127. public override bool IsInitialized {
  19128. get { return result.IsInitialized; }
  19129. }
  19130. protected override Uint64Message MessageBeingBuilt {
  19131. get { return PrepareBuilder(); }
  19132. }
  19133. public override Builder Clear() {
  19134. result = DefaultInstance;
  19135. resultIsReadOnly = true;
  19136. return this;
  19137. }
  19138. public override Builder Clone() {
  19139. if (resultIsReadOnly) {
  19140. return new Builder(result);
  19141. } else {
  19142. return new Builder().MergeFrom(result);
  19143. }
  19144. }
  19145. public override pbd::MessageDescriptor DescriptorForType {
  19146. get { return global::Google.ProtocolBuffers.TestProtos.Uint64Message.Descriptor; }
  19147. }
  19148. public override Uint64Message DefaultInstanceForType {
  19149. get { return global::Google.ProtocolBuffers.TestProtos.Uint64Message.DefaultInstance; }
  19150. }
  19151. public override Uint64Message BuildPartial() {
  19152. if (resultIsReadOnly) {
  19153. return result;
  19154. }
  19155. resultIsReadOnly = true;
  19156. return result.MakeReadOnly();
  19157. }
  19158. public override Builder MergeFrom(pb::IMessage other) {
  19159. if (other is Uint64Message) {
  19160. return MergeFrom((Uint64Message) other);
  19161. } else {
  19162. base.MergeFrom(other);
  19163. return this;
  19164. }
  19165. }
  19166. public override Builder MergeFrom(Uint64Message other) {
  19167. if (other == global::Google.ProtocolBuffers.TestProtos.Uint64Message.DefaultInstance) return this;
  19168. PrepareBuilder();
  19169. if (other.HasData) {
  19170. Data = other.Data;
  19171. }
  19172. this.MergeUnknownFields(other.UnknownFields);
  19173. return this;
  19174. }
  19175. public override Builder MergeFrom(pb::ICodedInputStream input) {
  19176. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  19177. }
  19178. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  19179. PrepareBuilder();
  19180. pb::UnknownFieldSet.Builder unknownFields = null;
  19181. uint tag;
  19182. string field_name;
  19183. while (input.ReadTag(out tag, out field_name)) {
  19184. if(tag == 0 && field_name != null) {
  19185. int field_ordinal = global::System.Array.BinarySearch(_uint64MessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  19186. if(field_ordinal >= 0)
  19187. tag = _uint64MessageFieldTags[field_ordinal];
  19188. else {
  19189. if (unknownFields == null) {
  19190. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  19191. }
  19192. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  19193. continue;
  19194. }
  19195. }
  19196. switch (tag) {
  19197. case 0: {
  19198. throw pb::InvalidProtocolBufferException.InvalidTag();
  19199. }
  19200. default: {
  19201. if (pb::WireFormat.IsEndGroupTag(tag)) {
  19202. if (unknownFields != null) {
  19203. this.UnknownFields = unknownFields.Build();
  19204. }
  19205. return this;
  19206. }
  19207. if (unknownFields == null) {
  19208. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  19209. }
  19210. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  19211. break;
  19212. }
  19213. case 8: {
  19214. result.hasData = input.ReadUInt64(ref result.data_);
  19215. break;
  19216. }
  19217. }
  19218. }
  19219. if (unknownFields != null) {
  19220. this.UnknownFields = unknownFields.Build();
  19221. }
  19222. return this;
  19223. }
  19224. public bool HasData {
  19225. get { return result.hasData; }
  19226. }
  19227. [global::System.CLSCompliant(false)]
  19228. public ulong Data {
  19229. get { return result.Data; }
  19230. set { SetData(value); }
  19231. }
  19232. [global::System.CLSCompliant(false)]
  19233. public Builder SetData(ulong value) {
  19234. PrepareBuilder();
  19235. result.hasData = true;
  19236. result.data_ = value;
  19237. return this;
  19238. }
  19239. public Builder ClearData() {
  19240. PrepareBuilder();
  19241. result.hasData = false;
  19242. result.data_ = 0UL;
  19243. return this;
  19244. }
  19245. }
  19246. static Uint64Message() {
  19247. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  19248. }
  19249. }
  19250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  19251. public sealed partial class BoolMessage : pb::GeneratedMessage<BoolMessage, BoolMessage.Builder> {
  19252. private BoolMessage() { }
  19253. private static readonly BoolMessage defaultInstance = new BoolMessage().MakeReadOnly();
  19254. private static readonly string[] _boolMessageFieldNames = new string[] { "data" };
  19255. private static readonly uint[] _boolMessageFieldTags = new uint[] { 8 };
  19256. public static BoolMessage DefaultInstance {
  19257. get { return defaultInstance; }
  19258. }
  19259. public override BoolMessage DefaultInstanceForType {
  19260. get { return DefaultInstance; }
  19261. }
  19262. protected override BoolMessage ThisMessage {
  19263. get { return this; }
  19264. }
  19265. public static pbd::MessageDescriptor Descriptor {
  19266. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_BoolMessage__Descriptor; }
  19267. }
  19268. protected override pb::FieldAccess.FieldAccessorTable<BoolMessage, BoolMessage.Builder> InternalFieldAccessors {
  19269. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_BoolMessage__FieldAccessorTable; }
  19270. }
  19271. public const int DataFieldNumber = 1;
  19272. private bool hasData;
  19273. private bool data_;
  19274. public bool HasData {
  19275. get { return hasData; }
  19276. }
  19277. public bool Data {
  19278. get { return data_; }
  19279. }
  19280. public override bool IsInitialized {
  19281. get {
  19282. return true;
  19283. }
  19284. }
  19285. public override void WriteTo(pb::ICodedOutputStream output) {
  19286. CalcSerializedSize();
  19287. string[] field_names = _boolMessageFieldNames;
  19288. if (hasData) {
  19289. output.WriteBool(1, field_names[0], Data);
  19290. }
  19291. UnknownFields.WriteTo(output);
  19292. }
  19293. private int memoizedSerializedSize = -1;
  19294. public override int SerializedSize {
  19295. get {
  19296. int size = memoizedSerializedSize;
  19297. if (size != -1) return size;
  19298. return CalcSerializedSize();
  19299. }
  19300. }
  19301. private int CalcSerializedSize() {
  19302. int size = memoizedSerializedSize;
  19303. if (size != -1) return size;
  19304. size = 0;
  19305. if (hasData) {
  19306. size += pb::CodedOutputStream.ComputeBoolSize(1, Data);
  19307. }
  19308. size += UnknownFields.SerializedSize;
  19309. memoizedSerializedSize = size;
  19310. return size;
  19311. }
  19312. public static BoolMessage ParseFrom(pb::ByteString data) {
  19313. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  19314. }
  19315. public static BoolMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  19316. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  19317. }
  19318. public static BoolMessage ParseFrom(byte[] data) {
  19319. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  19320. }
  19321. public static BoolMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  19322. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  19323. }
  19324. public static BoolMessage ParseFrom(global::System.IO.Stream input) {
  19325. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  19326. }
  19327. public static BoolMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  19328. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  19329. }
  19330. public static BoolMessage ParseDelimitedFrom(global::System.IO.Stream input) {
  19331. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  19332. }
  19333. public static BoolMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  19334. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  19335. }
  19336. public static BoolMessage ParseFrom(pb::ICodedInputStream input) {
  19337. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  19338. }
  19339. public static BoolMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  19340. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  19341. }
  19342. private BoolMessage MakeReadOnly() {
  19343. return this;
  19344. }
  19345. public static Builder CreateBuilder() { return new Builder(); }
  19346. public override Builder ToBuilder() { return CreateBuilder(this); }
  19347. public override Builder CreateBuilderForType() { return new Builder(); }
  19348. public static Builder CreateBuilder(BoolMessage prototype) {
  19349. return new Builder(prototype);
  19350. }
  19351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  19352. public sealed partial class Builder : pb::GeneratedBuilder<BoolMessage, Builder> {
  19353. protected override Builder ThisBuilder {
  19354. get { return this; }
  19355. }
  19356. public Builder() {
  19357. result = DefaultInstance;
  19358. resultIsReadOnly = true;
  19359. }
  19360. internal Builder(BoolMessage cloneFrom) {
  19361. result = cloneFrom;
  19362. resultIsReadOnly = true;
  19363. }
  19364. private bool resultIsReadOnly;
  19365. private BoolMessage result;
  19366. private BoolMessage PrepareBuilder() {
  19367. if (resultIsReadOnly) {
  19368. BoolMessage original = result;
  19369. result = new BoolMessage();
  19370. resultIsReadOnly = false;
  19371. MergeFrom(original);
  19372. }
  19373. return result;
  19374. }
  19375. public override bool IsInitialized {
  19376. get { return result.IsInitialized; }
  19377. }
  19378. protected override BoolMessage MessageBeingBuilt {
  19379. get { return PrepareBuilder(); }
  19380. }
  19381. public override Builder Clear() {
  19382. result = DefaultInstance;
  19383. resultIsReadOnly = true;
  19384. return this;
  19385. }
  19386. public override Builder Clone() {
  19387. if (resultIsReadOnly) {
  19388. return new Builder(result);
  19389. } else {
  19390. return new Builder().MergeFrom(result);
  19391. }
  19392. }
  19393. public override pbd::MessageDescriptor DescriptorForType {
  19394. get { return global::Google.ProtocolBuffers.TestProtos.BoolMessage.Descriptor; }
  19395. }
  19396. public override BoolMessage DefaultInstanceForType {
  19397. get { return global::Google.ProtocolBuffers.TestProtos.BoolMessage.DefaultInstance; }
  19398. }
  19399. public override BoolMessage BuildPartial() {
  19400. if (resultIsReadOnly) {
  19401. return result;
  19402. }
  19403. resultIsReadOnly = true;
  19404. return result.MakeReadOnly();
  19405. }
  19406. public override Builder MergeFrom(pb::IMessage other) {
  19407. if (other is BoolMessage) {
  19408. return MergeFrom((BoolMessage) other);
  19409. } else {
  19410. base.MergeFrom(other);
  19411. return this;
  19412. }
  19413. }
  19414. public override Builder MergeFrom(BoolMessage other) {
  19415. if (other == global::Google.ProtocolBuffers.TestProtos.BoolMessage.DefaultInstance) return this;
  19416. PrepareBuilder();
  19417. if (other.HasData) {
  19418. Data = other.Data;
  19419. }
  19420. this.MergeUnknownFields(other.UnknownFields);
  19421. return this;
  19422. }
  19423. public override Builder MergeFrom(pb::ICodedInputStream input) {
  19424. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  19425. }
  19426. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  19427. PrepareBuilder();
  19428. pb::UnknownFieldSet.Builder unknownFields = null;
  19429. uint tag;
  19430. string field_name;
  19431. while (input.ReadTag(out tag, out field_name)) {
  19432. if(tag == 0 && field_name != null) {
  19433. int field_ordinal = global::System.Array.BinarySearch(_boolMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  19434. if(field_ordinal >= 0)
  19435. tag = _boolMessageFieldTags[field_ordinal];
  19436. else {
  19437. if (unknownFields == null) {
  19438. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  19439. }
  19440. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  19441. continue;
  19442. }
  19443. }
  19444. switch (tag) {
  19445. case 0: {
  19446. throw pb::InvalidProtocolBufferException.InvalidTag();
  19447. }
  19448. default: {
  19449. if (pb::WireFormat.IsEndGroupTag(tag)) {
  19450. if (unknownFields != null) {
  19451. this.UnknownFields = unknownFields.Build();
  19452. }
  19453. return this;
  19454. }
  19455. if (unknownFields == null) {
  19456. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  19457. }
  19458. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  19459. break;
  19460. }
  19461. case 8: {
  19462. result.hasData = input.ReadBool(ref result.data_);
  19463. break;
  19464. }
  19465. }
  19466. }
  19467. if (unknownFields != null) {
  19468. this.UnknownFields = unknownFields.Build();
  19469. }
  19470. return this;
  19471. }
  19472. public bool HasData {
  19473. get { return result.hasData; }
  19474. }
  19475. public bool Data {
  19476. get { return result.Data; }
  19477. set { SetData(value); }
  19478. }
  19479. public Builder SetData(bool value) {
  19480. PrepareBuilder();
  19481. result.hasData = true;
  19482. result.data_ = value;
  19483. return this;
  19484. }
  19485. public Builder ClearData() {
  19486. PrepareBuilder();
  19487. result.hasData = false;
  19488. result.data_ = false;
  19489. return this;
  19490. }
  19491. }
  19492. static BoolMessage() {
  19493. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  19494. }
  19495. }
  19496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  19497. public sealed partial class TestOneof : pb::GeneratedMessage<TestOneof, TestOneof.Builder> {
  19498. private TestOneof() { }
  19499. private static readonly TestOneof defaultInstance = new TestOneof().MakeReadOnly();
  19500. private static readonly string[] _testOneofFieldNames = new string[] { "foo_int", "foo_message", "foo_string", "foogroup" };
  19501. private static readonly uint[] _testOneofFieldTags = new uint[] { 8, 26, 18, 35 };
  19502. public static TestOneof DefaultInstance {
  19503. get { return defaultInstance; }
  19504. }
  19505. public override TestOneof DefaultInstanceForType {
  19506. get { return DefaultInstance; }
  19507. }
  19508. protected override TestOneof ThisMessage {
  19509. get { return this; }
  19510. }
  19511. public static pbd::MessageDescriptor Descriptor {
  19512. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof__Descriptor; }
  19513. }
  19514. protected override pb::FieldAccess.FieldAccessorTable<TestOneof, TestOneof.Builder> InternalFieldAccessors {
  19515. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof__FieldAccessorTable; }
  19516. }
  19517. #region Nested types
  19518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  19519. public static partial class Types {
  19520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  19521. public sealed partial class FooGroup : pb::GeneratedMessage<FooGroup, FooGroup.Builder> {
  19522. private FooGroup() { }
  19523. private static readonly FooGroup defaultInstance = new FooGroup().MakeReadOnly();
  19524. private static readonly string[] _fooGroupFieldNames = new string[] { "a", "b" };
  19525. private static readonly uint[] _fooGroupFieldTags = new uint[] { 40, 50 };
  19526. public static FooGroup DefaultInstance {
  19527. get { return defaultInstance; }
  19528. }
  19529. public override FooGroup DefaultInstanceForType {
  19530. get { return DefaultInstance; }
  19531. }
  19532. protected override FooGroup ThisMessage {
  19533. get { return this; }
  19534. }
  19535. public static pbd::MessageDescriptor Descriptor {
  19536. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof_FooGroup__Descriptor; }
  19537. }
  19538. protected override pb::FieldAccess.FieldAccessorTable<FooGroup, FooGroup.Builder> InternalFieldAccessors {
  19539. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof_FooGroup__FieldAccessorTable; }
  19540. }
  19541. public const int AFieldNumber = 5;
  19542. private bool hasA;
  19543. private int a_;
  19544. public bool HasA {
  19545. get { return hasA; }
  19546. }
  19547. public int A {
  19548. get { return a_; }
  19549. }
  19550. public const int BFieldNumber = 6;
  19551. private bool hasB;
  19552. private string b_ = "";
  19553. public bool HasB {
  19554. get { return hasB; }
  19555. }
  19556. public string B {
  19557. get { return b_; }
  19558. }
  19559. public override bool IsInitialized {
  19560. get {
  19561. return true;
  19562. }
  19563. }
  19564. public override void WriteTo(pb::ICodedOutputStream output) {
  19565. CalcSerializedSize();
  19566. string[] field_names = _fooGroupFieldNames;
  19567. if (hasA) {
  19568. output.WriteInt32(5, field_names[0], A);
  19569. }
  19570. if (hasB) {
  19571. output.WriteString(6, field_names[1], B);
  19572. }
  19573. UnknownFields.WriteTo(output);
  19574. }
  19575. private int memoizedSerializedSize = -1;
  19576. public override int SerializedSize {
  19577. get {
  19578. int size = memoizedSerializedSize;
  19579. if (size != -1) return size;
  19580. return CalcSerializedSize();
  19581. }
  19582. }
  19583. private int CalcSerializedSize() {
  19584. int size = memoizedSerializedSize;
  19585. if (size != -1) return size;
  19586. size = 0;
  19587. if (hasA) {
  19588. size += pb::CodedOutputStream.ComputeInt32Size(5, A);
  19589. }
  19590. if (hasB) {
  19591. size += pb::CodedOutputStream.ComputeStringSize(6, B);
  19592. }
  19593. size += UnknownFields.SerializedSize;
  19594. memoizedSerializedSize = size;
  19595. return size;
  19596. }
  19597. public static FooGroup ParseFrom(pb::ByteString data) {
  19598. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  19599. }
  19600. public static FooGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  19601. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  19602. }
  19603. public static FooGroup ParseFrom(byte[] data) {
  19604. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  19605. }
  19606. public static FooGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  19607. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  19608. }
  19609. public static FooGroup ParseFrom(global::System.IO.Stream input) {
  19610. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  19611. }
  19612. public static FooGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  19613. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  19614. }
  19615. public static FooGroup ParseDelimitedFrom(global::System.IO.Stream input) {
  19616. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  19617. }
  19618. public static FooGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  19619. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  19620. }
  19621. public static FooGroup ParseFrom(pb::ICodedInputStream input) {
  19622. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  19623. }
  19624. public static FooGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  19625. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  19626. }
  19627. private FooGroup MakeReadOnly() {
  19628. return this;
  19629. }
  19630. public static Builder CreateBuilder() { return new Builder(); }
  19631. public override Builder ToBuilder() { return CreateBuilder(this); }
  19632. public override Builder CreateBuilderForType() { return new Builder(); }
  19633. public static Builder CreateBuilder(FooGroup prototype) {
  19634. return new Builder(prototype);
  19635. }
  19636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  19637. public sealed partial class Builder : pb::GeneratedBuilder<FooGroup, Builder> {
  19638. protected override Builder ThisBuilder {
  19639. get { return this; }
  19640. }
  19641. public Builder() {
  19642. result = DefaultInstance;
  19643. resultIsReadOnly = true;
  19644. }
  19645. internal Builder(FooGroup cloneFrom) {
  19646. result = cloneFrom;
  19647. resultIsReadOnly = true;
  19648. }
  19649. private bool resultIsReadOnly;
  19650. private FooGroup result;
  19651. private FooGroup PrepareBuilder() {
  19652. if (resultIsReadOnly) {
  19653. FooGroup original = result;
  19654. result = new FooGroup();
  19655. resultIsReadOnly = false;
  19656. MergeFrom(original);
  19657. }
  19658. return result;
  19659. }
  19660. public override bool IsInitialized {
  19661. get { return result.IsInitialized; }
  19662. }
  19663. protected override FooGroup MessageBeingBuilt {
  19664. get { return PrepareBuilder(); }
  19665. }
  19666. public override Builder Clear() {
  19667. result = DefaultInstance;
  19668. resultIsReadOnly = true;
  19669. return this;
  19670. }
  19671. public override Builder Clone() {
  19672. if (resultIsReadOnly) {
  19673. return new Builder(result);
  19674. } else {
  19675. return new Builder().MergeFrom(result);
  19676. }
  19677. }
  19678. public override pbd::MessageDescriptor DescriptorForType {
  19679. get { return global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.Descriptor; }
  19680. }
  19681. public override FooGroup DefaultInstanceForType {
  19682. get { return global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.DefaultInstance; }
  19683. }
  19684. public override FooGroup BuildPartial() {
  19685. if (resultIsReadOnly) {
  19686. return result;
  19687. }
  19688. resultIsReadOnly = true;
  19689. return result.MakeReadOnly();
  19690. }
  19691. public override Builder MergeFrom(pb::IMessage other) {
  19692. if (other is FooGroup) {
  19693. return MergeFrom((FooGroup) other);
  19694. } else {
  19695. base.MergeFrom(other);
  19696. return this;
  19697. }
  19698. }
  19699. public override Builder MergeFrom(FooGroup other) {
  19700. if (other == global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.DefaultInstance) return this;
  19701. PrepareBuilder();
  19702. if (other.HasA) {
  19703. A = other.A;
  19704. }
  19705. if (other.HasB) {
  19706. B = other.B;
  19707. }
  19708. this.MergeUnknownFields(other.UnknownFields);
  19709. return this;
  19710. }
  19711. public override Builder MergeFrom(pb::ICodedInputStream input) {
  19712. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  19713. }
  19714. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  19715. PrepareBuilder();
  19716. pb::UnknownFieldSet.Builder unknownFields = null;
  19717. uint tag;
  19718. string field_name;
  19719. while (input.ReadTag(out tag, out field_name)) {
  19720. if(tag == 0 && field_name != null) {
  19721. int field_ordinal = global::System.Array.BinarySearch(_fooGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
  19722. if(field_ordinal >= 0)
  19723. tag = _fooGroupFieldTags[field_ordinal];
  19724. else {
  19725. if (unknownFields == null) {
  19726. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  19727. }
  19728. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  19729. continue;
  19730. }
  19731. }
  19732. switch (tag) {
  19733. case 0: {
  19734. throw pb::InvalidProtocolBufferException.InvalidTag();
  19735. }
  19736. default: {
  19737. if (pb::WireFormat.IsEndGroupTag(tag)) {
  19738. if (unknownFields != null) {
  19739. this.UnknownFields = unknownFields.Build();
  19740. }
  19741. return this;
  19742. }
  19743. if (unknownFields == null) {
  19744. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  19745. }
  19746. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  19747. break;
  19748. }
  19749. case 40: {
  19750. result.hasA = input.ReadInt32(ref result.a_);
  19751. break;
  19752. }
  19753. case 50: {
  19754. result.hasB = input.ReadString(ref result.b_);
  19755. break;
  19756. }
  19757. }
  19758. }
  19759. if (unknownFields != null) {
  19760. this.UnknownFields = unknownFields.Build();
  19761. }
  19762. return this;
  19763. }
  19764. public bool HasA {
  19765. get { return result.hasA; }
  19766. }
  19767. public int A {
  19768. get { return result.A; }
  19769. set { SetA(value); }
  19770. }
  19771. public Builder SetA(int value) {
  19772. PrepareBuilder();
  19773. result.hasA = true;
  19774. result.a_ = value;
  19775. return this;
  19776. }
  19777. public Builder ClearA() {
  19778. PrepareBuilder();
  19779. result.hasA = false;
  19780. result.a_ = 0;
  19781. return this;
  19782. }
  19783. public bool HasB {
  19784. get { return result.hasB; }
  19785. }
  19786. public string B {
  19787. get { return result.B; }
  19788. set { SetB(value); }
  19789. }
  19790. public Builder SetB(string value) {
  19791. pb::ThrowHelper.ThrowIfNull(value, "value");
  19792. PrepareBuilder();
  19793. result.hasB = true;
  19794. result.b_ = value;
  19795. return this;
  19796. }
  19797. public Builder ClearB() {
  19798. PrepareBuilder();
  19799. result.hasB = false;
  19800. result.b_ = "";
  19801. return this;
  19802. }
  19803. }
  19804. static FooGroup() {
  19805. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  19806. }
  19807. }
  19808. }
  19809. #endregion
  19810. public const int FooIntFieldNumber = 1;
  19811. private bool hasFooInt;
  19812. private int fooInt_;
  19813. public bool HasFooInt {
  19814. get { return hasFooInt; }
  19815. }
  19816. public int FooInt {
  19817. get { return fooInt_; }
  19818. }
  19819. public const int FooStringFieldNumber = 2;
  19820. private bool hasFooString;
  19821. private string fooString_ = "";
  19822. public bool HasFooString {
  19823. get { return hasFooString; }
  19824. }
  19825. public string FooString {
  19826. get { return fooString_; }
  19827. }
  19828. public const int FooMessageFieldNumber = 3;
  19829. private bool hasFooMessage;
  19830. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes fooMessage_;
  19831. public bool HasFooMessage {
  19832. get { return hasFooMessage; }
  19833. }
  19834. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes FooMessage {
  19835. get { return fooMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
  19836. }
  19837. public const int FooGroupFieldNumber = 4;
  19838. private bool hasFooGroup;
  19839. private global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup fooGroup_;
  19840. public bool HasFooGroup {
  19841. get { return hasFooGroup; }
  19842. }
  19843. public global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup FooGroup {
  19844. get { return fooGroup_ ?? global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.DefaultInstance; }
  19845. }
  19846. public override bool IsInitialized {
  19847. get {
  19848. return true;
  19849. }
  19850. }
  19851. public override void WriteTo(pb::ICodedOutputStream output) {
  19852. CalcSerializedSize();
  19853. string[] field_names = _testOneofFieldNames;
  19854. if (hasFooInt) {
  19855. output.WriteInt32(1, field_names[0], FooInt);
  19856. }
  19857. if (hasFooString) {
  19858. output.WriteString(2, field_names[2], FooString);
  19859. }
  19860. if (hasFooMessage) {
  19861. output.WriteMessage(3, field_names[1], FooMessage);
  19862. }
  19863. if (hasFooGroup) {
  19864. output.WriteGroup(4, field_names[3], FooGroup);
  19865. }
  19866. UnknownFields.WriteTo(output);
  19867. }
  19868. private int memoizedSerializedSize = -1;
  19869. public override int SerializedSize {
  19870. get {
  19871. int size = memoizedSerializedSize;
  19872. if (size != -1) return size;
  19873. return CalcSerializedSize();
  19874. }
  19875. }
  19876. private int CalcSerializedSize() {
  19877. int size = memoizedSerializedSize;
  19878. if (size != -1) return size;
  19879. size = 0;
  19880. if (hasFooInt) {
  19881. size += pb::CodedOutputStream.ComputeInt32Size(1, FooInt);
  19882. }
  19883. if (hasFooString) {
  19884. size += pb::CodedOutputStream.ComputeStringSize(2, FooString);
  19885. }
  19886. if (hasFooMessage) {
  19887. size += pb::CodedOutputStream.ComputeMessageSize(3, FooMessage);
  19888. }
  19889. if (hasFooGroup) {
  19890. size += pb::CodedOutputStream.ComputeGroupSize(4, FooGroup);
  19891. }
  19892. size += UnknownFields.SerializedSize;
  19893. memoizedSerializedSize = size;
  19894. return size;
  19895. }
  19896. public static TestOneof ParseFrom(pb::ByteString data) {
  19897. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  19898. }
  19899. public static TestOneof ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  19900. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  19901. }
  19902. public static TestOneof ParseFrom(byte[] data) {
  19903. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  19904. }
  19905. public static TestOneof ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  19906. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  19907. }
  19908. public static TestOneof ParseFrom(global::System.IO.Stream input) {
  19909. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  19910. }
  19911. public static TestOneof ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  19912. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  19913. }
  19914. public static TestOneof ParseDelimitedFrom(global::System.IO.Stream input) {
  19915. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  19916. }
  19917. public static TestOneof ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  19918. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  19919. }
  19920. public static TestOneof ParseFrom(pb::ICodedInputStream input) {
  19921. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  19922. }
  19923. public static TestOneof ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  19924. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  19925. }
  19926. private TestOneof MakeReadOnly() {
  19927. return this;
  19928. }
  19929. public static Builder CreateBuilder() { return new Builder(); }
  19930. public override Builder ToBuilder() { return CreateBuilder(this); }
  19931. public override Builder CreateBuilderForType() { return new Builder(); }
  19932. public static Builder CreateBuilder(TestOneof prototype) {
  19933. return new Builder(prototype);
  19934. }
  19935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  19936. public sealed partial class Builder : pb::GeneratedBuilder<TestOneof, Builder> {
  19937. protected override Builder ThisBuilder {
  19938. get { return this; }
  19939. }
  19940. public Builder() {
  19941. result = DefaultInstance;
  19942. resultIsReadOnly = true;
  19943. }
  19944. internal Builder(TestOneof cloneFrom) {
  19945. result = cloneFrom;
  19946. resultIsReadOnly = true;
  19947. }
  19948. private bool resultIsReadOnly;
  19949. private TestOneof result;
  19950. private TestOneof PrepareBuilder() {
  19951. if (resultIsReadOnly) {
  19952. TestOneof original = result;
  19953. result = new TestOneof();
  19954. resultIsReadOnly = false;
  19955. MergeFrom(original);
  19956. }
  19957. return result;
  19958. }
  19959. public override bool IsInitialized {
  19960. get { return result.IsInitialized; }
  19961. }
  19962. protected override TestOneof MessageBeingBuilt {
  19963. get { return PrepareBuilder(); }
  19964. }
  19965. public override Builder Clear() {
  19966. result = DefaultInstance;
  19967. resultIsReadOnly = true;
  19968. return this;
  19969. }
  19970. public override Builder Clone() {
  19971. if (resultIsReadOnly) {
  19972. return new Builder(result);
  19973. } else {
  19974. return new Builder().MergeFrom(result);
  19975. }
  19976. }
  19977. public override pbd::MessageDescriptor DescriptorForType {
  19978. get { return global::Google.ProtocolBuffers.TestProtos.TestOneof.Descriptor; }
  19979. }
  19980. public override TestOneof DefaultInstanceForType {
  19981. get { return global::Google.ProtocolBuffers.TestProtos.TestOneof.DefaultInstance; }
  19982. }
  19983. public override TestOneof BuildPartial() {
  19984. if (resultIsReadOnly) {
  19985. return result;
  19986. }
  19987. resultIsReadOnly = true;
  19988. return result.MakeReadOnly();
  19989. }
  19990. public override Builder MergeFrom(pb::IMessage other) {
  19991. if (other is TestOneof) {
  19992. return MergeFrom((TestOneof) other);
  19993. } else {
  19994. base.MergeFrom(other);
  19995. return this;
  19996. }
  19997. }
  19998. public override Builder MergeFrom(TestOneof other) {
  19999. if (other == global::Google.ProtocolBuffers.TestProtos.TestOneof.DefaultInstance) return this;
  20000. PrepareBuilder();
  20001. if (other.HasFooInt) {
  20002. FooInt = other.FooInt;
  20003. }
  20004. if (other.HasFooString) {
  20005. FooString = other.FooString;
  20006. }
  20007. if (other.HasFooMessage) {
  20008. MergeFooMessage(other.FooMessage);
  20009. }
  20010. if (other.HasFooGroup) {
  20011. MergeFooGroup(other.FooGroup);
  20012. }
  20013. this.MergeUnknownFields(other.UnknownFields);
  20014. return this;
  20015. }
  20016. public override Builder MergeFrom(pb::ICodedInputStream input) {
  20017. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  20018. }
  20019. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  20020. PrepareBuilder();
  20021. pb::UnknownFieldSet.Builder unknownFields = null;
  20022. uint tag;
  20023. string field_name;
  20024. while (input.ReadTag(out tag, out field_name)) {
  20025. if(tag == 0 && field_name != null) {
  20026. int field_ordinal = global::System.Array.BinarySearch(_testOneofFieldNames, field_name, global::System.StringComparer.Ordinal);
  20027. if(field_ordinal >= 0)
  20028. tag = _testOneofFieldTags[field_ordinal];
  20029. else {
  20030. if (unknownFields == null) {
  20031. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  20032. }
  20033. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  20034. continue;
  20035. }
  20036. }
  20037. switch (tag) {
  20038. case 0: {
  20039. throw pb::InvalidProtocolBufferException.InvalidTag();
  20040. }
  20041. default: {
  20042. if (pb::WireFormat.IsEndGroupTag(tag)) {
  20043. if (unknownFields != null) {
  20044. this.UnknownFields = unknownFields.Build();
  20045. }
  20046. return this;
  20047. }
  20048. if (unknownFields == null) {
  20049. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  20050. }
  20051. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  20052. break;
  20053. }
  20054. case 8: {
  20055. result.hasFooInt = input.ReadInt32(ref result.fooInt_);
  20056. break;
  20057. }
  20058. case 18: {
  20059. result.hasFooString = input.ReadString(ref result.fooString_);
  20060. break;
  20061. }
  20062. case 26: {
  20063. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
  20064. if (result.hasFooMessage) {
  20065. subBuilder.MergeFrom(FooMessage);
  20066. }
  20067. input.ReadMessage(subBuilder, extensionRegistry);
  20068. FooMessage = subBuilder.BuildPartial();
  20069. break;
  20070. }
  20071. case 35: {
  20072. global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.CreateBuilder();
  20073. if (result.hasFooGroup) {
  20074. subBuilder.MergeFrom(FooGroup);
  20075. }
  20076. input.ReadGroup(4, subBuilder, extensionRegistry);
  20077. FooGroup = subBuilder.BuildPartial();
  20078. break;
  20079. }
  20080. }
  20081. }
  20082. if (unknownFields != null) {
  20083. this.UnknownFields = unknownFields.Build();
  20084. }
  20085. return this;
  20086. }
  20087. public bool HasFooInt {
  20088. get { return result.hasFooInt; }
  20089. }
  20090. public int FooInt {
  20091. get { return result.FooInt; }
  20092. set { SetFooInt(value); }
  20093. }
  20094. public Builder SetFooInt(int value) {
  20095. PrepareBuilder();
  20096. result.hasFooInt = true;
  20097. result.fooInt_ = value;
  20098. return this;
  20099. }
  20100. public Builder ClearFooInt() {
  20101. PrepareBuilder();
  20102. result.hasFooInt = false;
  20103. result.fooInt_ = 0;
  20104. return this;
  20105. }
  20106. public bool HasFooString {
  20107. get { return result.hasFooString; }
  20108. }
  20109. public string FooString {
  20110. get { return result.FooString; }
  20111. set { SetFooString(value); }
  20112. }
  20113. public Builder SetFooString(string value) {
  20114. pb::ThrowHelper.ThrowIfNull(value, "value");
  20115. PrepareBuilder();
  20116. result.hasFooString = true;
  20117. result.fooString_ = value;
  20118. return this;
  20119. }
  20120. public Builder ClearFooString() {
  20121. PrepareBuilder();
  20122. result.hasFooString = false;
  20123. result.fooString_ = "";
  20124. return this;
  20125. }
  20126. public bool HasFooMessage {
  20127. get { return result.hasFooMessage; }
  20128. }
  20129. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes FooMessage {
  20130. get { return result.FooMessage; }
  20131. set { SetFooMessage(value); }
  20132. }
  20133. public Builder SetFooMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  20134. pb::ThrowHelper.ThrowIfNull(value, "value");
  20135. PrepareBuilder();
  20136. result.hasFooMessage = true;
  20137. result.fooMessage_ = value;
  20138. return this;
  20139. }
  20140. public Builder SetFooMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  20141. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  20142. PrepareBuilder();
  20143. result.hasFooMessage = true;
  20144. result.fooMessage_ = builderForValue.Build();
  20145. return this;
  20146. }
  20147. public Builder MergeFooMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  20148. pb::ThrowHelper.ThrowIfNull(value, "value");
  20149. PrepareBuilder();
  20150. if (result.hasFooMessage &&
  20151. result.fooMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
  20152. result.fooMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.fooMessage_).MergeFrom(value).BuildPartial();
  20153. } else {
  20154. result.fooMessage_ = value;
  20155. }
  20156. result.hasFooMessage = true;
  20157. return this;
  20158. }
  20159. public Builder ClearFooMessage() {
  20160. PrepareBuilder();
  20161. result.hasFooMessage = false;
  20162. result.fooMessage_ = null;
  20163. return this;
  20164. }
  20165. public bool HasFooGroup {
  20166. get { return result.hasFooGroup; }
  20167. }
  20168. public global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup FooGroup {
  20169. get { return result.FooGroup; }
  20170. set { SetFooGroup(value); }
  20171. }
  20172. public Builder SetFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup value) {
  20173. pb::ThrowHelper.ThrowIfNull(value, "value");
  20174. PrepareBuilder();
  20175. result.hasFooGroup = true;
  20176. result.fooGroup_ = value;
  20177. return this;
  20178. }
  20179. public Builder SetFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.Builder builderForValue) {
  20180. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  20181. PrepareBuilder();
  20182. result.hasFooGroup = true;
  20183. result.fooGroup_ = builderForValue.Build();
  20184. return this;
  20185. }
  20186. public Builder MergeFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup value) {
  20187. pb::ThrowHelper.ThrowIfNull(value, "value");
  20188. PrepareBuilder();
  20189. if (result.hasFooGroup &&
  20190. result.fooGroup_ != global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.DefaultInstance) {
  20191. result.fooGroup_ = global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.CreateBuilder(result.fooGroup_).MergeFrom(value).BuildPartial();
  20192. } else {
  20193. result.fooGroup_ = value;
  20194. }
  20195. result.hasFooGroup = true;
  20196. return this;
  20197. }
  20198. public Builder ClearFooGroup() {
  20199. PrepareBuilder();
  20200. result.hasFooGroup = false;
  20201. result.fooGroup_ = null;
  20202. return this;
  20203. }
  20204. }
  20205. static TestOneof() {
  20206. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  20207. }
  20208. }
  20209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  20210. public sealed partial class TestOneofBackwardsCompatible : pb::GeneratedMessage<TestOneofBackwardsCompatible, TestOneofBackwardsCompatible.Builder> {
  20211. private TestOneofBackwardsCompatible() { }
  20212. private static readonly TestOneofBackwardsCompatible defaultInstance = new TestOneofBackwardsCompatible().MakeReadOnly();
  20213. private static readonly string[] _testOneofBackwardsCompatibleFieldNames = new string[] { "foo_int", "foo_message", "foo_string", "foogroup" };
  20214. private static readonly uint[] _testOneofBackwardsCompatibleFieldTags = new uint[] { 8, 26, 18, 35 };
  20215. public static TestOneofBackwardsCompatible DefaultInstance {
  20216. get { return defaultInstance; }
  20217. }
  20218. public override TestOneofBackwardsCompatible DefaultInstanceForType {
  20219. get { return DefaultInstance; }
  20220. }
  20221. protected override TestOneofBackwardsCompatible ThisMessage {
  20222. get { return this; }
  20223. }
  20224. public static pbd::MessageDescriptor Descriptor {
  20225. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneofBackwardsCompatible__Descriptor; }
  20226. }
  20227. protected override pb::FieldAccess.FieldAccessorTable<TestOneofBackwardsCompatible, TestOneofBackwardsCompatible.Builder> InternalFieldAccessors {
  20228. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneofBackwardsCompatible__FieldAccessorTable; }
  20229. }
  20230. #region Nested types
  20231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  20232. public static partial class Types {
  20233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  20234. public sealed partial class FooGroup : pb::GeneratedMessage<FooGroup, FooGroup.Builder> {
  20235. private FooGroup() { }
  20236. private static readonly FooGroup defaultInstance = new FooGroup().MakeReadOnly();
  20237. private static readonly string[] _fooGroupFieldNames = new string[] { "a", "b" };
  20238. private static readonly uint[] _fooGroupFieldTags = new uint[] { 40, 50 };
  20239. public static FooGroup DefaultInstance {
  20240. get { return defaultInstance; }
  20241. }
  20242. public override FooGroup DefaultInstanceForType {
  20243. get { return DefaultInstance; }
  20244. }
  20245. protected override FooGroup ThisMessage {
  20246. get { return this; }
  20247. }
  20248. public static pbd::MessageDescriptor Descriptor {
  20249. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup__Descriptor; }
  20250. }
  20251. protected override pb::FieldAccess.FieldAccessorTable<FooGroup, FooGroup.Builder> InternalFieldAccessors {
  20252. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup__FieldAccessorTable; }
  20253. }
  20254. public const int AFieldNumber = 5;
  20255. private bool hasA;
  20256. private int a_;
  20257. public bool HasA {
  20258. get { return hasA; }
  20259. }
  20260. public int A {
  20261. get { return a_; }
  20262. }
  20263. public const int BFieldNumber = 6;
  20264. private bool hasB;
  20265. private string b_ = "";
  20266. public bool HasB {
  20267. get { return hasB; }
  20268. }
  20269. public string B {
  20270. get { return b_; }
  20271. }
  20272. public override bool IsInitialized {
  20273. get {
  20274. return true;
  20275. }
  20276. }
  20277. public override void WriteTo(pb::ICodedOutputStream output) {
  20278. CalcSerializedSize();
  20279. string[] field_names = _fooGroupFieldNames;
  20280. if (hasA) {
  20281. output.WriteInt32(5, field_names[0], A);
  20282. }
  20283. if (hasB) {
  20284. output.WriteString(6, field_names[1], B);
  20285. }
  20286. UnknownFields.WriteTo(output);
  20287. }
  20288. private int memoizedSerializedSize = -1;
  20289. public override int SerializedSize {
  20290. get {
  20291. int size = memoizedSerializedSize;
  20292. if (size != -1) return size;
  20293. return CalcSerializedSize();
  20294. }
  20295. }
  20296. private int CalcSerializedSize() {
  20297. int size = memoizedSerializedSize;
  20298. if (size != -1) return size;
  20299. size = 0;
  20300. if (hasA) {
  20301. size += pb::CodedOutputStream.ComputeInt32Size(5, A);
  20302. }
  20303. if (hasB) {
  20304. size += pb::CodedOutputStream.ComputeStringSize(6, B);
  20305. }
  20306. size += UnknownFields.SerializedSize;
  20307. memoizedSerializedSize = size;
  20308. return size;
  20309. }
  20310. public static FooGroup ParseFrom(pb::ByteString data) {
  20311. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  20312. }
  20313. public static FooGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  20314. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  20315. }
  20316. public static FooGroup ParseFrom(byte[] data) {
  20317. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  20318. }
  20319. public static FooGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  20320. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  20321. }
  20322. public static FooGroup ParseFrom(global::System.IO.Stream input) {
  20323. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  20324. }
  20325. public static FooGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  20326. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  20327. }
  20328. public static FooGroup ParseDelimitedFrom(global::System.IO.Stream input) {
  20329. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  20330. }
  20331. public static FooGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  20332. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  20333. }
  20334. public static FooGroup ParseFrom(pb::ICodedInputStream input) {
  20335. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  20336. }
  20337. public static FooGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  20338. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  20339. }
  20340. private FooGroup MakeReadOnly() {
  20341. return this;
  20342. }
  20343. public static Builder CreateBuilder() { return new Builder(); }
  20344. public override Builder ToBuilder() { return CreateBuilder(this); }
  20345. public override Builder CreateBuilderForType() { return new Builder(); }
  20346. public static Builder CreateBuilder(FooGroup prototype) {
  20347. return new Builder(prototype);
  20348. }
  20349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  20350. public sealed partial class Builder : pb::GeneratedBuilder<FooGroup, Builder> {
  20351. protected override Builder ThisBuilder {
  20352. get { return this; }
  20353. }
  20354. public Builder() {
  20355. result = DefaultInstance;
  20356. resultIsReadOnly = true;
  20357. }
  20358. internal Builder(FooGroup cloneFrom) {
  20359. result = cloneFrom;
  20360. resultIsReadOnly = true;
  20361. }
  20362. private bool resultIsReadOnly;
  20363. private FooGroup result;
  20364. private FooGroup PrepareBuilder() {
  20365. if (resultIsReadOnly) {
  20366. FooGroup original = result;
  20367. result = new FooGroup();
  20368. resultIsReadOnly = false;
  20369. MergeFrom(original);
  20370. }
  20371. return result;
  20372. }
  20373. public override bool IsInitialized {
  20374. get { return result.IsInitialized; }
  20375. }
  20376. protected override FooGroup MessageBeingBuilt {
  20377. get { return PrepareBuilder(); }
  20378. }
  20379. public override Builder Clear() {
  20380. result = DefaultInstance;
  20381. resultIsReadOnly = true;
  20382. return this;
  20383. }
  20384. public override Builder Clone() {
  20385. if (resultIsReadOnly) {
  20386. return new Builder(result);
  20387. } else {
  20388. return new Builder().MergeFrom(result);
  20389. }
  20390. }
  20391. public override pbd::MessageDescriptor DescriptorForType {
  20392. get { return global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.Descriptor; }
  20393. }
  20394. public override FooGroup DefaultInstanceForType {
  20395. get { return global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.DefaultInstance; }
  20396. }
  20397. public override FooGroup BuildPartial() {
  20398. if (resultIsReadOnly) {
  20399. return result;
  20400. }
  20401. resultIsReadOnly = true;
  20402. return result.MakeReadOnly();
  20403. }
  20404. public override Builder MergeFrom(pb::IMessage other) {
  20405. if (other is FooGroup) {
  20406. return MergeFrom((FooGroup) other);
  20407. } else {
  20408. base.MergeFrom(other);
  20409. return this;
  20410. }
  20411. }
  20412. public override Builder MergeFrom(FooGroup other) {
  20413. if (other == global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.DefaultInstance) return this;
  20414. PrepareBuilder();
  20415. if (other.HasA) {
  20416. A = other.A;
  20417. }
  20418. if (other.HasB) {
  20419. B = other.B;
  20420. }
  20421. this.MergeUnknownFields(other.UnknownFields);
  20422. return this;
  20423. }
  20424. public override Builder MergeFrom(pb::ICodedInputStream input) {
  20425. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  20426. }
  20427. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  20428. PrepareBuilder();
  20429. pb::UnknownFieldSet.Builder unknownFields = null;
  20430. uint tag;
  20431. string field_name;
  20432. while (input.ReadTag(out tag, out field_name)) {
  20433. if(tag == 0 && field_name != null) {
  20434. int field_ordinal = global::System.Array.BinarySearch(_fooGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
  20435. if(field_ordinal >= 0)
  20436. tag = _fooGroupFieldTags[field_ordinal];
  20437. else {
  20438. if (unknownFields == null) {
  20439. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  20440. }
  20441. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  20442. continue;
  20443. }
  20444. }
  20445. switch (tag) {
  20446. case 0: {
  20447. throw pb::InvalidProtocolBufferException.InvalidTag();
  20448. }
  20449. default: {
  20450. if (pb::WireFormat.IsEndGroupTag(tag)) {
  20451. if (unknownFields != null) {
  20452. this.UnknownFields = unknownFields.Build();
  20453. }
  20454. return this;
  20455. }
  20456. if (unknownFields == null) {
  20457. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  20458. }
  20459. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  20460. break;
  20461. }
  20462. case 40: {
  20463. result.hasA = input.ReadInt32(ref result.a_);
  20464. break;
  20465. }
  20466. case 50: {
  20467. result.hasB = input.ReadString(ref result.b_);
  20468. break;
  20469. }
  20470. }
  20471. }
  20472. if (unknownFields != null) {
  20473. this.UnknownFields = unknownFields.Build();
  20474. }
  20475. return this;
  20476. }
  20477. public bool HasA {
  20478. get { return result.hasA; }
  20479. }
  20480. public int A {
  20481. get { return result.A; }
  20482. set { SetA(value); }
  20483. }
  20484. public Builder SetA(int value) {
  20485. PrepareBuilder();
  20486. result.hasA = true;
  20487. result.a_ = value;
  20488. return this;
  20489. }
  20490. public Builder ClearA() {
  20491. PrepareBuilder();
  20492. result.hasA = false;
  20493. result.a_ = 0;
  20494. return this;
  20495. }
  20496. public bool HasB {
  20497. get { return result.hasB; }
  20498. }
  20499. public string B {
  20500. get { return result.B; }
  20501. set { SetB(value); }
  20502. }
  20503. public Builder SetB(string value) {
  20504. pb::ThrowHelper.ThrowIfNull(value, "value");
  20505. PrepareBuilder();
  20506. result.hasB = true;
  20507. result.b_ = value;
  20508. return this;
  20509. }
  20510. public Builder ClearB() {
  20511. PrepareBuilder();
  20512. result.hasB = false;
  20513. result.b_ = "";
  20514. return this;
  20515. }
  20516. }
  20517. static FooGroup() {
  20518. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  20519. }
  20520. }
  20521. }
  20522. #endregion
  20523. public const int FooIntFieldNumber = 1;
  20524. private bool hasFooInt;
  20525. private int fooInt_;
  20526. public bool HasFooInt {
  20527. get { return hasFooInt; }
  20528. }
  20529. public int FooInt {
  20530. get { return fooInt_; }
  20531. }
  20532. public const int FooStringFieldNumber = 2;
  20533. private bool hasFooString;
  20534. private string fooString_ = "";
  20535. public bool HasFooString {
  20536. get { return hasFooString; }
  20537. }
  20538. public string FooString {
  20539. get { return fooString_; }
  20540. }
  20541. public const int FooMessageFieldNumber = 3;
  20542. private bool hasFooMessage;
  20543. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes fooMessage_;
  20544. public bool HasFooMessage {
  20545. get { return hasFooMessage; }
  20546. }
  20547. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes FooMessage {
  20548. get { return fooMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
  20549. }
  20550. public const int FooGroupFieldNumber = 4;
  20551. private bool hasFooGroup;
  20552. private global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup fooGroup_;
  20553. public bool HasFooGroup {
  20554. get { return hasFooGroup; }
  20555. }
  20556. public global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup FooGroup {
  20557. get { return fooGroup_ ?? global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.DefaultInstance; }
  20558. }
  20559. public override bool IsInitialized {
  20560. get {
  20561. return true;
  20562. }
  20563. }
  20564. public override void WriteTo(pb::ICodedOutputStream output) {
  20565. CalcSerializedSize();
  20566. string[] field_names = _testOneofBackwardsCompatibleFieldNames;
  20567. if (hasFooInt) {
  20568. output.WriteInt32(1, field_names[0], FooInt);
  20569. }
  20570. if (hasFooString) {
  20571. output.WriteString(2, field_names[2], FooString);
  20572. }
  20573. if (hasFooMessage) {
  20574. output.WriteMessage(3, field_names[1], FooMessage);
  20575. }
  20576. if (hasFooGroup) {
  20577. output.WriteGroup(4, field_names[3], FooGroup);
  20578. }
  20579. UnknownFields.WriteTo(output);
  20580. }
  20581. private int memoizedSerializedSize = -1;
  20582. public override int SerializedSize {
  20583. get {
  20584. int size = memoizedSerializedSize;
  20585. if (size != -1) return size;
  20586. return CalcSerializedSize();
  20587. }
  20588. }
  20589. private int CalcSerializedSize() {
  20590. int size = memoizedSerializedSize;
  20591. if (size != -1) return size;
  20592. size = 0;
  20593. if (hasFooInt) {
  20594. size += pb::CodedOutputStream.ComputeInt32Size(1, FooInt);
  20595. }
  20596. if (hasFooString) {
  20597. size += pb::CodedOutputStream.ComputeStringSize(2, FooString);
  20598. }
  20599. if (hasFooMessage) {
  20600. size += pb::CodedOutputStream.ComputeMessageSize(3, FooMessage);
  20601. }
  20602. if (hasFooGroup) {
  20603. size += pb::CodedOutputStream.ComputeGroupSize(4, FooGroup);
  20604. }
  20605. size += UnknownFields.SerializedSize;
  20606. memoizedSerializedSize = size;
  20607. return size;
  20608. }
  20609. public static TestOneofBackwardsCompatible ParseFrom(pb::ByteString data) {
  20610. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  20611. }
  20612. public static TestOneofBackwardsCompatible ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  20613. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  20614. }
  20615. public static TestOneofBackwardsCompatible ParseFrom(byte[] data) {
  20616. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  20617. }
  20618. public static TestOneofBackwardsCompatible ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  20619. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  20620. }
  20621. public static TestOneofBackwardsCompatible ParseFrom(global::System.IO.Stream input) {
  20622. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  20623. }
  20624. public static TestOneofBackwardsCompatible ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  20625. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  20626. }
  20627. public static TestOneofBackwardsCompatible ParseDelimitedFrom(global::System.IO.Stream input) {
  20628. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  20629. }
  20630. public static TestOneofBackwardsCompatible ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  20631. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  20632. }
  20633. public static TestOneofBackwardsCompatible ParseFrom(pb::ICodedInputStream input) {
  20634. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  20635. }
  20636. public static TestOneofBackwardsCompatible ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  20637. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  20638. }
  20639. private TestOneofBackwardsCompatible MakeReadOnly() {
  20640. return this;
  20641. }
  20642. public static Builder CreateBuilder() { return new Builder(); }
  20643. public override Builder ToBuilder() { return CreateBuilder(this); }
  20644. public override Builder CreateBuilderForType() { return new Builder(); }
  20645. public static Builder CreateBuilder(TestOneofBackwardsCompatible prototype) {
  20646. return new Builder(prototype);
  20647. }
  20648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  20649. public sealed partial class Builder : pb::GeneratedBuilder<TestOneofBackwardsCompatible, Builder> {
  20650. protected override Builder ThisBuilder {
  20651. get { return this; }
  20652. }
  20653. public Builder() {
  20654. result = DefaultInstance;
  20655. resultIsReadOnly = true;
  20656. }
  20657. internal Builder(TestOneofBackwardsCompatible cloneFrom) {
  20658. result = cloneFrom;
  20659. resultIsReadOnly = true;
  20660. }
  20661. private bool resultIsReadOnly;
  20662. private TestOneofBackwardsCompatible result;
  20663. private TestOneofBackwardsCompatible PrepareBuilder() {
  20664. if (resultIsReadOnly) {
  20665. TestOneofBackwardsCompatible original = result;
  20666. result = new TestOneofBackwardsCompatible();
  20667. resultIsReadOnly = false;
  20668. MergeFrom(original);
  20669. }
  20670. return result;
  20671. }
  20672. public override bool IsInitialized {
  20673. get { return result.IsInitialized; }
  20674. }
  20675. protected override TestOneofBackwardsCompatible MessageBeingBuilt {
  20676. get { return PrepareBuilder(); }
  20677. }
  20678. public override Builder Clear() {
  20679. result = DefaultInstance;
  20680. resultIsReadOnly = true;
  20681. return this;
  20682. }
  20683. public override Builder Clone() {
  20684. if (resultIsReadOnly) {
  20685. return new Builder(result);
  20686. } else {
  20687. return new Builder().MergeFrom(result);
  20688. }
  20689. }
  20690. public override pbd::MessageDescriptor DescriptorForType {
  20691. get { return global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Descriptor; }
  20692. }
  20693. public override TestOneofBackwardsCompatible DefaultInstanceForType {
  20694. get { return global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.DefaultInstance; }
  20695. }
  20696. public override TestOneofBackwardsCompatible BuildPartial() {
  20697. if (resultIsReadOnly) {
  20698. return result;
  20699. }
  20700. resultIsReadOnly = true;
  20701. return result.MakeReadOnly();
  20702. }
  20703. public override Builder MergeFrom(pb::IMessage other) {
  20704. if (other is TestOneofBackwardsCompatible) {
  20705. return MergeFrom((TestOneofBackwardsCompatible) other);
  20706. } else {
  20707. base.MergeFrom(other);
  20708. return this;
  20709. }
  20710. }
  20711. public override Builder MergeFrom(TestOneofBackwardsCompatible other) {
  20712. if (other == global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.DefaultInstance) return this;
  20713. PrepareBuilder();
  20714. if (other.HasFooInt) {
  20715. FooInt = other.FooInt;
  20716. }
  20717. if (other.HasFooString) {
  20718. FooString = other.FooString;
  20719. }
  20720. if (other.HasFooMessage) {
  20721. MergeFooMessage(other.FooMessage);
  20722. }
  20723. if (other.HasFooGroup) {
  20724. MergeFooGroup(other.FooGroup);
  20725. }
  20726. this.MergeUnknownFields(other.UnknownFields);
  20727. return this;
  20728. }
  20729. public override Builder MergeFrom(pb::ICodedInputStream input) {
  20730. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  20731. }
  20732. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  20733. PrepareBuilder();
  20734. pb::UnknownFieldSet.Builder unknownFields = null;
  20735. uint tag;
  20736. string field_name;
  20737. while (input.ReadTag(out tag, out field_name)) {
  20738. if(tag == 0 && field_name != null) {
  20739. int field_ordinal = global::System.Array.BinarySearch(_testOneofBackwardsCompatibleFieldNames, field_name, global::System.StringComparer.Ordinal);
  20740. if(field_ordinal >= 0)
  20741. tag = _testOneofBackwardsCompatibleFieldTags[field_ordinal];
  20742. else {
  20743. if (unknownFields == null) {
  20744. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  20745. }
  20746. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  20747. continue;
  20748. }
  20749. }
  20750. switch (tag) {
  20751. case 0: {
  20752. throw pb::InvalidProtocolBufferException.InvalidTag();
  20753. }
  20754. default: {
  20755. if (pb::WireFormat.IsEndGroupTag(tag)) {
  20756. if (unknownFields != null) {
  20757. this.UnknownFields = unknownFields.Build();
  20758. }
  20759. return this;
  20760. }
  20761. if (unknownFields == null) {
  20762. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  20763. }
  20764. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  20765. break;
  20766. }
  20767. case 8: {
  20768. result.hasFooInt = input.ReadInt32(ref result.fooInt_);
  20769. break;
  20770. }
  20771. case 18: {
  20772. result.hasFooString = input.ReadString(ref result.fooString_);
  20773. break;
  20774. }
  20775. case 26: {
  20776. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
  20777. if (result.hasFooMessage) {
  20778. subBuilder.MergeFrom(FooMessage);
  20779. }
  20780. input.ReadMessage(subBuilder, extensionRegistry);
  20781. FooMessage = subBuilder.BuildPartial();
  20782. break;
  20783. }
  20784. case 35: {
  20785. global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.CreateBuilder();
  20786. if (result.hasFooGroup) {
  20787. subBuilder.MergeFrom(FooGroup);
  20788. }
  20789. input.ReadGroup(4, subBuilder, extensionRegistry);
  20790. FooGroup = subBuilder.BuildPartial();
  20791. break;
  20792. }
  20793. }
  20794. }
  20795. if (unknownFields != null) {
  20796. this.UnknownFields = unknownFields.Build();
  20797. }
  20798. return this;
  20799. }
  20800. public bool HasFooInt {
  20801. get { return result.hasFooInt; }
  20802. }
  20803. public int FooInt {
  20804. get { return result.FooInt; }
  20805. set { SetFooInt(value); }
  20806. }
  20807. public Builder SetFooInt(int value) {
  20808. PrepareBuilder();
  20809. result.hasFooInt = true;
  20810. result.fooInt_ = value;
  20811. return this;
  20812. }
  20813. public Builder ClearFooInt() {
  20814. PrepareBuilder();
  20815. result.hasFooInt = false;
  20816. result.fooInt_ = 0;
  20817. return this;
  20818. }
  20819. public bool HasFooString {
  20820. get { return result.hasFooString; }
  20821. }
  20822. public string FooString {
  20823. get { return result.FooString; }
  20824. set { SetFooString(value); }
  20825. }
  20826. public Builder SetFooString(string value) {
  20827. pb::ThrowHelper.ThrowIfNull(value, "value");
  20828. PrepareBuilder();
  20829. result.hasFooString = true;
  20830. result.fooString_ = value;
  20831. return this;
  20832. }
  20833. public Builder ClearFooString() {
  20834. PrepareBuilder();
  20835. result.hasFooString = false;
  20836. result.fooString_ = "";
  20837. return this;
  20838. }
  20839. public bool HasFooMessage {
  20840. get { return result.hasFooMessage; }
  20841. }
  20842. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes FooMessage {
  20843. get { return result.FooMessage; }
  20844. set { SetFooMessage(value); }
  20845. }
  20846. public Builder SetFooMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  20847. pb::ThrowHelper.ThrowIfNull(value, "value");
  20848. PrepareBuilder();
  20849. result.hasFooMessage = true;
  20850. result.fooMessage_ = value;
  20851. return this;
  20852. }
  20853. public Builder SetFooMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  20854. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  20855. PrepareBuilder();
  20856. result.hasFooMessage = true;
  20857. result.fooMessage_ = builderForValue.Build();
  20858. return this;
  20859. }
  20860. public Builder MergeFooMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  20861. pb::ThrowHelper.ThrowIfNull(value, "value");
  20862. PrepareBuilder();
  20863. if (result.hasFooMessage &&
  20864. result.fooMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
  20865. result.fooMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.fooMessage_).MergeFrom(value).BuildPartial();
  20866. } else {
  20867. result.fooMessage_ = value;
  20868. }
  20869. result.hasFooMessage = true;
  20870. return this;
  20871. }
  20872. public Builder ClearFooMessage() {
  20873. PrepareBuilder();
  20874. result.hasFooMessage = false;
  20875. result.fooMessage_ = null;
  20876. return this;
  20877. }
  20878. public bool HasFooGroup {
  20879. get { return result.hasFooGroup; }
  20880. }
  20881. public global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup FooGroup {
  20882. get { return result.FooGroup; }
  20883. set { SetFooGroup(value); }
  20884. }
  20885. public Builder SetFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup value) {
  20886. pb::ThrowHelper.ThrowIfNull(value, "value");
  20887. PrepareBuilder();
  20888. result.hasFooGroup = true;
  20889. result.fooGroup_ = value;
  20890. return this;
  20891. }
  20892. public Builder SetFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.Builder builderForValue) {
  20893. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  20894. PrepareBuilder();
  20895. result.hasFooGroup = true;
  20896. result.fooGroup_ = builderForValue.Build();
  20897. return this;
  20898. }
  20899. public Builder MergeFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup value) {
  20900. pb::ThrowHelper.ThrowIfNull(value, "value");
  20901. PrepareBuilder();
  20902. if (result.hasFooGroup &&
  20903. result.fooGroup_ != global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.DefaultInstance) {
  20904. result.fooGroup_ = global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.CreateBuilder(result.fooGroup_).MergeFrom(value).BuildPartial();
  20905. } else {
  20906. result.fooGroup_ = value;
  20907. }
  20908. result.hasFooGroup = true;
  20909. return this;
  20910. }
  20911. public Builder ClearFooGroup() {
  20912. PrepareBuilder();
  20913. result.hasFooGroup = false;
  20914. result.fooGroup_ = null;
  20915. return this;
  20916. }
  20917. }
  20918. static TestOneofBackwardsCompatible() {
  20919. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  20920. }
  20921. }
  20922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  20923. public sealed partial class TestOneof2 : pb::GeneratedMessage<TestOneof2, TestOneof2.Builder> {
  20924. private TestOneof2() { }
  20925. private static readonly TestOneof2 defaultInstance = new TestOneof2().MakeReadOnly();
  20926. private static readonly string[] _testOneof2FieldNames = new string[] { "bar_bytes", "bar_cord", "bar_enum", "bar_int", "bar_string", "bar_string_piece", "baz_int", "baz_string", "foo_bytes", "foo_cord", "foo_enum", "foo_int", "foo_lazy_message", "foo_message", "foo_string", "foo_string_piece", "foogroup" };
  20927. private static readonly uint[] _testOneof2FieldTags = new uint[] { 130, 114, 136, 96, 106, 122, 144, 154, 42, 26, 48, 8, 90, 58, 18, 34, 67 };
  20928. public static TestOneof2 DefaultInstance {
  20929. get { return defaultInstance; }
  20930. }
  20931. public override TestOneof2 DefaultInstanceForType {
  20932. get { return DefaultInstance; }
  20933. }
  20934. protected override TestOneof2 ThisMessage {
  20935. get { return this; }
  20936. }
  20937. public static pbd::MessageDescriptor Descriptor {
  20938. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof2__Descriptor; }
  20939. }
  20940. protected override pb::FieldAccess.FieldAccessorTable<TestOneof2, TestOneof2.Builder> InternalFieldAccessors {
  20941. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof2__FieldAccessorTable; }
  20942. }
  20943. #region Nested types
  20944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  20945. public static partial class Types {
  20946. public enum NestedEnum {
  20947. FOO = 1,
  20948. BAR = 2,
  20949. BAZ = 3,
  20950. }
  20951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  20952. public sealed partial class FooGroup : pb::GeneratedMessage<FooGroup, FooGroup.Builder> {
  20953. private FooGroup() { }
  20954. private static readonly FooGroup defaultInstance = new FooGroup().MakeReadOnly();
  20955. private static readonly string[] _fooGroupFieldNames = new string[] { "a", "b" };
  20956. private static readonly uint[] _fooGroupFieldTags = new uint[] { 72, 82 };
  20957. public static FooGroup DefaultInstance {
  20958. get { return defaultInstance; }
  20959. }
  20960. public override FooGroup DefaultInstanceForType {
  20961. get { return DefaultInstance; }
  20962. }
  20963. protected override FooGroup ThisMessage {
  20964. get { return this; }
  20965. }
  20966. public static pbd::MessageDescriptor Descriptor {
  20967. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof2_FooGroup__Descriptor; }
  20968. }
  20969. protected override pb::FieldAccess.FieldAccessorTable<FooGroup, FooGroup.Builder> InternalFieldAccessors {
  20970. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof2_FooGroup__FieldAccessorTable; }
  20971. }
  20972. public const int AFieldNumber = 9;
  20973. private bool hasA;
  20974. private int a_;
  20975. public bool HasA {
  20976. get { return hasA; }
  20977. }
  20978. public int A {
  20979. get { return a_; }
  20980. }
  20981. public const int BFieldNumber = 10;
  20982. private bool hasB;
  20983. private string b_ = "";
  20984. public bool HasB {
  20985. get { return hasB; }
  20986. }
  20987. public string B {
  20988. get { return b_; }
  20989. }
  20990. public override bool IsInitialized {
  20991. get {
  20992. return true;
  20993. }
  20994. }
  20995. public override void WriteTo(pb::ICodedOutputStream output) {
  20996. CalcSerializedSize();
  20997. string[] field_names = _fooGroupFieldNames;
  20998. if (hasA) {
  20999. output.WriteInt32(9, field_names[0], A);
  21000. }
  21001. if (hasB) {
  21002. output.WriteString(10, field_names[1], B);
  21003. }
  21004. UnknownFields.WriteTo(output);
  21005. }
  21006. private int memoizedSerializedSize = -1;
  21007. public override int SerializedSize {
  21008. get {
  21009. int size = memoizedSerializedSize;
  21010. if (size != -1) return size;
  21011. return CalcSerializedSize();
  21012. }
  21013. }
  21014. private int CalcSerializedSize() {
  21015. int size = memoizedSerializedSize;
  21016. if (size != -1) return size;
  21017. size = 0;
  21018. if (hasA) {
  21019. size += pb::CodedOutputStream.ComputeInt32Size(9, A);
  21020. }
  21021. if (hasB) {
  21022. size += pb::CodedOutputStream.ComputeStringSize(10, B);
  21023. }
  21024. size += UnknownFields.SerializedSize;
  21025. memoizedSerializedSize = size;
  21026. return size;
  21027. }
  21028. public static FooGroup ParseFrom(pb::ByteString data) {
  21029. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  21030. }
  21031. public static FooGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  21032. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  21033. }
  21034. public static FooGroup ParseFrom(byte[] data) {
  21035. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  21036. }
  21037. public static FooGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  21038. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  21039. }
  21040. public static FooGroup ParseFrom(global::System.IO.Stream input) {
  21041. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  21042. }
  21043. public static FooGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  21044. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  21045. }
  21046. public static FooGroup ParseDelimitedFrom(global::System.IO.Stream input) {
  21047. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  21048. }
  21049. public static FooGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  21050. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  21051. }
  21052. public static FooGroup ParseFrom(pb::ICodedInputStream input) {
  21053. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  21054. }
  21055. public static FooGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  21056. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  21057. }
  21058. private FooGroup MakeReadOnly() {
  21059. return this;
  21060. }
  21061. public static Builder CreateBuilder() { return new Builder(); }
  21062. public override Builder ToBuilder() { return CreateBuilder(this); }
  21063. public override Builder CreateBuilderForType() { return new Builder(); }
  21064. public static Builder CreateBuilder(FooGroup prototype) {
  21065. return new Builder(prototype);
  21066. }
  21067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  21068. public sealed partial class Builder : pb::GeneratedBuilder<FooGroup, Builder> {
  21069. protected override Builder ThisBuilder {
  21070. get { return this; }
  21071. }
  21072. public Builder() {
  21073. result = DefaultInstance;
  21074. resultIsReadOnly = true;
  21075. }
  21076. internal Builder(FooGroup cloneFrom) {
  21077. result = cloneFrom;
  21078. resultIsReadOnly = true;
  21079. }
  21080. private bool resultIsReadOnly;
  21081. private FooGroup result;
  21082. private FooGroup PrepareBuilder() {
  21083. if (resultIsReadOnly) {
  21084. FooGroup original = result;
  21085. result = new FooGroup();
  21086. resultIsReadOnly = false;
  21087. MergeFrom(original);
  21088. }
  21089. return result;
  21090. }
  21091. public override bool IsInitialized {
  21092. get { return result.IsInitialized; }
  21093. }
  21094. protected override FooGroup MessageBeingBuilt {
  21095. get { return PrepareBuilder(); }
  21096. }
  21097. public override Builder Clear() {
  21098. result = DefaultInstance;
  21099. resultIsReadOnly = true;
  21100. return this;
  21101. }
  21102. public override Builder Clone() {
  21103. if (resultIsReadOnly) {
  21104. return new Builder(result);
  21105. } else {
  21106. return new Builder().MergeFrom(result);
  21107. }
  21108. }
  21109. public override pbd::MessageDescriptor DescriptorForType {
  21110. get { return global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.Descriptor; }
  21111. }
  21112. public override FooGroup DefaultInstanceForType {
  21113. get { return global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.DefaultInstance; }
  21114. }
  21115. public override FooGroup BuildPartial() {
  21116. if (resultIsReadOnly) {
  21117. return result;
  21118. }
  21119. resultIsReadOnly = true;
  21120. return result.MakeReadOnly();
  21121. }
  21122. public override Builder MergeFrom(pb::IMessage other) {
  21123. if (other is FooGroup) {
  21124. return MergeFrom((FooGroup) other);
  21125. } else {
  21126. base.MergeFrom(other);
  21127. return this;
  21128. }
  21129. }
  21130. public override Builder MergeFrom(FooGroup other) {
  21131. if (other == global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.DefaultInstance) return this;
  21132. PrepareBuilder();
  21133. if (other.HasA) {
  21134. A = other.A;
  21135. }
  21136. if (other.HasB) {
  21137. B = other.B;
  21138. }
  21139. this.MergeUnknownFields(other.UnknownFields);
  21140. return this;
  21141. }
  21142. public override Builder MergeFrom(pb::ICodedInputStream input) {
  21143. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  21144. }
  21145. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  21146. PrepareBuilder();
  21147. pb::UnknownFieldSet.Builder unknownFields = null;
  21148. uint tag;
  21149. string field_name;
  21150. while (input.ReadTag(out tag, out field_name)) {
  21151. if(tag == 0 && field_name != null) {
  21152. int field_ordinal = global::System.Array.BinarySearch(_fooGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
  21153. if(field_ordinal >= 0)
  21154. tag = _fooGroupFieldTags[field_ordinal];
  21155. else {
  21156. if (unknownFields == null) {
  21157. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  21158. }
  21159. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  21160. continue;
  21161. }
  21162. }
  21163. switch (tag) {
  21164. case 0: {
  21165. throw pb::InvalidProtocolBufferException.InvalidTag();
  21166. }
  21167. default: {
  21168. if (pb::WireFormat.IsEndGroupTag(tag)) {
  21169. if (unknownFields != null) {
  21170. this.UnknownFields = unknownFields.Build();
  21171. }
  21172. return this;
  21173. }
  21174. if (unknownFields == null) {
  21175. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  21176. }
  21177. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  21178. break;
  21179. }
  21180. case 72: {
  21181. result.hasA = input.ReadInt32(ref result.a_);
  21182. break;
  21183. }
  21184. case 82: {
  21185. result.hasB = input.ReadString(ref result.b_);
  21186. break;
  21187. }
  21188. }
  21189. }
  21190. if (unknownFields != null) {
  21191. this.UnknownFields = unknownFields.Build();
  21192. }
  21193. return this;
  21194. }
  21195. public bool HasA {
  21196. get { return result.hasA; }
  21197. }
  21198. public int A {
  21199. get { return result.A; }
  21200. set { SetA(value); }
  21201. }
  21202. public Builder SetA(int value) {
  21203. PrepareBuilder();
  21204. result.hasA = true;
  21205. result.a_ = value;
  21206. return this;
  21207. }
  21208. public Builder ClearA() {
  21209. PrepareBuilder();
  21210. result.hasA = false;
  21211. result.a_ = 0;
  21212. return this;
  21213. }
  21214. public bool HasB {
  21215. get { return result.hasB; }
  21216. }
  21217. public string B {
  21218. get { return result.B; }
  21219. set { SetB(value); }
  21220. }
  21221. public Builder SetB(string value) {
  21222. pb::ThrowHelper.ThrowIfNull(value, "value");
  21223. PrepareBuilder();
  21224. result.hasB = true;
  21225. result.b_ = value;
  21226. return this;
  21227. }
  21228. public Builder ClearB() {
  21229. PrepareBuilder();
  21230. result.hasB = false;
  21231. result.b_ = "";
  21232. return this;
  21233. }
  21234. }
  21235. static FooGroup() {
  21236. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  21237. }
  21238. }
  21239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  21240. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  21241. private NestedMessage() { }
  21242. private static readonly NestedMessage defaultInstance = new NestedMessage().MakeReadOnly();
  21243. private static readonly string[] _nestedMessageFieldNames = new string[] { "corge_int", "qux_int" };
  21244. private static readonly uint[] _nestedMessageFieldTags = new uint[] { 16, 8 };
  21245. public static NestedMessage DefaultInstance {
  21246. get { return defaultInstance; }
  21247. }
  21248. public override NestedMessage DefaultInstanceForType {
  21249. get { return DefaultInstance; }
  21250. }
  21251. protected override NestedMessage ThisMessage {
  21252. get { return this; }
  21253. }
  21254. public static pbd::MessageDescriptor Descriptor {
  21255. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof2_NestedMessage__Descriptor; }
  21256. }
  21257. protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
  21258. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof2_NestedMessage__FieldAccessorTable; }
  21259. }
  21260. public const int QuxIntFieldNumber = 1;
  21261. private bool hasQuxInt;
  21262. private long quxInt_;
  21263. public bool HasQuxInt {
  21264. get { return hasQuxInt; }
  21265. }
  21266. public long QuxInt {
  21267. get { return quxInt_; }
  21268. }
  21269. public const int CorgeIntFieldNumber = 2;
  21270. private pbc::PopsicleList<int> corgeInt_ = new pbc::PopsicleList<int>();
  21271. public scg::IList<int> CorgeIntList {
  21272. get { return pbc::Lists.AsReadOnly(corgeInt_); }
  21273. }
  21274. public int CorgeIntCount {
  21275. get { return corgeInt_.Count; }
  21276. }
  21277. public int GetCorgeInt(int index) {
  21278. return corgeInt_[index];
  21279. }
  21280. public override bool IsInitialized {
  21281. get {
  21282. return true;
  21283. }
  21284. }
  21285. public override void WriteTo(pb::ICodedOutputStream output) {
  21286. CalcSerializedSize();
  21287. string[] field_names = _nestedMessageFieldNames;
  21288. if (hasQuxInt) {
  21289. output.WriteInt64(1, field_names[1], QuxInt);
  21290. }
  21291. if (corgeInt_.Count > 0) {
  21292. output.WriteInt32Array(2, field_names[0], corgeInt_);
  21293. }
  21294. UnknownFields.WriteTo(output);
  21295. }
  21296. private int memoizedSerializedSize = -1;
  21297. public override int SerializedSize {
  21298. get {
  21299. int size = memoizedSerializedSize;
  21300. if (size != -1) return size;
  21301. return CalcSerializedSize();
  21302. }
  21303. }
  21304. private int CalcSerializedSize() {
  21305. int size = memoizedSerializedSize;
  21306. if (size != -1) return size;
  21307. size = 0;
  21308. if (hasQuxInt) {
  21309. size += pb::CodedOutputStream.ComputeInt64Size(1, QuxInt);
  21310. }
  21311. {
  21312. int dataSize = 0;
  21313. foreach (int element in CorgeIntList) {
  21314. dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
  21315. }
  21316. size += dataSize;
  21317. size += 1 * corgeInt_.Count;
  21318. }
  21319. size += UnknownFields.SerializedSize;
  21320. memoizedSerializedSize = size;
  21321. return size;
  21322. }
  21323. public static NestedMessage ParseFrom(pb::ByteString data) {
  21324. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  21325. }
  21326. public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  21327. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  21328. }
  21329. public static NestedMessage ParseFrom(byte[] data) {
  21330. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  21331. }
  21332. public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  21333. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  21334. }
  21335. public static NestedMessage ParseFrom(global::System.IO.Stream input) {
  21336. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  21337. }
  21338. public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  21339. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  21340. }
  21341. public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
  21342. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  21343. }
  21344. public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  21345. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  21346. }
  21347. public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
  21348. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  21349. }
  21350. public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  21351. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  21352. }
  21353. private NestedMessage MakeReadOnly() {
  21354. corgeInt_.MakeReadOnly();
  21355. return this;
  21356. }
  21357. public static Builder CreateBuilder() { return new Builder(); }
  21358. public override Builder ToBuilder() { return CreateBuilder(this); }
  21359. public override Builder CreateBuilderForType() { return new Builder(); }
  21360. public static Builder CreateBuilder(NestedMessage prototype) {
  21361. return new Builder(prototype);
  21362. }
  21363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  21364. public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> {
  21365. protected override Builder ThisBuilder {
  21366. get { return this; }
  21367. }
  21368. public Builder() {
  21369. result = DefaultInstance;
  21370. resultIsReadOnly = true;
  21371. }
  21372. internal Builder(NestedMessage cloneFrom) {
  21373. result = cloneFrom;
  21374. resultIsReadOnly = true;
  21375. }
  21376. private bool resultIsReadOnly;
  21377. private NestedMessage result;
  21378. private NestedMessage PrepareBuilder() {
  21379. if (resultIsReadOnly) {
  21380. NestedMessage original = result;
  21381. result = new NestedMessage();
  21382. resultIsReadOnly = false;
  21383. MergeFrom(original);
  21384. }
  21385. return result;
  21386. }
  21387. public override bool IsInitialized {
  21388. get { return result.IsInitialized; }
  21389. }
  21390. protected override NestedMessage MessageBeingBuilt {
  21391. get { return PrepareBuilder(); }
  21392. }
  21393. public override Builder Clear() {
  21394. result = DefaultInstance;
  21395. resultIsReadOnly = true;
  21396. return this;
  21397. }
  21398. public override Builder Clone() {
  21399. if (resultIsReadOnly) {
  21400. return new Builder(result);
  21401. } else {
  21402. return new Builder().MergeFrom(result);
  21403. }
  21404. }
  21405. public override pbd::MessageDescriptor DescriptorForType {
  21406. get { return global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.Descriptor; }
  21407. }
  21408. public override NestedMessage DefaultInstanceForType {
  21409. get { return global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.DefaultInstance; }
  21410. }
  21411. public override NestedMessage BuildPartial() {
  21412. if (resultIsReadOnly) {
  21413. return result;
  21414. }
  21415. resultIsReadOnly = true;
  21416. return result.MakeReadOnly();
  21417. }
  21418. public override Builder MergeFrom(pb::IMessage other) {
  21419. if (other is NestedMessage) {
  21420. return MergeFrom((NestedMessage) other);
  21421. } else {
  21422. base.MergeFrom(other);
  21423. return this;
  21424. }
  21425. }
  21426. public override Builder MergeFrom(NestedMessage other) {
  21427. if (other == global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.DefaultInstance) return this;
  21428. PrepareBuilder();
  21429. if (other.HasQuxInt) {
  21430. QuxInt = other.QuxInt;
  21431. }
  21432. if (other.corgeInt_.Count != 0) {
  21433. result.corgeInt_.Add(other.corgeInt_);
  21434. }
  21435. this.MergeUnknownFields(other.UnknownFields);
  21436. return this;
  21437. }
  21438. public override Builder MergeFrom(pb::ICodedInputStream input) {
  21439. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  21440. }
  21441. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  21442. PrepareBuilder();
  21443. pb::UnknownFieldSet.Builder unknownFields = null;
  21444. uint tag;
  21445. string field_name;
  21446. while (input.ReadTag(out tag, out field_name)) {
  21447. if(tag == 0 && field_name != null) {
  21448. int field_ordinal = global::System.Array.BinarySearch(_nestedMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  21449. if(field_ordinal >= 0)
  21450. tag = _nestedMessageFieldTags[field_ordinal];
  21451. else {
  21452. if (unknownFields == null) {
  21453. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  21454. }
  21455. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  21456. continue;
  21457. }
  21458. }
  21459. switch (tag) {
  21460. case 0: {
  21461. throw pb::InvalidProtocolBufferException.InvalidTag();
  21462. }
  21463. default: {
  21464. if (pb::WireFormat.IsEndGroupTag(tag)) {
  21465. if (unknownFields != null) {
  21466. this.UnknownFields = unknownFields.Build();
  21467. }
  21468. return this;
  21469. }
  21470. if (unknownFields == null) {
  21471. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  21472. }
  21473. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  21474. break;
  21475. }
  21476. case 8: {
  21477. result.hasQuxInt = input.ReadInt64(ref result.quxInt_);
  21478. break;
  21479. }
  21480. case 18:
  21481. case 16: {
  21482. input.ReadInt32Array(tag, field_name, result.corgeInt_);
  21483. break;
  21484. }
  21485. }
  21486. }
  21487. if (unknownFields != null) {
  21488. this.UnknownFields = unknownFields.Build();
  21489. }
  21490. return this;
  21491. }
  21492. public bool HasQuxInt {
  21493. get { return result.hasQuxInt; }
  21494. }
  21495. public long QuxInt {
  21496. get { return result.QuxInt; }
  21497. set { SetQuxInt(value); }
  21498. }
  21499. public Builder SetQuxInt(long value) {
  21500. PrepareBuilder();
  21501. result.hasQuxInt = true;
  21502. result.quxInt_ = value;
  21503. return this;
  21504. }
  21505. public Builder ClearQuxInt() {
  21506. PrepareBuilder();
  21507. result.hasQuxInt = false;
  21508. result.quxInt_ = 0L;
  21509. return this;
  21510. }
  21511. public pbc::IPopsicleList<int> CorgeIntList {
  21512. get { return PrepareBuilder().corgeInt_; }
  21513. }
  21514. public int CorgeIntCount {
  21515. get { return result.CorgeIntCount; }
  21516. }
  21517. public int GetCorgeInt(int index) {
  21518. return result.GetCorgeInt(index);
  21519. }
  21520. public Builder SetCorgeInt(int index, int value) {
  21521. PrepareBuilder();
  21522. result.corgeInt_[index] = value;
  21523. return this;
  21524. }
  21525. public Builder AddCorgeInt(int value) {
  21526. PrepareBuilder();
  21527. result.corgeInt_.Add(value);
  21528. return this;
  21529. }
  21530. public Builder AddRangeCorgeInt(scg::IEnumerable<int> values) {
  21531. PrepareBuilder();
  21532. result.corgeInt_.Add(values);
  21533. return this;
  21534. }
  21535. public Builder ClearCorgeInt() {
  21536. PrepareBuilder();
  21537. result.corgeInt_.Clear();
  21538. return this;
  21539. }
  21540. }
  21541. static NestedMessage() {
  21542. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  21543. }
  21544. }
  21545. }
  21546. #endregion
  21547. public const int FooIntFieldNumber = 1;
  21548. private bool hasFooInt;
  21549. private int fooInt_;
  21550. public bool HasFooInt {
  21551. get { return hasFooInt; }
  21552. }
  21553. public int FooInt {
  21554. get { return fooInt_; }
  21555. }
  21556. public const int FooStringFieldNumber = 2;
  21557. private bool hasFooString;
  21558. private string fooString_ = "";
  21559. public bool HasFooString {
  21560. get { return hasFooString; }
  21561. }
  21562. public string FooString {
  21563. get { return fooString_; }
  21564. }
  21565. public const int FooCordFieldNumber = 3;
  21566. private bool hasFooCord;
  21567. private string fooCord_ = "";
  21568. public bool HasFooCord {
  21569. get { return hasFooCord; }
  21570. }
  21571. public string FooCord {
  21572. get { return fooCord_; }
  21573. }
  21574. public const int FooStringPieceFieldNumber = 4;
  21575. private bool hasFooStringPiece;
  21576. private string fooStringPiece_ = "";
  21577. public bool HasFooStringPiece {
  21578. get { return hasFooStringPiece; }
  21579. }
  21580. public string FooStringPiece {
  21581. get { return fooStringPiece_; }
  21582. }
  21583. public const int FooBytesFieldNumber = 5;
  21584. private bool hasFooBytes;
  21585. private pb::ByteString fooBytes_ = pb::ByteString.Empty;
  21586. public bool HasFooBytes {
  21587. get { return hasFooBytes; }
  21588. }
  21589. public pb::ByteString FooBytes {
  21590. get { return fooBytes_; }
  21591. }
  21592. public const int FooEnumFieldNumber = 6;
  21593. private bool hasFooEnum;
  21594. private global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum fooEnum_ = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum.FOO;
  21595. public bool HasFooEnum {
  21596. get { return hasFooEnum; }
  21597. }
  21598. public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum FooEnum {
  21599. get { return fooEnum_; }
  21600. }
  21601. public const int FooMessageFieldNumber = 7;
  21602. private bool hasFooMessage;
  21603. private global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage fooMessage_;
  21604. public bool HasFooMessage {
  21605. get { return hasFooMessage; }
  21606. }
  21607. public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage FooMessage {
  21608. get { return fooMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.DefaultInstance; }
  21609. }
  21610. public const int FooGroupFieldNumber = 8;
  21611. private bool hasFooGroup;
  21612. private global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup fooGroup_;
  21613. public bool HasFooGroup {
  21614. get { return hasFooGroup; }
  21615. }
  21616. public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup FooGroup {
  21617. get { return fooGroup_ ?? global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.DefaultInstance; }
  21618. }
  21619. public const int FooLazyMessageFieldNumber = 11;
  21620. private bool hasFooLazyMessage;
  21621. private global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage fooLazyMessage_;
  21622. public bool HasFooLazyMessage {
  21623. get { return hasFooLazyMessage; }
  21624. }
  21625. public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage FooLazyMessage {
  21626. get { return fooLazyMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.DefaultInstance; }
  21627. }
  21628. public const int BarIntFieldNumber = 12;
  21629. private bool hasBarInt;
  21630. private int barInt_ = 5;
  21631. public bool HasBarInt {
  21632. get { return hasBarInt; }
  21633. }
  21634. public int BarInt {
  21635. get { return barInt_; }
  21636. }
  21637. public const int BarStringFieldNumber = 13;
  21638. private bool hasBarString;
  21639. private string barString_ = "STRING";
  21640. public bool HasBarString {
  21641. get { return hasBarString; }
  21642. }
  21643. public string BarString {
  21644. get { return barString_; }
  21645. }
  21646. public const int BarCordFieldNumber = 14;
  21647. private bool hasBarCord;
  21648. private string barCord_ = "CORD";
  21649. public bool HasBarCord {
  21650. get { return hasBarCord; }
  21651. }
  21652. public string BarCord {
  21653. get { return barCord_; }
  21654. }
  21655. public const int BarStringPieceFieldNumber = 15;
  21656. private bool hasBarStringPiece;
  21657. private string barStringPiece_ = "SPIECE";
  21658. public bool HasBarStringPiece {
  21659. get { return hasBarStringPiece; }
  21660. }
  21661. public string BarStringPiece {
  21662. get { return barStringPiece_; }
  21663. }
  21664. public const int BarBytesFieldNumber = 16;
  21665. private bool hasBarBytes;
  21666. private pb::ByteString barBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestOneof2.Descriptor.Fields[13].DefaultValue;
  21667. public bool HasBarBytes {
  21668. get { return hasBarBytes; }
  21669. }
  21670. public pb::ByteString BarBytes {
  21671. get { return barBytes_; }
  21672. }
  21673. public const int BarEnumFieldNumber = 17;
  21674. private bool hasBarEnum;
  21675. private global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum barEnum_ = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum.BAR;
  21676. public bool HasBarEnum {
  21677. get { return hasBarEnum; }
  21678. }
  21679. public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum BarEnum {
  21680. get { return barEnum_; }
  21681. }
  21682. public const int BazIntFieldNumber = 18;
  21683. private bool hasBazInt;
  21684. private int bazInt_;
  21685. public bool HasBazInt {
  21686. get { return hasBazInt; }
  21687. }
  21688. public int BazInt {
  21689. get { return bazInt_; }
  21690. }
  21691. public const int BazStringFieldNumber = 19;
  21692. private bool hasBazString;
  21693. private string bazString_ = "BAZ";
  21694. public bool HasBazString {
  21695. get { return hasBazString; }
  21696. }
  21697. public string BazString {
  21698. get { return bazString_; }
  21699. }
  21700. public override bool IsInitialized {
  21701. get {
  21702. return true;
  21703. }
  21704. }
  21705. public override void WriteTo(pb::ICodedOutputStream output) {
  21706. CalcSerializedSize();
  21707. string[] field_names = _testOneof2FieldNames;
  21708. if (hasFooInt) {
  21709. output.WriteInt32(1, field_names[11], FooInt);
  21710. }
  21711. if (hasFooString) {
  21712. output.WriteString(2, field_names[14], FooString);
  21713. }
  21714. if (hasFooCord) {
  21715. output.WriteString(3, field_names[9], FooCord);
  21716. }
  21717. if (hasFooStringPiece) {
  21718. output.WriteString(4, field_names[15], FooStringPiece);
  21719. }
  21720. if (hasFooBytes) {
  21721. output.WriteBytes(5, field_names[8], FooBytes);
  21722. }
  21723. if (hasFooEnum) {
  21724. output.WriteEnum(6, field_names[10], (int) FooEnum, FooEnum);
  21725. }
  21726. if (hasFooMessage) {
  21727. output.WriteMessage(7, field_names[13], FooMessage);
  21728. }
  21729. if (hasFooGroup) {
  21730. output.WriteGroup(8, field_names[16], FooGroup);
  21731. }
  21732. if (hasFooLazyMessage) {
  21733. output.WriteMessage(11, field_names[12], FooLazyMessage);
  21734. }
  21735. if (hasBarInt) {
  21736. output.WriteInt32(12, field_names[3], BarInt);
  21737. }
  21738. if (hasBarString) {
  21739. output.WriteString(13, field_names[4], BarString);
  21740. }
  21741. if (hasBarCord) {
  21742. output.WriteString(14, field_names[1], BarCord);
  21743. }
  21744. if (hasBarStringPiece) {
  21745. output.WriteString(15, field_names[5], BarStringPiece);
  21746. }
  21747. if (hasBarBytes) {
  21748. output.WriteBytes(16, field_names[0], BarBytes);
  21749. }
  21750. if (hasBarEnum) {
  21751. output.WriteEnum(17, field_names[2], (int) BarEnum, BarEnum);
  21752. }
  21753. if (hasBazInt) {
  21754. output.WriteInt32(18, field_names[6], BazInt);
  21755. }
  21756. if (hasBazString) {
  21757. output.WriteString(19, field_names[7], BazString);
  21758. }
  21759. UnknownFields.WriteTo(output);
  21760. }
  21761. private int memoizedSerializedSize = -1;
  21762. public override int SerializedSize {
  21763. get {
  21764. int size = memoizedSerializedSize;
  21765. if (size != -1) return size;
  21766. return CalcSerializedSize();
  21767. }
  21768. }
  21769. private int CalcSerializedSize() {
  21770. int size = memoizedSerializedSize;
  21771. if (size != -1) return size;
  21772. size = 0;
  21773. if (hasFooInt) {
  21774. size += pb::CodedOutputStream.ComputeInt32Size(1, FooInt);
  21775. }
  21776. if (hasFooString) {
  21777. size += pb::CodedOutputStream.ComputeStringSize(2, FooString);
  21778. }
  21779. if (hasFooCord) {
  21780. size += pb::CodedOutputStream.ComputeStringSize(3, FooCord);
  21781. }
  21782. if (hasFooStringPiece) {
  21783. size += pb::CodedOutputStream.ComputeStringSize(4, FooStringPiece);
  21784. }
  21785. if (hasFooBytes) {
  21786. size += pb::CodedOutputStream.ComputeBytesSize(5, FooBytes);
  21787. }
  21788. if (hasFooEnum) {
  21789. size += pb::CodedOutputStream.ComputeEnumSize(6, (int) FooEnum);
  21790. }
  21791. if (hasFooMessage) {
  21792. size += pb::CodedOutputStream.ComputeMessageSize(7, FooMessage);
  21793. }
  21794. if (hasFooGroup) {
  21795. size += pb::CodedOutputStream.ComputeGroupSize(8, FooGroup);
  21796. }
  21797. if (hasFooLazyMessage) {
  21798. size += pb::CodedOutputStream.ComputeMessageSize(11, FooLazyMessage);
  21799. }
  21800. if (hasBarInt) {
  21801. size += pb::CodedOutputStream.ComputeInt32Size(12, BarInt);
  21802. }
  21803. if (hasBarString) {
  21804. size += pb::CodedOutputStream.ComputeStringSize(13, BarString);
  21805. }
  21806. if (hasBarCord) {
  21807. size += pb::CodedOutputStream.ComputeStringSize(14, BarCord);
  21808. }
  21809. if (hasBarStringPiece) {
  21810. size += pb::CodedOutputStream.ComputeStringSize(15, BarStringPiece);
  21811. }
  21812. if (hasBarBytes) {
  21813. size += pb::CodedOutputStream.ComputeBytesSize(16, BarBytes);
  21814. }
  21815. if (hasBarEnum) {
  21816. size += pb::CodedOutputStream.ComputeEnumSize(17, (int) BarEnum);
  21817. }
  21818. if (hasBazInt) {
  21819. size += pb::CodedOutputStream.ComputeInt32Size(18, BazInt);
  21820. }
  21821. if (hasBazString) {
  21822. size += pb::CodedOutputStream.ComputeStringSize(19, BazString);
  21823. }
  21824. size += UnknownFields.SerializedSize;
  21825. memoizedSerializedSize = size;
  21826. return size;
  21827. }
  21828. public static TestOneof2 ParseFrom(pb::ByteString data) {
  21829. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  21830. }
  21831. public static TestOneof2 ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  21832. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  21833. }
  21834. public static TestOneof2 ParseFrom(byte[] data) {
  21835. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  21836. }
  21837. public static TestOneof2 ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  21838. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  21839. }
  21840. public static TestOneof2 ParseFrom(global::System.IO.Stream input) {
  21841. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  21842. }
  21843. public static TestOneof2 ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  21844. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  21845. }
  21846. public static TestOneof2 ParseDelimitedFrom(global::System.IO.Stream input) {
  21847. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  21848. }
  21849. public static TestOneof2 ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  21850. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  21851. }
  21852. public static TestOneof2 ParseFrom(pb::ICodedInputStream input) {
  21853. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  21854. }
  21855. public static TestOneof2 ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  21856. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  21857. }
  21858. private TestOneof2 MakeReadOnly() {
  21859. return this;
  21860. }
  21861. public static Builder CreateBuilder() { return new Builder(); }
  21862. public override Builder ToBuilder() { return CreateBuilder(this); }
  21863. public override Builder CreateBuilderForType() { return new Builder(); }
  21864. public static Builder CreateBuilder(TestOneof2 prototype) {
  21865. return new Builder(prototype);
  21866. }
  21867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  21868. public sealed partial class Builder : pb::GeneratedBuilder<TestOneof2, Builder> {
  21869. protected override Builder ThisBuilder {
  21870. get { return this; }
  21871. }
  21872. public Builder() {
  21873. result = DefaultInstance;
  21874. resultIsReadOnly = true;
  21875. }
  21876. internal Builder(TestOneof2 cloneFrom) {
  21877. result = cloneFrom;
  21878. resultIsReadOnly = true;
  21879. }
  21880. private bool resultIsReadOnly;
  21881. private TestOneof2 result;
  21882. private TestOneof2 PrepareBuilder() {
  21883. if (resultIsReadOnly) {
  21884. TestOneof2 original = result;
  21885. result = new TestOneof2();
  21886. resultIsReadOnly = false;
  21887. MergeFrom(original);
  21888. }
  21889. return result;
  21890. }
  21891. public override bool IsInitialized {
  21892. get { return result.IsInitialized; }
  21893. }
  21894. protected override TestOneof2 MessageBeingBuilt {
  21895. get { return PrepareBuilder(); }
  21896. }
  21897. public override Builder Clear() {
  21898. result = DefaultInstance;
  21899. resultIsReadOnly = true;
  21900. return this;
  21901. }
  21902. public override Builder Clone() {
  21903. if (resultIsReadOnly) {
  21904. return new Builder(result);
  21905. } else {
  21906. return new Builder().MergeFrom(result);
  21907. }
  21908. }
  21909. public override pbd::MessageDescriptor DescriptorForType {
  21910. get { return global::Google.ProtocolBuffers.TestProtos.TestOneof2.Descriptor; }
  21911. }
  21912. public override TestOneof2 DefaultInstanceForType {
  21913. get { return global::Google.ProtocolBuffers.TestProtos.TestOneof2.DefaultInstance; }
  21914. }
  21915. public override TestOneof2 BuildPartial() {
  21916. if (resultIsReadOnly) {
  21917. return result;
  21918. }
  21919. resultIsReadOnly = true;
  21920. return result.MakeReadOnly();
  21921. }
  21922. public override Builder MergeFrom(pb::IMessage other) {
  21923. if (other is TestOneof2) {
  21924. return MergeFrom((TestOneof2) other);
  21925. } else {
  21926. base.MergeFrom(other);
  21927. return this;
  21928. }
  21929. }
  21930. public override Builder MergeFrom(TestOneof2 other) {
  21931. if (other == global::Google.ProtocolBuffers.TestProtos.TestOneof2.DefaultInstance) return this;
  21932. PrepareBuilder();
  21933. if (other.HasFooInt) {
  21934. FooInt = other.FooInt;
  21935. }
  21936. if (other.HasFooString) {
  21937. FooString = other.FooString;
  21938. }
  21939. if (other.HasFooCord) {
  21940. FooCord = other.FooCord;
  21941. }
  21942. if (other.HasFooStringPiece) {
  21943. FooStringPiece = other.FooStringPiece;
  21944. }
  21945. if (other.HasFooBytes) {
  21946. FooBytes = other.FooBytes;
  21947. }
  21948. if (other.HasFooEnum) {
  21949. FooEnum = other.FooEnum;
  21950. }
  21951. if (other.HasFooMessage) {
  21952. MergeFooMessage(other.FooMessage);
  21953. }
  21954. if (other.HasFooGroup) {
  21955. MergeFooGroup(other.FooGroup);
  21956. }
  21957. if (other.HasFooLazyMessage) {
  21958. MergeFooLazyMessage(other.FooLazyMessage);
  21959. }
  21960. if (other.HasBarInt) {
  21961. BarInt = other.BarInt;
  21962. }
  21963. if (other.HasBarString) {
  21964. BarString = other.BarString;
  21965. }
  21966. if (other.HasBarCord) {
  21967. BarCord = other.BarCord;
  21968. }
  21969. if (other.HasBarStringPiece) {
  21970. BarStringPiece = other.BarStringPiece;
  21971. }
  21972. if (other.HasBarBytes) {
  21973. BarBytes = other.BarBytes;
  21974. }
  21975. if (other.HasBarEnum) {
  21976. BarEnum = other.BarEnum;
  21977. }
  21978. if (other.HasBazInt) {
  21979. BazInt = other.BazInt;
  21980. }
  21981. if (other.HasBazString) {
  21982. BazString = other.BazString;
  21983. }
  21984. this.MergeUnknownFields(other.UnknownFields);
  21985. return this;
  21986. }
  21987. public override Builder MergeFrom(pb::ICodedInputStream input) {
  21988. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  21989. }
  21990. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  21991. PrepareBuilder();
  21992. pb::UnknownFieldSet.Builder unknownFields = null;
  21993. uint tag;
  21994. string field_name;
  21995. while (input.ReadTag(out tag, out field_name)) {
  21996. if(tag == 0 && field_name != null) {
  21997. int field_ordinal = global::System.Array.BinarySearch(_testOneof2FieldNames, field_name, global::System.StringComparer.Ordinal);
  21998. if(field_ordinal >= 0)
  21999. tag = _testOneof2FieldTags[field_ordinal];
  22000. else {
  22001. if (unknownFields == null) {
  22002. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  22003. }
  22004. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  22005. continue;
  22006. }
  22007. }
  22008. switch (tag) {
  22009. case 0: {
  22010. throw pb::InvalidProtocolBufferException.InvalidTag();
  22011. }
  22012. default: {
  22013. if (pb::WireFormat.IsEndGroupTag(tag)) {
  22014. if (unknownFields != null) {
  22015. this.UnknownFields = unknownFields.Build();
  22016. }
  22017. return this;
  22018. }
  22019. if (unknownFields == null) {
  22020. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  22021. }
  22022. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  22023. break;
  22024. }
  22025. case 8: {
  22026. result.hasFooInt = input.ReadInt32(ref result.fooInt_);
  22027. break;
  22028. }
  22029. case 18: {
  22030. result.hasFooString = input.ReadString(ref result.fooString_);
  22031. break;
  22032. }
  22033. case 26: {
  22034. result.hasFooCord = input.ReadString(ref result.fooCord_);
  22035. break;
  22036. }
  22037. case 34: {
  22038. result.hasFooStringPiece = input.ReadString(ref result.fooStringPiece_);
  22039. break;
  22040. }
  22041. case 42: {
  22042. result.hasFooBytes = input.ReadBytes(ref result.fooBytes_);
  22043. break;
  22044. }
  22045. case 48: {
  22046. object unknown;
  22047. if(input.ReadEnum(ref result.fooEnum_, out unknown)) {
  22048. result.hasFooEnum = true;
  22049. } else if(unknown is int) {
  22050. if (unknownFields == null) {
  22051. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  22052. }
  22053. unknownFields.MergeVarintField(6, (ulong)(int)unknown);
  22054. }
  22055. break;
  22056. }
  22057. case 58: {
  22058. global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.CreateBuilder();
  22059. if (result.hasFooMessage) {
  22060. subBuilder.MergeFrom(FooMessage);
  22061. }
  22062. input.ReadMessage(subBuilder, extensionRegistry);
  22063. FooMessage = subBuilder.BuildPartial();
  22064. break;
  22065. }
  22066. case 67: {
  22067. global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.CreateBuilder();
  22068. if (result.hasFooGroup) {
  22069. subBuilder.MergeFrom(FooGroup);
  22070. }
  22071. input.ReadGroup(8, subBuilder, extensionRegistry);
  22072. FooGroup = subBuilder.BuildPartial();
  22073. break;
  22074. }
  22075. case 90: {
  22076. global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.CreateBuilder();
  22077. if (result.hasFooLazyMessage) {
  22078. subBuilder.MergeFrom(FooLazyMessage);
  22079. }
  22080. input.ReadMessage(subBuilder, extensionRegistry);
  22081. FooLazyMessage = subBuilder.BuildPartial();
  22082. break;
  22083. }
  22084. case 96: {
  22085. result.hasBarInt = input.ReadInt32(ref result.barInt_);
  22086. break;
  22087. }
  22088. case 106: {
  22089. result.hasBarString = input.ReadString(ref result.barString_);
  22090. break;
  22091. }
  22092. case 114: {
  22093. result.hasBarCord = input.ReadString(ref result.barCord_);
  22094. break;
  22095. }
  22096. case 122: {
  22097. result.hasBarStringPiece = input.ReadString(ref result.barStringPiece_);
  22098. break;
  22099. }
  22100. case 130: {
  22101. result.hasBarBytes = input.ReadBytes(ref result.barBytes_);
  22102. break;
  22103. }
  22104. case 136: {
  22105. object unknown;
  22106. if(input.ReadEnum(ref result.barEnum_, out unknown)) {
  22107. result.hasBarEnum = true;
  22108. } else if(unknown is int) {
  22109. if (unknownFields == null) {
  22110. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  22111. }
  22112. unknownFields.MergeVarintField(17, (ulong)(int)unknown);
  22113. }
  22114. break;
  22115. }
  22116. case 144: {
  22117. result.hasBazInt = input.ReadInt32(ref result.bazInt_);
  22118. break;
  22119. }
  22120. case 154: {
  22121. result.hasBazString = input.ReadString(ref result.bazString_);
  22122. break;
  22123. }
  22124. }
  22125. }
  22126. if (unknownFields != null) {
  22127. this.UnknownFields = unknownFields.Build();
  22128. }
  22129. return this;
  22130. }
  22131. public bool HasFooInt {
  22132. get { return result.hasFooInt; }
  22133. }
  22134. public int FooInt {
  22135. get { return result.FooInt; }
  22136. set { SetFooInt(value); }
  22137. }
  22138. public Builder SetFooInt(int value) {
  22139. PrepareBuilder();
  22140. result.hasFooInt = true;
  22141. result.fooInt_ = value;
  22142. return this;
  22143. }
  22144. public Builder ClearFooInt() {
  22145. PrepareBuilder();
  22146. result.hasFooInt = false;
  22147. result.fooInt_ = 0;
  22148. return this;
  22149. }
  22150. public bool HasFooString {
  22151. get { return result.hasFooString; }
  22152. }
  22153. public string FooString {
  22154. get { return result.FooString; }
  22155. set { SetFooString(value); }
  22156. }
  22157. public Builder SetFooString(string value) {
  22158. pb::ThrowHelper.ThrowIfNull(value, "value");
  22159. PrepareBuilder();
  22160. result.hasFooString = true;
  22161. result.fooString_ = value;
  22162. return this;
  22163. }
  22164. public Builder ClearFooString() {
  22165. PrepareBuilder();
  22166. result.hasFooString = false;
  22167. result.fooString_ = "";
  22168. return this;
  22169. }
  22170. public bool HasFooCord {
  22171. get { return result.hasFooCord; }
  22172. }
  22173. public string FooCord {
  22174. get { return result.FooCord; }
  22175. set { SetFooCord(value); }
  22176. }
  22177. public Builder SetFooCord(string value) {
  22178. pb::ThrowHelper.ThrowIfNull(value, "value");
  22179. PrepareBuilder();
  22180. result.hasFooCord = true;
  22181. result.fooCord_ = value;
  22182. return this;
  22183. }
  22184. public Builder ClearFooCord() {
  22185. PrepareBuilder();
  22186. result.hasFooCord = false;
  22187. result.fooCord_ = "";
  22188. return this;
  22189. }
  22190. public bool HasFooStringPiece {
  22191. get { return result.hasFooStringPiece; }
  22192. }
  22193. public string FooStringPiece {
  22194. get { return result.FooStringPiece; }
  22195. set { SetFooStringPiece(value); }
  22196. }
  22197. public Builder SetFooStringPiece(string value) {
  22198. pb::ThrowHelper.ThrowIfNull(value, "value");
  22199. PrepareBuilder();
  22200. result.hasFooStringPiece = true;
  22201. result.fooStringPiece_ = value;
  22202. return this;
  22203. }
  22204. public Builder ClearFooStringPiece() {
  22205. PrepareBuilder();
  22206. result.hasFooStringPiece = false;
  22207. result.fooStringPiece_ = "";
  22208. return this;
  22209. }
  22210. public bool HasFooBytes {
  22211. get { return result.hasFooBytes; }
  22212. }
  22213. public pb::ByteString FooBytes {
  22214. get { return result.FooBytes; }
  22215. set { SetFooBytes(value); }
  22216. }
  22217. public Builder SetFooBytes(pb::ByteString value) {
  22218. pb::ThrowHelper.ThrowIfNull(value, "value");
  22219. PrepareBuilder();
  22220. result.hasFooBytes = true;
  22221. result.fooBytes_ = value;
  22222. return this;
  22223. }
  22224. public Builder ClearFooBytes() {
  22225. PrepareBuilder();
  22226. result.hasFooBytes = false;
  22227. result.fooBytes_ = pb::ByteString.Empty;
  22228. return this;
  22229. }
  22230. public bool HasFooEnum {
  22231. get { return result.hasFooEnum; }
  22232. }
  22233. public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum FooEnum {
  22234. get { return result.FooEnum; }
  22235. set { SetFooEnum(value); }
  22236. }
  22237. public Builder SetFooEnum(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum value) {
  22238. PrepareBuilder();
  22239. result.hasFooEnum = true;
  22240. result.fooEnum_ = value;
  22241. return this;
  22242. }
  22243. public Builder ClearFooEnum() {
  22244. PrepareBuilder();
  22245. result.hasFooEnum = false;
  22246. result.fooEnum_ = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum.FOO;
  22247. return this;
  22248. }
  22249. public bool HasFooMessage {
  22250. get { return result.hasFooMessage; }
  22251. }
  22252. public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage FooMessage {
  22253. get { return result.FooMessage; }
  22254. set { SetFooMessage(value); }
  22255. }
  22256. public Builder SetFooMessage(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage value) {
  22257. pb::ThrowHelper.ThrowIfNull(value, "value");
  22258. PrepareBuilder();
  22259. result.hasFooMessage = true;
  22260. result.fooMessage_ = value;
  22261. return this;
  22262. }
  22263. public Builder SetFooMessage(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.Builder builderForValue) {
  22264. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  22265. PrepareBuilder();
  22266. result.hasFooMessage = true;
  22267. result.fooMessage_ = builderForValue.Build();
  22268. return this;
  22269. }
  22270. public Builder MergeFooMessage(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage value) {
  22271. pb::ThrowHelper.ThrowIfNull(value, "value");
  22272. PrepareBuilder();
  22273. if (result.hasFooMessage &&
  22274. result.fooMessage_ != global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.DefaultInstance) {
  22275. result.fooMessage_ = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.CreateBuilder(result.fooMessage_).MergeFrom(value).BuildPartial();
  22276. } else {
  22277. result.fooMessage_ = value;
  22278. }
  22279. result.hasFooMessage = true;
  22280. return this;
  22281. }
  22282. public Builder ClearFooMessage() {
  22283. PrepareBuilder();
  22284. result.hasFooMessage = false;
  22285. result.fooMessage_ = null;
  22286. return this;
  22287. }
  22288. public bool HasFooGroup {
  22289. get { return result.hasFooGroup; }
  22290. }
  22291. public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup FooGroup {
  22292. get { return result.FooGroup; }
  22293. set { SetFooGroup(value); }
  22294. }
  22295. public Builder SetFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup value) {
  22296. pb::ThrowHelper.ThrowIfNull(value, "value");
  22297. PrepareBuilder();
  22298. result.hasFooGroup = true;
  22299. result.fooGroup_ = value;
  22300. return this;
  22301. }
  22302. public Builder SetFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.Builder builderForValue) {
  22303. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  22304. PrepareBuilder();
  22305. result.hasFooGroup = true;
  22306. result.fooGroup_ = builderForValue.Build();
  22307. return this;
  22308. }
  22309. public Builder MergeFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup value) {
  22310. pb::ThrowHelper.ThrowIfNull(value, "value");
  22311. PrepareBuilder();
  22312. if (result.hasFooGroup &&
  22313. result.fooGroup_ != global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.DefaultInstance) {
  22314. result.fooGroup_ = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.CreateBuilder(result.fooGroup_).MergeFrom(value).BuildPartial();
  22315. } else {
  22316. result.fooGroup_ = value;
  22317. }
  22318. result.hasFooGroup = true;
  22319. return this;
  22320. }
  22321. public Builder ClearFooGroup() {
  22322. PrepareBuilder();
  22323. result.hasFooGroup = false;
  22324. result.fooGroup_ = null;
  22325. return this;
  22326. }
  22327. public bool HasFooLazyMessage {
  22328. get { return result.hasFooLazyMessage; }
  22329. }
  22330. public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage FooLazyMessage {
  22331. get { return result.FooLazyMessage; }
  22332. set { SetFooLazyMessage(value); }
  22333. }
  22334. public Builder SetFooLazyMessage(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage value) {
  22335. pb::ThrowHelper.ThrowIfNull(value, "value");
  22336. PrepareBuilder();
  22337. result.hasFooLazyMessage = true;
  22338. result.fooLazyMessage_ = value;
  22339. return this;
  22340. }
  22341. public Builder SetFooLazyMessage(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.Builder builderForValue) {
  22342. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  22343. PrepareBuilder();
  22344. result.hasFooLazyMessage = true;
  22345. result.fooLazyMessage_ = builderForValue.Build();
  22346. return this;
  22347. }
  22348. public Builder MergeFooLazyMessage(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage value) {
  22349. pb::ThrowHelper.ThrowIfNull(value, "value");
  22350. PrepareBuilder();
  22351. if (result.hasFooLazyMessage &&
  22352. result.fooLazyMessage_ != global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.DefaultInstance) {
  22353. result.fooLazyMessage_ = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.CreateBuilder(result.fooLazyMessage_).MergeFrom(value).BuildPartial();
  22354. } else {
  22355. result.fooLazyMessage_ = value;
  22356. }
  22357. result.hasFooLazyMessage = true;
  22358. return this;
  22359. }
  22360. public Builder ClearFooLazyMessage() {
  22361. PrepareBuilder();
  22362. result.hasFooLazyMessage = false;
  22363. result.fooLazyMessage_ = null;
  22364. return this;
  22365. }
  22366. public bool HasBarInt {
  22367. get { return result.hasBarInt; }
  22368. }
  22369. public int BarInt {
  22370. get { return result.BarInt; }
  22371. set { SetBarInt(value); }
  22372. }
  22373. public Builder SetBarInt(int value) {
  22374. PrepareBuilder();
  22375. result.hasBarInt = true;
  22376. result.barInt_ = value;
  22377. return this;
  22378. }
  22379. public Builder ClearBarInt() {
  22380. PrepareBuilder();
  22381. result.hasBarInt = false;
  22382. result.barInt_ = 5;
  22383. return this;
  22384. }
  22385. public bool HasBarString {
  22386. get { return result.hasBarString; }
  22387. }
  22388. public string BarString {
  22389. get { return result.BarString; }
  22390. set { SetBarString(value); }
  22391. }
  22392. public Builder SetBarString(string value) {
  22393. pb::ThrowHelper.ThrowIfNull(value, "value");
  22394. PrepareBuilder();
  22395. result.hasBarString = true;
  22396. result.barString_ = value;
  22397. return this;
  22398. }
  22399. public Builder ClearBarString() {
  22400. PrepareBuilder();
  22401. result.hasBarString = false;
  22402. result.barString_ = "STRING";
  22403. return this;
  22404. }
  22405. public bool HasBarCord {
  22406. get { return result.hasBarCord; }
  22407. }
  22408. public string BarCord {
  22409. get { return result.BarCord; }
  22410. set { SetBarCord(value); }
  22411. }
  22412. public Builder SetBarCord(string value) {
  22413. pb::ThrowHelper.ThrowIfNull(value, "value");
  22414. PrepareBuilder();
  22415. result.hasBarCord = true;
  22416. result.barCord_ = value;
  22417. return this;
  22418. }
  22419. public Builder ClearBarCord() {
  22420. PrepareBuilder();
  22421. result.hasBarCord = false;
  22422. result.barCord_ = "CORD";
  22423. return this;
  22424. }
  22425. public bool HasBarStringPiece {
  22426. get { return result.hasBarStringPiece; }
  22427. }
  22428. public string BarStringPiece {
  22429. get { return result.BarStringPiece; }
  22430. set { SetBarStringPiece(value); }
  22431. }
  22432. public Builder SetBarStringPiece(string value) {
  22433. pb::ThrowHelper.ThrowIfNull(value, "value");
  22434. PrepareBuilder();
  22435. result.hasBarStringPiece = true;
  22436. result.barStringPiece_ = value;
  22437. return this;
  22438. }
  22439. public Builder ClearBarStringPiece() {
  22440. PrepareBuilder();
  22441. result.hasBarStringPiece = false;
  22442. result.barStringPiece_ = "SPIECE";
  22443. return this;
  22444. }
  22445. public bool HasBarBytes {
  22446. get { return result.hasBarBytes; }
  22447. }
  22448. public pb::ByteString BarBytes {
  22449. get { return result.BarBytes; }
  22450. set { SetBarBytes(value); }
  22451. }
  22452. public Builder SetBarBytes(pb::ByteString value) {
  22453. pb::ThrowHelper.ThrowIfNull(value, "value");
  22454. PrepareBuilder();
  22455. result.hasBarBytes = true;
  22456. result.barBytes_ = value;
  22457. return this;
  22458. }
  22459. public Builder ClearBarBytes() {
  22460. PrepareBuilder();
  22461. result.hasBarBytes = false;
  22462. result.barBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestOneof2.Descriptor.Fields[13].DefaultValue;
  22463. return this;
  22464. }
  22465. public bool HasBarEnum {
  22466. get { return result.hasBarEnum; }
  22467. }
  22468. public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum BarEnum {
  22469. get { return result.BarEnum; }
  22470. set { SetBarEnum(value); }
  22471. }
  22472. public Builder SetBarEnum(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum value) {
  22473. PrepareBuilder();
  22474. result.hasBarEnum = true;
  22475. result.barEnum_ = value;
  22476. return this;
  22477. }
  22478. public Builder ClearBarEnum() {
  22479. PrepareBuilder();
  22480. result.hasBarEnum = false;
  22481. result.barEnum_ = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum.BAR;
  22482. return this;
  22483. }
  22484. public bool HasBazInt {
  22485. get { return result.hasBazInt; }
  22486. }
  22487. public int BazInt {
  22488. get { return result.BazInt; }
  22489. set { SetBazInt(value); }
  22490. }
  22491. public Builder SetBazInt(int value) {
  22492. PrepareBuilder();
  22493. result.hasBazInt = true;
  22494. result.bazInt_ = value;
  22495. return this;
  22496. }
  22497. public Builder ClearBazInt() {
  22498. PrepareBuilder();
  22499. result.hasBazInt = false;
  22500. result.bazInt_ = 0;
  22501. return this;
  22502. }
  22503. public bool HasBazString {
  22504. get { return result.hasBazString; }
  22505. }
  22506. public string BazString {
  22507. get { return result.BazString; }
  22508. set { SetBazString(value); }
  22509. }
  22510. public Builder SetBazString(string value) {
  22511. pb::ThrowHelper.ThrowIfNull(value, "value");
  22512. PrepareBuilder();
  22513. result.hasBazString = true;
  22514. result.bazString_ = value;
  22515. return this;
  22516. }
  22517. public Builder ClearBazString() {
  22518. PrepareBuilder();
  22519. result.hasBazString = false;
  22520. result.bazString_ = "BAZ";
  22521. return this;
  22522. }
  22523. }
  22524. static TestOneof2() {
  22525. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  22526. }
  22527. }
  22528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  22529. public sealed partial class TestRequiredOneof : pb::GeneratedMessage<TestRequiredOneof, TestRequiredOneof.Builder> {
  22530. private TestRequiredOneof() { }
  22531. private static readonly TestRequiredOneof defaultInstance = new TestRequiredOneof().MakeReadOnly();
  22532. private static readonly string[] _testRequiredOneofFieldNames = new string[] { "foo_int", "foo_message", "foo_string" };
  22533. private static readonly uint[] _testRequiredOneofFieldTags = new uint[] { 8, 26, 18 };
  22534. public static TestRequiredOneof DefaultInstance {
  22535. get { return defaultInstance; }
  22536. }
  22537. public override TestRequiredOneof DefaultInstanceForType {
  22538. get { return DefaultInstance; }
  22539. }
  22540. protected override TestRequiredOneof ThisMessage {
  22541. get { return this; }
  22542. }
  22543. public static pbd::MessageDescriptor Descriptor {
  22544. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRequiredOneof__Descriptor; }
  22545. }
  22546. protected override pb::FieldAccess.FieldAccessorTable<TestRequiredOneof, TestRequiredOneof.Builder> InternalFieldAccessors {
  22547. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRequiredOneof__FieldAccessorTable; }
  22548. }
  22549. #region Nested types
  22550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  22551. public static partial class Types {
  22552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  22553. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  22554. private NestedMessage() { }
  22555. private static readonly NestedMessage defaultInstance = new NestedMessage().MakeReadOnly();
  22556. private static readonly string[] _nestedMessageFieldNames = new string[] { "required_double" };
  22557. private static readonly uint[] _nestedMessageFieldTags = new uint[] { 9 };
  22558. public static NestedMessage DefaultInstance {
  22559. get { return defaultInstance; }
  22560. }
  22561. public override NestedMessage DefaultInstanceForType {
  22562. get { return DefaultInstance; }
  22563. }
  22564. protected override NestedMessage ThisMessage {
  22565. get { return this; }
  22566. }
  22567. public static pbd::MessageDescriptor Descriptor {
  22568. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRequiredOneof_NestedMessage__Descriptor; }
  22569. }
  22570. protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
  22571. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRequiredOneof_NestedMessage__FieldAccessorTable; }
  22572. }
  22573. public const int RequiredDoubleFieldNumber = 1;
  22574. private bool hasRequiredDouble;
  22575. private double requiredDouble_;
  22576. public bool HasRequiredDouble {
  22577. get { return hasRequiredDouble; }
  22578. }
  22579. public double RequiredDouble {
  22580. get { return requiredDouble_; }
  22581. }
  22582. public override bool IsInitialized {
  22583. get {
  22584. if (!hasRequiredDouble) return false;
  22585. return true;
  22586. }
  22587. }
  22588. public override void WriteTo(pb::ICodedOutputStream output) {
  22589. CalcSerializedSize();
  22590. string[] field_names = _nestedMessageFieldNames;
  22591. if (hasRequiredDouble) {
  22592. output.WriteDouble(1, field_names[0], RequiredDouble);
  22593. }
  22594. UnknownFields.WriteTo(output);
  22595. }
  22596. private int memoizedSerializedSize = -1;
  22597. public override int SerializedSize {
  22598. get {
  22599. int size = memoizedSerializedSize;
  22600. if (size != -1) return size;
  22601. return CalcSerializedSize();
  22602. }
  22603. }
  22604. private int CalcSerializedSize() {
  22605. int size = memoizedSerializedSize;
  22606. if (size != -1) return size;
  22607. size = 0;
  22608. if (hasRequiredDouble) {
  22609. size += pb::CodedOutputStream.ComputeDoubleSize(1, RequiredDouble);
  22610. }
  22611. size += UnknownFields.SerializedSize;
  22612. memoizedSerializedSize = size;
  22613. return size;
  22614. }
  22615. public static NestedMessage ParseFrom(pb::ByteString data) {
  22616. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  22617. }
  22618. public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  22619. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  22620. }
  22621. public static NestedMessage ParseFrom(byte[] data) {
  22622. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  22623. }
  22624. public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  22625. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  22626. }
  22627. public static NestedMessage ParseFrom(global::System.IO.Stream input) {
  22628. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  22629. }
  22630. public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  22631. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  22632. }
  22633. public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
  22634. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  22635. }
  22636. public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  22637. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  22638. }
  22639. public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
  22640. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  22641. }
  22642. public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  22643. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  22644. }
  22645. private NestedMessage MakeReadOnly() {
  22646. return this;
  22647. }
  22648. public static Builder CreateBuilder() { return new Builder(); }
  22649. public override Builder ToBuilder() { return CreateBuilder(this); }
  22650. public override Builder CreateBuilderForType() { return new Builder(); }
  22651. public static Builder CreateBuilder(NestedMessage prototype) {
  22652. return new Builder(prototype);
  22653. }
  22654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  22655. public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> {
  22656. protected override Builder ThisBuilder {
  22657. get { return this; }
  22658. }
  22659. public Builder() {
  22660. result = DefaultInstance;
  22661. resultIsReadOnly = true;
  22662. }
  22663. internal Builder(NestedMessage cloneFrom) {
  22664. result = cloneFrom;
  22665. resultIsReadOnly = true;
  22666. }
  22667. private bool resultIsReadOnly;
  22668. private NestedMessage result;
  22669. private NestedMessage PrepareBuilder() {
  22670. if (resultIsReadOnly) {
  22671. NestedMessage original = result;
  22672. result = new NestedMessage();
  22673. resultIsReadOnly = false;
  22674. MergeFrom(original);
  22675. }
  22676. return result;
  22677. }
  22678. public override bool IsInitialized {
  22679. get { return result.IsInitialized; }
  22680. }
  22681. protected override NestedMessage MessageBeingBuilt {
  22682. get { return PrepareBuilder(); }
  22683. }
  22684. public override Builder Clear() {
  22685. result = DefaultInstance;
  22686. resultIsReadOnly = true;
  22687. return this;
  22688. }
  22689. public override Builder Clone() {
  22690. if (resultIsReadOnly) {
  22691. return new Builder(result);
  22692. } else {
  22693. return new Builder().MergeFrom(result);
  22694. }
  22695. }
  22696. public override pbd::MessageDescriptor DescriptorForType {
  22697. get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.Descriptor; }
  22698. }
  22699. public override NestedMessage DefaultInstanceForType {
  22700. get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.DefaultInstance; }
  22701. }
  22702. public override NestedMessage BuildPartial() {
  22703. if (resultIsReadOnly) {
  22704. return result;
  22705. }
  22706. resultIsReadOnly = true;
  22707. return result.MakeReadOnly();
  22708. }
  22709. public override Builder MergeFrom(pb::IMessage other) {
  22710. if (other is NestedMessage) {
  22711. return MergeFrom((NestedMessage) other);
  22712. } else {
  22713. base.MergeFrom(other);
  22714. return this;
  22715. }
  22716. }
  22717. public override Builder MergeFrom(NestedMessage other) {
  22718. if (other == global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.DefaultInstance) return this;
  22719. PrepareBuilder();
  22720. if (other.HasRequiredDouble) {
  22721. RequiredDouble = other.RequiredDouble;
  22722. }
  22723. this.MergeUnknownFields(other.UnknownFields);
  22724. return this;
  22725. }
  22726. public override Builder MergeFrom(pb::ICodedInputStream input) {
  22727. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  22728. }
  22729. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  22730. PrepareBuilder();
  22731. pb::UnknownFieldSet.Builder unknownFields = null;
  22732. uint tag;
  22733. string field_name;
  22734. while (input.ReadTag(out tag, out field_name)) {
  22735. if(tag == 0 && field_name != null) {
  22736. int field_ordinal = global::System.Array.BinarySearch(_nestedMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  22737. if(field_ordinal >= 0)
  22738. tag = _nestedMessageFieldTags[field_ordinal];
  22739. else {
  22740. if (unknownFields == null) {
  22741. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  22742. }
  22743. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  22744. continue;
  22745. }
  22746. }
  22747. switch (tag) {
  22748. case 0: {
  22749. throw pb::InvalidProtocolBufferException.InvalidTag();
  22750. }
  22751. default: {
  22752. if (pb::WireFormat.IsEndGroupTag(tag)) {
  22753. if (unknownFields != null) {
  22754. this.UnknownFields = unknownFields.Build();
  22755. }
  22756. return this;
  22757. }
  22758. if (unknownFields == null) {
  22759. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  22760. }
  22761. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  22762. break;
  22763. }
  22764. case 9: {
  22765. result.hasRequiredDouble = input.ReadDouble(ref result.requiredDouble_);
  22766. break;
  22767. }
  22768. }
  22769. }
  22770. if (unknownFields != null) {
  22771. this.UnknownFields = unknownFields.Build();
  22772. }
  22773. return this;
  22774. }
  22775. public bool HasRequiredDouble {
  22776. get { return result.hasRequiredDouble; }
  22777. }
  22778. public double RequiredDouble {
  22779. get { return result.RequiredDouble; }
  22780. set { SetRequiredDouble(value); }
  22781. }
  22782. public Builder SetRequiredDouble(double value) {
  22783. PrepareBuilder();
  22784. result.hasRequiredDouble = true;
  22785. result.requiredDouble_ = value;
  22786. return this;
  22787. }
  22788. public Builder ClearRequiredDouble() {
  22789. PrepareBuilder();
  22790. result.hasRequiredDouble = false;
  22791. result.requiredDouble_ = 0D;
  22792. return this;
  22793. }
  22794. }
  22795. static NestedMessage() {
  22796. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  22797. }
  22798. }
  22799. }
  22800. #endregion
  22801. public const int FooIntFieldNumber = 1;
  22802. private bool hasFooInt;
  22803. private int fooInt_;
  22804. public bool HasFooInt {
  22805. get { return hasFooInt; }
  22806. }
  22807. public int FooInt {
  22808. get { return fooInt_; }
  22809. }
  22810. public const int FooStringFieldNumber = 2;
  22811. private bool hasFooString;
  22812. private string fooString_ = "";
  22813. public bool HasFooString {
  22814. get { return hasFooString; }
  22815. }
  22816. public string FooString {
  22817. get { return fooString_; }
  22818. }
  22819. public const int FooMessageFieldNumber = 3;
  22820. private bool hasFooMessage;
  22821. private global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage fooMessage_;
  22822. public bool HasFooMessage {
  22823. get { return hasFooMessage; }
  22824. }
  22825. public global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage FooMessage {
  22826. get { return fooMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.DefaultInstance; }
  22827. }
  22828. public override bool IsInitialized {
  22829. get {
  22830. if (HasFooMessage) {
  22831. if (!FooMessage.IsInitialized) return false;
  22832. }
  22833. return true;
  22834. }
  22835. }
  22836. public override void WriteTo(pb::ICodedOutputStream output) {
  22837. CalcSerializedSize();
  22838. string[] field_names = _testRequiredOneofFieldNames;
  22839. if (hasFooInt) {
  22840. output.WriteInt32(1, field_names[0], FooInt);
  22841. }
  22842. if (hasFooString) {
  22843. output.WriteString(2, field_names[2], FooString);
  22844. }
  22845. if (hasFooMessage) {
  22846. output.WriteMessage(3, field_names[1], FooMessage);
  22847. }
  22848. UnknownFields.WriteTo(output);
  22849. }
  22850. private int memoizedSerializedSize = -1;
  22851. public override int SerializedSize {
  22852. get {
  22853. int size = memoizedSerializedSize;
  22854. if (size != -1) return size;
  22855. return CalcSerializedSize();
  22856. }
  22857. }
  22858. private int CalcSerializedSize() {
  22859. int size = memoizedSerializedSize;
  22860. if (size != -1) return size;
  22861. size = 0;
  22862. if (hasFooInt) {
  22863. size += pb::CodedOutputStream.ComputeInt32Size(1, FooInt);
  22864. }
  22865. if (hasFooString) {
  22866. size += pb::CodedOutputStream.ComputeStringSize(2, FooString);
  22867. }
  22868. if (hasFooMessage) {
  22869. size += pb::CodedOutputStream.ComputeMessageSize(3, FooMessage);
  22870. }
  22871. size += UnknownFields.SerializedSize;
  22872. memoizedSerializedSize = size;
  22873. return size;
  22874. }
  22875. public static TestRequiredOneof ParseFrom(pb::ByteString data) {
  22876. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  22877. }
  22878. public static TestRequiredOneof ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  22879. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  22880. }
  22881. public static TestRequiredOneof ParseFrom(byte[] data) {
  22882. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  22883. }
  22884. public static TestRequiredOneof ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  22885. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  22886. }
  22887. public static TestRequiredOneof ParseFrom(global::System.IO.Stream input) {
  22888. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  22889. }
  22890. public static TestRequiredOneof ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  22891. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  22892. }
  22893. public static TestRequiredOneof ParseDelimitedFrom(global::System.IO.Stream input) {
  22894. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  22895. }
  22896. public static TestRequiredOneof ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  22897. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  22898. }
  22899. public static TestRequiredOneof ParseFrom(pb::ICodedInputStream input) {
  22900. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  22901. }
  22902. public static TestRequiredOneof ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  22903. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  22904. }
  22905. private TestRequiredOneof MakeReadOnly() {
  22906. return this;
  22907. }
  22908. public static Builder CreateBuilder() { return new Builder(); }
  22909. public override Builder ToBuilder() { return CreateBuilder(this); }
  22910. public override Builder CreateBuilderForType() { return new Builder(); }
  22911. public static Builder CreateBuilder(TestRequiredOneof prototype) {
  22912. return new Builder(prototype);
  22913. }
  22914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  22915. public sealed partial class Builder : pb::GeneratedBuilder<TestRequiredOneof, Builder> {
  22916. protected override Builder ThisBuilder {
  22917. get { return this; }
  22918. }
  22919. public Builder() {
  22920. result = DefaultInstance;
  22921. resultIsReadOnly = true;
  22922. }
  22923. internal Builder(TestRequiredOneof cloneFrom) {
  22924. result = cloneFrom;
  22925. resultIsReadOnly = true;
  22926. }
  22927. private bool resultIsReadOnly;
  22928. private TestRequiredOneof result;
  22929. private TestRequiredOneof PrepareBuilder() {
  22930. if (resultIsReadOnly) {
  22931. TestRequiredOneof original = result;
  22932. result = new TestRequiredOneof();
  22933. resultIsReadOnly = false;
  22934. MergeFrom(original);
  22935. }
  22936. return result;
  22937. }
  22938. public override bool IsInitialized {
  22939. get { return result.IsInitialized; }
  22940. }
  22941. protected override TestRequiredOneof MessageBeingBuilt {
  22942. get { return PrepareBuilder(); }
  22943. }
  22944. public override Builder Clear() {
  22945. result = DefaultInstance;
  22946. resultIsReadOnly = true;
  22947. return this;
  22948. }
  22949. public override Builder Clone() {
  22950. if (resultIsReadOnly) {
  22951. return new Builder(result);
  22952. } else {
  22953. return new Builder().MergeFrom(result);
  22954. }
  22955. }
  22956. public override pbd::MessageDescriptor DescriptorForType {
  22957. get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Descriptor; }
  22958. }
  22959. public override TestRequiredOneof DefaultInstanceForType {
  22960. get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.DefaultInstance; }
  22961. }
  22962. public override TestRequiredOneof BuildPartial() {
  22963. if (resultIsReadOnly) {
  22964. return result;
  22965. }
  22966. resultIsReadOnly = true;
  22967. return result.MakeReadOnly();
  22968. }
  22969. public override Builder MergeFrom(pb::IMessage other) {
  22970. if (other is TestRequiredOneof) {
  22971. return MergeFrom((TestRequiredOneof) other);
  22972. } else {
  22973. base.MergeFrom(other);
  22974. return this;
  22975. }
  22976. }
  22977. public override Builder MergeFrom(TestRequiredOneof other) {
  22978. if (other == global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.DefaultInstance) return this;
  22979. PrepareBuilder();
  22980. if (other.HasFooInt) {
  22981. FooInt = other.FooInt;
  22982. }
  22983. if (other.HasFooString) {
  22984. FooString = other.FooString;
  22985. }
  22986. if (other.HasFooMessage) {
  22987. MergeFooMessage(other.FooMessage);
  22988. }
  22989. this.MergeUnknownFields(other.UnknownFields);
  22990. return this;
  22991. }
  22992. public override Builder MergeFrom(pb::ICodedInputStream input) {
  22993. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  22994. }
  22995. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  22996. PrepareBuilder();
  22997. pb::UnknownFieldSet.Builder unknownFields = null;
  22998. uint tag;
  22999. string field_name;
  23000. while (input.ReadTag(out tag, out field_name)) {
  23001. if(tag == 0 && field_name != null) {
  23002. int field_ordinal = global::System.Array.BinarySearch(_testRequiredOneofFieldNames, field_name, global::System.StringComparer.Ordinal);
  23003. if(field_ordinal >= 0)
  23004. tag = _testRequiredOneofFieldTags[field_ordinal];
  23005. else {
  23006. if (unknownFields == null) {
  23007. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  23008. }
  23009. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  23010. continue;
  23011. }
  23012. }
  23013. switch (tag) {
  23014. case 0: {
  23015. throw pb::InvalidProtocolBufferException.InvalidTag();
  23016. }
  23017. default: {
  23018. if (pb::WireFormat.IsEndGroupTag(tag)) {
  23019. if (unknownFields != null) {
  23020. this.UnknownFields = unknownFields.Build();
  23021. }
  23022. return this;
  23023. }
  23024. if (unknownFields == null) {
  23025. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  23026. }
  23027. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  23028. break;
  23029. }
  23030. case 8: {
  23031. result.hasFooInt = input.ReadInt32(ref result.fooInt_);
  23032. break;
  23033. }
  23034. case 18: {
  23035. result.hasFooString = input.ReadString(ref result.fooString_);
  23036. break;
  23037. }
  23038. case 26: {
  23039. global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.CreateBuilder();
  23040. if (result.hasFooMessage) {
  23041. subBuilder.MergeFrom(FooMessage);
  23042. }
  23043. input.ReadMessage(subBuilder, extensionRegistry);
  23044. FooMessage = subBuilder.BuildPartial();
  23045. break;
  23046. }
  23047. }
  23048. }
  23049. if (unknownFields != null) {
  23050. this.UnknownFields = unknownFields.Build();
  23051. }
  23052. return this;
  23053. }
  23054. public bool HasFooInt {
  23055. get { return result.hasFooInt; }
  23056. }
  23057. public int FooInt {
  23058. get { return result.FooInt; }
  23059. set { SetFooInt(value); }
  23060. }
  23061. public Builder SetFooInt(int value) {
  23062. PrepareBuilder();
  23063. result.hasFooInt = true;
  23064. result.fooInt_ = value;
  23065. return this;
  23066. }
  23067. public Builder ClearFooInt() {
  23068. PrepareBuilder();
  23069. result.hasFooInt = false;
  23070. result.fooInt_ = 0;
  23071. return this;
  23072. }
  23073. public bool HasFooString {
  23074. get { return result.hasFooString; }
  23075. }
  23076. public string FooString {
  23077. get { return result.FooString; }
  23078. set { SetFooString(value); }
  23079. }
  23080. public Builder SetFooString(string value) {
  23081. pb::ThrowHelper.ThrowIfNull(value, "value");
  23082. PrepareBuilder();
  23083. result.hasFooString = true;
  23084. result.fooString_ = value;
  23085. return this;
  23086. }
  23087. public Builder ClearFooString() {
  23088. PrepareBuilder();
  23089. result.hasFooString = false;
  23090. result.fooString_ = "";
  23091. return this;
  23092. }
  23093. public bool HasFooMessage {
  23094. get { return result.hasFooMessage; }
  23095. }
  23096. public global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage FooMessage {
  23097. get { return result.FooMessage; }
  23098. set { SetFooMessage(value); }
  23099. }
  23100. public Builder SetFooMessage(global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage value) {
  23101. pb::ThrowHelper.ThrowIfNull(value, "value");
  23102. PrepareBuilder();
  23103. result.hasFooMessage = true;
  23104. result.fooMessage_ = value;
  23105. return this;
  23106. }
  23107. public Builder SetFooMessage(global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.Builder builderForValue) {
  23108. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  23109. PrepareBuilder();
  23110. result.hasFooMessage = true;
  23111. result.fooMessage_ = builderForValue.Build();
  23112. return this;
  23113. }
  23114. public Builder MergeFooMessage(global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage value) {
  23115. pb::ThrowHelper.ThrowIfNull(value, "value");
  23116. PrepareBuilder();
  23117. if (result.hasFooMessage &&
  23118. result.fooMessage_ != global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.DefaultInstance) {
  23119. result.fooMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.CreateBuilder(result.fooMessage_).MergeFrom(value).BuildPartial();
  23120. } else {
  23121. result.fooMessage_ = value;
  23122. }
  23123. result.hasFooMessage = true;
  23124. return this;
  23125. }
  23126. public Builder ClearFooMessage() {
  23127. PrepareBuilder();
  23128. result.hasFooMessage = false;
  23129. result.fooMessage_ = null;
  23130. return this;
  23131. }
  23132. }
  23133. static TestRequiredOneof() {
  23134. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  23135. }
  23136. }
  23137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  23138. public sealed partial class TestPackedTypes : pb::GeneratedMessage<TestPackedTypes, TestPackedTypes.Builder> {
  23139. private TestPackedTypes() { }
  23140. private static readonly TestPackedTypes defaultInstance = new TestPackedTypes().MakeReadOnly();
  23141. private static readonly string[] _testPackedTypesFieldNames = new string[] { "packed_bool", "packed_double", "packed_enum", "packed_fixed32", "packed_fixed64", "packed_float", "packed_int32", "packed_int64", "packed_sfixed32", "packed_sfixed64", "packed_sint32", "packed_sint64", "packed_uint32", "packed_uint64" };
  23142. private static readonly uint[] _testPackedTypesFieldTags = new uint[] { 818, 810, 826, 770, 778, 802, 722, 730, 786, 794, 754, 762, 738, 746 };
  23143. public static TestPackedTypes DefaultInstance {
  23144. get { return defaultInstance; }
  23145. }
  23146. public override TestPackedTypes DefaultInstanceForType {
  23147. get { return DefaultInstance; }
  23148. }
  23149. protected override TestPackedTypes ThisMessage {
  23150. get { return this; }
  23151. }
  23152. public static pbd::MessageDescriptor Descriptor {
  23153. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestPackedTypes__Descriptor; }
  23154. }
  23155. protected override pb::FieldAccess.FieldAccessorTable<TestPackedTypes, TestPackedTypes.Builder> InternalFieldAccessors {
  23156. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable; }
  23157. }
  23158. public const int PackedInt32FieldNumber = 90;
  23159. private int packedInt32MemoizedSerializedSize;
  23160. private pbc::PopsicleList<int> packedInt32_ = new pbc::PopsicleList<int>();
  23161. public scg::IList<int> PackedInt32List {
  23162. get { return pbc::Lists.AsReadOnly(packedInt32_); }
  23163. }
  23164. public int PackedInt32Count {
  23165. get { return packedInt32_.Count; }
  23166. }
  23167. public int GetPackedInt32(int index) {
  23168. return packedInt32_[index];
  23169. }
  23170. public const int PackedInt64FieldNumber = 91;
  23171. private int packedInt64MemoizedSerializedSize;
  23172. private pbc::PopsicleList<long> packedInt64_ = new pbc::PopsicleList<long>();
  23173. public scg::IList<long> PackedInt64List {
  23174. get { return pbc::Lists.AsReadOnly(packedInt64_); }
  23175. }
  23176. public int PackedInt64Count {
  23177. get { return packedInt64_.Count; }
  23178. }
  23179. public long GetPackedInt64(int index) {
  23180. return packedInt64_[index];
  23181. }
  23182. public const int PackedUint32FieldNumber = 92;
  23183. private int packedUint32MemoizedSerializedSize;
  23184. private pbc::PopsicleList<uint> packedUint32_ = new pbc::PopsicleList<uint>();
  23185. [global::System.CLSCompliant(false)]
  23186. public scg::IList<uint> PackedUint32List {
  23187. get { return pbc::Lists.AsReadOnly(packedUint32_); }
  23188. }
  23189. public int PackedUint32Count {
  23190. get { return packedUint32_.Count; }
  23191. }
  23192. [global::System.CLSCompliant(false)]
  23193. public uint GetPackedUint32(int index) {
  23194. return packedUint32_[index];
  23195. }
  23196. public const int PackedUint64FieldNumber = 93;
  23197. private int packedUint64MemoizedSerializedSize;
  23198. private pbc::PopsicleList<ulong> packedUint64_ = new pbc::PopsicleList<ulong>();
  23199. [global::System.CLSCompliant(false)]
  23200. public scg::IList<ulong> PackedUint64List {
  23201. get { return pbc::Lists.AsReadOnly(packedUint64_); }
  23202. }
  23203. public int PackedUint64Count {
  23204. get { return packedUint64_.Count; }
  23205. }
  23206. [global::System.CLSCompliant(false)]
  23207. public ulong GetPackedUint64(int index) {
  23208. return packedUint64_[index];
  23209. }
  23210. public const int PackedSint32FieldNumber = 94;
  23211. private int packedSint32MemoizedSerializedSize;
  23212. private pbc::PopsicleList<int> packedSint32_ = new pbc::PopsicleList<int>();
  23213. public scg::IList<int> PackedSint32List {
  23214. get { return pbc::Lists.AsReadOnly(packedSint32_); }
  23215. }
  23216. public int PackedSint32Count {
  23217. get { return packedSint32_.Count; }
  23218. }
  23219. public int GetPackedSint32(int index) {
  23220. return packedSint32_[index];
  23221. }
  23222. public const int PackedSint64FieldNumber = 95;
  23223. private int packedSint64MemoizedSerializedSize;
  23224. private pbc::PopsicleList<long> packedSint64_ = new pbc::PopsicleList<long>();
  23225. public scg::IList<long> PackedSint64List {
  23226. get { return pbc::Lists.AsReadOnly(packedSint64_); }
  23227. }
  23228. public int PackedSint64Count {
  23229. get { return packedSint64_.Count; }
  23230. }
  23231. public long GetPackedSint64(int index) {
  23232. return packedSint64_[index];
  23233. }
  23234. public const int PackedFixed32FieldNumber = 96;
  23235. private int packedFixed32MemoizedSerializedSize;
  23236. private pbc::PopsicleList<uint> packedFixed32_ = new pbc::PopsicleList<uint>();
  23237. [global::System.CLSCompliant(false)]
  23238. public scg::IList<uint> PackedFixed32List {
  23239. get { return pbc::Lists.AsReadOnly(packedFixed32_); }
  23240. }
  23241. public int PackedFixed32Count {
  23242. get { return packedFixed32_.Count; }
  23243. }
  23244. [global::System.CLSCompliant(false)]
  23245. public uint GetPackedFixed32(int index) {
  23246. return packedFixed32_[index];
  23247. }
  23248. public const int PackedFixed64FieldNumber = 97;
  23249. private int packedFixed64MemoizedSerializedSize;
  23250. private pbc::PopsicleList<ulong> packedFixed64_ = new pbc::PopsicleList<ulong>();
  23251. [global::System.CLSCompliant(false)]
  23252. public scg::IList<ulong> PackedFixed64List {
  23253. get { return pbc::Lists.AsReadOnly(packedFixed64_); }
  23254. }
  23255. public int PackedFixed64Count {
  23256. get { return packedFixed64_.Count; }
  23257. }
  23258. [global::System.CLSCompliant(false)]
  23259. public ulong GetPackedFixed64(int index) {
  23260. return packedFixed64_[index];
  23261. }
  23262. public const int PackedSfixed32FieldNumber = 98;
  23263. private int packedSfixed32MemoizedSerializedSize;
  23264. private pbc::PopsicleList<int> packedSfixed32_ = new pbc::PopsicleList<int>();
  23265. public scg::IList<int> PackedSfixed32List {
  23266. get { return pbc::Lists.AsReadOnly(packedSfixed32_); }
  23267. }
  23268. public int PackedSfixed32Count {
  23269. get { return packedSfixed32_.Count; }
  23270. }
  23271. public int GetPackedSfixed32(int index) {
  23272. return packedSfixed32_[index];
  23273. }
  23274. public const int PackedSfixed64FieldNumber = 99;
  23275. private int packedSfixed64MemoizedSerializedSize;
  23276. private pbc::PopsicleList<long> packedSfixed64_ = new pbc::PopsicleList<long>();
  23277. public scg::IList<long> PackedSfixed64List {
  23278. get { return pbc::Lists.AsReadOnly(packedSfixed64_); }
  23279. }
  23280. public int PackedSfixed64Count {
  23281. get { return packedSfixed64_.Count; }
  23282. }
  23283. public long GetPackedSfixed64(int index) {
  23284. return packedSfixed64_[index];
  23285. }
  23286. public const int PackedFloatFieldNumber = 100;
  23287. private int packedFloatMemoizedSerializedSize;
  23288. private pbc::PopsicleList<float> packedFloat_ = new pbc::PopsicleList<float>();
  23289. public scg::IList<float> PackedFloatList {
  23290. get { return pbc::Lists.AsReadOnly(packedFloat_); }
  23291. }
  23292. public int PackedFloatCount {
  23293. get { return packedFloat_.Count; }
  23294. }
  23295. public float GetPackedFloat(int index) {
  23296. return packedFloat_[index];
  23297. }
  23298. public const int PackedDoubleFieldNumber = 101;
  23299. private int packedDoubleMemoizedSerializedSize;
  23300. private pbc::PopsicleList<double> packedDouble_ = new pbc::PopsicleList<double>();
  23301. public scg::IList<double> PackedDoubleList {
  23302. get { return pbc::Lists.AsReadOnly(packedDouble_); }
  23303. }
  23304. public int PackedDoubleCount {
  23305. get { return packedDouble_.Count; }
  23306. }
  23307. public double GetPackedDouble(int index) {
  23308. return packedDouble_[index];
  23309. }
  23310. public const int PackedBoolFieldNumber = 102;
  23311. private int packedBoolMemoizedSerializedSize;
  23312. private pbc::PopsicleList<bool> packedBool_ = new pbc::PopsicleList<bool>();
  23313. public scg::IList<bool> PackedBoolList {
  23314. get { return pbc::Lists.AsReadOnly(packedBool_); }
  23315. }
  23316. public int PackedBoolCount {
  23317. get { return packedBool_.Count; }
  23318. }
  23319. public bool GetPackedBool(int index) {
  23320. return packedBool_[index];
  23321. }
  23322. public const int PackedEnumFieldNumber = 103;
  23323. private int packedEnumMemoizedSerializedSize;
  23324. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> packedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  23325. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> PackedEnumList {
  23326. get { return pbc::Lists.AsReadOnly(packedEnum_); }
  23327. }
  23328. public int PackedEnumCount {
  23329. get { return packedEnum_.Count; }
  23330. }
  23331. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetPackedEnum(int index) {
  23332. return packedEnum_[index];
  23333. }
  23334. public override bool IsInitialized {
  23335. get {
  23336. return true;
  23337. }
  23338. }
  23339. public override void WriteTo(pb::ICodedOutputStream output) {
  23340. CalcSerializedSize();
  23341. string[] field_names = _testPackedTypesFieldNames;
  23342. if (packedInt32_.Count > 0) {
  23343. output.WritePackedInt32Array(90, field_names[6], packedInt32MemoizedSerializedSize, packedInt32_);
  23344. }
  23345. if (packedInt64_.Count > 0) {
  23346. output.WritePackedInt64Array(91, field_names[7], packedInt64MemoizedSerializedSize, packedInt64_);
  23347. }
  23348. if (packedUint32_.Count > 0) {
  23349. output.WritePackedUInt32Array(92, field_names[12], packedUint32MemoizedSerializedSize, packedUint32_);
  23350. }
  23351. if (packedUint64_.Count > 0) {
  23352. output.WritePackedUInt64Array(93, field_names[13], packedUint64MemoizedSerializedSize, packedUint64_);
  23353. }
  23354. if (packedSint32_.Count > 0) {
  23355. output.WritePackedSInt32Array(94, field_names[10], packedSint32MemoizedSerializedSize, packedSint32_);
  23356. }
  23357. if (packedSint64_.Count > 0) {
  23358. output.WritePackedSInt64Array(95, field_names[11], packedSint64MemoizedSerializedSize, packedSint64_);
  23359. }
  23360. if (packedFixed32_.Count > 0) {
  23361. output.WritePackedFixed32Array(96, field_names[3], packedFixed32MemoizedSerializedSize, packedFixed32_);
  23362. }
  23363. if (packedFixed64_.Count > 0) {
  23364. output.WritePackedFixed64Array(97, field_names[4], packedFixed64MemoizedSerializedSize, packedFixed64_);
  23365. }
  23366. if (packedSfixed32_.Count > 0) {
  23367. output.WritePackedSFixed32Array(98, field_names[8], packedSfixed32MemoizedSerializedSize, packedSfixed32_);
  23368. }
  23369. if (packedSfixed64_.Count > 0) {
  23370. output.WritePackedSFixed64Array(99, field_names[9], packedSfixed64MemoizedSerializedSize, packedSfixed64_);
  23371. }
  23372. if (packedFloat_.Count > 0) {
  23373. output.WritePackedFloatArray(100, field_names[5], packedFloatMemoizedSerializedSize, packedFloat_);
  23374. }
  23375. if (packedDouble_.Count > 0) {
  23376. output.WritePackedDoubleArray(101, field_names[1], packedDoubleMemoizedSerializedSize, packedDouble_);
  23377. }
  23378. if (packedBool_.Count > 0) {
  23379. output.WritePackedBoolArray(102, field_names[0], packedBoolMemoizedSerializedSize, packedBool_);
  23380. }
  23381. if (packedEnum_.Count > 0) {
  23382. output.WritePackedEnumArray(103, field_names[2], packedEnumMemoizedSerializedSize, packedEnum_);
  23383. }
  23384. UnknownFields.WriteTo(output);
  23385. }
  23386. private int memoizedSerializedSize = -1;
  23387. public override int SerializedSize {
  23388. get {
  23389. int size = memoizedSerializedSize;
  23390. if (size != -1) return size;
  23391. return CalcSerializedSize();
  23392. }
  23393. }
  23394. private int CalcSerializedSize() {
  23395. int size = memoizedSerializedSize;
  23396. if (size != -1) return size;
  23397. size = 0;
  23398. {
  23399. int dataSize = 0;
  23400. foreach (int element in PackedInt32List) {
  23401. dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
  23402. }
  23403. size += dataSize;
  23404. if (packedInt32_.Count != 0) {
  23405. size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  23406. }
  23407. packedInt32MemoizedSerializedSize = dataSize;
  23408. }
  23409. {
  23410. int dataSize = 0;
  23411. foreach (long element in PackedInt64List) {
  23412. dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
  23413. }
  23414. size += dataSize;
  23415. if (packedInt64_.Count != 0) {
  23416. size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  23417. }
  23418. packedInt64MemoizedSerializedSize = dataSize;
  23419. }
  23420. {
  23421. int dataSize = 0;
  23422. foreach (uint element in PackedUint32List) {
  23423. dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
  23424. }
  23425. size += dataSize;
  23426. if (packedUint32_.Count != 0) {
  23427. size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  23428. }
  23429. packedUint32MemoizedSerializedSize = dataSize;
  23430. }
  23431. {
  23432. int dataSize = 0;
  23433. foreach (ulong element in PackedUint64List) {
  23434. dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
  23435. }
  23436. size += dataSize;
  23437. if (packedUint64_.Count != 0) {
  23438. size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  23439. }
  23440. packedUint64MemoizedSerializedSize = dataSize;
  23441. }
  23442. {
  23443. int dataSize = 0;
  23444. foreach (int element in PackedSint32List) {
  23445. dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
  23446. }
  23447. size += dataSize;
  23448. if (packedSint32_.Count != 0) {
  23449. size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  23450. }
  23451. packedSint32MemoizedSerializedSize = dataSize;
  23452. }
  23453. {
  23454. int dataSize = 0;
  23455. foreach (long element in PackedSint64List) {
  23456. dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
  23457. }
  23458. size += dataSize;
  23459. if (packedSint64_.Count != 0) {
  23460. size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  23461. }
  23462. packedSint64MemoizedSerializedSize = dataSize;
  23463. }
  23464. {
  23465. int dataSize = 0;
  23466. dataSize = 4 * packedFixed32_.Count;
  23467. size += dataSize;
  23468. if (packedFixed32_.Count != 0) {
  23469. size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  23470. }
  23471. packedFixed32MemoizedSerializedSize = dataSize;
  23472. }
  23473. {
  23474. int dataSize = 0;
  23475. dataSize = 8 * packedFixed64_.Count;
  23476. size += dataSize;
  23477. if (packedFixed64_.Count != 0) {
  23478. size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  23479. }
  23480. packedFixed64MemoizedSerializedSize = dataSize;
  23481. }
  23482. {
  23483. int dataSize = 0;
  23484. dataSize = 4 * packedSfixed32_.Count;
  23485. size += dataSize;
  23486. if (packedSfixed32_.Count != 0) {
  23487. size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  23488. }
  23489. packedSfixed32MemoizedSerializedSize = dataSize;
  23490. }
  23491. {
  23492. int dataSize = 0;
  23493. dataSize = 8 * packedSfixed64_.Count;
  23494. size += dataSize;
  23495. if (packedSfixed64_.Count != 0) {
  23496. size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  23497. }
  23498. packedSfixed64MemoizedSerializedSize = dataSize;
  23499. }
  23500. {
  23501. int dataSize = 0;
  23502. dataSize = 4 * packedFloat_.Count;
  23503. size += dataSize;
  23504. if (packedFloat_.Count != 0) {
  23505. size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  23506. }
  23507. packedFloatMemoizedSerializedSize = dataSize;
  23508. }
  23509. {
  23510. int dataSize = 0;
  23511. dataSize = 8 * packedDouble_.Count;
  23512. size += dataSize;
  23513. if (packedDouble_.Count != 0) {
  23514. size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  23515. }
  23516. packedDoubleMemoizedSerializedSize = dataSize;
  23517. }
  23518. {
  23519. int dataSize = 0;
  23520. dataSize = 1 * packedBool_.Count;
  23521. size += dataSize;
  23522. if (packedBool_.Count != 0) {
  23523. size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  23524. }
  23525. packedBoolMemoizedSerializedSize = dataSize;
  23526. }
  23527. {
  23528. int dataSize = 0;
  23529. if (packedEnum_.Count > 0) {
  23530. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in packedEnum_) {
  23531. dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
  23532. }
  23533. size += dataSize;
  23534. size += 2;
  23535. size += pb::CodedOutputStream.ComputeRawVarint32Size((uint) dataSize);
  23536. }
  23537. packedEnumMemoizedSerializedSize = dataSize;
  23538. }
  23539. size += UnknownFields.SerializedSize;
  23540. memoizedSerializedSize = size;
  23541. return size;
  23542. }
  23543. public static TestPackedTypes ParseFrom(pb::ByteString data) {
  23544. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  23545. }
  23546. public static TestPackedTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  23547. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  23548. }
  23549. public static TestPackedTypes ParseFrom(byte[] data) {
  23550. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  23551. }
  23552. public static TestPackedTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  23553. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  23554. }
  23555. public static TestPackedTypes ParseFrom(global::System.IO.Stream input) {
  23556. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  23557. }
  23558. public static TestPackedTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  23559. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  23560. }
  23561. public static TestPackedTypes ParseDelimitedFrom(global::System.IO.Stream input) {
  23562. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  23563. }
  23564. public static TestPackedTypes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  23565. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  23566. }
  23567. public static TestPackedTypes ParseFrom(pb::ICodedInputStream input) {
  23568. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  23569. }
  23570. public static TestPackedTypes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  23571. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  23572. }
  23573. private TestPackedTypes MakeReadOnly() {
  23574. packedInt32_.MakeReadOnly();
  23575. packedInt64_.MakeReadOnly();
  23576. packedUint32_.MakeReadOnly();
  23577. packedUint64_.MakeReadOnly();
  23578. packedSint32_.MakeReadOnly();
  23579. packedSint64_.MakeReadOnly();
  23580. packedFixed32_.MakeReadOnly();
  23581. packedFixed64_.MakeReadOnly();
  23582. packedSfixed32_.MakeReadOnly();
  23583. packedSfixed64_.MakeReadOnly();
  23584. packedFloat_.MakeReadOnly();
  23585. packedDouble_.MakeReadOnly();
  23586. packedBool_.MakeReadOnly();
  23587. packedEnum_.MakeReadOnly();
  23588. return this;
  23589. }
  23590. public static Builder CreateBuilder() { return new Builder(); }
  23591. public override Builder ToBuilder() { return CreateBuilder(this); }
  23592. public override Builder CreateBuilderForType() { return new Builder(); }
  23593. public static Builder CreateBuilder(TestPackedTypes prototype) {
  23594. return new Builder(prototype);
  23595. }
  23596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  23597. public sealed partial class Builder : pb::GeneratedBuilder<TestPackedTypes, Builder> {
  23598. protected override Builder ThisBuilder {
  23599. get { return this; }
  23600. }
  23601. public Builder() {
  23602. result = DefaultInstance;
  23603. resultIsReadOnly = true;
  23604. }
  23605. internal Builder(TestPackedTypes cloneFrom) {
  23606. result = cloneFrom;
  23607. resultIsReadOnly = true;
  23608. }
  23609. private bool resultIsReadOnly;
  23610. private TestPackedTypes result;
  23611. private TestPackedTypes PrepareBuilder() {
  23612. if (resultIsReadOnly) {
  23613. TestPackedTypes original = result;
  23614. result = new TestPackedTypes();
  23615. resultIsReadOnly = false;
  23616. MergeFrom(original);
  23617. }
  23618. return result;
  23619. }
  23620. public override bool IsInitialized {
  23621. get { return result.IsInitialized; }
  23622. }
  23623. protected override TestPackedTypes MessageBeingBuilt {
  23624. get { return PrepareBuilder(); }
  23625. }
  23626. public override Builder Clear() {
  23627. result = DefaultInstance;
  23628. resultIsReadOnly = true;
  23629. return this;
  23630. }
  23631. public override Builder Clone() {
  23632. if (resultIsReadOnly) {
  23633. return new Builder(result);
  23634. } else {
  23635. return new Builder().MergeFrom(result);
  23636. }
  23637. }
  23638. public override pbd::MessageDescriptor DescriptorForType {
  23639. get { return global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.Descriptor; }
  23640. }
  23641. public override TestPackedTypes DefaultInstanceForType {
  23642. get { return global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.DefaultInstance; }
  23643. }
  23644. public override TestPackedTypes BuildPartial() {
  23645. if (resultIsReadOnly) {
  23646. return result;
  23647. }
  23648. resultIsReadOnly = true;
  23649. return result.MakeReadOnly();
  23650. }
  23651. public override Builder MergeFrom(pb::IMessage other) {
  23652. if (other is TestPackedTypes) {
  23653. return MergeFrom((TestPackedTypes) other);
  23654. } else {
  23655. base.MergeFrom(other);
  23656. return this;
  23657. }
  23658. }
  23659. public override Builder MergeFrom(TestPackedTypes other) {
  23660. if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.DefaultInstance) return this;
  23661. PrepareBuilder();
  23662. if (other.packedInt32_.Count != 0) {
  23663. result.packedInt32_.Add(other.packedInt32_);
  23664. }
  23665. if (other.packedInt64_.Count != 0) {
  23666. result.packedInt64_.Add(other.packedInt64_);
  23667. }
  23668. if (other.packedUint32_.Count != 0) {
  23669. result.packedUint32_.Add(other.packedUint32_);
  23670. }
  23671. if (other.packedUint64_.Count != 0) {
  23672. result.packedUint64_.Add(other.packedUint64_);
  23673. }
  23674. if (other.packedSint32_.Count != 0) {
  23675. result.packedSint32_.Add(other.packedSint32_);
  23676. }
  23677. if (other.packedSint64_.Count != 0) {
  23678. result.packedSint64_.Add(other.packedSint64_);
  23679. }
  23680. if (other.packedFixed32_.Count != 0) {
  23681. result.packedFixed32_.Add(other.packedFixed32_);
  23682. }
  23683. if (other.packedFixed64_.Count != 0) {
  23684. result.packedFixed64_.Add(other.packedFixed64_);
  23685. }
  23686. if (other.packedSfixed32_.Count != 0) {
  23687. result.packedSfixed32_.Add(other.packedSfixed32_);
  23688. }
  23689. if (other.packedSfixed64_.Count != 0) {
  23690. result.packedSfixed64_.Add(other.packedSfixed64_);
  23691. }
  23692. if (other.packedFloat_.Count != 0) {
  23693. result.packedFloat_.Add(other.packedFloat_);
  23694. }
  23695. if (other.packedDouble_.Count != 0) {
  23696. result.packedDouble_.Add(other.packedDouble_);
  23697. }
  23698. if (other.packedBool_.Count != 0) {
  23699. result.packedBool_.Add(other.packedBool_);
  23700. }
  23701. if (other.packedEnum_.Count != 0) {
  23702. result.packedEnum_.Add(other.packedEnum_);
  23703. }
  23704. this.MergeUnknownFields(other.UnknownFields);
  23705. return this;
  23706. }
  23707. public override Builder MergeFrom(pb::ICodedInputStream input) {
  23708. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  23709. }
  23710. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  23711. PrepareBuilder();
  23712. pb::UnknownFieldSet.Builder unknownFields = null;
  23713. uint tag;
  23714. string field_name;
  23715. while (input.ReadTag(out tag, out field_name)) {
  23716. if(tag == 0 && field_name != null) {
  23717. int field_ordinal = global::System.Array.BinarySearch(_testPackedTypesFieldNames, field_name, global::System.StringComparer.Ordinal);
  23718. if(field_ordinal >= 0)
  23719. tag = _testPackedTypesFieldTags[field_ordinal];
  23720. else {
  23721. if (unknownFields == null) {
  23722. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  23723. }
  23724. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  23725. continue;
  23726. }
  23727. }
  23728. switch (tag) {
  23729. case 0: {
  23730. throw pb::InvalidProtocolBufferException.InvalidTag();
  23731. }
  23732. default: {
  23733. if (pb::WireFormat.IsEndGroupTag(tag)) {
  23734. if (unknownFields != null) {
  23735. this.UnknownFields = unknownFields.Build();
  23736. }
  23737. return this;
  23738. }
  23739. if (unknownFields == null) {
  23740. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  23741. }
  23742. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  23743. break;
  23744. }
  23745. case 722:
  23746. case 720: {
  23747. input.ReadInt32Array(tag, field_name, result.packedInt32_);
  23748. break;
  23749. }
  23750. case 730:
  23751. case 728: {
  23752. input.ReadInt64Array(tag, field_name, result.packedInt64_);
  23753. break;
  23754. }
  23755. case 738:
  23756. case 736: {
  23757. input.ReadUInt32Array(tag, field_name, result.packedUint32_);
  23758. break;
  23759. }
  23760. case 746:
  23761. case 744: {
  23762. input.ReadUInt64Array(tag, field_name, result.packedUint64_);
  23763. break;
  23764. }
  23765. case 754:
  23766. case 752: {
  23767. input.ReadSInt32Array(tag, field_name, result.packedSint32_);
  23768. break;
  23769. }
  23770. case 762:
  23771. case 760: {
  23772. input.ReadSInt64Array(tag, field_name, result.packedSint64_);
  23773. break;
  23774. }
  23775. case 770:
  23776. case 773: {
  23777. input.ReadFixed32Array(tag, field_name, result.packedFixed32_);
  23778. break;
  23779. }
  23780. case 778:
  23781. case 777: {
  23782. input.ReadFixed64Array(tag, field_name, result.packedFixed64_);
  23783. break;
  23784. }
  23785. case 786:
  23786. case 789: {
  23787. input.ReadSFixed32Array(tag, field_name, result.packedSfixed32_);
  23788. break;
  23789. }
  23790. case 794:
  23791. case 793: {
  23792. input.ReadSFixed64Array(tag, field_name, result.packedSfixed64_);
  23793. break;
  23794. }
  23795. case 802:
  23796. case 805: {
  23797. input.ReadFloatArray(tag, field_name, result.packedFloat_);
  23798. break;
  23799. }
  23800. case 810:
  23801. case 809: {
  23802. input.ReadDoubleArray(tag, field_name, result.packedDouble_);
  23803. break;
  23804. }
  23805. case 818:
  23806. case 816: {
  23807. input.ReadBoolArray(tag, field_name, result.packedBool_);
  23808. break;
  23809. }
  23810. case 826:
  23811. case 824: {
  23812. scg::ICollection<object> unknownItems;
  23813. input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(tag, field_name, result.packedEnum_, out unknownItems);
  23814. if (unknownItems != null) {
  23815. if (unknownFields == null) {
  23816. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  23817. }
  23818. foreach (object rawValue in unknownItems)
  23819. if (rawValue is int)
  23820. unknownFields.MergeVarintField(103, (ulong)(int)rawValue);
  23821. }
  23822. break;
  23823. }
  23824. }
  23825. }
  23826. if (unknownFields != null) {
  23827. this.UnknownFields = unknownFields.Build();
  23828. }
  23829. return this;
  23830. }
  23831. public pbc::IPopsicleList<int> PackedInt32List {
  23832. get { return PrepareBuilder().packedInt32_; }
  23833. }
  23834. public int PackedInt32Count {
  23835. get { return result.PackedInt32Count; }
  23836. }
  23837. public int GetPackedInt32(int index) {
  23838. return result.GetPackedInt32(index);
  23839. }
  23840. public Builder SetPackedInt32(int index, int value) {
  23841. PrepareBuilder();
  23842. result.packedInt32_[index] = value;
  23843. return this;
  23844. }
  23845. public Builder AddPackedInt32(int value) {
  23846. PrepareBuilder();
  23847. result.packedInt32_.Add(value);
  23848. return this;
  23849. }
  23850. public Builder AddRangePackedInt32(scg::IEnumerable<int> values) {
  23851. PrepareBuilder();
  23852. result.packedInt32_.Add(values);
  23853. return this;
  23854. }
  23855. public Builder ClearPackedInt32() {
  23856. PrepareBuilder();
  23857. result.packedInt32_.Clear();
  23858. return this;
  23859. }
  23860. public pbc::IPopsicleList<long> PackedInt64List {
  23861. get { return PrepareBuilder().packedInt64_; }
  23862. }
  23863. public int PackedInt64Count {
  23864. get { return result.PackedInt64Count; }
  23865. }
  23866. public long GetPackedInt64(int index) {
  23867. return result.GetPackedInt64(index);
  23868. }
  23869. public Builder SetPackedInt64(int index, long value) {
  23870. PrepareBuilder();
  23871. result.packedInt64_[index] = value;
  23872. return this;
  23873. }
  23874. public Builder AddPackedInt64(long value) {
  23875. PrepareBuilder();
  23876. result.packedInt64_.Add(value);
  23877. return this;
  23878. }
  23879. public Builder AddRangePackedInt64(scg::IEnumerable<long> values) {
  23880. PrepareBuilder();
  23881. result.packedInt64_.Add(values);
  23882. return this;
  23883. }
  23884. public Builder ClearPackedInt64() {
  23885. PrepareBuilder();
  23886. result.packedInt64_.Clear();
  23887. return this;
  23888. }
  23889. [global::System.CLSCompliant(false)]
  23890. public pbc::IPopsicleList<uint> PackedUint32List {
  23891. get { return PrepareBuilder().packedUint32_; }
  23892. }
  23893. public int PackedUint32Count {
  23894. get { return result.PackedUint32Count; }
  23895. }
  23896. [global::System.CLSCompliant(false)]
  23897. public uint GetPackedUint32(int index) {
  23898. return result.GetPackedUint32(index);
  23899. }
  23900. [global::System.CLSCompliant(false)]
  23901. public Builder SetPackedUint32(int index, uint value) {
  23902. PrepareBuilder();
  23903. result.packedUint32_[index] = value;
  23904. return this;
  23905. }
  23906. [global::System.CLSCompliant(false)]
  23907. public Builder AddPackedUint32(uint value) {
  23908. PrepareBuilder();
  23909. result.packedUint32_.Add(value);
  23910. return this;
  23911. }
  23912. [global::System.CLSCompliant(false)]
  23913. public Builder AddRangePackedUint32(scg::IEnumerable<uint> values) {
  23914. PrepareBuilder();
  23915. result.packedUint32_.Add(values);
  23916. return this;
  23917. }
  23918. public Builder ClearPackedUint32() {
  23919. PrepareBuilder();
  23920. result.packedUint32_.Clear();
  23921. return this;
  23922. }
  23923. [global::System.CLSCompliant(false)]
  23924. public pbc::IPopsicleList<ulong> PackedUint64List {
  23925. get { return PrepareBuilder().packedUint64_; }
  23926. }
  23927. public int PackedUint64Count {
  23928. get { return result.PackedUint64Count; }
  23929. }
  23930. [global::System.CLSCompliant(false)]
  23931. public ulong GetPackedUint64(int index) {
  23932. return result.GetPackedUint64(index);
  23933. }
  23934. [global::System.CLSCompliant(false)]
  23935. public Builder SetPackedUint64(int index, ulong value) {
  23936. PrepareBuilder();
  23937. result.packedUint64_[index] = value;
  23938. return this;
  23939. }
  23940. [global::System.CLSCompliant(false)]
  23941. public Builder AddPackedUint64(ulong value) {
  23942. PrepareBuilder();
  23943. result.packedUint64_.Add(value);
  23944. return this;
  23945. }
  23946. [global::System.CLSCompliant(false)]
  23947. public Builder AddRangePackedUint64(scg::IEnumerable<ulong> values) {
  23948. PrepareBuilder();
  23949. result.packedUint64_.Add(values);
  23950. return this;
  23951. }
  23952. public Builder ClearPackedUint64() {
  23953. PrepareBuilder();
  23954. result.packedUint64_.Clear();
  23955. return this;
  23956. }
  23957. public pbc::IPopsicleList<int> PackedSint32List {
  23958. get { return PrepareBuilder().packedSint32_; }
  23959. }
  23960. public int PackedSint32Count {
  23961. get { return result.PackedSint32Count; }
  23962. }
  23963. public int GetPackedSint32(int index) {
  23964. return result.GetPackedSint32(index);
  23965. }
  23966. public Builder SetPackedSint32(int index, int value) {
  23967. PrepareBuilder();
  23968. result.packedSint32_[index] = value;
  23969. return this;
  23970. }
  23971. public Builder AddPackedSint32(int value) {
  23972. PrepareBuilder();
  23973. result.packedSint32_.Add(value);
  23974. return this;
  23975. }
  23976. public Builder AddRangePackedSint32(scg::IEnumerable<int> values) {
  23977. PrepareBuilder();
  23978. result.packedSint32_.Add(values);
  23979. return this;
  23980. }
  23981. public Builder ClearPackedSint32() {
  23982. PrepareBuilder();
  23983. result.packedSint32_.Clear();
  23984. return this;
  23985. }
  23986. public pbc::IPopsicleList<long> PackedSint64List {
  23987. get { return PrepareBuilder().packedSint64_; }
  23988. }
  23989. public int PackedSint64Count {
  23990. get { return result.PackedSint64Count; }
  23991. }
  23992. public long GetPackedSint64(int index) {
  23993. return result.GetPackedSint64(index);
  23994. }
  23995. public Builder SetPackedSint64(int index, long value) {
  23996. PrepareBuilder();
  23997. result.packedSint64_[index] = value;
  23998. return this;
  23999. }
  24000. public Builder AddPackedSint64(long value) {
  24001. PrepareBuilder();
  24002. result.packedSint64_.Add(value);
  24003. return this;
  24004. }
  24005. public Builder AddRangePackedSint64(scg::IEnumerable<long> values) {
  24006. PrepareBuilder();
  24007. result.packedSint64_.Add(values);
  24008. return this;
  24009. }
  24010. public Builder ClearPackedSint64() {
  24011. PrepareBuilder();
  24012. result.packedSint64_.Clear();
  24013. return this;
  24014. }
  24015. [global::System.CLSCompliant(false)]
  24016. public pbc::IPopsicleList<uint> PackedFixed32List {
  24017. get { return PrepareBuilder().packedFixed32_; }
  24018. }
  24019. public int PackedFixed32Count {
  24020. get { return result.PackedFixed32Count; }
  24021. }
  24022. [global::System.CLSCompliant(false)]
  24023. public uint GetPackedFixed32(int index) {
  24024. return result.GetPackedFixed32(index);
  24025. }
  24026. [global::System.CLSCompliant(false)]
  24027. public Builder SetPackedFixed32(int index, uint value) {
  24028. PrepareBuilder();
  24029. result.packedFixed32_[index] = value;
  24030. return this;
  24031. }
  24032. [global::System.CLSCompliant(false)]
  24033. public Builder AddPackedFixed32(uint value) {
  24034. PrepareBuilder();
  24035. result.packedFixed32_.Add(value);
  24036. return this;
  24037. }
  24038. [global::System.CLSCompliant(false)]
  24039. public Builder AddRangePackedFixed32(scg::IEnumerable<uint> values) {
  24040. PrepareBuilder();
  24041. result.packedFixed32_.Add(values);
  24042. return this;
  24043. }
  24044. public Builder ClearPackedFixed32() {
  24045. PrepareBuilder();
  24046. result.packedFixed32_.Clear();
  24047. return this;
  24048. }
  24049. [global::System.CLSCompliant(false)]
  24050. public pbc::IPopsicleList<ulong> PackedFixed64List {
  24051. get { return PrepareBuilder().packedFixed64_; }
  24052. }
  24053. public int PackedFixed64Count {
  24054. get { return result.PackedFixed64Count; }
  24055. }
  24056. [global::System.CLSCompliant(false)]
  24057. public ulong GetPackedFixed64(int index) {
  24058. return result.GetPackedFixed64(index);
  24059. }
  24060. [global::System.CLSCompliant(false)]
  24061. public Builder SetPackedFixed64(int index, ulong value) {
  24062. PrepareBuilder();
  24063. result.packedFixed64_[index] = value;
  24064. return this;
  24065. }
  24066. [global::System.CLSCompliant(false)]
  24067. public Builder AddPackedFixed64(ulong value) {
  24068. PrepareBuilder();
  24069. result.packedFixed64_.Add(value);
  24070. return this;
  24071. }
  24072. [global::System.CLSCompliant(false)]
  24073. public Builder AddRangePackedFixed64(scg::IEnumerable<ulong> values) {
  24074. PrepareBuilder();
  24075. result.packedFixed64_.Add(values);
  24076. return this;
  24077. }
  24078. public Builder ClearPackedFixed64() {
  24079. PrepareBuilder();
  24080. result.packedFixed64_.Clear();
  24081. return this;
  24082. }
  24083. public pbc::IPopsicleList<int> PackedSfixed32List {
  24084. get { return PrepareBuilder().packedSfixed32_; }
  24085. }
  24086. public int PackedSfixed32Count {
  24087. get { return result.PackedSfixed32Count; }
  24088. }
  24089. public int GetPackedSfixed32(int index) {
  24090. return result.GetPackedSfixed32(index);
  24091. }
  24092. public Builder SetPackedSfixed32(int index, int value) {
  24093. PrepareBuilder();
  24094. result.packedSfixed32_[index] = value;
  24095. return this;
  24096. }
  24097. public Builder AddPackedSfixed32(int value) {
  24098. PrepareBuilder();
  24099. result.packedSfixed32_.Add(value);
  24100. return this;
  24101. }
  24102. public Builder AddRangePackedSfixed32(scg::IEnumerable<int> values) {
  24103. PrepareBuilder();
  24104. result.packedSfixed32_.Add(values);
  24105. return this;
  24106. }
  24107. public Builder ClearPackedSfixed32() {
  24108. PrepareBuilder();
  24109. result.packedSfixed32_.Clear();
  24110. return this;
  24111. }
  24112. public pbc::IPopsicleList<long> PackedSfixed64List {
  24113. get { return PrepareBuilder().packedSfixed64_; }
  24114. }
  24115. public int PackedSfixed64Count {
  24116. get { return result.PackedSfixed64Count; }
  24117. }
  24118. public long GetPackedSfixed64(int index) {
  24119. return result.GetPackedSfixed64(index);
  24120. }
  24121. public Builder SetPackedSfixed64(int index, long value) {
  24122. PrepareBuilder();
  24123. result.packedSfixed64_[index] = value;
  24124. return this;
  24125. }
  24126. public Builder AddPackedSfixed64(long value) {
  24127. PrepareBuilder();
  24128. result.packedSfixed64_.Add(value);
  24129. return this;
  24130. }
  24131. public Builder AddRangePackedSfixed64(scg::IEnumerable<long> values) {
  24132. PrepareBuilder();
  24133. result.packedSfixed64_.Add(values);
  24134. return this;
  24135. }
  24136. public Builder ClearPackedSfixed64() {
  24137. PrepareBuilder();
  24138. result.packedSfixed64_.Clear();
  24139. return this;
  24140. }
  24141. public pbc::IPopsicleList<float> PackedFloatList {
  24142. get { return PrepareBuilder().packedFloat_; }
  24143. }
  24144. public int PackedFloatCount {
  24145. get { return result.PackedFloatCount; }
  24146. }
  24147. public float GetPackedFloat(int index) {
  24148. return result.GetPackedFloat(index);
  24149. }
  24150. public Builder SetPackedFloat(int index, float value) {
  24151. PrepareBuilder();
  24152. result.packedFloat_[index] = value;
  24153. return this;
  24154. }
  24155. public Builder AddPackedFloat(float value) {
  24156. PrepareBuilder();
  24157. result.packedFloat_.Add(value);
  24158. return this;
  24159. }
  24160. public Builder AddRangePackedFloat(scg::IEnumerable<float> values) {
  24161. PrepareBuilder();
  24162. result.packedFloat_.Add(values);
  24163. return this;
  24164. }
  24165. public Builder ClearPackedFloat() {
  24166. PrepareBuilder();
  24167. result.packedFloat_.Clear();
  24168. return this;
  24169. }
  24170. public pbc::IPopsicleList<double> PackedDoubleList {
  24171. get { return PrepareBuilder().packedDouble_; }
  24172. }
  24173. public int PackedDoubleCount {
  24174. get { return result.PackedDoubleCount; }
  24175. }
  24176. public double GetPackedDouble(int index) {
  24177. return result.GetPackedDouble(index);
  24178. }
  24179. public Builder SetPackedDouble(int index, double value) {
  24180. PrepareBuilder();
  24181. result.packedDouble_[index] = value;
  24182. return this;
  24183. }
  24184. public Builder AddPackedDouble(double value) {
  24185. PrepareBuilder();
  24186. result.packedDouble_.Add(value);
  24187. return this;
  24188. }
  24189. public Builder AddRangePackedDouble(scg::IEnumerable<double> values) {
  24190. PrepareBuilder();
  24191. result.packedDouble_.Add(values);
  24192. return this;
  24193. }
  24194. public Builder ClearPackedDouble() {
  24195. PrepareBuilder();
  24196. result.packedDouble_.Clear();
  24197. return this;
  24198. }
  24199. public pbc::IPopsicleList<bool> PackedBoolList {
  24200. get { return PrepareBuilder().packedBool_; }
  24201. }
  24202. public int PackedBoolCount {
  24203. get { return result.PackedBoolCount; }
  24204. }
  24205. public bool GetPackedBool(int index) {
  24206. return result.GetPackedBool(index);
  24207. }
  24208. public Builder SetPackedBool(int index, bool value) {
  24209. PrepareBuilder();
  24210. result.packedBool_[index] = value;
  24211. return this;
  24212. }
  24213. public Builder AddPackedBool(bool value) {
  24214. PrepareBuilder();
  24215. result.packedBool_.Add(value);
  24216. return this;
  24217. }
  24218. public Builder AddRangePackedBool(scg::IEnumerable<bool> values) {
  24219. PrepareBuilder();
  24220. result.packedBool_.Add(values);
  24221. return this;
  24222. }
  24223. public Builder ClearPackedBool() {
  24224. PrepareBuilder();
  24225. result.packedBool_.Clear();
  24226. return this;
  24227. }
  24228. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> PackedEnumList {
  24229. get { return PrepareBuilder().packedEnum_; }
  24230. }
  24231. public int PackedEnumCount {
  24232. get { return result.PackedEnumCount; }
  24233. }
  24234. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetPackedEnum(int index) {
  24235. return result.GetPackedEnum(index);
  24236. }
  24237. public Builder SetPackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  24238. PrepareBuilder();
  24239. result.packedEnum_[index] = value;
  24240. return this;
  24241. }
  24242. public Builder AddPackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  24243. PrepareBuilder();
  24244. result.packedEnum_.Add(value);
  24245. return this;
  24246. }
  24247. public Builder AddRangePackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
  24248. PrepareBuilder();
  24249. result.packedEnum_.Add(values);
  24250. return this;
  24251. }
  24252. public Builder ClearPackedEnum() {
  24253. PrepareBuilder();
  24254. result.packedEnum_.Clear();
  24255. return this;
  24256. }
  24257. }
  24258. static TestPackedTypes() {
  24259. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  24260. }
  24261. }
  24262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  24263. public sealed partial class TestUnpackedTypes : pb::GeneratedMessage<TestUnpackedTypes, TestUnpackedTypes.Builder> {
  24264. private TestUnpackedTypes() { }
  24265. private static readonly TestUnpackedTypes defaultInstance = new TestUnpackedTypes().MakeReadOnly();
  24266. private static readonly string[] _testUnpackedTypesFieldNames = new string[] { "unpacked_bool", "unpacked_double", "unpacked_enum", "unpacked_fixed32", "unpacked_fixed64", "unpacked_float", "unpacked_int32", "unpacked_int64", "unpacked_sfixed32", "unpacked_sfixed64", "unpacked_sint32", "unpacked_sint64", "unpacked_uint32", "unpacked_uint64" };
  24267. private static readonly uint[] _testUnpackedTypesFieldTags = new uint[] { 816, 809, 824, 773, 777, 805, 720, 728, 789, 793, 752, 760, 736, 744 };
  24268. public static TestUnpackedTypes DefaultInstance {
  24269. get { return defaultInstance; }
  24270. }
  24271. public override TestUnpackedTypes DefaultInstanceForType {
  24272. get { return DefaultInstance; }
  24273. }
  24274. protected override TestUnpackedTypes ThisMessage {
  24275. get { return this; }
  24276. }
  24277. public static pbd::MessageDescriptor Descriptor {
  24278. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestUnpackedTypes__Descriptor; }
  24279. }
  24280. protected override pb::FieldAccess.FieldAccessorTable<TestUnpackedTypes, TestUnpackedTypes.Builder> InternalFieldAccessors {
  24281. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable; }
  24282. }
  24283. public const int UnpackedInt32FieldNumber = 90;
  24284. private pbc::PopsicleList<int> unpackedInt32_ = new pbc::PopsicleList<int>();
  24285. public scg::IList<int> UnpackedInt32List {
  24286. get { return pbc::Lists.AsReadOnly(unpackedInt32_); }
  24287. }
  24288. public int UnpackedInt32Count {
  24289. get { return unpackedInt32_.Count; }
  24290. }
  24291. public int GetUnpackedInt32(int index) {
  24292. return unpackedInt32_[index];
  24293. }
  24294. public const int UnpackedInt64FieldNumber = 91;
  24295. private pbc::PopsicleList<long> unpackedInt64_ = new pbc::PopsicleList<long>();
  24296. public scg::IList<long> UnpackedInt64List {
  24297. get { return pbc::Lists.AsReadOnly(unpackedInt64_); }
  24298. }
  24299. public int UnpackedInt64Count {
  24300. get { return unpackedInt64_.Count; }
  24301. }
  24302. public long GetUnpackedInt64(int index) {
  24303. return unpackedInt64_[index];
  24304. }
  24305. public const int UnpackedUint32FieldNumber = 92;
  24306. private pbc::PopsicleList<uint> unpackedUint32_ = new pbc::PopsicleList<uint>();
  24307. [global::System.CLSCompliant(false)]
  24308. public scg::IList<uint> UnpackedUint32List {
  24309. get { return pbc::Lists.AsReadOnly(unpackedUint32_); }
  24310. }
  24311. public int UnpackedUint32Count {
  24312. get { return unpackedUint32_.Count; }
  24313. }
  24314. [global::System.CLSCompliant(false)]
  24315. public uint GetUnpackedUint32(int index) {
  24316. return unpackedUint32_[index];
  24317. }
  24318. public const int UnpackedUint64FieldNumber = 93;
  24319. private pbc::PopsicleList<ulong> unpackedUint64_ = new pbc::PopsicleList<ulong>();
  24320. [global::System.CLSCompliant(false)]
  24321. public scg::IList<ulong> UnpackedUint64List {
  24322. get { return pbc::Lists.AsReadOnly(unpackedUint64_); }
  24323. }
  24324. public int UnpackedUint64Count {
  24325. get { return unpackedUint64_.Count; }
  24326. }
  24327. [global::System.CLSCompliant(false)]
  24328. public ulong GetUnpackedUint64(int index) {
  24329. return unpackedUint64_[index];
  24330. }
  24331. public const int UnpackedSint32FieldNumber = 94;
  24332. private pbc::PopsicleList<int> unpackedSint32_ = new pbc::PopsicleList<int>();
  24333. public scg::IList<int> UnpackedSint32List {
  24334. get { return pbc::Lists.AsReadOnly(unpackedSint32_); }
  24335. }
  24336. public int UnpackedSint32Count {
  24337. get { return unpackedSint32_.Count; }
  24338. }
  24339. public int GetUnpackedSint32(int index) {
  24340. return unpackedSint32_[index];
  24341. }
  24342. public const int UnpackedSint64FieldNumber = 95;
  24343. private pbc::PopsicleList<long> unpackedSint64_ = new pbc::PopsicleList<long>();
  24344. public scg::IList<long> UnpackedSint64List {
  24345. get { return pbc::Lists.AsReadOnly(unpackedSint64_); }
  24346. }
  24347. public int UnpackedSint64Count {
  24348. get { return unpackedSint64_.Count; }
  24349. }
  24350. public long GetUnpackedSint64(int index) {
  24351. return unpackedSint64_[index];
  24352. }
  24353. public const int UnpackedFixed32FieldNumber = 96;
  24354. private pbc::PopsicleList<uint> unpackedFixed32_ = new pbc::PopsicleList<uint>();
  24355. [global::System.CLSCompliant(false)]
  24356. public scg::IList<uint> UnpackedFixed32List {
  24357. get { return pbc::Lists.AsReadOnly(unpackedFixed32_); }
  24358. }
  24359. public int UnpackedFixed32Count {
  24360. get { return unpackedFixed32_.Count; }
  24361. }
  24362. [global::System.CLSCompliant(false)]
  24363. public uint GetUnpackedFixed32(int index) {
  24364. return unpackedFixed32_[index];
  24365. }
  24366. public const int UnpackedFixed64FieldNumber = 97;
  24367. private pbc::PopsicleList<ulong> unpackedFixed64_ = new pbc::PopsicleList<ulong>();
  24368. [global::System.CLSCompliant(false)]
  24369. public scg::IList<ulong> UnpackedFixed64List {
  24370. get { return pbc::Lists.AsReadOnly(unpackedFixed64_); }
  24371. }
  24372. public int UnpackedFixed64Count {
  24373. get { return unpackedFixed64_.Count; }
  24374. }
  24375. [global::System.CLSCompliant(false)]
  24376. public ulong GetUnpackedFixed64(int index) {
  24377. return unpackedFixed64_[index];
  24378. }
  24379. public const int UnpackedSfixed32FieldNumber = 98;
  24380. private pbc::PopsicleList<int> unpackedSfixed32_ = new pbc::PopsicleList<int>();
  24381. public scg::IList<int> UnpackedSfixed32List {
  24382. get { return pbc::Lists.AsReadOnly(unpackedSfixed32_); }
  24383. }
  24384. public int UnpackedSfixed32Count {
  24385. get { return unpackedSfixed32_.Count; }
  24386. }
  24387. public int GetUnpackedSfixed32(int index) {
  24388. return unpackedSfixed32_[index];
  24389. }
  24390. public const int UnpackedSfixed64FieldNumber = 99;
  24391. private pbc::PopsicleList<long> unpackedSfixed64_ = new pbc::PopsicleList<long>();
  24392. public scg::IList<long> UnpackedSfixed64List {
  24393. get { return pbc::Lists.AsReadOnly(unpackedSfixed64_); }
  24394. }
  24395. public int UnpackedSfixed64Count {
  24396. get { return unpackedSfixed64_.Count; }
  24397. }
  24398. public long GetUnpackedSfixed64(int index) {
  24399. return unpackedSfixed64_[index];
  24400. }
  24401. public const int UnpackedFloatFieldNumber = 100;
  24402. private pbc::PopsicleList<float> unpackedFloat_ = new pbc::PopsicleList<float>();
  24403. public scg::IList<float> UnpackedFloatList {
  24404. get { return pbc::Lists.AsReadOnly(unpackedFloat_); }
  24405. }
  24406. public int UnpackedFloatCount {
  24407. get { return unpackedFloat_.Count; }
  24408. }
  24409. public float GetUnpackedFloat(int index) {
  24410. return unpackedFloat_[index];
  24411. }
  24412. public const int UnpackedDoubleFieldNumber = 101;
  24413. private pbc::PopsicleList<double> unpackedDouble_ = new pbc::PopsicleList<double>();
  24414. public scg::IList<double> UnpackedDoubleList {
  24415. get { return pbc::Lists.AsReadOnly(unpackedDouble_); }
  24416. }
  24417. public int UnpackedDoubleCount {
  24418. get { return unpackedDouble_.Count; }
  24419. }
  24420. public double GetUnpackedDouble(int index) {
  24421. return unpackedDouble_[index];
  24422. }
  24423. public const int UnpackedBoolFieldNumber = 102;
  24424. private pbc::PopsicleList<bool> unpackedBool_ = new pbc::PopsicleList<bool>();
  24425. public scg::IList<bool> UnpackedBoolList {
  24426. get { return pbc::Lists.AsReadOnly(unpackedBool_); }
  24427. }
  24428. public int UnpackedBoolCount {
  24429. get { return unpackedBool_.Count; }
  24430. }
  24431. public bool GetUnpackedBool(int index) {
  24432. return unpackedBool_[index];
  24433. }
  24434. public const int UnpackedEnumFieldNumber = 103;
  24435. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> unpackedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  24436. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> UnpackedEnumList {
  24437. get { return pbc::Lists.AsReadOnly(unpackedEnum_); }
  24438. }
  24439. public int UnpackedEnumCount {
  24440. get { return unpackedEnum_.Count; }
  24441. }
  24442. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetUnpackedEnum(int index) {
  24443. return unpackedEnum_[index];
  24444. }
  24445. public override bool IsInitialized {
  24446. get {
  24447. return true;
  24448. }
  24449. }
  24450. public override void WriteTo(pb::ICodedOutputStream output) {
  24451. CalcSerializedSize();
  24452. string[] field_names = _testUnpackedTypesFieldNames;
  24453. if (unpackedInt32_.Count > 0) {
  24454. output.WriteInt32Array(90, field_names[6], unpackedInt32_);
  24455. }
  24456. if (unpackedInt64_.Count > 0) {
  24457. output.WriteInt64Array(91, field_names[7], unpackedInt64_);
  24458. }
  24459. if (unpackedUint32_.Count > 0) {
  24460. output.WriteUInt32Array(92, field_names[12], unpackedUint32_);
  24461. }
  24462. if (unpackedUint64_.Count > 0) {
  24463. output.WriteUInt64Array(93, field_names[13], unpackedUint64_);
  24464. }
  24465. if (unpackedSint32_.Count > 0) {
  24466. output.WriteSInt32Array(94, field_names[10], unpackedSint32_);
  24467. }
  24468. if (unpackedSint64_.Count > 0) {
  24469. output.WriteSInt64Array(95, field_names[11], unpackedSint64_);
  24470. }
  24471. if (unpackedFixed32_.Count > 0) {
  24472. output.WriteFixed32Array(96, field_names[3], unpackedFixed32_);
  24473. }
  24474. if (unpackedFixed64_.Count > 0) {
  24475. output.WriteFixed64Array(97, field_names[4], unpackedFixed64_);
  24476. }
  24477. if (unpackedSfixed32_.Count > 0) {
  24478. output.WriteSFixed32Array(98, field_names[8], unpackedSfixed32_);
  24479. }
  24480. if (unpackedSfixed64_.Count > 0) {
  24481. output.WriteSFixed64Array(99, field_names[9], unpackedSfixed64_);
  24482. }
  24483. if (unpackedFloat_.Count > 0) {
  24484. output.WriteFloatArray(100, field_names[5], unpackedFloat_);
  24485. }
  24486. if (unpackedDouble_.Count > 0) {
  24487. output.WriteDoubleArray(101, field_names[1], unpackedDouble_);
  24488. }
  24489. if (unpackedBool_.Count > 0) {
  24490. output.WriteBoolArray(102, field_names[0], unpackedBool_);
  24491. }
  24492. if (unpackedEnum_.Count > 0) {
  24493. output.WriteEnumArray(103, field_names[2], unpackedEnum_);
  24494. }
  24495. UnknownFields.WriteTo(output);
  24496. }
  24497. private int memoizedSerializedSize = -1;
  24498. public override int SerializedSize {
  24499. get {
  24500. int size = memoizedSerializedSize;
  24501. if (size != -1) return size;
  24502. return CalcSerializedSize();
  24503. }
  24504. }
  24505. private int CalcSerializedSize() {
  24506. int size = memoizedSerializedSize;
  24507. if (size != -1) return size;
  24508. size = 0;
  24509. {
  24510. int dataSize = 0;
  24511. foreach (int element in UnpackedInt32List) {
  24512. dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
  24513. }
  24514. size += dataSize;
  24515. size += 2 * unpackedInt32_.Count;
  24516. }
  24517. {
  24518. int dataSize = 0;
  24519. foreach (long element in UnpackedInt64List) {
  24520. dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
  24521. }
  24522. size += dataSize;
  24523. size += 2 * unpackedInt64_.Count;
  24524. }
  24525. {
  24526. int dataSize = 0;
  24527. foreach (uint element in UnpackedUint32List) {
  24528. dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
  24529. }
  24530. size += dataSize;
  24531. size += 2 * unpackedUint32_.Count;
  24532. }
  24533. {
  24534. int dataSize = 0;
  24535. foreach (ulong element in UnpackedUint64List) {
  24536. dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
  24537. }
  24538. size += dataSize;
  24539. size += 2 * unpackedUint64_.Count;
  24540. }
  24541. {
  24542. int dataSize = 0;
  24543. foreach (int element in UnpackedSint32List) {
  24544. dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
  24545. }
  24546. size += dataSize;
  24547. size += 2 * unpackedSint32_.Count;
  24548. }
  24549. {
  24550. int dataSize = 0;
  24551. foreach (long element in UnpackedSint64List) {
  24552. dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
  24553. }
  24554. size += dataSize;
  24555. size += 2 * unpackedSint64_.Count;
  24556. }
  24557. {
  24558. int dataSize = 0;
  24559. dataSize = 4 * unpackedFixed32_.Count;
  24560. size += dataSize;
  24561. size += 2 * unpackedFixed32_.Count;
  24562. }
  24563. {
  24564. int dataSize = 0;
  24565. dataSize = 8 * unpackedFixed64_.Count;
  24566. size += dataSize;
  24567. size += 2 * unpackedFixed64_.Count;
  24568. }
  24569. {
  24570. int dataSize = 0;
  24571. dataSize = 4 * unpackedSfixed32_.Count;
  24572. size += dataSize;
  24573. size += 2 * unpackedSfixed32_.Count;
  24574. }
  24575. {
  24576. int dataSize = 0;
  24577. dataSize = 8 * unpackedSfixed64_.Count;
  24578. size += dataSize;
  24579. size += 2 * unpackedSfixed64_.Count;
  24580. }
  24581. {
  24582. int dataSize = 0;
  24583. dataSize = 4 * unpackedFloat_.Count;
  24584. size += dataSize;
  24585. size += 2 * unpackedFloat_.Count;
  24586. }
  24587. {
  24588. int dataSize = 0;
  24589. dataSize = 8 * unpackedDouble_.Count;
  24590. size += dataSize;
  24591. size += 2 * unpackedDouble_.Count;
  24592. }
  24593. {
  24594. int dataSize = 0;
  24595. dataSize = 1 * unpackedBool_.Count;
  24596. size += dataSize;
  24597. size += 2 * unpackedBool_.Count;
  24598. }
  24599. {
  24600. int dataSize = 0;
  24601. if (unpackedEnum_.Count > 0) {
  24602. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in unpackedEnum_) {
  24603. dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
  24604. }
  24605. size += dataSize;
  24606. size += 2 * unpackedEnum_.Count;
  24607. }
  24608. }
  24609. size += UnknownFields.SerializedSize;
  24610. memoizedSerializedSize = size;
  24611. return size;
  24612. }
  24613. public static TestUnpackedTypes ParseFrom(pb::ByteString data) {
  24614. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  24615. }
  24616. public static TestUnpackedTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  24617. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  24618. }
  24619. public static TestUnpackedTypes ParseFrom(byte[] data) {
  24620. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  24621. }
  24622. public static TestUnpackedTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  24623. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  24624. }
  24625. public static TestUnpackedTypes ParseFrom(global::System.IO.Stream input) {
  24626. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  24627. }
  24628. public static TestUnpackedTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  24629. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  24630. }
  24631. public static TestUnpackedTypes ParseDelimitedFrom(global::System.IO.Stream input) {
  24632. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  24633. }
  24634. public static TestUnpackedTypes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  24635. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  24636. }
  24637. public static TestUnpackedTypes ParseFrom(pb::ICodedInputStream input) {
  24638. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  24639. }
  24640. public static TestUnpackedTypes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  24641. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  24642. }
  24643. private TestUnpackedTypes MakeReadOnly() {
  24644. unpackedInt32_.MakeReadOnly();
  24645. unpackedInt64_.MakeReadOnly();
  24646. unpackedUint32_.MakeReadOnly();
  24647. unpackedUint64_.MakeReadOnly();
  24648. unpackedSint32_.MakeReadOnly();
  24649. unpackedSint64_.MakeReadOnly();
  24650. unpackedFixed32_.MakeReadOnly();
  24651. unpackedFixed64_.MakeReadOnly();
  24652. unpackedSfixed32_.MakeReadOnly();
  24653. unpackedSfixed64_.MakeReadOnly();
  24654. unpackedFloat_.MakeReadOnly();
  24655. unpackedDouble_.MakeReadOnly();
  24656. unpackedBool_.MakeReadOnly();
  24657. unpackedEnum_.MakeReadOnly();
  24658. return this;
  24659. }
  24660. public static Builder CreateBuilder() { return new Builder(); }
  24661. public override Builder ToBuilder() { return CreateBuilder(this); }
  24662. public override Builder CreateBuilderForType() { return new Builder(); }
  24663. public static Builder CreateBuilder(TestUnpackedTypes prototype) {
  24664. return new Builder(prototype);
  24665. }
  24666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  24667. public sealed partial class Builder : pb::GeneratedBuilder<TestUnpackedTypes, Builder> {
  24668. protected override Builder ThisBuilder {
  24669. get { return this; }
  24670. }
  24671. public Builder() {
  24672. result = DefaultInstance;
  24673. resultIsReadOnly = true;
  24674. }
  24675. internal Builder(TestUnpackedTypes cloneFrom) {
  24676. result = cloneFrom;
  24677. resultIsReadOnly = true;
  24678. }
  24679. private bool resultIsReadOnly;
  24680. private TestUnpackedTypes result;
  24681. private TestUnpackedTypes PrepareBuilder() {
  24682. if (resultIsReadOnly) {
  24683. TestUnpackedTypes original = result;
  24684. result = new TestUnpackedTypes();
  24685. resultIsReadOnly = false;
  24686. MergeFrom(original);
  24687. }
  24688. return result;
  24689. }
  24690. public override bool IsInitialized {
  24691. get { return result.IsInitialized; }
  24692. }
  24693. protected override TestUnpackedTypes MessageBeingBuilt {
  24694. get { return PrepareBuilder(); }
  24695. }
  24696. public override Builder Clear() {
  24697. result = DefaultInstance;
  24698. resultIsReadOnly = true;
  24699. return this;
  24700. }
  24701. public override Builder Clone() {
  24702. if (resultIsReadOnly) {
  24703. return new Builder(result);
  24704. } else {
  24705. return new Builder().MergeFrom(result);
  24706. }
  24707. }
  24708. public override pbd::MessageDescriptor DescriptorForType {
  24709. get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.Descriptor; }
  24710. }
  24711. public override TestUnpackedTypes DefaultInstanceForType {
  24712. get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.DefaultInstance; }
  24713. }
  24714. public override TestUnpackedTypes BuildPartial() {
  24715. if (resultIsReadOnly) {
  24716. return result;
  24717. }
  24718. resultIsReadOnly = true;
  24719. return result.MakeReadOnly();
  24720. }
  24721. public override Builder MergeFrom(pb::IMessage other) {
  24722. if (other is TestUnpackedTypes) {
  24723. return MergeFrom((TestUnpackedTypes) other);
  24724. } else {
  24725. base.MergeFrom(other);
  24726. return this;
  24727. }
  24728. }
  24729. public override Builder MergeFrom(TestUnpackedTypes other) {
  24730. if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.DefaultInstance) return this;
  24731. PrepareBuilder();
  24732. if (other.unpackedInt32_.Count != 0) {
  24733. result.unpackedInt32_.Add(other.unpackedInt32_);
  24734. }
  24735. if (other.unpackedInt64_.Count != 0) {
  24736. result.unpackedInt64_.Add(other.unpackedInt64_);
  24737. }
  24738. if (other.unpackedUint32_.Count != 0) {
  24739. result.unpackedUint32_.Add(other.unpackedUint32_);
  24740. }
  24741. if (other.unpackedUint64_.Count != 0) {
  24742. result.unpackedUint64_.Add(other.unpackedUint64_);
  24743. }
  24744. if (other.unpackedSint32_.Count != 0) {
  24745. result.unpackedSint32_.Add(other.unpackedSint32_);
  24746. }
  24747. if (other.unpackedSint64_.Count != 0) {
  24748. result.unpackedSint64_.Add(other.unpackedSint64_);
  24749. }
  24750. if (other.unpackedFixed32_.Count != 0) {
  24751. result.unpackedFixed32_.Add(other.unpackedFixed32_);
  24752. }
  24753. if (other.unpackedFixed64_.Count != 0) {
  24754. result.unpackedFixed64_.Add(other.unpackedFixed64_);
  24755. }
  24756. if (other.unpackedSfixed32_.Count != 0) {
  24757. result.unpackedSfixed32_.Add(other.unpackedSfixed32_);
  24758. }
  24759. if (other.unpackedSfixed64_.Count != 0) {
  24760. result.unpackedSfixed64_.Add(other.unpackedSfixed64_);
  24761. }
  24762. if (other.unpackedFloat_.Count != 0) {
  24763. result.unpackedFloat_.Add(other.unpackedFloat_);
  24764. }
  24765. if (other.unpackedDouble_.Count != 0) {
  24766. result.unpackedDouble_.Add(other.unpackedDouble_);
  24767. }
  24768. if (other.unpackedBool_.Count != 0) {
  24769. result.unpackedBool_.Add(other.unpackedBool_);
  24770. }
  24771. if (other.unpackedEnum_.Count != 0) {
  24772. result.unpackedEnum_.Add(other.unpackedEnum_);
  24773. }
  24774. this.MergeUnknownFields(other.UnknownFields);
  24775. return this;
  24776. }
  24777. public override Builder MergeFrom(pb::ICodedInputStream input) {
  24778. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  24779. }
  24780. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  24781. PrepareBuilder();
  24782. pb::UnknownFieldSet.Builder unknownFields = null;
  24783. uint tag;
  24784. string field_name;
  24785. while (input.ReadTag(out tag, out field_name)) {
  24786. if(tag == 0 && field_name != null) {
  24787. int field_ordinal = global::System.Array.BinarySearch(_testUnpackedTypesFieldNames, field_name, global::System.StringComparer.Ordinal);
  24788. if(field_ordinal >= 0)
  24789. tag = _testUnpackedTypesFieldTags[field_ordinal];
  24790. else {
  24791. if (unknownFields == null) {
  24792. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  24793. }
  24794. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  24795. continue;
  24796. }
  24797. }
  24798. switch (tag) {
  24799. case 0: {
  24800. throw pb::InvalidProtocolBufferException.InvalidTag();
  24801. }
  24802. default: {
  24803. if (pb::WireFormat.IsEndGroupTag(tag)) {
  24804. if (unknownFields != null) {
  24805. this.UnknownFields = unknownFields.Build();
  24806. }
  24807. return this;
  24808. }
  24809. if (unknownFields == null) {
  24810. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  24811. }
  24812. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  24813. break;
  24814. }
  24815. case 722:
  24816. case 720: {
  24817. input.ReadInt32Array(tag, field_name, result.unpackedInt32_);
  24818. break;
  24819. }
  24820. case 730:
  24821. case 728: {
  24822. input.ReadInt64Array(tag, field_name, result.unpackedInt64_);
  24823. break;
  24824. }
  24825. case 738:
  24826. case 736: {
  24827. input.ReadUInt32Array(tag, field_name, result.unpackedUint32_);
  24828. break;
  24829. }
  24830. case 746:
  24831. case 744: {
  24832. input.ReadUInt64Array(tag, field_name, result.unpackedUint64_);
  24833. break;
  24834. }
  24835. case 754:
  24836. case 752: {
  24837. input.ReadSInt32Array(tag, field_name, result.unpackedSint32_);
  24838. break;
  24839. }
  24840. case 762:
  24841. case 760: {
  24842. input.ReadSInt64Array(tag, field_name, result.unpackedSint64_);
  24843. break;
  24844. }
  24845. case 770:
  24846. case 773: {
  24847. input.ReadFixed32Array(tag, field_name, result.unpackedFixed32_);
  24848. break;
  24849. }
  24850. case 778:
  24851. case 777: {
  24852. input.ReadFixed64Array(tag, field_name, result.unpackedFixed64_);
  24853. break;
  24854. }
  24855. case 786:
  24856. case 789: {
  24857. input.ReadSFixed32Array(tag, field_name, result.unpackedSfixed32_);
  24858. break;
  24859. }
  24860. case 794:
  24861. case 793: {
  24862. input.ReadSFixed64Array(tag, field_name, result.unpackedSfixed64_);
  24863. break;
  24864. }
  24865. case 802:
  24866. case 805: {
  24867. input.ReadFloatArray(tag, field_name, result.unpackedFloat_);
  24868. break;
  24869. }
  24870. case 810:
  24871. case 809: {
  24872. input.ReadDoubleArray(tag, field_name, result.unpackedDouble_);
  24873. break;
  24874. }
  24875. case 818:
  24876. case 816: {
  24877. input.ReadBoolArray(tag, field_name, result.unpackedBool_);
  24878. break;
  24879. }
  24880. case 826:
  24881. case 824: {
  24882. scg::ICollection<object> unknownItems;
  24883. input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(tag, field_name, result.unpackedEnum_, out unknownItems);
  24884. if (unknownItems != null) {
  24885. if (unknownFields == null) {
  24886. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  24887. }
  24888. foreach (object rawValue in unknownItems)
  24889. if (rawValue is int)
  24890. unknownFields.MergeVarintField(103, (ulong)(int)rawValue);
  24891. }
  24892. break;
  24893. }
  24894. }
  24895. }
  24896. if (unknownFields != null) {
  24897. this.UnknownFields = unknownFields.Build();
  24898. }
  24899. return this;
  24900. }
  24901. public pbc::IPopsicleList<int> UnpackedInt32List {
  24902. get { return PrepareBuilder().unpackedInt32_; }
  24903. }
  24904. public int UnpackedInt32Count {
  24905. get { return result.UnpackedInt32Count; }
  24906. }
  24907. public int GetUnpackedInt32(int index) {
  24908. return result.GetUnpackedInt32(index);
  24909. }
  24910. public Builder SetUnpackedInt32(int index, int value) {
  24911. PrepareBuilder();
  24912. result.unpackedInt32_[index] = value;
  24913. return this;
  24914. }
  24915. public Builder AddUnpackedInt32(int value) {
  24916. PrepareBuilder();
  24917. result.unpackedInt32_.Add(value);
  24918. return this;
  24919. }
  24920. public Builder AddRangeUnpackedInt32(scg::IEnumerable<int> values) {
  24921. PrepareBuilder();
  24922. result.unpackedInt32_.Add(values);
  24923. return this;
  24924. }
  24925. public Builder ClearUnpackedInt32() {
  24926. PrepareBuilder();
  24927. result.unpackedInt32_.Clear();
  24928. return this;
  24929. }
  24930. public pbc::IPopsicleList<long> UnpackedInt64List {
  24931. get { return PrepareBuilder().unpackedInt64_; }
  24932. }
  24933. public int UnpackedInt64Count {
  24934. get { return result.UnpackedInt64Count; }
  24935. }
  24936. public long GetUnpackedInt64(int index) {
  24937. return result.GetUnpackedInt64(index);
  24938. }
  24939. public Builder SetUnpackedInt64(int index, long value) {
  24940. PrepareBuilder();
  24941. result.unpackedInt64_[index] = value;
  24942. return this;
  24943. }
  24944. public Builder AddUnpackedInt64(long value) {
  24945. PrepareBuilder();
  24946. result.unpackedInt64_.Add(value);
  24947. return this;
  24948. }
  24949. public Builder AddRangeUnpackedInt64(scg::IEnumerable<long> values) {
  24950. PrepareBuilder();
  24951. result.unpackedInt64_.Add(values);
  24952. return this;
  24953. }
  24954. public Builder ClearUnpackedInt64() {
  24955. PrepareBuilder();
  24956. result.unpackedInt64_.Clear();
  24957. return this;
  24958. }
  24959. [global::System.CLSCompliant(false)]
  24960. public pbc::IPopsicleList<uint> UnpackedUint32List {
  24961. get { return PrepareBuilder().unpackedUint32_; }
  24962. }
  24963. public int UnpackedUint32Count {
  24964. get { return result.UnpackedUint32Count; }
  24965. }
  24966. [global::System.CLSCompliant(false)]
  24967. public uint GetUnpackedUint32(int index) {
  24968. return result.GetUnpackedUint32(index);
  24969. }
  24970. [global::System.CLSCompliant(false)]
  24971. public Builder SetUnpackedUint32(int index, uint value) {
  24972. PrepareBuilder();
  24973. result.unpackedUint32_[index] = value;
  24974. return this;
  24975. }
  24976. [global::System.CLSCompliant(false)]
  24977. public Builder AddUnpackedUint32(uint value) {
  24978. PrepareBuilder();
  24979. result.unpackedUint32_.Add(value);
  24980. return this;
  24981. }
  24982. [global::System.CLSCompliant(false)]
  24983. public Builder AddRangeUnpackedUint32(scg::IEnumerable<uint> values) {
  24984. PrepareBuilder();
  24985. result.unpackedUint32_.Add(values);
  24986. return this;
  24987. }
  24988. public Builder ClearUnpackedUint32() {
  24989. PrepareBuilder();
  24990. result.unpackedUint32_.Clear();
  24991. return this;
  24992. }
  24993. [global::System.CLSCompliant(false)]
  24994. public pbc::IPopsicleList<ulong> UnpackedUint64List {
  24995. get { return PrepareBuilder().unpackedUint64_; }
  24996. }
  24997. public int UnpackedUint64Count {
  24998. get { return result.UnpackedUint64Count; }
  24999. }
  25000. [global::System.CLSCompliant(false)]
  25001. public ulong GetUnpackedUint64(int index) {
  25002. return result.GetUnpackedUint64(index);
  25003. }
  25004. [global::System.CLSCompliant(false)]
  25005. public Builder SetUnpackedUint64(int index, ulong value) {
  25006. PrepareBuilder();
  25007. result.unpackedUint64_[index] = value;
  25008. return this;
  25009. }
  25010. [global::System.CLSCompliant(false)]
  25011. public Builder AddUnpackedUint64(ulong value) {
  25012. PrepareBuilder();
  25013. result.unpackedUint64_.Add(value);
  25014. return this;
  25015. }
  25016. [global::System.CLSCompliant(false)]
  25017. public Builder AddRangeUnpackedUint64(scg::IEnumerable<ulong> values) {
  25018. PrepareBuilder();
  25019. result.unpackedUint64_.Add(values);
  25020. return this;
  25021. }
  25022. public Builder ClearUnpackedUint64() {
  25023. PrepareBuilder();
  25024. result.unpackedUint64_.Clear();
  25025. return this;
  25026. }
  25027. public pbc::IPopsicleList<int> UnpackedSint32List {
  25028. get { return PrepareBuilder().unpackedSint32_; }
  25029. }
  25030. public int UnpackedSint32Count {
  25031. get { return result.UnpackedSint32Count; }
  25032. }
  25033. public int GetUnpackedSint32(int index) {
  25034. return result.GetUnpackedSint32(index);
  25035. }
  25036. public Builder SetUnpackedSint32(int index, int value) {
  25037. PrepareBuilder();
  25038. result.unpackedSint32_[index] = value;
  25039. return this;
  25040. }
  25041. public Builder AddUnpackedSint32(int value) {
  25042. PrepareBuilder();
  25043. result.unpackedSint32_.Add(value);
  25044. return this;
  25045. }
  25046. public Builder AddRangeUnpackedSint32(scg::IEnumerable<int> values) {
  25047. PrepareBuilder();
  25048. result.unpackedSint32_.Add(values);
  25049. return this;
  25050. }
  25051. public Builder ClearUnpackedSint32() {
  25052. PrepareBuilder();
  25053. result.unpackedSint32_.Clear();
  25054. return this;
  25055. }
  25056. public pbc::IPopsicleList<long> UnpackedSint64List {
  25057. get { return PrepareBuilder().unpackedSint64_; }
  25058. }
  25059. public int UnpackedSint64Count {
  25060. get { return result.UnpackedSint64Count; }
  25061. }
  25062. public long GetUnpackedSint64(int index) {
  25063. return result.GetUnpackedSint64(index);
  25064. }
  25065. public Builder SetUnpackedSint64(int index, long value) {
  25066. PrepareBuilder();
  25067. result.unpackedSint64_[index] = value;
  25068. return this;
  25069. }
  25070. public Builder AddUnpackedSint64(long value) {
  25071. PrepareBuilder();
  25072. result.unpackedSint64_.Add(value);
  25073. return this;
  25074. }
  25075. public Builder AddRangeUnpackedSint64(scg::IEnumerable<long> values) {
  25076. PrepareBuilder();
  25077. result.unpackedSint64_.Add(values);
  25078. return this;
  25079. }
  25080. public Builder ClearUnpackedSint64() {
  25081. PrepareBuilder();
  25082. result.unpackedSint64_.Clear();
  25083. return this;
  25084. }
  25085. [global::System.CLSCompliant(false)]
  25086. public pbc::IPopsicleList<uint> UnpackedFixed32List {
  25087. get { return PrepareBuilder().unpackedFixed32_; }
  25088. }
  25089. public int UnpackedFixed32Count {
  25090. get { return result.UnpackedFixed32Count; }
  25091. }
  25092. [global::System.CLSCompliant(false)]
  25093. public uint GetUnpackedFixed32(int index) {
  25094. return result.GetUnpackedFixed32(index);
  25095. }
  25096. [global::System.CLSCompliant(false)]
  25097. public Builder SetUnpackedFixed32(int index, uint value) {
  25098. PrepareBuilder();
  25099. result.unpackedFixed32_[index] = value;
  25100. return this;
  25101. }
  25102. [global::System.CLSCompliant(false)]
  25103. public Builder AddUnpackedFixed32(uint value) {
  25104. PrepareBuilder();
  25105. result.unpackedFixed32_.Add(value);
  25106. return this;
  25107. }
  25108. [global::System.CLSCompliant(false)]
  25109. public Builder AddRangeUnpackedFixed32(scg::IEnumerable<uint> values) {
  25110. PrepareBuilder();
  25111. result.unpackedFixed32_.Add(values);
  25112. return this;
  25113. }
  25114. public Builder ClearUnpackedFixed32() {
  25115. PrepareBuilder();
  25116. result.unpackedFixed32_.Clear();
  25117. return this;
  25118. }
  25119. [global::System.CLSCompliant(false)]
  25120. public pbc::IPopsicleList<ulong> UnpackedFixed64List {
  25121. get { return PrepareBuilder().unpackedFixed64_; }
  25122. }
  25123. public int UnpackedFixed64Count {
  25124. get { return result.UnpackedFixed64Count; }
  25125. }
  25126. [global::System.CLSCompliant(false)]
  25127. public ulong GetUnpackedFixed64(int index) {
  25128. return result.GetUnpackedFixed64(index);
  25129. }
  25130. [global::System.CLSCompliant(false)]
  25131. public Builder SetUnpackedFixed64(int index, ulong value) {
  25132. PrepareBuilder();
  25133. result.unpackedFixed64_[index] = value;
  25134. return this;
  25135. }
  25136. [global::System.CLSCompliant(false)]
  25137. public Builder AddUnpackedFixed64(ulong value) {
  25138. PrepareBuilder();
  25139. result.unpackedFixed64_.Add(value);
  25140. return this;
  25141. }
  25142. [global::System.CLSCompliant(false)]
  25143. public Builder AddRangeUnpackedFixed64(scg::IEnumerable<ulong> values) {
  25144. PrepareBuilder();
  25145. result.unpackedFixed64_.Add(values);
  25146. return this;
  25147. }
  25148. public Builder ClearUnpackedFixed64() {
  25149. PrepareBuilder();
  25150. result.unpackedFixed64_.Clear();
  25151. return this;
  25152. }
  25153. public pbc::IPopsicleList<int> UnpackedSfixed32List {
  25154. get { return PrepareBuilder().unpackedSfixed32_; }
  25155. }
  25156. public int UnpackedSfixed32Count {
  25157. get { return result.UnpackedSfixed32Count; }
  25158. }
  25159. public int GetUnpackedSfixed32(int index) {
  25160. return result.GetUnpackedSfixed32(index);
  25161. }
  25162. public Builder SetUnpackedSfixed32(int index, int value) {
  25163. PrepareBuilder();
  25164. result.unpackedSfixed32_[index] = value;
  25165. return this;
  25166. }
  25167. public Builder AddUnpackedSfixed32(int value) {
  25168. PrepareBuilder();
  25169. result.unpackedSfixed32_.Add(value);
  25170. return this;
  25171. }
  25172. public Builder AddRangeUnpackedSfixed32(scg::IEnumerable<int> values) {
  25173. PrepareBuilder();
  25174. result.unpackedSfixed32_.Add(values);
  25175. return this;
  25176. }
  25177. public Builder ClearUnpackedSfixed32() {
  25178. PrepareBuilder();
  25179. result.unpackedSfixed32_.Clear();
  25180. return this;
  25181. }
  25182. public pbc::IPopsicleList<long> UnpackedSfixed64List {
  25183. get { return PrepareBuilder().unpackedSfixed64_; }
  25184. }
  25185. public int UnpackedSfixed64Count {
  25186. get { return result.UnpackedSfixed64Count; }
  25187. }
  25188. public long GetUnpackedSfixed64(int index) {
  25189. return result.GetUnpackedSfixed64(index);
  25190. }
  25191. public Builder SetUnpackedSfixed64(int index, long value) {
  25192. PrepareBuilder();
  25193. result.unpackedSfixed64_[index] = value;
  25194. return this;
  25195. }
  25196. public Builder AddUnpackedSfixed64(long value) {
  25197. PrepareBuilder();
  25198. result.unpackedSfixed64_.Add(value);
  25199. return this;
  25200. }
  25201. public Builder AddRangeUnpackedSfixed64(scg::IEnumerable<long> values) {
  25202. PrepareBuilder();
  25203. result.unpackedSfixed64_.Add(values);
  25204. return this;
  25205. }
  25206. public Builder ClearUnpackedSfixed64() {
  25207. PrepareBuilder();
  25208. result.unpackedSfixed64_.Clear();
  25209. return this;
  25210. }
  25211. public pbc::IPopsicleList<float> UnpackedFloatList {
  25212. get { return PrepareBuilder().unpackedFloat_; }
  25213. }
  25214. public int UnpackedFloatCount {
  25215. get { return result.UnpackedFloatCount; }
  25216. }
  25217. public float GetUnpackedFloat(int index) {
  25218. return result.GetUnpackedFloat(index);
  25219. }
  25220. public Builder SetUnpackedFloat(int index, float value) {
  25221. PrepareBuilder();
  25222. result.unpackedFloat_[index] = value;
  25223. return this;
  25224. }
  25225. public Builder AddUnpackedFloat(float value) {
  25226. PrepareBuilder();
  25227. result.unpackedFloat_.Add(value);
  25228. return this;
  25229. }
  25230. public Builder AddRangeUnpackedFloat(scg::IEnumerable<float> values) {
  25231. PrepareBuilder();
  25232. result.unpackedFloat_.Add(values);
  25233. return this;
  25234. }
  25235. public Builder ClearUnpackedFloat() {
  25236. PrepareBuilder();
  25237. result.unpackedFloat_.Clear();
  25238. return this;
  25239. }
  25240. public pbc::IPopsicleList<double> UnpackedDoubleList {
  25241. get { return PrepareBuilder().unpackedDouble_; }
  25242. }
  25243. public int UnpackedDoubleCount {
  25244. get { return result.UnpackedDoubleCount; }
  25245. }
  25246. public double GetUnpackedDouble(int index) {
  25247. return result.GetUnpackedDouble(index);
  25248. }
  25249. public Builder SetUnpackedDouble(int index, double value) {
  25250. PrepareBuilder();
  25251. result.unpackedDouble_[index] = value;
  25252. return this;
  25253. }
  25254. public Builder AddUnpackedDouble(double value) {
  25255. PrepareBuilder();
  25256. result.unpackedDouble_.Add(value);
  25257. return this;
  25258. }
  25259. public Builder AddRangeUnpackedDouble(scg::IEnumerable<double> values) {
  25260. PrepareBuilder();
  25261. result.unpackedDouble_.Add(values);
  25262. return this;
  25263. }
  25264. public Builder ClearUnpackedDouble() {
  25265. PrepareBuilder();
  25266. result.unpackedDouble_.Clear();
  25267. return this;
  25268. }
  25269. public pbc::IPopsicleList<bool> UnpackedBoolList {
  25270. get { return PrepareBuilder().unpackedBool_; }
  25271. }
  25272. public int UnpackedBoolCount {
  25273. get { return result.UnpackedBoolCount; }
  25274. }
  25275. public bool GetUnpackedBool(int index) {
  25276. return result.GetUnpackedBool(index);
  25277. }
  25278. public Builder SetUnpackedBool(int index, bool value) {
  25279. PrepareBuilder();
  25280. result.unpackedBool_[index] = value;
  25281. return this;
  25282. }
  25283. public Builder AddUnpackedBool(bool value) {
  25284. PrepareBuilder();
  25285. result.unpackedBool_.Add(value);
  25286. return this;
  25287. }
  25288. public Builder AddRangeUnpackedBool(scg::IEnumerable<bool> values) {
  25289. PrepareBuilder();
  25290. result.unpackedBool_.Add(values);
  25291. return this;
  25292. }
  25293. public Builder ClearUnpackedBool() {
  25294. PrepareBuilder();
  25295. result.unpackedBool_.Clear();
  25296. return this;
  25297. }
  25298. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> UnpackedEnumList {
  25299. get { return PrepareBuilder().unpackedEnum_; }
  25300. }
  25301. public int UnpackedEnumCount {
  25302. get { return result.UnpackedEnumCount; }
  25303. }
  25304. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetUnpackedEnum(int index) {
  25305. return result.GetUnpackedEnum(index);
  25306. }
  25307. public Builder SetUnpackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  25308. PrepareBuilder();
  25309. result.unpackedEnum_[index] = value;
  25310. return this;
  25311. }
  25312. public Builder AddUnpackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  25313. PrepareBuilder();
  25314. result.unpackedEnum_.Add(value);
  25315. return this;
  25316. }
  25317. public Builder AddRangeUnpackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
  25318. PrepareBuilder();
  25319. result.unpackedEnum_.Add(values);
  25320. return this;
  25321. }
  25322. public Builder ClearUnpackedEnum() {
  25323. PrepareBuilder();
  25324. result.unpackedEnum_.Clear();
  25325. return this;
  25326. }
  25327. }
  25328. static TestUnpackedTypes() {
  25329. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  25330. }
  25331. }
  25332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  25333. public sealed partial class TestPackedExtensions : pb::ExtendableMessage<TestPackedExtensions, TestPackedExtensions.Builder> {
  25334. private TestPackedExtensions() { }
  25335. private static readonly TestPackedExtensions defaultInstance = new TestPackedExtensions().MakeReadOnly();
  25336. private static readonly string[] _testPackedExtensionsFieldNames = new string[] { };
  25337. private static readonly uint[] _testPackedExtensionsFieldTags = new uint[] { };
  25338. public static TestPackedExtensions DefaultInstance {
  25339. get { return defaultInstance; }
  25340. }
  25341. public override TestPackedExtensions DefaultInstanceForType {
  25342. get { return DefaultInstance; }
  25343. }
  25344. protected override TestPackedExtensions ThisMessage {
  25345. get { return this; }
  25346. }
  25347. public static pbd::MessageDescriptor Descriptor {
  25348. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestPackedExtensions__Descriptor; }
  25349. }
  25350. protected override pb::FieldAccess.FieldAccessorTable<TestPackedExtensions, TestPackedExtensions.Builder> InternalFieldAccessors {
  25351. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestPackedExtensions__FieldAccessorTable; }
  25352. }
  25353. public override bool IsInitialized {
  25354. get {
  25355. if (!ExtensionsAreInitialized) return false;
  25356. return true;
  25357. }
  25358. }
  25359. public override void WriteTo(pb::ICodedOutputStream output) {
  25360. CalcSerializedSize();
  25361. string[] field_names = _testPackedExtensionsFieldNames;
  25362. pb::ExtendableMessage<TestPackedExtensions, TestPackedExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  25363. extensionWriter.WriteUntil(536870912, output);
  25364. UnknownFields.WriteTo(output);
  25365. }
  25366. private int memoizedSerializedSize = -1;
  25367. public override int SerializedSize {
  25368. get {
  25369. int size = memoizedSerializedSize;
  25370. if (size != -1) return size;
  25371. return CalcSerializedSize();
  25372. }
  25373. }
  25374. private int CalcSerializedSize() {
  25375. int size = memoizedSerializedSize;
  25376. if (size != -1) return size;
  25377. size = 0;
  25378. size += ExtensionsSerializedSize;
  25379. size += UnknownFields.SerializedSize;
  25380. memoizedSerializedSize = size;
  25381. return size;
  25382. }
  25383. public static TestPackedExtensions ParseFrom(pb::ByteString data) {
  25384. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  25385. }
  25386. public static TestPackedExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  25387. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  25388. }
  25389. public static TestPackedExtensions ParseFrom(byte[] data) {
  25390. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  25391. }
  25392. public static TestPackedExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  25393. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  25394. }
  25395. public static TestPackedExtensions ParseFrom(global::System.IO.Stream input) {
  25396. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  25397. }
  25398. public static TestPackedExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  25399. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  25400. }
  25401. public static TestPackedExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
  25402. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  25403. }
  25404. public static TestPackedExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  25405. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  25406. }
  25407. public static TestPackedExtensions ParseFrom(pb::ICodedInputStream input) {
  25408. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  25409. }
  25410. public static TestPackedExtensions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  25411. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  25412. }
  25413. private TestPackedExtensions MakeReadOnly() {
  25414. return this;
  25415. }
  25416. public static Builder CreateBuilder() { return new Builder(); }
  25417. public override Builder ToBuilder() { return CreateBuilder(this); }
  25418. public override Builder CreateBuilderForType() { return new Builder(); }
  25419. public static Builder CreateBuilder(TestPackedExtensions prototype) {
  25420. return new Builder(prototype);
  25421. }
  25422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  25423. public sealed partial class Builder : pb::ExtendableBuilder<TestPackedExtensions, Builder> {
  25424. protected override Builder ThisBuilder {
  25425. get { return this; }
  25426. }
  25427. public Builder() {
  25428. result = DefaultInstance;
  25429. resultIsReadOnly = true;
  25430. }
  25431. internal Builder(TestPackedExtensions cloneFrom) {
  25432. result = cloneFrom;
  25433. resultIsReadOnly = true;
  25434. }
  25435. private bool resultIsReadOnly;
  25436. private TestPackedExtensions result;
  25437. private TestPackedExtensions PrepareBuilder() {
  25438. if (resultIsReadOnly) {
  25439. TestPackedExtensions original = result;
  25440. result = new TestPackedExtensions();
  25441. resultIsReadOnly = false;
  25442. MergeFrom(original);
  25443. }
  25444. return result;
  25445. }
  25446. public override bool IsInitialized {
  25447. get { return result.IsInitialized; }
  25448. }
  25449. protected override TestPackedExtensions MessageBeingBuilt {
  25450. get { return PrepareBuilder(); }
  25451. }
  25452. public override Builder Clear() {
  25453. result = DefaultInstance;
  25454. resultIsReadOnly = true;
  25455. return this;
  25456. }
  25457. public override Builder Clone() {
  25458. if (resultIsReadOnly) {
  25459. return new Builder(result);
  25460. } else {
  25461. return new Builder().MergeFrom(result);
  25462. }
  25463. }
  25464. public override pbd::MessageDescriptor DescriptorForType {
  25465. get { return global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.Descriptor; }
  25466. }
  25467. public override TestPackedExtensions DefaultInstanceForType {
  25468. get { return global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.DefaultInstance; }
  25469. }
  25470. public override TestPackedExtensions BuildPartial() {
  25471. if (resultIsReadOnly) {
  25472. return result;
  25473. }
  25474. resultIsReadOnly = true;
  25475. return result.MakeReadOnly();
  25476. }
  25477. public override Builder MergeFrom(pb::IMessage other) {
  25478. if (other is TestPackedExtensions) {
  25479. return MergeFrom((TestPackedExtensions) other);
  25480. } else {
  25481. base.MergeFrom(other);
  25482. return this;
  25483. }
  25484. }
  25485. public override Builder MergeFrom(TestPackedExtensions other) {
  25486. if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.DefaultInstance) return this;
  25487. PrepareBuilder();
  25488. this.MergeExtensionFields(other);
  25489. this.MergeUnknownFields(other.UnknownFields);
  25490. return this;
  25491. }
  25492. public override Builder MergeFrom(pb::ICodedInputStream input) {
  25493. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  25494. }
  25495. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  25496. PrepareBuilder();
  25497. pb::UnknownFieldSet.Builder unknownFields = null;
  25498. uint tag;
  25499. string field_name;
  25500. while (input.ReadTag(out tag, out field_name)) {
  25501. if(tag == 0 && field_name != null) {
  25502. int field_ordinal = global::System.Array.BinarySearch(_testPackedExtensionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  25503. if(field_ordinal >= 0)
  25504. tag = _testPackedExtensionsFieldTags[field_ordinal];
  25505. else {
  25506. if (unknownFields == null) {
  25507. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  25508. }
  25509. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  25510. continue;
  25511. }
  25512. }
  25513. switch (tag) {
  25514. case 0: {
  25515. throw pb::InvalidProtocolBufferException.InvalidTag();
  25516. }
  25517. default: {
  25518. if (pb::WireFormat.IsEndGroupTag(tag)) {
  25519. if (unknownFields != null) {
  25520. this.UnknownFields = unknownFields.Build();
  25521. }
  25522. return this;
  25523. }
  25524. if (unknownFields == null) {
  25525. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  25526. }
  25527. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  25528. break;
  25529. }
  25530. }
  25531. }
  25532. if (unknownFields != null) {
  25533. this.UnknownFields = unknownFields.Build();
  25534. }
  25535. return this;
  25536. }
  25537. }
  25538. static TestPackedExtensions() {
  25539. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  25540. }
  25541. }
  25542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  25543. public sealed partial class TestUnpackedExtensions : pb::ExtendableMessage<TestUnpackedExtensions, TestUnpackedExtensions.Builder> {
  25544. private TestUnpackedExtensions() { }
  25545. private static readonly TestUnpackedExtensions defaultInstance = new TestUnpackedExtensions().MakeReadOnly();
  25546. private static readonly string[] _testUnpackedExtensionsFieldNames = new string[] { };
  25547. private static readonly uint[] _testUnpackedExtensionsFieldTags = new uint[] { };
  25548. public static TestUnpackedExtensions DefaultInstance {
  25549. get { return defaultInstance; }
  25550. }
  25551. public override TestUnpackedExtensions DefaultInstanceForType {
  25552. get { return DefaultInstance; }
  25553. }
  25554. protected override TestUnpackedExtensions ThisMessage {
  25555. get { return this; }
  25556. }
  25557. public static pbd::MessageDescriptor Descriptor {
  25558. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestUnpackedExtensions__Descriptor; }
  25559. }
  25560. protected override pb::FieldAccess.FieldAccessorTable<TestUnpackedExtensions, TestUnpackedExtensions.Builder> InternalFieldAccessors {
  25561. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestUnpackedExtensions__FieldAccessorTable; }
  25562. }
  25563. public override bool IsInitialized {
  25564. get {
  25565. if (!ExtensionsAreInitialized) return false;
  25566. return true;
  25567. }
  25568. }
  25569. public override void WriteTo(pb::ICodedOutputStream output) {
  25570. CalcSerializedSize();
  25571. string[] field_names = _testUnpackedExtensionsFieldNames;
  25572. pb::ExtendableMessage<TestUnpackedExtensions, TestUnpackedExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  25573. extensionWriter.WriteUntil(536870912, output);
  25574. UnknownFields.WriteTo(output);
  25575. }
  25576. private int memoizedSerializedSize = -1;
  25577. public override int SerializedSize {
  25578. get {
  25579. int size = memoizedSerializedSize;
  25580. if (size != -1) return size;
  25581. return CalcSerializedSize();
  25582. }
  25583. }
  25584. private int CalcSerializedSize() {
  25585. int size = memoizedSerializedSize;
  25586. if (size != -1) return size;
  25587. size = 0;
  25588. size += ExtensionsSerializedSize;
  25589. size += UnknownFields.SerializedSize;
  25590. memoizedSerializedSize = size;
  25591. return size;
  25592. }
  25593. public static TestUnpackedExtensions ParseFrom(pb::ByteString data) {
  25594. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  25595. }
  25596. public static TestUnpackedExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  25597. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  25598. }
  25599. public static TestUnpackedExtensions ParseFrom(byte[] data) {
  25600. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  25601. }
  25602. public static TestUnpackedExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  25603. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  25604. }
  25605. public static TestUnpackedExtensions ParseFrom(global::System.IO.Stream input) {
  25606. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  25607. }
  25608. public static TestUnpackedExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  25609. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  25610. }
  25611. public static TestUnpackedExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
  25612. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  25613. }
  25614. public static TestUnpackedExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  25615. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  25616. }
  25617. public static TestUnpackedExtensions ParseFrom(pb::ICodedInputStream input) {
  25618. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  25619. }
  25620. public static TestUnpackedExtensions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  25621. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  25622. }
  25623. private TestUnpackedExtensions MakeReadOnly() {
  25624. return this;
  25625. }
  25626. public static Builder CreateBuilder() { return new Builder(); }
  25627. public override Builder ToBuilder() { return CreateBuilder(this); }
  25628. public override Builder CreateBuilderForType() { return new Builder(); }
  25629. public static Builder CreateBuilder(TestUnpackedExtensions prototype) {
  25630. return new Builder(prototype);
  25631. }
  25632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  25633. public sealed partial class Builder : pb::ExtendableBuilder<TestUnpackedExtensions, Builder> {
  25634. protected override Builder ThisBuilder {
  25635. get { return this; }
  25636. }
  25637. public Builder() {
  25638. result = DefaultInstance;
  25639. resultIsReadOnly = true;
  25640. }
  25641. internal Builder(TestUnpackedExtensions cloneFrom) {
  25642. result = cloneFrom;
  25643. resultIsReadOnly = true;
  25644. }
  25645. private bool resultIsReadOnly;
  25646. private TestUnpackedExtensions result;
  25647. private TestUnpackedExtensions PrepareBuilder() {
  25648. if (resultIsReadOnly) {
  25649. TestUnpackedExtensions original = result;
  25650. result = new TestUnpackedExtensions();
  25651. resultIsReadOnly = false;
  25652. MergeFrom(original);
  25653. }
  25654. return result;
  25655. }
  25656. public override bool IsInitialized {
  25657. get { return result.IsInitialized; }
  25658. }
  25659. protected override TestUnpackedExtensions MessageBeingBuilt {
  25660. get { return PrepareBuilder(); }
  25661. }
  25662. public override Builder Clear() {
  25663. result = DefaultInstance;
  25664. resultIsReadOnly = true;
  25665. return this;
  25666. }
  25667. public override Builder Clone() {
  25668. if (resultIsReadOnly) {
  25669. return new Builder(result);
  25670. } else {
  25671. return new Builder().MergeFrom(result);
  25672. }
  25673. }
  25674. public override pbd::MessageDescriptor DescriptorForType {
  25675. get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.Descriptor; }
  25676. }
  25677. public override TestUnpackedExtensions DefaultInstanceForType {
  25678. get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.DefaultInstance; }
  25679. }
  25680. public override TestUnpackedExtensions BuildPartial() {
  25681. if (resultIsReadOnly) {
  25682. return result;
  25683. }
  25684. resultIsReadOnly = true;
  25685. return result.MakeReadOnly();
  25686. }
  25687. public override Builder MergeFrom(pb::IMessage other) {
  25688. if (other is TestUnpackedExtensions) {
  25689. return MergeFrom((TestUnpackedExtensions) other);
  25690. } else {
  25691. base.MergeFrom(other);
  25692. return this;
  25693. }
  25694. }
  25695. public override Builder MergeFrom(TestUnpackedExtensions other) {
  25696. if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.DefaultInstance) return this;
  25697. PrepareBuilder();
  25698. this.MergeExtensionFields(other);
  25699. this.MergeUnknownFields(other.UnknownFields);
  25700. return this;
  25701. }
  25702. public override Builder MergeFrom(pb::ICodedInputStream input) {
  25703. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  25704. }
  25705. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  25706. PrepareBuilder();
  25707. pb::UnknownFieldSet.Builder unknownFields = null;
  25708. uint tag;
  25709. string field_name;
  25710. while (input.ReadTag(out tag, out field_name)) {
  25711. if(tag == 0 && field_name != null) {
  25712. int field_ordinal = global::System.Array.BinarySearch(_testUnpackedExtensionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  25713. if(field_ordinal >= 0)
  25714. tag = _testUnpackedExtensionsFieldTags[field_ordinal];
  25715. else {
  25716. if (unknownFields == null) {
  25717. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  25718. }
  25719. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  25720. continue;
  25721. }
  25722. }
  25723. switch (tag) {
  25724. case 0: {
  25725. throw pb::InvalidProtocolBufferException.InvalidTag();
  25726. }
  25727. default: {
  25728. if (pb::WireFormat.IsEndGroupTag(tag)) {
  25729. if (unknownFields != null) {
  25730. this.UnknownFields = unknownFields.Build();
  25731. }
  25732. return this;
  25733. }
  25734. if (unknownFields == null) {
  25735. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  25736. }
  25737. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  25738. break;
  25739. }
  25740. }
  25741. }
  25742. if (unknownFields != null) {
  25743. this.UnknownFields = unknownFields.Build();
  25744. }
  25745. return this;
  25746. }
  25747. }
  25748. static TestUnpackedExtensions() {
  25749. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  25750. }
  25751. }
  25752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  25753. public sealed partial class TestDynamicExtensions : pb::GeneratedMessage<TestDynamicExtensions, TestDynamicExtensions.Builder> {
  25754. private TestDynamicExtensions() { }
  25755. private static readonly TestDynamicExtensions defaultInstance = new TestDynamicExtensions().MakeReadOnly();
  25756. private static readonly string[] _testDynamicExtensionsFieldNames = new string[] { "dynamic_enum_extension", "dynamic_message_extension", "enum_extension", "message_extension", "packed_extension", "repeated_extension", "scalar_extension" };
  25757. private static readonly uint[] _testDynamicExtensionsFieldTags = new uint[] { 16016, 16034, 16008, 16026, 16050, 16042, 16005 };
  25758. public static TestDynamicExtensions DefaultInstance {
  25759. get { return defaultInstance; }
  25760. }
  25761. public override TestDynamicExtensions DefaultInstanceForType {
  25762. get { return DefaultInstance; }
  25763. }
  25764. protected override TestDynamicExtensions ThisMessage {
  25765. get { return this; }
  25766. }
  25767. public static pbd::MessageDescriptor Descriptor {
  25768. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDynamicExtensions__Descriptor; }
  25769. }
  25770. protected override pb::FieldAccess.FieldAccessorTable<TestDynamicExtensions, TestDynamicExtensions.Builder> InternalFieldAccessors {
  25771. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDynamicExtensions__FieldAccessorTable; }
  25772. }
  25773. #region Nested types
  25774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  25775. public static partial class Types {
  25776. public enum DynamicEnumType {
  25777. DYNAMIC_FOO = 2200,
  25778. DYNAMIC_BAR = 2201,
  25779. DYNAMIC_BAZ = 2202,
  25780. }
  25781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  25782. public sealed partial class DynamicMessageType : pb::GeneratedMessage<DynamicMessageType, DynamicMessageType.Builder> {
  25783. private DynamicMessageType() { }
  25784. private static readonly DynamicMessageType defaultInstance = new DynamicMessageType().MakeReadOnly();
  25785. private static readonly string[] _dynamicMessageTypeFieldNames = new string[] { "dynamic_field" };
  25786. private static readonly uint[] _dynamicMessageTypeFieldTags = new uint[] { 16800 };
  25787. public static DynamicMessageType DefaultInstance {
  25788. get { return defaultInstance; }
  25789. }
  25790. public override DynamicMessageType DefaultInstanceForType {
  25791. get { return DefaultInstance; }
  25792. }
  25793. protected override DynamicMessageType ThisMessage {
  25794. get { return this; }
  25795. }
  25796. public static pbd::MessageDescriptor Descriptor {
  25797. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__Descriptor; }
  25798. }
  25799. protected override pb::FieldAccess.FieldAccessorTable<DynamicMessageType, DynamicMessageType.Builder> InternalFieldAccessors {
  25800. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__FieldAccessorTable; }
  25801. }
  25802. public const int DynamicFieldFieldNumber = 2100;
  25803. private bool hasDynamicField;
  25804. private int dynamicField_;
  25805. public bool HasDynamicField {
  25806. get { return hasDynamicField; }
  25807. }
  25808. public int DynamicField {
  25809. get { return dynamicField_; }
  25810. }
  25811. public override bool IsInitialized {
  25812. get {
  25813. return true;
  25814. }
  25815. }
  25816. public override void WriteTo(pb::ICodedOutputStream output) {
  25817. CalcSerializedSize();
  25818. string[] field_names = _dynamicMessageTypeFieldNames;
  25819. if (hasDynamicField) {
  25820. output.WriteInt32(2100, field_names[0], DynamicField);
  25821. }
  25822. UnknownFields.WriteTo(output);
  25823. }
  25824. private int memoizedSerializedSize = -1;
  25825. public override int SerializedSize {
  25826. get {
  25827. int size = memoizedSerializedSize;
  25828. if (size != -1) return size;
  25829. return CalcSerializedSize();
  25830. }
  25831. }
  25832. private int CalcSerializedSize() {
  25833. int size = memoizedSerializedSize;
  25834. if (size != -1) return size;
  25835. size = 0;
  25836. if (hasDynamicField) {
  25837. size += pb::CodedOutputStream.ComputeInt32Size(2100, DynamicField);
  25838. }
  25839. size += UnknownFields.SerializedSize;
  25840. memoizedSerializedSize = size;
  25841. return size;
  25842. }
  25843. public static DynamicMessageType ParseFrom(pb::ByteString data) {
  25844. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  25845. }
  25846. public static DynamicMessageType ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  25847. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  25848. }
  25849. public static DynamicMessageType ParseFrom(byte[] data) {
  25850. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  25851. }
  25852. public static DynamicMessageType ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  25853. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  25854. }
  25855. public static DynamicMessageType ParseFrom(global::System.IO.Stream input) {
  25856. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  25857. }
  25858. public static DynamicMessageType ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  25859. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  25860. }
  25861. public static DynamicMessageType ParseDelimitedFrom(global::System.IO.Stream input) {
  25862. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  25863. }
  25864. public static DynamicMessageType ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  25865. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  25866. }
  25867. public static DynamicMessageType ParseFrom(pb::ICodedInputStream input) {
  25868. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  25869. }
  25870. public static DynamicMessageType ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  25871. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  25872. }
  25873. private DynamicMessageType MakeReadOnly() {
  25874. return this;
  25875. }
  25876. public static Builder CreateBuilder() { return new Builder(); }
  25877. public override Builder ToBuilder() { return CreateBuilder(this); }
  25878. public override Builder CreateBuilderForType() { return new Builder(); }
  25879. public static Builder CreateBuilder(DynamicMessageType prototype) {
  25880. return new Builder(prototype);
  25881. }
  25882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  25883. public sealed partial class Builder : pb::GeneratedBuilder<DynamicMessageType, Builder> {
  25884. protected override Builder ThisBuilder {
  25885. get { return this; }
  25886. }
  25887. public Builder() {
  25888. result = DefaultInstance;
  25889. resultIsReadOnly = true;
  25890. }
  25891. internal Builder(DynamicMessageType cloneFrom) {
  25892. result = cloneFrom;
  25893. resultIsReadOnly = true;
  25894. }
  25895. private bool resultIsReadOnly;
  25896. private DynamicMessageType result;
  25897. private DynamicMessageType PrepareBuilder() {
  25898. if (resultIsReadOnly) {
  25899. DynamicMessageType original = result;
  25900. result = new DynamicMessageType();
  25901. resultIsReadOnly = false;
  25902. MergeFrom(original);
  25903. }
  25904. return result;
  25905. }
  25906. public override bool IsInitialized {
  25907. get { return result.IsInitialized; }
  25908. }
  25909. protected override DynamicMessageType MessageBeingBuilt {
  25910. get { return PrepareBuilder(); }
  25911. }
  25912. public override Builder Clear() {
  25913. result = DefaultInstance;
  25914. resultIsReadOnly = true;
  25915. return this;
  25916. }
  25917. public override Builder Clone() {
  25918. if (resultIsReadOnly) {
  25919. return new Builder(result);
  25920. } else {
  25921. return new Builder().MergeFrom(result);
  25922. }
  25923. }
  25924. public override pbd::MessageDescriptor DescriptorForType {
  25925. get { return global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Descriptor; }
  25926. }
  25927. public override DynamicMessageType DefaultInstanceForType {
  25928. get { return global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance; }
  25929. }
  25930. public override DynamicMessageType BuildPartial() {
  25931. if (resultIsReadOnly) {
  25932. return result;
  25933. }
  25934. resultIsReadOnly = true;
  25935. return result.MakeReadOnly();
  25936. }
  25937. public override Builder MergeFrom(pb::IMessage other) {
  25938. if (other is DynamicMessageType) {
  25939. return MergeFrom((DynamicMessageType) other);
  25940. } else {
  25941. base.MergeFrom(other);
  25942. return this;
  25943. }
  25944. }
  25945. public override Builder MergeFrom(DynamicMessageType other) {
  25946. if (other == global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance) return this;
  25947. PrepareBuilder();
  25948. if (other.HasDynamicField) {
  25949. DynamicField = other.DynamicField;
  25950. }
  25951. this.MergeUnknownFields(other.UnknownFields);
  25952. return this;
  25953. }
  25954. public override Builder MergeFrom(pb::ICodedInputStream input) {
  25955. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  25956. }
  25957. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  25958. PrepareBuilder();
  25959. pb::UnknownFieldSet.Builder unknownFields = null;
  25960. uint tag;
  25961. string field_name;
  25962. while (input.ReadTag(out tag, out field_name)) {
  25963. if(tag == 0 && field_name != null) {
  25964. int field_ordinal = global::System.Array.BinarySearch(_dynamicMessageTypeFieldNames, field_name, global::System.StringComparer.Ordinal);
  25965. if(field_ordinal >= 0)
  25966. tag = _dynamicMessageTypeFieldTags[field_ordinal];
  25967. else {
  25968. if (unknownFields == null) {
  25969. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  25970. }
  25971. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  25972. continue;
  25973. }
  25974. }
  25975. switch (tag) {
  25976. case 0: {
  25977. throw pb::InvalidProtocolBufferException.InvalidTag();
  25978. }
  25979. default: {
  25980. if (pb::WireFormat.IsEndGroupTag(tag)) {
  25981. if (unknownFields != null) {
  25982. this.UnknownFields = unknownFields.Build();
  25983. }
  25984. return this;
  25985. }
  25986. if (unknownFields == null) {
  25987. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  25988. }
  25989. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  25990. break;
  25991. }
  25992. case 16800: {
  25993. result.hasDynamicField = input.ReadInt32(ref result.dynamicField_);
  25994. break;
  25995. }
  25996. }
  25997. }
  25998. if (unknownFields != null) {
  25999. this.UnknownFields = unknownFields.Build();
  26000. }
  26001. return this;
  26002. }
  26003. public bool HasDynamicField {
  26004. get { return result.hasDynamicField; }
  26005. }
  26006. public int DynamicField {
  26007. get { return result.DynamicField; }
  26008. set { SetDynamicField(value); }
  26009. }
  26010. public Builder SetDynamicField(int value) {
  26011. PrepareBuilder();
  26012. result.hasDynamicField = true;
  26013. result.dynamicField_ = value;
  26014. return this;
  26015. }
  26016. public Builder ClearDynamicField() {
  26017. PrepareBuilder();
  26018. result.hasDynamicField = false;
  26019. result.dynamicField_ = 0;
  26020. return this;
  26021. }
  26022. }
  26023. static DynamicMessageType() {
  26024. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  26025. }
  26026. }
  26027. }
  26028. #endregion
  26029. public const int ScalarExtensionFieldNumber = 2000;
  26030. private bool hasScalarExtension;
  26031. private uint scalarExtension_;
  26032. public bool HasScalarExtension {
  26033. get { return hasScalarExtension; }
  26034. }
  26035. [global::System.CLSCompliant(false)]
  26036. public uint ScalarExtension {
  26037. get { return scalarExtension_; }
  26038. }
  26039. public const int EnumExtensionFieldNumber = 2001;
  26040. private bool hasEnumExtension;
  26041. private global::Google.ProtocolBuffers.TestProtos.ForeignEnum enumExtension_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  26042. public bool HasEnumExtension {
  26043. get { return hasEnumExtension; }
  26044. }
  26045. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumExtension {
  26046. get { return enumExtension_; }
  26047. }
  26048. public const int DynamicEnumExtensionFieldNumber = 2002;
  26049. private bool hasDynamicEnumExtension;
  26050. private global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType dynamicEnumExtension_ = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType.DYNAMIC_FOO;
  26051. public bool HasDynamicEnumExtension {
  26052. get { return hasDynamicEnumExtension; }
  26053. }
  26054. public global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtension {
  26055. get { return dynamicEnumExtension_; }
  26056. }
  26057. public const int MessageExtensionFieldNumber = 2003;
  26058. private bool hasMessageExtension;
  26059. private global::Google.ProtocolBuffers.TestProtos.ForeignMessage messageExtension_;
  26060. public bool HasMessageExtension {
  26061. get { return hasMessageExtension; }
  26062. }
  26063. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageExtension {
  26064. get { return messageExtension_ ?? global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; }
  26065. }
  26066. public const int DynamicMessageExtensionFieldNumber = 2004;
  26067. private bool hasDynamicMessageExtension;
  26068. private global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType dynamicMessageExtension_;
  26069. public bool HasDynamicMessageExtension {
  26070. get { return hasDynamicMessageExtension; }
  26071. }
  26072. public global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType DynamicMessageExtension {
  26073. get { return dynamicMessageExtension_ ?? global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance; }
  26074. }
  26075. public const int RepeatedExtensionFieldNumber = 2005;
  26076. private pbc::PopsicleList<string> repeatedExtension_ = new pbc::PopsicleList<string>();
  26077. public scg::IList<string> RepeatedExtensionList {
  26078. get { return pbc::Lists.AsReadOnly(repeatedExtension_); }
  26079. }
  26080. public int RepeatedExtensionCount {
  26081. get { return repeatedExtension_.Count; }
  26082. }
  26083. public string GetRepeatedExtension(int index) {
  26084. return repeatedExtension_[index];
  26085. }
  26086. public const int PackedExtensionFieldNumber = 2006;
  26087. private int packedExtensionMemoizedSerializedSize;
  26088. private pbc::PopsicleList<int> packedExtension_ = new pbc::PopsicleList<int>();
  26089. public scg::IList<int> PackedExtensionList {
  26090. get { return pbc::Lists.AsReadOnly(packedExtension_); }
  26091. }
  26092. public int PackedExtensionCount {
  26093. get { return packedExtension_.Count; }
  26094. }
  26095. public int GetPackedExtension(int index) {
  26096. return packedExtension_[index];
  26097. }
  26098. public override bool IsInitialized {
  26099. get {
  26100. return true;
  26101. }
  26102. }
  26103. public override void WriteTo(pb::ICodedOutputStream output) {
  26104. CalcSerializedSize();
  26105. string[] field_names = _testDynamicExtensionsFieldNames;
  26106. if (hasScalarExtension) {
  26107. output.WriteFixed32(2000, field_names[6], ScalarExtension);
  26108. }
  26109. if (hasEnumExtension) {
  26110. output.WriteEnum(2001, field_names[2], (int) EnumExtension, EnumExtension);
  26111. }
  26112. if (hasDynamicEnumExtension) {
  26113. output.WriteEnum(2002, field_names[0], (int) DynamicEnumExtension, DynamicEnumExtension);
  26114. }
  26115. if (hasMessageExtension) {
  26116. output.WriteMessage(2003, field_names[3], MessageExtension);
  26117. }
  26118. if (hasDynamicMessageExtension) {
  26119. output.WriteMessage(2004, field_names[1], DynamicMessageExtension);
  26120. }
  26121. if (repeatedExtension_.Count > 0) {
  26122. output.WriteStringArray(2005, field_names[5], repeatedExtension_);
  26123. }
  26124. if (packedExtension_.Count > 0) {
  26125. output.WritePackedSInt32Array(2006, field_names[4], packedExtensionMemoizedSerializedSize, packedExtension_);
  26126. }
  26127. UnknownFields.WriteTo(output);
  26128. }
  26129. private int memoizedSerializedSize = -1;
  26130. public override int SerializedSize {
  26131. get {
  26132. int size = memoizedSerializedSize;
  26133. if (size != -1) return size;
  26134. return CalcSerializedSize();
  26135. }
  26136. }
  26137. private int CalcSerializedSize() {
  26138. int size = memoizedSerializedSize;
  26139. if (size != -1) return size;
  26140. size = 0;
  26141. if (hasScalarExtension) {
  26142. size += pb::CodedOutputStream.ComputeFixed32Size(2000, ScalarExtension);
  26143. }
  26144. if (hasEnumExtension) {
  26145. size += pb::CodedOutputStream.ComputeEnumSize(2001, (int) EnumExtension);
  26146. }
  26147. if (hasDynamicEnumExtension) {
  26148. size += pb::CodedOutputStream.ComputeEnumSize(2002, (int) DynamicEnumExtension);
  26149. }
  26150. if (hasMessageExtension) {
  26151. size += pb::CodedOutputStream.ComputeMessageSize(2003, MessageExtension);
  26152. }
  26153. if (hasDynamicMessageExtension) {
  26154. size += pb::CodedOutputStream.ComputeMessageSize(2004, DynamicMessageExtension);
  26155. }
  26156. {
  26157. int dataSize = 0;
  26158. foreach (string element in RepeatedExtensionList) {
  26159. dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
  26160. }
  26161. size += dataSize;
  26162. size += 2 * repeatedExtension_.Count;
  26163. }
  26164. {
  26165. int dataSize = 0;
  26166. foreach (int element in PackedExtensionList) {
  26167. dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
  26168. }
  26169. size += dataSize;
  26170. if (packedExtension_.Count != 0) {
  26171. size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  26172. }
  26173. packedExtensionMemoizedSerializedSize = dataSize;
  26174. }
  26175. size += UnknownFields.SerializedSize;
  26176. memoizedSerializedSize = size;
  26177. return size;
  26178. }
  26179. public static TestDynamicExtensions ParseFrom(pb::ByteString data) {
  26180. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  26181. }
  26182. public static TestDynamicExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  26183. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  26184. }
  26185. public static TestDynamicExtensions ParseFrom(byte[] data) {
  26186. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  26187. }
  26188. public static TestDynamicExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  26189. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  26190. }
  26191. public static TestDynamicExtensions ParseFrom(global::System.IO.Stream input) {
  26192. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  26193. }
  26194. public static TestDynamicExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  26195. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  26196. }
  26197. public static TestDynamicExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
  26198. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  26199. }
  26200. public static TestDynamicExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  26201. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  26202. }
  26203. public static TestDynamicExtensions ParseFrom(pb::ICodedInputStream input) {
  26204. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  26205. }
  26206. public static TestDynamicExtensions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  26207. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  26208. }
  26209. private TestDynamicExtensions MakeReadOnly() {
  26210. repeatedExtension_.MakeReadOnly();
  26211. packedExtension_.MakeReadOnly();
  26212. return this;
  26213. }
  26214. public static Builder CreateBuilder() { return new Builder(); }
  26215. public override Builder ToBuilder() { return CreateBuilder(this); }
  26216. public override Builder CreateBuilderForType() { return new Builder(); }
  26217. public static Builder CreateBuilder(TestDynamicExtensions prototype) {
  26218. return new Builder(prototype);
  26219. }
  26220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  26221. public sealed partial class Builder : pb::GeneratedBuilder<TestDynamicExtensions, Builder> {
  26222. protected override Builder ThisBuilder {
  26223. get { return this; }
  26224. }
  26225. public Builder() {
  26226. result = DefaultInstance;
  26227. resultIsReadOnly = true;
  26228. }
  26229. internal Builder(TestDynamicExtensions cloneFrom) {
  26230. result = cloneFrom;
  26231. resultIsReadOnly = true;
  26232. }
  26233. private bool resultIsReadOnly;
  26234. private TestDynamicExtensions result;
  26235. private TestDynamicExtensions PrepareBuilder() {
  26236. if (resultIsReadOnly) {
  26237. TestDynamicExtensions original = result;
  26238. result = new TestDynamicExtensions();
  26239. resultIsReadOnly = false;
  26240. MergeFrom(original);
  26241. }
  26242. return result;
  26243. }
  26244. public override bool IsInitialized {
  26245. get { return result.IsInitialized; }
  26246. }
  26247. protected override TestDynamicExtensions MessageBeingBuilt {
  26248. get { return PrepareBuilder(); }
  26249. }
  26250. public override Builder Clear() {
  26251. result = DefaultInstance;
  26252. resultIsReadOnly = true;
  26253. return this;
  26254. }
  26255. public override Builder Clone() {
  26256. if (resultIsReadOnly) {
  26257. return new Builder(result);
  26258. } else {
  26259. return new Builder().MergeFrom(result);
  26260. }
  26261. }
  26262. public override pbd::MessageDescriptor DescriptorForType {
  26263. get { return global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Descriptor; }
  26264. }
  26265. public override TestDynamicExtensions DefaultInstanceForType {
  26266. get { return global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.DefaultInstance; }
  26267. }
  26268. public override TestDynamicExtensions BuildPartial() {
  26269. if (resultIsReadOnly) {
  26270. return result;
  26271. }
  26272. resultIsReadOnly = true;
  26273. return result.MakeReadOnly();
  26274. }
  26275. public override Builder MergeFrom(pb::IMessage other) {
  26276. if (other is TestDynamicExtensions) {
  26277. return MergeFrom((TestDynamicExtensions) other);
  26278. } else {
  26279. base.MergeFrom(other);
  26280. return this;
  26281. }
  26282. }
  26283. public override Builder MergeFrom(TestDynamicExtensions other) {
  26284. if (other == global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.DefaultInstance) return this;
  26285. PrepareBuilder();
  26286. if (other.HasScalarExtension) {
  26287. ScalarExtension = other.ScalarExtension;
  26288. }
  26289. if (other.HasEnumExtension) {
  26290. EnumExtension = other.EnumExtension;
  26291. }
  26292. if (other.HasDynamicEnumExtension) {
  26293. DynamicEnumExtension = other.DynamicEnumExtension;
  26294. }
  26295. if (other.HasMessageExtension) {
  26296. MergeMessageExtension(other.MessageExtension);
  26297. }
  26298. if (other.HasDynamicMessageExtension) {
  26299. MergeDynamicMessageExtension(other.DynamicMessageExtension);
  26300. }
  26301. if (other.repeatedExtension_.Count != 0) {
  26302. result.repeatedExtension_.Add(other.repeatedExtension_);
  26303. }
  26304. if (other.packedExtension_.Count != 0) {
  26305. result.packedExtension_.Add(other.packedExtension_);
  26306. }
  26307. this.MergeUnknownFields(other.UnknownFields);
  26308. return this;
  26309. }
  26310. public override Builder MergeFrom(pb::ICodedInputStream input) {
  26311. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  26312. }
  26313. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  26314. PrepareBuilder();
  26315. pb::UnknownFieldSet.Builder unknownFields = null;
  26316. uint tag;
  26317. string field_name;
  26318. while (input.ReadTag(out tag, out field_name)) {
  26319. if(tag == 0 && field_name != null) {
  26320. int field_ordinal = global::System.Array.BinarySearch(_testDynamicExtensionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  26321. if(field_ordinal >= 0)
  26322. tag = _testDynamicExtensionsFieldTags[field_ordinal];
  26323. else {
  26324. if (unknownFields == null) {
  26325. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  26326. }
  26327. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  26328. continue;
  26329. }
  26330. }
  26331. switch (tag) {
  26332. case 0: {
  26333. throw pb::InvalidProtocolBufferException.InvalidTag();
  26334. }
  26335. default: {
  26336. if (pb::WireFormat.IsEndGroupTag(tag)) {
  26337. if (unknownFields != null) {
  26338. this.UnknownFields = unknownFields.Build();
  26339. }
  26340. return this;
  26341. }
  26342. if (unknownFields == null) {
  26343. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  26344. }
  26345. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  26346. break;
  26347. }
  26348. case 16005: {
  26349. result.hasScalarExtension = input.ReadFixed32(ref result.scalarExtension_);
  26350. break;
  26351. }
  26352. case 16008: {
  26353. object unknown;
  26354. if(input.ReadEnum(ref result.enumExtension_, out unknown)) {
  26355. result.hasEnumExtension = true;
  26356. } else if(unknown is int) {
  26357. if (unknownFields == null) {
  26358. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  26359. }
  26360. unknownFields.MergeVarintField(2001, (ulong)(int)unknown);
  26361. }
  26362. break;
  26363. }
  26364. case 16016: {
  26365. object unknown;
  26366. if(input.ReadEnum(ref result.dynamicEnumExtension_, out unknown)) {
  26367. result.hasDynamicEnumExtension = true;
  26368. } else if(unknown is int) {
  26369. if (unknownFields == null) {
  26370. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  26371. }
  26372. unknownFields.MergeVarintField(2002, (ulong)(int)unknown);
  26373. }
  26374. break;
  26375. }
  26376. case 16026: {
  26377. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  26378. if (result.hasMessageExtension) {
  26379. subBuilder.MergeFrom(MessageExtension);
  26380. }
  26381. input.ReadMessage(subBuilder, extensionRegistry);
  26382. MessageExtension = subBuilder.BuildPartial();
  26383. break;
  26384. }
  26385. case 16034: {
  26386. global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.CreateBuilder();
  26387. if (result.hasDynamicMessageExtension) {
  26388. subBuilder.MergeFrom(DynamicMessageExtension);
  26389. }
  26390. input.ReadMessage(subBuilder, extensionRegistry);
  26391. DynamicMessageExtension = subBuilder.BuildPartial();
  26392. break;
  26393. }
  26394. case 16042: {
  26395. input.ReadStringArray(tag, field_name, result.repeatedExtension_);
  26396. break;
  26397. }
  26398. case 16050:
  26399. case 16048: {
  26400. input.ReadSInt32Array(tag, field_name, result.packedExtension_);
  26401. break;
  26402. }
  26403. }
  26404. }
  26405. if (unknownFields != null) {
  26406. this.UnknownFields = unknownFields.Build();
  26407. }
  26408. return this;
  26409. }
  26410. public bool HasScalarExtension {
  26411. get { return result.hasScalarExtension; }
  26412. }
  26413. [global::System.CLSCompliant(false)]
  26414. public uint ScalarExtension {
  26415. get { return result.ScalarExtension; }
  26416. set { SetScalarExtension(value); }
  26417. }
  26418. [global::System.CLSCompliant(false)]
  26419. public Builder SetScalarExtension(uint value) {
  26420. PrepareBuilder();
  26421. result.hasScalarExtension = true;
  26422. result.scalarExtension_ = value;
  26423. return this;
  26424. }
  26425. public Builder ClearScalarExtension() {
  26426. PrepareBuilder();
  26427. result.hasScalarExtension = false;
  26428. result.scalarExtension_ = 0;
  26429. return this;
  26430. }
  26431. public bool HasEnumExtension {
  26432. get { return result.hasEnumExtension; }
  26433. }
  26434. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumExtension {
  26435. get { return result.EnumExtension; }
  26436. set { SetEnumExtension(value); }
  26437. }
  26438. public Builder SetEnumExtension(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  26439. PrepareBuilder();
  26440. result.hasEnumExtension = true;
  26441. result.enumExtension_ = value;
  26442. return this;
  26443. }
  26444. public Builder ClearEnumExtension() {
  26445. PrepareBuilder();
  26446. result.hasEnumExtension = false;
  26447. result.enumExtension_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  26448. return this;
  26449. }
  26450. public bool HasDynamicEnumExtension {
  26451. get { return result.hasDynamicEnumExtension; }
  26452. }
  26453. public global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtension {
  26454. get { return result.DynamicEnumExtension; }
  26455. set { SetDynamicEnumExtension(value); }
  26456. }
  26457. public Builder SetDynamicEnumExtension(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType value) {
  26458. PrepareBuilder();
  26459. result.hasDynamicEnumExtension = true;
  26460. result.dynamicEnumExtension_ = value;
  26461. return this;
  26462. }
  26463. public Builder ClearDynamicEnumExtension() {
  26464. PrepareBuilder();
  26465. result.hasDynamicEnumExtension = false;
  26466. result.dynamicEnumExtension_ = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType.DYNAMIC_FOO;
  26467. return this;
  26468. }
  26469. public bool HasMessageExtension {
  26470. get { return result.hasMessageExtension; }
  26471. }
  26472. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageExtension {
  26473. get { return result.MessageExtension; }
  26474. set { SetMessageExtension(value); }
  26475. }
  26476. public Builder SetMessageExtension(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  26477. pb::ThrowHelper.ThrowIfNull(value, "value");
  26478. PrepareBuilder();
  26479. result.hasMessageExtension = true;
  26480. result.messageExtension_ = value;
  26481. return this;
  26482. }
  26483. public Builder SetMessageExtension(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  26484. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  26485. PrepareBuilder();
  26486. result.hasMessageExtension = true;
  26487. result.messageExtension_ = builderForValue.Build();
  26488. return this;
  26489. }
  26490. public Builder MergeMessageExtension(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  26491. pb::ThrowHelper.ThrowIfNull(value, "value");
  26492. PrepareBuilder();
  26493. if (result.hasMessageExtension &&
  26494. result.messageExtension_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
  26495. result.messageExtension_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.messageExtension_).MergeFrom(value).BuildPartial();
  26496. } else {
  26497. result.messageExtension_ = value;
  26498. }
  26499. result.hasMessageExtension = true;
  26500. return this;
  26501. }
  26502. public Builder ClearMessageExtension() {
  26503. PrepareBuilder();
  26504. result.hasMessageExtension = false;
  26505. result.messageExtension_ = null;
  26506. return this;
  26507. }
  26508. public bool HasDynamicMessageExtension {
  26509. get { return result.hasDynamicMessageExtension; }
  26510. }
  26511. public global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType DynamicMessageExtension {
  26512. get { return result.DynamicMessageExtension; }
  26513. set { SetDynamicMessageExtension(value); }
  26514. }
  26515. public Builder SetDynamicMessageExtension(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType value) {
  26516. pb::ThrowHelper.ThrowIfNull(value, "value");
  26517. PrepareBuilder();
  26518. result.hasDynamicMessageExtension = true;
  26519. result.dynamicMessageExtension_ = value;
  26520. return this;
  26521. }
  26522. public Builder SetDynamicMessageExtension(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Builder builderForValue) {
  26523. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  26524. PrepareBuilder();
  26525. result.hasDynamicMessageExtension = true;
  26526. result.dynamicMessageExtension_ = builderForValue.Build();
  26527. return this;
  26528. }
  26529. public Builder MergeDynamicMessageExtension(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType value) {
  26530. pb::ThrowHelper.ThrowIfNull(value, "value");
  26531. PrepareBuilder();
  26532. if (result.hasDynamicMessageExtension &&
  26533. result.dynamicMessageExtension_ != global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance) {
  26534. result.dynamicMessageExtension_ = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.CreateBuilder(result.dynamicMessageExtension_).MergeFrom(value).BuildPartial();
  26535. } else {
  26536. result.dynamicMessageExtension_ = value;
  26537. }
  26538. result.hasDynamicMessageExtension = true;
  26539. return this;
  26540. }
  26541. public Builder ClearDynamicMessageExtension() {
  26542. PrepareBuilder();
  26543. result.hasDynamicMessageExtension = false;
  26544. result.dynamicMessageExtension_ = null;
  26545. return this;
  26546. }
  26547. public pbc::IPopsicleList<string> RepeatedExtensionList {
  26548. get { return PrepareBuilder().repeatedExtension_; }
  26549. }
  26550. public int RepeatedExtensionCount {
  26551. get { return result.RepeatedExtensionCount; }
  26552. }
  26553. public string GetRepeatedExtension(int index) {
  26554. return result.GetRepeatedExtension(index);
  26555. }
  26556. public Builder SetRepeatedExtension(int index, string value) {
  26557. pb::ThrowHelper.ThrowIfNull(value, "value");
  26558. PrepareBuilder();
  26559. result.repeatedExtension_[index] = value;
  26560. return this;
  26561. }
  26562. public Builder AddRepeatedExtension(string value) {
  26563. pb::ThrowHelper.ThrowIfNull(value, "value");
  26564. PrepareBuilder();
  26565. result.repeatedExtension_.Add(value);
  26566. return this;
  26567. }
  26568. public Builder AddRangeRepeatedExtension(scg::IEnumerable<string> values) {
  26569. PrepareBuilder();
  26570. result.repeatedExtension_.Add(values);
  26571. return this;
  26572. }
  26573. public Builder ClearRepeatedExtension() {
  26574. PrepareBuilder();
  26575. result.repeatedExtension_.Clear();
  26576. return this;
  26577. }
  26578. public pbc::IPopsicleList<int> PackedExtensionList {
  26579. get { return PrepareBuilder().packedExtension_; }
  26580. }
  26581. public int PackedExtensionCount {
  26582. get { return result.PackedExtensionCount; }
  26583. }
  26584. public int GetPackedExtension(int index) {
  26585. return result.GetPackedExtension(index);
  26586. }
  26587. public Builder SetPackedExtension(int index, int value) {
  26588. PrepareBuilder();
  26589. result.packedExtension_[index] = value;
  26590. return this;
  26591. }
  26592. public Builder AddPackedExtension(int value) {
  26593. PrepareBuilder();
  26594. result.packedExtension_.Add(value);
  26595. return this;
  26596. }
  26597. public Builder AddRangePackedExtension(scg::IEnumerable<int> values) {
  26598. PrepareBuilder();
  26599. result.packedExtension_.Add(values);
  26600. return this;
  26601. }
  26602. public Builder ClearPackedExtension() {
  26603. PrepareBuilder();
  26604. result.packedExtension_.Clear();
  26605. return this;
  26606. }
  26607. }
  26608. static TestDynamicExtensions() {
  26609. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  26610. }
  26611. }
  26612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  26613. public sealed partial class TestRepeatedScalarDifferentTagSizes : pb::GeneratedMessage<TestRepeatedScalarDifferentTagSizes, TestRepeatedScalarDifferentTagSizes.Builder> {
  26614. private TestRepeatedScalarDifferentTagSizes() { }
  26615. private static readonly TestRepeatedScalarDifferentTagSizes defaultInstance = new TestRepeatedScalarDifferentTagSizes().MakeReadOnly();
  26616. private static readonly string[] _testRepeatedScalarDifferentTagSizesFieldNames = new string[] { "repeated_fixed32", "repeated_fixed64", "repeated_float", "repeated_int32", "repeated_int64", "repeated_uint64" };
  26617. private static readonly uint[] _testRepeatedScalarDifferentTagSizesFieldTags = new uint[] { 101, 16369, 2097141, 104, 16376, 2097144 };
  26618. public static TestRepeatedScalarDifferentTagSizes DefaultInstance {
  26619. get { return defaultInstance; }
  26620. }
  26621. public override TestRepeatedScalarDifferentTagSizes DefaultInstanceForType {
  26622. get { return DefaultInstance; }
  26623. }
  26624. protected override TestRepeatedScalarDifferentTagSizes ThisMessage {
  26625. get { return this; }
  26626. }
  26627. public static pbd::MessageDescriptor Descriptor {
  26628. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__Descriptor; }
  26629. }
  26630. protected override pb::FieldAccess.FieldAccessorTable<TestRepeatedScalarDifferentTagSizes, TestRepeatedScalarDifferentTagSizes.Builder> InternalFieldAccessors {
  26631. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable; }
  26632. }
  26633. public const int RepeatedFixed32FieldNumber = 12;
  26634. private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>();
  26635. [global::System.CLSCompliant(false)]
  26636. public scg::IList<uint> RepeatedFixed32List {
  26637. get { return pbc::Lists.AsReadOnly(repeatedFixed32_); }
  26638. }
  26639. public int RepeatedFixed32Count {
  26640. get { return repeatedFixed32_.Count; }
  26641. }
  26642. [global::System.CLSCompliant(false)]
  26643. public uint GetRepeatedFixed32(int index) {
  26644. return repeatedFixed32_[index];
  26645. }
  26646. public const int RepeatedInt32FieldNumber = 13;
  26647. private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>();
  26648. public scg::IList<int> RepeatedInt32List {
  26649. get { return pbc::Lists.AsReadOnly(repeatedInt32_); }
  26650. }
  26651. public int RepeatedInt32Count {
  26652. get { return repeatedInt32_.Count; }
  26653. }
  26654. public int GetRepeatedInt32(int index) {
  26655. return repeatedInt32_[index];
  26656. }
  26657. public const int RepeatedFixed64FieldNumber = 2046;
  26658. private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>();
  26659. [global::System.CLSCompliant(false)]
  26660. public scg::IList<ulong> RepeatedFixed64List {
  26661. get { return pbc::Lists.AsReadOnly(repeatedFixed64_); }
  26662. }
  26663. public int RepeatedFixed64Count {
  26664. get { return repeatedFixed64_.Count; }
  26665. }
  26666. [global::System.CLSCompliant(false)]
  26667. public ulong GetRepeatedFixed64(int index) {
  26668. return repeatedFixed64_[index];
  26669. }
  26670. public const int RepeatedInt64FieldNumber = 2047;
  26671. private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>();
  26672. public scg::IList<long> RepeatedInt64List {
  26673. get { return pbc::Lists.AsReadOnly(repeatedInt64_); }
  26674. }
  26675. public int RepeatedInt64Count {
  26676. get { return repeatedInt64_.Count; }
  26677. }
  26678. public long GetRepeatedInt64(int index) {
  26679. return repeatedInt64_[index];
  26680. }
  26681. public const int RepeatedFloatFieldNumber = 262142;
  26682. private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>();
  26683. public scg::IList<float> RepeatedFloatList {
  26684. get { return pbc::Lists.AsReadOnly(repeatedFloat_); }
  26685. }
  26686. public int RepeatedFloatCount {
  26687. get { return repeatedFloat_.Count; }
  26688. }
  26689. public float GetRepeatedFloat(int index) {
  26690. return repeatedFloat_[index];
  26691. }
  26692. public const int RepeatedUint64FieldNumber = 262143;
  26693. private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>();
  26694. [global::System.CLSCompliant(false)]
  26695. public scg::IList<ulong> RepeatedUint64List {
  26696. get { return pbc::Lists.AsReadOnly(repeatedUint64_); }
  26697. }
  26698. public int RepeatedUint64Count {
  26699. get { return repeatedUint64_.Count; }
  26700. }
  26701. [global::System.CLSCompliant(false)]
  26702. public ulong GetRepeatedUint64(int index) {
  26703. return repeatedUint64_[index];
  26704. }
  26705. public override bool IsInitialized {
  26706. get {
  26707. return true;
  26708. }
  26709. }
  26710. public override void WriteTo(pb::ICodedOutputStream output) {
  26711. CalcSerializedSize();
  26712. string[] field_names = _testRepeatedScalarDifferentTagSizesFieldNames;
  26713. if (repeatedFixed32_.Count > 0) {
  26714. output.WriteFixed32Array(12, field_names[0], repeatedFixed32_);
  26715. }
  26716. if (repeatedInt32_.Count > 0) {
  26717. output.WriteInt32Array(13, field_names[3], repeatedInt32_);
  26718. }
  26719. if (repeatedFixed64_.Count > 0) {
  26720. output.WriteFixed64Array(2046, field_names[1], repeatedFixed64_);
  26721. }
  26722. if (repeatedInt64_.Count > 0) {
  26723. output.WriteInt64Array(2047, field_names[4], repeatedInt64_);
  26724. }
  26725. if (repeatedFloat_.Count > 0) {
  26726. output.WriteFloatArray(262142, field_names[2], repeatedFloat_);
  26727. }
  26728. if (repeatedUint64_.Count > 0) {
  26729. output.WriteUInt64Array(262143, field_names[5], repeatedUint64_);
  26730. }
  26731. UnknownFields.WriteTo(output);
  26732. }
  26733. private int memoizedSerializedSize = -1;
  26734. public override int SerializedSize {
  26735. get {
  26736. int size = memoizedSerializedSize;
  26737. if (size != -1) return size;
  26738. return CalcSerializedSize();
  26739. }
  26740. }
  26741. private int CalcSerializedSize() {
  26742. int size = memoizedSerializedSize;
  26743. if (size != -1) return size;
  26744. size = 0;
  26745. {
  26746. int dataSize = 0;
  26747. dataSize = 4 * repeatedFixed32_.Count;
  26748. size += dataSize;
  26749. size += 1 * repeatedFixed32_.Count;
  26750. }
  26751. {
  26752. int dataSize = 0;
  26753. foreach (int element in RepeatedInt32List) {
  26754. dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
  26755. }
  26756. size += dataSize;
  26757. size += 1 * repeatedInt32_.Count;
  26758. }
  26759. {
  26760. int dataSize = 0;
  26761. dataSize = 8 * repeatedFixed64_.Count;
  26762. size += dataSize;
  26763. size += 2 * repeatedFixed64_.Count;
  26764. }
  26765. {
  26766. int dataSize = 0;
  26767. foreach (long element in RepeatedInt64List) {
  26768. dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
  26769. }
  26770. size += dataSize;
  26771. size += 2 * repeatedInt64_.Count;
  26772. }
  26773. {
  26774. int dataSize = 0;
  26775. dataSize = 4 * repeatedFloat_.Count;
  26776. size += dataSize;
  26777. size += 3 * repeatedFloat_.Count;
  26778. }
  26779. {
  26780. int dataSize = 0;
  26781. foreach (ulong element in RepeatedUint64List) {
  26782. dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
  26783. }
  26784. size += dataSize;
  26785. size += 3 * repeatedUint64_.Count;
  26786. }
  26787. size += UnknownFields.SerializedSize;
  26788. memoizedSerializedSize = size;
  26789. return size;
  26790. }
  26791. public static TestRepeatedScalarDifferentTagSizes ParseFrom(pb::ByteString data) {
  26792. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  26793. }
  26794. public static TestRepeatedScalarDifferentTagSizes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  26795. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  26796. }
  26797. public static TestRepeatedScalarDifferentTagSizes ParseFrom(byte[] data) {
  26798. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  26799. }
  26800. public static TestRepeatedScalarDifferentTagSizes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  26801. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  26802. }
  26803. public static TestRepeatedScalarDifferentTagSizes ParseFrom(global::System.IO.Stream input) {
  26804. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  26805. }
  26806. public static TestRepeatedScalarDifferentTagSizes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  26807. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  26808. }
  26809. public static TestRepeatedScalarDifferentTagSizes ParseDelimitedFrom(global::System.IO.Stream input) {
  26810. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  26811. }
  26812. public static TestRepeatedScalarDifferentTagSizes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  26813. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  26814. }
  26815. public static TestRepeatedScalarDifferentTagSizes ParseFrom(pb::ICodedInputStream input) {
  26816. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  26817. }
  26818. public static TestRepeatedScalarDifferentTagSizes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  26819. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  26820. }
  26821. private TestRepeatedScalarDifferentTagSizes MakeReadOnly() {
  26822. repeatedFixed32_.MakeReadOnly();
  26823. repeatedInt32_.MakeReadOnly();
  26824. repeatedFixed64_.MakeReadOnly();
  26825. repeatedInt64_.MakeReadOnly();
  26826. repeatedFloat_.MakeReadOnly();
  26827. repeatedUint64_.MakeReadOnly();
  26828. return this;
  26829. }
  26830. public static Builder CreateBuilder() { return new Builder(); }
  26831. public override Builder ToBuilder() { return CreateBuilder(this); }
  26832. public override Builder CreateBuilderForType() { return new Builder(); }
  26833. public static Builder CreateBuilder(TestRepeatedScalarDifferentTagSizes prototype) {
  26834. return new Builder(prototype);
  26835. }
  26836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  26837. public sealed partial class Builder : pb::GeneratedBuilder<TestRepeatedScalarDifferentTagSizes, Builder> {
  26838. protected override Builder ThisBuilder {
  26839. get { return this; }
  26840. }
  26841. public Builder() {
  26842. result = DefaultInstance;
  26843. resultIsReadOnly = true;
  26844. }
  26845. internal Builder(TestRepeatedScalarDifferentTagSizes cloneFrom) {
  26846. result = cloneFrom;
  26847. resultIsReadOnly = true;
  26848. }
  26849. private bool resultIsReadOnly;
  26850. private TestRepeatedScalarDifferentTagSizes result;
  26851. private TestRepeatedScalarDifferentTagSizes PrepareBuilder() {
  26852. if (resultIsReadOnly) {
  26853. TestRepeatedScalarDifferentTagSizes original = result;
  26854. result = new TestRepeatedScalarDifferentTagSizes();
  26855. resultIsReadOnly = false;
  26856. MergeFrom(original);
  26857. }
  26858. return result;
  26859. }
  26860. public override bool IsInitialized {
  26861. get { return result.IsInitialized; }
  26862. }
  26863. protected override TestRepeatedScalarDifferentTagSizes MessageBeingBuilt {
  26864. get { return PrepareBuilder(); }
  26865. }
  26866. public override Builder Clear() {
  26867. result = DefaultInstance;
  26868. resultIsReadOnly = true;
  26869. return this;
  26870. }
  26871. public override Builder Clone() {
  26872. if (resultIsReadOnly) {
  26873. return new Builder(result);
  26874. } else {
  26875. return new Builder().MergeFrom(result);
  26876. }
  26877. }
  26878. public override pbd::MessageDescriptor DescriptorForType {
  26879. get { return global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.Descriptor; }
  26880. }
  26881. public override TestRepeatedScalarDifferentTagSizes DefaultInstanceForType {
  26882. get { return global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.DefaultInstance; }
  26883. }
  26884. public override TestRepeatedScalarDifferentTagSizes BuildPartial() {
  26885. if (resultIsReadOnly) {
  26886. return result;
  26887. }
  26888. resultIsReadOnly = true;
  26889. return result.MakeReadOnly();
  26890. }
  26891. public override Builder MergeFrom(pb::IMessage other) {
  26892. if (other is TestRepeatedScalarDifferentTagSizes) {
  26893. return MergeFrom((TestRepeatedScalarDifferentTagSizes) other);
  26894. } else {
  26895. base.MergeFrom(other);
  26896. return this;
  26897. }
  26898. }
  26899. public override Builder MergeFrom(TestRepeatedScalarDifferentTagSizes other) {
  26900. if (other == global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.DefaultInstance) return this;
  26901. PrepareBuilder();
  26902. if (other.repeatedFixed32_.Count != 0) {
  26903. result.repeatedFixed32_.Add(other.repeatedFixed32_);
  26904. }
  26905. if (other.repeatedInt32_.Count != 0) {
  26906. result.repeatedInt32_.Add(other.repeatedInt32_);
  26907. }
  26908. if (other.repeatedFixed64_.Count != 0) {
  26909. result.repeatedFixed64_.Add(other.repeatedFixed64_);
  26910. }
  26911. if (other.repeatedInt64_.Count != 0) {
  26912. result.repeatedInt64_.Add(other.repeatedInt64_);
  26913. }
  26914. if (other.repeatedFloat_.Count != 0) {
  26915. result.repeatedFloat_.Add(other.repeatedFloat_);
  26916. }
  26917. if (other.repeatedUint64_.Count != 0) {
  26918. result.repeatedUint64_.Add(other.repeatedUint64_);
  26919. }
  26920. this.MergeUnknownFields(other.UnknownFields);
  26921. return this;
  26922. }
  26923. public override Builder MergeFrom(pb::ICodedInputStream input) {
  26924. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  26925. }
  26926. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  26927. PrepareBuilder();
  26928. pb::UnknownFieldSet.Builder unknownFields = null;
  26929. uint tag;
  26930. string field_name;
  26931. while (input.ReadTag(out tag, out field_name)) {
  26932. if(tag == 0 && field_name != null) {
  26933. int field_ordinal = global::System.Array.BinarySearch(_testRepeatedScalarDifferentTagSizesFieldNames, field_name, global::System.StringComparer.Ordinal);
  26934. if(field_ordinal >= 0)
  26935. tag = _testRepeatedScalarDifferentTagSizesFieldTags[field_ordinal];
  26936. else {
  26937. if (unknownFields == null) {
  26938. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  26939. }
  26940. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  26941. continue;
  26942. }
  26943. }
  26944. switch (tag) {
  26945. case 0: {
  26946. throw pb::InvalidProtocolBufferException.InvalidTag();
  26947. }
  26948. default: {
  26949. if (pb::WireFormat.IsEndGroupTag(tag)) {
  26950. if (unknownFields != null) {
  26951. this.UnknownFields = unknownFields.Build();
  26952. }
  26953. return this;
  26954. }
  26955. if (unknownFields == null) {
  26956. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  26957. }
  26958. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  26959. break;
  26960. }
  26961. case 98:
  26962. case 101: {
  26963. input.ReadFixed32Array(tag, field_name, result.repeatedFixed32_);
  26964. break;
  26965. }
  26966. case 106:
  26967. case 104: {
  26968. input.ReadInt32Array(tag, field_name, result.repeatedInt32_);
  26969. break;
  26970. }
  26971. case 16370:
  26972. case 16369: {
  26973. input.ReadFixed64Array(tag, field_name, result.repeatedFixed64_);
  26974. break;
  26975. }
  26976. case 16378:
  26977. case 16376: {
  26978. input.ReadInt64Array(tag, field_name, result.repeatedInt64_);
  26979. break;
  26980. }
  26981. case 2097138:
  26982. case 2097141: {
  26983. input.ReadFloatArray(tag, field_name, result.repeatedFloat_);
  26984. break;
  26985. }
  26986. case 2097146:
  26987. case 2097144: {
  26988. input.ReadUInt64Array(tag, field_name, result.repeatedUint64_);
  26989. break;
  26990. }
  26991. }
  26992. }
  26993. if (unknownFields != null) {
  26994. this.UnknownFields = unknownFields.Build();
  26995. }
  26996. return this;
  26997. }
  26998. [global::System.CLSCompliant(false)]
  26999. public pbc::IPopsicleList<uint> RepeatedFixed32List {
  27000. get { return PrepareBuilder().repeatedFixed32_; }
  27001. }
  27002. public int RepeatedFixed32Count {
  27003. get { return result.RepeatedFixed32Count; }
  27004. }
  27005. [global::System.CLSCompliant(false)]
  27006. public uint GetRepeatedFixed32(int index) {
  27007. return result.GetRepeatedFixed32(index);
  27008. }
  27009. [global::System.CLSCompliant(false)]
  27010. public Builder SetRepeatedFixed32(int index, uint value) {
  27011. PrepareBuilder();
  27012. result.repeatedFixed32_[index] = value;
  27013. return this;
  27014. }
  27015. [global::System.CLSCompliant(false)]
  27016. public Builder AddRepeatedFixed32(uint value) {
  27017. PrepareBuilder();
  27018. result.repeatedFixed32_.Add(value);
  27019. return this;
  27020. }
  27021. [global::System.CLSCompliant(false)]
  27022. public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
  27023. PrepareBuilder();
  27024. result.repeatedFixed32_.Add(values);
  27025. return this;
  27026. }
  27027. public Builder ClearRepeatedFixed32() {
  27028. PrepareBuilder();
  27029. result.repeatedFixed32_.Clear();
  27030. return this;
  27031. }
  27032. public pbc::IPopsicleList<int> RepeatedInt32List {
  27033. get { return PrepareBuilder().repeatedInt32_; }
  27034. }
  27035. public int RepeatedInt32Count {
  27036. get { return result.RepeatedInt32Count; }
  27037. }
  27038. public int GetRepeatedInt32(int index) {
  27039. return result.GetRepeatedInt32(index);
  27040. }
  27041. public Builder SetRepeatedInt32(int index, int value) {
  27042. PrepareBuilder();
  27043. result.repeatedInt32_[index] = value;
  27044. return this;
  27045. }
  27046. public Builder AddRepeatedInt32(int value) {
  27047. PrepareBuilder();
  27048. result.repeatedInt32_.Add(value);
  27049. return this;
  27050. }
  27051. public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
  27052. PrepareBuilder();
  27053. result.repeatedInt32_.Add(values);
  27054. return this;
  27055. }
  27056. public Builder ClearRepeatedInt32() {
  27057. PrepareBuilder();
  27058. result.repeatedInt32_.Clear();
  27059. return this;
  27060. }
  27061. [global::System.CLSCompliant(false)]
  27062. public pbc::IPopsicleList<ulong> RepeatedFixed64List {
  27063. get { return PrepareBuilder().repeatedFixed64_; }
  27064. }
  27065. public int RepeatedFixed64Count {
  27066. get { return result.RepeatedFixed64Count; }
  27067. }
  27068. [global::System.CLSCompliant(false)]
  27069. public ulong GetRepeatedFixed64(int index) {
  27070. return result.GetRepeatedFixed64(index);
  27071. }
  27072. [global::System.CLSCompliant(false)]
  27073. public Builder SetRepeatedFixed64(int index, ulong value) {
  27074. PrepareBuilder();
  27075. result.repeatedFixed64_[index] = value;
  27076. return this;
  27077. }
  27078. [global::System.CLSCompliant(false)]
  27079. public Builder AddRepeatedFixed64(ulong value) {
  27080. PrepareBuilder();
  27081. result.repeatedFixed64_.Add(value);
  27082. return this;
  27083. }
  27084. [global::System.CLSCompliant(false)]
  27085. public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
  27086. PrepareBuilder();
  27087. result.repeatedFixed64_.Add(values);
  27088. return this;
  27089. }
  27090. public Builder ClearRepeatedFixed64() {
  27091. PrepareBuilder();
  27092. result.repeatedFixed64_.Clear();
  27093. return this;
  27094. }
  27095. public pbc::IPopsicleList<long> RepeatedInt64List {
  27096. get { return PrepareBuilder().repeatedInt64_; }
  27097. }
  27098. public int RepeatedInt64Count {
  27099. get { return result.RepeatedInt64Count; }
  27100. }
  27101. public long GetRepeatedInt64(int index) {
  27102. return result.GetRepeatedInt64(index);
  27103. }
  27104. public Builder SetRepeatedInt64(int index, long value) {
  27105. PrepareBuilder();
  27106. result.repeatedInt64_[index] = value;
  27107. return this;
  27108. }
  27109. public Builder AddRepeatedInt64(long value) {
  27110. PrepareBuilder();
  27111. result.repeatedInt64_.Add(value);
  27112. return this;
  27113. }
  27114. public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
  27115. PrepareBuilder();
  27116. result.repeatedInt64_.Add(values);
  27117. return this;
  27118. }
  27119. public Builder ClearRepeatedInt64() {
  27120. PrepareBuilder();
  27121. result.repeatedInt64_.Clear();
  27122. return this;
  27123. }
  27124. public pbc::IPopsicleList<float> RepeatedFloatList {
  27125. get { return PrepareBuilder().repeatedFloat_; }
  27126. }
  27127. public int RepeatedFloatCount {
  27128. get { return result.RepeatedFloatCount; }
  27129. }
  27130. public float GetRepeatedFloat(int index) {
  27131. return result.GetRepeatedFloat(index);
  27132. }
  27133. public Builder SetRepeatedFloat(int index, float value) {
  27134. PrepareBuilder();
  27135. result.repeatedFloat_[index] = value;
  27136. return this;
  27137. }
  27138. public Builder AddRepeatedFloat(float value) {
  27139. PrepareBuilder();
  27140. result.repeatedFloat_.Add(value);
  27141. return this;
  27142. }
  27143. public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
  27144. PrepareBuilder();
  27145. result.repeatedFloat_.Add(values);
  27146. return this;
  27147. }
  27148. public Builder ClearRepeatedFloat() {
  27149. PrepareBuilder();
  27150. result.repeatedFloat_.Clear();
  27151. return this;
  27152. }
  27153. [global::System.CLSCompliant(false)]
  27154. public pbc::IPopsicleList<ulong> RepeatedUint64List {
  27155. get { return PrepareBuilder().repeatedUint64_; }
  27156. }
  27157. public int RepeatedUint64Count {
  27158. get { return result.RepeatedUint64Count; }
  27159. }
  27160. [global::System.CLSCompliant(false)]
  27161. public ulong GetRepeatedUint64(int index) {
  27162. return result.GetRepeatedUint64(index);
  27163. }
  27164. [global::System.CLSCompliant(false)]
  27165. public Builder SetRepeatedUint64(int index, ulong value) {
  27166. PrepareBuilder();
  27167. result.repeatedUint64_[index] = value;
  27168. return this;
  27169. }
  27170. [global::System.CLSCompliant(false)]
  27171. public Builder AddRepeatedUint64(ulong value) {
  27172. PrepareBuilder();
  27173. result.repeatedUint64_.Add(value);
  27174. return this;
  27175. }
  27176. [global::System.CLSCompliant(false)]
  27177. public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
  27178. PrepareBuilder();
  27179. result.repeatedUint64_.Add(values);
  27180. return this;
  27181. }
  27182. public Builder ClearRepeatedUint64() {
  27183. PrepareBuilder();
  27184. result.repeatedUint64_.Clear();
  27185. return this;
  27186. }
  27187. }
  27188. static TestRepeatedScalarDifferentTagSizes() {
  27189. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  27190. }
  27191. }
  27192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  27193. public sealed partial class TestParsingMerge : pb::ExtendableMessage<TestParsingMerge, TestParsingMerge.Builder> {
  27194. private TestParsingMerge() { }
  27195. private static readonly TestParsingMerge defaultInstance = new TestParsingMerge().MakeReadOnly();
  27196. private static readonly string[] _testParsingMergeFieldNames = new string[] { "optional_all_types", "optionalgroup", "repeated_all_types", "repeatedgroup", "required_all_types" };
  27197. private static readonly uint[] _testParsingMergeFieldTags = new uint[] { 18, 83, 26, 163, 10 };
  27198. public static TestParsingMerge DefaultInstance {
  27199. get { return defaultInstance; }
  27200. }
  27201. public override TestParsingMerge DefaultInstanceForType {
  27202. get { return DefaultInstance; }
  27203. }
  27204. protected override TestParsingMerge ThisMessage {
  27205. get { return this; }
  27206. }
  27207. public static pbd::MessageDescriptor Descriptor {
  27208. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge__Descriptor; }
  27209. }
  27210. protected override pb::FieldAccess.FieldAccessorTable<TestParsingMerge, TestParsingMerge.Builder> InternalFieldAccessors {
  27211. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge__FieldAccessorTable; }
  27212. }
  27213. public const int OptionalExtFieldNumber = 1000;
  27214. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> OptionalExt;
  27215. public const int RepeatedExtFieldNumber = 1001;
  27216. public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>> RepeatedExt;
  27217. #region Nested types
  27218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  27219. public static partial class Types {
  27220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  27221. public sealed partial class RepeatedFieldsGenerator : pb::GeneratedMessage<RepeatedFieldsGenerator, RepeatedFieldsGenerator.Builder> {
  27222. private RepeatedFieldsGenerator() { }
  27223. private static readonly RepeatedFieldsGenerator defaultInstance = new RepeatedFieldsGenerator().MakeReadOnly();
  27224. private static readonly string[] _repeatedFieldsGeneratorFieldNames = new string[] { "ext1", "ext2", "field1", "field2", "field3", "group1", "group2" };
  27225. private static readonly uint[] _repeatedFieldsGeneratorFieldTags = new uint[] { 8002, 8010, 10, 18, 26, 83, 163 };
  27226. public static RepeatedFieldsGenerator DefaultInstance {
  27227. get { return defaultInstance; }
  27228. }
  27229. public override RepeatedFieldsGenerator DefaultInstanceForType {
  27230. get { return DefaultInstance; }
  27231. }
  27232. protected override RepeatedFieldsGenerator ThisMessage {
  27233. get { return this; }
  27234. }
  27235. public static pbd::MessageDescriptor Descriptor {
  27236. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__Descriptor; }
  27237. }
  27238. protected override pb::FieldAccess.FieldAccessorTable<RepeatedFieldsGenerator, RepeatedFieldsGenerator.Builder> InternalFieldAccessors {
  27239. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__FieldAccessorTable; }
  27240. }
  27241. #region Nested types
  27242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  27243. public static partial class Types {
  27244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  27245. public sealed partial class Group1 : pb::GeneratedMessage<Group1, Group1.Builder> {
  27246. private Group1() { }
  27247. private static readonly Group1 defaultInstance = new Group1().MakeReadOnly();
  27248. private static readonly string[] _group1FieldNames = new string[] { "field1" };
  27249. private static readonly uint[] _group1FieldTags = new uint[] { 90 };
  27250. public static Group1 DefaultInstance {
  27251. get { return defaultInstance; }
  27252. }
  27253. public override Group1 DefaultInstanceForType {
  27254. get { return DefaultInstance; }
  27255. }
  27256. protected override Group1 ThisMessage {
  27257. get { return this; }
  27258. }
  27259. public static pbd::MessageDescriptor Descriptor {
  27260. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1__Descriptor; }
  27261. }
  27262. protected override pb::FieldAccess.FieldAccessorTable<Group1, Group1.Builder> InternalFieldAccessors {
  27263. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1__FieldAccessorTable; }
  27264. }
  27265. public const int Field1FieldNumber = 11;
  27266. private bool hasField1;
  27267. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes field1_;
  27268. public bool HasField1 {
  27269. get { return hasField1; }
  27270. }
  27271. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes Field1 {
  27272. get { return field1_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
  27273. }
  27274. public override bool IsInitialized {
  27275. get {
  27276. return true;
  27277. }
  27278. }
  27279. public override void WriteTo(pb::ICodedOutputStream output) {
  27280. CalcSerializedSize();
  27281. string[] field_names = _group1FieldNames;
  27282. if (hasField1) {
  27283. output.WriteMessage(11, field_names[0], Field1);
  27284. }
  27285. UnknownFields.WriteTo(output);
  27286. }
  27287. private int memoizedSerializedSize = -1;
  27288. public override int SerializedSize {
  27289. get {
  27290. int size = memoizedSerializedSize;
  27291. if (size != -1) return size;
  27292. return CalcSerializedSize();
  27293. }
  27294. }
  27295. private int CalcSerializedSize() {
  27296. int size = memoizedSerializedSize;
  27297. if (size != -1) return size;
  27298. size = 0;
  27299. if (hasField1) {
  27300. size += pb::CodedOutputStream.ComputeMessageSize(11, Field1);
  27301. }
  27302. size += UnknownFields.SerializedSize;
  27303. memoizedSerializedSize = size;
  27304. return size;
  27305. }
  27306. public static Group1 ParseFrom(pb::ByteString data) {
  27307. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  27308. }
  27309. public static Group1 ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  27310. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  27311. }
  27312. public static Group1 ParseFrom(byte[] data) {
  27313. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  27314. }
  27315. public static Group1 ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  27316. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  27317. }
  27318. public static Group1 ParseFrom(global::System.IO.Stream input) {
  27319. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  27320. }
  27321. public static Group1 ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  27322. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  27323. }
  27324. public static Group1 ParseDelimitedFrom(global::System.IO.Stream input) {
  27325. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  27326. }
  27327. public static Group1 ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  27328. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  27329. }
  27330. public static Group1 ParseFrom(pb::ICodedInputStream input) {
  27331. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  27332. }
  27333. public static Group1 ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  27334. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  27335. }
  27336. private Group1 MakeReadOnly() {
  27337. return this;
  27338. }
  27339. public static Builder CreateBuilder() { return new Builder(); }
  27340. public override Builder ToBuilder() { return CreateBuilder(this); }
  27341. public override Builder CreateBuilderForType() { return new Builder(); }
  27342. public static Builder CreateBuilder(Group1 prototype) {
  27343. return new Builder(prototype);
  27344. }
  27345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  27346. public sealed partial class Builder : pb::GeneratedBuilder<Group1, Builder> {
  27347. protected override Builder ThisBuilder {
  27348. get { return this; }
  27349. }
  27350. public Builder() {
  27351. result = DefaultInstance;
  27352. resultIsReadOnly = true;
  27353. }
  27354. internal Builder(Group1 cloneFrom) {
  27355. result = cloneFrom;
  27356. resultIsReadOnly = true;
  27357. }
  27358. private bool resultIsReadOnly;
  27359. private Group1 result;
  27360. private Group1 PrepareBuilder() {
  27361. if (resultIsReadOnly) {
  27362. Group1 original = result;
  27363. result = new Group1();
  27364. resultIsReadOnly = false;
  27365. MergeFrom(original);
  27366. }
  27367. return result;
  27368. }
  27369. public override bool IsInitialized {
  27370. get { return result.IsInitialized; }
  27371. }
  27372. protected override Group1 MessageBeingBuilt {
  27373. get { return PrepareBuilder(); }
  27374. }
  27375. public override Builder Clear() {
  27376. result = DefaultInstance;
  27377. resultIsReadOnly = true;
  27378. return this;
  27379. }
  27380. public override Builder Clone() {
  27381. if (resultIsReadOnly) {
  27382. return new Builder(result);
  27383. } else {
  27384. return new Builder().MergeFrom(result);
  27385. }
  27386. }
  27387. public override pbd::MessageDescriptor DescriptorForType {
  27388. get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Descriptor; }
  27389. }
  27390. public override Group1 DefaultInstanceForType {
  27391. get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.DefaultInstance; }
  27392. }
  27393. public override Group1 BuildPartial() {
  27394. if (resultIsReadOnly) {
  27395. return result;
  27396. }
  27397. resultIsReadOnly = true;
  27398. return result.MakeReadOnly();
  27399. }
  27400. public override Builder MergeFrom(pb::IMessage other) {
  27401. if (other is Group1) {
  27402. return MergeFrom((Group1) other);
  27403. } else {
  27404. base.MergeFrom(other);
  27405. return this;
  27406. }
  27407. }
  27408. public override Builder MergeFrom(Group1 other) {
  27409. if (other == global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.DefaultInstance) return this;
  27410. PrepareBuilder();
  27411. if (other.HasField1) {
  27412. MergeField1(other.Field1);
  27413. }
  27414. this.MergeUnknownFields(other.UnknownFields);
  27415. return this;
  27416. }
  27417. public override Builder MergeFrom(pb::ICodedInputStream input) {
  27418. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  27419. }
  27420. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  27421. PrepareBuilder();
  27422. pb::UnknownFieldSet.Builder unknownFields = null;
  27423. uint tag;
  27424. string field_name;
  27425. while (input.ReadTag(out tag, out field_name)) {
  27426. if(tag == 0 && field_name != null) {
  27427. int field_ordinal = global::System.Array.BinarySearch(_group1FieldNames, field_name, global::System.StringComparer.Ordinal);
  27428. if(field_ordinal >= 0)
  27429. tag = _group1FieldTags[field_ordinal];
  27430. else {
  27431. if (unknownFields == null) {
  27432. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  27433. }
  27434. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  27435. continue;
  27436. }
  27437. }
  27438. switch (tag) {
  27439. case 0: {
  27440. throw pb::InvalidProtocolBufferException.InvalidTag();
  27441. }
  27442. default: {
  27443. if (pb::WireFormat.IsEndGroupTag(tag)) {
  27444. if (unknownFields != null) {
  27445. this.UnknownFields = unknownFields.Build();
  27446. }
  27447. return this;
  27448. }
  27449. if (unknownFields == null) {
  27450. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  27451. }
  27452. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  27453. break;
  27454. }
  27455. case 90: {
  27456. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
  27457. if (result.hasField1) {
  27458. subBuilder.MergeFrom(Field1);
  27459. }
  27460. input.ReadMessage(subBuilder, extensionRegistry);
  27461. Field1 = subBuilder.BuildPartial();
  27462. break;
  27463. }
  27464. }
  27465. }
  27466. if (unknownFields != null) {
  27467. this.UnknownFields = unknownFields.Build();
  27468. }
  27469. return this;
  27470. }
  27471. public bool HasField1 {
  27472. get { return result.hasField1; }
  27473. }
  27474. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes Field1 {
  27475. get { return result.Field1; }
  27476. set { SetField1(value); }
  27477. }
  27478. public Builder SetField1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  27479. pb::ThrowHelper.ThrowIfNull(value, "value");
  27480. PrepareBuilder();
  27481. result.hasField1 = true;
  27482. result.field1_ = value;
  27483. return this;
  27484. }
  27485. public Builder SetField1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  27486. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  27487. PrepareBuilder();
  27488. result.hasField1 = true;
  27489. result.field1_ = builderForValue.Build();
  27490. return this;
  27491. }
  27492. public Builder MergeField1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  27493. pb::ThrowHelper.ThrowIfNull(value, "value");
  27494. PrepareBuilder();
  27495. if (result.hasField1 &&
  27496. result.field1_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
  27497. result.field1_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.field1_).MergeFrom(value).BuildPartial();
  27498. } else {
  27499. result.field1_ = value;
  27500. }
  27501. result.hasField1 = true;
  27502. return this;
  27503. }
  27504. public Builder ClearField1() {
  27505. PrepareBuilder();
  27506. result.hasField1 = false;
  27507. result.field1_ = null;
  27508. return this;
  27509. }
  27510. }
  27511. static Group1() {
  27512. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  27513. }
  27514. }
  27515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  27516. public sealed partial class Group2 : pb::GeneratedMessage<Group2, Group2.Builder> {
  27517. private Group2() { }
  27518. private static readonly Group2 defaultInstance = new Group2().MakeReadOnly();
  27519. private static readonly string[] _group2FieldNames = new string[] { "field1" };
  27520. private static readonly uint[] _group2FieldTags = new uint[] { 170 };
  27521. public static Group2 DefaultInstance {
  27522. get { return defaultInstance; }
  27523. }
  27524. public override Group2 DefaultInstanceForType {
  27525. get { return DefaultInstance; }
  27526. }
  27527. protected override Group2 ThisMessage {
  27528. get { return this; }
  27529. }
  27530. public static pbd::MessageDescriptor Descriptor {
  27531. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2__Descriptor; }
  27532. }
  27533. protected override pb::FieldAccess.FieldAccessorTable<Group2, Group2.Builder> InternalFieldAccessors {
  27534. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2__FieldAccessorTable; }
  27535. }
  27536. public const int Field1FieldNumber = 21;
  27537. private bool hasField1;
  27538. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes field1_;
  27539. public bool HasField1 {
  27540. get { return hasField1; }
  27541. }
  27542. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes Field1 {
  27543. get { return field1_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
  27544. }
  27545. public override bool IsInitialized {
  27546. get {
  27547. return true;
  27548. }
  27549. }
  27550. public override void WriteTo(pb::ICodedOutputStream output) {
  27551. CalcSerializedSize();
  27552. string[] field_names = _group2FieldNames;
  27553. if (hasField1) {
  27554. output.WriteMessage(21, field_names[0], Field1);
  27555. }
  27556. UnknownFields.WriteTo(output);
  27557. }
  27558. private int memoizedSerializedSize = -1;
  27559. public override int SerializedSize {
  27560. get {
  27561. int size = memoizedSerializedSize;
  27562. if (size != -1) return size;
  27563. return CalcSerializedSize();
  27564. }
  27565. }
  27566. private int CalcSerializedSize() {
  27567. int size = memoizedSerializedSize;
  27568. if (size != -1) return size;
  27569. size = 0;
  27570. if (hasField1) {
  27571. size += pb::CodedOutputStream.ComputeMessageSize(21, Field1);
  27572. }
  27573. size += UnknownFields.SerializedSize;
  27574. memoizedSerializedSize = size;
  27575. return size;
  27576. }
  27577. public static Group2 ParseFrom(pb::ByteString data) {
  27578. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  27579. }
  27580. public static Group2 ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  27581. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  27582. }
  27583. public static Group2 ParseFrom(byte[] data) {
  27584. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  27585. }
  27586. public static Group2 ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  27587. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  27588. }
  27589. public static Group2 ParseFrom(global::System.IO.Stream input) {
  27590. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  27591. }
  27592. public static Group2 ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  27593. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  27594. }
  27595. public static Group2 ParseDelimitedFrom(global::System.IO.Stream input) {
  27596. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  27597. }
  27598. public static Group2 ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  27599. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  27600. }
  27601. public static Group2 ParseFrom(pb::ICodedInputStream input) {
  27602. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  27603. }
  27604. public static Group2 ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  27605. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  27606. }
  27607. private Group2 MakeReadOnly() {
  27608. return this;
  27609. }
  27610. public static Builder CreateBuilder() { return new Builder(); }
  27611. public override Builder ToBuilder() { return CreateBuilder(this); }
  27612. public override Builder CreateBuilderForType() { return new Builder(); }
  27613. public static Builder CreateBuilder(Group2 prototype) {
  27614. return new Builder(prototype);
  27615. }
  27616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  27617. public sealed partial class Builder : pb::GeneratedBuilder<Group2, Builder> {
  27618. protected override Builder ThisBuilder {
  27619. get { return this; }
  27620. }
  27621. public Builder() {
  27622. result = DefaultInstance;
  27623. resultIsReadOnly = true;
  27624. }
  27625. internal Builder(Group2 cloneFrom) {
  27626. result = cloneFrom;
  27627. resultIsReadOnly = true;
  27628. }
  27629. private bool resultIsReadOnly;
  27630. private Group2 result;
  27631. private Group2 PrepareBuilder() {
  27632. if (resultIsReadOnly) {
  27633. Group2 original = result;
  27634. result = new Group2();
  27635. resultIsReadOnly = false;
  27636. MergeFrom(original);
  27637. }
  27638. return result;
  27639. }
  27640. public override bool IsInitialized {
  27641. get { return result.IsInitialized; }
  27642. }
  27643. protected override Group2 MessageBeingBuilt {
  27644. get { return PrepareBuilder(); }
  27645. }
  27646. public override Builder Clear() {
  27647. result = DefaultInstance;
  27648. resultIsReadOnly = true;
  27649. return this;
  27650. }
  27651. public override Builder Clone() {
  27652. if (resultIsReadOnly) {
  27653. return new Builder(result);
  27654. } else {
  27655. return new Builder().MergeFrom(result);
  27656. }
  27657. }
  27658. public override pbd::MessageDescriptor DescriptorForType {
  27659. get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Descriptor; }
  27660. }
  27661. public override Group2 DefaultInstanceForType {
  27662. get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.DefaultInstance; }
  27663. }
  27664. public override Group2 BuildPartial() {
  27665. if (resultIsReadOnly) {
  27666. return result;
  27667. }
  27668. resultIsReadOnly = true;
  27669. return result.MakeReadOnly();
  27670. }
  27671. public override Builder MergeFrom(pb::IMessage other) {
  27672. if (other is Group2) {
  27673. return MergeFrom((Group2) other);
  27674. } else {
  27675. base.MergeFrom(other);
  27676. return this;
  27677. }
  27678. }
  27679. public override Builder MergeFrom(Group2 other) {
  27680. if (other == global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.DefaultInstance) return this;
  27681. PrepareBuilder();
  27682. if (other.HasField1) {
  27683. MergeField1(other.Field1);
  27684. }
  27685. this.MergeUnknownFields(other.UnknownFields);
  27686. return this;
  27687. }
  27688. public override Builder MergeFrom(pb::ICodedInputStream input) {
  27689. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  27690. }
  27691. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  27692. PrepareBuilder();
  27693. pb::UnknownFieldSet.Builder unknownFields = null;
  27694. uint tag;
  27695. string field_name;
  27696. while (input.ReadTag(out tag, out field_name)) {
  27697. if(tag == 0 && field_name != null) {
  27698. int field_ordinal = global::System.Array.BinarySearch(_group2FieldNames, field_name, global::System.StringComparer.Ordinal);
  27699. if(field_ordinal >= 0)
  27700. tag = _group2FieldTags[field_ordinal];
  27701. else {
  27702. if (unknownFields == null) {
  27703. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  27704. }
  27705. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  27706. continue;
  27707. }
  27708. }
  27709. switch (tag) {
  27710. case 0: {
  27711. throw pb::InvalidProtocolBufferException.InvalidTag();
  27712. }
  27713. default: {
  27714. if (pb::WireFormat.IsEndGroupTag(tag)) {
  27715. if (unknownFields != null) {
  27716. this.UnknownFields = unknownFields.Build();
  27717. }
  27718. return this;
  27719. }
  27720. if (unknownFields == null) {
  27721. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  27722. }
  27723. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  27724. break;
  27725. }
  27726. case 170: {
  27727. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
  27728. if (result.hasField1) {
  27729. subBuilder.MergeFrom(Field1);
  27730. }
  27731. input.ReadMessage(subBuilder, extensionRegistry);
  27732. Field1 = subBuilder.BuildPartial();
  27733. break;
  27734. }
  27735. }
  27736. }
  27737. if (unknownFields != null) {
  27738. this.UnknownFields = unknownFields.Build();
  27739. }
  27740. return this;
  27741. }
  27742. public bool HasField1 {
  27743. get { return result.hasField1; }
  27744. }
  27745. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes Field1 {
  27746. get { return result.Field1; }
  27747. set { SetField1(value); }
  27748. }
  27749. public Builder SetField1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  27750. pb::ThrowHelper.ThrowIfNull(value, "value");
  27751. PrepareBuilder();
  27752. result.hasField1 = true;
  27753. result.field1_ = value;
  27754. return this;
  27755. }
  27756. public Builder SetField1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  27757. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  27758. PrepareBuilder();
  27759. result.hasField1 = true;
  27760. result.field1_ = builderForValue.Build();
  27761. return this;
  27762. }
  27763. public Builder MergeField1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  27764. pb::ThrowHelper.ThrowIfNull(value, "value");
  27765. PrepareBuilder();
  27766. if (result.hasField1 &&
  27767. result.field1_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
  27768. result.field1_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.field1_).MergeFrom(value).BuildPartial();
  27769. } else {
  27770. result.field1_ = value;
  27771. }
  27772. result.hasField1 = true;
  27773. return this;
  27774. }
  27775. public Builder ClearField1() {
  27776. PrepareBuilder();
  27777. result.hasField1 = false;
  27778. result.field1_ = null;
  27779. return this;
  27780. }
  27781. }
  27782. static Group2() {
  27783. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  27784. }
  27785. }
  27786. }
  27787. #endregion
  27788. public const int Field1FieldNumber = 1;
  27789. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> field1_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>();
  27790. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Field1List {
  27791. get { return field1_; }
  27792. }
  27793. public int Field1Count {
  27794. get { return field1_.Count; }
  27795. }
  27796. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetField1(int index) {
  27797. return field1_[index];
  27798. }
  27799. public const int Field2FieldNumber = 2;
  27800. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> field2_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>();
  27801. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Field2List {
  27802. get { return field2_; }
  27803. }
  27804. public int Field2Count {
  27805. get { return field2_.Count; }
  27806. }
  27807. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetField2(int index) {
  27808. return field2_[index];
  27809. }
  27810. public const int Field3FieldNumber = 3;
  27811. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> field3_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>();
  27812. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Field3List {
  27813. get { return field3_; }
  27814. }
  27815. public int Field3Count {
  27816. get { return field3_.Count; }
  27817. }
  27818. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetField3(int index) {
  27819. return field3_[index];
  27820. }
  27821. public const int Group1FieldNumber = 10;
  27822. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> group1_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1>();
  27823. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> Group1List {
  27824. get { return group1_; }
  27825. }
  27826. public int Group1Count {
  27827. get { return group1_.Count; }
  27828. }
  27829. public global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1 GetGroup1(int index) {
  27830. return group1_[index];
  27831. }
  27832. public const int Group2FieldNumber = 20;
  27833. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> group2_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2>();
  27834. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> Group2List {
  27835. get { return group2_; }
  27836. }
  27837. public int Group2Count {
  27838. get { return group2_.Count; }
  27839. }
  27840. public global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2 GetGroup2(int index) {
  27841. return group2_[index];
  27842. }
  27843. public const int Ext1FieldNumber = 1000;
  27844. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> ext1_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>();
  27845. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Ext1List {
  27846. get { return ext1_; }
  27847. }
  27848. public int Ext1Count {
  27849. get { return ext1_.Count; }
  27850. }
  27851. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetExt1(int index) {
  27852. return ext1_[index];
  27853. }
  27854. public const int Ext2FieldNumber = 1001;
  27855. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> ext2_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>();
  27856. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Ext2List {
  27857. get { return ext2_; }
  27858. }
  27859. public int Ext2Count {
  27860. get { return ext2_.Count; }
  27861. }
  27862. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetExt2(int index) {
  27863. return ext2_[index];
  27864. }
  27865. public override bool IsInitialized {
  27866. get {
  27867. return true;
  27868. }
  27869. }
  27870. public override void WriteTo(pb::ICodedOutputStream output) {
  27871. CalcSerializedSize();
  27872. string[] field_names = _repeatedFieldsGeneratorFieldNames;
  27873. if (field1_.Count > 0) {
  27874. output.WriteMessageArray(1, field_names[2], field1_);
  27875. }
  27876. if (field2_.Count > 0) {
  27877. output.WriteMessageArray(2, field_names[3], field2_);
  27878. }
  27879. if (field3_.Count > 0) {
  27880. output.WriteMessageArray(3, field_names[4], field3_);
  27881. }
  27882. if (group1_.Count > 0) {
  27883. output.WriteGroupArray(10, field_names[5], group1_);
  27884. }
  27885. if (group2_.Count > 0) {
  27886. output.WriteGroupArray(20, field_names[6], group2_);
  27887. }
  27888. if (ext1_.Count > 0) {
  27889. output.WriteMessageArray(1000, field_names[0], ext1_);
  27890. }
  27891. if (ext2_.Count > 0) {
  27892. output.WriteMessageArray(1001, field_names[1], ext2_);
  27893. }
  27894. UnknownFields.WriteTo(output);
  27895. }
  27896. private int memoizedSerializedSize = -1;
  27897. public override int SerializedSize {
  27898. get {
  27899. int size = memoizedSerializedSize;
  27900. if (size != -1) return size;
  27901. return CalcSerializedSize();
  27902. }
  27903. }
  27904. private int CalcSerializedSize() {
  27905. int size = memoizedSerializedSize;
  27906. if (size != -1) return size;
  27907. size = 0;
  27908. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes element in Field1List) {
  27909. size += pb::CodedOutputStream.ComputeMessageSize(1, element);
  27910. }
  27911. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes element in Field2List) {
  27912. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  27913. }
  27914. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes element in Field3List) {
  27915. size += pb::CodedOutputStream.ComputeMessageSize(3, element);
  27916. }
  27917. foreach (global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1 element in Group1List) {
  27918. size += pb::CodedOutputStream.ComputeGroupSize(10, element);
  27919. }
  27920. foreach (global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2 element in Group2List) {
  27921. size += pb::CodedOutputStream.ComputeGroupSize(20, element);
  27922. }
  27923. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes element in Ext1List) {
  27924. size += pb::CodedOutputStream.ComputeMessageSize(1000, element);
  27925. }
  27926. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes element in Ext2List) {
  27927. size += pb::CodedOutputStream.ComputeMessageSize(1001, element);
  27928. }
  27929. size += UnknownFields.SerializedSize;
  27930. memoizedSerializedSize = size;
  27931. return size;
  27932. }
  27933. public static RepeatedFieldsGenerator ParseFrom(pb::ByteString data) {
  27934. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  27935. }
  27936. public static RepeatedFieldsGenerator ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  27937. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  27938. }
  27939. public static RepeatedFieldsGenerator ParseFrom(byte[] data) {
  27940. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  27941. }
  27942. public static RepeatedFieldsGenerator ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  27943. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  27944. }
  27945. public static RepeatedFieldsGenerator ParseFrom(global::System.IO.Stream input) {
  27946. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  27947. }
  27948. public static RepeatedFieldsGenerator ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  27949. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  27950. }
  27951. public static RepeatedFieldsGenerator ParseDelimitedFrom(global::System.IO.Stream input) {
  27952. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  27953. }
  27954. public static RepeatedFieldsGenerator ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  27955. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  27956. }
  27957. public static RepeatedFieldsGenerator ParseFrom(pb::ICodedInputStream input) {
  27958. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  27959. }
  27960. public static RepeatedFieldsGenerator ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  27961. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  27962. }
  27963. private RepeatedFieldsGenerator MakeReadOnly() {
  27964. field1_.MakeReadOnly();
  27965. field2_.MakeReadOnly();
  27966. field3_.MakeReadOnly();
  27967. group1_.MakeReadOnly();
  27968. group2_.MakeReadOnly();
  27969. ext1_.MakeReadOnly();
  27970. ext2_.MakeReadOnly();
  27971. return this;
  27972. }
  27973. public static Builder CreateBuilder() { return new Builder(); }
  27974. public override Builder ToBuilder() { return CreateBuilder(this); }
  27975. public override Builder CreateBuilderForType() { return new Builder(); }
  27976. public static Builder CreateBuilder(RepeatedFieldsGenerator prototype) {
  27977. return new Builder(prototype);
  27978. }
  27979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  27980. public sealed partial class Builder : pb::GeneratedBuilder<RepeatedFieldsGenerator, Builder> {
  27981. protected override Builder ThisBuilder {
  27982. get { return this; }
  27983. }
  27984. public Builder() {
  27985. result = DefaultInstance;
  27986. resultIsReadOnly = true;
  27987. }
  27988. internal Builder(RepeatedFieldsGenerator cloneFrom) {
  27989. result = cloneFrom;
  27990. resultIsReadOnly = true;
  27991. }
  27992. private bool resultIsReadOnly;
  27993. private RepeatedFieldsGenerator result;
  27994. private RepeatedFieldsGenerator PrepareBuilder() {
  27995. if (resultIsReadOnly) {
  27996. RepeatedFieldsGenerator original = result;
  27997. result = new RepeatedFieldsGenerator();
  27998. resultIsReadOnly = false;
  27999. MergeFrom(original);
  28000. }
  28001. return result;
  28002. }
  28003. public override bool IsInitialized {
  28004. get { return result.IsInitialized; }
  28005. }
  28006. protected override RepeatedFieldsGenerator MessageBeingBuilt {
  28007. get { return PrepareBuilder(); }
  28008. }
  28009. public override Builder Clear() {
  28010. result = DefaultInstance;
  28011. resultIsReadOnly = true;
  28012. return this;
  28013. }
  28014. public override Builder Clone() {
  28015. if (resultIsReadOnly) {
  28016. return new Builder(result);
  28017. } else {
  28018. return new Builder().MergeFrom(result);
  28019. }
  28020. }
  28021. public override pbd::MessageDescriptor DescriptorForType {
  28022. get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Descriptor; }
  28023. }
  28024. public override RepeatedFieldsGenerator DefaultInstanceForType {
  28025. get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.DefaultInstance; }
  28026. }
  28027. public override RepeatedFieldsGenerator BuildPartial() {
  28028. if (resultIsReadOnly) {
  28029. return result;
  28030. }
  28031. resultIsReadOnly = true;
  28032. return result.MakeReadOnly();
  28033. }
  28034. public override Builder MergeFrom(pb::IMessage other) {
  28035. if (other is RepeatedFieldsGenerator) {
  28036. return MergeFrom((RepeatedFieldsGenerator) other);
  28037. } else {
  28038. base.MergeFrom(other);
  28039. return this;
  28040. }
  28041. }
  28042. public override Builder MergeFrom(RepeatedFieldsGenerator other) {
  28043. if (other == global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.DefaultInstance) return this;
  28044. PrepareBuilder();
  28045. if (other.field1_.Count != 0) {
  28046. result.field1_.Add(other.field1_);
  28047. }
  28048. if (other.field2_.Count != 0) {
  28049. result.field2_.Add(other.field2_);
  28050. }
  28051. if (other.field3_.Count != 0) {
  28052. result.field3_.Add(other.field3_);
  28053. }
  28054. if (other.group1_.Count != 0) {
  28055. result.group1_.Add(other.group1_);
  28056. }
  28057. if (other.group2_.Count != 0) {
  28058. result.group2_.Add(other.group2_);
  28059. }
  28060. if (other.ext1_.Count != 0) {
  28061. result.ext1_.Add(other.ext1_);
  28062. }
  28063. if (other.ext2_.Count != 0) {
  28064. result.ext2_.Add(other.ext2_);
  28065. }
  28066. this.MergeUnknownFields(other.UnknownFields);
  28067. return this;
  28068. }
  28069. public override Builder MergeFrom(pb::ICodedInputStream input) {
  28070. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  28071. }
  28072. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  28073. PrepareBuilder();
  28074. pb::UnknownFieldSet.Builder unknownFields = null;
  28075. uint tag;
  28076. string field_name;
  28077. while (input.ReadTag(out tag, out field_name)) {
  28078. if(tag == 0 && field_name != null) {
  28079. int field_ordinal = global::System.Array.BinarySearch(_repeatedFieldsGeneratorFieldNames, field_name, global::System.StringComparer.Ordinal);
  28080. if(field_ordinal >= 0)
  28081. tag = _repeatedFieldsGeneratorFieldTags[field_ordinal];
  28082. else {
  28083. if (unknownFields == null) {
  28084. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  28085. }
  28086. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  28087. continue;
  28088. }
  28089. }
  28090. switch (tag) {
  28091. case 0: {
  28092. throw pb::InvalidProtocolBufferException.InvalidTag();
  28093. }
  28094. default: {
  28095. if (pb::WireFormat.IsEndGroupTag(tag)) {
  28096. if (unknownFields != null) {
  28097. this.UnknownFields = unknownFields.Build();
  28098. }
  28099. return this;
  28100. }
  28101. if (unknownFields == null) {
  28102. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  28103. }
  28104. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  28105. break;
  28106. }
  28107. case 10: {
  28108. input.ReadMessageArray(tag, field_name, result.field1_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance, extensionRegistry);
  28109. break;
  28110. }
  28111. case 18: {
  28112. input.ReadMessageArray(tag, field_name, result.field2_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance, extensionRegistry);
  28113. break;
  28114. }
  28115. case 26: {
  28116. input.ReadMessageArray(tag, field_name, result.field3_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance, extensionRegistry);
  28117. break;
  28118. }
  28119. case 83: {
  28120. input.ReadGroupArray(tag, field_name, result.group1_, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.DefaultInstance, extensionRegistry);
  28121. break;
  28122. }
  28123. case 163: {
  28124. input.ReadGroupArray(tag, field_name, result.group2_, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.DefaultInstance, extensionRegistry);
  28125. break;
  28126. }
  28127. case 8002: {
  28128. input.ReadMessageArray(tag, field_name, result.ext1_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance, extensionRegistry);
  28129. break;
  28130. }
  28131. case 8010: {
  28132. input.ReadMessageArray(tag, field_name, result.ext2_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance, extensionRegistry);
  28133. break;
  28134. }
  28135. }
  28136. }
  28137. if (unknownFields != null) {
  28138. this.UnknownFields = unknownFields.Build();
  28139. }
  28140. return this;
  28141. }
  28142. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Field1List {
  28143. get { return PrepareBuilder().field1_; }
  28144. }
  28145. public int Field1Count {
  28146. get { return result.Field1Count; }
  28147. }
  28148. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetField1(int index) {
  28149. return result.GetField1(index);
  28150. }
  28151. public Builder SetField1(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  28152. pb::ThrowHelper.ThrowIfNull(value, "value");
  28153. PrepareBuilder();
  28154. result.field1_[index] = value;
  28155. return this;
  28156. }
  28157. public Builder SetField1(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  28158. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  28159. PrepareBuilder();
  28160. result.field1_[index] = builderForValue.Build();
  28161. return this;
  28162. }
  28163. public Builder AddField1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  28164. pb::ThrowHelper.ThrowIfNull(value, "value");
  28165. PrepareBuilder();
  28166. result.field1_.Add(value);
  28167. return this;
  28168. }
  28169. public Builder AddField1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  28170. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  28171. PrepareBuilder();
  28172. result.field1_.Add(builderForValue.Build());
  28173. return this;
  28174. }
  28175. public Builder AddRangeField1(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> values) {
  28176. PrepareBuilder();
  28177. result.field1_.Add(values);
  28178. return this;
  28179. }
  28180. public Builder ClearField1() {
  28181. PrepareBuilder();
  28182. result.field1_.Clear();
  28183. return this;
  28184. }
  28185. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Field2List {
  28186. get { return PrepareBuilder().field2_; }
  28187. }
  28188. public int Field2Count {
  28189. get { return result.Field2Count; }
  28190. }
  28191. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetField2(int index) {
  28192. return result.GetField2(index);
  28193. }
  28194. public Builder SetField2(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  28195. pb::ThrowHelper.ThrowIfNull(value, "value");
  28196. PrepareBuilder();
  28197. result.field2_[index] = value;
  28198. return this;
  28199. }
  28200. public Builder SetField2(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  28201. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  28202. PrepareBuilder();
  28203. result.field2_[index] = builderForValue.Build();
  28204. return this;
  28205. }
  28206. public Builder AddField2(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  28207. pb::ThrowHelper.ThrowIfNull(value, "value");
  28208. PrepareBuilder();
  28209. result.field2_.Add(value);
  28210. return this;
  28211. }
  28212. public Builder AddField2(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  28213. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  28214. PrepareBuilder();
  28215. result.field2_.Add(builderForValue.Build());
  28216. return this;
  28217. }
  28218. public Builder AddRangeField2(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> values) {
  28219. PrepareBuilder();
  28220. result.field2_.Add(values);
  28221. return this;
  28222. }
  28223. public Builder ClearField2() {
  28224. PrepareBuilder();
  28225. result.field2_.Clear();
  28226. return this;
  28227. }
  28228. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Field3List {
  28229. get { return PrepareBuilder().field3_; }
  28230. }
  28231. public int Field3Count {
  28232. get { return result.Field3Count; }
  28233. }
  28234. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetField3(int index) {
  28235. return result.GetField3(index);
  28236. }
  28237. public Builder SetField3(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  28238. pb::ThrowHelper.ThrowIfNull(value, "value");
  28239. PrepareBuilder();
  28240. result.field3_[index] = value;
  28241. return this;
  28242. }
  28243. public Builder SetField3(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  28244. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  28245. PrepareBuilder();
  28246. result.field3_[index] = builderForValue.Build();
  28247. return this;
  28248. }
  28249. public Builder AddField3(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  28250. pb::ThrowHelper.ThrowIfNull(value, "value");
  28251. PrepareBuilder();
  28252. result.field3_.Add(value);
  28253. return this;
  28254. }
  28255. public Builder AddField3(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  28256. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  28257. PrepareBuilder();
  28258. result.field3_.Add(builderForValue.Build());
  28259. return this;
  28260. }
  28261. public Builder AddRangeField3(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> values) {
  28262. PrepareBuilder();
  28263. result.field3_.Add(values);
  28264. return this;
  28265. }
  28266. public Builder ClearField3() {
  28267. PrepareBuilder();
  28268. result.field3_.Clear();
  28269. return this;
  28270. }
  28271. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> Group1List {
  28272. get { return PrepareBuilder().group1_; }
  28273. }
  28274. public int Group1Count {
  28275. get { return result.Group1Count; }
  28276. }
  28277. public global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1 GetGroup1(int index) {
  28278. return result.GetGroup1(index);
  28279. }
  28280. public Builder SetGroup1(int index, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1 value) {
  28281. pb::ThrowHelper.ThrowIfNull(value, "value");
  28282. PrepareBuilder();
  28283. result.group1_[index] = value;
  28284. return this;
  28285. }
  28286. public Builder SetGroup1(int index, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Builder builderForValue) {
  28287. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  28288. PrepareBuilder();
  28289. result.group1_[index] = builderForValue.Build();
  28290. return this;
  28291. }
  28292. public Builder AddGroup1(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1 value) {
  28293. pb::ThrowHelper.ThrowIfNull(value, "value");
  28294. PrepareBuilder();
  28295. result.group1_.Add(value);
  28296. return this;
  28297. }
  28298. public Builder AddGroup1(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Builder builderForValue) {
  28299. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  28300. PrepareBuilder();
  28301. result.group1_.Add(builderForValue.Build());
  28302. return this;
  28303. }
  28304. public Builder AddRangeGroup1(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> values) {
  28305. PrepareBuilder();
  28306. result.group1_.Add(values);
  28307. return this;
  28308. }
  28309. public Builder ClearGroup1() {
  28310. PrepareBuilder();
  28311. result.group1_.Clear();
  28312. return this;
  28313. }
  28314. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> Group2List {
  28315. get { return PrepareBuilder().group2_; }
  28316. }
  28317. public int Group2Count {
  28318. get { return result.Group2Count; }
  28319. }
  28320. public global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2 GetGroup2(int index) {
  28321. return result.GetGroup2(index);
  28322. }
  28323. public Builder SetGroup2(int index, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2 value) {
  28324. pb::ThrowHelper.ThrowIfNull(value, "value");
  28325. PrepareBuilder();
  28326. result.group2_[index] = value;
  28327. return this;
  28328. }
  28329. public Builder SetGroup2(int index, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Builder builderForValue) {
  28330. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  28331. PrepareBuilder();
  28332. result.group2_[index] = builderForValue.Build();
  28333. return this;
  28334. }
  28335. public Builder AddGroup2(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2 value) {
  28336. pb::ThrowHelper.ThrowIfNull(value, "value");
  28337. PrepareBuilder();
  28338. result.group2_.Add(value);
  28339. return this;
  28340. }
  28341. public Builder AddGroup2(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Builder builderForValue) {
  28342. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  28343. PrepareBuilder();
  28344. result.group2_.Add(builderForValue.Build());
  28345. return this;
  28346. }
  28347. public Builder AddRangeGroup2(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> values) {
  28348. PrepareBuilder();
  28349. result.group2_.Add(values);
  28350. return this;
  28351. }
  28352. public Builder ClearGroup2() {
  28353. PrepareBuilder();
  28354. result.group2_.Clear();
  28355. return this;
  28356. }
  28357. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Ext1List {
  28358. get { return PrepareBuilder().ext1_; }
  28359. }
  28360. public int Ext1Count {
  28361. get { return result.Ext1Count; }
  28362. }
  28363. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetExt1(int index) {
  28364. return result.GetExt1(index);
  28365. }
  28366. public Builder SetExt1(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  28367. pb::ThrowHelper.ThrowIfNull(value, "value");
  28368. PrepareBuilder();
  28369. result.ext1_[index] = value;
  28370. return this;
  28371. }
  28372. public Builder SetExt1(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  28373. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  28374. PrepareBuilder();
  28375. result.ext1_[index] = builderForValue.Build();
  28376. return this;
  28377. }
  28378. public Builder AddExt1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  28379. pb::ThrowHelper.ThrowIfNull(value, "value");
  28380. PrepareBuilder();
  28381. result.ext1_.Add(value);
  28382. return this;
  28383. }
  28384. public Builder AddExt1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  28385. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  28386. PrepareBuilder();
  28387. result.ext1_.Add(builderForValue.Build());
  28388. return this;
  28389. }
  28390. public Builder AddRangeExt1(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> values) {
  28391. PrepareBuilder();
  28392. result.ext1_.Add(values);
  28393. return this;
  28394. }
  28395. public Builder ClearExt1() {
  28396. PrepareBuilder();
  28397. result.ext1_.Clear();
  28398. return this;
  28399. }
  28400. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Ext2List {
  28401. get { return PrepareBuilder().ext2_; }
  28402. }
  28403. public int Ext2Count {
  28404. get { return result.Ext2Count; }
  28405. }
  28406. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetExt2(int index) {
  28407. return result.GetExt2(index);
  28408. }
  28409. public Builder SetExt2(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  28410. pb::ThrowHelper.ThrowIfNull(value, "value");
  28411. PrepareBuilder();
  28412. result.ext2_[index] = value;
  28413. return this;
  28414. }
  28415. public Builder SetExt2(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  28416. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  28417. PrepareBuilder();
  28418. result.ext2_[index] = builderForValue.Build();
  28419. return this;
  28420. }
  28421. public Builder AddExt2(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  28422. pb::ThrowHelper.ThrowIfNull(value, "value");
  28423. PrepareBuilder();
  28424. result.ext2_.Add(value);
  28425. return this;
  28426. }
  28427. public Builder AddExt2(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  28428. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  28429. PrepareBuilder();
  28430. result.ext2_.Add(builderForValue.Build());
  28431. return this;
  28432. }
  28433. public Builder AddRangeExt2(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> values) {
  28434. PrepareBuilder();
  28435. result.ext2_.Add(values);
  28436. return this;
  28437. }
  28438. public Builder ClearExt2() {
  28439. PrepareBuilder();
  28440. result.ext2_.Clear();
  28441. return this;
  28442. }
  28443. }
  28444. static RepeatedFieldsGenerator() {
  28445. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  28446. }
  28447. }
  28448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  28449. public sealed partial class OptionalGroup : pb::GeneratedMessage<OptionalGroup, OptionalGroup.Builder> {
  28450. private OptionalGroup() { }
  28451. private static readonly OptionalGroup defaultInstance = new OptionalGroup().MakeReadOnly();
  28452. private static readonly string[] _optionalGroupFieldNames = new string[] { "optional_group_all_types" };
  28453. private static readonly uint[] _optionalGroupFieldTags = new uint[] { 90 };
  28454. public static OptionalGroup DefaultInstance {
  28455. get { return defaultInstance; }
  28456. }
  28457. public override OptionalGroup DefaultInstanceForType {
  28458. get { return DefaultInstance; }
  28459. }
  28460. protected override OptionalGroup ThisMessage {
  28461. get { return this; }
  28462. }
  28463. public static pbd::MessageDescriptor Descriptor {
  28464. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_OptionalGroup__Descriptor; }
  28465. }
  28466. protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup, OptionalGroup.Builder> InternalFieldAccessors {
  28467. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_OptionalGroup__FieldAccessorTable; }
  28468. }
  28469. public const int OptionalGroupAllTypesFieldNumber = 11;
  28470. private bool hasOptionalGroupAllTypes;
  28471. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes optionalGroupAllTypes_;
  28472. public bool HasOptionalGroupAllTypes {
  28473. get { return hasOptionalGroupAllTypes; }
  28474. }
  28475. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes OptionalGroupAllTypes {
  28476. get { return optionalGroupAllTypes_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
  28477. }
  28478. public override bool IsInitialized {
  28479. get {
  28480. return true;
  28481. }
  28482. }
  28483. public override void WriteTo(pb::ICodedOutputStream output) {
  28484. CalcSerializedSize();
  28485. string[] field_names = _optionalGroupFieldNames;
  28486. if (hasOptionalGroupAllTypes) {
  28487. output.WriteMessage(11, field_names[0], OptionalGroupAllTypes);
  28488. }
  28489. UnknownFields.WriteTo(output);
  28490. }
  28491. private int memoizedSerializedSize = -1;
  28492. public override int SerializedSize {
  28493. get {
  28494. int size = memoizedSerializedSize;
  28495. if (size != -1) return size;
  28496. return CalcSerializedSize();
  28497. }
  28498. }
  28499. private int CalcSerializedSize() {
  28500. int size = memoizedSerializedSize;
  28501. if (size != -1) return size;
  28502. size = 0;
  28503. if (hasOptionalGroupAllTypes) {
  28504. size += pb::CodedOutputStream.ComputeMessageSize(11, OptionalGroupAllTypes);
  28505. }
  28506. size += UnknownFields.SerializedSize;
  28507. memoizedSerializedSize = size;
  28508. return size;
  28509. }
  28510. public static OptionalGroup ParseFrom(pb::ByteString data) {
  28511. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  28512. }
  28513. public static OptionalGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  28514. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  28515. }
  28516. public static OptionalGroup ParseFrom(byte[] data) {
  28517. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  28518. }
  28519. public static OptionalGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  28520. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  28521. }
  28522. public static OptionalGroup ParseFrom(global::System.IO.Stream input) {
  28523. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  28524. }
  28525. public static OptionalGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  28526. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  28527. }
  28528. public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input) {
  28529. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  28530. }
  28531. public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  28532. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  28533. }
  28534. public static OptionalGroup ParseFrom(pb::ICodedInputStream input) {
  28535. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  28536. }
  28537. public static OptionalGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  28538. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  28539. }
  28540. private OptionalGroup MakeReadOnly() {
  28541. return this;
  28542. }
  28543. public static Builder CreateBuilder() { return new Builder(); }
  28544. public override Builder ToBuilder() { return CreateBuilder(this); }
  28545. public override Builder CreateBuilderForType() { return new Builder(); }
  28546. public static Builder CreateBuilder(OptionalGroup prototype) {
  28547. return new Builder(prototype);
  28548. }
  28549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  28550. public sealed partial class Builder : pb::GeneratedBuilder<OptionalGroup, Builder> {
  28551. protected override Builder ThisBuilder {
  28552. get { return this; }
  28553. }
  28554. public Builder() {
  28555. result = DefaultInstance;
  28556. resultIsReadOnly = true;
  28557. }
  28558. internal Builder(OptionalGroup cloneFrom) {
  28559. result = cloneFrom;
  28560. resultIsReadOnly = true;
  28561. }
  28562. private bool resultIsReadOnly;
  28563. private OptionalGroup result;
  28564. private OptionalGroup PrepareBuilder() {
  28565. if (resultIsReadOnly) {
  28566. OptionalGroup original = result;
  28567. result = new OptionalGroup();
  28568. resultIsReadOnly = false;
  28569. MergeFrom(original);
  28570. }
  28571. return result;
  28572. }
  28573. public override bool IsInitialized {
  28574. get { return result.IsInitialized; }
  28575. }
  28576. protected override OptionalGroup MessageBeingBuilt {
  28577. get { return PrepareBuilder(); }
  28578. }
  28579. public override Builder Clear() {
  28580. result = DefaultInstance;
  28581. resultIsReadOnly = true;
  28582. return this;
  28583. }
  28584. public override Builder Clone() {
  28585. if (resultIsReadOnly) {
  28586. return new Builder(result);
  28587. } else {
  28588. return new Builder().MergeFrom(result);
  28589. }
  28590. }
  28591. public override pbd::MessageDescriptor DescriptorForType {
  28592. get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.Descriptor; }
  28593. }
  28594. public override OptionalGroup DefaultInstanceForType {
  28595. get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.DefaultInstance; }
  28596. }
  28597. public override OptionalGroup BuildPartial() {
  28598. if (resultIsReadOnly) {
  28599. return result;
  28600. }
  28601. resultIsReadOnly = true;
  28602. return result.MakeReadOnly();
  28603. }
  28604. public override Builder MergeFrom(pb::IMessage other) {
  28605. if (other is OptionalGroup) {
  28606. return MergeFrom((OptionalGroup) other);
  28607. } else {
  28608. base.MergeFrom(other);
  28609. return this;
  28610. }
  28611. }
  28612. public override Builder MergeFrom(OptionalGroup other) {
  28613. if (other == global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.DefaultInstance) return this;
  28614. PrepareBuilder();
  28615. if (other.HasOptionalGroupAllTypes) {
  28616. MergeOptionalGroupAllTypes(other.OptionalGroupAllTypes);
  28617. }
  28618. this.MergeUnknownFields(other.UnknownFields);
  28619. return this;
  28620. }
  28621. public override Builder MergeFrom(pb::ICodedInputStream input) {
  28622. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  28623. }
  28624. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  28625. PrepareBuilder();
  28626. pb::UnknownFieldSet.Builder unknownFields = null;
  28627. uint tag;
  28628. string field_name;
  28629. while (input.ReadTag(out tag, out field_name)) {
  28630. if(tag == 0 && field_name != null) {
  28631. int field_ordinal = global::System.Array.BinarySearch(_optionalGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
  28632. if(field_ordinal >= 0)
  28633. tag = _optionalGroupFieldTags[field_ordinal];
  28634. else {
  28635. if (unknownFields == null) {
  28636. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  28637. }
  28638. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  28639. continue;
  28640. }
  28641. }
  28642. switch (tag) {
  28643. case 0: {
  28644. throw pb::InvalidProtocolBufferException.InvalidTag();
  28645. }
  28646. default: {
  28647. if (pb::WireFormat.IsEndGroupTag(tag)) {
  28648. if (unknownFields != null) {
  28649. this.UnknownFields = unknownFields.Build();
  28650. }
  28651. return this;
  28652. }
  28653. if (unknownFields == null) {
  28654. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  28655. }
  28656. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  28657. break;
  28658. }
  28659. case 90: {
  28660. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
  28661. if (result.hasOptionalGroupAllTypes) {
  28662. subBuilder.MergeFrom(OptionalGroupAllTypes);
  28663. }
  28664. input.ReadMessage(subBuilder, extensionRegistry);
  28665. OptionalGroupAllTypes = subBuilder.BuildPartial();
  28666. break;
  28667. }
  28668. }
  28669. }
  28670. if (unknownFields != null) {
  28671. this.UnknownFields = unknownFields.Build();
  28672. }
  28673. return this;
  28674. }
  28675. public bool HasOptionalGroupAllTypes {
  28676. get { return result.hasOptionalGroupAllTypes; }
  28677. }
  28678. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes OptionalGroupAllTypes {
  28679. get { return result.OptionalGroupAllTypes; }
  28680. set { SetOptionalGroupAllTypes(value); }
  28681. }
  28682. public Builder SetOptionalGroupAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  28683. pb::ThrowHelper.ThrowIfNull(value, "value");
  28684. PrepareBuilder();
  28685. result.hasOptionalGroupAllTypes = true;
  28686. result.optionalGroupAllTypes_ = value;
  28687. return this;
  28688. }
  28689. public Builder SetOptionalGroupAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  28690. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  28691. PrepareBuilder();
  28692. result.hasOptionalGroupAllTypes = true;
  28693. result.optionalGroupAllTypes_ = builderForValue.Build();
  28694. return this;
  28695. }
  28696. public Builder MergeOptionalGroupAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  28697. pb::ThrowHelper.ThrowIfNull(value, "value");
  28698. PrepareBuilder();
  28699. if (result.hasOptionalGroupAllTypes &&
  28700. result.optionalGroupAllTypes_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
  28701. result.optionalGroupAllTypes_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.optionalGroupAllTypes_).MergeFrom(value).BuildPartial();
  28702. } else {
  28703. result.optionalGroupAllTypes_ = value;
  28704. }
  28705. result.hasOptionalGroupAllTypes = true;
  28706. return this;
  28707. }
  28708. public Builder ClearOptionalGroupAllTypes() {
  28709. PrepareBuilder();
  28710. result.hasOptionalGroupAllTypes = false;
  28711. result.optionalGroupAllTypes_ = null;
  28712. return this;
  28713. }
  28714. }
  28715. static OptionalGroup() {
  28716. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  28717. }
  28718. }
  28719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  28720. public sealed partial class RepeatedGroup : pb::GeneratedMessage<RepeatedGroup, RepeatedGroup.Builder> {
  28721. private RepeatedGroup() { }
  28722. private static readonly RepeatedGroup defaultInstance = new RepeatedGroup().MakeReadOnly();
  28723. private static readonly string[] _repeatedGroupFieldNames = new string[] { "repeated_group_all_types" };
  28724. private static readonly uint[] _repeatedGroupFieldTags = new uint[] { 170 };
  28725. public static RepeatedGroup DefaultInstance {
  28726. get { return defaultInstance; }
  28727. }
  28728. public override RepeatedGroup DefaultInstanceForType {
  28729. get { return DefaultInstance; }
  28730. }
  28731. protected override RepeatedGroup ThisMessage {
  28732. get { return this; }
  28733. }
  28734. public static pbd::MessageDescriptor Descriptor {
  28735. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_RepeatedGroup__Descriptor; }
  28736. }
  28737. protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup, RepeatedGroup.Builder> InternalFieldAccessors {
  28738. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_RepeatedGroup__FieldAccessorTable; }
  28739. }
  28740. public const int RepeatedGroupAllTypesFieldNumber = 21;
  28741. private bool hasRepeatedGroupAllTypes;
  28742. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes repeatedGroupAllTypes_;
  28743. public bool HasRepeatedGroupAllTypes {
  28744. get { return hasRepeatedGroupAllTypes; }
  28745. }
  28746. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes RepeatedGroupAllTypes {
  28747. get { return repeatedGroupAllTypes_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
  28748. }
  28749. public override bool IsInitialized {
  28750. get {
  28751. return true;
  28752. }
  28753. }
  28754. public override void WriteTo(pb::ICodedOutputStream output) {
  28755. CalcSerializedSize();
  28756. string[] field_names = _repeatedGroupFieldNames;
  28757. if (hasRepeatedGroupAllTypes) {
  28758. output.WriteMessage(21, field_names[0], RepeatedGroupAllTypes);
  28759. }
  28760. UnknownFields.WriteTo(output);
  28761. }
  28762. private int memoizedSerializedSize = -1;
  28763. public override int SerializedSize {
  28764. get {
  28765. int size = memoizedSerializedSize;
  28766. if (size != -1) return size;
  28767. return CalcSerializedSize();
  28768. }
  28769. }
  28770. private int CalcSerializedSize() {
  28771. int size = memoizedSerializedSize;
  28772. if (size != -1) return size;
  28773. size = 0;
  28774. if (hasRepeatedGroupAllTypes) {
  28775. size += pb::CodedOutputStream.ComputeMessageSize(21, RepeatedGroupAllTypes);
  28776. }
  28777. size += UnknownFields.SerializedSize;
  28778. memoizedSerializedSize = size;
  28779. return size;
  28780. }
  28781. public static RepeatedGroup ParseFrom(pb::ByteString data) {
  28782. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  28783. }
  28784. public static RepeatedGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  28785. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  28786. }
  28787. public static RepeatedGroup ParseFrom(byte[] data) {
  28788. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  28789. }
  28790. public static RepeatedGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  28791. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  28792. }
  28793. public static RepeatedGroup ParseFrom(global::System.IO.Stream input) {
  28794. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  28795. }
  28796. public static RepeatedGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  28797. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  28798. }
  28799. public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input) {
  28800. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  28801. }
  28802. public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  28803. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  28804. }
  28805. public static RepeatedGroup ParseFrom(pb::ICodedInputStream input) {
  28806. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  28807. }
  28808. public static RepeatedGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  28809. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  28810. }
  28811. private RepeatedGroup MakeReadOnly() {
  28812. return this;
  28813. }
  28814. public static Builder CreateBuilder() { return new Builder(); }
  28815. public override Builder ToBuilder() { return CreateBuilder(this); }
  28816. public override Builder CreateBuilderForType() { return new Builder(); }
  28817. public static Builder CreateBuilder(RepeatedGroup prototype) {
  28818. return new Builder(prototype);
  28819. }
  28820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  28821. public sealed partial class Builder : pb::GeneratedBuilder<RepeatedGroup, Builder> {
  28822. protected override Builder ThisBuilder {
  28823. get { return this; }
  28824. }
  28825. public Builder() {
  28826. result = DefaultInstance;
  28827. resultIsReadOnly = true;
  28828. }
  28829. internal Builder(RepeatedGroup cloneFrom) {
  28830. result = cloneFrom;
  28831. resultIsReadOnly = true;
  28832. }
  28833. private bool resultIsReadOnly;
  28834. private RepeatedGroup result;
  28835. private RepeatedGroup PrepareBuilder() {
  28836. if (resultIsReadOnly) {
  28837. RepeatedGroup original = result;
  28838. result = new RepeatedGroup();
  28839. resultIsReadOnly = false;
  28840. MergeFrom(original);
  28841. }
  28842. return result;
  28843. }
  28844. public override bool IsInitialized {
  28845. get { return result.IsInitialized; }
  28846. }
  28847. protected override RepeatedGroup MessageBeingBuilt {
  28848. get { return PrepareBuilder(); }
  28849. }
  28850. public override Builder Clear() {
  28851. result = DefaultInstance;
  28852. resultIsReadOnly = true;
  28853. return this;
  28854. }
  28855. public override Builder Clone() {
  28856. if (resultIsReadOnly) {
  28857. return new Builder(result);
  28858. } else {
  28859. return new Builder().MergeFrom(result);
  28860. }
  28861. }
  28862. public override pbd::MessageDescriptor DescriptorForType {
  28863. get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup.Descriptor; }
  28864. }
  28865. public override RepeatedGroup DefaultInstanceForType {
  28866. get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup.DefaultInstance; }
  28867. }
  28868. public override RepeatedGroup BuildPartial() {
  28869. if (resultIsReadOnly) {
  28870. return result;
  28871. }
  28872. resultIsReadOnly = true;
  28873. return result.MakeReadOnly();
  28874. }
  28875. public override Builder MergeFrom(pb::IMessage other) {
  28876. if (other is RepeatedGroup) {
  28877. return MergeFrom((RepeatedGroup) other);
  28878. } else {
  28879. base.MergeFrom(other);
  28880. return this;
  28881. }
  28882. }
  28883. public override Builder MergeFrom(RepeatedGroup other) {
  28884. if (other == global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup.DefaultInstance) return this;
  28885. PrepareBuilder();
  28886. if (other.HasRepeatedGroupAllTypes) {
  28887. MergeRepeatedGroupAllTypes(other.RepeatedGroupAllTypes);
  28888. }
  28889. this.MergeUnknownFields(other.UnknownFields);
  28890. return this;
  28891. }
  28892. public override Builder MergeFrom(pb::ICodedInputStream input) {
  28893. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  28894. }
  28895. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  28896. PrepareBuilder();
  28897. pb::UnknownFieldSet.Builder unknownFields = null;
  28898. uint tag;
  28899. string field_name;
  28900. while (input.ReadTag(out tag, out field_name)) {
  28901. if(tag == 0 && field_name != null) {
  28902. int field_ordinal = global::System.Array.BinarySearch(_repeatedGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
  28903. if(field_ordinal >= 0)
  28904. tag = _repeatedGroupFieldTags[field_ordinal];
  28905. else {
  28906. if (unknownFields == null) {
  28907. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  28908. }
  28909. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  28910. continue;
  28911. }
  28912. }
  28913. switch (tag) {
  28914. case 0: {
  28915. throw pb::InvalidProtocolBufferException.InvalidTag();
  28916. }
  28917. default: {
  28918. if (pb::WireFormat.IsEndGroupTag(tag)) {
  28919. if (unknownFields != null) {
  28920. this.UnknownFields = unknownFields.Build();
  28921. }
  28922. return this;
  28923. }
  28924. if (unknownFields == null) {
  28925. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  28926. }
  28927. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  28928. break;
  28929. }
  28930. case 170: {
  28931. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
  28932. if (result.hasRepeatedGroupAllTypes) {
  28933. subBuilder.MergeFrom(RepeatedGroupAllTypes);
  28934. }
  28935. input.ReadMessage(subBuilder, extensionRegistry);
  28936. RepeatedGroupAllTypes = subBuilder.BuildPartial();
  28937. break;
  28938. }
  28939. }
  28940. }
  28941. if (unknownFields != null) {
  28942. this.UnknownFields = unknownFields.Build();
  28943. }
  28944. return this;
  28945. }
  28946. public bool HasRepeatedGroupAllTypes {
  28947. get { return result.hasRepeatedGroupAllTypes; }
  28948. }
  28949. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes RepeatedGroupAllTypes {
  28950. get { return result.RepeatedGroupAllTypes; }
  28951. set { SetRepeatedGroupAllTypes(value); }
  28952. }
  28953. public Builder SetRepeatedGroupAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  28954. pb::ThrowHelper.ThrowIfNull(value, "value");
  28955. PrepareBuilder();
  28956. result.hasRepeatedGroupAllTypes = true;
  28957. result.repeatedGroupAllTypes_ = value;
  28958. return this;
  28959. }
  28960. public Builder SetRepeatedGroupAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  28961. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  28962. PrepareBuilder();
  28963. result.hasRepeatedGroupAllTypes = true;
  28964. result.repeatedGroupAllTypes_ = builderForValue.Build();
  28965. return this;
  28966. }
  28967. public Builder MergeRepeatedGroupAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  28968. pb::ThrowHelper.ThrowIfNull(value, "value");
  28969. PrepareBuilder();
  28970. if (result.hasRepeatedGroupAllTypes &&
  28971. result.repeatedGroupAllTypes_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
  28972. result.repeatedGroupAllTypes_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.repeatedGroupAllTypes_).MergeFrom(value).BuildPartial();
  28973. } else {
  28974. result.repeatedGroupAllTypes_ = value;
  28975. }
  28976. result.hasRepeatedGroupAllTypes = true;
  28977. return this;
  28978. }
  28979. public Builder ClearRepeatedGroupAllTypes() {
  28980. PrepareBuilder();
  28981. result.hasRepeatedGroupAllTypes = false;
  28982. result.repeatedGroupAllTypes_ = null;
  28983. return this;
  28984. }
  28985. }
  28986. static RepeatedGroup() {
  28987. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  28988. }
  28989. }
  28990. }
  28991. #endregion
  28992. public const int RequiredAllTypesFieldNumber = 1;
  28993. private bool hasRequiredAllTypes;
  28994. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes requiredAllTypes_;
  28995. public bool HasRequiredAllTypes {
  28996. get { return hasRequiredAllTypes; }
  28997. }
  28998. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes RequiredAllTypes {
  28999. get { return requiredAllTypes_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
  29000. }
  29001. public const int OptionalAllTypesFieldNumber = 2;
  29002. private bool hasOptionalAllTypes;
  29003. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes optionalAllTypes_;
  29004. public bool HasOptionalAllTypes {
  29005. get { return hasOptionalAllTypes; }
  29006. }
  29007. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes OptionalAllTypes {
  29008. get { return optionalAllTypes_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
  29009. }
  29010. public const int RepeatedAllTypesFieldNumber = 3;
  29011. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> repeatedAllTypes_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>();
  29012. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> RepeatedAllTypesList {
  29013. get { return repeatedAllTypes_; }
  29014. }
  29015. public int RepeatedAllTypesCount {
  29016. get { return repeatedAllTypes_.Count; }
  29017. }
  29018. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetRepeatedAllTypes(int index) {
  29019. return repeatedAllTypes_[index];
  29020. }
  29021. public const int OptionalGroupFieldNumber = 10;
  29022. private bool hasOptionalGroup;
  29023. private global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup optionalGroup_;
  29024. public bool HasOptionalGroup {
  29025. get { return hasOptionalGroup; }
  29026. }
  29027. public global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup OptionalGroup {
  29028. get { return optionalGroup_ ?? global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.DefaultInstance; }
  29029. }
  29030. public const int RepeatedGroupFieldNumber = 20;
  29031. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup>();
  29032. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup> RepeatedGroupList {
  29033. get { return repeatedGroup_; }
  29034. }
  29035. public int RepeatedGroupCount {
  29036. get { return repeatedGroup_.Count; }
  29037. }
  29038. public global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup GetRepeatedGroup(int index) {
  29039. return repeatedGroup_[index];
  29040. }
  29041. public override bool IsInitialized {
  29042. get {
  29043. if (!hasRequiredAllTypes) return false;
  29044. if (!ExtensionsAreInitialized) return false;
  29045. return true;
  29046. }
  29047. }
  29048. public override void WriteTo(pb::ICodedOutputStream output) {
  29049. CalcSerializedSize();
  29050. string[] field_names = _testParsingMergeFieldNames;
  29051. pb::ExtendableMessage<TestParsingMerge, TestParsingMerge.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  29052. if (hasRequiredAllTypes) {
  29053. output.WriteMessage(1, field_names[4], RequiredAllTypes);
  29054. }
  29055. if (hasOptionalAllTypes) {
  29056. output.WriteMessage(2, field_names[0], OptionalAllTypes);
  29057. }
  29058. if (repeatedAllTypes_.Count > 0) {
  29059. output.WriteMessageArray(3, field_names[2], repeatedAllTypes_);
  29060. }
  29061. if (hasOptionalGroup) {
  29062. output.WriteGroup(10, field_names[1], OptionalGroup);
  29063. }
  29064. if (repeatedGroup_.Count > 0) {
  29065. output.WriteGroupArray(20, field_names[3], repeatedGroup_);
  29066. }
  29067. extensionWriter.WriteUntil(536870912, output);
  29068. UnknownFields.WriteTo(output);
  29069. }
  29070. private int memoizedSerializedSize = -1;
  29071. public override int SerializedSize {
  29072. get {
  29073. int size = memoizedSerializedSize;
  29074. if (size != -1) return size;
  29075. return CalcSerializedSize();
  29076. }
  29077. }
  29078. private int CalcSerializedSize() {
  29079. int size = memoizedSerializedSize;
  29080. if (size != -1) return size;
  29081. size = 0;
  29082. if (hasRequiredAllTypes) {
  29083. size += pb::CodedOutputStream.ComputeMessageSize(1, RequiredAllTypes);
  29084. }
  29085. if (hasOptionalAllTypes) {
  29086. size += pb::CodedOutputStream.ComputeMessageSize(2, OptionalAllTypes);
  29087. }
  29088. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes element in RepeatedAllTypesList) {
  29089. size += pb::CodedOutputStream.ComputeMessageSize(3, element);
  29090. }
  29091. if (hasOptionalGroup) {
  29092. size += pb::CodedOutputStream.ComputeGroupSize(10, OptionalGroup);
  29093. }
  29094. foreach (global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup element in RepeatedGroupList) {
  29095. size += pb::CodedOutputStream.ComputeGroupSize(20, element);
  29096. }
  29097. size += ExtensionsSerializedSize;
  29098. size += UnknownFields.SerializedSize;
  29099. memoizedSerializedSize = size;
  29100. return size;
  29101. }
  29102. public static TestParsingMerge ParseFrom(pb::ByteString data) {
  29103. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  29104. }
  29105. public static TestParsingMerge ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  29106. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  29107. }
  29108. public static TestParsingMerge ParseFrom(byte[] data) {
  29109. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  29110. }
  29111. public static TestParsingMerge ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  29112. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  29113. }
  29114. public static TestParsingMerge ParseFrom(global::System.IO.Stream input) {
  29115. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  29116. }
  29117. public static TestParsingMerge ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  29118. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  29119. }
  29120. public static TestParsingMerge ParseDelimitedFrom(global::System.IO.Stream input) {
  29121. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  29122. }
  29123. public static TestParsingMerge ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  29124. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  29125. }
  29126. public static TestParsingMerge ParseFrom(pb::ICodedInputStream input) {
  29127. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  29128. }
  29129. public static TestParsingMerge ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  29130. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  29131. }
  29132. private TestParsingMerge MakeReadOnly() {
  29133. repeatedAllTypes_.MakeReadOnly();
  29134. repeatedGroup_.MakeReadOnly();
  29135. return this;
  29136. }
  29137. public static Builder CreateBuilder() { return new Builder(); }
  29138. public override Builder ToBuilder() { return CreateBuilder(this); }
  29139. public override Builder CreateBuilderForType() { return new Builder(); }
  29140. public static Builder CreateBuilder(TestParsingMerge prototype) {
  29141. return new Builder(prototype);
  29142. }
  29143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  29144. public sealed partial class Builder : pb::ExtendableBuilder<TestParsingMerge, Builder> {
  29145. protected override Builder ThisBuilder {
  29146. get { return this; }
  29147. }
  29148. public Builder() {
  29149. result = DefaultInstance;
  29150. resultIsReadOnly = true;
  29151. }
  29152. internal Builder(TestParsingMerge cloneFrom) {
  29153. result = cloneFrom;
  29154. resultIsReadOnly = true;
  29155. }
  29156. private bool resultIsReadOnly;
  29157. private TestParsingMerge result;
  29158. private TestParsingMerge PrepareBuilder() {
  29159. if (resultIsReadOnly) {
  29160. TestParsingMerge original = result;
  29161. result = new TestParsingMerge();
  29162. resultIsReadOnly = false;
  29163. MergeFrom(original);
  29164. }
  29165. return result;
  29166. }
  29167. public override bool IsInitialized {
  29168. get { return result.IsInitialized; }
  29169. }
  29170. protected override TestParsingMerge MessageBeingBuilt {
  29171. get { return PrepareBuilder(); }
  29172. }
  29173. public override Builder Clear() {
  29174. result = DefaultInstance;
  29175. resultIsReadOnly = true;
  29176. return this;
  29177. }
  29178. public override Builder Clone() {
  29179. if (resultIsReadOnly) {
  29180. return new Builder(result);
  29181. } else {
  29182. return new Builder().MergeFrom(result);
  29183. }
  29184. }
  29185. public override pbd::MessageDescriptor DescriptorForType {
  29186. get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Descriptor; }
  29187. }
  29188. public override TestParsingMerge DefaultInstanceForType {
  29189. get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.DefaultInstance; }
  29190. }
  29191. public override TestParsingMerge BuildPartial() {
  29192. if (resultIsReadOnly) {
  29193. return result;
  29194. }
  29195. resultIsReadOnly = true;
  29196. return result.MakeReadOnly();
  29197. }
  29198. public override Builder MergeFrom(pb::IMessage other) {
  29199. if (other is TestParsingMerge) {
  29200. return MergeFrom((TestParsingMerge) other);
  29201. } else {
  29202. base.MergeFrom(other);
  29203. return this;
  29204. }
  29205. }
  29206. public override Builder MergeFrom(TestParsingMerge other) {
  29207. if (other == global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.DefaultInstance) return this;
  29208. PrepareBuilder();
  29209. if (other.HasRequiredAllTypes) {
  29210. MergeRequiredAllTypes(other.RequiredAllTypes);
  29211. }
  29212. if (other.HasOptionalAllTypes) {
  29213. MergeOptionalAllTypes(other.OptionalAllTypes);
  29214. }
  29215. if (other.repeatedAllTypes_.Count != 0) {
  29216. result.repeatedAllTypes_.Add(other.repeatedAllTypes_);
  29217. }
  29218. if (other.HasOptionalGroup) {
  29219. MergeOptionalGroup(other.OptionalGroup);
  29220. }
  29221. if (other.repeatedGroup_.Count != 0) {
  29222. result.repeatedGroup_.Add(other.repeatedGroup_);
  29223. }
  29224. this.MergeExtensionFields(other);
  29225. this.MergeUnknownFields(other.UnknownFields);
  29226. return this;
  29227. }
  29228. public override Builder MergeFrom(pb::ICodedInputStream input) {
  29229. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  29230. }
  29231. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  29232. PrepareBuilder();
  29233. pb::UnknownFieldSet.Builder unknownFields = null;
  29234. uint tag;
  29235. string field_name;
  29236. while (input.ReadTag(out tag, out field_name)) {
  29237. if(tag == 0 && field_name != null) {
  29238. int field_ordinal = global::System.Array.BinarySearch(_testParsingMergeFieldNames, field_name, global::System.StringComparer.Ordinal);
  29239. if(field_ordinal >= 0)
  29240. tag = _testParsingMergeFieldTags[field_ordinal];
  29241. else {
  29242. if (unknownFields == null) {
  29243. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  29244. }
  29245. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  29246. continue;
  29247. }
  29248. }
  29249. switch (tag) {
  29250. case 0: {
  29251. throw pb::InvalidProtocolBufferException.InvalidTag();
  29252. }
  29253. default: {
  29254. if (pb::WireFormat.IsEndGroupTag(tag)) {
  29255. if (unknownFields != null) {
  29256. this.UnknownFields = unknownFields.Build();
  29257. }
  29258. return this;
  29259. }
  29260. if (unknownFields == null) {
  29261. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  29262. }
  29263. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  29264. break;
  29265. }
  29266. case 10: {
  29267. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
  29268. if (result.hasRequiredAllTypes) {
  29269. subBuilder.MergeFrom(RequiredAllTypes);
  29270. }
  29271. input.ReadMessage(subBuilder, extensionRegistry);
  29272. RequiredAllTypes = subBuilder.BuildPartial();
  29273. break;
  29274. }
  29275. case 18: {
  29276. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
  29277. if (result.hasOptionalAllTypes) {
  29278. subBuilder.MergeFrom(OptionalAllTypes);
  29279. }
  29280. input.ReadMessage(subBuilder, extensionRegistry);
  29281. OptionalAllTypes = subBuilder.BuildPartial();
  29282. break;
  29283. }
  29284. case 26: {
  29285. input.ReadMessageArray(tag, field_name, result.repeatedAllTypes_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance, extensionRegistry);
  29286. break;
  29287. }
  29288. case 83: {
  29289. global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.CreateBuilder();
  29290. if (result.hasOptionalGroup) {
  29291. subBuilder.MergeFrom(OptionalGroup);
  29292. }
  29293. input.ReadGroup(10, subBuilder, extensionRegistry);
  29294. OptionalGroup = subBuilder.BuildPartial();
  29295. break;
  29296. }
  29297. case 163: {
  29298. input.ReadGroupArray(tag, field_name, result.repeatedGroup_, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup.DefaultInstance, extensionRegistry);
  29299. break;
  29300. }
  29301. }
  29302. }
  29303. if (unknownFields != null) {
  29304. this.UnknownFields = unknownFields.Build();
  29305. }
  29306. return this;
  29307. }
  29308. public bool HasRequiredAllTypes {
  29309. get { return result.hasRequiredAllTypes; }
  29310. }
  29311. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes RequiredAllTypes {
  29312. get { return result.RequiredAllTypes; }
  29313. set { SetRequiredAllTypes(value); }
  29314. }
  29315. public Builder SetRequiredAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  29316. pb::ThrowHelper.ThrowIfNull(value, "value");
  29317. PrepareBuilder();
  29318. result.hasRequiredAllTypes = true;
  29319. result.requiredAllTypes_ = value;
  29320. return this;
  29321. }
  29322. public Builder SetRequiredAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  29323. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  29324. PrepareBuilder();
  29325. result.hasRequiredAllTypes = true;
  29326. result.requiredAllTypes_ = builderForValue.Build();
  29327. return this;
  29328. }
  29329. public Builder MergeRequiredAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  29330. pb::ThrowHelper.ThrowIfNull(value, "value");
  29331. PrepareBuilder();
  29332. if (result.hasRequiredAllTypes &&
  29333. result.requiredAllTypes_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
  29334. result.requiredAllTypes_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.requiredAllTypes_).MergeFrom(value).BuildPartial();
  29335. } else {
  29336. result.requiredAllTypes_ = value;
  29337. }
  29338. result.hasRequiredAllTypes = true;
  29339. return this;
  29340. }
  29341. public Builder ClearRequiredAllTypes() {
  29342. PrepareBuilder();
  29343. result.hasRequiredAllTypes = false;
  29344. result.requiredAllTypes_ = null;
  29345. return this;
  29346. }
  29347. public bool HasOptionalAllTypes {
  29348. get { return result.hasOptionalAllTypes; }
  29349. }
  29350. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes OptionalAllTypes {
  29351. get { return result.OptionalAllTypes; }
  29352. set { SetOptionalAllTypes(value); }
  29353. }
  29354. public Builder SetOptionalAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  29355. pb::ThrowHelper.ThrowIfNull(value, "value");
  29356. PrepareBuilder();
  29357. result.hasOptionalAllTypes = true;
  29358. result.optionalAllTypes_ = value;
  29359. return this;
  29360. }
  29361. public Builder SetOptionalAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  29362. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  29363. PrepareBuilder();
  29364. result.hasOptionalAllTypes = true;
  29365. result.optionalAllTypes_ = builderForValue.Build();
  29366. return this;
  29367. }
  29368. public Builder MergeOptionalAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  29369. pb::ThrowHelper.ThrowIfNull(value, "value");
  29370. PrepareBuilder();
  29371. if (result.hasOptionalAllTypes &&
  29372. result.optionalAllTypes_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
  29373. result.optionalAllTypes_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.optionalAllTypes_).MergeFrom(value).BuildPartial();
  29374. } else {
  29375. result.optionalAllTypes_ = value;
  29376. }
  29377. result.hasOptionalAllTypes = true;
  29378. return this;
  29379. }
  29380. public Builder ClearOptionalAllTypes() {
  29381. PrepareBuilder();
  29382. result.hasOptionalAllTypes = false;
  29383. result.optionalAllTypes_ = null;
  29384. return this;
  29385. }
  29386. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> RepeatedAllTypesList {
  29387. get { return PrepareBuilder().repeatedAllTypes_; }
  29388. }
  29389. public int RepeatedAllTypesCount {
  29390. get { return result.RepeatedAllTypesCount; }
  29391. }
  29392. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetRepeatedAllTypes(int index) {
  29393. return result.GetRepeatedAllTypes(index);
  29394. }
  29395. public Builder SetRepeatedAllTypes(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  29396. pb::ThrowHelper.ThrowIfNull(value, "value");
  29397. PrepareBuilder();
  29398. result.repeatedAllTypes_[index] = value;
  29399. return this;
  29400. }
  29401. public Builder SetRepeatedAllTypes(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  29402. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  29403. PrepareBuilder();
  29404. result.repeatedAllTypes_[index] = builderForValue.Build();
  29405. return this;
  29406. }
  29407. public Builder AddRepeatedAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
  29408. pb::ThrowHelper.ThrowIfNull(value, "value");
  29409. PrepareBuilder();
  29410. result.repeatedAllTypes_.Add(value);
  29411. return this;
  29412. }
  29413. public Builder AddRepeatedAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
  29414. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  29415. PrepareBuilder();
  29416. result.repeatedAllTypes_.Add(builderForValue.Build());
  29417. return this;
  29418. }
  29419. public Builder AddRangeRepeatedAllTypes(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> values) {
  29420. PrepareBuilder();
  29421. result.repeatedAllTypes_.Add(values);
  29422. return this;
  29423. }
  29424. public Builder ClearRepeatedAllTypes() {
  29425. PrepareBuilder();
  29426. result.repeatedAllTypes_.Clear();
  29427. return this;
  29428. }
  29429. public bool HasOptionalGroup {
  29430. get { return result.hasOptionalGroup; }
  29431. }
  29432. public global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup OptionalGroup {
  29433. get { return result.OptionalGroup; }
  29434. set { SetOptionalGroup(value); }
  29435. }
  29436. public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup value) {
  29437. pb::ThrowHelper.ThrowIfNull(value, "value");
  29438. PrepareBuilder();
  29439. result.hasOptionalGroup = true;
  29440. result.optionalGroup_ = value;
  29441. return this;
  29442. }
  29443. public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.Builder builderForValue) {
  29444. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  29445. PrepareBuilder();
  29446. result.hasOptionalGroup = true;
  29447. result.optionalGroup_ = builderForValue.Build();
  29448. return this;
  29449. }
  29450. public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup value) {
  29451. pb::ThrowHelper.ThrowIfNull(value, "value");
  29452. PrepareBuilder();
  29453. if (result.hasOptionalGroup &&
  29454. result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.DefaultInstance) {
  29455. result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
  29456. } else {
  29457. result.optionalGroup_ = value;
  29458. }
  29459. result.hasOptionalGroup = true;
  29460. return this;
  29461. }
  29462. public Builder ClearOptionalGroup() {
  29463. PrepareBuilder();
  29464. result.hasOptionalGroup = false;
  29465. result.optionalGroup_ = null;
  29466. return this;
  29467. }
  29468. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup> RepeatedGroupList {
  29469. get { return PrepareBuilder().repeatedGroup_; }
  29470. }
  29471. public int RepeatedGroupCount {
  29472. get { return result.RepeatedGroupCount; }
  29473. }
  29474. public global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup GetRepeatedGroup(int index) {
  29475. return result.GetRepeatedGroup(index);
  29476. }
  29477. public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup value) {
  29478. pb::ThrowHelper.ThrowIfNull(value, "value");
  29479. PrepareBuilder();
  29480. result.repeatedGroup_[index] = value;
  29481. return this;
  29482. }
  29483. public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup.Builder builderForValue) {
  29484. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  29485. PrepareBuilder();
  29486. result.repeatedGroup_[index] = builderForValue.Build();
  29487. return this;
  29488. }
  29489. public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup value) {
  29490. pb::ThrowHelper.ThrowIfNull(value, "value");
  29491. PrepareBuilder();
  29492. result.repeatedGroup_.Add(value);
  29493. return this;
  29494. }
  29495. public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup.Builder builderForValue) {
  29496. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  29497. PrepareBuilder();
  29498. result.repeatedGroup_.Add(builderForValue.Build());
  29499. return this;
  29500. }
  29501. public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup> values) {
  29502. PrepareBuilder();
  29503. result.repeatedGroup_.Add(values);
  29504. return this;
  29505. }
  29506. public Builder ClearRepeatedGroup() {
  29507. PrepareBuilder();
  29508. result.repeatedGroup_.Clear();
  29509. return this;
  29510. }
  29511. }
  29512. static TestParsingMerge() {
  29513. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  29514. }
  29515. }
  29516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  29517. public sealed partial class TestCommentInjectionMessage : pb::GeneratedMessage<TestCommentInjectionMessage, TestCommentInjectionMessage.Builder> {
  29518. private TestCommentInjectionMessage() { }
  29519. private static readonly TestCommentInjectionMessage defaultInstance = new TestCommentInjectionMessage().MakeReadOnly();
  29520. private static readonly string[] _testCommentInjectionMessageFieldNames = new string[] { "a" };
  29521. private static readonly uint[] _testCommentInjectionMessageFieldTags = new uint[] { 10 };
  29522. public static TestCommentInjectionMessage DefaultInstance {
  29523. get { return defaultInstance; }
  29524. }
  29525. public override TestCommentInjectionMessage DefaultInstanceForType {
  29526. get { return DefaultInstance; }
  29527. }
  29528. protected override TestCommentInjectionMessage ThisMessage {
  29529. get { return this; }
  29530. }
  29531. public static pbd::MessageDescriptor Descriptor {
  29532. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestCommentInjectionMessage__Descriptor; }
  29533. }
  29534. protected override pb::FieldAccess.FieldAccessorTable<TestCommentInjectionMessage, TestCommentInjectionMessage.Builder> InternalFieldAccessors {
  29535. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestCommentInjectionMessage__FieldAccessorTable; }
  29536. }
  29537. public const int AFieldNumber = 1;
  29538. private bool hasA;
  29539. private string a_ = "*/ <- Neither should this.";
  29540. public bool HasA {
  29541. get { return hasA; }
  29542. }
  29543. public string A {
  29544. get { return a_; }
  29545. }
  29546. public override bool IsInitialized {
  29547. get {
  29548. return true;
  29549. }
  29550. }
  29551. public override void WriteTo(pb::ICodedOutputStream output) {
  29552. CalcSerializedSize();
  29553. string[] field_names = _testCommentInjectionMessageFieldNames;
  29554. if (hasA) {
  29555. output.WriteString(1, field_names[0], A);
  29556. }
  29557. UnknownFields.WriteTo(output);
  29558. }
  29559. private int memoizedSerializedSize = -1;
  29560. public override int SerializedSize {
  29561. get {
  29562. int size = memoizedSerializedSize;
  29563. if (size != -1) return size;
  29564. return CalcSerializedSize();
  29565. }
  29566. }
  29567. private int CalcSerializedSize() {
  29568. int size = memoizedSerializedSize;
  29569. if (size != -1) return size;
  29570. size = 0;
  29571. if (hasA) {
  29572. size += pb::CodedOutputStream.ComputeStringSize(1, A);
  29573. }
  29574. size += UnknownFields.SerializedSize;
  29575. memoizedSerializedSize = size;
  29576. return size;
  29577. }
  29578. public static TestCommentInjectionMessage ParseFrom(pb::ByteString data) {
  29579. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  29580. }
  29581. public static TestCommentInjectionMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  29582. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  29583. }
  29584. public static TestCommentInjectionMessage ParseFrom(byte[] data) {
  29585. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  29586. }
  29587. public static TestCommentInjectionMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  29588. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  29589. }
  29590. public static TestCommentInjectionMessage ParseFrom(global::System.IO.Stream input) {
  29591. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  29592. }
  29593. public static TestCommentInjectionMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  29594. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  29595. }
  29596. public static TestCommentInjectionMessage ParseDelimitedFrom(global::System.IO.Stream input) {
  29597. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  29598. }
  29599. public static TestCommentInjectionMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  29600. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  29601. }
  29602. public static TestCommentInjectionMessage ParseFrom(pb::ICodedInputStream input) {
  29603. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  29604. }
  29605. public static TestCommentInjectionMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  29606. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  29607. }
  29608. private TestCommentInjectionMessage MakeReadOnly() {
  29609. return this;
  29610. }
  29611. public static Builder CreateBuilder() { return new Builder(); }
  29612. public override Builder ToBuilder() { return CreateBuilder(this); }
  29613. public override Builder CreateBuilderForType() { return new Builder(); }
  29614. public static Builder CreateBuilder(TestCommentInjectionMessage prototype) {
  29615. return new Builder(prototype);
  29616. }
  29617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  29618. public sealed partial class Builder : pb::GeneratedBuilder<TestCommentInjectionMessage, Builder> {
  29619. protected override Builder ThisBuilder {
  29620. get { return this; }
  29621. }
  29622. public Builder() {
  29623. result = DefaultInstance;
  29624. resultIsReadOnly = true;
  29625. }
  29626. internal Builder(TestCommentInjectionMessage cloneFrom) {
  29627. result = cloneFrom;
  29628. resultIsReadOnly = true;
  29629. }
  29630. private bool resultIsReadOnly;
  29631. private TestCommentInjectionMessage result;
  29632. private TestCommentInjectionMessage PrepareBuilder() {
  29633. if (resultIsReadOnly) {
  29634. TestCommentInjectionMessage original = result;
  29635. result = new TestCommentInjectionMessage();
  29636. resultIsReadOnly = false;
  29637. MergeFrom(original);
  29638. }
  29639. return result;
  29640. }
  29641. public override bool IsInitialized {
  29642. get { return result.IsInitialized; }
  29643. }
  29644. protected override TestCommentInjectionMessage MessageBeingBuilt {
  29645. get { return PrepareBuilder(); }
  29646. }
  29647. public override Builder Clear() {
  29648. result = DefaultInstance;
  29649. resultIsReadOnly = true;
  29650. return this;
  29651. }
  29652. public override Builder Clone() {
  29653. if (resultIsReadOnly) {
  29654. return new Builder(result);
  29655. } else {
  29656. return new Builder().MergeFrom(result);
  29657. }
  29658. }
  29659. public override pbd::MessageDescriptor DescriptorForType {
  29660. get { return global::Google.ProtocolBuffers.TestProtos.TestCommentInjectionMessage.Descriptor; }
  29661. }
  29662. public override TestCommentInjectionMessage DefaultInstanceForType {
  29663. get { return global::Google.ProtocolBuffers.TestProtos.TestCommentInjectionMessage.DefaultInstance; }
  29664. }
  29665. public override TestCommentInjectionMessage BuildPartial() {
  29666. if (resultIsReadOnly) {
  29667. return result;
  29668. }
  29669. resultIsReadOnly = true;
  29670. return result.MakeReadOnly();
  29671. }
  29672. public override Builder MergeFrom(pb::IMessage other) {
  29673. if (other is TestCommentInjectionMessage) {
  29674. return MergeFrom((TestCommentInjectionMessage) other);
  29675. } else {
  29676. base.MergeFrom(other);
  29677. return this;
  29678. }
  29679. }
  29680. public override Builder MergeFrom(TestCommentInjectionMessage other) {
  29681. if (other == global::Google.ProtocolBuffers.TestProtos.TestCommentInjectionMessage.DefaultInstance) return this;
  29682. PrepareBuilder();
  29683. if (other.HasA) {
  29684. A = other.A;
  29685. }
  29686. this.MergeUnknownFields(other.UnknownFields);
  29687. return this;
  29688. }
  29689. public override Builder MergeFrom(pb::ICodedInputStream input) {
  29690. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  29691. }
  29692. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  29693. PrepareBuilder();
  29694. pb::UnknownFieldSet.Builder unknownFields = null;
  29695. uint tag;
  29696. string field_name;
  29697. while (input.ReadTag(out tag, out field_name)) {
  29698. if(tag == 0 && field_name != null) {
  29699. int field_ordinal = global::System.Array.BinarySearch(_testCommentInjectionMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  29700. if(field_ordinal >= 0)
  29701. tag = _testCommentInjectionMessageFieldTags[field_ordinal];
  29702. else {
  29703. if (unknownFields == null) {
  29704. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  29705. }
  29706. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  29707. continue;
  29708. }
  29709. }
  29710. switch (tag) {
  29711. case 0: {
  29712. throw pb::InvalidProtocolBufferException.InvalidTag();
  29713. }
  29714. default: {
  29715. if (pb::WireFormat.IsEndGroupTag(tag)) {
  29716. if (unknownFields != null) {
  29717. this.UnknownFields = unknownFields.Build();
  29718. }
  29719. return this;
  29720. }
  29721. if (unknownFields == null) {
  29722. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  29723. }
  29724. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  29725. break;
  29726. }
  29727. case 10: {
  29728. result.hasA = input.ReadString(ref result.a_);
  29729. break;
  29730. }
  29731. }
  29732. }
  29733. if (unknownFields != null) {
  29734. this.UnknownFields = unknownFields.Build();
  29735. }
  29736. return this;
  29737. }
  29738. public bool HasA {
  29739. get { return result.hasA; }
  29740. }
  29741. public string A {
  29742. get { return result.A; }
  29743. set { SetA(value); }
  29744. }
  29745. public Builder SetA(string value) {
  29746. pb::ThrowHelper.ThrowIfNull(value, "value");
  29747. PrepareBuilder();
  29748. result.hasA = true;
  29749. result.a_ = value;
  29750. return this;
  29751. }
  29752. public Builder ClearA() {
  29753. PrepareBuilder();
  29754. result.hasA = false;
  29755. result.a_ = "*/ <- Neither should this.";
  29756. return this;
  29757. }
  29758. }
  29759. static TestCommentInjectionMessage() {
  29760. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  29761. }
  29762. }
  29763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  29764. public sealed partial class FooRequest : pb::GeneratedMessage<FooRequest, FooRequest.Builder> {
  29765. private FooRequest() { }
  29766. private static readonly FooRequest defaultInstance = new FooRequest().MakeReadOnly();
  29767. private static readonly string[] _fooRequestFieldNames = new string[] { };
  29768. private static readonly uint[] _fooRequestFieldTags = new uint[] { };
  29769. public static FooRequest DefaultInstance {
  29770. get { return defaultInstance; }
  29771. }
  29772. public override FooRequest DefaultInstanceForType {
  29773. get { return DefaultInstance; }
  29774. }
  29775. protected override FooRequest ThisMessage {
  29776. get { return this; }
  29777. }
  29778. public static pbd::MessageDescriptor Descriptor {
  29779. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_FooRequest__Descriptor; }
  29780. }
  29781. protected override pb::FieldAccess.FieldAccessorTable<FooRequest, FooRequest.Builder> InternalFieldAccessors {
  29782. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; }
  29783. }
  29784. public override bool IsInitialized {
  29785. get {
  29786. return true;
  29787. }
  29788. }
  29789. public override void WriteTo(pb::ICodedOutputStream output) {
  29790. CalcSerializedSize();
  29791. string[] field_names = _fooRequestFieldNames;
  29792. UnknownFields.WriteTo(output);
  29793. }
  29794. private int memoizedSerializedSize = -1;
  29795. public override int SerializedSize {
  29796. get {
  29797. int size = memoizedSerializedSize;
  29798. if (size != -1) return size;
  29799. return CalcSerializedSize();
  29800. }
  29801. }
  29802. private int CalcSerializedSize() {
  29803. int size = memoizedSerializedSize;
  29804. if (size != -1) return size;
  29805. size = 0;
  29806. size += UnknownFields.SerializedSize;
  29807. memoizedSerializedSize = size;
  29808. return size;
  29809. }
  29810. public static FooRequest ParseFrom(pb::ByteString data) {
  29811. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  29812. }
  29813. public static FooRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  29814. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  29815. }
  29816. public static FooRequest ParseFrom(byte[] data) {
  29817. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  29818. }
  29819. public static FooRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  29820. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  29821. }
  29822. public static FooRequest ParseFrom(global::System.IO.Stream input) {
  29823. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  29824. }
  29825. public static FooRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  29826. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  29827. }
  29828. public static FooRequest ParseDelimitedFrom(global::System.IO.Stream input) {
  29829. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  29830. }
  29831. public static FooRequest ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  29832. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  29833. }
  29834. public static FooRequest ParseFrom(pb::ICodedInputStream input) {
  29835. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  29836. }
  29837. public static FooRequest ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  29838. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  29839. }
  29840. private FooRequest MakeReadOnly() {
  29841. return this;
  29842. }
  29843. public static Builder CreateBuilder() { return new Builder(); }
  29844. public override Builder ToBuilder() { return CreateBuilder(this); }
  29845. public override Builder CreateBuilderForType() { return new Builder(); }
  29846. public static Builder CreateBuilder(FooRequest prototype) {
  29847. return new Builder(prototype);
  29848. }
  29849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  29850. public sealed partial class Builder : pb::GeneratedBuilder<FooRequest, Builder> {
  29851. protected override Builder ThisBuilder {
  29852. get { return this; }
  29853. }
  29854. public Builder() {
  29855. result = DefaultInstance;
  29856. resultIsReadOnly = true;
  29857. }
  29858. internal Builder(FooRequest cloneFrom) {
  29859. result = cloneFrom;
  29860. resultIsReadOnly = true;
  29861. }
  29862. private bool resultIsReadOnly;
  29863. private FooRequest result;
  29864. private FooRequest PrepareBuilder() {
  29865. if (resultIsReadOnly) {
  29866. FooRequest original = result;
  29867. result = new FooRequest();
  29868. resultIsReadOnly = false;
  29869. MergeFrom(original);
  29870. }
  29871. return result;
  29872. }
  29873. public override bool IsInitialized {
  29874. get { return result.IsInitialized; }
  29875. }
  29876. protected override FooRequest MessageBeingBuilt {
  29877. get { return PrepareBuilder(); }
  29878. }
  29879. public override Builder Clear() {
  29880. result = DefaultInstance;
  29881. resultIsReadOnly = true;
  29882. return this;
  29883. }
  29884. public override Builder Clone() {
  29885. if (resultIsReadOnly) {
  29886. return new Builder(result);
  29887. } else {
  29888. return new Builder().MergeFrom(result);
  29889. }
  29890. }
  29891. public override pbd::MessageDescriptor DescriptorForType {
  29892. get { return global::Google.ProtocolBuffers.TestProtos.FooRequest.Descriptor; }
  29893. }
  29894. public override FooRequest DefaultInstanceForType {
  29895. get { return global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance; }
  29896. }
  29897. public override FooRequest BuildPartial() {
  29898. if (resultIsReadOnly) {
  29899. return result;
  29900. }
  29901. resultIsReadOnly = true;
  29902. return result.MakeReadOnly();
  29903. }
  29904. public override Builder MergeFrom(pb::IMessage other) {
  29905. if (other is FooRequest) {
  29906. return MergeFrom((FooRequest) other);
  29907. } else {
  29908. base.MergeFrom(other);
  29909. return this;
  29910. }
  29911. }
  29912. public override Builder MergeFrom(FooRequest other) {
  29913. if (other == global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance) return this;
  29914. PrepareBuilder();
  29915. this.MergeUnknownFields(other.UnknownFields);
  29916. return this;
  29917. }
  29918. public override Builder MergeFrom(pb::ICodedInputStream input) {
  29919. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  29920. }
  29921. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  29922. PrepareBuilder();
  29923. pb::UnknownFieldSet.Builder unknownFields = null;
  29924. uint tag;
  29925. string field_name;
  29926. while (input.ReadTag(out tag, out field_name)) {
  29927. if(tag == 0 && field_name != null) {
  29928. int field_ordinal = global::System.Array.BinarySearch(_fooRequestFieldNames, field_name, global::System.StringComparer.Ordinal);
  29929. if(field_ordinal >= 0)
  29930. tag = _fooRequestFieldTags[field_ordinal];
  29931. else {
  29932. if (unknownFields == null) {
  29933. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  29934. }
  29935. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  29936. continue;
  29937. }
  29938. }
  29939. switch (tag) {
  29940. case 0: {
  29941. throw pb::InvalidProtocolBufferException.InvalidTag();
  29942. }
  29943. default: {
  29944. if (pb::WireFormat.IsEndGroupTag(tag)) {
  29945. if (unknownFields != null) {
  29946. this.UnknownFields = unknownFields.Build();
  29947. }
  29948. return this;
  29949. }
  29950. if (unknownFields == null) {
  29951. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  29952. }
  29953. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  29954. break;
  29955. }
  29956. }
  29957. }
  29958. if (unknownFields != null) {
  29959. this.UnknownFields = unknownFields.Build();
  29960. }
  29961. return this;
  29962. }
  29963. }
  29964. static FooRequest() {
  29965. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  29966. }
  29967. }
  29968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  29969. public sealed partial class FooResponse : pb::GeneratedMessage<FooResponse, FooResponse.Builder> {
  29970. private FooResponse() { }
  29971. private static readonly FooResponse defaultInstance = new FooResponse().MakeReadOnly();
  29972. private static readonly string[] _fooResponseFieldNames = new string[] { };
  29973. private static readonly uint[] _fooResponseFieldTags = new uint[] { };
  29974. public static FooResponse DefaultInstance {
  29975. get { return defaultInstance; }
  29976. }
  29977. public override FooResponse DefaultInstanceForType {
  29978. get { return DefaultInstance; }
  29979. }
  29980. protected override FooResponse ThisMessage {
  29981. get { return this; }
  29982. }
  29983. public static pbd::MessageDescriptor Descriptor {
  29984. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_FooResponse__Descriptor; }
  29985. }
  29986. protected override pb::FieldAccess.FieldAccessorTable<FooResponse, FooResponse.Builder> InternalFieldAccessors {
  29987. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; }
  29988. }
  29989. public override bool IsInitialized {
  29990. get {
  29991. return true;
  29992. }
  29993. }
  29994. public override void WriteTo(pb::ICodedOutputStream output) {
  29995. CalcSerializedSize();
  29996. string[] field_names = _fooResponseFieldNames;
  29997. UnknownFields.WriteTo(output);
  29998. }
  29999. private int memoizedSerializedSize = -1;
  30000. public override int SerializedSize {
  30001. get {
  30002. int size = memoizedSerializedSize;
  30003. if (size != -1) return size;
  30004. return CalcSerializedSize();
  30005. }
  30006. }
  30007. private int CalcSerializedSize() {
  30008. int size = memoizedSerializedSize;
  30009. if (size != -1) return size;
  30010. size = 0;
  30011. size += UnknownFields.SerializedSize;
  30012. memoizedSerializedSize = size;
  30013. return size;
  30014. }
  30015. public static FooResponse ParseFrom(pb::ByteString data) {
  30016. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  30017. }
  30018. public static FooResponse ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  30019. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  30020. }
  30021. public static FooResponse ParseFrom(byte[] data) {
  30022. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  30023. }
  30024. public static FooResponse ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  30025. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  30026. }
  30027. public static FooResponse ParseFrom(global::System.IO.Stream input) {
  30028. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  30029. }
  30030. public static FooResponse ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  30031. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  30032. }
  30033. public static FooResponse ParseDelimitedFrom(global::System.IO.Stream input) {
  30034. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  30035. }
  30036. public static FooResponse ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  30037. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  30038. }
  30039. public static FooResponse ParseFrom(pb::ICodedInputStream input) {
  30040. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  30041. }
  30042. public static FooResponse ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  30043. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  30044. }
  30045. private FooResponse MakeReadOnly() {
  30046. return this;
  30047. }
  30048. public static Builder CreateBuilder() { return new Builder(); }
  30049. public override Builder ToBuilder() { return CreateBuilder(this); }
  30050. public override Builder CreateBuilderForType() { return new Builder(); }
  30051. public static Builder CreateBuilder(FooResponse prototype) {
  30052. return new Builder(prototype);
  30053. }
  30054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  30055. public sealed partial class Builder : pb::GeneratedBuilder<FooResponse, Builder> {
  30056. protected override Builder ThisBuilder {
  30057. get { return this; }
  30058. }
  30059. public Builder() {
  30060. result = DefaultInstance;
  30061. resultIsReadOnly = true;
  30062. }
  30063. internal Builder(FooResponse cloneFrom) {
  30064. result = cloneFrom;
  30065. resultIsReadOnly = true;
  30066. }
  30067. private bool resultIsReadOnly;
  30068. private FooResponse result;
  30069. private FooResponse PrepareBuilder() {
  30070. if (resultIsReadOnly) {
  30071. FooResponse original = result;
  30072. result = new FooResponse();
  30073. resultIsReadOnly = false;
  30074. MergeFrom(original);
  30075. }
  30076. return result;
  30077. }
  30078. public override bool IsInitialized {
  30079. get { return result.IsInitialized; }
  30080. }
  30081. protected override FooResponse MessageBeingBuilt {
  30082. get { return PrepareBuilder(); }
  30083. }
  30084. public override Builder Clear() {
  30085. result = DefaultInstance;
  30086. resultIsReadOnly = true;
  30087. return this;
  30088. }
  30089. public override Builder Clone() {
  30090. if (resultIsReadOnly) {
  30091. return new Builder(result);
  30092. } else {
  30093. return new Builder().MergeFrom(result);
  30094. }
  30095. }
  30096. public override pbd::MessageDescriptor DescriptorForType {
  30097. get { return global::Google.ProtocolBuffers.TestProtos.FooResponse.Descriptor; }
  30098. }
  30099. public override FooResponse DefaultInstanceForType {
  30100. get { return global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance; }
  30101. }
  30102. public override FooResponse BuildPartial() {
  30103. if (resultIsReadOnly) {
  30104. return result;
  30105. }
  30106. resultIsReadOnly = true;
  30107. return result.MakeReadOnly();
  30108. }
  30109. public override Builder MergeFrom(pb::IMessage other) {
  30110. if (other is FooResponse) {
  30111. return MergeFrom((FooResponse) other);
  30112. } else {
  30113. base.MergeFrom(other);
  30114. return this;
  30115. }
  30116. }
  30117. public override Builder MergeFrom(FooResponse other) {
  30118. if (other == global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance) return this;
  30119. PrepareBuilder();
  30120. this.MergeUnknownFields(other.UnknownFields);
  30121. return this;
  30122. }
  30123. public override Builder MergeFrom(pb::ICodedInputStream input) {
  30124. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  30125. }
  30126. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  30127. PrepareBuilder();
  30128. pb::UnknownFieldSet.Builder unknownFields = null;
  30129. uint tag;
  30130. string field_name;
  30131. while (input.ReadTag(out tag, out field_name)) {
  30132. if(tag == 0 && field_name != null) {
  30133. int field_ordinal = global::System.Array.BinarySearch(_fooResponseFieldNames, field_name, global::System.StringComparer.Ordinal);
  30134. if(field_ordinal >= 0)
  30135. tag = _fooResponseFieldTags[field_ordinal];
  30136. else {
  30137. if (unknownFields == null) {
  30138. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  30139. }
  30140. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  30141. continue;
  30142. }
  30143. }
  30144. switch (tag) {
  30145. case 0: {
  30146. throw pb::InvalidProtocolBufferException.InvalidTag();
  30147. }
  30148. default: {
  30149. if (pb::WireFormat.IsEndGroupTag(tag)) {
  30150. if (unknownFields != null) {
  30151. this.UnknownFields = unknownFields.Build();
  30152. }
  30153. return this;
  30154. }
  30155. if (unknownFields == null) {
  30156. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  30157. }
  30158. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  30159. break;
  30160. }
  30161. }
  30162. }
  30163. if (unknownFields != null) {
  30164. this.UnknownFields = unknownFields.Build();
  30165. }
  30166. return this;
  30167. }
  30168. }
  30169. static FooResponse() {
  30170. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  30171. }
  30172. }
  30173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  30174. public sealed partial class FooClientMessage : pb::GeneratedMessage<FooClientMessage, FooClientMessage.Builder> {
  30175. private FooClientMessage() { }
  30176. private static readonly FooClientMessage defaultInstance = new FooClientMessage().MakeReadOnly();
  30177. private static readonly string[] _fooClientMessageFieldNames = new string[] { };
  30178. private static readonly uint[] _fooClientMessageFieldTags = new uint[] { };
  30179. public static FooClientMessage DefaultInstance {
  30180. get { return defaultInstance; }
  30181. }
  30182. public override FooClientMessage DefaultInstanceForType {
  30183. get { return DefaultInstance; }
  30184. }
  30185. protected override FooClientMessage ThisMessage {
  30186. get { return this; }
  30187. }
  30188. public static pbd::MessageDescriptor Descriptor {
  30189. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_FooClientMessage__Descriptor; }
  30190. }
  30191. protected override pb::FieldAccess.FieldAccessorTable<FooClientMessage, FooClientMessage.Builder> InternalFieldAccessors {
  30192. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_FooClientMessage__FieldAccessorTable; }
  30193. }
  30194. public override bool IsInitialized {
  30195. get {
  30196. return true;
  30197. }
  30198. }
  30199. public override void WriteTo(pb::ICodedOutputStream output) {
  30200. CalcSerializedSize();
  30201. string[] field_names = _fooClientMessageFieldNames;
  30202. UnknownFields.WriteTo(output);
  30203. }
  30204. private int memoizedSerializedSize = -1;
  30205. public override int SerializedSize {
  30206. get {
  30207. int size = memoizedSerializedSize;
  30208. if (size != -1) return size;
  30209. return CalcSerializedSize();
  30210. }
  30211. }
  30212. private int CalcSerializedSize() {
  30213. int size = memoizedSerializedSize;
  30214. if (size != -1) return size;
  30215. size = 0;
  30216. size += UnknownFields.SerializedSize;
  30217. memoizedSerializedSize = size;
  30218. return size;
  30219. }
  30220. public static FooClientMessage ParseFrom(pb::ByteString data) {
  30221. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  30222. }
  30223. public static FooClientMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  30224. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  30225. }
  30226. public static FooClientMessage ParseFrom(byte[] data) {
  30227. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  30228. }
  30229. public static FooClientMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  30230. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  30231. }
  30232. public static FooClientMessage ParseFrom(global::System.IO.Stream input) {
  30233. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  30234. }
  30235. public static FooClientMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  30236. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  30237. }
  30238. public static FooClientMessage ParseDelimitedFrom(global::System.IO.Stream input) {
  30239. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  30240. }
  30241. public static FooClientMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  30242. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  30243. }
  30244. public static FooClientMessage ParseFrom(pb::ICodedInputStream input) {
  30245. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  30246. }
  30247. public static FooClientMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  30248. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  30249. }
  30250. private FooClientMessage MakeReadOnly() {
  30251. return this;
  30252. }
  30253. public static Builder CreateBuilder() { return new Builder(); }
  30254. public override Builder ToBuilder() { return CreateBuilder(this); }
  30255. public override Builder CreateBuilderForType() { return new Builder(); }
  30256. public static Builder CreateBuilder(FooClientMessage prototype) {
  30257. return new Builder(prototype);
  30258. }
  30259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  30260. public sealed partial class Builder : pb::GeneratedBuilder<FooClientMessage, Builder> {
  30261. protected override Builder ThisBuilder {
  30262. get { return this; }
  30263. }
  30264. public Builder() {
  30265. result = DefaultInstance;
  30266. resultIsReadOnly = true;
  30267. }
  30268. internal Builder(FooClientMessage cloneFrom) {
  30269. result = cloneFrom;
  30270. resultIsReadOnly = true;
  30271. }
  30272. private bool resultIsReadOnly;
  30273. private FooClientMessage result;
  30274. private FooClientMessage PrepareBuilder() {
  30275. if (resultIsReadOnly) {
  30276. FooClientMessage original = result;
  30277. result = new FooClientMessage();
  30278. resultIsReadOnly = false;
  30279. MergeFrom(original);
  30280. }
  30281. return result;
  30282. }
  30283. public override bool IsInitialized {
  30284. get { return result.IsInitialized; }
  30285. }
  30286. protected override FooClientMessage MessageBeingBuilt {
  30287. get { return PrepareBuilder(); }
  30288. }
  30289. public override Builder Clear() {
  30290. result = DefaultInstance;
  30291. resultIsReadOnly = true;
  30292. return this;
  30293. }
  30294. public override Builder Clone() {
  30295. if (resultIsReadOnly) {
  30296. return new Builder(result);
  30297. } else {
  30298. return new Builder().MergeFrom(result);
  30299. }
  30300. }
  30301. public override pbd::MessageDescriptor DescriptorForType {
  30302. get { return global::Google.ProtocolBuffers.TestProtos.FooClientMessage.Descriptor; }
  30303. }
  30304. public override FooClientMessage DefaultInstanceForType {
  30305. get { return global::Google.ProtocolBuffers.TestProtos.FooClientMessage.DefaultInstance; }
  30306. }
  30307. public override FooClientMessage BuildPartial() {
  30308. if (resultIsReadOnly) {
  30309. return result;
  30310. }
  30311. resultIsReadOnly = true;
  30312. return result.MakeReadOnly();
  30313. }
  30314. public override Builder MergeFrom(pb::IMessage other) {
  30315. if (other is FooClientMessage) {
  30316. return MergeFrom((FooClientMessage) other);
  30317. } else {
  30318. base.MergeFrom(other);
  30319. return this;
  30320. }
  30321. }
  30322. public override Builder MergeFrom(FooClientMessage other) {
  30323. if (other == global::Google.ProtocolBuffers.TestProtos.FooClientMessage.DefaultInstance) return this;
  30324. PrepareBuilder();
  30325. this.MergeUnknownFields(other.UnknownFields);
  30326. return this;
  30327. }
  30328. public override Builder MergeFrom(pb::ICodedInputStream input) {
  30329. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  30330. }
  30331. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  30332. PrepareBuilder();
  30333. pb::UnknownFieldSet.Builder unknownFields = null;
  30334. uint tag;
  30335. string field_name;
  30336. while (input.ReadTag(out tag, out field_name)) {
  30337. if(tag == 0 && field_name != null) {
  30338. int field_ordinal = global::System.Array.BinarySearch(_fooClientMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  30339. if(field_ordinal >= 0)
  30340. tag = _fooClientMessageFieldTags[field_ordinal];
  30341. else {
  30342. if (unknownFields == null) {
  30343. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  30344. }
  30345. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  30346. continue;
  30347. }
  30348. }
  30349. switch (tag) {
  30350. case 0: {
  30351. throw pb::InvalidProtocolBufferException.InvalidTag();
  30352. }
  30353. default: {
  30354. if (pb::WireFormat.IsEndGroupTag(tag)) {
  30355. if (unknownFields != null) {
  30356. this.UnknownFields = unknownFields.Build();
  30357. }
  30358. return this;
  30359. }
  30360. if (unknownFields == null) {
  30361. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  30362. }
  30363. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  30364. break;
  30365. }
  30366. }
  30367. }
  30368. if (unknownFields != null) {
  30369. this.UnknownFields = unknownFields.Build();
  30370. }
  30371. return this;
  30372. }
  30373. }
  30374. static FooClientMessage() {
  30375. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  30376. }
  30377. }
  30378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  30379. public sealed partial class FooServerMessage : pb::GeneratedMessage<FooServerMessage, FooServerMessage.Builder> {
  30380. private FooServerMessage() { }
  30381. private static readonly FooServerMessage defaultInstance = new FooServerMessage().MakeReadOnly();
  30382. private static readonly string[] _fooServerMessageFieldNames = new string[] { };
  30383. private static readonly uint[] _fooServerMessageFieldTags = new uint[] { };
  30384. public static FooServerMessage DefaultInstance {
  30385. get { return defaultInstance; }
  30386. }
  30387. public override FooServerMessage DefaultInstanceForType {
  30388. get { return DefaultInstance; }
  30389. }
  30390. protected override FooServerMessage ThisMessage {
  30391. get { return this; }
  30392. }
  30393. public static pbd::MessageDescriptor Descriptor {
  30394. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_FooServerMessage__Descriptor; }
  30395. }
  30396. protected override pb::FieldAccess.FieldAccessorTable<FooServerMessage, FooServerMessage.Builder> InternalFieldAccessors {
  30397. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_FooServerMessage__FieldAccessorTable; }
  30398. }
  30399. public override bool IsInitialized {
  30400. get {
  30401. return true;
  30402. }
  30403. }
  30404. public override void WriteTo(pb::ICodedOutputStream output) {
  30405. CalcSerializedSize();
  30406. string[] field_names = _fooServerMessageFieldNames;
  30407. UnknownFields.WriteTo(output);
  30408. }
  30409. private int memoizedSerializedSize = -1;
  30410. public override int SerializedSize {
  30411. get {
  30412. int size = memoizedSerializedSize;
  30413. if (size != -1) return size;
  30414. return CalcSerializedSize();
  30415. }
  30416. }
  30417. private int CalcSerializedSize() {
  30418. int size = memoizedSerializedSize;
  30419. if (size != -1) return size;
  30420. size = 0;
  30421. size += UnknownFields.SerializedSize;
  30422. memoizedSerializedSize = size;
  30423. return size;
  30424. }
  30425. public static FooServerMessage ParseFrom(pb::ByteString data) {
  30426. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  30427. }
  30428. public static FooServerMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  30429. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  30430. }
  30431. public static FooServerMessage ParseFrom(byte[] data) {
  30432. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  30433. }
  30434. public static FooServerMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  30435. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  30436. }
  30437. public static FooServerMessage ParseFrom(global::System.IO.Stream input) {
  30438. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  30439. }
  30440. public static FooServerMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  30441. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  30442. }
  30443. public static FooServerMessage ParseDelimitedFrom(global::System.IO.Stream input) {
  30444. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  30445. }
  30446. public static FooServerMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  30447. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  30448. }
  30449. public static FooServerMessage ParseFrom(pb::ICodedInputStream input) {
  30450. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  30451. }
  30452. public static FooServerMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  30453. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  30454. }
  30455. private FooServerMessage MakeReadOnly() {
  30456. return this;
  30457. }
  30458. public static Builder CreateBuilder() { return new Builder(); }
  30459. public override Builder ToBuilder() { return CreateBuilder(this); }
  30460. public override Builder CreateBuilderForType() { return new Builder(); }
  30461. public static Builder CreateBuilder(FooServerMessage prototype) {
  30462. return new Builder(prototype);
  30463. }
  30464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  30465. public sealed partial class Builder : pb::GeneratedBuilder<FooServerMessage, Builder> {
  30466. protected override Builder ThisBuilder {
  30467. get { return this; }
  30468. }
  30469. public Builder() {
  30470. result = DefaultInstance;
  30471. resultIsReadOnly = true;
  30472. }
  30473. internal Builder(FooServerMessage cloneFrom) {
  30474. result = cloneFrom;
  30475. resultIsReadOnly = true;
  30476. }
  30477. private bool resultIsReadOnly;
  30478. private FooServerMessage result;
  30479. private FooServerMessage PrepareBuilder() {
  30480. if (resultIsReadOnly) {
  30481. FooServerMessage original = result;
  30482. result = new FooServerMessage();
  30483. resultIsReadOnly = false;
  30484. MergeFrom(original);
  30485. }
  30486. return result;
  30487. }
  30488. public override bool IsInitialized {
  30489. get { return result.IsInitialized; }
  30490. }
  30491. protected override FooServerMessage MessageBeingBuilt {
  30492. get { return PrepareBuilder(); }
  30493. }
  30494. public override Builder Clear() {
  30495. result = DefaultInstance;
  30496. resultIsReadOnly = true;
  30497. return this;
  30498. }
  30499. public override Builder Clone() {
  30500. if (resultIsReadOnly) {
  30501. return new Builder(result);
  30502. } else {
  30503. return new Builder().MergeFrom(result);
  30504. }
  30505. }
  30506. public override pbd::MessageDescriptor DescriptorForType {
  30507. get { return global::Google.ProtocolBuffers.TestProtos.FooServerMessage.Descriptor; }
  30508. }
  30509. public override FooServerMessage DefaultInstanceForType {
  30510. get { return global::Google.ProtocolBuffers.TestProtos.FooServerMessage.DefaultInstance; }
  30511. }
  30512. public override FooServerMessage BuildPartial() {
  30513. if (resultIsReadOnly) {
  30514. return result;
  30515. }
  30516. resultIsReadOnly = true;
  30517. return result.MakeReadOnly();
  30518. }
  30519. public override Builder MergeFrom(pb::IMessage other) {
  30520. if (other is FooServerMessage) {
  30521. return MergeFrom((FooServerMessage) other);
  30522. } else {
  30523. base.MergeFrom(other);
  30524. return this;
  30525. }
  30526. }
  30527. public override Builder MergeFrom(FooServerMessage other) {
  30528. if (other == global::Google.ProtocolBuffers.TestProtos.FooServerMessage.DefaultInstance) return this;
  30529. PrepareBuilder();
  30530. this.MergeUnknownFields(other.UnknownFields);
  30531. return this;
  30532. }
  30533. public override Builder MergeFrom(pb::ICodedInputStream input) {
  30534. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  30535. }
  30536. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  30537. PrepareBuilder();
  30538. pb::UnknownFieldSet.Builder unknownFields = null;
  30539. uint tag;
  30540. string field_name;
  30541. while (input.ReadTag(out tag, out field_name)) {
  30542. if(tag == 0 && field_name != null) {
  30543. int field_ordinal = global::System.Array.BinarySearch(_fooServerMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
  30544. if(field_ordinal >= 0)
  30545. tag = _fooServerMessageFieldTags[field_ordinal];
  30546. else {
  30547. if (unknownFields == null) {
  30548. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  30549. }
  30550. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  30551. continue;
  30552. }
  30553. }
  30554. switch (tag) {
  30555. case 0: {
  30556. throw pb::InvalidProtocolBufferException.InvalidTag();
  30557. }
  30558. default: {
  30559. if (pb::WireFormat.IsEndGroupTag(tag)) {
  30560. if (unknownFields != null) {
  30561. this.UnknownFields = unknownFields.Build();
  30562. }
  30563. return this;
  30564. }
  30565. if (unknownFields == null) {
  30566. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  30567. }
  30568. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  30569. break;
  30570. }
  30571. }
  30572. }
  30573. if (unknownFields != null) {
  30574. this.UnknownFields = unknownFields.Build();
  30575. }
  30576. return this;
  30577. }
  30578. }
  30579. static FooServerMessage() {
  30580. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  30581. }
  30582. }
  30583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  30584. public sealed partial class BarRequest : pb::GeneratedMessage<BarRequest, BarRequest.Builder> {
  30585. private BarRequest() { }
  30586. private static readonly BarRequest defaultInstance = new BarRequest().MakeReadOnly();
  30587. private static readonly string[] _barRequestFieldNames = new string[] { };
  30588. private static readonly uint[] _barRequestFieldTags = new uint[] { };
  30589. public static BarRequest DefaultInstance {
  30590. get { return defaultInstance; }
  30591. }
  30592. public override BarRequest DefaultInstanceForType {
  30593. get { return DefaultInstance; }
  30594. }
  30595. protected override BarRequest ThisMessage {
  30596. get { return this; }
  30597. }
  30598. public static pbd::MessageDescriptor Descriptor {
  30599. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_BarRequest__Descriptor; }
  30600. }
  30601. protected override pb::FieldAccess.FieldAccessorTable<BarRequest, BarRequest.Builder> InternalFieldAccessors {
  30602. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; }
  30603. }
  30604. public override bool IsInitialized {
  30605. get {
  30606. return true;
  30607. }
  30608. }
  30609. public override void WriteTo(pb::ICodedOutputStream output) {
  30610. CalcSerializedSize();
  30611. string[] field_names = _barRequestFieldNames;
  30612. UnknownFields.WriteTo(output);
  30613. }
  30614. private int memoizedSerializedSize = -1;
  30615. public override int SerializedSize {
  30616. get {
  30617. int size = memoizedSerializedSize;
  30618. if (size != -1) return size;
  30619. return CalcSerializedSize();
  30620. }
  30621. }
  30622. private int CalcSerializedSize() {
  30623. int size = memoizedSerializedSize;
  30624. if (size != -1) return size;
  30625. size = 0;
  30626. size += UnknownFields.SerializedSize;
  30627. memoizedSerializedSize = size;
  30628. return size;
  30629. }
  30630. public static BarRequest ParseFrom(pb::ByteString data) {
  30631. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  30632. }
  30633. public static BarRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  30634. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  30635. }
  30636. public static BarRequest ParseFrom(byte[] data) {
  30637. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  30638. }
  30639. public static BarRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  30640. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  30641. }
  30642. public static BarRequest ParseFrom(global::System.IO.Stream input) {
  30643. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  30644. }
  30645. public static BarRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  30646. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  30647. }
  30648. public static BarRequest ParseDelimitedFrom(global::System.IO.Stream input) {
  30649. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  30650. }
  30651. public static BarRequest ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  30652. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  30653. }
  30654. public static BarRequest ParseFrom(pb::ICodedInputStream input) {
  30655. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  30656. }
  30657. public static BarRequest ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  30658. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  30659. }
  30660. private BarRequest MakeReadOnly() {
  30661. return this;
  30662. }
  30663. public static Builder CreateBuilder() { return new Builder(); }
  30664. public override Builder ToBuilder() { return CreateBuilder(this); }
  30665. public override Builder CreateBuilderForType() { return new Builder(); }
  30666. public static Builder CreateBuilder(BarRequest prototype) {
  30667. return new Builder(prototype);
  30668. }
  30669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  30670. public sealed partial class Builder : pb::GeneratedBuilder<BarRequest, Builder> {
  30671. protected override Builder ThisBuilder {
  30672. get { return this; }
  30673. }
  30674. public Builder() {
  30675. result = DefaultInstance;
  30676. resultIsReadOnly = true;
  30677. }
  30678. internal Builder(BarRequest cloneFrom) {
  30679. result = cloneFrom;
  30680. resultIsReadOnly = true;
  30681. }
  30682. private bool resultIsReadOnly;
  30683. private BarRequest result;
  30684. private BarRequest PrepareBuilder() {
  30685. if (resultIsReadOnly) {
  30686. BarRequest original = result;
  30687. result = new BarRequest();
  30688. resultIsReadOnly = false;
  30689. MergeFrom(original);
  30690. }
  30691. return result;
  30692. }
  30693. public override bool IsInitialized {
  30694. get { return result.IsInitialized; }
  30695. }
  30696. protected override BarRequest MessageBeingBuilt {
  30697. get { return PrepareBuilder(); }
  30698. }
  30699. public override Builder Clear() {
  30700. result = DefaultInstance;
  30701. resultIsReadOnly = true;
  30702. return this;
  30703. }
  30704. public override Builder Clone() {
  30705. if (resultIsReadOnly) {
  30706. return new Builder(result);
  30707. } else {
  30708. return new Builder().MergeFrom(result);
  30709. }
  30710. }
  30711. public override pbd::MessageDescriptor DescriptorForType {
  30712. get { return global::Google.ProtocolBuffers.TestProtos.BarRequest.Descriptor; }
  30713. }
  30714. public override BarRequest DefaultInstanceForType {
  30715. get { return global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance; }
  30716. }
  30717. public override BarRequest BuildPartial() {
  30718. if (resultIsReadOnly) {
  30719. return result;
  30720. }
  30721. resultIsReadOnly = true;
  30722. return result.MakeReadOnly();
  30723. }
  30724. public override Builder MergeFrom(pb::IMessage other) {
  30725. if (other is BarRequest) {
  30726. return MergeFrom((BarRequest) other);
  30727. } else {
  30728. base.MergeFrom(other);
  30729. return this;
  30730. }
  30731. }
  30732. public override Builder MergeFrom(BarRequest other) {
  30733. if (other == global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance) return this;
  30734. PrepareBuilder();
  30735. this.MergeUnknownFields(other.UnknownFields);
  30736. return this;
  30737. }
  30738. public override Builder MergeFrom(pb::ICodedInputStream input) {
  30739. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  30740. }
  30741. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  30742. PrepareBuilder();
  30743. pb::UnknownFieldSet.Builder unknownFields = null;
  30744. uint tag;
  30745. string field_name;
  30746. while (input.ReadTag(out tag, out field_name)) {
  30747. if(tag == 0 && field_name != null) {
  30748. int field_ordinal = global::System.Array.BinarySearch(_barRequestFieldNames, field_name, global::System.StringComparer.Ordinal);
  30749. if(field_ordinal >= 0)
  30750. tag = _barRequestFieldTags[field_ordinal];
  30751. else {
  30752. if (unknownFields == null) {
  30753. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  30754. }
  30755. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  30756. continue;
  30757. }
  30758. }
  30759. switch (tag) {
  30760. case 0: {
  30761. throw pb::InvalidProtocolBufferException.InvalidTag();
  30762. }
  30763. default: {
  30764. if (pb::WireFormat.IsEndGroupTag(tag)) {
  30765. if (unknownFields != null) {
  30766. this.UnknownFields = unknownFields.Build();
  30767. }
  30768. return this;
  30769. }
  30770. if (unknownFields == null) {
  30771. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  30772. }
  30773. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  30774. break;
  30775. }
  30776. }
  30777. }
  30778. if (unknownFields != null) {
  30779. this.UnknownFields = unknownFields.Build();
  30780. }
  30781. return this;
  30782. }
  30783. }
  30784. static BarRequest() {
  30785. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  30786. }
  30787. }
  30788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  30789. public sealed partial class BarResponse : pb::GeneratedMessage<BarResponse, BarResponse.Builder> {
  30790. private BarResponse() { }
  30791. private static readonly BarResponse defaultInstance = new BarResponse().MakeReadOnly();
  30792. private static readonly string[] _barResponseFieldNames = new string[] { };
  30793. private static readonly uint[] _barResponseFieldTags = new uint[] { };
  30794. public static BarResponse DefaultInstance {
  30795. get { return defaultInstance; }
  30796. }
  30797. public override BarResponse DefaultInstanceForType {
  30798. get { return DefaultInstance; }
  30799. }
  30800. protected override BarResponse ThisMessage {
  30801. get { return this; }
  30802. }
  30803. public static pbd::MessageDescriptor Descriptor {
  30804. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_BarResponse__Descriptor; }
  30805. }
  30806. protected override pb::FieldAccess.FieldAccessorTable<BarResponse, BarResponse.Builder> InternalFieldAccessors {
  30807. get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; }
  30808. }
  30809. public override bool IsInitialized {
  30810. get {
  30811. return true;
  30812. }
  30813. }
  30814. public override void WriteTo(pb::ICodedOutputStream output) {
  30815. CalcSerializedSize();
  30816. string[] field_names = _barResponseFieldNames;
  30817. UnknownFields.WriteTo(output);
  30818. }
  30819. private int memoizedSerializedSize = -1;
  30820. public override int SerializedSize {
  30821. get {
  30822. int size = memoizedSerializedSize;
  30823. if (size != -1) return size;
  30824. return CalcSerializedSize();
  30825. }
  30826. }
  30827. private int CalcSerializedSize() {
  30828. int size = memoizedSerializedSize;
  30829. if (size != -1) return size;
  30830. size = 0;
  30831. size += UnknownFields.SerializedSize;
  30832. memoizedSerializedSize = size;
  30833. return size;
  30834. }
  30835. public static BarResponse ParseFrom(pb::ByteString data) {
  30836. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  30837. }
  30838. public static BarResponse ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  30839. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  30840. }
  30841. public static BarResponse ParseFrom(byte[] data) {
  30842. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  30843. }
  30844. public static BarResponse ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  30845. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  30846. }
  30847. public static BarResponse ParseFrom(global::System.IO.Stream input) {
  30848. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  30849. }
  30850. public static BarResponse ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  30851. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  30852. }
  30853. public static BarResponse ParseDelimitedFrom(global::System.IO.Stream input) {
  30854. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  30855. }
  30856. public static BarResponse ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  30857. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  30858. }
  30859. public static BarResponse ParseFrom(pb::ICodedInputStream input) {
  30860. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  30861. }
  30862. public static BarResponse ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  30863. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  30864. }
  30865. private BarResponse MakeReadOnly() {
  30866. return this;
  30867. }
  30868. public static Builder CreateBuilder() { return new Builder(); }
  30869. public override Builder ToBuilder() { return CreateBuilder(this); }
  30870. public override Builder CreateBuilderForType() { return new Builder(); }
  30871. public static Builder CreateBuilder(BarResponse prototype) {
  30872. return new Builder(prototype);
  30873. }
  30874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  30875. public sealed partial class Builder : pb::GeneratedBuilder<BarResponse, Builder> {
  30876. protected override Builder ThisBuilder {
  30877. get { return this; }
  30878. }
  30879. public Builder() {
  30880. result = DefaultInstance;
  30881. resultIsReadOnly = true;
  30882. }
  30883. internal Builder(BarResponse cloneFrom) {
  30884. result = cloneFrom;
  30885. resultIsReadOnly = true;
  30886. }
  30887. private bool resultIsReadOnly;
  30888. private BarResponse result;
  30889. private BarResponse PrepareBuilder() {
  30890. if (resultIsReadOnly) {
  30891. BarResponse original = result;
  30892. result = new BarResponse();
  30893. resultIsReadOnly = false;
  30894. MergeFrom(original);
  30895. }
  30896. return result;
  30897. }
  30898. public override bool IsInitialized {
  30899. get { return result.IsInitialized; }
  30900. }
  30901. protected override BarResponse MessageBeingBuilt {
  30902. get { return PrepareBuilder(); }
  30903. }
  30904. public override Builder Clear() {
  30905. result = DefaultInstance;
  30906. resultIsReadOnly = true;
  30907. return this;
  30908. }
  30909. public override Builder Clone() {
  30910. if (resultIsReadOnly) {
  30911. return new Builder(result);
  30912. } else {
  30913. return new Builder().MergeFrom(result);
  30914. }
  30915. }
  30916. public override pbd::MessageDescriptor DescriptorForType {
  30917. get { return global::Google.ProtocolBuffers.TestProtos.BarResponse.Descriptor; }
  30918. }
  30919. public override BarResponse DefaultInstanceForType {
  30920. get { return global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance; }
  30921. }
  30922. public override BarResponse BuildPartial() {
  30923. if (resultIsReadOnly) {
  30924. return result;
  30925. }
  30926. resultIsReadOnly = true;
  30927. return result.MakeReadOnly();
  30928. }
  30929. public override Builder MergeFrom(pb::IMessage other) {
  30930. if (other is BarResponse) {
  30931. return MergeFrom((BarResponse) other);
  30932. } else {
  30933. base.MergeFrom(other);
  30934. return this;
  30935. }
  30936. }
  30937. public override Builder MergeFrom(BarResponse other) {
  30938. if (other == global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance) return this;
  30939. PrepareBuilder();
  30940. this.MergeUnknownFields(other.UnknownFields);
  30941. return this;
  30942. }
  30943. public override Builder MergeFrom(pb::ICodedInputStream input) {
  30944. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  30945. }
  30946. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  30947. PrepareBuilder();
  30948. pb::UnknownFieldSet.Builder unknownFields = null;
  30949. uint tag;
  30950. string field_name;
  30951. while (input.ReadTag(out tag, out field_name)) {
  30952. if(tag == 0 && field_name != null) {
  30953. int field_ordinal = global::System.Array.BinarySearch(_barResponseFieldNames, field_name, global::System.StringComparer.Ordinal);
  30954. if(field_ordinal >= 0)
  30955. tag = _barResponseFieldTags[field_ordinal];
  30956. else {
  30957. if (unknownFields == null) {
  30958. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  30959. }
  30960. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  30961. continue;
  30962. }
  30963. }
  30964. switch (tag) {
  30965. case 0: {
  30966. throw pb::InvalidProtocolBufferException.InvalidTag();
  30967. }
  30968. default: {
  30969. if (pb::WireFormat.IsEndGroupTag(tag)) {
  30970. if (unknownFields != null) {
  30971. this.UnknownFields = unknownFields.Build();
  30972. }
  30973. return this;
  30974. }
  30975. if (unknownFields == null) {
  30976. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  30977. }
  30978. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  30979. break;
  30980. }
  30981. }
  30982. }
  30983. if (unknownFields != null) {
  30984. this.UnknownFields = unknownFields.Build();
  30985. }
  30986. return this;
  30987. }
  30988. }
  30989. static BarResponse() {
  30990. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
  30991. }
  30992. }
  30993. #endregion
  30994. }
  30995. #endregion Designer generated code