Unittest.cs 943 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: unittest.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace Google.Protobuf.TestProtos.Proto2 {
  12. /// <summary>Holder for reflection information generated from unittest.proto</summary>
  13. public static partial class UnittestReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for unittest.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static UnittestReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "Cg51bml0dGVzdC5wcm90bxIYcHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yGhV1",
  24. "bml0dGVzdF9pbXBvcnQucHJvdG8igBoKDFRlc3RBbGxUeXBlcxIWCg5vcHRp",
  25. "b25hbF9pbnQzMhgBIAEoBRIWCg5vcHRpb25hbF9pbnQ2NBgCIAEoAxIXCg9v",
  26. "cHRpb25hbF91aW50MzIYAyABKA0SFwoPb3B0aW9uYWxfdWludDY0GAQgASgE",
  27. "EhcKD29wdGlvbmFsX3NpbnQzMhgFIAEoERIXCg9vcHRpb25hbF9zaW50NjQY",
  28. "BiABKBISGAoQb3B0aW9uYWxfZml4ZWQzMhgHIAEoBxIYChBvcHRpb25hbF9m",
  29. "aXhlZDY0GAggASgGEhkKEW9wdGlvbmFsX3NmaXhlZDMyGAkgASgPEhkKEW9w",
  30. "dGlvbmFsX3NmaXhlZDY0GAogASgQEhYKDm9wdGlvbmFsX2Zsb2F0GAsgASgC",
  31. "EhcKD29wdGlvbmFsX2RvdWJsZRgMIAEoARIVCg1vcHRpb25hbF9ib29sGA0g",
  32. "ASgIEhcKD29wdGlvbmFsX3N0cmluZxgOIAEoCRIWCg5vcHRpb25hbF9ieXRl",
  33. "cxgPIAEoDBJLCg1vcHRpb25hbGdyb3VwGBAgASgKMjQucHJvdG9idWZfdW5p",
  34. "dHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcy5PcHRpb25hbEdyb3VwElUKF29w",
  35. "dGlvbmFsX25lc3RlZF9tZXNzYWdlGBIgASgLMjQucHJvdG9idWZfdW5pdHRl",
  36. "c3RfcHJvdG8yLlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlEkoKGG9wdGlv",
  37. "bmFsX2ZvcmVpZ25fbWVzc2FnZRgTIAEoCzIoLnByb3RvYnVmX3VuaXR0ZXN0",
  38. "X3Byb3RvMi5Gb3JlaWduTWVzc2FnZRJPChdvcHRpb25hbF9pbXBvcnRfbWVz",
  39. "c2FnZRgUIAEoCzIuLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydF9wcm90bzIu",
  40. "SW1wb3J0TWVzc2FnZRJPChRvcHRpb25hbF9uZXN0ZWRfZW51bRgVIAEoDjIx",
  41. "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVk",
  42. "RW51bRJEChVvcHRpb25hbF9mb3JlaWduX2VudW0YFiABKA4yJS5wcm90b2J1",
  43. "Zl91bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW0SSQoUb3B0aW9uYWxfaW1w",
  44. "b3J0X2VudW0YFyABKA4yKy5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnRfcHJv",
  45. "dG8yLkltcG9ydEVudW0SIQoVb3B0aW9uYWxfc3RyaW5nX3BpZWNlGBggASgJ",
  46. "QgIIAhIZCg1vcHRpb25hbF9jb3JkGBkgASgJQgIIARJcCh5vcHRpb25hbF9w",
  47. "dWJsaWNfaW1wb3J0X21lc3NhZ2UYGiABKAsyNC5wcm90b2J1Zl91bml0dGVz",
  48. "dF9pbXBvcnRfcHJvdG8yLlB1YmxpY0ltcG9ydE1lc3NhZ2USVwoVb3B0aW9u",
  49. "YWxfbGF6eV9tZXNzYWdlGBsgASgLMjQucHJvdG9idWZfdW5pdHRlc3RfcHJv",
  50. "dG8yLlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlQgIoARIWCg5yZXBlYXRl",
  51. "ZF9pbnQzMhgfIAMoBRIWCg5yZXBlYXRlZF9pbnQ2NBggIAMoAxIXCg9yZXBl",
  52. "YXRlZF91aW50MzIYISADKA0SFwoPcmVwZWF0ZWRfdWludDY0GCIgAygEEhcK",
  53. "D3JlcGVhdGVkX3NpbnQzMhgjIAMoERIXCg9yZXBlYXRlZF9zaW50NjQYJCAD",
  54. "KBISGAoQcmVwZWF0ZWRfZml4ZWQzMhglIAMoBxIYChByZXBlYXRlZF9maXhl",
  55. "ZDY0GCYgAygGEhkKEXJlcGVhdGVkX3NmaXhlZDMyGCcgAygPEhkKEXJlcGVh",
  56. "dGVkX3NmaXhlZDY0GCggAygQEhYKDnJlcGVhdGVkX2Zsb2F0GCkgAygCEhcK",
  57. "D3JlcGVhdGVkX2RvdWJsZRgqIAMoARIVCg1yZXBlYXRlZF9ib29sGCsgAygI",
  58. "EhcKD3JlcGVhdGVkX3N0cmluZxgsIAMoCRIWCg5yZXBlYXRlZF9ieXRlcxgt",
  59. "IAMoDBJLCg1yZXBlYXRlZGdyb3VwGC4gAygKMjQucHJvdG9idWZfdW5pdHRl",
  60. "c3RfcHJvdG8yLlRlc3RBbGxUeXBlcy5SZXBlYXRlZEdyb3VwElUKF3JlcGVh",
  61. "dGVkX25lc3RlZF9tZXNzYWdlGDAgAygLMjQucHJvdG9idWZfdW5pdHRlc3Rf",
  62. "cHJvdG8yLlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlEkoKGHJlcGVhdGVk",
  63. "X2ZvcmVpZ25fbWVzc2FnZRgxIAMoCzIoLnByb3RvYnVmX3VuaXR0ZXN0X3By",
  64. "b3RvMi5Gb3JlaWduTWVzc2FnZRJPChdyZXBlYXRlZF9pbXBvcnRfbWVzc2Fn",
  65. "ZRgyIAMoCzIuLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydF9wcm90bzIuSW1w",
  66. "b3J0TWVzc2FnZRJPChRyZXBlYXRlZF9uZXN0ZWRfZW51bRgzIAMoDjIxLnBy",
  67. "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVkRW51",
  68. "bRJEChVyZXBlYXRlZF9mb3JlaWduX2VudW0YNCADKA4yJS5wcm90b2J1Zl91",
  69. "bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW0SSQoUcmVwZWF0ZWRfaW1wb3J0",
  70. "X2VudW0YNSADKA4yKy5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnRfcHJvdG8y",
  71. "LkltcG9ydEVudW0SIQoVcmVwZWF0ZWRfc3RyaW5nX3BpZWNlGDYgAygJQgII",
  72. "AhIZCg1yZXBlYXRlZF9jb3JkGDcgAygJQgIIARJXChVyZXBlYXRlZF9sYXp5",
  73. "X21lc3NhZ2UYOSADKAsyNC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz",
  74. "dEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2VCAigBEhkKDWRlZmF1bHRfaW50MzIY",
  75. "PSABKAU6AjQxEhkKDWRlZmF1bHRfaW50NjQYPiABKAM6AjQyEhoKDmRlZmF1",
  76. "bHRfdWludDMyGD8gASgNOgI0MxIaCg5kZWZhdWx0X3VpbnQ2NBhAIAEoBDoC",
  77. "NDQSGwoOZGVmYXVsdF9zaW50MzIYQSABKBE6Ay00NRIaCg5kZWZhdWx0X3Np",
  78. "bnQ2NBhCIAEoEjoCNDYSGwoPZGVmYXVsdF9maXhlZDMyGEMgASgHOgI0NxIb",
  79. "Cg9kZWZhdWx0X2ZpeGVkNjQYRCABKAY6AjQ4EhwKEGRlZmF1bHRfc2ZpeGVk",
  80. "MzIYRSABKA86AjQ5Eh0KEGRlZmF1bHRfc2ZpeGVkNjQYRiABKBA6Ay01MBIb",
  81. "Cg1kZWZhdWx0X2Zsb2F0GEcgASgCOgQ1MS41Eh0KDmRlZmF1bHRfZG91Ymxl",
  82. "GEggASgBOgU1MjAwMBIaCgxkZWZhdWx0X2Jvb2wYSSABKAg6BHRydWUSHQoO",
  83. "ZGVmYXVsdF9zdHJpbmcYSiABKAk6BWhlbGxvEhwKDWRlZmF1bHRfYnl0ZXMY",
  84. "SyABKAw6BXdvcmxkElMKE2RlZmF1bHRfbmVzdGVkX2VudW0YUSABKA4yMS5w",
  85. "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZEVu",
  86. "dW06A0JBUhJQChRkZWZhdWx0X2ZvcmVpZ25fZW51bRhSIAEoDjIlLnByb3Rv",
  87. "YnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bToLRk9SRUlHTl9CQVIS",
  88. "VAoTZGVmYXVsdF9pbXBvcnRfZW51bRhTIAEoDjIrLnByb3RvYnVmX3VuaXR0",
  89. "ZXN0X2ltcG9ydF9wcm90bzIuSW1wb3J0RW51bToKSU1QT1JUX0JBUhIlChRk",
  90. "ZWZhdWx0X3N0cmluZ19waWVjZRhUIAEoCToDYWJjQgIIAhIdCgxkZWZhdWx0",
  91. "X2NvcmQYVSABKAk6AzEyM0ICCAESFgoMb25lb2ZfdWludDMyGG8gASgNSAAS",
  92. "VAoUb25lb2ZfbmVzdGVkX21lc3NhZ2UYcCABKAsyNC5wcm90b2J1Zl91bml0",
  93. "dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2VIABIWCgxv",
  94. "bmVvZl9zdHJpbmcYcSABKAlIABIVCgtvbmVvZl9ieXRlcxhyIAEoDEgAGhsK",
  95. "DU5lc3RlZE1lc3NhZ2USCgoCYmIYASABKAUaGgoNT3B0aW9uYWxHcm91cBIJ",
  96. "CgFhGBEgASgFGhoKDVJlcGVhdGVkR3JvdXASCQoBYRgvIAEoBSI5CgpOZXN0",
  97. "ZWRFbnVtEgcKA0ZPTxABEgcKA0JBUhACEgcKA0JBWhADEhAKA05FRxD/////",
  98. "//////8BQg0KC29uZW9mX2ZpZWxkItABChJOZXN0ZWRUZXN0QWxsVHlwZXMS",
  99. "OwoFY2hpbGQYASABKAsyLC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuTmVz",
  100. "dGVkVGVzdEFsbFR5cGVzEjcKB3BheWxvYWQYAiABKAsyJi5wcm90b2J1Zl91",
  101. "bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzEkQKDnJlcGVhdGVkX2NoaWxk",
  102. "GAMgAygLMiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLk5lc3RlZFRlc3RB",
  103. "bGxUeXBlcyJtChRUZXN0RGVwcmVjYXRlZEZpZWxkcxIcChBkZXByZWNhdGVk",
  104. "X2ludDMyGAEgASgFQgIYARInChlkZXByZWNhdGVkX2ludDMyX2luX29uZW9m",
  105. "GAIgASgFQgIYAUgAQg4KDG9uZW9mX2ZpZWxkcyIbChVUZXN0RGVwcmVjYXRl",
  106. "ZE1lc3NhZ2U6AhgBIiYKDkZvcmVpZ25NZXNzYWdlEgkKAWMYASABKAUSCQoB",
  107. "ZBgCIAEoBSIwChJUZXN0UmVzZXJ2ZWRGaWVsZHNKBAgCEANKBAgPEBBKBAgJ",
  108. "EAxSA2JhclIDYmF6Ih0KEVRlc3RBbGxFeHRlbnNpb25zKggIARCAgICAAiIk",
  109. "ChdPcHRpb25hbEdyb3VwX2V4dGVuc2lvbhIJCgFhGBEgASgFIiQKF1JlcGVh",
  110. "dGVkR3JvdXBfZXh0ZW5zaW9uEgkKAWEYLyABKAUitwEKCVRlc3RHcm91cBJI",
  111. "Cg1vcHRpb25hbGdyb3VwGBAgASgKMjEucHJvdG9idWZfdW5pdHRlc3RfcHJv",
  112. "dG8yLlRlc3RHcm91cC5PcHRpb25hbEdyb3VwEkQKFW9wdGlvbmFsX2ZvcmVp",
  113. "Z25fZW51bRgWIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3Jl",
  114. "aWduRW51bRoaCg1PcHRpb25hbEdyb3VwEgkKAWEYESABKAUiHgoSVGVzdEdy",
  115. "b3VwRXh0ZW5zaW9uKggIARCAgICAAiLhAwoTVGVzdE5lc3RlZEV4dGVuc2lv",
  116. "bhokChdPcHRpb25hbEdyb3VwX2V4dGVuc2lvbhIJCgFhGBEgASgFMkAKBHRl",
  117. "c3QSKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lv",
  118. "bnMY6gcgASgJOgR0ZXN0Mk0KF25lc3RlZF9zdHJpbmdfZXh0ZW5zaW9uEisu",
  119. "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGOsH",
  120. "IAEoCTKUAQoXb3B0aW9uYWxncm91cF9leHRlbnNpb24SLC5wcm90b2J1Zl91",
  121. "bml0dGVzdF9wcm90bzIuVGVzdEdyb3VwRXh0ZW5zaW9uGBAgASgKMkUucHJv",
  122. "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3ROZXN0ZWRFeHRlbnNpb24uT3B0",
  123. "aW9uYWxHcm91cF9leHRlbnNpb24yfAofb3B0aW9uYWxfZm9yZWlnbl9lbnVt",
  124. "X2V4dGVuc2lvbhIsLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0R3Jv",
  125. "dXBFeHRlbnNpb24YFiABKA4yJS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
  126. "Rm9yZWlnbkVudW0i8QUKDFRlc3RSZXF1aXJlZBIJCgFhGAEgAigFEg4KBmR1",
  127. "bW15MhgCIAEoBRIJCgFiGAMgAigFEg4KBmR1bW15NBgEIAEoBRIOCgZkdW1t",
  128. "eTUYBSABKAUSDgoGZHVtbXk2GAYgASgFEg4KBmR1bW15NxgHIAEoBRIOCgZk",
  129. "dW1teTgYCCABKAUSDgoGZHVtbXk5GAkgASgFEg8KB2R1bW15MTAYCiABKAUS",
  130. "DwoHZHVtbXkxMRgLIAEoBRIPCgdkdW1teTEyGAwgASgFEg8KB2R1bW15MTMY",
  131. "DSABKAUSDwoHZHVtbXkxNBgOIAEoBRIPCgdkdW1teTE1GA8gASgFEg8KB2R1",
  132. "bW15MTYYECABKAUSDwoHZHVtbXkxNxgRIAEoBRIPCgdkdW1teTE4GBIgASgF",
  133. "Eg8KB2R1bW15MTkYEyABKAUSDwoHZHVtbXkyMBgUIAEoBRIPCgdkdW1teTIx",
  134. "GBUgASgFEg8KB2R1bW15MjIYFiABKAUSDwoHZHVtbXkyMxgXIAEoBRIPCgdk",
  135. "dW1teTI0GBggASgFEg8KB2R1bW15MjUYGSABKAUSDwoHZHVtbXkyNhgaIAEo",
  136. "BRIPCgdkdW1teTI3GBsgASgFEg8KB2R1bW15MjgYHCABKAUSDwoHZHVtbXky",
  137. "ORgdIAEoBRIPCgdkdW1teTMwGB4gASgFEg8KB2R1bW15MzEYHyABKAUSDwoH",
  138. "ZHVtbXkzMhggIAEoBRIJCgFjGCEgAigFMmQKBnNpbmdsZRIrLnByb3RvYnVm",
  139. "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxjoByABKAsyJi5w",
  140. "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFJlcXVpcmVkMmMKBW11bHRp",
  141. "EisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25z",
  142. "GOkHIAMoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWly",
  143. "ZWQiqAEKE1Rlc3RSZXF1aXJlZEZvcmVpZ24SQAoQb3B0aW9uYWxfbWVzc2Fn",
  144. "ZRgBIAEoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWly",
  145. "ZWQSQAoQcmVwZWF0ZWRfbWVzc2FnZRgCIAMoCzImLnByb3RvYnVmX3VuaXR0",
  146. "ZXN0X3Byb3RvMi5UZXN0UmVxdWlyZWQSDQoFZHVtbXkYAyABKAUi2wEKE1Rl",
  147. "c3RSZXF1aXJlZE1lc3NhZ2USQAoQb3B0aW9uYWxfbWVzc2FnZRgBIAEoCzIm",
  148. "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWlyZWQSQAoQcmVw",
  149. "ZWF0ZWRfbWVzc2FnZRgCIAMoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
  150. "Mi5UZXN0UmVxdWlyZWQSQAoQcmVxdWlyZWRfbWVzc2FnZRgDIAIoCzImLnBy",
  151. "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWlyZWQiYQoRVGVzdEZv",
  152. "cmVpZ25OZXN0ZWQSTAoOZm9yZWlnbl9uZXN0ZWQYASABKAsyNC5wcm90b2J1",
  153. "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2Ui",
  154. "EgoQVGVzdEVtcHR5TWVzc2FnZSIqCh5UZXN0RW1wdHlNZXNzYWdlV2l0aEV4",
  155. "dGVuc2lvbnMqCAgBEICAgIACIjcKG1Rlc3RNdWx0aXBsZUV4dGVuc2lvblJh",
  156. "bmdlcyoECCoQKyoGCK8gEJQhKgoIgIAEEICAgIACIjQKGFRlc3RSZWFsbHlM",
  157. "YXJnZVRhZ051bWJlchIJCgFhGAEgASgFEg0KAmJiGP///38gASgFIlwKFFRl",
  158. "c3RSZWN1cnNpdmVNZXNzYWdlEjkKAWEYASABKAsyLi5wcm90b2J1Zl91bml0",
  159. "dGVzdF9wcm90bzIuVGVzdFJlY3Vyc2l2ZU1lc3NhZ2USCQoBaRgCIAEoBSKE",
  160. "AwoUVGVzdE11dHVhbFJlY3Vyc2lvbkESOgoCYmIYASABKAsyLi5wcm90b2J1",
  161. "Zl91bml0dGVzdF9wcm90bzIuVGVzdE11dHVhbFJlY3Vyc2lvbkISSQoIc3Vi",
  162. "Z3JvdXAYAiABKAoyNy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE11",
  163. "dHVhbFJlY3Vyc2lvbkEuU3ViR3JvdXAaRwoKU3ViTWVzc2FnZRI5CgFiGAEg",
  164. "ASgLMi4ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RNdXR1YWxSZWN1",
  165. "cnNpb25CGpsBCghTdWJHcm91cBJOCgtzdWJfbWVzc2FnZRgDIAEoCzI5LnBy",
  166. "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0TXV0dWFsUmVjdXJzaW9uQS5T",
  167. "dWJNZXNzYWdlEj8KD25vdF9pbl90aGlzX3NjYxgEIAEoCzImLnByb3RvYnVm",
  168. "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMiaQoUVGVzdE11dHVhbFJl",
  169. "Y3Vyc2lvbkISOQoBYRgBIAEoCzIuLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
  170. "Mi5UZXN0TXV0dWFsUmVjdXJzaW9uQRIWCg5vcHRpb25hbF9pbnQzMhgCIAEo",
  171. "BSLYAQoRVGVzdElzSW5pdGlhbGl6ZWQSSwoLc3ViX21lc3NhZ2UYASABKAsy",
  172. "Ni5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdElzSW5pdGlhbGl6ZWQu",
  173. "U3ViTWVzc2FnZRp2CgpTdWJNZXNzYWdlElEKCHN1Ymdyb3VwGAEgASgKMj8u",
  174. "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RJc0luaXRpYWxpemVkLlN1",
  175. "Yk1lc3NhZ2UuU3ViR3JvdXAaFQoIU3ViR3JvdXASCQoBaRgCIAIoBSLBAQoS",
  176. "VGVzdER1cEZpZWxkTnVtYmVyEgkKAWEYASABKAUSPQoDZm9vGAIgASgKMjAu",
  177. "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3REdXBGaWVsZE51bWJlci5G",
  178. "b28SPQoDYmFyGAMgASgKMjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
  179. "c3REdXBGaWVsZE51bWJlci5CYXIaEAoDRm9vEgkKAWEYASABKAUaEAoDQmFy",
  180. "EgkKAWEYASABKAUiUwoQVGVzdEVhZ2VyTWVzc2FnZRI/CgtzdWJfbWVzc2Fn",
  181. "ZRgBIAEoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlw",
  182. "ZXNCAigAIlIKD1Rlc3RMYXp5TWVzc2FnZRI/CgtzdWJfbWVzc2FnZRgBIAEo",
  183. "CzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXNCAigB",
  184. "Io4CChhUZXN0TmVzdGVkTWVzc2FnZUhhc0JpdHMSYQoXb3B0aW9uYWxfbmVz",
  185. "dGVkX21lc3NhZ2UYASABKAsyQC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
  186. "VGVzdE5lc3RlZE1lc3NhZ2VIYXNCaXRzLk5lc3RlZE1lc3NhZ2UajgEKDU5l",
  187. "c3RlZE1lc3NhZ2USJAocbmVzdGVkbWVzc2FnZV9yZXBlYXRlZF9pbnQzMhgB",
  188. "IAMoBRJXCiVuZXN0ZWRtZXNzYWdlX3JlcGVhdGVkX2ZvcmVpZ25tZXNzYWdl",
  189. "GAIgAygLMigucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkZvcmVpZ25NZXNz",
  190. "YWdlIoEEChdUZXN0Q2FtZWxDYXNlRmllbGROYW1lcxIWCg5QcmltaXRpdmVG",
  191. "aWVsZBgBIAEoBRITCgtTdHJpbmdGaWVsZBgCIAEoCRI4CglFbnVtRmllbGQY",
  192. "AyABKA4yJS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW0S",
  193. "PgoMTWVzc2FnZUZpZWxkGAQgASgLMigucHJvdG9idWZfdW5pdHRlc3RfcHJv",
  194. "dG8yLkZvcmVpZ25NZXNzYWdlEhwKEFN0cmluZ1BpZWNlRmllbGQYBSABKAlC",
  195. "AggCEhUKCUNvcmRGaWVsZBgGIAEoCUICCAESHgoWUmVwZWF0ZWRQcmltaXRp",
  196. "dmVGaWVsZBgHIAMoBRIbChNSZXBlYXRlZFN0cmluZ0ZpZWxkGAggAygJEkAK",
  197. "EVJlcGVhdGVkRW51bUZpZWxkGAkgAygOMiUucHJvdG9idWZfdW5pdHRlc3Rf",
  198. "cHJvdG8yLkZvcmVpZ25FbnVtEkYKFFJlcGVhdGVkTWVzc2FnZUZpZWxkGAog",
  199. "AygLMigucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkZvcmVpZ25NZXNzYWdl",
  200. "EiQKGFJlcGVhdGVkU3RyaW5nUGllY2VGaWVsZBgLIAMoCUICCAISHQoRUmVw",
  201. "ZWF0ZWRDb3JkRmllbGQYDCADKAlCAggBItwBChJUZXN0RmllbGRPcmRlcmlu",
  202. "Z3MSEQoJbXlfc3RyaW5nGAsgASgJEg4KBm15X2ludBgBIAEoAxIQCghteV9m",
  203. "bG9hdBhlIAEoAhJcChdvcHRpb25hbF9uZXN0ZWRfbWVzc2FnZRjIASABKAsy",
  204. "Oi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEZpZWxkT3JkZXJpbmdz",
  205. "Lk5lc3RlZE1lc3NhZ2UaJwoNTmVzdGVkTWVzc2FnZRIKCgJvbxgCIAEoAxIK",
  206. "CgJiYhgBIAEoBSoECAIQCyoECAwQZSKqAQoXVGVzdEV4dGVuc2lvbk9yZGVy",
  207. "aW5nczESEQoJbXlfc3RyaW5nGAEgASgJMnwKE3Rlc3RfZXh0X29yZGVyaW5n",
  208. "czESLC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEZpZWxkT3JkZXJp",
  209. "bmdzGA0gASgLMjEucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RFeHRl",
  210. "bnNpb25PcmRlcmluZ3MxIvACChdUZXN0RXh0ZW5zaW9uT3JkZXJpbmdzMhIR",
  211. "CglteV9zdHJpbmcYASABKAkawwEKF1Rlc3RFeHRlbnNpb25PcmRlcmluZ3Mz",
  212. "EhEKCW15X3N0cmluZxgBIAEoCTKUAQoTdGVzdF9leHRfb3JkZXJpbmdzMxIs",
  213. "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0RmllbGRPcmRlcmluZ3MY",
  214. "DiABKAsySS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEV4dGVuc2lv",
  215. "bk9yZGVyaW5nczIuVGVzdEV4dGVuc2lvbk9yZGVyaW5nczMyfAoTdGVzdF9l",
  216. "eHRfb3JkZXJpbmdzMhIsLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0",
  217. "RmllbGRPcmRlcmluZ3MYDCABKAsyMS5wcm90b2J1Zl91bml0dGVzdF9wcm90",
  218. "bzIuVGVzdEV4dGVuc2lvbk9yZGVyaW5nczIitgcKGFRlc3RFeHRyZW1lRGVm",
  219. "YXVsdFZhbHVlcxI/Cg1lc2NhcGVkX2J5dGVzGAEgASgMOihcMDAwXDAwMVww",
  220. "MDdcMDEwXDAxNFxuXHJcdFwwMTNcXFwnXCJcMzc2EiAKDGxhcmdlX3VpbnQz",
  221. "MhgCIAEoDToKNDI5NDk2NzI5NRIqCgxsYXJnZV91aW50NjQYAyABKAQ6FDE4",
  222. "NDQ2NzQ0MDczNzA5NTUxNjE1EiAKC3NtYWxsX2ludDMyGAQgASgFOgstMjE0",
  223. "NzQ4MzY0NxIpCgtzbWFsbF9pbnQ2NBgFIAEoAzoULTkyMjMzNzIwMzY4NTQ3",
  224. "NzU4MDcSJwoScmVhbGx5X3NtYWxsX2ludDMyGBUgASgFOgstMjE0NzQ4MzY0",
  225. "OBIwChJyZWFsbHlfc21hbGxfaW50NjQYFiABKAM6FC05MjIzMzcyMDM2ODU0",
  226. "Nzc1ODA4EhgKC3V0Zjhfc3RyaW5nGAYgASgJOgPhiLQSFQoKemVyb19mbG9h",
  227. "dBgHIAEoAjoBMBIUCglvbmVfZmxvYXQYCCABKAI6ATESGAoLc21hbGxfZmxv",
  228. "YXQYCSABKAI6AzEuNRIeChJuZWdhdGl2ZV9vbmVfZmxvYXQYCiABKAI6Ai0x",
  229. "EhwKDm5lZ2F0aXZlX2Zsb2F0GAsgASgCOgQtMS41EhoKC2xhcmdlX2Zsb2F0",
  230. "GAwgASgCOgUyZSswOBIkChRzbWFsbF9uZWdhdGl2ZV9mbG9hdBgNIAEoAjoG",
  231. "LThlLTI4EhcKCmluZl9kb3VibGUYDiABKAE6A2luZhIcCg5uZWdfaW5mX2Rv",
  232. "dWJsZRgPIAEoAToELWluZhIXCgpuYW5fZG91YmxlGBAgASgBOgNuYW4SFgoJ",
  233. "aW5mX2Zsb2F0GBEgASgCOgNpbmYSGwoNbmVnX2luZl9mbG9hdBgSIAEoAjoE",
  234. "LWluZhIWCgluYW5fZmxvYXQYEyABKAI6A25hbhIrCgxjcHBfdHJpZ3JhcGgY",
  235. "FCABKAk6FT8gPyA/PyA/PyA/Pz8gPz8vID8/LRIgChBzdHJpbmdfd2l0aF96",
  236. "ZXJvGBcgASgJOgZoZWwAbG8SIgoPYnl0ZXNfd2l0aF96ZXJvGBggASgMOgl3",
  237. "b3JcMDAwbGQSKAoWc3RyaW5nX3BpZWNlX3dpdGhfemVybxgZIAEoCToEYWIA",
  238. "Y0ICCAISIAoOY29yZF93aXRoX3plcm8YGiABKAk6BDEyADNCAggBEiYKEnJl",
  239. "cGxhY2VtZW50X3N0cmluZxgbIAEoCToKJHt1bmtub3dufSJSChFTcGFyc2VF",
  240. "bnVtTWVzc2FnZRI9CgtzcGFyc2VfZW51bRgBIAEoDjIoLnByb3RvYnVmX3Vu",
  241. "aXR0ZXN0X3Byb3RvMi5UZXN0U3BhcnNlRW51bSIZCglPbmVTdHJpbmcSDAoE",
  242. "ZGF0YRgBIAEoCSIaCgpNb3JlU3RyaW5nEgwKBGRhdGEYASADKAkiGAoIT25l",
  243. "Qnl0ZXMSDAoEZGF0YRgBIAEoDCIZCglNb3JlQnl0ZXMSDAoEZGF0YRgBIAMo",
  244. "DCIcCgxJbnQzMk1lc3NhZ2USDAoEZGF0YRgBIAEoBSIdCg1VaW50MzJNZXNz",
  245. "YWdlEgwKBGRhdGEYASABKA0iHAoMSW50NjRNZXNzYWdlEgwKBGRhdGEYASAB",
  246. "KAMiHQoNVWludDY0TWVzc2FnZRIMCgRkYXRhGAEgASgEIhsKC0Jvb2xNZXNz",
  247. "YWdlEgwKBGRhdGEYASABKAgi3gEKCVRlc3RPbmVvZhIRCgdmb29faW50GAEg",
  248. "ASgFSAASFAoKZm9vX3N0cmluZxgCIAEoCUgAEj0KC2Zvb19tZXNzYWdlGAMg",
  249. "ASgLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlc0gA",
  250. "EkAKCGZvb2dyb3VwGAQgASgKMiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
  251. "LlRlc3RPbmVvZi5Gb29Hcm91cEgAGiAKCEZvb0dyb3VwEgkKAWEYBSABKAUS",
  252. "CQoBYhgGIAEoCUIFCgNmb28i9QEKHFRlc3RPbmVvZkJhY2t3YXJkc0NvbXBh",
  253. "dGlibGUSDwoHZm9vX2ludBgBIAEoBRISCgpmb29fc3RyaW5nGAIgASgJEjsK",
  254. "C2Zvb19tZXNzYWdlGAMgASgLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
  255. "LlRlc3RBbGxUeXBlcxJRCghmb29ncm91cBgEIAEoCjI/LnByb3RvYnVmX3Vu",
  256. "aXR0ZXN0X3Byb3RvMi5UZXN0T25lb2ZCYWNrd2FyZHNDb21wYXRpYmxlLkZv",
  257. "b0dyb3VwGiAKCEZvb0dyb3VwEgkKAWEYBSABKAUSCQoBYhgGIAEoCSLBBgoK",
  258. "VGVzdE9uZW9mMhIRCgdmb29faW50GAEgASgFSAASFAoKZm9vX3N0cmluZxgC",
  259. "IAEoCUgAEhYKCGZvb19jb3JkGAMgASgJQgIIAUgAEh4KEGZvb19zdHJpbmdf",
  260. "cGllY2UYBCABKAlCAggCSAASEwoJZm9vX2J5dGVzGAUgASgMSAASQwoIZm9v",
  261. "X2VudW0YBiABKA4yLy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE9u",
  262. "ZW9mMi5OZXN0ZWRFbnVtSAASSQoLZm9vX21lc3NhZ2UYByABKAsyMi5wcm90",
  263. "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE9uZW9mMi5OZXN0ZWRNZXNzYWdl",
  264. "SAASQQoIZm9vZ3JvdXAYCCABKAoyLS5wcm90b2J1Zl91bml0dGVzdF9wcm90",
  265. "bzIuVGVzdE9uZW9mMi5Gb29Hcm91cEgAElIKEGZvb19sYXp5X21lc3NhZ2UY",
  266. "CyABKAsyMi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE9uZW9mMi5O",
  267. "ZXN0ZWRNZXNzYWdlQgIoAUgAEhQKB2Jhcl9pbnQYDCABKAU6ATVIARIcCgpi",
  268. "YXJfc3RyaW5nGA0gASgJOgZTVFJJTkdIARIcCghiYXJfY29yZBgOIAEoCToE",
  269. "Q09SREICCAFIARImChBiYXJfc3RyaW5nX3BpZWNlGA8gASgJOgZTUElFQ0VC",
  270. "AggCSAESGgoJYmFyX2J5dGVzGBAgASgMOgVCWVRFU0gBEkgKCGJhcl9lbnVt",
  271. "GBEgASgOMi8ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RPbmVvZjIu",
  272. "TmVzdGVkRW51bToDQkFSSAESDwoHYmF6X2ludBgSIAEoBRIXCgpiYXpfc3Ry",
  273. "aW5nGBMgASgJOgNCQVoaIAoIRm9vR3JvdXASCQoBYRgJIAEoBRIJCgFiGAog",
  274. "ASgJGjMKDU5lc3RlZE1lc3NhZ2USDwoHcXV4X2ludBgBIAEoAxIRCgljb3Jn",
  275. "ZV9pbnQYAiADKAUiJwoKTmVzdGVkRW51bRIHCgNGT08QARIHCgNCQVIQAhIH",
  276. "CgNCQVoQA0IFCgNmb29CBQoDYmFyIr8BChFUZXN0UmVxdWlyZWRPbmVvZhIR",
  277. "Cgdmb29faW50GAEgASgFSAASFAoKZm9vX3N0cmluZxgCIAEoCUgAElAKC2Zv",
  278. "b19tZXNzYWdlGAMgASgLMjkucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
  279. "c3RSZXF1aXJlZE9uZW9mLk5lc3RlZE1lc3NhZ2VIABooCg1OZXN0ZWRNZXNz",
  280. "YWdlEhcKD3JlcXVpcmVkX2RvdWJsZRgBIAIoAUIFCgNmb28i4AEKD1Rlc3RS",
  281. "ZXF1aXJlZE1hcBI/CgNmb28YASADKAsyMi5wcm90b2J1Zl91bml0dGVzdF9w",
  282. "cm90bzIuVGVzdFJlcXVpcmVkTWFwLkZvb0VudHJ5GmMKCEZvb0VudHJ5EgsK",
  283. "A2tleRgBIAEoBRJGCgV2YWx1ZRgCIAEoCzI3LnByb3RvYnVmX3VuaXR0ZXN0",
  284. "X3Byb3RvMi5UZXN0UmVxdWlyZWRNYXAuTmVzdGVkTWVzc2FnZToCOAEaJwoN",
  285. "TmVzdGVkTWVzc2FnZRIWCg5yZXF1aXJlZF9pbnQzMhgBIAIoBSKxAwoPVGVz",
  286. "dFBhY2tlZFR5cGVzEhgKDHBhY2tlZF9pbnQzMhhaIAMoBUICEAESGAoMcGFj",
  287. "a2VkX2ludDY0GFsgAygDQgIQARIZCg1wYWNrZWRfdWludDMyGFwgAygNQgIQ",
  288. "ARIZCg1wYWNrZWRfdWludDY0GF0gAygEQgIQARIZCg1wYWNrZWRfc2ludDMy",
  289. "GF4gAygRQgIQARIZCg1wYWNrZWRfc2ludDY0GF8gAygSQgIQARIaCg5wYWNr",
  290. "ZWRfZml4ZWQzMhhgIAMoB0ICEAESGgoOcGFja2VkX2ZpeGVkNjQYYSADKAZC",
  291. "AhABEhsKD3BhY2tlZF9zZml4ZWQzMhhiIAMoD0ICEAESGwoPcGFja2VkX3Nm",
  292. "aXhlZDY0GGMgAygQQgIQARIYCgxwYWNrZWRfZmxvYXQYZCADKAJCAhABEhkK",
  293. "DXBhY2tlZF9kb3VibGUYZSADKAFCAhABEhcKC3BhY2tlZF9ib29sGGYgAygI",
  294. "QgIQARI+CgtwYWNrZWRfZW51bRhnIAMoDjIlLnByb3RvYnVmX3VuaXR0ZXN0",
  295. "X3Byb3RvMi5Gb3JlaWduRW51bUICEAEizwMKEVRlc3RVbnBhY2tlZFR5cGVz",
  296. "EhoKDnVucGFja2VkX2ludDMyGFogAygFQgIQABIaCg51bnBhY2tlZF9pbnQ2",
  297. "NBhbIAMoA0ICEAASGwoPdW5wYWNrZWRfdWludDMyGFwgAygNQgIQABIbCg91",
  298. "bnBhY2tlZF91aW50NjQYXSADKARCAhAAEhsKD3VucGFja2VkX3NpbnQzMhhe",
  299. "IAMoEUICEAASGwoPdW5wYWNrZWRfc2ludDY0GF8gAygSQgIQABIcChB1bnBh",
  300. "Y2tlZF9maXhlZDMyGGAgAygHQgIQABIcChB1bnBhY2tlZF9maXhlZDY0GGEg",
  301. "AygGQgIQABIdChF1bnBhY2tlZF9zZml4ZWQzMhhiIAMoD0ICEAASHQoRdW5w",
  302. "YWNrZWRfc2ZpeGVkNjQYYyADKBBCAhAAEhoKDnVucGFja2VkX2Zsb2F0GGQg",
  303. "AygCQgIQABIbCg91bnBhY2tlZF9kb3VibGUYZSADKAFCAhAAEhkKDXVucGFj",
  304. "a2VkX2Jvb2wYZiADKAhCAhAAEkAKDXVucGFja2VkX2VudW0YZyADKA4yJS5w",
  305. "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW1CAhAAIiAKFFRl",
  306. "c3RQYWNrZWRFeHRlbnNpb25zKggIARCAgICAAiIiChZUZXN0VW5wYWNrZWRF",
  307. "eHRlbnNpb25zKggIARCAgICAAiK1BAoVVGVzdER5bmFtaWNFeHRlbnNpb25z",
  308. "EhkKEHNjYWxhcl9leHRlbnNpb24Y0A8gASgHEj4KDmVudW1fZXh0ZW5zaW9u",
  309. "GNEPIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51",
  310. "bRJgChZkeW5hbWljX2VudW1fZXh0ZW5zaW9uGNIPIAEoDjI/LnByb3RvYnVm",
  311. "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0RHluYW1pY0V4dGVuc2lvbnMuRHluYW1p",
  312. "Y0VudW1UeXBlEkQKEW1lc3NhZ2VfZXh0ZW5zaW9uGNMPIAEoCzIoLnByb3Rv",
  313. "YnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduTWVzc2FnZRJmChlkeW5hbWlj",
  314. "X21lc3NhZ2VfZXh0ZW5zaW9uGNQPIAEoCzJCLnByb3RvYnVmX3VuaXR0ZXN0",
  315. "X3Byb3RvMi5UZXN0RHluYW1pY0V4dGVuc2lvbnMuRHluYW1pY01lc3NhZ2VU",
  316. "eXBlEhsKEnJlcGVhdGVkX2V4dGVuc2lvbhjVDyADKAkSHQoQcGFja2VkX2V4",
  317. "dGVuc2lvbhjWDyADKBFCAhABGiwKEkR5bmFtaWNNZXNzYWdlVHlwZRIWCg1k",
  318. "eW5hbWljX2ZpZWxkGLQQIAEoBSJHCg9EeW5hbWljRW51bVR5cGUSEAoLRFlO",
  319. "QU1JQ19GT08QmBESEAoLRFlOQU1JQ19CQVIQmRESEAoLRFlOQU1JQ19CQVoQ",
  320. "mhEiwAEKI1Rlc3RSZXBlYXRlZFNjYWxhckRpZmZlcmVudFRhZ1NpemVzEhgK",
  321. "EHJlcGVhdGVkX2ZpeGVkMzIYDCADKAcSFgoOcmVwZWF0ZWRfaW50MzIYDSAD",
  322. "KAUSGQoQcmVwZWF0ZWRfZml4ZWQ2NBj+DyADKAYSFwoOcmVwZWF0ZWRfaW50",
  323. "NjQY/w8gAygDEhgKDnJlcGVhdGVkX2Zsb2F0GP7/DyADKAISGQoPcmVwZWF0",
  324. "ZWRfdWludDY0GP//DyADKAQigwsKEFRlc3RQYXJzaW5nTWVyZ2USQgoScmVx",
  325. "dWlyZWRfYWxsX3R5cGVzGAEgAigLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJv",
  326. "dG8yLlRlc3RBbGxUeXBlcxJCChJvcHRpb25hbF9hbGxfdHlwZXMYAiABKAsy",
  327. "Ji5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzEkIKEnJl",
  328. "cGVhdGVkX2FsbF90eXBlcxgDIAMoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3By",
  329. "b3RvMi5UZXN0QWxsVHlwZXMSTwoNb3B0aW9uYWxncm91cBgKIAEoCjI4LnBy",
  330. "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UGFyc2luZ01lcmdlLk9wdGlv",
  331. "bmFsR3JvdXASTwoNcmVwZWF0ZWRncm91cBgUIAMoCjI4LnByb3RvYnVmX3Vu",
  332. "aXR0ZXN0X3Byb3RvMi5UZXN0UGFyc2luZ01lcmdlLlJlcGVhdGVkR3JvdXAa",
  333. "6QQKF1JlcGVhdGVkRmllbGRzR2VuZXJhdG9yEjYKBmZpZWxkMRgBIAMoCzIm",
  334. "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMSNgoGZmll",
  335. "bGQyGAIgAygLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxU",
  336. "eXBlcxI2CgZmaWVsZDMYAyADKAsyJi5wcm90b2J1Zl91bml0dGVzdF9wcm90",
  337. "bzIuVGVzdEFsbFR5cGVzElkKBmdyb3VwMRgKIAMoCjJJLnByb3RvYnVmX3Vu",
  338. "aXR0ZXN0X3Byb3RvMi5UZXN0UGFyc2luZ01lcmdlLlJlcGVhdGVkRmllbGRz",
  339. "R2VuZXJhdG9yLkdyb3VwMRJZCgZncm91cDIYFCADKAoySS5wcm90b2J1Zl91",
  340. "bml0dGVzdF9wcm90bzIuVGVzdFBhcnNpbmdNZXJnZS5SZXBlYXRlZEZpZWxk",
  341. "c0dlbmVyYXRvci5Hcm91cDISNQoEZXh0MRjoByADKAsyJi5wcm90b2J1Zl91",
  342. "bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzEjUKBGV4dDIY6QcgAygLMiYu",
  343. "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcxpACgZHcm91",
  344. "cDESNgoGZmllbGQxGAsgASgLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
  345. "LlRlc3RBbGxUeXBlcxpACgZHcm91cDISNgoGZmllbGQxGBUgASgLMiYucHJv",
  346. "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcxpZCg1PcHRpb25h",
  347. "bEdyb3VwEkgKGG9wdGlvbmFsX2dyb3VwX2FsbF90eXBlcxgLIAEoCzImLnBy",
  348. "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMaWQoNUmVwZWF0",
  349. "ZWRHcm91cBJIChhyZXBlYXRlZF9ncm91cF9hbGxfdHlwZXMYFSABKAsyJi5w",
  350. "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzKgkI6AcQgICA",
  351. "gAIyaQoMb3B0aW9uYWxfZXh0EioucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
  352. "LlRlc3RQYXJzaW5nTWVyZ2UY6AcgASgLMiYucHJvdG9idWZfdW5pdHRlc3Rf",
  353. "cHJvdG8yLlRlc3RBbGxUeXBlczJpCgxyZXBlYXRlZF9leHQSKi5wcm90b2J1",
  354. "Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhcnNpbmdNZXJnZRjpByADKAsyJi5w",
  355. "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzIkQKG1Rlc3RD",
  356. "b21tZW50SW5qZWN0aW9uTWVzc2FnZRIlCgFhGAEgASgJOhoqLyA8LSBOZWl0",
  357. "aGVyIHNob3VsZCB0aGlzLiIMCgpGb29SZXF1ZXN0Ig0KC0Zvb1Jlc3BvbnNl",
  358. "IhIKEEZvb0NsaWVudE1lc3NhZ2UiEgoQRm9vU2VydmVyTWVzc2FnZSIMCgpC",
  359. "YXJSZXF1ZXN0Ig0KC0JhclJlc3BvbnNlIpIBCgxUZXN0SnNvbk5hbWUSEwoL",
  360. "ZmllbGRfbmFtZTEYASABKAUSEgoKZmllbGROYW1lMhgCIAEoBRISCgpGaWVs",
  361. "ZE5hbWUzGAMgASgFEhQKDF9maWVsZF9uYW1lNBgEIAEoBRITCgtGSUVMRF9O",
  362. "QU1FNRgFIAEoBRIaCgtmaWVsZF9uYW1lNhgGIAEoBVIFQHR5cGUioAYKFFRl",
  363. "c3RIdWdlRmllbGROdW1iZXJzEhoKDm9wdGlvbmFsX2ludDMyGPD4//8BIAEo",
  364. "BRIUCghmaXhlZF8zMhjx+P//ASABKAUSHgoOcmVwZWF0ZWRfaW50MzIY8vj/",
  365. "/wEgAygFQgIQABIcCgxwYWNrZWRfaW50MzIY8/j//wEgAygFQgIQARJACg1v",
  366. "cHRpb25hbF9lbnVtGPT4//8BIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3By",
  367. "b3RvMi5Gb3JlaWduRW51bRIbCg9vcHRpb25hbF9zdHJpbmcY9fj//wEgASgJ",
  368. "EhoKDm9wdGlvbmFsX2J5dGVzGPb4//8BIAEoDBJGChBvcHRpb25hbF9tZXNz",
  369. "YWdlGPf4//8BIAEoCzIoLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3Jl",
  370. "aWduTWVzc2FnZRJXCg1vcHRpb25hbGdyb3VwGPj4//8BIAEoCjI8LnByb3Rv",
  371. "YnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0SHVnZUZpZWxkTnVtYmVycy5PcHRp",
  372. "b25hbEdyb3VwEmIKEXN0cmluZ19zdHJpbmdfbWFwGPr4//8BIAMoCzJDLnBy",
  373. "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0SHVnZUZpZWxkTnVtYmVycy5T",
  374. "dHJpbmdTdHJpbmdNYXBFbnRyeRIaCgxvbmVvZl91aW50MzIY+/j//wEgASgN",
  375. "SAASSgoUb25lb2ZfdGVzdF9hbGxfdHlwZXMY/Pj//wEgASgLMiYucHJvdG9i",
  376. "dWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlc0gAEhoKDG9uZW9mX3N0",
  377. "cmluZxj9+P//ASABKAlIABIZCgtvbmVvZl9ieXRlcxj++P//ASABKAxIABok",
  378. "Cg1PcHRpb25hbEdyb3VwEhMKB2dyb3VwX2EY+fj//wEgASgFGjYKFFN0cmlu",
  379. "Z1N0cmluZ01hcEVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToC",
  380. "OAEqDAjgqv//ARDw+P//AUINCgtvbmVvZl9maWVsZCKxAQoYVGVzdEV4dGVu",
  381. "c2lvbkluc2lkZVRhYmxlEg4KBmZpZWxkMRgBIAEoBRIOCgZmaWVsZDIYAiAB",
  382. "KAUSDgoGZmllbGQzGAMgASgFEg4KBmZpZWxkNBgEIAEoBRIOCgZmaWVsZDYY",
  383. "BiABKAUSDgoGZmllbGQ3GAcgASgFEg4KBmZpZWxkOBgIIAEoBRIOCgZmaWVs",
  384. "ZDkYCSABKAUSDwoHZmllbGQxMBgKIAEoBSoECAUQBipACgtGb3JlaWduRW51",
  385. "bRIPCgtGT1JFSUdOX0ZPTxAEEg8KC0ZPUkVJR05fQkFSEAUSDwoLRk9SRUlH",
  386. "Tl9CQVoQBipLChRUZXN0RW51bVdpdGhEdXBWYWx1ZRIICgRGT08xEAESCAoE",
  387. "QkFSMRACEgcKA0JBWhADEggKBEZPTzIQARIICgRCQVIyEAIaAhABKokBCg5U",
  388. "ZXN0U3BhcnNlRW51bRIMCghTUEFSU0VfQRB7Eg4KCFNQQVJTRV9CEKbnAxIP",
  389. "CghTUEFSU0VfQxCysYAGEhUKCFNQQVJTRV9EEPH//////////wESFQoIU1BB",
  390. "UlNFX0UQtN78////////ARIMCghTUEFSU0VfRhAAEgwKCFNQQVJTRV9HEAIq",
  391. "iw8KDVZlcnlMYXJnZUVudW0SFgoSRU5VTV9MQUJFTF9ERUZBVUxUEAASEAoM",
  392. "RU5VTV9MQUJFTF8xEAESEAoMRU5VTV9MQUJFTF8yEAISEAoMRU5VTV9MQUJF",
  393. "TF8zEAMSEAoMRU5VTV9MQUJFTF80EAQSEAoMRU5VTV9MQUJFTF81EAUSEAoM",
  394. "RU5VTV9MQUJFTF82EAYSEAoMRU5VTV9MQUJFTF83EAcSEAoMRU5VTV9MQUJF",
  395. "TF84EAgSEAoMRU5VTV9MQUJFTF85EAkSEQoNRU5VTV9MQUJFTF8xMBAKEhEK",
  396. "DUVOVU1fTEFCRUxfMTEQCxIRCg1FTlVNX0xBQkVMXzEyEAwSEQoNRU5VTV9M",
  397. "QUJFTF8xMxANEhEKDUVOVU1fTEFCRUxfMTQQDhIRCg1FTlVNX0xBQkVMXzE1",
  398. "EA8SEQoNRU5VTV9MQUJFTF8xNhAQEhEKDUVOVU1fTEFCRUxfMTcQERIRCg1F",
  399. "TlVNX0xBQkVMXzE4EBISEQoNRU5VTV9MQUJFTF8xORATEhEKDUVOVU1fTEFC",
  400. "RUxfMjAQFBIRCg1FTlVNX0xBQkVMXzIxEBUSEQoNRU5VTV9MQUJFTF8yMhAW",
  401. "EhEKDUVOVU1fTEFCRUxfMjMQFxIRCg1FTlVNX0xBQkVMXzI0EBgSEQoNRU5V",
  402. "TV9MQUJFTF8yNRAZEhEKDUVOVU1fTEFCRUxfMjYQGhIRCg1FTlVNX0xBQkVM",
  403. "XzI3EBsSEQoNRU5VTV9MQUJFTF8yOBAcEhEKDUVOVU1fTEFCRUxfMjkQHRIR",
  404. "Cg1FTlVNX0xBQkVMXzMwEB4SEQoNRU5VTV9MQUJFTF8zMRAfEhEKDUVOVU1f",
  405. "TEFCRUxfMzIQIBIRCg1FTlVNX0xBQkVMXzMzECESEQoNRU5VTV9MQUJFTF8z",
  406. "NBAiEhEKDUVOVU1fTEFCRUxfMzUQIxIRCg1FTlVNX0xBQkVMXzM2ECQSEQoN",
  407. "RU5VTV9MQUJFTF8zNxAlEhEKDUVOVU1fTEFCRUxfMzgQJhIRCg1FTlVNX0xB",
  408. "QkVMXzM5ECcSEQoNRU5VTV9MQUJFTF80MBAoEhEKDUVOVU1fTEFCRUxfNDEQ",
  409. "KRIRCg1FTlVNX0xBQkVMXzQyECoSEQoNRU5VTV9MQUJFTF80MxArEhEKDUVO",
  410. "VU1fTEFCRUxfNDQQLBIRCg1FTlVNX0xBQkVMXzQ1EC0SEQoNRU5VTV9MQUJF",
  411. "TF80NhAuEhEKDUVOVU1fTEFCRUxfNDcQLxIRCg1FTlVNX0xBQkVMXzQ4EDAS",
  412. "EQoNRU5VTV9MQUJFTF80ORAxEhEKDUVOVU1fTEFCRUxfNTAQMhIRCg1FTlVN",
  413. "X0xBQkVMXzUxEDMSEQoNRU5VTV9MQUJFTF81MhA0EhEKDUVOVU1fTEFCRUxf",
  414. "NTMQNRIRCg1FTlVNX0xBQkVMXzU0EDYSEQoNRU5VTV9MQUJFTF81NRA3EhEK",
  415. "DUVOVU1fTEFCRUxfNTYQOBIRCg1FTlVNX0xBQkVMXzU3EDkSEQoNRU5VTV9M",
  416. "QUJFTF81OBA6EhEKDUVOVU1fTEFCRUxfNTkQOxIRCg1FTlVNX0xBQkVMXzYw",
  417. "EDwSEQoNRU5VTV9MQUJFTF82MRA9EhEKDUVOVU1fTEFCRUxfNjIQPhIRCg1F",
  418. "TlVNX0xBQkVMXzYzED8SEQoNRU5VTV9MQUJFTF82NBBAEhEKDUVOVU1fTEFC",
  419. "RUxfNjUQQRIRCg1FTlVNX0xBQkVMXzY2EEISEQoNRU5VTV9MQUJFTF82NxBD",
  420. "EhEKDUVOVU1fTEFCRUxfNjgQRBIRCg1FTlVNX0xBQkVMXzY5EEUSEQoNRU5V",
  421. "TV9MQUJFTF83MBBGEhEKDUVOVU1fTEFCRUxfNzEQRxIRCg1FTlVNX0xBQkVM",
  422. "XzcyEEgSEQoNRU5VTV9MQUJFTF83MxBJEhEKDUVOVU1fTEFCRUxfNzQQShIR",
  423. "Cg1FTlVNX0xBQkVMXzc1EEsSEQoNRU5VTV9MQUJFTF83NhBMEhEKDUVOVU1f",
  424. "TEFCRUxfNzcQTRIRCg1FTlVNX0xBQkVMXzc4EE4SEQoNRU5VTV9MQUJFTF83",
  425. "ORBPEhEKDUVOVU1fTEFCRUxfODAQUBIRCg1FTlVNX0xBQkVMXzgxEFESEQoN",
  426. "RU5VTV9MQUJFTF84MhBSEhEKDUVOVU1fTEFCRUxfODMQUxIRCg1FTlVNX0xB",
  427. "QkVMXzg0EFQSEQoNRU5VTV9MQUJFTF84NRBVEhEKDUVOVU1fTEFCRUxfODYQ",
  428. "VhIRCg1FTlVNX0xBQkVMXzg3EFcSEQoNRU5VTV9MQUJFTF84OBBYEhEKDUVO",
  429. "VU1fTEFCRUxfODkQWRIRCg1FTlVNX0xBQkVMXzkwEFoSEQoNRU5VTV9MQUJF",
  430. "TF85MRBbEhEKDUVOVU1fTEFCRUxfOTIQXBIRCg1FTlVNX0xBQkVMXzkzEF0S",
  431. "EQoNRU5VTV9MQUJFTF85NBBeEhEKDUVOVU1fTEFCRUxfOTUQXxIRCg1FTlVN",
  432. "X0xBQkVMXzk2EGASEQoNRU5VTV9MQUJFTF85NxBhEhEKDUVOVU1fTEFCRUxf",
  433. "OTgQYhIRCg1FTlVNX0xBQkVMXzk5EGMSEgoORU5VTV9MQUJFTF8xMDAQZDK1",
  434. "AQoLVGVzdFNlcnZpY2USUgoDRm9vEiQucHJvdG9idWZfdW5pdHRlc3RfcHJv",
  435. "dG8yLkZvb1JlcXVlc3QaJS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuRm9v",
  436. "UmVzcG9uc2USUgoDQmFyEiQucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkJh",
  437. "clJlcXVlc3QaJS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuQmFyUmVzcG9u",
  438. "c2U6TQoYb3B0aW9uYWxfaW50MzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5p",
  439. "dHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGAEgASgFOk0KGG9wdGlv",
  440. "bmFsX2ludDY0X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
  441. "Mi5UZXN0QWxsRXh0ZW5zaW9ucxgCIAEoAzpOChlvcHRpb25hbF91aW50MzJf",
  442. "ZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxF",
  443. "eHRlbnNpb25zGAMgASgNOk4KGW9wdGlvbmFsX3VpbnQ2NF9leHRlbnNpb24S",
  444. "Ky5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMY",
  445. "BCABKAQ6TgoZb3B0aW9uYWxfc2ludDMyX2V4dGVuc2lvbhIrLnByb3RvYnVm",
  446. "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgFIAEoETpOChlv",
  447. "cHRpb25hbF9zaW50NjRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3Rf",
  448. "cHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGAYgASgSOk8KGm9wdGlvbmFsX2Zp",
  449. "eGVkMzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
  450. "c3RBbGxFeHRlbnNpb25zGAcgASgHOk8KGm9wdGlvbmFsX2ZpeGVkNjRfZXh0",
  451. "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
  452. "bnNpb25zGAggASgGOlAKG29wdGlvbmFsX3NmaXhlZDMyX2V4dGVuc2lvbhIr",
  453. "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgJ",
  454. "IAEoDzpQChtvcHRpb25hbF9zZml4ZWQ2NF9leHRlbnNpb24SKy5wcm90b2J1",
  455. "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYCiABKBA6TQoY",
  456. "b3B0aW9uYWxfZmxvYXRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3Rf",
  457. "cHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGAsgASgCOk4KGW9wdGlvbmFsX2Rv",
  458. "dWJsZV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz",
  459. "dEFsbEV4dGVuc2lvbnMYDCABKAE6TAoXb3B0aW9uYWxfYm9vbF9leHRlbnNp",
  460. "b24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lv",
  461. "bnMYDSABKAg6TgoZb3B0aW9uYWxfc3RyaW5nX2V4dGVuc2lvbhIrLnByb3Rv",
  462. "YnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgOIAEoCTpN",
  463. "ChhvcHRpb25hbF9ieXRlc19leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVz",
  464. "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYDyABKAw6fwoXb3B0aW9uYWxn",
  465. "cm91cF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz",
  466. "dEFsbEV4dGVuc2lvbnMYECABKAoyMS5wcm90b2J1Zl91bml0dGVzdF9wcm90",
  467. "bzIuT3B0aW9uYWxHcm91cF9leHRlbnNpb246jAEKIW9wdGlvbmFsX25lc3Rl",
  468. "ZF9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
  469. "Mi5UZXN0QWxsRXh0ZW5zaW9ucxgSIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0",
  470. "X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZTqBAQoib3B0aW9u",
  471. "YWxfZm9yZWlnbl9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0",
  472. "ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgTIAEoCzIoLnByb3RvYnVm",
  473. "X3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduTWVzc2FnZTqGAQohb3B0aW9uYWxf",
  474. "aW1wb3J0X21lc3NhZ2VfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3Rf",
  475. "cHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGBQgASgLMi4ucHJvdG9idWZfdW5p",
  476. "dHRlc3RfaW1wb3J0X3Byb3RvMi5JbXBvcnRNZXNzYWdlOoYBCh5vcHRpb25h",
  477. "bF9uZXN0ZWRfZW51bV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9w",
  478. "cm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYFSABKA4yMS5wcm90b2J1Zl91bml0",
  479. "dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW06ewofb3B0aW9u",
  480. "YWxfZm9yZWlnbl9lbnVtX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0",
  481. "X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgWIAEoDjIlLnByb3RvYnVmX3Vu",
  482. "aXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bTqAAQoeb3B0aW9uYWxfaW1wb3J0",
  483. "X2VudW1fZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
  484. "c3RBbGxFeHRlbnNpb25zGBcgASgOMisucHJvdG9idWZfdW5pdHRlc3RfaW1w",
  485. "b3J0X3Byb3RvMi5JbXBvcnRFbnVtOlgKH29wdGlvbmFsX3N0cmluZ19waWVj",
  486. "ZV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFs",
  487. "bEV4dGVuc2lvbnMYGCABKAlCAggCOlAKF29wdGlvbmFsX2NvcmRfZXh0ZW5z",
  488. "aW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNp",
  489. "b25zGBkgASgJQgIIATqTAQoob3B0aW9uYWxfcHVibGljX2ltcG9ydF9tZXNz",
  490. "YWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0",
  491. "QWxsRXh0ZW5zaW9ucxgaIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9y",
  492. "dF9wcm90bzIuUHVibGljSW1wb3J0TWVzc2FnZTqOAQofb3B0aW9uYWxfbGF6",
  493. "eV9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
  494. "Mi5UZXN0QWxsRXh0ZW5zaW9ucxgbIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0",
  495. "X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZUICKAE6TQoYcmVw",
  496. "ZWF0ZWRfaW50MzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJv",
  497. "dG8yLlRlc3RBbGxFeHRlbnNpb25zGB8gAygFOk0KGHJlcGVhdGVkX2ludDY0",
  498. "X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxs",
  499. "RXh0ZW5zaW9ucxggIAMoAzpOChlyZXBlYXRlZF91aW50MzJfZXh0ZW5zaW9u",
  500. "EisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25z",
  501. "GCEgAygNOk4KGXJlcGVhdGVkX3VpbnQ2NF9leHRlbnNpb24SKy5wcm90b2J1",
  502. "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYIiADKAQ6TgoZ",
  503. "cmVwZWF0ZWRfc2ludDMyX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0",
  504. "X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgjIAMoETpOChlyZXBlYXRlZF9z",
  505. "aW50NjRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
  506. "c3RBbGxFeHRlbnNpb25zGCQgAygSOk8KGnJlcGVhdGVkX2ZpeGVkMzJfZXh0",
  507. "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
  508. "bnNpb25zGCUgAygHOk8KGnJlcGVhdGVkX2ZpeGVkNjRfZXh0ZW5zaW9uEisu",
  509. "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGCYg",
  510. "AygGOlAKG3JlcGVhdGVkX3NmaXhlZDMyX2V4dGVuc2lvbhIrLnByb3RvYnVm",
  511. "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgnIAMoDzpQChty",
  512. "ZXBlYXRlZF9zZml4ZWQ2NF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVz",
  513. "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYKCADKBA6TQoYcmVwZWF0ZWRf",
  514. "ZmxvYXRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
  515. "c3RBbGxFeHRlbnNpb25zGCkgAygCOk4KGXJlcGVhdGVkX2RvdWJsZV9leHRl",
  516. "bnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVu",
  517. "c2lvbnMYKiADKAE6TAoXcmVwZWF0ZWRfYm9vbF9leHRlbnNpb24SKy5wcm90",
  518. "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYKyADKAg6",
  519. "TgoZcmVwZWF0ZWRfc3RyaW5nX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0",
  520. "ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgsIAMoCTpNChhyZXBlYXRl",
  521. "ZF9ieXRlc19leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
  522. "VGVzdEFsbEV4dGVuc2lvbnMYLSADKAw6fwoXcmVwZWF0ZWRncm91cF9leHRl",
  523. "bnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVu",
  524. "c2lvbnMYLiADKAoyMS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuUmVwZWF0",
  525. "ZWRHcm91cF9leHRlbnNpb246jAEKIXJlcGVhdGVkX25lc3RlZF9tZXNzYWdl",
  526. "X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxs",
  527. "RXh0ZW5zaW9ucxgwIAMoCzI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5U",
  528. "ZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZTqBAQoicmVwZWF0ZWRfZm9yZWln",
  529. "bl9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
  530. "Mi5UZXN0QWxsRXh0ZW5zaW9ucxgxIAMoCzIoLnByb3RvYnVmX3VuaXR0ZXN0",
  531. "X3Byb3RvMi5Gb3JlaWduTWVzc2FnZTqGAQohcmVwZWF0ZWRfaW1wb3J0X21l",
  532. "c3NhZ2VfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
  533. "c3RBbGxFeHRlbnNpb25zGDIgAygLMi4ucHJvdG9idWZfdW5pdHRlc3RfaW1w",
  534. "b3J0X3Byb3RvMi5JbXBvcnRNZXNzYWdlOoYBCh5yZXBlYXRlZF9uZXN0ZWRf",
  535. "ZW51bV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz",
  536. "dEFsbEV4dGVuc2lvbnMYMyADKA4yMS5wcm90b2J1Zl91bml0dGVzdF9wcm90",
  537. "bzIuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW06ewofcmVwZWF0ZWRfZm9yZWln",
  538. "bl9lbnVtX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5U",
  539. "ZXN0QWxsRXh0ZW5zaW9ucxg0IAMoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3By",
  540. "b3RvMi5Gb3JlaWduRW51bTqAAQoecmVwZWF0ZWRfaW1wb3J0X2VudW1fZXh0",
  541. "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
  542. "bnNpb25zGDUgAygOMisucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0X3Byb3Rv",
  543. "Mi5JbXBvcnRFbnVtOlgKH3JlcGVhdGVkX3N0cmluZ19waWVjZV9leHRlbnNp",
  544. "b24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lv",
  545. "bnMYNiADKAlCAggCOlAKF3JlcGVhdGVkX2NvcmRfZXh0ZW5zaW9uEisucHJv",
  546. "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGDcgAygJ",
  547. "QgIIATqOAQofcmVwZWF0ZWRfbGF6eV9tZXNzYWdlX2V4dGVuc2lvbhIrLnBy",
  548. "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxg5IAMo",
  549. "CzI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVz",
  550. "dGVkTWVzc2FnZUICKAE6UAoXZGVmYXVsdF9pbnQzMl9leHRlbnNpb24SKy5w",
  551. "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYPSAB",
  552. "KAU6AjQxOlAKF2RlZmF1bHRfaW50NjRfZXh0ZW5zaW9uEisucHJvdG9idWZf",
  553. "dW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGD4gASgDOgI0MjpR",
  554. "ChhkZWZhdWx0X3VpbnQzMl9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVz",
  555. "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYPyABKA06AjQzOlEKGGRlZmF1",
  556. "bHRfdWludDY0X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
  557. "Mi5UZXN0QWxsRXh0ZW5zaW9ucxhAIAEoBDoCNDQ6UgoYZGVmYXVsdF9zaW50",
  558. "MzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RB",
  559. "bGxFeHRlbnNpb25zGEEgASgROgMtNDU6UQoYZGVmYXVsdF9zaW50NjRfZXh0",
  560. "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
  561. "bnNpb25zGEIgASgSOgI0NjpSChlkZWZhdWx0X2ZpeGVkMzJfZXh0ZW5zaW9u",
  562. "EisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25z",
  563. "GEMgASgHOgI0NzpSChlkZWZhdWx0X2ZpeGVkNjRfZXh0ZW5zaW9uEisucHJv",
  564. "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGEQgASgG",
  565. "OgI0ODpTChpkZWZhdWx0X3NmaXhlZDMyX2V4dGVuc2lvbhIrLnByb3RvYnVm",
  566. "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhFIAEoDzoCNDk6",
  567. "VAoaZGVmYXVsdF9zZml4ZWQ2NF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0",
  568. "dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYRiABKBA6Ay01MDpSChdk",
  569. "ZWZhdWx0X2Zsb2F0X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3By",
  570. "b3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhHIAEoAjoENTEuNTpUChhkZWZhdWx0",
  571. "X2RvdWJsZV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
  572. "VGVzdEFsbEV4dGVuc2lvbnMYSCABKAE6BTUyMDAwOlEKFmRlZmF1bHRfYm9v",
  573. "bF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFs",
  574. "bEV4dGVuc2lvbnMYSSABKAg6BHRydWU6VAoYZGVmYXVsdF9zdHJpbmdfZXh0",
  575. "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
  576. "bnNpb25zGEogASgJOgVoZWxsbzpTChdkZWZhdWx0X2J5dGVzX2V4dGVuc2lv",
  577. "bhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9u",
  578. "cxhLIAEoDDoFd29ybGQ6igEKHWRlZmF1bHRfbmVzdGVkX2VudW1fZXh0ZW5z",
  579. "aW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNp",
  580. "b25zGFEgASgOMjEucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxU",
  581. "eXBlcy5OZXN0ZWRFbnVtOgNCQVI6hwEKHmRlZmF1bHRfZm9yZWlnbl9lbnVt",
  582. "X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxs",
  583. "RXh0ZW5zaW9ucxhSIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5G",
  584. "b3JlaWduRW51bToLRk9SRUlHTl9CQVI6iwEKHWRlZmF1bHRfaW1wb3J0X2Vu",
  585. "dW1fZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RB",
  586. "bGxFeHRlbnNpb25zGFMgASgOMisucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0",
  587. "X3Byb3RvMi5JbXBvcnRFbnVtOgpJTVBPUlRfQkFSOlwKHmRlZmF1bHRfc3Ry",
  588. "aW5nX3BpZWNlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
  589. "Mi5UZXN0QWxsRXh0ZW5zaW9ucxhUIAEoCToDYWJjQgIIAjpUChZkZWZhdWx0",
  590. "X2NvcmRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
  591. "c3RBbGxFeHRlbnNpb25zGFUgASgJOgMxMjNCAggBOksKFm9uZW9mX3VpbnQz",
  592. "Ml9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFs",
  593. "bEV4dGVuc2lvbnMYbyABKA06iQEKHm9uZW9mX25lc3RlZF9tZXNzYWdlX2V4",
  594. "dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0",
  595. "ZW5zaW9ucxhwIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0",
  596. "QWxsVHlwZXMuTmVzdGVkTWVzc2FnZTpLChZvbmVvZl9zdHJpbmdfZXh0ZW5z",
  597. "aW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNp",
  598. "b25zGHEgASgJOkoKFW9uZW9mX2J5dGVzX2V4dGVuc2lvbhIrLnByb3RvYnVm",
  599. "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhyIAEoDDpJChNt",
  600. "eV9leHRlbnNpb25fc3RyaW5nEiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
  601. "LlRlc3RGaWVsZE9yZGVyaW5ncxgyIAEoCTpGChBteV9leHRlbnNpb25faW50",
  602. "EiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RGaWVsZE9yZGVyaW5n",
  603. "cxgFIAEoBTpSChZwYWNrZWRfaW50MzJfZXh0ZW5zaW9uEi4ucHJvdG9idWZf",
  604. "dW5pdHRlc3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRlbnNpb25zGFogAygFQgIQ",
  605. "ATpSChZwYWNrZWRfaW50NjRfZXh0ZW5zaW9uEi4ucHJvdG9idWZfdW5pdHRl",
  606. "c3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRlbnNpb25zGFsgAygDQgIQATpTChdw",
  607. "YWNrZWRfdWludDMyX2V4dGVuc2lvbhIuLnByb3RvYnVmX3VuaXR0ZXN0X3By",
  608. "b3RvMi5UZXN0UGFja2VkRXh0ZW5zaW9ucxhcIAMoDUICEAE6UwoXcGFja2Vk",
  609. "X3VpbnQ2NF9leHRlbnNpb24SLi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
  610. "VGVzdFBhY2tlZEV4dGVuc2lvbnMYXSADKARCAhABOlMKF3BhY2tlZF9zaW50",
  611. "MzJfZXh0ZW5zaW9uEi4ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RQ",
  612. "YWNrZWRFeHRlbnNpb25zGF4gAygRQgIQATpTChdwYWNrZWRfc2ludDY0X2V4",
  613. "dGVuc2lvbhIuLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UGFja2Vk",
  614. "RXh0ZW5zaW9ucxhfIAMoEkICEAE6VAoYcGFja2VkX2ZpeGVkMzJfZXh0ZW5z",
  615. "aW9uEi4ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRl",
  616. "bnNpb25zGGAgAygHQgIQATpUChhwYWNrZWRfZml4ZWQ2NF9leHRlbnNpb24S",
  617. "Li5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lv",
  618. "bnMYYSADKAZCAhABOlUKGXBhY2tlZF9zZml4ZWQzMl9leHRlbnNpb24SLi5w",
  619. "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMY",
  620. "YiADKA9CAhABOlUKGXBhY2tlZF9zZml4ZWQ2NF9leHRlbnNpb24SLi5wcm90",
  621. "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMYYyAD",
  622. "KBBCAhABOlIKFnBhY2tlZF9mbG9hdF9leHRlbnNpb24SLi5wcm90b2J1Zl91",
  623. "bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMYZCADKAJCAhAB",
  624. "OlMKF3BhY2tlZF9kb3VibGVfZXh0ZW5zaW9uEi4ucHJvdG9idWZfdW5pdHRl",
  625. "c3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRlbnNpb25zGGUgAygBQgIQATpRChVw",
  626. "YWNrZWRfYm9vbF9leHRlbnNpb24SLi5wcm90b2J1Zl91bml0dGVzdF9wcm90",
  627. "bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMYZiADKAhCAhABOngKFXBhY2tlZF9l",
  628. "bnVtX2V4dGVuc2lvbhIuLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0",
  629. "UGFja2VkRXh0ZW5zaW9ucxhnIAMoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3By",
  630. "b3RvMi5Gb3JlaWduRW51bUICEAE6VgoYdW5wYWNrZWRfaW50MzJfZXh0ZW5z",
  631. "aW9uEjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4",
  632. "dGVuc2lvbnMYWiADKAVCAhAAOlYKGHVucGFja2VkX2ludDY0X2V4dGVuc2lv",
  633. "bhIwLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0VW5wYWNrZWRFeHRl",
  634. "bnNpb25zGFsgAygDQgIQADpXChl1bnBhY2tlZF91aW50MzJfZXh0ZW5zaW9u",
  635. "EjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVu",
  636. "c2lvbnMYXCADKA1CAhAAOlcKGXVucGFja2VkX3VpbnQ2NF9leHRlbnNpb24S",
  637. "MC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5z",
  638. "aW9ucxhdIAMoBEICEAA6VwoZdW5wYWNrZWRfc2ludDMyX2V4dGVuc2lvbhIw",
  639. "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0VW5wYWNrZWRFeHRlbnNp",
  640. "b25zGF4gAygRQgIQADpXChl1bnBhY2tlZF9zaW50NjRfZXh0ZW5zaW9uEjAu",
  641. "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVuc2lv",
  642. "bnMYXyADKBJCAhAAOlgKGnVucGFja2VkX2ZpeGVkMzJfZXh0ZW5zaW9uEjAu",
  643. "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVuc2lv",
  644. "bnMYYCADKAdCAhAAOlgKGnVucGFja2VkX2ZpeGVkNjRfZXh0ZW5zaW9uEjAu",
  645. "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVuc2lv",
  646. "bnMYYSADKAZCAhAAOlkKG3VucGFja2VkX3NmaXhlZDMyX2V4dGVuc2lvbhIw",
  647. "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0VW5wYWNrZWRFeHRlbnNp",
  648. "b25zGGIgAygPQgIQADpZCht1bnBhY2tlZF9zZml4ZWQ2NF9leHRlbnNpb24S",
  649. "MC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5z",
  650. "aW9ucxhjIAMoEEICEAA6VgoYdW5wYWNrZWRfZmxvYXRfZXh0ZW5zaW9uEjAu",
  651. "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVuc2lv",
  652. "bnMYZCADKAJCAhAAOlcKGXVucGFja2VkX2RvdWJsZV9leHRlbnNpb24SMC5w",
  653. "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5zaW9u",
  654. "cxhlIAMoAUICEAA6VQoXdW5wYWNrZWRfYm9vbF9leHRlbnNpb24SMC5wcm90",
  655. "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5zaW9ucxhm",
  656. "IAMoCEICEAA6fAoXdW5wYWNrZWRfZW51bV9leHRlbnNpb24SMC5wcm90b2J1",
  657. "Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5zaW9ucxhnIAMo",
  658. "DjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bUICEAA6",
  659. "cgoOdGVzdF9hbGxfdHlwZXMSLi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
  660. "VGVzdEh1Z2VGaWVsZE51bWJlcnMY4Kr//wEgASgLMiYucHJvdG9idWZfdW5p",
  661. "dHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlczphCiV0ZXN0X2V4dGVuc2lvbl9p",
  662. "bnNpZGVfdGFibGVfZXh0ZW5zaW9uEjIucHJvdG9idWZfdW5pdHRlc3RfcHJv",
  663. "dG8yLlRlc3RFeHRlbnNpb25JbnNpZGVUYWJsZRgFIAEoBUIySAGAAQGIAQGQ",
  664. "AQH4AQGqAiFHb29nbGUuUHJvdG9idWYuVGVzdFByb3Rvcy5Qcm90bzI="));
  665. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  666. new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.Proto2.UnittestImportReflection.Descriptor, },
  667. new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.Proto2.ForeignEnum), typeof(global::Google.Protobuf.TestProtos.Proto2.TestEnumWithDupValue), typeof(global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum), typeof(global::Google.Protobuf.TestProtos.Proto2.VeryLargeEnum), }, new pb::Extension[] { UnittestExtensions.OptionalInt32Extension, UnittestExtensions.OptionalInt64Extension, UnittestExtensions.OptionalUint32Extension, UnittestExtensions.OptionalUint64Extension, UnittestExtensions.OptionalSint32Extension, UnittestExtensions.OptionalSint64Extension, UnittestExtensions.OptionalFixed32Extension, UnittestExtensions.OptionalFixed64Extension, UnittestExtensions.OptionalSfixed32Extension, UnittestExtensions.OptionalSfixed64Extension, UnittestExtensions.OptionalFloatExtension, UnittestExtensions.OptionalDoubleExtension, UnittestExtensions.OptionalBoolExtension, UnittestExtensions.OptionalStringExtension, UnittestExtensions.OptionalBytesExtension, UnittestExtensions.OptionalGroupExtension, UnittestExtensions.OptionalNestedMessageExtension, UnittestExtensions.OptionalForeignMessageExtension, UnittestExtensions.OptionalImportMessageExtension, UnittestExtensions.OptionalNestedEnumExtension, UnittestExtensions.OptionalForeignEnumExtension, UnittestExtensions.OptionalImportEnumExtension, UnittestExtensions.OptionalStringPieceExtension, UnittestExtensions.OptionalCordExtension, UnittestExtensions.OptionalPublicImportMessageExtension, UnittestExtensions.OptionalLazyMessageExtension, UnittestExtensions.RepeatedInt32Extension, UnittestExtensions.RepeatedInt64Extension, UnittestExtensions.RepeatedUint32Extension, UnittestExtensions.RepeatedUint64Extension, UnittestExtensions.RepeatedSint32Extension, UnittestExtensions.RepeatedSint64Extension, UnittestExtensions.RepeatedFixed32Extension, UnittestExtensions.RepeatedFixed64Extension, UnittestExtensions.RepeatedSfixed32Extension, UnittestExtensions.RepeatedSfixed64Extension, UnittestExtensions.RepeatedFloatExtension, UnittestExtensions.RepeatedDoubleExtension, UnittestExtensions.RepeatedBoolExtension, UnittestExtensions.RepeatedStringExtension, UnittestExtensions.RepeatedBytesExtension, UnittestExtensions.RepeatedGroupExtension, UnittestExtensions.RepeatedNestedMessageExtension, UnittestExtensions.RepeatedForeignMessageExtension, UnittestExtensions.RepeatedImportMessageExtension, UnittestExtensions.RepeatedNestedEnumExtension, UnittestExtensions.RepeatedForeignEnumExtension, UnittestExtensions.RepeatedImportEnumExtension, UnittestExtensions.RepeatedStringPieceExtension, UnittestExtensions.RepeatedCordExtension, UnittestExtensions.RepeatedLazyMessageExtension, UnittestExtensions.DefaultInt32Extension, UnittestExtensions.DefaultInt64Extension, UnittestExtensions.DefaultUint32Extension, UnittestExtensions.DefaultUint64Extension, UnittestExtensions.DefaultSint32Extension, UnittestExtensions.DefaultSint64Extension, UnittestExtensions.DefaultFixed32Extension, UnittestExtensions.DefaultFixed64Extension, UnittestExtensions.DefaultSfixed32Extension, UnittestExtensions.DefaultSfixed64Extension, UnittestExtensions.DefaultFloatExtension, UnittestExtensions.DefaultDoubleExtension, UnittestExtensions.DefaultBoolExtension, UnittestExtensions.DefaultStringExtension, UnittestExtensions.DefaultBytesExtension, UnittestExtensions.DefaultNestedEnumExtension, UnittestExtensions.DefaultForeignEnumExtension, UnittestExtensions.DefaultImportEnumExtension, UnittestExtensions.DefaultStringPieceExtension, UnittestExtensions.DefaultCordExtension, UnittestExtensions.OneofUint32Extension, UnittestExtensions.OneofNestedMessageExtension, UnittestExtensions.OneofStringExtension, UnittestExtensions.OneofBytesExtension, UnittestExtensions.MyExtensionString, UnittestExtensions.MyExtensionInt, UnittestExtensions.PackedInt32Extension, UnittestExtensions.PackedInt64Extension, UnittestExtensions.PackedUint32Extension, UnittestExtensions.PackedUint64Extension, UnittestExtensions.PackedSint32Extension, UnittestExtensions.PackedSint64Extension, UnittestExtensions.PackedFixed32Extension, UnittestExtensions.PackedFixed64Extension, UnittestExtensions.PackedSfixed32Extension, UnittestExtensions.PackedSfixed64Extension, UnittestExtensions.PackedFloatExtension, UnittestExtensions.PackedDoubleExtension, UnittestExtensions.PackedBoolExtension, UnittestExtensions.PackedEnumExtension, UnittestExtensions.UnpackedInt32Extension, UnittestExtensions.UnpackedInt64Extension, UnittestExtensions.UnpackedUint32Extension, UnittestExtensions.UnpackedUint64Extension, UnittestExtensions.UnpackedSint32Extension, UnittestExtensions.UnpackedSint64Extension, UnittestExtensions.UnpackedFixed32Extension, UnittestExtensions.UnpackedFixed64Extension, UnittestExtensions.UnpackedSfixed32Extension, UnittestExtensions.UnpackedSfixed64Extension, UnittestExtensions.UnpackedFloatExtension, UnittestExtensions.UnpackedDoubleExtension, UnittestExtensions.UnpackedBoolExtension, UnittestExtensions.UnpackedEnumExtension, UnittestExtensions.TestAllTypes, UnittestExtensions.TestExtensionInsideTableExtension }, new pbr::GeneratedClrTypeInfo[] {
  668. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllTypes), global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser, new[]{ "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" }, new[]{ "OneofField" }, new[]{ typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser, new[]{ "Bb" }, null, null, null, null),
  669. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup), global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup.Parser, new[]{ "A" }, null, null, null, null),
  670. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup), global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup.Parser, new[]{ "A" }, null, null, null, null)}),
  671. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes), global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes.Parser, new[]{ "Child", "Payload", "RepeatedChild" }, null, null, null, null),
  672. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedFields), global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedFields.Parser, new[]{ "DeprecatedInt32", "DeprecatedInt32InOneof" }, new[]{ "OneofFields" }, null, null, null),
  673. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedMessage), global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedMessage.Parser, null, null, null, null, null),
  674. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.ForeignMessage), global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser, new[]{ "C", "D" }, null, null, null, null),
  675. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestReservedFields), global::Google.Protobuf.TestProtos.Proto2.TestReservedFields.Parser, null, null, null, null, null),
  676. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions), global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions.Parser, null, null, null, null, null),
  677. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension), global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension.Parser, new[]{ "A" }, null, null, null, null),
  678. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension), global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension.Parser, new[]{ "A" }, null, null, null, null),
  679. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestGroup), global::Google.Protobuf.TestProtos.Proto2.TestGroup.Parser, new[]{ "OptionalGroup", "OptionalForeignEnum" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup), global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup.Parser, new[]{ "A" }, null, null, null, null)}),
  680. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension), global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension.Parser, null, null, null, null, null),
  681. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension), global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Parser, null, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Extensions.Test, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Extensions.NestedStringExtension, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Extensions.OptionalGroupExtension, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Extensions.OptionalForeignEnumExtension }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension), global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension.Parser, new[]{ "A" }, null, null, null, null)}),
  682. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequired), global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser, new[]{ "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" }, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestRequired.Extensions.Single, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Extensions.Multi }, null),
  683. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredForeign), global::Google.Protobuf.TestProtos.Proto2.TestRequiredForeign.Parser, new[]{ "OptionalMessage", "RepeatedMessage", "Dummy" }, null, null, null, null),
  684. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredMessage), global::Google.Protobuf.TestProtos.Proto2.TestRequiredMessage.Parser, new[]{ "OptionalMessage", "RepeatedMessage", "RequiredMessage" }, null, null, null, null),
  685. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestForeignNested), global::Google.Protobuf.TestProtos.Proto2.TestForeignNested.Parser, new[]{ "ForeignNested" }, null, null, null, null),
  686. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessage), global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessage.Parser, null, null, null, null, null),
  687. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessageWithExtensions), global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessageWithExtensions.Parser, null, null, null, null, null),
  688. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMultipleExtensionRanges), global::Google.Protobuf.TestProtos.Proto2.TestMultipleExtensionRanges.Parser, null, null, null, null, null),
  689. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestReallyLargeTagNumber), global::Google.Protobuf.TestProtos.Proto2.TestReallyLargeTagNumber.Parser, new[]{ "A", "Bb" }, null, null, null, null),
  690. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage), global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage.Parser, new[]{ "A", "I" }, null, null, null, null),
  691. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA), global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Parser, new[]{ "Bb", "SubGroup" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage), global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage.Parser, new[]{ "B" }, null, null, null, null),
  692. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup), global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup.Parser, new[]{ "SubMessage", "NotInThisScc" }, null, null, null, null)}),
  693. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB), global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB.Parser, new[]{ "A", "OptionalInt32" }, null, null, null, null),
  694. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized), global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Parser, new[]{ "SubMessage" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage), global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Parser, new[]{ "SubGroup" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup), global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup.Parser, new[]{ "I" }, null, null, null, null)})}),
  695. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber), global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Parser, new[]{ "A", "Foo", "Bar" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo), global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo.Parser, new[]{ "A" }, null, null, null, null),
  696. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar), global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar.Parser, new[]{ "A" }, null, null, null, null)}),
  697. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestEagerMessage), global::Google.Protobuf.TestProtos.Proto2.TestEagerMessage.Parser, new[]{ "SubMessage" }, null, null, null, null),
  698. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestLazyMessage), global::Google.Protobuf.TestProtos.Proto2.TestLazyMessage.Parser, new[]{ "SubMessage" }, null, null, null, null),
  699. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits), global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Parser, new[]{ "OptionalNestedMessage" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage.Parser, new[]{ "NestedmessageRepeatedInt32", "NestedmessageRepeatedForeignmessage" }, null, null, null, null)}),
  700. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestCamelCaseFieldNames), global::Google.Protobuf.TestProtos.Proto2.TestCamelCaseFieldNames.Parser, new[]{ "PrimitiveField", "StringField", "EnumField", "MessageField", "StringPieceField", "CordField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedStringPieceField", "RepeatedCordField" }, null, null, null, null),
  701. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings), global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Parser, new[]{ "MyString", "MyInt", "MyFloat", "OptionalNestedMessage" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage.Parser, new[]{ "Oo", "Bb" }, null, null, null, null)}),
  702. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1), global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1.Parser, new[]{ "MyString" }, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1.Extensions.TestExtOrderings1 }, null),
  703. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2), global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Parser, new[]{ "MyString" }, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Extensions.TestExtOrderings2 }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3), global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3.Parser, new[]{ "MyString" }, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3.Extensions.TestExtOrderings3 }, null)}),
  704. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestExtremeDefaultValues), global::Google.Protobuf.TestProtos.Proto2.TestExtremeDefaultValues.Parser, new[]{ "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" }, null, null, null, null),
  705. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.SparseEnumMessage), global::Google.Protobuf.TestProtos.Proto2.SparseEnumMessage.Parser, new[]{ "SparseEnum" }, null, null, null, null),
  706. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.OneString), global::Google.Protobuf.TestProtos.Proto2.OneString.Parser, new[]{ "Data" }, null, null, null, null),
  707. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.MoreString), global::Google.Protobuf.TestProtos.Proto2.MoreString.Parser, new[]{ "Data" }, null, null, null, null),
  708. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.OneBytes), global::Google.Protobuf.TestProtos.Proto2.OneBytes.Parser, new[]{ "Data" }, null, null, null, null),
  709. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.MoreBytes), global::Google.Protobuf.TestProtos.Proto2.MoreBytes.Parser, new[]{ "Data" }, null, null, null, null),
  710. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Int32Message), global::Google.Protobuf.TestProtos.Proto2.Int32Message.Parser, new[]{ "Data" }, null, null, null, null),
  711. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Uint32Message), global::Google.Protobuf.TestProtos.Proto2.Uint32Message.Parser, new[]{ "Data" }, null, null, null, null),
  712. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Int64Message), global::Google.Protobuf.TestProtos.Proto2.Int64Message.Parser, new[]{ "Data" }, null, null, null, null),
  713. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Uint64Message), global::Google.Protobuf.TestProtos.Proto2.Uint64Message.Parser, new[]{ "Data" }, null, null, null, null),
  714. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.BoolMessage), global::Google.Protobuf.TestProtos.Proto2.BoolMessage.Parser, new[]{ "Data" }, null, null, null, null),
  715. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof), global::Google.Protobuf.TestProtos.Proto2.TestOneof.Parser, new[]{ "FooInt", "FooString", "FooMessage", "FooGroup" }, new[]{ "Foo" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup), global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup.Parser, new[]{ "A", "B" }, null, null, null, null)}),
  716. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible), global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Parser, new[]{ "FooInt", "FooString", "FooMessage", "FooGroup" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup), global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup.Parser, new[]{ "A", "B" }, null, null, null, null)}),
  717. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof2), global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Parser, new[]{ "FooInt", "FooString", "FooCord", "FooStringPiece", "FooBytes", "FooEnum", "FooMessage", "FooGroup", "FooLazyMessage", "BarInt", "BarString", "BarCord", "BarStringPiece", "BarBytes", "BarEnum", "BazInt", "BazString" }, new[]{ "Foo", "Bar" }, new[]{ typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup), global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup.Parser, new[]{ "A", "B" }, null, null, null, null),
  718. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage.Parser, new[]{ "QuxInt", "CorgeInt" }, null, null, null, null)}),
  719. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof), global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Parser, new[]{ "FooInt", "FooString", "FooMessage" }, new[]{ "Foo" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage.Parser, new[]{ "RequiredDouble" }, null, null, null, null)}),
  720. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap), global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Parser, new[]{ "Foo" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage.Parser, new[]{ "RequiredInt32" }, null, null, null, null)}),
  721. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestPackedTypes), global::Google.Protobuf.TestProtos.Proto2.TestPackedTypes.Parser, new[]{ "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum" }, null, null, null, null),
  722. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestUnpackedTypes), global::Google.Protobuf.TestProtos.Proto2.TestUnpackedTypes.Parser, new[]{ "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedEnum" }, null, null, null, null),
  723. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions), global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions.Parser, null, null, null, null, null),
  724. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions), global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions.Parser, null, null, null, null, null),
  725. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions), global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Parser, new[]{ "ScalarExtension", "EnumExtension", "DynamicEnumExtension", "MessageExtension", "DynamicMessageExtension", "RepeatedExtension", "PackedExtension" }, null, new[]{ typeof(global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType), global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType.Parser, new[]{ "DynamicField" }, null, null, null, null)}),
  726. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRepeatedScalarDifferentTagSizes), global::Google.Protobuf.TestProtos.Proto2.TestRepeatedScalarDifferentTagSizes.Parser, new[]{ "RepeatedFixed32", "RepeatedInt32", "RepeatedFixed64", "RepeatedInt64", "RepeatedFloat", "RepeatedUint64" }, null, null, null, null),
  727. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Parser, new[]{ "RequiredAllTypes", "OptionalAllTypes", "RepeatedAllTypes", "OptionalGroup", "RepeatedGroup" }, null, null, new pb::Extension[] { global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Extensions.OptionalExt, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Extensions.RepeatedExt }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Parser, new[]{ "Field1", "Field2", "Field3", "Group1", "Group2", "Ext1", "Ext2" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Parser, new[]{ "Field1" }, null, null, null, null),
  728. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Parser, new[]{ "Field1" }, null, null, null, null)}),
  729. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup.Parser, new[]{ "OptionalGroupAllTypes" }, null, null, null, null),
  730. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup), global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup.Parser, new[]{ "RepeatedGroupAllTypes" }, null, null, null, null)}),
  731. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestCommentInjectionMessage), global::Google.Protobuf.TestProtos.Proto2.TestCommentInjectionMessage.Parser, new[]{ "A" }, null, null, null, null),
  732. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooRequest), global::Google.Protobuf.TestProtos.Proto2.FooRequest.Parser, null, null, null, null, null),
  733. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooResponse), global::Google.Protobuf.TestProtos.Proto2.FooResponse.Parser, null, null, null, null, null),
  734. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooClientMessage), global::Google.Protobuf.TestProtos.Proto2.FooClientMessage.Parser, null, null, null, null, null),
  735. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooServerMessage), global::Google.Protobuf.TestProtos.Proto2.FooServerMessage.Parser, null, null, null, null, null),
  736. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.BarRequest), global::Google.Protobuf.TestProtos.Proto2.BarRequest.Parser, null, null, null, null, null),
  737. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.BarResponse), global::Google.Protobuf.TestProtos.Proto2.BarResponse.Parser, null, null, null, null, null),
  738. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestJsonName), global::Google.Protobuf.TestProtos.Proto2.TestJsonName.Parser, new[]{ "FieldName1", "FieldName2", "FieldName3", "FieldName4", "FIELDNAME5", "FieldName6" }, null, null, null, null),
  739. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers), global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Parser, new[]{ "OptionalInt32", "Fixed32", "RepeatedInt32", "PackedInt32", "OptionalEnum", "OptionalString", "OptionalBytes", "OptionalMessage", "OptionalGroup", "StringStringMap", "OneofUint32", "OneofTestAllTypes", "OneofString", "OneofBytes" }, new[]{ "OneofField" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup), global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup.Parser, new[]{ "GroupA" }, null, null, null, null),
  740. null, }),
  741. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable), global::Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable.Parser, new[]{ "Field1", "Field2", "Field3", "Field4", "Field6", "Field7", "Field8", "Field9", "Field10" }, null, null, null, null)
  742. }));
  743. }
  744. #endregion
  745. }
  746. /// <summary>Holder for extension identifiers generated from the top level of unittest.proto</summary>
  747. public static partial class UnittestExtensions {
  748. /// <summary>
  749. /// Singular
  750. /// </summary>
  751. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> OptionalInt32Extension =
  752. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(1, pb::FieldCodec.ForInt32(8, 0));
  753. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> OptionalInt64Extension =
  754. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(2, pb::FieldCodec.ForInt64(16, 0L));
  755. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> OptionalUint32Extension =
  756. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(3, pb::FieldCodec.ForUInt32(24, 0));
  757. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> OptionalUint64Extension =
  758. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(4, pb::FieldCodec.ForUInt64(32, 0UL));
  759. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> OptionalSint32Extension =
  760. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(5, pb::FieldCodec.ForSInt32(40, 0));
  761. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> OptionalSint64Extension =
  762. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(6, pb::FieldCodec.ForSInt64(48, 0L));
  763. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> OptionalFixed32Extension =
  764. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(7, pb::FieldCodec.ForFixed32(61, 0));
  765. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> OptionalFixed64Extension =
  766. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(8, pb::FieldCodec.ForFixed64(65, 0UL));
  767. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> OptionalSfixed32Extension =
  768. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(9, pb::FieldCodec.ForSFixed32(77, 0));
  769. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> OptionalSfixed64Extension =
  770. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(10, pb::FieldCodec.ForSFixed64(81, 0L));
  771. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float> OptionalFloatExtension =
  772. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float>(11, pb::FieldCodec.ForFloat(93, 0F));
  773. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double> OptionalDoubleExtension =
  774. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double>(12, pb::FieldCodec.ForDouble(97, 0D));
  775. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool> OptionalBoolExtension =
  776. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool>(13, pb::FieldCodec.ForBool(104, false));
  777. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OptionalStringExtension =
  778. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(14, pb::FieldCodec.ForString(114, ""));
  779. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> OptionalBytesExtension =
  780. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(15, pb::FieldCodec.ForBytes(122, pb::ByteString.Empty));
  781. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension> OptionalGroupExtension =
  782. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension>(16, pb::FieldCodec.ForGroup(131, 132, global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension.Parser));
  783. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> OptionalNestedMessageExtension =
  784. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(18, pb::FieldCodec.ForMessage(146, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser));
  785. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> OptionalForeignMessageExtension =
  786. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>(19, pb::FieldCodec.ForMessage(154, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser));
  787. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportMessage> OptionalImportMessageExtension =
  788. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportMessage>(20, pb::FieldCodec.ForMessage(162, global::Google.Protobuf.TestProtos.Proto2.ImportMessage.Parser));
  789. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> OptionalNestedEnumExtension =
  790. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum>(21, pb::FieldCodec.ForEnum(168, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) x, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum.Foo));
  791. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> OptionalForeignEnumExtension =
  792. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(22, pb::FieldCodec.ForEnum(176, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo));
  793. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum> OptionalImportEnumExtension =
  794. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum>(23, pb::FieldCodec.ForEnum(184, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) x, global::Google.Protobuf.TestProtos.Proto2.ImportEnum.ImportFoo));
  795. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OptionalStringPieceExtension =
  796. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(24, pb::FieldCodec.ForString(194, ""));
  797. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OptionalCordExtension =
  798. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(25, pb::FieldCodec.ForString(202, ""));
  799. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage> OptionalPublicImportMessageExtension =
  800. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage>(26, pb::FieldCodec.ForMessage(210, global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage.Parser));
  801. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> OptionalLazyMessageExtension =
  802. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(27, pb::FieldCodec.ForMessage(218, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser));
  803. /// <summary>
  804. /// Repeated
  805. /// </summary>
  806. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> RepeatedInt32Extension =
  807. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(31, pb::FieldCodec.ForInt32(248));
  808. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> RepeatedInt64Extension =
  809. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(32, pb::FieldCodec.ForInt64(256));
  810. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> RepeatedUint32Extension =
  811. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(33, pb::FieldCodec.ForUInt32(264));
  812. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> RepeatedUint64Extension =
  813. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(34, pb::FieldCodec.ForUInt64(272));
  814. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> RepeatedSint32Extension =
  815. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(35, pb::FieldCodec.ForSInt32(280));
  816. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> RepeatedSint64Extension =
  817. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(36, pb::FieldCodec.ForSInt64(288));
  818. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> RepeatedFixed32Extension =
  819. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(37, pb::FieldCodec.ForFixed32(301));
  820. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> RepeatedFixed64Extension =
  821. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(38, pb::FieldCodec.ForFixed64(305));
  822. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> RepeatedSfixed32Extension =
  823. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(39, pb::FieldCodec.ForSFixed32(317));
  824. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> RepeatedSfixed64Extension =
  825. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(40, pb::FieldCodec.ForSFixed64(321));
  826. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float> RepeatedFloatExtension =
  827. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float>(41, pb::FieldCodec.ForFloat(333));
  828. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double> RepeatedDoubleExtension =
  829. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double>(42, pb::FieldCodec.ForDouble(337));
  830. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool> RepeatedBoolExtension =
  831. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool>(43, pb::FieldCodec.ForBool(344));
  832. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> RepeatedStringExtension =
  833. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(44, pb::FieldCodec.ForString(354));
  834. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> RepeatedBytesExtension =
  835. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(45, pb::FieldCodec.ForBytes(362));
  836. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension> RepeatedGroupExtension =
  837. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension>(46, pb::FieldCodec.ForGroup(371, 372, global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension.Parser));
  838. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageExtension =
  839. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(48, pb::FieldCodec.ForMessage(386, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser));
  840. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> RepeatedForeignMessageExtension =
  841. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>(49, pb::FieldCodec.ForMessage(394, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser));
  842. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportMessage> RepeatedImportMessageExtension =
  843. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportMessage>(50, pb::FieldCodec.ForMessage(402, global::Google.Protobuf.TestProtos.Proto2.ImportMessage.Parser));
  844. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumExtension =
  845. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum>(51, pb::FieldCodec.ForEnum(408, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) x));
  846. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> RepeatedForeignEnumExtension =
  847. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(52, pb::FieldCodec.ForEnum(416, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x));
  848. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum> RepeatedImportEnumExtension =
  849. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum>(53, pb::FieldCodec.ForEnum(424, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) x));
  850. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> RepeatedStringPieceExtension =
  851. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(54, pb::FieldCodec.ForString(434));
  852. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> RepeatedCordExtension =
  853. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(55, pb::FieldCodec.ForString(442));
  854. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedLazyMessageExtension =
  855. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(57, pb::FieldCodec.ForMessage(458, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser));
  856. /// <summary>
  857. /// Singular with defaults
  858. /// </summary>
  859. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> DefaultInt32Extension =
  860. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(61, pb::FieldCodec.ForInt32(488, 41));
  861. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> DefaultInt64Extension =
  862. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(62, pb::FieldCodec.ForInt64(496, 42L));
  863. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> DefaultUint32Extension =
  864. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(63, pb::FieldCodec.ForUInt32(504, 43));
  865. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> DefaultUint64Extension =
  866. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(64, pb::FieldCodec.ForUInt64(512, 44UL));
  867. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> DefaultSint32Extension =
  868. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(65, pb::FieldCodec.ForSInt32(520, -45));
  869. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> DefaultSint64Extension =
  870. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(66, pb::FieldCodec.ForSInt64(528, 46L));
  871. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> DefaultFixed32Extension =
  872. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(67, pb::FieldCodec.ForFixed32(541, 47));
  873. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> DefaultFixed64Extension =
  874. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(68, pb::FieldCodec.ForFixed64(545, 48UL));
  875. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> DefaultSfixed32Extension =
  876. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(69, pb::FieldCodec.ForSFixed32(557, 49));
  877. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> DefaultSfixed64Extension =
  878. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(70, pb::FieldCodec.ForSFixed64(561, -50L));
  879. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float> DefaultFloatExtension =
  880. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float>(71, pb::FieldCodec.ForFloat(573, 51.5F));
  881. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double> DefaultDoubleExtension =
  882. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double>(72, pb::FieldCodec.ForDouble(577, 52000D));
  883. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool> DefaultBoolExtension =
  884. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool>(73, pb::FieldCodec.ForBool(584, true));
  885. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> DefaultStringExtension =
  886. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(74, pb::FieldCodec.ForString(594, global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("aGVsbG8="), 0, 5)));
  887. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> DefaultBytesExtension =
  888. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(75, pb::FieldCodec.ForBytes(602, pb::ByteString.FromBase64("d29ybGQ=")));
  889. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> DefaultNestedEnumExtension =
  890. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum>(81, pb::FieldCodec.ForEnum(648, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) x, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum.Bar));
  891. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> DefaultForeignEnumExtension =
  892. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(82, pb::FieldCodec.ForEnum(656, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignBar));
  893. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum> DefaultImportEnumExtension =
  894. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum>(83, pb::FieldCodec.ForEnum(664, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) x, global::Google.Protobuf.TestProtos.Proto2.ImportEnum.ImportBar));
  895. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> DefaultStringPieceExtension =
  896. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(84, pb::FieldCodec.ForString(674, global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("YWJj"), 0, 3)));
  897. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> DefaultCordExtension =
  898. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(85, pb::FieldCodec.ForString(682, global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("MTIz"), 0, 3)));
  899. /// <summary>
  900. /// For oneof test
  901. /// </summary>
  902. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> OneofUint32Extension =
  903. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(111, pb::FieldCodec.ForUInt32(888, 0));
  904. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> OneofNestedMessageExtension =
  905. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>(112, pb::FieldCodec.ForMessage(898, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser));
  906. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OneofStringExtension =
  907. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(113, pb::FieldCodec.ForString(906, ""));
  908. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> OneofBytesExtension =
  909. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(114, pb::FieldCodec.ForBytes(914, pb::ByteString.Empty));
  910. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, string> MyExtensionString =
  911. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, string>(50, pb::FieldCodec.ForString(402, ""));
  912. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, int> MyExtensionInt =
  913. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, int>(5, pb::FieldCodec.ForInt32(40, 0));
  914. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int> PackedInt32Extension =
  915. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int>(90, pb::FieldCodec.ForInt32(722));
  916. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long> PackedInt64Extension =
  917. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long>(91, pb::FieldCodec.ForInt64(730));
  918. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint> PackedUint32Extension =
  919. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint>(92, pb::FieldCodec.ForUInt32(738));
  920. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong> PackedUint64Extension =
  921. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong>(93, pb::FieldCodec.ForUInt64(746));
  922. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int> PackedSint32Extension =
  923. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int>(94, pb::FieldCodec.ForSInt32(754));
  924. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long> PackedSint64Extension =
  925. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long>(95, pb::FieldCodec.ForSInt64(762));
  926. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint> PackedFixed32Extension =
  927. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint>(96, pb::FieldCodec.ForFixed32(770));
  928. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong> PackedFixed64Extension =
  929. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong>(97, pb::FieldCodec.ForFixed64(778));
  930. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int> PackedSfixed32Extension =
  931. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int>(98, pb::FieldCodec.ForSFixed32(786));
  932. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long> PackedSfixed64Extension =
  933. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long>(99, pb::FieldCodec.ForSFixed64(794));
  934. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, float> PackedFloatExtension =
  935. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, float>(100, pb::FieldCodec.ForFloat(802));
  936. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, double> PackedDoubleExtension =
  937. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, double>(101, pb::FieldCodec.ForDouble(810));
  938. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, bool> PackedBoolExtension =
  939. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, bool>(102, pb::FieldCodec.ForBool(818));
  940. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> PackedEnumExtension =
  941. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(103, pb::FieldCodec.ForEnum(826, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x));
  942. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int> UnpackedInt32Extension =
  943. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int>(90, pb::FieldCodec.ForInt32(720));
  944. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long> UnpackedInt64Extension =
  945. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long>(91, pb::FieldCodec.ForInt64(728));
  946. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint> UnpackedUint32Extension =
  947. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint>(92, pb::FieldCodec.ForUInt32(736));
  948. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong> UnpackedUint64Extension =
  949. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong>(93, pb::FieldCodec.ForUInt64(744));
  950. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int> UnpackedSint32Extension =
  951. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int>(94, pb::FieldCodec.ForSInt32(752));
  952. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long> UnpackedSint64Extension =
  953. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long>(95, pb::FieldCodec.ForSInt64(760));
  954. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint> UnpackedFixed32Extension =
  955. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint>(96, pb::FieldCodec.ForFixed32(773));
  956. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong> UnpackedFixed64Extension =
  957. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong>(97, pb::FieldCodec.ForFixed64(777));
  958. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int> UnpackedSfixed32Extension =
  959. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int>(98, pb::FieldCodec.ForSFixed32(789));
  960. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long> UnpackedSfixed64Extension =
  961. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long>(99, pb::FieldCodec.ForSFixed64(793));
  962. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, float> UnpackedFloatExtension =
  963. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, float>(100, pb::FieldCodec.ForFloat(805));
  964. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, double> UnpackedDoubleExtension =
  965. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, double>(101, pb::FieldCodec.ForDouble(809));
  966. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, bool> UnpackedBoolExtension =
  967. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, bool>(102, pb::FieldCodec.ForBool(816));
  968. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> UnpackedEnumExtension =
  969. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(103, pb::FieldCodec.ForEnum(824, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x));
  970. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> TestAllTypes =
  971. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>(536860000, pb::FieldCodec.ForMessage(4294880002, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser));
  972. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable, int> TestExtensionInsideTableExtension =
  973. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable, int>(5, pb::FieldCodec.ForInt32(40, 0));
  974. }
  975. #region Enums
  976. public enum ForeignEnum {
  977. [pbr::OriginalName("FOREIGN_FOO")] ForeignFoo = 4,
  978. [pbr::OriginalName("FOREIGN_BAR")] ForeignBar = 5,
  979. [pbr::OriginalName("FOREIGN_BAZ")] ForeignBaz = 6,
  980. }
  981. /// <summary>
  982. /// Test an enum that has multiple values with the same number.
  983. /// </summary>
  984. public enum TestEnumWithDupValue {
  985. [pbr::OriginalName("FOO1")] Foo1 = 1,
  986. [pbr::OriginalName("BAR1")] Bar1 = 2,
  987. [pbr::OriginalName("BAZ")] Baz = 3,
  988. [pbr::OriginalName("FOO2", PreferredAlias = false)] Foo2 = 1,
  989. [pbr::OriginalName("BAR2", PreferredAlias = false)] Bar2 = 2,
  990. }
  991. /// <summary>
  992. /// Test an enum with large, unordered values.
  993. /// </summary>
  994. public enum TestSparseEnum {
  995. [pbr::OriginalName("SPARSE_A")] SparseA = 123,
  996. [pbr::OriginalName("SPARSE_B")] SparseB = 62374,
  997. [pbr::OriginalName("SPARSE_C")] SparseC = 12589234,
  998. [pbr::OriginalName("SPARSE_D")] SparseD = -15,
  999. [pbr::OriginalName("SPARSE_E")] SparseE = -53452,
  1000. [pbr::OriginalName("SPARSE_F")] SparseF = 0,
  1001. [pbr::OriginalName("SPARSE_G")] SparseG = 2,
  1002. }
  1003. public enum VeryLargeEnum {
  1004. [pbr::OriginalName("ENUM_LABEL_DEFAULT")] EnumLabelDefault = 0,
  1005. [pbr::OriginalName("ENUM_LABEL_1")] EnumLabel1 = 1,
  1006. [pbr::OriginalName("ENUM_LABEL_2")] EnumLabel2 = 2,
  1007. [pbr::OriginalName("ENUM_LABEL_3")] EnumLabel3 = 3,
  1008. [pbr::OriginalName("ENUM_LABEL_4")] EnumLabel4 = 4,
  1009. [pbr::OriginalName("ENUM_LABEL_5")] EnumLabel5 = 5,
  1010. [pbr::OriginalName("ENUM_LABEL_6")] EnumLabel6 = 6,
  1011. [pbr::OriginalName("ENUM_LABEL_7")] EnumLabel7 = 7,
  1012. [pbr::OriginalName("ENUM_LABEL_8")] EnumLabel8 = 8,
  1013. [pbr::OriginalName("ENUM_LABEL_9")] EnumLabel9 = 9,
  1014. [pbr::OriginalName("ENUM_LABEL_10")] EnumLabel10 = 10,
  1015. [pbr::OriginalName("ENUM_LABEL_11")] EnumLabel11 = 11,
  1016. [pbr::OriginalName("ENUM_LABEL_12")] EnumLabel12 = 12,
  1017. [pbr::OriginalName("ENUM_LABEL_13")] EnumLabel13 = 13,
  1018. [pbr::OriginalName("ENUM_LABEL_14")] EnumLabel14 = 14,
  1019. [pbr::OriginalName("ENUM_LABEL_15")] EnumLabel15 = 15,
  1020. [pbr::OriginalName("ENUM_LABEL_16")] EnumLabel16 = 16,
  1021. [pbr::OriginalName("ENUM_LABEL_17")] EnumLabel17 = 17,
  1022. [pbr::OriginalName("ENUM_LABEL_18")] EnumLabel18 = 18,
  1023. [pbr::OriginalName("ENUM_LABEL_19")] EnumLabel19 = 19,
  1024. [pbr::OriginalName("ENUM_LABEL_20")] EnumLabel20 = 20,
  1025. [pbr::OriginalName("ENUM_LABEL_21")] EnumLabel21 = 21,
  1026. [pbr::OriginalName("ENUM_LABEL_22")] EnumLabel22 = 22,
  1027. [pbr::OriginalName("ENUM_LABEL_23")] EnumLabel23 = 23,
  1028. [pbr::OriginalName("ENUM_LABEL_24")] EnumLabel24 = 24,
  1029. [pbr::OriginalName("ENUM_LABEL_25")] EnumLabel25 = 25,
  1030. [pbr::OriginalName("ENUM_LABEL_26")] EnumLabel26 = 26,
  1031. [pbr::OriginalName("ENUM_LABEL_27")] EnumLabel27 = 27,
  1032. [pbr::OriginalName("ENUM_LABEL_28")] EnumLabel28 = 28,
  1033. [pbr::OriginalName("ENUM_LABEL_29")] EnumLabel29 = 29,
  1034. [pbr::OriginalName("ENUM_LABEL_30")] EnumLabel30 = 30,
  1035. [pbr::OriginalName("ENUM_LABEL_31")] EnumLabel31 = 31,
  1036. [pbr::OriginalName("ENUM_LABEL_32")] EnumLabel32 = 32,
  1037. [pbr::OriginalName("ENUM_LABEL_33")] EnumLabel33 = 33,
  1038. [pbr::OriginalName("ENUM_LABEL_34")] EnumLabel34 = 34,
  1039. [pbr::OriginalName("ENUM_LABEL_35")] EnumLabel35 = 35,
  1040. [pbr::OriginalName("ENUM_LABEL_36")] EnumLabel36 = 36,
  1041. [pbr::OriginalName("ENUM_LABEL_37")] EnumLabel37 = 37,
  1042. [pbr::OriginalName("ENUM_LABEL_38")] EnumLabel38 = 38,
  1043. [pbr::OriginalName("ENUM_LABEL_39")] EnumLabel39 = 39,
  1044. [pbr::OriginalName("ENUM_LABEL_40")] EnumLabel40 = 40,
  1045. [pbr::OriginalName("ENUM_LABEL_41")] EnumLabel41 = 41,
  1046. [pbr::OriginalName("ENUM_LABEL_42")] EnumLabel42 = 42,
  1047. [pbr::OriginalName("ENUM_LABEL_43")] EnumLabel43 = 43,
  1048. [pbr::OriginalName("ENUM_LABEL_44")] EnumLabel44 = 44,
  1049. [pbr::OriginalName("ENUM_LABEL_45")] EnumLabel45 = 45,
  1050. [pbr::OriginalName("ENUM_LABEL_46")] EnumLabel46 = 46,
  1051. [pbr::OriginalName("ENUM_LABEL_47")] EnumLabel47 = 47,
  1052. [pbr::OriginalName("ENUM_LABEL_48")] EnumLabel48 = 48,
  1053. [pbr::OriginalName("ENUM_LABEL_49")] EnumLabel49 = 49,
  1054. [pbr::OriginalName("ENUM_LABEL_50")] EnumLabel50 = 50,
  1055. [pbr::OriginalName("ENUM_LABEL_51")] EnumLabel51 = 51,
  1056. [pbr::OriginalName("ENUM_LABEL_52")] EnumLabel52 = 52,
  1057. [pbr::OriginalName("ENUM_LABEL_53")] EnumLabel53 = 53,
  1058. [pbr::OriginalName("ENUM_LABEL_54")] EnumLabel54 = 54,
  1059. [pbr::OriginalName("ENUM_LABEL_55")] EnumLabel55 = 55,
  1060. [pbr::OriginalName("ENUM_LABEL_56")] EnumLabel56 = 56,
  1061. [pbr::OriginalName("ENUM_LABEL_57")] EnumLabel57 = 57,
  1062. [pbr::OriginalName("ENUM_LABEL_58")] EnumLabel58 = 58,
  1063. [pbr::OriginalName("ENUM_LABEL_59")] EnumLabel59 = 59,
  1064. [pbr::OriginalName("ENUM_LABEL_60")] EnumLabel60 = 60,
  1065. [pbr::OriginalName("ENUM_LABEL_61")] EnumLabel61 = 61,
  1066. [pbr::OriginalName("ENUM_LABEL_62")] EnumLabel62 = 62,
  1067. [pbr::OriginalName("ENUM_LABEL_63")] EnumLabel63 = 63,
  1068. [pbr::OriginalName("ENUM_LABEL_64")] EnumLabel64 = 64,
  1069. [pbr::OriginalName("ENUM_LABEL_65")] EnumLabel65 = 65,
  1070. [pbr::OriginalName("ENUM_LABEL_66")] EnumLabel66 = 66,
  1071. [pbr::OriginalName("ENUM_LABEL_67")] EnumLabel67 = 67,
  1072. [pbr::OriginalName("ENUM_LABEL_68")] EnumLabel68 = 68,
  1073. [pbr::OriginalName("ENUM_LABEL_69")] EnumLabel69 = 69,
  1074. [pbr::OriginalName("ENUM_LABEL_70")] EnumLabel70 = 70,
  1075. [pbr::OriginalName("ENUM_LABEL_71")] EnumLabel71 = 71,
  1076. [pbr::OriginalName("ENUM_LABEL_72")] EnumLabel72 = 72,
  1077. [pbr::OriginalName("ENUM_LABEL_73")] EnumLabel73 = 73,
  1078. [pbr::OriginalName("ENUM_LABEL_74")] EnumLabel74 = 74,
  1079. [pbr::OriginalName("ENUM_LABEL_75")] EnumLabel75 = 75,
  1080. [pbr::OriginalName("ENUM_LABEL_76")] EnumLabel76 = 76,
  1081. [pbr::OriginalName("ENUM_LABEL_77")] EnumLabel77 = 77,
  1082. [pbr::OriginalName("ENUM_LABEL_78")] EnumLabel78 = 78,
  1083. [pbr::OriginalName("ENUM_LABEL_79")] EnumLabel79 = 79,
  1084. [pbr::OriginalName("ENUM_LABEL_80")] EnumLabel80 = 80,
  1085. [pbr::OriginalName("ENUM_LABEL_81")] EnumLabel81 = 81,
  1086. [pbr::OriginalName("ENUM_LABEL_82")] EnumLabel82 = 82,
  1087. [pbr::OriginalName("ENUM_LABEL_83")] EnumLabel83 = 83,
  1088. [pbr::OriginalName("ENUM_LABEL_84")] EnumLabel84 = 84,
  1089. [pbr::OriginalName("ENUM_LABEL_85")] EnumLabel85 = 85,
  1090. [pbr::OriginalName("ENUM_LABEL_86")] EnumLabel86 = 86,
  1091. [pbr::OriginalName("ENUM_LABEL_87")] EnumLabel87 = 87,
  1092. [pbr::OriginalName("ENUM_LABEL_88")] EnumLabel88 = 88,
  1093. [pbr::OriginalName("ENUM_LABEL_89")] EnumLabel89 = 89,
  1094. [pbr::OriginalName("ENUM_LABEL_90")] EnumLabel90 = 90,
  1095. [pbr::OriginalName("ENUM_LABEL_91")] EnumLabel91 = 91,
  1096. [pbr::OriginalName("ENUM_LABEL_92")] EnumLabel92 = 92,
  1097. [pbr::OriginalName("ENUM_LABEL_93")] EnumLabel93 = 93,
  1098. [pbr::OriginalName("ENUM_LABEL_94")] EnumLabel94 = 94,
  1099. [pbr::OriginalName("ENUM_LABEL_95")] EnumLabel95 = 95,
  1100. [pbr::OriginalName("ENUM_LABEL_96")] EnumLabel96 = 96,
  1101. [pbr::OriginalName("ENUM_LABEL_97")] EnumLabel97 = 97,
  1102. [pbr::OriginalName("ENUM_LABEL_98")] EnumLabel98 = 98,
  1103. [pbr::OriginalName("ENUM_LABEL_99")] EnumLabel99 = 99,
  1104. [pbr::OriginalName("ENUM_LABEL_100")] EnumLabel100 = 100,
  1105. }
  1106. #endregion
  1107. #region Messages
  1108. /// <summary>
  1109. /// This proto includes every type of field in both singular and repeated
  1110. /// forms.
  1111. /// </summary>
  1112. public sealed partial class TestAllTypes : pb::IMessage<TestAllTypes> {
  1113. private static readonly pb::MessageParser<TestAllTypes> _parser = new pb::MessageParser<TestAllTypes>(() => new TestAllTypes());
  1114. private pb::UnknownFieldSet _unknownFields;
  1115. private int _hasBits0;
  1116. private int _hasBits1;
  1117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1118. public static pb::MessageParser<TestAllTypes> Parser { get { return _parser; } }
  1119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1120. public static pbr::MessageDescriptor Descriptor {
  1121. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[0]; }
  1122. }
  1123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1124. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1125. get { return Descriptor; }
  1126. }
  1127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1128. public TestAllTypes() {
  1129. OnConstruction();
  1130. }
  1131. partial void OnConstruction();
  1132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1133. public TestAllTypes(TestAllTypes other) : this() {
  1134. _hasBits0 = other._hasBits0;
  1135. _hasBits1 = other._hasBits1;
  1136. optionalInt32_ = other.optionalInt32_;
  1137. optionalInt64_ = other.optionalInt64_;
  1138. optionalUint32_ = other.optionalUint32_;
  1139. optionalUint64_ = other.optionalUint64_;
  1140. optionalSint32_ = other.optionalSint32_;
  1141. optionalSint64_ = other.optionalSint64_;
  1142. optionalFixed32_ = other.optionalFixed32_;
  1143. optionalFixed64_ = other.optionalFixed64_;
  1144. optionalSfixed32_ = other.optionalSfixed32_;
  1145. optionalSfixed64_ = other.optionalSfixed64_;
  1146. optionalFloat_ = other.optionalFloat_;
  1147. optionalDouble_ = other.optionalDouble_;
  1148. optionalBool_ = other.optionalBool_;
  1149. optionalString_ = other.optionalString_;
  1150. optionalBytes_ = other.optionalBytes_;
  1151. optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
  1152. optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
  1153. optionalForeignMessage_ = other.optionalForeignMessage_ != null ? other.optionalForeignMessage_.Clone() : null;
  1154. optionalImportMessage_ = other.optionalImportMessage_ != null ? other.optionalImportMessage_.Clone() : null;
  1155. optionalNestedEnum_ = other.optionalNestedEnum_;
  1156. optionalForeignEnum_ = other.optionalForeignEnum_;
  1157. optionalImportEnum_ = other.optionalImportEnum_;
  1158. optionalStringPiece_ = other.optionalStringPiece_;
  1159. optionalCord_ = other.optionalCord_;
  1160. optionalPublicImportMessage_ = other.optionalPublicImportMessage_ != null ? other.optionalPublicImportMessage_.Clone() : null;
  1161. optionalLazyMessage_ = other.optionalLazyMessage_ != null ? other.optionalLazyMessage_.Clone() : null;
  1162. repeatedInt32_ = other.repeatedInt32_.Clone();
  1163. repeatedInt64_ = other.repeatedInt64_.Clone();
  1164. repeatedUint32_ = other.repeatedUint32_.Clone();
  1165. repeatedUint64_ = other.repeatedUint64_.Clone();
  1166. repeatedSint32_ = other.repeatedSint32_.Clone();
  1167. repeatedSint64_ = other.repeatedSint64_.Clone();
  1168. repeatedFixed32_ = other.repeatedFixed32_.Clone();
  1169. repeatedFixed64_ = other.repeatedFixed64_.Clone();
  1170. repeatedSfixed32_ = other.repeatedSfixed32_.Clone();
  1171. repeatedSfixed64_ = other.repeatedSfixed64_.Clone();
  1172. repeatedFloat_ = other.repeatedFloat_.Clone();
  1173. repeatedDouble_ = other.repeatedDouble_.Clone();
  1174. repeatedBool_ = other.repeatedBool_.Clone();
  1175. repeatedString_ = other.repeatedString_.Clone();
  1176. repeatedBytes_ = other.repeatedBytes_.Clone();
  1177. repeatedGroup_ = other.repeatedGroup_.Clone();
  1178. repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone();
  1179. repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone();
  1180. repeatedImportMessage_ = other.repeatedImportMessage_.Clone();
  1181. repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone();
  1182. repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone();
  1183. repeatedImportEnum_ = other.repeatedImportEnum_.Clone();
  1184. repeatedStringPiece_ = other.repeatedStringPiece_.Clone();
  1185. repeatedCord_ = other.repeatedCord_.Clone();
  1186. repeatedLazyMessage_ = other.repeatedLazyMessage_.Clone();
  1187. defaultInt32_ = other.defaultInt32_;
  1188. defaultInt64_ = other.defaultInt64_;
  1189. defaultUint32_ = other.defaultUint32_;
  1190. defaultUint64_ = other.defaultUint64_;
  1191. defaultSint32_ = other.defaultSint32_;
  1192. defaultSint64_ = other.defaultSint64_;
  1193. defaultFixed32_ = other.defaultFixed32_;
  1194. defaultFixed64_ = other.defaultFixed64_;
  1195. defaultSfixed32_ = other.defaultSfixed32_;
  1196. defaultSfixed64_ = other.defaultSfixed64_;
  1197. defaultFloat_ = other.defaultFloat_;
  1198. defaultDouble_ = other.defaultDouble_;
  1199. defaultBool_ = other.defaultBool_;
  1200. defaultString_ = other.defaultString_;
  1201. defaultBytes_ = other.defaultBytes_;
  1202. defaultNestedEnum_ = other.defaultNestedEnum_;
  1203. defaultForeignEnum_ = other.defaultForeignEnum_;
  1204. defaultImportEnum_ = other.defaultImportEnum_;
  1205. defaultStringPiece_ = other.defaultStringPiece_;
  1206. defaultCord_ = other.defaultCord_;
  1207. switch (other.OneofFieldCase) {
  1208. case OneofFieldOneofCase.OneofUint32:
  1209. OneofUint32 = other.OneofUint32;
  1210. break;
  1211. case OneofFieldOneofCase.OneofNestedMessage:
  1212. OneofNestedMessage = other.OneofNestedMessage.Clone();
  1213. break;
  1214. case OneofFieldOneofCase.OneofString:
  1215. OneofString = other.OneofString;
  1216. break;
  1217. case OneofFieldOneofCase.OneofBytes:
  1218. OneofBytes = other.OneofBytes;
  1219. break;
  1220. }
  1221. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1222. }
  1223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1224. public TestAllTypes Clone() {
  1225. return new TestAllTypes(this);
  1226. }
  1227. /// <summary>Field number for the "optional_int32" field.</summary>
  1228. public const int OptionalInt32FieldNumber = 1;
  1229. private readonly static int OptionalInt32DefaultValue = 0;
  1230. private int optionalInt32_;
  1231. /// <summary>
  1232. /// Singular
  1233. /// </summary>
  1234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1235. public int OptionalInt32 {
  1236. get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
  1237. set {
  1238. _hasBits0 |= 1;
  1239. optionalInt32_ = value;
  1240. }
  1241. }
  1242. /// <summary>Gets whether the "optional_int32" field is set</summary>
  1243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1244. public bool HasOptionalInt32 {
  1245. get { return (_hasBits0 & 1) != 0; }
  1246. }
  1247. /// <summary>Clears the value of the "optional_int32" field</summary>
  1248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1249. public void ClearOptionalInt32() {
  1250. _hasBits0 &= ~1;
  1251. }
  1252. /// <summary>Field number for the "optional_int64" field.</summary>
  1253. public const int OptionalInt64FieldNumber = 2;
  1254. private readonly static long OptionalInt64DefaultValue = 0L;
  1255. private long optionalInt64_;
  1256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1257. public long OptionalInt64 {
  1258. get { if ((_hasBits0 & 2) != 0) { return optionalInt64_; } else { return OptionalInt64DefaultValue; } }
  1259. set {
  1260. _hasBits0 |= 2;
  1261. optionalInt64_ = value;
  1262. }
  1263. }
  1264. /// <summary>Gets whether the "optional_int64" field is set</summary>
  1265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1266. public bool HasOptionalInt64 {
  1267. get { return (_hasBits0 & 2) != 0; }
  1268. }
  1269. /// <summary>Clears the value of the "optional_int64" field</summary>
  1270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1271. public void ClearOptionalInt64() {
  1272. _hasBits0 &= ~2;
  1273. }
  1274. /// <summary>Field number for the "optional_uint32" field.</summary>
  1275. public const int OptionalUint32FieldNumber = 3;
  1276. private readonly static uint OptionalUint32DefaultValue = 0;
  1277. private uint optionalUint32_;
  1278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1279. public uint OptionalUint32 {
  1280. get { if ((_hasBits0 & 4) != 0) { return optionalUint32_; } else { return OptionalUint32DefaultValue; } }
  1281. set {
  1282. _hasBits0 |= 4;
  1283. optionalUint32_ = value;
  1284. }
  1285. }
  1286. /// <summary>Gets whether the "optional_uint32" field is set</summary>
  1287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1288. public bool HasOptionalUint32 {
  1289. get { return (_hasBits0 & 4) != 0; }
  1290. }
  1291. /// <summary>Clears the value of the "optional_uint32" field</summary>
  1292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1293. public void ClearOptionalUint32() {
  1294. _hasBits0 &= ~4;
  1295. }
  1296. /// <summary>Field number for the "optional_uint64" field.</summary>
  1297. public const int OptionalUint64FieldNumber = 4;
  1298. private readonly static ulong OptionalUint64DefaultValue = 0UL;
  1299. private ulong optionalUint64_;
  1300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1301. public ulong OptionalUint64 {
  1302. get { if ((_hasBits0 & 8) != 0) { return optionalUint64_; } else { return OptionalUint64DefaultValue; } }
  1303. set {
  1304. _hasBits0 |= 8;
  1305. optionalUint64_ = value;
  1306. }
  1307. }
  1308. /// <summary>Gets whether the "optional_uint64" field is set</summary>
  1309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1310. public bool HasOptionalUint64 {
  1311. get { return (_hasBits0 & 8) != 0; }
  1312. }
  1313. /// <summary>Clears the value of the "optional_uint64" field</summary>
  1314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1315. public void ClearOptionalUint64() {
  1316. _hasBits0 &= ~8;
  1317. }
  1318. /// <summary>Field number for the "optional_sint32" field.</summary>
  1319. public const int OptionalSint32FieldNumber = 5;
  1320. private readonly static int OptionalSint32DefaultValue = 0;
  1321. private int optionalSint32_;
  1322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1323. public int OptionalSint32 {
  1324. get { if ((_hasBits0 & 16) != 0) { return optionalSint32_; } else { return OptionalSint32DefaultValue; } }
  1325. set {
  1326. _hasBits0 |= 16;
  1327. optionalSint32_ = value;
  1328. }
  1329. }
  1330. /// <summary>Gets whether the "optional_sint32" field is set</summary>
  1331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1332. public bool HasOptionalSint32 {
  1333. get { return (_hasBits0 & 16) != 0; }
  1334. }
  1335. /// <summary>Clears the value of the "optional_sint32" field</summary>
  1336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1337. public void ClearOptionalSint32() {
  1338. _hasBits0 &= ~16;
  1339. }
  1340. /// <summary>Field number for the "optional_sint64" field.</summary>
  1341. public const int OptionalSint64FieldNumber = 6;
  1342. private readonly static long OptionalSint64DefaultValue = 0L;
  1343. private long optionalSint64_;
  1344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1345. public long OptionalSint64 {
  1346. get { if ((_hasBits0 & 32) != 0) { return optionalSint64_; } else { return OptionalSint64DefaultValue; } }
  1347. set {
  1348. _hasBits0 |= 32;
  1349. optionalSint64_ = value;
  1350. }
  1351. }
  1352. /// <summary>Gets whether the "optional_sint64" field is set</summary>
  1353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1354. public bool HasOptionalSint64 {
  1355. get { return (_hasBits0 & 32) != 0; }
  1356. }
  1357. /// <summary>Clears the value of the "optional_sint64" field</summary>
  1358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1359. public void ClearOptionalSint64() {
  1360. _hasBits0 &= ~32;
  1361. }
  1362. /// <summary>Field number for the "optional_fixed32" field.</summary>
  1363. public const int OptionalFixed32FieldNumber = 7;
  1364. private readonly static uint OptionalFixed32DefaultValue = 0;
  1365. private uint optionalFixed32_;
  1366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1367. public uint OptionalFixed32 {
  1368. get { if ((_hasBits0 & 64) != 0) { return optionalFixed32_; } else { return OptionalFixed32DefaultValue; } }
  1369. set {
  1370. _hasBits0 |= 64;
  1371. optionalFixed32_ = value;
  1372. }
  1373. }
  1374. /// <summary>Gets whether the "optional_fixed32" field is set</summary>
  1375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1376. public bool HasOptionalFixed32 {
  1377. get { return (_hasBits0 & 64) != 0; }
  1378. }
  1379. /// <summary>Clears the value of the "optional_fixed32" field</summary>
  1380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1381. public void ClearOptionalFixed32() {
  1382. _hasBits0 &= ~64;
  1383. }
  1384. /// <summary>Field number for the "optional_fixed64" field.</summary>
  1385. public const int OptionalFixed64FieldNumber = 8;
  1386. private readonly static ulong OptionalFixed64DefaultValue = 0UL;
  1387. private ulong optionalFixed64_;
  1388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1389. public ulong OptionalFixed64 {
  1390. get { if ((_hasBits0 & 128) != 0) { return optionalFixed64_; } else { return OptionalFixed64DefaultValue; } }
  1391. set {
  1392. _hasBits0 |= 128;
  1393. optionalFixed64_ = value;
  1394. }
  1395. }
  1396. /// <summary>Gets whether the "optional_fixed64" field is set</summary>
  1397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1398. public bool HasOptionalFixed64 {
  1399. get { return (_hasBits0 & 128) != 0; }
  1400. }
  1401. /// <summary>Clears the value of the "optional_fixed64" field</summary>
  1402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1403. public void ClearOptionalFixed64() {
  1404. _hasBits0 &= ~128;
  1405. }
  1406. /// <summary>Field number for the "optional_sfixed32" field.</summary>
  1407. public const int OptionalSfixed32FieldNumber = 9;
  1408. private readonly static int OptionalSfixed32DefaultValue = 0;
  1409. private int optionalSfixed32_;
  1410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1411. public int OptionalSfixed32 {
  1412. get { if ((_hasBits0 & 256) != 0) { return optionalSfixed32_; } else { return OptionalSfixed32DefaultValue; } }
  1413. set {
  1414. _hasBits0 |= 256;
  1415. optionalSfixed32_ = value;
  1416. }
  1417. }
  1418. /// <summary>Gets whether the "optional_sfixed32" field is set</summary>
  1419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1420. public bool HasOptionalSfixed32 {
  1421. get { return (_hasBits0 & 256) != 0; }
  1422. }
  1423. /// <summary>Clears the value of the "optional_sfixed32" field</summary>
  1424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1425. public void ClearOptionalSfixed32() {
  1426. _hasBits0 &= ~256;
  1427. }
  1428. /// <summary>Field number for the "optional_sfixed64" field.</summary>
  1429. public const int OptionalSfixed64FieldNumber = 10;
  1430. private readonly static long OptionalSfixed64DefaultValue = 0L;
  1431. private long optionalSfixed64_;
  1432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1433. public long OptionalSfixed64 {
  1434. get { if ((_hasBits0 & 512) != 0) { return optionalSfixed64_; } else { return OptionalSfixed64DefaultValue; } }
  1435. set {
  1436. _hasBits0 |= 512;
  1437. optionalSfixed64_ = value;
  1438. }
  1439. }
  1440. /// <summary>Gets whether the "optional_sfixed64" field is set</summary>
  1441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1442. public bool HasOptionalSfixed64 {
  1443. get { return (_hasBits0 & 512) != 0; }
  1444. }
  1445. /// <summary>Clears the value of the "optional_sfixed64" field</summary>
  1446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1447. public void ClearOptionalSfixed64() {
  1448. _hasBits0 &= ~512;
  1449. }
  1450. /// <summary>Field number for the "optional_float" field.</summary>
  1451. public const int OptionalFloatFieldNumber = 11;
  1452. private readonly static float OptionalFloatDefaultValue = 0F;
  1453. private float optionalFloat_;
  1454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1455. public float OptionalFloat {
  1456. get { if ((_hasBits0 & 1024) != 0) { return optionalFloat_; } else { return OptionalFloatDefaultValue; } }
  1457. set {
  1458. _hasBits0 |= 1024;
  1459. optionalFloat_ = value;
  1460. }
  1461. }
  1462. /// <summary>Gets whether the "optional_float" field is set</summary>
  1463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1464. public bool HasOptionalFloat {
  1465. get { return (_hasBits0 & 1024) != 0; }
  1466. }
  1467. /// <summary>Clears the value of the "optional_float" field</summary>
  1468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1469. public void ClearOptionalFloat() {
  1470. _hasBits0 &= ~1024;
  1471. }
  1472. /// <summary>Field number for the "optional_double" field.</summary>
  1473. public const int OptionalDoubleFieldNumber = 12;
  1474. private readonly static double OptionalDoubleDefaultValue = 0D;
  1475. private double optionalDouble_;
  1476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1477. public double OptionalDouble {
  1478. get { if ((_hasBits0 & 2048) != 0) { return optionalDouble_; } else { return OptionalDoubleDefaultValue; } }
  1479. set {
  1480. _hasBits0 |= 2048;
  1481. optionalDouble_ = value;
  1482. }
  1483. }
  1484. /// <summary>Gets whether the "optional_double" field is set</summary>
  1485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1486. public bool HasOptionalDouble {
  1487. get { return (_hasBits0 & 2048) != 0; }
  1488. }
  1489. /// <summary>Clears the value of the "optional_double" field</summary>
  1490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1491. public void ClearOptionalDouble() {
  1492. _hasBits0 &= ~2048;
  1493. }
  1494. /// <summary>Field number for the "optional_bool" field.</summary>
  1495. public const int OptionalBoolFieldNumber = 13;
  1496. private readonly static bool OptionalBoolDefaultValue = false;
  1497. private bool optionalBool_;
  1498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1499. public bool OptionalBool {
  1500. get { if ((_hasBits0 & 4096) != 0) { return optionalBool_; } else { return OptionalBoolDefaultValue; } }
  1501. set {
  1502. _hasBits0 |= 4096;
  1503. optionalBool_ = value;
  1504. }
  1505. }
  1506. /// <summary>Gets whether the "optional_bool" field is set</summary>
  1507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1508. public bool HasOptionalBool {
  1509. get { return (_hasBits0 & 4096) != 0; }
  1510. }
  1511. /// <summary>Clears the value of the "optional_bool" field</summary>
  1512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1513. public void ClearOptionalBool() {
  1514. _hasBits0 &= ~4096;
  1515. }
  1516. /// <summary>Field number for the "optional_string" field.</summary>
  1517. public const int OptionalStringFieldNumber = 14;
  1518. private readonly static string OptionalStringDefaultValue = "";
  1519. private string optionalString_;
  1520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1521. public string OptionalString {
  1522. get { return optionalString_ ?? OptionalStringDefaultValue; }
  1523. set {
  1524. optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1525. }
  1526. }
  1527. /// <summary>Gets whether the "optional_string" field is set</summary>
  1528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1529. public bool HasOptionalString {
  1530. get { return optionalString_ != null; }
  1531. }
  1532. /// <summary>Clears the value of the "optional_string" field</summary>
  1533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1534. public void ClearOptionalString() {
  1535. optionalString_ = null;
  1536. }
  1537. /// <summary>Field number for the "optional_bytes" field.</summary>
  1538. public const int OptionalBytesFieldNumber = 15;
  1539. private readonly static pb::ByteString OptionalBytesDefaultValue = pb::ByteString.Empty;
  1540. private pb::ByteString optionalBytes_;
  1541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1542. public pb::ByteString OptionalBytes {
  1543. get { return optionalBytes_ ?? OptionalBytesDefaultValue; }
  1544. set {
  1545. optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1546. }
  1547. }
  1548. /// <summary>Gets whether the "optional_bytes" field is set</summary>
  1549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1550. public bool HasOptionalBytes {
  1551. get { return optionalBytes_ != null; }
  1552. }
  1553. /// <summary>Clears the value of the "optional_bytes" field</summary>
  1554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1555. public void ClearOptionalBytes() {
  1556. optionalBytes_ = null;
  1557. }
  1558. /// <summary>Field number for the "optionalgroup" field.</summary>
  1559. public const int OptionalGroupFieldNumber = 16;
  1560. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup optionalGroup_;
  1561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1562. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup OptionalGroup {
  1563. get { return optionalGroup_; }
  1564. set {
  1565. optionalGroup_ = value;
  1566. }
  1567. }
  1568. /// <summary>Gets whether the optionalgroup field is set</summary>
  1569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1570. public bool HasOptionalGroup {
  1571. get { return optionalGroup_ != null; }
  1572. }
  1573. /// <summary>Clears the value of the optionalgroup field</summary>
  1574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1575. public void ClearOptionalGroup() {
  1576. optionalGroup_ = null;
  1577. }
  1578. /// <summary>Field number for the "optional_nested_message" field.</summary>
  1579. public const int OptionalNestedMessageFieldNumber = 18;
  1580. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage optionalNestedMessage_;
  1581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1582. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  1583. get { return optionalNestedMessage_; }
  1584. set {
  1585. optionalNestedMessage_ = value;
  1586. }
  1587. }
  1588. /// <summary>Field number for the "optional_foreign_message" field.</summary>
  1589. public const int OptionalForeignMessageFieldNumber = 19;
  1590. private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage optionalForeignMessage_;
  1591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1592. public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage OptionalForeignMessage {
  1593. get { return optionalForeignMessage_; }
  1594. set {
  1595. optionalForeignMessage_ = value;
  1596. }
  1597. }
  1598. /// <summary>Field number for the "optional_import_message" field.</summary>
  1599. public const int OptionalImportMessageFieldNumber = 20;
  1600. private global::Google.Protobuf.TestProtos.Proto2.ImportMessage optionalImportMessage_;
  1601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1602. public global::Google.Protobuf.TestProtos.Proto2.ImportMessage OptionalImportMessage {
  1603. get { return optionalImportMessage_; }
  1604. set {
  1605. optionalImportMessage_ = value;
  1606. }
  1607. }
  1608. /// <summary>Field number for the "optional_nested_enum" field.</summary>
  1609. public const int OptionalNestedEnumFieldNumber = 21;
  1610. private readonly static global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum OptionalNestedEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum.Foo;
  1611. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum optionalNestedEnum_;
  1612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1613. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
  1614. get { if ((_hasBits0 & 8192) != 0) { return optionalNestedEnum_; } else { return OptionalNestedEnumDefaultValue; } }
  1615. set {
  1616. _hasBits0 |= 8192;
  1617. optionalNestedEnum_ = value;
  1618. }
  1619. }
  1620. /// <summary>Gets whether the "optional_nested_enum" field is set</summary>
  1621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1622. public bool HasOptionalNestedEnum {
  1623. get { return (_hasBits0 & 8192) != 0; }
  1624. }
  1625. /// <summary>Clears the value of the "optional_nested_enum" field</summary>
  1626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1627. public void ClearOptionalNestedEnum() {
  1628. _hasBits0 &= ~8192;
  1629. }
  1630. /// <summary>Field number for the "optional_foreign_enum" field.</summary>
  1631. public const int OptionalForeignEnumFieldNumber = 22;
  1632. private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
  1633. private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum optionalForeignEnum_;
  1634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1635. public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnum {
  1636. get { if ((_hasBits0 & 16384) != 0) { return optionalForeignEnum_; } else { return OptionalForeignEnumDefaultValue; } }
  1637. set {
  1638. _hasBits0 |= 16384;
  1639. optionalForeignEnum_ = value;
  1640. }
  1641. }
  1642. /// <summary>Gets whether the "optional_foreign_enum" field is set</summary>
  1643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1644. public bool HasOptionalForeignEnum {
  1645. get { return (_hasBits0 & 16384) != 0; }
  1646. }
  1647. /// <summary>Clears the value of the "optional_foreign_enum" field</summary>
  1648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1649. public void ClearOptionalForeignEnum() {
  1650. _hasBits0 &= ~16384;
  1651. }
  1652. /// <summary>Field number for the "optional_import_enum" field.</summary>
  1653. public const int OptionalImportEnumFieldNumber = 23;
  1654. private readonly static global::Google.Protobuf.TestProtos.Proto2.ImportEnum OptionalImportEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ImportEnum.ImportFoo;
  1655. private global::Google.Protobuf.TestProtos.Proto2.ImportEnum optionalImportEnum_;
  1656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1657. public global::Google.Protobuf.TestProtos.Proto2.ImportEnum OptionalImportEnum {
  1658. get { if ((_hasBits0 & 32768) != 0) { return optionalImportEnum_; } else { return OptionalImportEnumDefaultValue; } }
  1659. set {
  1660. _hasBits0 |= 32768;
  1661. optionalImportEnum_ = value;
  1662. }
  1663. }
  1664. /// <summary>Gets whether the "optional_import_enum" field is set</summary>
  1665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1666. public bool HasOptionalImportEnum {
  1667. get { return (_hasBits0 & 32768) != 0; }
  1668. }
  1669. /// <summary>Clears the value of the "optional_import_enum" field</summary>
  1670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1671. public void ClearOptionalImportEnum() {
  1672. _hasBits0 &= ~32768;
  1673. }
  1674. /// <summary>Field number for the "optional_string_piece" field.</summary>
  1675. public const int OptionalStringPieceFieldNumber = 24;
  1676. private readonly static string OptionalStringPieceDefaultValue = "";
  1677. private string optionalStringPiece_;
  1678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1679. public string OptionalStringPiece {
  1680. get { return optionalStringPiece_ ?? OptionalStringPieceDefaultValue; }
  1681. set {
  1682. optionalStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1683. }
  1684. }
  1685. /// <summary>Gets whether the "optional_string_piece" field is set</summary>
  1686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1687. public bool HasOptionalStringPiece {
  1688. get { return optionalStringPiece_ != null; }
  1689. }
  1690. /// <summary>Clears the value of the "optional_string_piece" field</summary>
  1691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1692. public void ClearOptionalStringPiece() {
  1693. optionalStringPiece_ = null;
  1694. }
  1695. /// <summary>Field number for the "optional_cord" field.</summary>
  1696. public const int OptionalCordFieldNumber = 25;
  1697. private readonly static string OptionalCordDefaultValue = "";
  1698. private string optionalCord_;
  1699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1700. public string OptionalCord {
  1701. get { return optionalCord_ ?? OptionalCordDefaultValue; }
  1702. set {
  1703. optionalCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1704. }
  1705. }
  1706. /// <summary>Gets whether the "optional_cord" field is set</summary>
  1707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1708. public bool HasOptionalCord {
  1709. get { return optionalCord_ != null; }
  1710. }
  1711. /// <summary>Clears the value of the "optional_cord" field</summary>
  1712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1713. public void ClearOptionalCord() {
  1714. optionalCord_ = null;
  1715. }
  1716. /// <summary>Field number for the "optional_public_import_message" field.</summary>
  1717. public const int OptionalPublicImportMessageFieldNumber = 26;
  1718. private global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage optionalPublicImportMessage_;
  1719. /// <summary>
  1720. /// Defined in unittest_import_public.proto
  1721. /// </summary>
  1722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1723. public global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage OptionalPublicImportMessage {
  1724. get { return optionalPublicImportMessage_; }
  1725. set {
  1726. optionalPublicImportMessage_ = value;
  1727. }
  1728. }
  1729. /// <summary>Field number for the "optional_lazy_message" field.</summary>
  1730. public const int OptionalLazyMessageFieldNumber = 27;
  1731. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage optionalLazyMessage_;
  1732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1733. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage OptionalLazyMessage {
  1734. get { return optionalLazyMessage_; }
  1735. set {
  1736. optionalLazyMessage_ = value;
  1737. }
  1738. }
  1739. /// <summary>Field number for the "repeated_int32" field.</summary>
  1740. public const int RepeatedInt32FieldNumber = 31;
  1741. private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
  1742. = pb::FieldCodec.ForInt32(248);
  1743. private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
  1744. /// <summary>
  1745. /// Repeated
  1746. /// </summary>
  1747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1748. public pbc::RepeatedField<int> RepeatedInt32 {
  1749. get { return repeatedInt32_; }
  1750. }
  1751. /// <summary>Field number for the "repeated_int64" field.</summary>
  1752. public const int RepeatedInt64FieldNumber = 32;
  1753. private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
  1754. = pb::FieldCodec.ForInt64(256);
  1755. private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
  1756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1757. public pbc::RepeatedField<long> RepeatedInt64 {
  1758. get { return repeatedInt64_; }
  1759. }
  1760. /// <summary>Field number for the "repeated_uint32" field.</summary>
  1761. public const int RepeatedUint32FieldNumber = 33;
  1762. private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec
  1763. = pb::FieldCodec.ForUInt32(264);
  1764. private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>();
  1765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1766. public pbc::RepeatedField<uint> RepeatedUint32 {
  1767. get { return repeatedUint32_; }
  1768. }
  1769. /// <summary>Field number for the "repeated_uint64" field.</summary>
  1770. public const int RepeatedUint64FieldNumber = 34;
  1771. private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
  1772. = pb::FieldCodec.ForUInt64(272);
  1773. private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
  1774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1775. public pbc::RepeatedField<ulong> RepeatedUint64 {
  1776. get { return repeatedUint64_; }
  1777. }
  1778. /// <summary>Field number for the "repeated_sint32" field.</summary>
  1779. public const int RepeatedSint32FieldNumber = 35;
  1780. private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec
  1781. = pb::FieldCodec.ForSInt32(280);
  1782. private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>();
  1783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1784. public pbc::RepeatedField<int> RepeatedSint32 {
  1785. get { return repeatedSint32_; }
  1786. }
  1787. /// <summary>Field number for the "repeated_sint64" field.</summary>
  1788. public const int RepeatedSint64FieldNumber = 36;
  1789. private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec
  1790. = pb::FieldCodec.ForSInt64(288);
  1791. private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::RepeatedField<long>();
  1792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1793. public pbc::RepeatedField<long> RepeatedSint64 {
  1794. get { return repeatedSint64_; }
  1795. }
  1796. /// <summary>Field number for the "repeated_fixed32" field.</summary>
  1797. public const int RepeatedFixed32FieldNumber = 37;
  1798. private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
  1799. = pb::FieldCodec.ForFixed32(301);
  1800. private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
  1801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1802. public pbc::RepeatedField<uint> RepeatedFixed32 {
  1803. get { return repeatedFixed32_; }
  1804. }
  1805. /// <summary>Field number for the "repeated_fixed64" field.</summary>
  1806. public const int RepeatedFixed64FieldNumber = 38;
  1807. private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
  1808. = pb::FieldCodec.ForFixed64(305);
  1809. private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
  1810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1811. public pbc::RepeatedField<ulong> RepeatedFixed64 {
  1812. get { return repeatedFixed64_; }
  1813. }
  1814. /// <summary>Field number for the "repeated_sfixed32" field.</summary>
  1815. public const int RepeatedSfixed32FieldNumber = 39;
  1816. private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec
  1817. = pb::FieldCodec.ForSFixed32(317);
  1818. private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::RepeatedField<int>();
  1819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1820. public pbc::RepeatedField<int> RepeatedSfixed32 {
  1821. get { return repeatedSfixed32_; }
  1822. }
  1823. /// <summary>Field number for the "repeated_sfixed64" field.</summary>
  1824. public const int RepeatedSfixed64FieldNumber = 40;
  1825. private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_codec
  1826. = pb::FieldCodec.ForSFixed64(321);
  1827. private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::RepeatedField<long>();
  1828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1829. public pbc::RepeatedField<long> RepeatedSfixed64 {
  1830. get { return repeatedSfixed64_; }
  1831. }
  1832. /// <summary>Field number for the "repeated_float" field.</summary>
  1833. public const int RepeatedFloatFieldNumber = 41;
  1834. private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
  1835. = pb::FieldCodec.ForFloat(333);
  1836. private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
  1837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1838. public pbc::RepeatedField<float> RepeatedFloat {
  1839. get { return repeatedFloat_; }
  1840. }
  1841. /// <summary>Field number for the "repeated_double" field.</summary>
  1842. public const int RepeatedDoubleFieldNumber = 42;
  1843. private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_codec
  1844. = pb::FieldCodec.ForDouble(337);
  1845. private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::RepeatedField<double>();
  1846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1847. public pbc::RepeatedField<double> RepeatedDouble {
  1848. get { return repeatedDouble_; }
  1849. }
  1850. /// <summary>Field number for the "repeated_bool" field.</summary>
  1851. public const int RepeatedBoolFieldNumber = 43;
  1852. private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec
  1853. = pb::FieldCodec.ForBool(344);
  1854. private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedField<bool>();
  1855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1856. public pbc::RepeatedField<bool> RepeatedBool {
  1857. get { return repeatedBool_; }
  1858. }
  1859. /// <summary>Field number for the "repeated_string" field.</summary>
  1860. public const int RepeatedStringFieldNumber = 44;
  1861. private static readonly pb::FieldCodec<string> _repeated_repeatedString_codec
  1862. = pb::FieldCodec.ForString(354);
  1863. private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::RepeatedField<string>();
  1864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1865. public pbc::RepeatedField<string> RepeatedString {
  1866. get { return repeatedString_; }
  1867. }
  1868. /// <summary>Field number for the "repeated_bytes" field.</summary>
  1869. public const int RepeatedBytesFieldNumber = 45;
  1870. private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytes_codec
  1871. = pb::FieldCodec.ForBytes(362);
  1872. private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc::RepeatedField<pb::ByteString>();
  1873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1874. public pbc::RepeatedField<pb::ByteString> RepeatedBytes {
  1875. get { return repeatedBytes_; }
  1876. }
  1877. /// <summary>Field number for the "repeatedgroup" field.</summary>
  1878. public const int RepeatedGroupFieldNumber = 46;
  1879. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup> _repeated_repeatedGroup_codec
  1880. = pb::FieldCodec.ForGroup(371, 372, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup.Parser);
  1881. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup>();
  1882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1883. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup> RepeatedGroup {
  1884. get { return repeatedGroup_; }
  1885. }
  1886. /// <summary>Field number for the "repeated_nested_message" field.</summary>
  1887. public const int RepeatedNestedMessageFieldNumber = 48;
  1888. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> _repeated_repeatedNestedMessage_codec
  1889. = pb::FieldCodec.ForMessage(386, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser);
  1890. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>();
  1891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1892. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedNestedMessage {
  1893. get { return repeatedNestedMessage_; }
  1894. }
  1895. /// <summary>Field number for the "repeated_foreign_message" field.</summary>
  1896. public const int RepeatedForeignMessageFieldNumber = 49;
  1897. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> _repeated_repeatedForeignMessage_codec
  1898. = pb::FieldCodec.ForMessage(394, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser);
  1899. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> repeatedForeignMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>();
  1900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1901. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> RepeatedForeignMessage {
  1902. get { return repeatedForeignMessage_; }
  1903. }
  1904. /// <summary>Field number for the "repeated_import_message" field.</summary>
  1905. public const int RepeatedImportMessageFieldNumber = 50;
  1906. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ImportMessage> _repeated_repeatedImportMessage_codec
  1907. = pb::FieldCodec.ForMessage(402, global::Google.Protobuf.TestProtos.Proto2.ImportMessage.Parser);
  1908. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportMessage> repeatedImportMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportMessage>();
  1909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1910. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportMessage> RepeatedImportMessage {
  1911. get { return repeatedImportMessage_; }
  1912. }
  1913. /// <summary>Field number for the "repeated_nested_enum" field.</summary>
  1914. public const int RepeatedNestedEnumFieldNumber = 51;
  1915. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> _repeated_repeatedNestedEnum_codec
  1916. = pb::FieldCodec.ForEnum(408, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) x);
  1917. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum>();
  1918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1919. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> RepeatedNestedEnum {
  1920. get { return repeatedNestedEnum_; }
  1921. }
  1922. /// <summary>Field number for the "repeated_foreign_enum" field.</summary>
  1923. public const int RepeatedForeignEnumFieldNumber = 52;
  1924. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_repeatedForeignEnum_codec
  1925. = pb::FieldCodec.ForEnum(416, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x);
  1926. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>();
  1927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1928. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> RepeatedForeignEnum {
  1929. get { return repeatedForeignEnum_; }
  1930. }
  1931. /// <summary>Field number for the "repeated_import_enum" field.</summary>
  1932. public const int RepeatedImportEnumFieldNumber = 53;
  1933. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ImportEnum> _repeated_repeatedImportEnum_codec
  1934. = pb::FieldCodec.ForEnum(424, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) x);
  1935. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportEnum> repeatedImportEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportEnum>();
  1936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1937. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportEnum> RepeatedImportEnum {
  1938. get { return repeatedImportEnum_; }
  1939. }
  1940. /// <summary>Field number for the "repeated_string_piece" field.</summary>
  1941. public const int RepeatedStringPieceFieldNumber = 54;
  1942. private static readonly pb::FieldCodec<string> _repeated_repeatedStringPiece_codec
  1943. = pb::FieldCodec.ForString(434);
  1944. private readonly pbc::RepeatedField<string> repeatedStringPiece_ = new pbc::RepeatedField<string>();
  1945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1946. public pbc::RepeatedField<string> RepeatedStringPiece {
  1947. get { return repeatedStringPiece_; }
  1948. }
  1949. /// <summary>Field number for the "repeated_cord" field.</summary>
  1950. public const int RepeatedCordFieldNumber = 55;
  1951. private static readonly pb::FieldCodec<string> _repeated_repeatedCord_codec
  1952. = pb::FieldCodec.ForString(442);
  1953. private readonly pbc::RepeatedField<string> repeatedCord_ = new pbc::RepeatedField<string>();
  1954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1955. public pbc::RepeatedField<string> RepeatedCord {
  1956. get { return repeatedCord_; }
  1957. }
  1958. /// <summary>Field number for the "repeated_lazy_message" field.</summary>
  1959. public const int RepeatedLazyMessageFieldNumber = 57;
  1960. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> _repeated_repeatedLazyMessage_codec
  1961. = pb::FieldCodec.ForMessage(458, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser);
  1962. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> repeatedLazyMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>();
  1963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1964. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedLazyMessage {
  1965. get { return repeatedLazyMessage_; }
  1966. }
  1967. /// <summary>Field number for the "default_int32" field.</summary>
  1968. public const int DefaultInt32FieldNumber = 61;
  1969. private readonly static int DefaultInt32DefaultValue = 41;
  1970. private int defaultInt32_;
  1971. /// <summary>
  1972. /// Singular with defaults
  1973. /// </summary>
  1974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1975. public int DefaultInt32 {
  1976. get { if ((_hasBits0 & 65536) != 0) { return defaultInt32_; } else { return DefaultInt32DefaultValue; } }
  1977. set {
  1978. _hasBits0 |= 65536;
  1979. defaultInt32_ = value;
  1980. }
  1981. }
  1982. /// <summary>Gets whether the "default_int32" field is set</summary>
  1983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1984. public bool HasDefaultInt32 {
  1985. get { return (_hasBits0 & 65536) != 0; }
  1986. }
  1987. /// <summary>Clears the value of the "default_int32" field</summary>
  1988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1989. public void ClearDefaultInt32() {
  1990. _hasBits0 &= ~65536;
  1991. }
  1992. /// <summary>Field number for the "default_int64" field.</summary>
  1993. public const int DefaultInt64FieldNumber = 62;
  1994. private readonly static long DefaultInt64DefaultValue = 42L;
  1995. private long defaultInt64_;
  1996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1997. public long DefaultInt64 {
  1998. get { if ((_hasBits0 & 131072) != 0) { return defaultInt64_; } else { return DefaultInt64DefaultValue; } }
  1999. set {
  2000. _hasBits0 |= 131072;
  2001. defaultInt64_ = value;
  2002. }
  2003. }
  2004. /// <summary>Gets whether the "default_int64" field is set</summary>
  2005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2006. public bool HasDefaultInt64 {
  2007. get { return (_hasBits0 & 131072) != 0; }
  2008. }
  2009. /// <summary>Clears the value of the "default_int64" field</summary>
  2010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2011. public void ClearDefaultInt64() {
  2012. _hasBits0 &= ~131072;
  2013. }
  2014. /// <summary>Field number for the "default_uint32" field.</summary>
  2015. public const int DefaultUint32FieldNumber = 63;
  2016. private readonly static uint DefaultUint32DefaultValue = 43;
  2017. private uint defaultUint32_;
  2018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2019. public uint DefaultUint32 {
  2020. get { if ((_hasBits0 & 262144) != 0) { return defaultUint32_; } else { return DefaultUint32DefaultValue; } }
  2021. set {
  2022. _hasBits0 |= 262144;
  2023. defaultUint32_ = value;
  2024. }
  2025. }
  2026. /// <summary>Gets whether the "default_uint32" field is set</summary>
  2027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2028. public bool HasDefaultUint32 {
  2029. get { return (_hasBits0 & 262144) != 0; }
  2030. }
  2031. /// <summary>Clears the value of the "default_uint32" field</summary>
  2032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2033. public void ClearDefaultUint32() {
  2034. _hasBits0 &= ~262144;
  2035. }
  2036. /// <summary>Field number for the "default_uint64" field.</summary>
  2037. public const int DefaultUint64FieldNumber = 64;
  2038. private readonly static ulong DefaultUint64DefaultValue = 44UL;
  2039. private ulong defaultUint64_;
  2040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2041. public ulong DefaultUint64 {
  2042. get { if ((_hasBits0 & 524288) != 0) { return defaultUint64_; } else { return DefaultUint64DefaultValue; } }
  2043. set {
  2044. _hasBits0 |= 524288;
  2045. defaultUint64_ = value;
  2046. }
  2047. }
  2048. /// <summary>Gets whether the "default_uint64" field is set</summary>
  2049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2050. public bool HasDefaultUint64 {
  2051. get { return (_hasBits0 & 524288) != 0; }
  2052. }
  2053. /// <summary>Clears the value of the "default_uint64" field</summary>
  2054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2055. public void ClearDefaultUint64() {
  2056. _hasBits0 &= ~524288;
  2057. }
  2058. /// <summary>Field number for the "default_sint32" field.</summary>
  2059. public const int DefaultSint32FieldNumber = 65;
  2060. private readonly static int DefaultSint32DefaultValue = -45;
  2061. private int defaultSint32_;
  2062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2063. public int DefaultSint32 {
  2064. get { if ((_hasBits0 & 1048576) != 0) { return defaultSint32_; } else { return DefaultSint32DefaultValue; } }
  2065. set {
  2066. _hasBits0 |= 1048576;
  2067. defaultSint32_ = value;
  2068. }
  2069. }
  2070. /// <summary>Gets whether the "default_sint32" field is set</summary>
  2071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2072. public bool HasDefaultSint32 {
  2073. get { return (_hasBits0 & 1048576) != 0; }
  2074. }
  2075. /// <summary>Clears the value of the "default_sint32" field</summary>
  2076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2077. public void ClearDefaultSint32() {
  2078. _hasBits0 &= ~1048576;
  2079. }
  2080. /// <summary>Field number for the "default_sint64" field.</summary>
  2081. public const int DefaultSint64FieldNumber = 66;
  2082. private readonly static long DefaultSint64DefaultValue = 46L;
  2083. private long defaultSint64_;
  2084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2085. public long DefaultSint64 {
  2086. get { if ((_hasBits0 & 2097152) != 0) { return defaultSint64_; } else { return DefaultSint64DefaultValue; } }
  2087. set {
  2088. _hasBits0 |= 2097152;
  2089. defaultSint64_ = value;
  2090. }
  2091. }
  2092. /// <summary>Gets whether the "default_sint64" field is set</summary>
  2093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2094. public bool HasDefaultSint64 {
  2095. get { return (_hasBits0 & 2097152) != 0; }
  2096. }
  2097. /// <summary>Clears the value of the "default_sint64" field</summary>
  2098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2099. public void ClearDefaultSint64() {
  2100. _hasBits0 &= ~2097152;
  2101. }
  2102. /// <summary>Field number for the "default_fixed32" field.</summary>
  2103. public const int DefaultFixed32FieldNumber = 67;
  2104. private readonly static uint DefaultFixed32DefaultValue = 47;
  2105. private uint defaultFixed32_;
  2106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2107. public uint DefaultFixed32 {
  2108. get { if ((_hasBits0 & 4194304) != 0) { return defaultFixed32_; } else { return DefaultFixed32DefaultValue; } }
  2109. set {
  2110. _hasBits0 |= 4194304;
  2111. defaultFixed32_ = value;
  2112. }
  2113. }
  2114. /// <summary>Gets whether the "default_fixed32" field is set</summary>
  2115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2116. public bool HasDefaultFixed32 {
  2117. get { return (_hasBits0 & 4194304) != 0; }
  2118. }
  2119. /// <summary>Clears the value of the "default_fixed32" field</summary>
  2120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2121. public void ClearDefaultFixed32() {
  2122. _hasBits0 &= ~4194304;
  2123. }
  2124. /// <summary>Field number for the "default_fixed64" field.</summary>
  2125. public const int DefaultFixed64FieldNumber = 68;
  2126. private readonly static ulong DefaultFixed64DefaultValue = 48UL;
  2127. private ulong defaultFixed64_;
  2128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2129. public ulong DefaultFixed64 {
  2130. get { if ((_hasBits0 & 8388608) != 0) { return defaultFixed64_; } else { return DefaultFixed64DefaultValue; } }
  2131. set {
  2132. _hasBits0 |= 8388608;
  2133. defaultFixed64_ = value;
  2134. }
  2135. }
  2136. /// <summary>Gets whether the "default_fixed64" field is set</summary>
  2137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2138. public bool HasDefaultFixed64 {
  2139. get { return (_hasBits0 & 8388608) != 0; }
  2140. }
  2141. /// <summary>Clears the value of the "default_fixed64" field</summary>
  2142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2143. public void ClearDefaultFixed64() {
  2144. _hasBits0 &= ~8388608;
  2145. }
  2146. /// <summary>Field number for the "default_sfixed32" field.</summary>
  2147. public const int DefaultSfixed32FieldNumber = 69;
  2148. private readonly static int DefaultSfixed32DefaultValue = 49;
  2149. private int defaultSfixed32_;
  2150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2151. public int DefaultSfixed32 {
  2152. get { if ((_hasBits0 & 16777216) != 0) { return defaultSfixed32_; } else { return DefaultSfixed32DefaultValue; } }
  2153. set {
  2154. _hasBits0 |= 16777216;
  2155. defaultSfixed32_ = value;
  2156. }
  2157. }
  2158. /// <summary>Gets whether the "default_sfixed32" field is set</summary>
  2159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2160. public bool HasDefaultSfixed32 {
  2161. get { return (_hasBits0 & 16777216) != 0; }
  2162. }
  2163. /// <summary>Clears the value of the "default_sfixed32" field</summary>
  2164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2165. public void ClearDefaultSfixed32() {
  2166. _hasBits0 &= ~16777216;
  2167. }
  2168. /// <summary>Field number for the "default_sfixed64" field.</summary>
  2169. public const int DefaultSfixed64FieldNumber = 70;
  2170. private readonly static long DefaultSfixed64DefaultValue = -50L;
  2171. private long defaultSfixed64_;
  2172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2173. public long DefaultSfixed64 {
  2174. get { if ((_hasBits0 & 33554432) != 0) { return defaultSfixed64_; } else { return DefaultSfixed64DefaultValue; } }
  2175. set {
  2176. _hasBits0 |= 33554432;
  2177. defaultSfixed64_ = value;
  2178. }
  2179. }
  2180. /// <summary>Gets whether the "default_sfixed64" field is set</summary>
  2181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2182. public bool HasDefaultSfixed64 {
  2183. get { return (_hasBits0 & 33554432) != 0; }
  2184. }
  2185. /// <summary>Clears the value of the "default_sfixed64" field</summary>
  2186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2187. public void ClearDefaultSfixed64() {
  2188. _hasBits0 &= ~33554432;
  2189. }
  2190. /// <summary>Field number for the "default_float" field.</summary>
  2191. public const int DefaultFloatFieldNumber = 71;
  2192. private readonly static float DefaultFloatDefaultValue = 51.5F;
  2193. private float defaultFloat_;
  2194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2195. public float DefaultFloat {
  2196. get { if ((_hasBits0 & 67108864) != 0) { return defaultFloat_; } else { return DefaultFloatDefaultValue; } }
  2197. set {
  2198. _hasBits0 |= 67108864;
  2199. defaultFloat_ = value;
  2200. }
  2201. }
  2202. /// <summary>Gets whether the "default_float" field is set</summary>
  2203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2204. public bool HasDefaultFloat {
  2205. get { return (_hasBits0 & 67108864) != 0; }
  2206. }
  2207. /// <summary>Clears the value of the "default_float" field</summary>
  2208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2209. public void ClearDefaultFloat() {
  2210. _hasBits0 &= ~67108864;
  2211. }
  2212. /// <summary>Field number for the "default_double" field.</summary>
  2213. public const int DefaultDoubleFieldNumber = 72;
  2214. private readonly static double DefaultDoubleDefaultValue = 52000D;
  2215. private double defaultDouble_;
  2216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2217. public double DefaultDouble {
  2218. get { if ((_hasBits0 & 134217728) != 0) { return defaultDouble_; } else { return DefaultDoubleDefaultValue; } }
  2219. set {
  2220. _hasBits0 |= 134217728;
  2221. defaultDouble_ = value;
  2222. }
  2223. }
  2224. /// <summary>Gets whether the "default_double" field is set</summary>
  2225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2226. public bool HasDefaultDouble {
  2227. get { return (_hasBits0 & 134217728) != 0; }
  2228. }
  2229. /// <summary>Clears the value of the "default_double" field</summary>
  2230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2231. public void ClearDefaultDouble() {
  2232. _hasBits0 &= ~134217728;
  2233. }
  2234. /// <summary>Field number for the "default_bool" field.</summary>
  2235. public const int DefaultBoolFieldNumber = 73;
  2236. private readonly static bool DefaultBoolDefaultValue = true;
  2237. private bool defaultBool_;
  2238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2239. public bool DefaultBool {
  2240. get { if ((_hasBits0 & 268435456) != 0) { return defaultBool_; } else { return DefaultBoolDefaultValue; } }
  2241. set {
  2242. _hasBits0 |= 268435456;
  2243. defaultBool_ = value;
  2244. }
  2245. }
  2246. /// <summary>Gets whether the "default_bool" field is set</summary>
  2247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2248. public bool HasDefaultBool {
  2249. get { return (_hasBits0 & 268435456) != 0; }
  2250. }
  2251. /// <summary>Clears the value of the "default_bool" field</summary>
  2252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2253. public void ClearDefaultBool() {
  2254. _hasBits0 &= ~268435456;
  2255. }
  2256. /// <summary>Field number for the "default_string" field.</summary>
  2257. public const int DefaultStringFieldNumber = 74;
  2258. private readonly static string DefaultStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("aGVsbG8="), 0, 5);
  2259. private string defaultString_;
  2260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2261. public string DefaultString {
  2262. get { return defaultString_ ?? DefaultStringDefaultValue; }
  2263. set {
  2264. defaultString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2265. }
  2266. }
  2267. /// <summary>Gets whether the "default_string" field is set</summary>
  2268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2269. public bool HasDefaultString {
  2270. get { return defaultString_ != null; }
  2271. }
  2272. /// <summary>Clears the value of the "default_string" field</summary>
  2273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2274. public void ClearDefaultString() {
  2275. defaultString_ = null;
  2276. }
  2277. /// <summary>Field number for the "default_bytes" field.</summary>
  2278. public const int DefaultBytesFieldNumber = 75;
  2279. private readonly static pb::ByteString DefaultBytesDefaultValue = pb::ByteString.FromBase64("d29ybGQ=");
  2280. private pb::ByteString defaultBytes_;
  2281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2282. public pb::ByteString DefaultBytes {
  2283. get { return defaultBytes_ ?? DefaultBytesDefaultValue; }
  2284. set {
  2285. defaultBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2286. }
  2287. }
  2288. /// <summary>Gets whether the "default_bytes" field is set</summary>
  2289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2290. public bool HasDefaultBytes {
  2291. get { return defaultBytes_ != null; }
  2292. }
  2293. /// <summary>Clears the value of the "default_bytes" field</summary>
  2294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2295. public void ClearDefaultBytes() {
  2296. defaultBytes_ = null;
  2297. }
  2298. /// <summary>Field number for the "default_nested_enum" field.</summary>
  2299. public const int DefaultNestedEnumFieldNumber = 81;
  2300. private readonly static global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum DefaultNestedEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum.Bar;
  2301. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum defaultNestedEnum_;
  2302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2303. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum DefaultNestedEnum {
  2304. get { if ((_hasBits0 & 536870912) != 0) { return defaultNestedEnum_; } else { return DefaultNestedEnumDefaultValue; } }
  2305. set {
  2306. _hasBits0 |= 536870912;
  2307. defaultNestedEnum_ = value;
  2308. }
  2309. }
  2310. /// <summary>Gets whether the "default_nested_enum" field is set</summary>
  2311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2312. public bool HasDefaultNestedEnum {
  2313. get { return (_hasBits0 & 536870912) != 0; }
  2314. }
  2315. /// <summary>Clears the value of the "default_nested_enum" field</summary>
  2316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2317. public void ClearDefaultNestedEnum() {
  2318. _hasBits0 &= ~536870912;
  2319. }
  2320. /// <summary>Field number for the "default_foreign_enum" field.</summary>
  2321. public const int DefaultForeignEnumFieldNumber = 82;
  2322. private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum DefaultForeignEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignBar;
  2323. private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum defaultForeignEnum_;
  2324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2325. public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum DefaultForeignEnum {
  2326. get { if ((_hasBits0 & 1073741824) != 0) { return defaultForeignEnum_; } else { return DefaultForeignEnumDefaultValue; } }
  2327. set {
  2328. _hasBits0 |= 1073741824;
  2329. defaultForeignEnum_ = value;
  2330. }
  2331. }
  2332. /// <summary>Gets whether the "default_foreign_enum" field is set</summary>
  2333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2334. public bool HasDefaultForeignEnum {
  2335. get { return (_hasBits0 & 1073741824) != 0; }
  2336. }
  2337. /// <summary>Clears the value of the "default_foreign_enum" field</summary>
  2338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2339. public void ClearDefaultForeignEnum() {
  2340. _hasBits0 &= ~1073741824;
  2341. }
  2342. /// <summary>Field number for the "default_import_enum" field.</summary>
  2343. public const int DefaultImportEnumFieldNumber = 83;
  2344. private readonly static global::Google.Protobuf.TestProtos.Proto2.ImportEnum DefaultImportEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ImportEnum.ImportBar;
  2345. private global::Google.Protobuf.TestProtos.Proto2.ImportEnum defaultImportEnum_;
  2346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2347. public global::Google.Protobuf.TestProtos.Proto2.ImportEnum DefaultImportEnum {
  2348. get { if ((_hasBits0 & -2147483648) != 0) { return defaultImportEnum_; } else { return DefaultImportEnumDefaultValue; } }
  2349. set {
  2350. _hasBits0 |= -2147483648;
  2351. defaultImportEnum_ = value;
  2352. }
  2353. }
  2354. /// <summary>Gets whether the "default_import_enum" field is set</summary>
  2355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2356. public bool HasDefaultImportEnum {
  2357. get { return (_hasBits0 & -2147483648) != 0; }
  2358. }
  2359. /// <summary>Clears the value of the "default_import_enum" field</summary>
  2360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2361. public void ClearDefaultImportEnum() {
  2362. _hasBits0 &= ~-2147483648;
  2363. }
  2364. /// <summary>Field number for the "default_string_piece" field.</summary>
  2365. public const int DefaultStringPieceFieldNumber = 84;
  2366. private readonly static string DefaultStringPieceDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("YWJj"), 0, 3);
  2367. private string defaultStringPiece_;
  2368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2369. public string DefaultStringPiece {
  2370. get { return defaultStringPiece_ ?? DefaultStringPieceDefaultValue; }
  2371. set {
  2372. defaultStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2373. }
  2374. }
  2375. /// <summary>Gets whether the "default_string_piece" field is set</summary>
  2376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2377. public bool HasDefaultStringPiece {
  2378. get { return defaultStringPiece_ != null; }
  2379. }
  2380. /// <summary>Clears the value of the "default_string_piece" field</summary>
  2381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2382. public void ClearDefaultStringPiece() {
  2383. defaultStringPiece_ = null;
  2384. }
  2385. /// <summary>Field number for the "default_cord" field.</summary>
  2386. public const int DefaultCordFieldNumber = 85;
  2387. private readonly static string DefaultCordDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("MTIz"), 0, 3);
  2388. private string defaultCord_;
  2389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2390. public string DefaultCord {
  2391. get { return defaultCord_ ?? DefaultCordDefaultValue; }
  2392. set {
  2393. defaultCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2394. }
  2395. }
  2396. /// <summary>Gets whether the "default_cord" field is set</summary>
  2397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2398. public bool HasDefaultCord {
  2399. get { return defaultCord_ != null; }
  2400. }
  2401. /// <summary>Clears the value of the "default_cord" field</summary>
  2402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2403. public void ClearDefaultCord() {
  2404. defaultCord_ = null;
  2405. }
  2406. /// <summary>Field number for the "oneof_uint32" field.</summary>
  2407. public const int OneofUint32FieldNumber = 111;
  2408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2409. public uint OneofUint32 {
  2410. get { return HasOneofUint32 ? (uint) oneofField_ : 0; }
  2411. set {
  2412. oneofField_ = value;
  2413. oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
  2414. }
  2415. }
  2416. /// <summary>Gets whether the "oneof_uint32" field is set</summary>
  2417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2418. public bool HasOneofUint32 {
  2419. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32; }
  2420. }
  2421. /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint32" </summary>
  2422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2423. public void ClearOneofUint32() {
  2424. if (HasOneofUint32) {
  2425. ClearOneofField();
  2426. }
  2427. }
  2428. /// <summary>Field number for the "oneof_nested_message" field.</summary>
  2429. public const int OneofNestedMessageFieldNumber = 112;
  2430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2431. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage OneofNestedMessage {
  2432. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage) oneofField_ : null; }
  2433. set {
  2434. oneofField_ = value;
  2435. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofNestedMessage;
  2436. }
  2437. }
  2438. /// <summary>Field number for the "oneof_string" field.</summary>
  2439. public const int OneofStringFieldNumber = 113;
  2440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2441. public string OneofString {
  2442. get { return HasOneofString ? (string) oneofField_ : ""; }
  2443. set {
  2444. oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2445. oneofFieldCase_ = OneofFieldOneofCase.OneofString;
  2446. }
  2447. }
  2448. /// <summary>Gets whether the "oneof_string" field is set</summary>
  2449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2450. public bool HasOneofString {
  2451. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString; }
  2452. }
  2453. /// <summary> Clears the value of the oneof if it's currently set to "oneof_string" </summary>
  2454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2455. public void ClearOneofString() {
  2456. if (HasOneofString) {
  2457. ClearOneofField();
  2458. }
  2459. }
  2460. /// <summary>Field number for the "oneof_bytes" field.</summary>
  2461. public const int OneofBytesFieldNumber = 114;
  2462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2463. public pb::ByteString OneofBytes {
  2464. get { return HasOneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
  2465. set {
  2466. oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2467. oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
  2468. }
  2469. }
  2470. /// <summary>Gets whether the "oneof_bytes" field is set</summary>
  2471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2472. public bool HasOneofBytes {
  2473. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes; }
  2474. }
  2475. /// <summary> Clears the value of the oneof if it's currently set to "oneof_bytes" </summary>
  2476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2477. public void ClearOneofBytes() {
  2478. if (HasOneofBytes) {
  2479. ClearOneofField();
  2480. }
  2481. }
  2482. private object oneofField_;
  2483. /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
  2484. public enum OneofFieldOneofCase {
  2485. None = 0,
  2486. OneofUint32 = 111,
  2487. OneofNestedMessage = 112,
  2488. OneofString = 113,
  2489. OneofBytes = 114,
  2490. }
  2491. private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
  2492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2493. public OneofFieldOneofCase OneofFieldCase {
  2494. get { return oneofFieldCase_; }
  2495. }
  2496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2497. public void ClearOneofField() {
  2498. oneofFieldCase_ = OneofFieldOneofCase.None;
  2499. oneofField_ = null;
  2500. }
  2501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2502. public override bool Equals(object other) {
  2503. return Equals(other as TestAllTypes);
  2504. }
  2505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2506. public bool Equals(TestAllTypes other) {
  2507. if (ReferenceEquals(other, null)) {
  2508. return false;
  2509. }
  2510. if (ReferenceEquals(other, this)) {
  2511. return true;
  2512. }
  2513. if (OptionalInt32 != other.OptionalInt32) return false;
  2514. if (OptionalInt64 != other.OptionalInt64) return false;
  2515. if (OptionalUint32 != other.OptionalUint32) return false;
  2516. if (OptionalUint64 != other.OptionalUint64) return false;
  2517. if (OptionalSint32 != other.OptionalSint32) return false;
  2518. if (OptionalSint64 != other.OptionalSint64) return false;
  2519. if (OptionalFixed32 != other.OptionalFixed32) return false;
  2520. if (OptionalFixed64 != other.OptionalFixed64) return false;
  2521. if (OptionalSfixed32 != other.OptionalSfixed32) return false;
  2522. if (OptionalSfixed64 != other.OptionalSfixed64) return false;
  2523. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OptionalFloat, other.OptionalFloat)) return false;
  2524. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) return false;
  2525. if (OptionalBool != other.OptionalBool) return false;
  2526. if (OptionalString != other.OptionalString) return false;
  2527. if (OptionalBytes != other.OptionalBytes) return false;
  2528. if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
  2529. if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
  2530. if (!object.Equals(OptionalForeignMessage, other.OptionalForeignMessage)) return false;
  2531. if (!object.Equals(OptionalImportMessage, other.OptionalImportMessage)) return false;
  2532. if (OptionalNestedEnum != other.OptionalNestedEnum) return false;
  2533. if (OptionalForeignEnum != other.OptionalForeignEnum) return false;
  2534. if (OptionalImportEnum != other.OptionalImportEnum) return false;
  2535. if (OptionalStringPiece != other.OptionalStringPiece) return false;
  2536. if (OptionalCord != other.OptionalCord) return false;
  2537. if (!object.Equals(OptionalPublicImportMessage, other.OptionalPublicImportMessage)) return false;
  2538. if (!object.Equals(OptionalLazyMessage, other.OptionalLazyMessage)) return false;
  2539. if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
  2540. if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
  2541. if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false;
  2542. if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
  2543. if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false;
  2544. if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false;
  2545. if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
  2546. if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
  2547. if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false;
  2548. if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false;
  2549. if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
  2550. if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false;
  2551. if(!repeatedBool_.Equals(other.repeatedBool_)) return false;
  2552. if(!repeatedString_.Equals(other.repeatedString_)) return false;
  2553. if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false;
  2554. if(!repeatedGroup_.Equals(other.repeatedGroup_)) return false;
  2555. if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false;
  2556. if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false;
  2557. if(!repeatedImportMessage_.Equals(other.repeatedImportMessage_)) return false;
  2558. if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false;
  2559. if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false;
  2560. if(!repeatedImportEnum_.Equals(other.repeatedImportEnum_)) return false;
  2561. if(!repeatedStringPiece_.Equals(other.repeatedStringPiece_)) return false;
  2562. if(!repeatedCord_.Equals(other.repeatedCord_)) return false;
  2563. if(!repeatedLazyMessage_.Equals(other.repeatedLazyMessage_)) return false;
  2564. if (DefaultInt32 != other.DefaultInt32) return false;
  2565. if (DefaultInt64 != other.DefaultInt64) return false;
  2566. if (DefaultUint32 != other.DefaultUint32) return false;
  2567. if (DefaultUint64 != other.DefaultUint64) return false;
  2568. if (DefaultSint32 != other.DefaultSint32) return false;
  2569. if (DefaultSint64 != other.DefaultSint64) return false;
  2570. if (DefaultFixed32 != other.DefaultFixed32) return false;
  2571. if (DefaultFixed64 != other.DefaultFixed64) return false;
  2572. if (DefaultSfixed32 != other.DefaultSfixed32) return false;
  2573. if (DefaultSfixed64 != other.DefaultSfixed64) return false;
  2574. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DefaultFloat, other.DefaultFloat)) return false;
  2575. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DefaultDouble, other.DefaultDouble)) return false;
  2576. if (DefaultBool != other.DefaultBool) return false;
  2577. if (DefaultString != other.DefaultString) return false;
  2578. if (DefaultBytes != other.DefaultBytes) return false;
  2579. if (DefaultNestedEnum != other.DefaultNestedEnum) return false;
  2580. if (DefaultForeignEnum != other.DefaultForeignEnum) return false;
  2581. if (DefaultImportEnum != other.DefaultImportEnum) return false;
  2582. if (DefaultStringPiece != other.DefaultStringPiece) return false;
  2583. if (DefaultCord != other.DefaultCord) return false;
  2584. if (OneofUint32 != other.OneofUint32) return false;
  2585. if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false;
  2586. if (OneofString != other.OneofString) return false;
  2587. if (OneofBytes != other.OneofBytes) return false;
  2588. if (OneofFieldCase != other.OneofFieldCase) return false;
  2589. return Equals(_unknownFields, other._unknownFields);
  2590. }
  2591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2592. public override int GetHashCode() {
  2593. int hash = 1;
  2594. if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
  2595. if (HasOptionalInt64) hash ^= OptionalInt64.GetHashCode();
  2596. if (HasOptionalUint32) hash ^= OptionalUint32.GetHashCode();
  2597. if (HasOptionalUint64) hash ^= OptionalUint64.GetHashCode();
  2598. if (HasOptionalSint32) hash ^= OptionalSint32.GetHashCode();
  2599. if (HasOptionalSint64) hash ^= OptionalSint64.GetHashCode();
  2600. if (HasOptionalFixed32) hash ^= OptionalFixed32.GetHashCode();
  2601. if (HasOptionalFixed64) hash ^= OptionalFixed64.GetHashCode();
  2602. if (HasOptionalSfixed32) hash ^= OptionalSfixed32.GetHashCode();
  2603. if (HasOptionalSfixed64) hash ^= OptionalSfixed64.GetHashCode();
  2604. if (HasOptionalFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OptionalFloat);
  2605. if (HasOptionalDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OptionalDouble);
  2606. if (HasOptionalBool) hash ^= OptionalBool.GetHashCode();
  2607. if (HasOptionalString) hash ^= OptionalString.GetHashCode();
  2608. if (HasOptionalBytes) hash ^= OptionalBytes.GetHashCode();
  2609. if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
  2610. if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
  2611. if (optionalForeignMessage_ != null) hash ^= OptionalForeignMessage.GetHashCode();
  2612. if (optionalImportMessage_ != null) hash ^= OptionalImportMessage.GetHashCode();
  2613. if (HasOptionalNestedEnum) hash ^= OptionalNestedEnum.GetHashCode();
  2614. if (HasOptionalForeignEnum) hash ^= OptionalForeignEnum.GetHashCode();
  2615. if (HasOptionalImportEnum) hash ^= OptionalImportEnum.GetHashCode();
  2616. if (HasOptionalStringPiece) hash ^= OptionalStringPiece.GetHashCode();
  2617. if (HasOptionalCord) hash ^= OptionalCord.GetHashCode();
  2618. if (optionalPublicImportMessage_ != null) hash ^= OptionalPublicImportMessage.GetHashCode();
  2619. if (optionalLazyMessage_ != null) hash ^= OptionalLazyMessage.GetHashCode();
  2620. hash ^= repeatedInt32_.GetHashCode();
  2621. hash ^= repeatedInt64_.GetHashCode();
  2622. hash ^= repeatedUint32_.GetHashCode();
  2623. hash ^= repeatedUint64_.GetHashCode();
  2624. hash ^= repeatedSint32_.GetHashCode();
  2625. hash ^= repeatedSint64_.GetHashCode();
  2626. hash ^= repeatedFixed32_.GetHashCode();
  2627. hash ^= repeatedFixed64_.GetHashCode();
  2628. hash ^= repeatedSfixed32_.GetHashCode();
  2629. hash ^= repeatedSfixed64_.GetHashCode();
  2630. hash ^= repeatedFloat_.GetHashCode();
  2631. hash ^= repeatedDouble_.GetHashCode();
  2632. hash ^= repeatedBool_.GetHashCode();
  2633. hash ^= repeatedString_.GetHashCode();
  2634. hash ^= repeatedBytes_.GetHashCode();
  2635. hash ^= repeatedGroup_.GetHashCode();
  2636. hash ^= repeatedNestedMessage_.GetHashCode();
  2637. hash ^= repeatedForeignMessage_.GetHashCode();
  2638. hash ^= repeatedImportMessage_.GetHashCode();
  2639. hash ^= repeatedNestedEnum_.GetHashCode();
  2640. hash ^= repeatedForeignEnum_.GetHashCode();
  2641. hash ^= repeatedImportEnum_.GetHashCode();
  2642. hash ^= repeatedStringPiece_.GetHashCode();
  2643. hash ^= repeatedCord_.GetHashCode();
  2644. hash ^= repeatedLazyMessage_.GetHashCode();
  2645. if (HasDefaultInt32) hash ^= DefaultInt32.GetHashCode();
  2646. if (HasDefaultInt64) hash ^= DefaultInt64.GetHashCode();
  2647. if (HasDefaultUint32) hash ^= DefaultUint32.GetHashCode();
  2648. if (HasDefaultUint64) hash ^= DefaultUint64.GetHashCode();
  2649. if (HasDefaultSint32) hash ^= DefaultSint32.GetHashCode();
  2650. if (HasDefaultSint64) hash ^= DefaultSint64.GetHashCode();
  2651. if (HasDefaultFixed32) hash ^= DefaultFixed32.GetHashCode();
  2652. if (HasDefaultFixed64) hash ^= DefaultFixed64.GetHashCode();
  2653. if (HasDefaultSfixed32) hash ^= DefaultSfixed32.GetHashCode();
  2654. if (HasDefaultSfixed64) hash ^= DefaultSfixed64.GetHashCode();
  2655. if (HasDefaultFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DefaultFloat);
  2656. if (HasDefaultDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DefaultDouble);
  2657. if (HasDefaultBool) hash ^= DefaultBool.GetHashCode();
  2658. if (HasDefaultString) hash ^= DefaultString.GetHashCode();
  2659. if (HasDefaultBytes) hash ^= DefaultBytes.GetHashCode();
  2660. if (HasDefaultNestedEnum) hash ^= DefaultNestedEnum.GetHashCode();
  2661. if (HasDefaultForeignEnum) hash ^= DefaultForeignEnum.GetHashCode();
  2662. if (HasDefaultImportEnum) hash ^= DefaultImportEnum.GetHashCode();
  2663. if (HasDefaultStringPiece) hash ^= DefaultStringPiece.GetHashCode();
  2664. if (HasDefaultCord) hash ^= DefaultCord.GetHashCode();
  2665. if (HasOneofUint32) hash ^= OneofUint32.GetHashCode();
  2666. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode();
  2667. if (HasOneofString) hash ^= OneofString.GetHashCode();
  2668. if (HasOneofBytes) hash ^= OneofBytes.GetHashCode();
  2669. hash ^= (int) oneofFieldCase_;
  2670. if (_unknownFields != null) {
  2671. hash ^= _unknownFields.GetHashCode();
  2672. }
  2673. return hash;
  2674. }
  2675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2676. public override string ToString() {
  2677. return pb::JsonFormatter.ToDiagnosticString(this);
  2678. }
  2679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2680. public void WriteTo(pb::CodedOutputStream output) {
  2681. if (HasOptionalInt32) {
  2682. output.WriteRawTag(8);
  2683. output.WriteInt32(OptionalInt32);
  2684. }
  2685. if (HasOptionalInt64) {
  2686. output.WriteRawTag(16);
  2687. output.WriteInt64(OptionalInt64);
  2688. }
  2689. if (HasOptionalUint32) {
  2690. output.WriteRawTag(24);
  2691. output.WriteUInt32(OptionalUint32);
  2692. }
  2693. if (HasOptionalUint64) {
  2694. output.WriteRawTag(32);
  2695. output.WriteUInt64(OptionalUint64);
  2696. }
  2697. if (HasOptionalSint32) {
  2698. output.WriteRawTag(40);
  2699. output.WriteSInt32(OptionalSint32);
  2700. }
  2701. if (HasOptionalSint64) {
  2702. output.WriteRawTag(48);
  2703. output.WriteSInt64(OptionalSint64);
  2704. }
  2705. if (HasOptionalFixed32) {
  2706. output.WriteRawTag(61);
  2707. output.WriteFixed32(OptionalFixed32);
  2708. }
  2709. if (HasOptionalFixed64) {
  2710. output.WriteRawTag(65);
  2711. output.WriteFixed64(OptionalFixed64);
  2712. }
  2713. if (HasOptionalSfixed32) {
  2714. output.WriteRawTag(77);
  2715. output.WriteSFixed32(OptionalSfixed32);
  2716. }
  2717. if (HasOptionalSfixed64) {
  2718. output.WriteRawTag(81);
  2719. output.WriteSFixed64(OptionalSfixed64);
  2720. }
  2721. if (HasOptionalFloat) {
  2722. output.WriteRawTag(93);
  2723. output.WriteFloat(OptionalFloat);
  2724. }
  2725. if (HasOptionalDouble) {
  2726. output.WriteRawTag(97);
  2727. output.WriteDouble(OptionalDouble);
  2728. }
  2729. if (HasOptionalBool) {
  2730. output.WriteRawTag(104);
  2731. output.WriteBool(OptionalBool);
  2732. }
  2733. if (HasOptionalString) {
  2734. output.WriteRawTag(114);
  2735. output.WriteString(OptionalString);
  2736. }
  2737. if (HasOptionalBytes) {
  2738. output.WriteRawTag(122);
  2739. output.WriteBytes(OptionalBytes);
  2740. }
  2741. if (HasOptionalGroup) {
  2742. output.WriteRawTag(131, 1);
  2743. output.WriteGroup(OptionalGroup);
  2744. output.WriteRawTag(132, 1);
  2745. }
  2746. if (optionalNestedMessage_ != null) {
  2747. output.WriteRawTag(146, 1);
  2748. output.WriteMessage(OptionalNestedMessage);
  2749. }
  2750. if (optionalForeignMessage_ != null) {
  2751. output.WriteRawTag(154, 1);
  2752. output.WriteMessage(OptionalForeignMessage);
  2753. }
  2754. if (optionalImportMessage_ != null) {
  2755. output.WriteRawTag(162, 1);
  2756. output.WriteMessage(OptionalImportMessage);
  2757. }
  2758. if (HasOptionalNestedEnum) {
  2759. output.WriteRawTag(168, 1);
  2760. output.WriteEnum((int) OptionalNestedEnum);
  2761. }
  2762. if (HasOptionalForeignEnum) {
  2763. output.WriteRawTag(176, 1);
  2764. output.WriteEnum((int) OptionalForeignEnum);
  2765. }
  2766. if (HasOptionalImportEnum) {
  2767. output.WriteRawTag(184, 1);
  2768. output.WriteEnum((int) OptionalImportEnum);
  2769. }
  2770. if (HasOptionalStringPiece) {
  2771. output.WriteRawTag(194, 1);
  2772. output.WriteString(OptionalStringPiece);
  2773. }
  2774. if (HasOptionalCord) {
  2775. output.WriteRawTag(202, 1);
  2776. output.WriteString(OptionalCord);
  2777. }
  2778. if (optionalPublicImportMessage_ != null) {
  2779. output.WriteRawTag(210, 1);
  2780. output.WriteMessage(OptionalPublicImportMessage);
  2781. }
  2782. if (optionalLazyMessage_ != null) {
  2783. output.WriteRawTag(218, 1);
  2784. output.WriteMessage(OptionalLazyMessage);
  2785. }
  2786. repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
  2787. repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
  2788. repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec);
  2789. repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
  2790. repeatedSint32_.WriteTo(output, _repeated_repeatedSint32_codec);
  2791. repeatedSint64_.WriteTo(output, _repeated_repeatedSint64_codec);
  2792. repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
  2793. repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
  2794. repeatedSfixed32_.WriteTo(output, _repeated_repeatedSfixed32_codec);
  2795. repeatedSfixed64_.WriteTo(output, _repeated_repeatedSfixed64_codec);
  2796. repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
  2797. repeatedDouble_.WriteTo(output, _repeated_repeatedDouble_codec);
  2798. repeatedBool_.WriteTo(output, _repeated_repeatedBool_codec);
  2799. repeatedString_.WriteTo(output, _repeated_repeatedString_codec);
  2800. repeatedBytes_.WriteTo(output, _repeated_repeatedBytes_codec);
  2801. repeatedGroup_.WriteTo(output, _repeated_repeatedGroup_codec);
  2802. repeatedNestedMessage_.WriteTo(output, _repeated_repeatedNestedMessage_codec);
  2803. repeatedForeignMessage_.WriteTo(output, _repeated_repeatedForeignMessage_codec);
  2804. repeatedImportMessage_.WriteTo(output, _repeated_repeatedImportMessage_codec);
  2805. repeatedNestedEnum_.WriteTo(output, _repeated_repeatedNestedEnum_codec);
  2806. repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec);
  2807. repeatedImportEnum_.WriteTo(output, _repeated_repeatedImportEnum_codec);
  2808. repeatedStringPiece_.WriteTo(output, _repeated_repeatedStringPiece_codec);
  2809. repeatedCord_.WriteTo(output, _repeated_repeatedCord_codec);
  2810. repeatedLazyMessage_.WriteTo(output, _repeated_repeatedLazyMessage_codec);
  2811. if (HasDefaultInt32) {
  2812. output.WriteRawTag(232, 3);
  2813. output.WriteInt32(DefaultInt32);
  2814. }
  2815. if (HasDefaultInt64) {
  2816. output.WriteRawTag(240, 3);
  2817. output.WriteInt64(DefaultInt64);
  2818. }
  2819. if (HasDefaultUint32) {
  2820. output.WriteRawTag(248, 3);
  2821. output.WriteUInt32(DefaultUint32);
  2822. }
  2823. if (HasDefaultUint64) {
  2824. output.WriteRawTag(128, 4);
  2825. output.WriteUInt64(DefaultUint64);
  2826. }
  2827. if (HasDefaultSint32) {
  2828. output.WriteRawTag(136, 4);
  2829. output.WriteSInt32(DefaultSint32);
  2830. }
  2831. if (HasDefaultSint64) {
  2832. output.WriteRawTag(144, 4);
  2833. output.WriteSInt64(DefaultSint64);
  2834. }
  2835. if (HasDefaultFixed32) {
  2836. output.WriteRawTag(157, 4);
  2837. output.WriteFixed32(DefaultFixed32);
  2838. }
  2839. if (HasDefaultFixed64) {
  2840. output.WriteRawTag(161, 4);
  2841. output.WriteFixed64(DefaultFixed64);
  2842. }
  2843. if (HasDefaultSfixed32) {
  2844. output.WriteRawTag(173, 4);
  2845. output.WriteSFixed32(DefaultSfixed32);
  2846. }
  2847. if (HasDefaultSfixed64) {
  2848. output.WriteRawTag(177, 4);
  2849. output.WriteSFixed64(DefaultSfixed64);
  2850. }
  2851. if (HasDefaultFloat) {
  2852. output.WriteRawTag(189, 4);
  2853. output.WriteFloat(DefaultFloat);
  2854. }
  2855. if (HasDefaultDouble) {
  2856. output.WriteRawTag(193, 4);
  2857. output.WriteDouble(DefaultDouble);
  2858. }
  2859. if (HasDefaultBool) {
  2860. output.WriteRawTag(200, 4);
  2861. output.WriteBool(DefaultBool);
  2862. }
  2863. if (HasDefaultString) {
  2864. output.WriteRawTag(210, 4);
  2865. output.WriteString(DefaultString);
  2866. }
  2867. if (HasDefaultBytes) {
  2868. output.WriteRawTag(218, 4);
  2869. output.WriteBytes(DefaultBytes);
  2870. }
  2871. if (HasDefaultNestedEnum) {
  2872. output.WriteRawTag(136, 5);
  2873. output.WriteEnum((int) DefaultNestedEnum);
  2874. }
  2875. if (HasDefaultForeignEnum) {
  2876. output.WriteRawTag(144, 5);
  2877. output.WriteEnum((int) DefaultForeignEnum);
  2878. }
  2879. if (HasDefaultImportEnum) {
  2880. output.WriteRawTag(152, 5);
  2881. output.WriteEnum((int) DefaultImportEnum);
  2882. }
  2883. if (HasDefaultStringPiece) {
  2884. output.WriteRawTag(162, 5);
  2885. output.WriteString(DefaultStringPiece);
  2886. }
  2887. if (HasDefaultCord) {
  2888. output.WriteRawTag(170, 5);
  2889. output.WriteString(DefaultCord);
  2890. }
  2891. if (HasOneofUint32) {
  2892. output.WriteRawTag(248, 6);
  2893. output.WriteUInt32(OneofUint32);
  2894. }
  2895. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
  2896. output.WriteRawTag(130, 7);
  2897. output.WriteMessage(OneofNestedMessage);
  2898. }
  2899. if (HasOneofString) {
  2900. output.WriteRawTag(138, 7);
  2901. output.WriteString(OneofString);
  2902. }
  2903. if (HasOneofBytes) {
  2904. output.WriteRawTag(146, 7);
  2905. output.WriteBytes(OneofBytes);
  2906. }
  2907. if (_unknownFields != null) {
  2908. _unknownFields.WriteTo(output);
  2909. }
  2910. }
  2911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2912. public int CalculateSize() {
  2913. int size = 0;
  2914. if (HasOptionalInt32) {
  2915. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
  2916. }
  2917. if (HasOptionalInt64) {
  2918. size += 1 + pb::CodedOutputStream.ComputeInt64Size(OptionalInt64);
  2919. }
  2920. if (HasOptionalUint32) {
  2921. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalUint32);
  2922. }
  2923. if (HasOptionalUint64) {
  2924. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OptionalUint64);
  2925. }
  2926. if (HasOptionalSint32) {
  2927. size += 1 + pb::CodedOutputStream.ComputeSInt32Size(OptionalSint32);
  2928. }
  2929. if (HasOptionalSint64) {
  2930. size += 1 + pb::CodedOutputStream.ComputeSInt64Size(OptionalSint64);
  2931. }
  2932. if (HasOptionalFixed32) {
  2933. size += 1 + 4;
  2934. }
  2935. if (HasOptionalFixed64) {
  2936. size += 1 + 8;
  2937. }
  2938. if (HasOptionalSfixed32) {
  2939. size += 1 + 4;
  2940. }
  2941. if (HasOptionalSfixed64) {
  2942. size += 1 + 8;
  2943. }
  2944. if (HasOptionalFloat) {
  2945. size += 1 + 4;
  2946. }
  2947. if (HasOptionalDouble) {
  2948. size += 1 + 8;
  2949. }
  2950. if (HasOptionalBool) {
  2951. size += 1 + 1;
  2952. }
  2953. if (HasOptionalString) {
  2954. size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
  2955. }
  2956. if (HasOptionalBytes) {
  2957. size += 1 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes);
  2958. }
  2959. if (HasOptionalGroup) {
  2960. size += 4 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
  2961. }
  2962. if (optionalNestedMessage_ != null) {
  2963. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
  2964. }
  2965. if (optionalForeignMessage_ != null) {
  2966. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalForeignMessage);
  2967. }
  2968. if (optionalImportMessage_ != null) {
  2969. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalImportMessage);
  2970. }
  2971. if (HasOptionalNestedEnum) {
  2972. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalNestedEnum);
  2973. }
  2974. if (HasOptionalForeignEnum) {
  2975. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum);
  2976. }
  2977. if (HasOptionalImportEnum) {
  2978. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalImportEnum);
  2979. }
  2980. if (HasOptionalStringPiece) {
  2981. size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalStringPiece);
  2982. }
  2983. if (HasOptionalCord) {
  2984. size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalCord);
  2985. }
  2986. if (optionalPublicImportMessage_ != null) {
  2987. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalPublicImportMessage);
  2988. }
  2989. if (optionalLazyMessage_ != null) {
  2990. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalLazyMessage);
  2991. }
  2992. size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
  2993. size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
  2994. size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec);
  2995. size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
  2996. size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec);
  2997. size += repeatedSint64_.CalculateSize(_repeated_repeatedSint64_codec);
  2998. size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
  2999. size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
  3000. size += repeatedSfixed32_.CalculateSize(_repeated_repeatedSfixed32_codec);
  3001. size += repeatedSfixed64_.CalculateSize(_repeated_repeatedSfixed64_codec);
  3002. size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
  3003. size += repeatedDouble_.CalculateSize(_repeated_repeatedDouble_codec);
  3004. size += repeatedBool_.CalculateSize(_repeated_repeatedBool_codec);
  3005. size += repeatedString_.CalculateSize(_repeated_repeatedString_codec);
  3006. size += repeatedBytes_.CalculateSize(_repeated_repeatedBytes_codec);
  3007. size += repeatedGroup_.CalculateSize(_repeated_repeatedGroup_codec);
  3008. size += repeatedNestedMessage_.CalculateSize(_repeated_repeatedNestedMessage_codec);
  3009. size += repeatedForeignMessage_.CalculateSize(_repeated_repeatedForeignMessage_codec);
  3010. size += repeatedImportMessage_.CalculateSize(_repeated_repeatedImportMessage_codec);
  3011. size += repeatedNestedEnum_.CalculateSize(_repeated_repeatedNestedEnum_codec);
  3012. size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec);
  3013. size += repeatedImportEnum_.CalculateSize(_repeated_repeatedImportEnum_codec);
  3014. size += repeatedStringPiece_.CalculateSize(_repeated_repeatedStringPiece_codec);
  3015. size += repeatedCord_.CalculateSize(_repeated_repeatedCord_codec);
  3016. size += repeatedLazyMessage_.CalculateSize(_repeated_repeatedLazyMessage_codec);
  3017. if (HasDefaultInt32) {
  3018. size += 2 + pb::CodedOutputStream.ComputeInt32Size(DefaultInt32);
  3019. }
  3020. if (HasDefaultInt64) {
  3021. size += 2 + pb::CodedOutputStream.ComputeInt64Size(DefaultInt64);
  3022. }
  3023. if (HasDefaultUint32) {
  3024. size += 2 + pb::CodedOutputStream.ComputeUInt32Size(DefaultUint32);
  3025. }
  3026. if (HasDefaultUint64) {
  3027. size += 2 + pb::CodedOutputStream.ComputeUInt64Size(DefaultUint64);
  3028. }
  3029. if (HasDefaultSint32) {
  3030. size += 2 + pb::CodedOutputStream.ComputeSInt32Size(DefaultSint32);
  3031. }
  3032. if (HasDefaultSint64) {
  3033. size += 2 + pb::CodedOutputStream.ComputeSInt64Size(DefaultSint64);
  3034. }
  3035. if (HasDefaultFixed32) {
  3036. size += 2 + 4;
  3037. }
  3038. if (HasDefaultFixed64) {
  3039. size += 2 + 8;
  3040. }
  3041. if (HasDefaultSfixed32) {
  3042. size += 2 + 4;
  3043. }
  3044. if (HasDefaultSfixed64) {
  3045. size += 2 + 8;
  3046. }
  3047. if (HasDefaultFloat) {
  3048. size += 2 + 4;
  3049. }
  3050. if (HasDefaultDouble) {
  3051. size += 2 + 8;
  3052. }
  3053. if (HasDefaultBool) {
  3054. size += 2 + 1;
  3055. }
  3056. if (HasDefaultString) {
  3057. size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultString);
  3058. }
  3059. if (HasDefaultBytes) {
  3060. size += 2 + pb::CodedOutputStream.ComputeBytesSize(DefaultBytes);
  3061. }
  3062. if (HasDefaultNestedEnum) {
  3063. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DefaultNestedEnum);
  3064. }
  3065. if (HasDefaultForeignEnum) {
  3066. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DefaultForeignEnum);
  3067. }
  3068. if (HasDefaultImportEnum) {
  3069. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DefaultImportEnum);
  3070. }
  3071. if (HasDefaultStringPiece) {
  3072. size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultStringPiece);
  3073. }
  3074. if (HasDefaultCord) {
  3075. size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultCord);
  3076. }
  3077. if (HasOneofUint32) {
  3078. size += 2 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
  3079. }
  3080. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
  3081. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OneofNestedMessage);
  3082. }
  3083. if (HasOneofString) {
  3084. size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString);
  3085. }
  3086. if (HasOneofBytes) {
  3087. size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
  3088. }
  3089. if (_unknownFields != null) {
  3090. size += _unknownFields.CalculateSize();
  3091. }
  3092. return size;
  3093. }
  3094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3095. public void MergeFrom(TestAllTypes other) {
  3096. if (other == null) {
  3097. return;
  3098. }
  3099. if (other.HasOptionalInt32) {
  3100. OptionalInt32 = other.OptionalInt32;
  3101. }
  3102. if (other.HasOptionalInt64) {
  3103. OptionalInt64 = other.OptionalInt64;
  3104. }
  3105. if (other.HasOptionalUint32) {
  3106. OptionalUint32 = other.OptionalUint32;
  3107. }
  3108. if (other.HasOptionalUint64) {
  3109. OptionalUint64 = other.OptionalUint64;
  3110. }
  3111. if (other.HasOptionalSint32) {
  3112. OptionalSint32 = other.OptionalSint32;
  3113. }
  3114. if (other.HasOptionalSint64) {
  3115. OptionalSint64 = other.OptionalSint64;
  3116. }
  3117. if (other.HasOptionalFixed32) {
  3118. OptionalFixed32 = other.OptionalFixed32;
  3119. }
  3120. if (other.HasOptionalFixed64) {
  3121. OptionalFixed64 = other.OptionalFixed64;
  3122. }
  3123. if (other.HasOptionalSfixed32) {
  3124. OptionalSfixed32 = other.OptionalSfixed32;
  3125. }
  3126. if (other.HasOptionalSfixed64) {
  3127. OptionalSfixed64 = other.OptionalSfixed64;
  3128. }
  3129. if (other.HasOptionalFloat) {
  3130. OptionalFloat = other.OptionalFloat;
  3131. }
  3132. if (other.HasOptionalDouble) {
  3133. OptionalDouble = other.OptionalDouble;
  3134. }
  3135. if (other.HasOptionalBool) {
  3136. OptionalBool = other.OptionalBool;
  3137. }
  3138. if (other.HasOptionalString) {
  3139. OptionalString = other.OptionalString;
  3140. }
  3141. if (other.HasOptionalBytes) {
  3142. OptionalBytes = other.OptionalBytes;
  3143. }
  3144. if (other.HasOptionalGroup) {
  3145. if (!HasOptionalGroup) {
  3146. OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup();
  3147. }
  3148. OptionalGroup.MergeFrom(other.OptionalGroup);
  3149. }
  3150. if (other.optionalNestedMessage_ != null) {
  3151. if (optionalNestedMessage_ == null) {
  3152. OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
  3153. }
  3154. OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
  3155. }
  3156. if (other.optionalForeignMessage_ != null) {
  3157. if (optionalForeignMessage_ == null) {
  3158. OptionalForeignMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
  3159. }
  3160. OptionalForeignMessage.MergeFrom(other.OptionalForeignMessage);
  3161. }
  3162. if (other.optionalImportMessage_ != null) {
  3163. if (optionalImportMessage_ == null) {
  3164. OptionalImportMessage = new global::Google.Protobuf.TestProtos.Proto2.ImportMessage();
  3165. }
  3166. OptionalImportMessage.MergeFrom(other.OptionalImportMessage);
  3167. }
  3168. if (other.HasOptionalNestedEnum) {
  3169. OptionalNestedEnum = other.OptionalNestedEnum;
  3170. }
  3171. if (other.HasOptionalForeignEnum) {
  3172. OptionalForeignEnum = other.OptionalForeignEnum;
  3173. }
  3174. if (other.HasOptionalImportEnum) {
  3175. OptionalImportEnum = other.OptionalImportEnum;
  3176. }
  3177. if (other.HasOptionalStringPiece) {
  3178. OptionalStringPiece = other.OptionalStringPiece;
  3179. }
  3180. if (other.HasOptionalCord) {
  3181. OptionalCord = other.OptionalCord;
  3182. }
  3183. if (other.optionalPublicImportMessage_ != null) {
  3184. if (optionalPublicImportMessage_ == null) {
  3185. OptionalPublicImportMessage = new global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage();
  3186. }
  3187. OptionalPublicImportMessage.MergeFrom(other.OptionalPublicImportMessage);
  3188. }
  3189. if (other.optionalLazyMessage_ != null) {
  3190. if (optionalLazyMessage_ == null) {
  3191. OptionalLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
  3192. }
  3193. OptionalLazyMessage.MergeFrom(other.OptionalLazyMessage);
  3194. }
  3195. repeatedInt32_.Add(other.repeatedInt32_);
  3196. repeatedInt64_.Add(other.repeatedInt64_);
  3197. repeatedUint32_.Add(other.repeatedUint32_);
  3198. repeatedUint64_.Add(other.repeatedUint64_);
  3199. repeatedSint32_.Add(other.repeatedSint32_);
  3200. repeatedSint64_.Add(other.repeatedSint64_);
  3201. repeatedFixed32_.Add(other.repeatedFixed32_);
  3202. repeatedFixed64_.Add(other.repeatedFixed64_);
  3203. repeatedSfixed32_.Add(other.repeatedSfixed32_);
  3204. repeatedSfixed64_.Add(other.repeatedSfixed64_);
  3205. repeatedFloat_.Add(other.repeatedFloat_);
  3206. repeatedDouble_.Add(other.repeatedDouble_);
  3207. repeatedBool_.Add(other.repeatedBool_);
  3208. repeatedString_.Add(other.repeatedString_);
  3209. repeatedBytes_.Add(other.repeatedBytes_);
  3210. repeatedGroup_.Add(other.repeatedGroup_);
  3211. repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
  3212. repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
  3213. repeatedImportMessage_.Add(other.repeatedImportMessage_);
  3214. repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
  3215. repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
  3216. repeatedImportEnum_.Add(other.repeatedImportEnum_);
  3217. repeatedStringPiece_.Add(other.repeatedStringPiece_);
  3218. repeatedCord_.Add(other.repeatedCord_);
  3219. repeatedLazyMessage_.Add(other.repeatedLazyMessage_);
  3220. if (other.HasDefaultInt32) {
  3221. DefaultInt32 = other.DefaultInt32;
  3222. }
  3223. if (other.HasDefaultInt64) {
  3224. DefaultInt64 = other.DefaultInt64;
  3225. }
  3226. if (other.HasDefaultUint32) {
  3227. DefaultUint32 = other.DefaultUint32;
  3228. }
  3229. if (other.HasDefaultUint64) {
  3230. DefaultUint64 = other.DefaultUint64;
  3231. }
  3232. if (other.HasDefaultSint32) {
  3233. DefaultSint32 = other.DefaultSint32;
  3234. }
  3235. if (other.HasDefaultSint64) {
  3236. DefaultSint64 = other.DefaultSint64;
  3237. }
  3238. if (other.HasDefaultFixed32) {
  3239. DefaultFixed32 = other.DefaultFixed32;
  3240. }
  3241. if (other.HasDefaultFixed64) {
  3242. DefaultFixed64 = other.DefaultFixed64;
  3243. }
  3244. if (other.HasDefaultSfixed32) {
  3245. DefaultSfixed32 = other.DefaultSfixed32;
  3246. }
  3247. if (other.HasDefaultSfixed64) {
  3248. DefaultSfixed64 = other.DefaultSfixed64;
  3249. }
  3250. if (other.HasDefaultFloat) {
  3251. DefaultFloat = other.DefaultFloat;
  3252. }
  3253. if (other.HasDefaultDouble) {
  3254. DefaultDouble = other.DefaultDouble;
  3255. }
  3256. if (other.HasDefaultBool) {
  3257. DefaultBool = other.DefaultBool;
  3258. }
  3259. if (other.HasDefaultString) {
  3260. DefaultString = other.DefaultString;
  3261. }
  3262. if (other.HasDefaultBytes) {
  3263. DefaultBytes = other.DefaultBytes;
  3264. }
  3265. if (other.HasDefaultNestedEnum) {
  3266. DefaultNestedEnum = other.DefaultNestedEnum;
  3267. }
  3268. if (other.HasDefaultForeignEnum) {
  3269. DefaultForeignEnum = other.DefaultForeignEnum;
  3270. }
  3271. if (other.HasDefaultImportEnum) {
  3272. DefaultImportEnum = other.DefaultImportEnum;
  3273. }
  3274. if (other.HasDefaultStringPiece) {
  3275. DefaultStringPiece = other.DefaultStringPiece;
  3276. }
  3277. if (other.HasDefaultCord) {
  3278. DefaultCord = other.DefaultCord;
  3279. }
  3280. switch (other.OneofFieldCase) {
  3281. case OneofFieldOneofCase.OneofUint32:
  3282. OneofUint32 = other.OneofUint32;
  3283. break;
  3284. case OneofFieldOneofCase.OneofNestedMessage:
  3285. if (OneofNestedMessage == null) {
  3286. OneofNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
  3287. }
  3288. OneofNestedMessage.MergeFrom(other.OneofNestedMessage);
  3289. break;
  3290. case OneofFieldOneofCase.OneofString:
  3291. OneofString = other.OneofString;
  3292. break;
  3293. case OneofFieldOneofCase.OneofBytes:
  3294. OneofBytes = other.OneofBytes;
  3295. break;
  3296. }
  3297. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3298. }
  3299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3300. public void MergeFrom(pb::CodedInputStream input) {
  3301. uint tag;
  3302. while ((tag = input.ReadTag()) != 0) {
  3303. switch(tag) {
  3304. default:
  3305. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3306. break;
  3307. case 8: {
  3308. OptionalInt32 = input.ReadInt32();
  3309. break;
  3310. }
  3311. case 16: {
  3312. OptionalInt64 = input.ReadInt64();
  3313. break;
  3314. }
  3315. case 24: {
  3316. OptionalUint32 = input.ReadUInt32();
  3317. break;
  3318. }
  3319. case 32: {
  3320. OptionalUint64 = input.ReadUInt64();
  3321. break;
  3322. }
  3323. case 40: {
  3324. OptionalSint32 = input.ReadSInt32();
  3325. break;
  3326. }
  3327. case 48: {
  3328. OptionalSint64 = input.ReadSInt64();
  3329. break;
  3330. }
  3331. case 61: {
  3332. OptionalFixed32 = input.ReadFixed32();
  3333. break;
  3334. }
  3335. case 65: {
  3336. OptionalFixed64 = input.ReadFixed64();
  3337. break;
  3338. }
  3339. case 77: {
  3340. OptionalSfixed32 = input.ReadSFixed32();
  3341. break;
  3342. }
  3343. case 81: {
  3344. OptionalSfixed64 = input.ReadSFixed64();
  3345. break;
  3346. }
  3347. case 93: {
  3348. OptionalFloat = input.ReadFloat();
  3349. break;
  3350. }
  3351. case 97: {
  3352. OptionalDouble = input.ReadDouble();
  3353. break;
  3354. }
  3355. case 104: {
  3356. OptionalBool = input.ReadBool();
  3357. break;
  3358. }
  3359. case 114: {
  3360. OptionalString = input.ReadString();
  3361. break;
  3362. }
  3363. case 122: {
  3364. OptionalBytes = input.ReadBytes();
  3365. break;
  3366. }
  3367. case 131: {
  3368. if (!HasOptionalGroup) {
  3369. OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup();
  3370. }
  3371. input.ReadGroup(OptionalGroup);
  3372. break;
  3373. }
  3374. case 146: {
  3375. if (optionalNestedMessage_ == null) {
  3376. OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
  3377. }
  3378. input.ReadMessage(OptionalNestedMessage);
  3379. break;
  3380. }
  3381. case 154: {
  3382. if (optionalForeignMessage_ == null) {
  3383. OptionalForeignMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
  3384. }
  3385. input.ReadMessage(OptionalForeignMessage);
  3386. break;
  3387. }
  3388. case 162: {
  3389. if (optionalImportMessage_ == null) {
  3390. OptionalImportMessage = new global::Google.Protobuf.TestProtos.Proto2.ImportMessage();
  3391. }
  3392. input.ReadMessage(OptionalImportMessage);
  3393. break;
  3394. }
  3395. case 168: {
  3396. OptionalNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum();
  3397. break;
  3398. }
  3399. case 176: {
  3400. OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
  3401. break;
  3402. }
  3403. case 184: {
  3404. OptionalImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum();
  3405. break;
  3406. }
  3407. case 194: {
  3408. OptionalStringPiece = input.ReadString();
  3409. break;
  3410. }
  3411. case 202: {
  3412. OptionalCord = input.ReadString();
  3413. break;
  3414. }
  3415. case 210: {
  3416. if (optionalPublicImportMessage_ == null) {
  3417. OptionalPublicImportMessage = new global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage();
  3418. }
  3419. input.ReadMessage(OptionalPublicImportMessage);
  3420. break;
  3421. }
  3422. case 218: {
  3423. if (optionalLazyMessage_ == null) {
  3424. OptionalLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
  3425. }
  3426. input.ReadMessage(OptionalLazyMessage);
  3427. break;
  3428. }
  3429. case 250:
  3430. case 248: {
  3431. repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
  3432. break;
  3433. }
  3434. case 258:
  3435. case 256: {
  3436. repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
  3437. break;
  3438. }
  3439. case 266:
  3440. case 264: {
  3441. repeatedUint32_.AddEntriesFrom(input, _repeated_repeatedUint32_codec);
  3442. break;
  3443. }
  3444. case 274:
  3445. case 272: {
  3446. repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
  3447. break;
  3448. }
  3449. case 282:
  3450. case 280: {
  3451. repeatedSint32_.AddEntriesFrom(input, _repeated_repeatedSint32_codec);
  3452. break;
  3453. }
  3454. case 290:
  3455. case 288: {
  3456. repeatedSint64_.AddEntriesFrom(input, _repeated_repeatedSint64_codec);
  3457. break;
  3458. }
  3459. case 298:
  3460. case 301: {
  3461. repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
  3462. break;
  3463. }
  3464. case 306:
  3465. case 305: {
  3466. repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
  3467. break;
  3468. }
  3469. case 314:
  3470. case 317: {
  3471. repeatedSfixed32_.AddEntriesFrom(input, _repeated_repeatedSfixed32_codec);
  3472. break;
  3473. }
  3474. case 322:
  3475. case 321: {
  3476. repeatedSfixed64_.AddEntriesFrom(input, _repeated_repeatedSfixed64_codec);
  3477. break;
  3478. }
  3479. case 330:
  3480. case 333: {
  3481. repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
  3482. break;
  3483. }
  3484. case 338:
  3485. case 337: {
  3486. repeatedDouble_.AddEntriesFrom(input, _repeated_repeatedDouble_codec);
  3487. break;
  3488. }
  3489. case 346:
  3490. case 344: {
  3491. repeatedBool_.AddEntriesFrom(input, _repeated_repeatedBool_codec);
  3492. break;
  3493. }
  3494. case 354: {
  3495. repeatedString_.AddEntriesFrom(input, _repeated_repeatedString_codec);
  3496. break;
  3497. }
  3498. case 362: {
  3499. repeatedBytes_.AddEntriesFrom(input, _repeated_repeatedBytes_codec);
  3500. break;
  3501. }
  3502. case 371: {
  3503. repeatedGroup_.AddEntriesFrom(input, _repeated_repeatedGroup_codec);
  3504. break;
  3505. }
  3506. case 386: {
  3507. repeatedNestedMessage_.AddEntriesFrom(input, _repeated_repeatedNestedMessage_codec);
  3508. break;
  3509. }
  3510. case 394: {
  3511. repeatedForeignMessage_.AddEntriesFrom(input, _repeated_repeatedForeignMessage_codec);
  3512. break;
  3513. }
  3514. case 402: {
  3515. repeatedImportMessage_.AddEntriesFrom(input, _repeated_repeatedImportMessage_codec);
  3516. break;
  3517. }
  3518. case 410:
  3519. case 408: {
  3520. repeatedNestedEnum_.AddEntriesFrom(input, _repeated_repeatedNestedEnum_codec);
  3521. break;
  3522. }
  3523. case 418:
  3524. case 416: {
  3525. repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec);
  3526. break;
  3527. }
  3528. case 426:
  3529. case 424: {
  3530. repeatedImportEnum_.AddEntriesFrom(input, _repeated_repeatedImportEnum_codec);
  3531. break;
  3532. }
  3533. case 434: {
  3534. repeatedStringPiece_.AddEntriesFrom(input, _repeated_repeatedStringPiece_codec);
  3535. break;
  3536. }
  3537. case 442: {
  3538. repeatedCord_.AddEntriesFrom(input, _repeated_repeatedCord_codec);
  3539. break;
  3540. }
  3541. case 458: {
  3542. repeatedLazyMessage_.AddEntriesFrom(input, _repeated_repeatedLazyMessage_codec);
  3543. break;
  3544. }
  3545. case 488: {
  3546. DefaultInt32 = input.ReadInt32();
  3547. break;
  3548. }
  3549. case 496: {
  3550. DefaultInt64 = input.ReadInt64();
  3551. break;
  3552. }
  3553. case 504: {
  3554. DefaultUint32 = input.ReadUInt32();
  3555. break;
  3556. }
  3557. case 512: {
  3558. DefaultUint64 = input.ReadUInt64();
  3559. break;
  3560. }
  3561. case 520: {
  3562. DefaultSint32 = input.ReadSInt32();
  3563. break;
  3564. }
  3565. case 528: {
  3566. DefaultSint64 = input.ReadSInt64();
  3567. break;
  3568. }
  3569. case 541: {
  3570. DefaultFixed32 = input.ReadFixed32();
  3571. break;
  3572. }
  3573. case 545: {
  3574. DefaultFixed64 = input.ReadFixed64();
  3575. break;
  3576. }
  3577. case 557: {
  3578. DefaultSfixed32 = input.ReadSFixed32();
  3579. break;
  3580. }
  3581. case 561: {
  3582. DefaultSfixed64 = input.ReadSFixed64();
  3583. break;
  3584. }
  3585. case 573: {
  3586. DefaultFloat = input.ReadFloat();
  3587. break;
  3588. }
  3589. case 577: {
  3590. DefaultDouble = input.ReadDouble();
  3591. break;
  3592. }
  3593. case 584: {
  3594. DefaultBool = input.ReadBool();
  3595. break;
  3596. }
  3597. case 594: {
  3598. DefaultString = input.ReadString();
  3599. break;
  3600. }
  3601. case 602: {
  3602. DefaultBytes = input.ReadBytes();
  3603. break;
  3604. }
  3605. case 648: {
  3606. DefaultNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum();
  3607. break;
  3608. }
  3609. case 656: {
  3610. DefaultForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
  3611. break;
  3612. }
  3613. case 664: {
  3614. DefaultImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum();
  3615. break;
  3616. }
  3617. case 674: {
  3618. DefaultStringPiece = input.ReadString();
  3619. break;
  3620. }
  3621. case 682: {
  3622. DefaultCord = input.ReadString();
  3623. break;
  3624. }
  3625. case 888: {
  3626. OneofUint32 = input.ReadUInt32();
  3627. break;
  3628. }
  3629. case 898: {
  3630. global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
  3631. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
  3632. subBuilder.MergeFrom(OneofNestedMessage);
  3633. }
  3634. input.ReadMessage(subBuilder);
  3635. OneofNestedMessage = subBuilder;
  3636. break;
  3637. }
  3638. case 906: {
  3639. OneofString = input.ReadString();
  3640. break;
  3641. }
  3642. case 914: {
  3643. OneofBytes = input.ReadBytes();
  3644. break;
  3645. }
  3646. }
  3647. }
  3648. }
  3649. #region Nested types
  3650. /// <summary>Container for nested types declared in the TestAllTypes message type.</summary>
  3651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3652. public static partial class Types {
  3653. public enum NestedEnum {
  3654. [pbr::OriginalName("FOO")] Foo = 1,
  3655. [pbr::OriginalName("BAR")] Bar = 2,
  3656. [pbr::OriginalName("BAZ")] Baz = 3,
  3657. /// <summary>
  3658. /// Intentionally negative.
  3659. /// </summary>
  3660. [pbr::OriginalName("NEG")] Neg = -1,
  3661. }
  3662. public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
  3663. private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
  3664. private pb::UnknownFieldSet _unknownFields;
  3665. private int _hasBits0;
  3666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3667. public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
  3668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3669. public static pbr::MessageDescriptor Descriptor {
  3670. get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[0]; }
  3671. }
  3672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3673. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3674. get { return Descriptor; }
  3675. }
  3676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3677. public NestedMessage() {
  3678. OnConstruction();
  3679. }
  3680. partial void OnConstruction();
  3681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3682. public NestedMessage(NestedMessage other) : this() {
  3683. _hasBits0 = other._hasBits0;
  3684. bb_ = other.bb_;
  3685. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3686. }
  3687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3688. public NestedMessage Clone() {
  3689. return new NestedMessage(this);
  3690. }
  3691. /// <summary>Field number for the "bb" field.</summary>
  3692. public const int BbFieldNumber = 1;
  3693. private readonly static int BbDefaultValue = 0;
  3694. private int bb_;
  3695. /// <summary>
  3696. /// The field name "b" fails to compile in proto1 because it conflicts with
  3697. /// a local variable named "b" in one of the generated methods. Doh.
  3698. /// This file needs to compile in proto1 to test backwards-compatibility.
  3699. /// </summary>
  3700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3701. public int Bb {
  3702. get { if ((_hasBits0 & 1) != 0) { return bb_; } else { return BbDefaultValue; } }
  3703. set {
  3704. _hasBits0 |= 1;
  3705. bb_ = value;
  3706. }
  3707. }
  3708. /// <summary>Gets whether the "bb" field is set</summary>
  3709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3710. public bool HasBb {
  3711. get { return (_hasBits0 & 1) != 0; }
  3712. }
  3713. /// <summary>Clears the value of the "bb" field</summary>
  3714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3715. public void ClearBb() {
  3716. _hasBits0 &= ~1;
  3717. }
  3718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3719. public override bool Equals(object other) {
  3720. return Equals(other as NestedMessage);
  3721. }
  3722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3723. public bool Equals(NestedMessage other) {
  3724. if (ReferenceEquals(other, null)) {
  3725. return false;
  3726. }
  3727. if (ReferenceEquals(other, this)) {
  3728. return true;
  3729. }
  3730. if (Bb != other.Bb) return false;
  3731. return Equals(_unknownFields, other._unknownFields);
  3732. }
  3733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3734. public override int GetHashCode() {
  3735. int hash = 1;
  3736. if (HasBb) hash ^= Bb.GetHashCode();
  3737. if (_unknownFields != null) {
  3738. hash ^= _unknownFields.GetHashCode();
  3739. }
  3740. return hash;
  3741. }
  3742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3743. public override string ToString() {
  3744. return pb::JsonFormatter.ToDiagnosticString(this);
  3745. }
  3746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3747. public void WriteTo(pb::CodedOutputStream output) {
  3748. if (HasBb) {
  3749. output.WriteRawTag(8);
  3750. output.WriteInt32(Bb);
  3751. }
  3752. if (_unknownFields != null) {
  3753. _unknownFields.WriteTo(output);
  3754. }
  3755. }
  3756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3757. public int CalculateSize() {
  3758. int size = 0;
  3759. if (HasBb) {
  3760. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb);
  3761. }
  3762. if (_unknownFields != null) {
  3763. size += _unknownFields.CalculateSize();
  3764. }
  3765. return size;
  3766. }
  3767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3768. public void MergeFrom(NestedMessage other) {
  3769. if (other == null) {
  3770. return;
  3771. }
  3772. if (other.HasBb) {
  3773. Bb = other.Bb;
  3774. }
  3775. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3776. }
  3777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3778. public void MergeFrom(pb::CodedInputStream input) {
  3779. uint tag;
  3780. while ((tag = input.ReadTag()) != 0) {
  3781. switch(tag) {
  3782. default:
  3783. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3784. break;
  3785. case 8: {
  3786. Bb = input.ReadInt32();
  3787. break;
  3788. }
  3789. }
  3790. }
  3791. }
  3792. }
  3793. public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup> {
  3794. private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
  3795. private pb::UnknownFieldSet _unknownFields;
  3796. private int _hasBits0;
  3797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3798. public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
  3799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3800. public static pbr::MessageDescriptor Descriptor {
  3801. get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[1]; }
  3802. }
  3803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3804. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3805. get { return Descriptor; }
  3806. }
  3807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3808. public OptionalGroup() {
  3809. OnConstruction();
  3810. }
  3811. partial void OnConstruction();
  3812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3813. public OptionalGroup(OptionalGroup other) : this() {
  3814. _hasBits0 = other._hasBits0;
  3815. a_ = other.a_;
  3816. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3817. }
  3818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3819. public OptionalGroup Clone() {
  3820. return new OptionalGroup(this);
  3821. }
  3822. /// <summary>Field number for the "a" field.</summary>
  3823. public const int AFieldNumber = 17;
  3824. private readonly static int ADefaultValue = 0;
  3825. private int a_;
  3826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3827. public int A {
  3828. get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
  3829. set {
  3830. _hasBits0 |= 1;
  3831. a_ = value;
  3832. }
  3833. }
  3834. /// <summary>Gets whether the "a" field is set</summary>
  3835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3836. public bool HasA {
  3837. get { return (_hasBits0 & 1) != 0; }
  3838. }
  3839. /// <summary>Clears the value of the "a" field</summary>
  3840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3841. public void ClearA() {
  3842. _hasBits0 &= ~1;
  3843. }
  3844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3845. public override bool Equals(object other) {
  3846. return Equals(other as OptionalGroup);
  3847. }
  3848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3849. public bool Equals(OptionalGroup other) {
  3850. if (ReferenceEquals(other, null)) {
  3851. return false;
  3852. }
  3853. if (ReferenceEquals(other, this)) {
  3854. return true;
  3855. }
  3856. if (A != other.A) return false;
  3857. return Equals(_unknownFields, other._unknownFields);
  3858. }
  3859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3860. public override int GetHashCode() {
  3861. int hash = 1;
  3862. if (HasA) hash ^= A.GetHashCode();
  3863. if (_unknownFields != null) {
  3864. hash ^= _unknownFields.GetHashCode();
  3865. }
  3866. return hash;
  3867. }
  3868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3869. public override string ToString() {
  3870. return pb::JsonFormatter.ToDiagnosticString(this);
  3871. }
  3872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3873. public void WriteTo(pb::CodedOutputStream output) {
  3874. if (HasA) {
  3875. output.WriteRawTag(136, 1);
  3876. output.WriteInt32(A);
  3877. }
  3878. if (_unknownFields != null) {
  3879. _unknownFields.WriteTo(output);
  3880. }
  3881. }
  3882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3883. public int CalculateSize() {
  3884. int size = 0;
  3885. if (HasA) {
  3886. size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
  3887. }
  3888. if (_unknownFields != null) {
  3889. size += _unknownFields.CalculateSize();
  3890. }
  3891. return size;
  3892. }
  3893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3894. public void MergeFrom(OptionalGroup other) {
  3895. if (other == null) {
  3896. return;
  3897. }
  3898. if (other.HasA) {
  3899. A = other.A;
  3900. }
  3901. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3902. }
  3903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3904. public void MergeFrom(pb::CodedInputStream input) {
  3905. uint tag;
  3906. while ((tag = input.ReadTag()) != 0) {
  3907. switch(tag) {
  3908. case 132:
  3909. return;
  3910. default:
  3911. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3912. break;
  3913. case 136: {
  3914. A = input.ReadInt32();
  3915. break;
  3916. }
  3917. }
  3918. }
  3919. }
  3920. }
  3921. public sealed partial class RepeatedGroup : pb::IMessage<RepeatedGroup> {
  3922. private static readonly pb::MessageParser<RepeatedGroup> _parser = new pb::MessageParser<RepeatedGroup>(() => new RepeatedGroup());
  3923. private pb::UnknownFieldSet _unknownFields;
  3924. private int _hasBits0;
  3925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3926. public static pb::MessageParser<RepeatedGroup> Parser { get { return _parser; } }
  3927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3928. public static pbr::MessageDescriptor Descriptor {
  3929. get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[2]; }
  3930. }
  3931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3932. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3933. get { return Descriptor; }
  3934. }
  3935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3936. public RepeatedGroup() {
  3937. OnConstruction();
  3938. }
  3939. partial void OnConstruction();
  3940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3941. public RepeatedGroup(RepeatedGroup other) : this() {
  3942. _hasBits0 = other._hasBits0;
  3943. a_ = other.a_;
  3944. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3945. }
  3946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3947. public RepeatedGroup Clone() {
  3948. return new RepeatedGroup(this);
  3949. }
  3950. /// <summary>Field number for the "a" field.</summary>
  3951. public const int AFieldNumber = 47;
  3952. private readonly static int ADefaultValue = 0;
  3953. private int a_;
  3954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3955. public int A {
  3956. get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
  3957. set {
  3958. _hasBits0 |= 1;
  3959. a_ = value;
  3960. }
  3961. }
  3962. /// <summary>Gets whether the "a" field is set</summary>
  3963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3964. public bool HasA {
  3965. get { return (_hasBits0 & 1) != 0; }
  3966. }
  3967. /// <summary>Clears the value of the "a" field</summary>
  3968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3969. public void ClearA() {
  3970. _hasBits0 &= ~1;
  3971. }
  3972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3973. public override bool Equals(object other) {
  3974. return Equals(other as RepeatedGroup);
  3975. }
  3976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3977. public bool Equals(RepeatedGroup other) {
  3978. if (ReferenceEquals(other, null)) {
  3979. return false;
  3980. }
  3981. if (ReferenceEquals(other, this)) {
  3982. return true;
  3983. }
  3984. if (A != other.A) return false;
  3985. return Equals(_unknownFields, other._unknownFields);
  3986. }
  3987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3988. public override int GetHashCode() {
  3989. int hash = 1;
  3990. if (HasA) hash ^= A.GetHashCode();
  3991. if (_unknownFields != null) {
  3992. hash ^= _unknownFields.GetHashCode();
  3993. }
  3994. return hash;
  3995. }
  3996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3997. public override string ToString() {
  3998. return pb::JsonFormatter.ToDiagnosticString(this);
  3999. }
  4000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4001. public void WriteTo(pb::CodedOutputStream output) {
  4002. if (HasA) {
  4003. output.WriteRawTag(248, 2);
  4004. output.WriteInt32(A);
  4005. }
  4006. if (_unknownFields != null) {
  4007. _unknownFields.WriteTo(output);
  4008. }
  4009. }
  4010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4011. public int CalculateSize() {
  4012. int size = 0;
  4013. if (HasA) {
  4014. size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
  4015. }
  4016. if (_unknownFields != null) {
  4017. size += _unknownFields.CalculateSize();
  4018. }
  4019. return size;
  4020. }
  4021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4022. public void MergeFrom(RepeatedGroup other) {
  4023. if (other == null) {
  4024. return;
  4025. }
  4026. if (other.HasA) {
  4027. A = other.A;
  4028. }
  4029. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  4030. }
  4031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4032. public void MergeFrom(pb::CodedInputStream input) {
  4033. uint tag;
  4034. while ((tag = input.ReadTag()) != 0) {
  4035. switch(tag) {
  4036. case 372:
  4037. return;
  4038. default:
  4039. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  4040. break;
  4041. case 376: {
  4042. A = input.ReadInt32();
  4043. break;
  4044. }
  4045. }
  4046. }
  4047. }
  4048. }
  4049. }
  4050. #endregion
  4051. }
  4052. /// <summary>
  4053. /// This proto includes a recursively nested message.
  4054. /// </summary>
  4055. public sealed partial class NestedTestAllTypes : pb::IMessage<NestedTestAllTypes> {
  4056. private static readonly pb::MessageParser<NestedTestAllTypes> _parser = new pb::MessageParser<NestedTestAllTypes>(() => new NestedTestAllTypes());
  4057. private pb::UnknownFieldSet _unknownFields;
  4058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4059. public static pb::MessageParser<NestedTestAllTypes> Parser { get { return _parser; } }
  4060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4061. public static pbr::MessageDescriptor Descriptor {
  4062. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[1]; }
  4063. }
  4064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4065. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4066. get { return Descriptor; }
  4067. }
  4068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4069. public NestedTestAllTypes() {
  4070. OnConstruction();
  4071. }
  4072. partial void OnConstruction();
  4073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4074. public NestedTestAllTypes(NestedTestAllTypes other) : this() {
  4075. child_ = other.child_ != null ? other.child_.Clone() : null;
  4076. payload_ = other.payload_ != null ? other.payload_.Clone() : null;
  4077. repeatedChild_ = other.repeatedChild_.Clone();
  4078. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  4079. }
  4080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4081. public NestedTestAllTypes Clone() {
  4082. return new NestedTestAllTypes(this);
  4083. }
  4084. /// <summary>Field number for the "child" field.</summary>
  4085. public const int ChildFieldNumber = 1;
  4086. private global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes child_;
  4087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4088. public global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes Child {
  4089. get { return child_; }
  4090. set {
  4091. child_ = value;
  4092. }
  4093. }
  4094. /// <summary>Field number for the "payload" field.</summary>
  4095. public const int PayloadFieldNumber = 2;
  4096. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes payload_;
  4097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4098. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes Payload {
  4099. get { return payload_; }
  4100. set {
  4101. payload_ = value;
  4102. }
  4103. }
  4104. /// <summary>Field number for the "repeated_child" field.</summary>
  4105. public const int RepeatedChildFieldNumber = 3;
  4106. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes> _repeated_repeatedChild_codec
  4107. = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes.Parser);
  4108. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes> repeatedChild_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes>();
  4109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4110. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes> RepeatedChild {
  4111. get { return repeatedChild_; }
  4112. }
  4113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4114. public override bool Equals(object other) {
  4115. return Equals(other as NestedTestAllTypes);
  4116. }
  4117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4118. public bool Equals(NestedTestAllTypes other) {
  4119. if (ReferenceEquals(other, null)) {
  4120. return false;
  4121. }
  4122. if (ReferenceEquals(other, this)) {
  4123. return true;
  4124. }
  4125. if (!object.Equals(Child, other.Child)) return false;
  4126. if (!object.Equals(Payload, other.Payload)) return false;
  4127. if(!repeatedChild_.Equals(other.repeatedChild_)) return false;
  4128. return Equals(_unknownFields, other._unknownFields);
  4129. }
  4130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4131. public override int GetHashCode() {
  4132. int hash = 1;
  4133. if (child_ != null) hash ^= Child.GetHashCode();
  4134. if (payload_ != null) hash ^= Payload.GetHashCode();
  4135. hash ^= repeatedChild_.GetHashCode();
  4136. if (_unknownFields != null) {
  4137. hash ^= _unknownFields.GetHashCode();
  4138. }
  4139. return hash;
  4140. }
  4141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4142. public override string ToString() {
  4143. return pb::JsonFormatter.ToDiagnosticString(this);
  4144. }
  4145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4146. public void WriteTo(pb::CodedOutputStream output) {
  4147. if (child_ != null) {
  4148. output.WriteRawTag(10);
  4149. output.WriteMessage(Child);
  4150. }
  4151. if (payload_ != null) {
  4152. output.WriteRawTag(18);
  4153. output.WriteMessage(Payload);
  4154. }
  4155. repeatedChild_.WriteTo(output, _repeated_repeatedChild_codec);
  4156. if (_unknownFields != null) {
  4157. _unknownFields.WriteTo(output);
  4158. }
  4159. }
  4160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4161. public int CalculateSize() {
  4162. int size = 0;
  4163. if (child_ != null) {
  4164. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Child);
  4165. }
  4166. if (payload_ != null) {
  4167. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
  4168. }
  4169. size += repeatedChild_.CalculateSize(_repeated_repeatedChild_codec);
  4170. if (_unknownFields != null) {
  4171. size += _unknownFields.CalculateSize();
  4172. }
  4173. return size;
  4174. }
  4175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4176. public void MergeFrom(NestedTestAllTypes other) {
  4177. if (other == null) {
  4178. return;
  4179. }
  4180. if (other.child_ != null) {
  4181. if (child_ == null) {
  4182. Child = new global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes();
  4183. }
  4184. Child.MergeFrom(other.Child);
  4185. }
  4186. if (other.payload_ != null) {
  4187. if (payload_ == null) {
  4188. Payload = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  4189. }
  4190. Payload.MergeFrom(other.Payload);
  4191. }
  4192. repeatedChild_.Add(other.repeatedChild_);
  4193. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  4194. }
  4195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4196. public void MergeFrom(pb::CodedInputStream input) {
  4197. uint tag;
  4198. while ((tag = input.ReadTag()) != 0) {
  4199. switch(tag) {
  4200. default:
  4201. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  4202. break;
  4203. case 10: {
  4204. if (child_ == null) {
  4205. Child = new global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes();
  4206. }
  4207. input.ReadMessage(Child);
  4208. break;
  4209. }
  4210. case 18: {
  4211. if (payload_ == null) {
  4212. Payload = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  4213. }
  4214. input.ReadMessage(Payload);
  4215. break;
  4216. }
  4217. case 26: {
  4218. repeatedChild_.AddEntriesFrom(input, _repeated_repeatedChild_codec);
  4219. break;
  4220. }
  4221. }
  4222. }
  4223. }
  4224. }
  4225. public sealed partial class TestDeprecatedFields : pb::IMessage<TestDeprecatedFields> {
  4226. private static readonly pb::MessageParser<TestDeprecatedFields> _parser = new pb::MessageParser<TestDeprecatedFields>(() => new TestDeprecatedFields());
  4227. private pb::UnknownFieldSet _unknownFields;
  4228. private int _hasBits0;
  4229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4230. public static pb::MessageParser<TestDeprecatedFields> Parser { get { return _parser; } }
  4231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4232. public static pbr::MessageDescriptor Descriptor {
  4233. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[2]; }
  4234. }
  4235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4236. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4237. get { return Descriptor; }
  4238. }
  4239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4240. public TestDeprecatedFields() {
  4241. OnConstruction();
  4242. }
  4243. partial void OnConstruction();
  4244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4245. public TestDeprecatedFields(TestDeprecatedFields other) : this() {
  4246. _hasBits0 = other._hasBits0;
  4247. deprecatedInt32_ = other.deprecatedInt32_;
  4248. switch (other.OneofFieldsCase) {
  4249. case OneofFieldsOneofCase.DeprecatedInt32InOneof:
  4250. DeprecatedInt32InOneof = other.DeprecatedInt32InOneof;
  4251. break;
  4252. }
  4253. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  4254. }
  4255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4256. public TestDeprecatedFields Clone() {
  4257. return new TestDeprecatedFields(this);
  4258. }
  4259. /// <summary>Field number for the "deprecated_int32" field.</summary>
  4260. public const int DeprecatedInt32FieldNumber = 1;
  4261. private readonly static int DeprecatedInt32DefaultValue = 0;
  4262. private int deprecatedInt32_;
  4263. [global::System.ObsoleteAttribute]
  4264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4265. public int DeprecatedInt32 {
  4266. get { if ((_hasBits0 & 1) != 0) { return deprecatedInt32_; } else { return DeprecatedInt32DefaultValue; } }
  4267. set {
  4268. _hasBits0 |= 1;
  4269. deprecatedInt32_ = value;
  4270. }
  4271. }
  4272. /// <summary>Gets whether the "deprecated_int32" field is set</summary>
  4273. [global::System.ObsoleteAttribute]
  4274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4275. public bool HasDeprecatedInt32 {
  4276. get { return (_hasBits0 & 1) != 0; }
  4277. }
  4278. /// <summary>Clears the value of the "deprecated_int32" field</summary>
  4279. [global::System.ObsoleteAttribute]
  4280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4281. public void ClearDeprecatedInt32() {
  4282. _hasBits0 &= ~1;
  4283. }
  4284. /// <summary>Field number for the "deprecated_int32_in_oneof" field.</summary>
  4285. public const int DeprecatedInt32InOneofFieldNumber = 2;
  4286. [global::System.ObsoleteAttribute]
  4287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4288. public int DeprecatedInt32InOneof {
  4289. get { return HasDeprecatedInt32InOneof ? (int) oneofFields_ : 0; }
  4290. set {
  4291. oneofFields_ = value;
  4292. oneofFieldsCase_ = OneofFieldsOneofCase.DeprecatedInt32InOneof;
  4293. }
  4294. }
  4295. /// <summary>Gets whether the "deprecated_int32_in_oneof" field is set</summary>
  4296. [global::System.ObsoleteAttribute]
  4297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4298. public bool HasDeprecatedInt32InOneof {
  4299. get { return oneofFieldsCase_ == OneofFieldsOneofCase.DeprecatedInt32InOneof; }
  4300. }
  4301. /// <summary> Clears the value of the oneof if it's currently set to "deprecated_int32_in_oneof" </summary>
  4302. [global::System.ObsoleteAttribute]
  4303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4304. public void ClearDeprecatedInt32InOneof() {
  4305. if (HasDeprecatedInt32InOneof) {
  4306. ClearOneofFields();
  4307. }
  4308. }
  4309. private object oneofFields_;
  4310. /// <summary>Enum of possible cases for the "oneof_fields" oneof.</summary>
  4311. public enum OneofFieldsOneofCase {
  4312. None = 0,
  4313. DeprecatedInt32InOneof = 2,
  4314. }
  4315. private OneofFieldsOneofCase oneofFieldsCase_ = OneofFieldsOneofCase.None;
  4316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4317. public OneofFieldsOneofCase OneofFieldsCase {
  4318. get { return oneofFieldsCase_; }
  4319. }
  4320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4321. public void ClearOneofFields() {
  4322. oneofFieldsCase_ = OneofFieldsOneofCase.None;
  4323. oneofFields_ = null;
  4324. }
  4325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4326. public override bool Equals(object other) {
  4327. return Equals(other as TestDeprecatedFields);
  4328. }
  4329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4330. public bool Equals(TestDeprecatedFields other) {
  4331. if (ReferenceEquals(other, null)) {
  4332. return false;
  4333. }
  4334. if (ReferenceEquals(other, this)) {
  4335. return true;
  4336. }
  4337. if (DeprecatedInt32 != other.DeprecatedInt32) return false;
  4338. if (DeprecatedInt32InOneof != other.DeprecatedInt32InOneof) return false;
  4339. if (OneofFieldsCase != other.OneofFieldsCase) return false;
  4340. return Equals(_unknownFields, other._unknownFields);
  4341. }
  4342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4343. public override int GetHashCode() {
  4344. int hash = 1;
  4345. if (HasDeprecatedInt32) hash ^= DeprecatedInt32.GetHashCode();
  4346. if (HasDeprecatedInt32InOneof) hash ^= DeprecatedInt32InOneof.GetHashCode();
  4347. hash ^= (int) oneofFieldsCase_;
  4348. if (_unknownFields != null) {
  4349. hash ^= _unknownFields.GetHashCode();
  4350. }
  4351. return hash;
  4352. }
  4353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4354. public override string ToString() {
  4355. return pb::JsonFormatter.ToDiagnosticString(this);
  4356. }
  4357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4358. public void WriteTo(pb::CodedOutputStream output) {
  4359. if (HasDeprecatedInt32) {
  4360. output.WriteRawTag(8);
  4361. output.WriteInt32(DeprecatedInt32);
  4362. }
  4363. if (HasDeprecatedInt32InOneof) {
  4364. output.WriteRawTag(16);
  4365. output.WriteInt32(DeprecatedInt32InOneof);
  4366. }
  4367. if (_unknownFields != null) {
  4368. _unknownFields.WriteTo(output);
  4369. }
  4370. }
  4371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4372. public int CalculateSize() {
  4373. int size = 0;
  4374. if (HasDeprecatedInt32) {
  4375. size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeprecatedInt32);
  4376. }
  4377. if (HasDeprecatedInt32InOneof) {
  4378. size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeprecatedInt32InOneof);
  4379. }
  4380. if (_unknownFields != null) {
  4381. size += _unknownFields.CalculateSize();
  4382. }
  4383. return size;
  4384. }
  4385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4386. public void MergeFrom(TestDeprecatedFields other) {
  4387. if (other == null) {
  4388. return;
  4389. }
  4390. if (other.HasDeprecatedInt32) {
  4391. DeprecatedInt32 = other.DeprecatedInt32;
  4392. }
  4393. switch (other.OneofFieldsCase) {
  4394. case OneofFieldsOneofCase.DeprecatedInt32InOneof:
  4395. DeprecatedInt32InOneof = other.DeprecatedInt32InOneof;
  4396. break;
  4397. }
  4398. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  4399. }
  4400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4401. public void MergeFrom(pb::CodedInputStream input) {
  4402. uint tag;
  4403. while ((tag = input.ReadTag()) != 0) {
  4404. switch(tag) {
  4405. default:
  4406. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  4407. break;
  4408. case 8: {
  4409. DeprecatedInt32 = input.ReadInt32();
  4410. break;
  4411. }
  4412. case 16: {
  4413. DeprecatedInt32InOneof = input.ReadInt32();
  4414. break;
  4415. }
  4416. }
  4417. }
  4418. }
  4419. }
  4420. [global::System.ObsoleteAttribute]
  4421. public sealed partial class TestDeprecatedMessage : pb::IMessage<TestDeprecatedMessage> {
  4422. private static readonly pb::MessageParser<TestDeprecatedMessage> _parser = new pb::MessageParser<TestDeprecatedMessage>(() => new TestDeprecatedMessage());
  4423. private pb::UnknownFieldSet _unknownFields;
  4424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4425. public static pb::MessageParser<TestDeprecatedMessage> Parser { get { return _parser; } }
  4426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4427. public static pbr::MessageDescriptor Descriptor {
  4428. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[3]; }
  4429. }
  4430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4431. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4432. get { return Descriptor; }
  4433. }
  4434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4435. public TestDeprecatedMessage() {
  4436. OnConstruction();
  4437. }
  4438. partial void OnConstruction();
  4439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4440. public TestDeprecatedMessage(TestDeprecatedMessage other) : this() {
  4441. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  4442. }
  4443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4444. public TestDeprecatedMessage Clone() {
  4445. return new TestDeprecatedMessage(this);
  4446. }
  4447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4448. public override bool Equals(object other) {
  4449. return Equals(other as TestDeprecatedMessage);
  4450. }
  4451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4452. public bool Equals(TestDeprecatedMessage other) {
  4453. if (ReferenceEquals(other, null)) {
  4454. return false;
  4455. }
  4456. if (ReferenceEquals(other, this)) {
  4457. return true;
  4458. }
  4459. return Equals(_unknownFields, other._unknownFields);
  4460. }
  4461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4462. public override int GetHashCode() {
  4463. int hash = 1;
  4464. if (_unknownFields != null) {
  4465. hash ^= _unknownFields.GetHashCode();
  4466. }
  4467. return hash;
  4468. }
  4469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4470. public override string ToString() {
  4471. return pb::JsonFormatter.ToDiagnosticString(this);
  4472. }
  4473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4474. public void WriteTo(pb::CodedOutputStream output) {
  4475. if (_unknownFields != null) {
  4476. _unknownFields.WriteTo(output);
  4477. }
  4478. }
  4479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4480. public int CalculateSize() {
  4481. int size = 0;
  4482. if (_unknownFields != null) {
  4483. size += _unknownFields.CalculateSize();
  4484. }
  4485. return size;
  4486. }
  4487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4488. public void MergeFrom(TestDeprecatedMessage other) {
  4489. if (other == null) {
  4490. return;
  4491. }
  4492. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  4493. }
  4494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4495. public void MergeFrom(pb::CodedInputStream input) {
  4496. uint tag;
  4497. while ((tag = input.ReadTag()) != 0) {
  4498. switch(tag) {
  4499. default:
  4500. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  4501. break;
  4502. }
  4503. }
  4504. }
  4505. }
  4506. /// <summary>
  4507. /// Define these after TestAllTypes to make sure the compiler can handle
  4508. /// that.
  4509. /// </summary>
  4510. public sealed partial class ForeignMessage : pb::IMessage<ForeignMessage> {
  4511. private static readonly pb::MessageParser<ForeignMessage> _parser = new pb::MessageParser<ForeignMessage>(() => new ForeignMessage());
  4512. private pb::UnknownFieldSet _unknownFields;
  4513. private int _hasBits0;
  4514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4515. public static pb::MessageParser<ForeignMessage> Parser { get { return _parser; } }
  4516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4517. public static pbr::MessageDescriptor Descriptor {
  4518. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[4]; }
  4519. }
  4520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4521. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4522. get { return Descriptor; }
  4523. }
  4524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4525. public ForeignMessage() {
  4526. OnConstruction();
  4527. }
  4528. partial void OnConstruction();
  4529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4530. public ForeignMessage(ForeignMessage other) : this() {
  4531. _hasBits0 = other._hasBits0;
  4532. c_ = other.c_;
  4533. d_ = other.d_;
  4534. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  4535. }
  4536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4537. public ForeignMessage Clone() {
  4538. return new ForeignMessage(this);
  4539. }
  4540. /// <summary>Field number for the "c" field.</summary>
  4541. public const int CFieldNumber = 1;
  4542. private readonly static int CDefaultValue = 0;
  4543. private int c_;
  4544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4545. public int C {
  4546. get { if ((_hasBits0 & 1) != 0) { return c_; } else { return CDefaultValue; } }
  4547. set {
  4548. _hasBits0 |= 1;
  4549. c_ = value;
  4550. }
  4551. }
  4552. /// <summary>Gets whether the "c" field is set</summary>
  4553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4554. public bool HasC {
  4555. get { return (_hasBits0 & 1) != 0; }
  4556. }
  4557. /// <summary>Clears the value of the "c" field</summary>
  4558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4559. public void ClearC() {
  4560. _hasBits0 &= ~1;
  4561. }
  4562. /// <summary>Field number for the "d" field.</summary>
  4563. public const int DFieldNumber = 2;
  4564. private readonly static int DDefaultValue = 0;
  4565. private int d_;
  4566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4567. public int D {
  4568. get { if ((_hasBits0 & 2) != 0) { return d_; } else { return DDefaultValue; } }
  4569. set {
  4570. _hasBits0 |= 2;
  4571. d_ = value;
  4572. }
  4573. }
  4574. /// <summary>Gets whether the "d" field is set</summary>
  4575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4576. public bool HasD {
  4577. get { return (_hasBits0 & 2) != 0; }
  4578. }
  4579. /// <summary>Clears the value of the "d" field</summary>
  4580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4581. public void ClearD() {
  4582. _hasBits0 &= ~2;
  4583. }
  4584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4585. public override bool Equals(object other) {
  4586. return Equals(other as ForeignMessage);
  4587. }
  4588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4589. public bool Equals(ForeignMessage other) {
  4590. if (ReferenceEquals(other, null)) {
  4591. return false;
  4592. }
  4593. if (ReferenceEquals(other, this)) {
  4594. return true;
  4595. }
  4596. if (C != other.C) return false;
  4597. if (D != other.D) return false;
  4598. return Equals(_unknownFields, other._unknownFields);
  4599. }
  4600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4601. public override int GetHashCode() {
  4602. int hash = 1;
  4603. if (HasC) hash ^= C.GetHashCode();
  4604. if (HasD) hash ^= D.GetHashCode();
  4605. if (_unknownFields != null) {
  4606. hash ^= _unknownFields.GetHashCode();
  4607. }
  4608. return hash;
  4609. }
  4610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4611. public override string ToString() {
  4612. return pb::JsonFormatter.ToDiagnosticString(this);
  4613. }
  4614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4615. public void WriteTo(pb::CodedOutputStream output) {
  4616. if (HasC) {
  4617. output.WriteRawTag(8);
  4618. output.WriteInt32(C);
  4619. }
  4620. if (HasD) {
  4621. output.WriteRawTag(16);
  4622. output.WriteInt32(D);
  4623. }
  4624. if (_unknownFields != null) {
  4625. _unknownFields.WriteTo(output);
  4626. }
  4627. }
  4628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4629. public int CalculateSize() {
  4630. int size = 0;
  4631. if (HasC) {
  4632. size += 1 + pb::CodedOutputStream.ComputeInt32Size(C);
  4633. }
  4634. if (HasD) {
  4635. size += 1 + pb::CodedOutputStream.ComputeInt32Size(D);
  4636. }
  4637. if (_unknownFields != null) {
  4638. size += _unknownFields.CalculateSize();
  4639. }
  4640. return size;
  4641. }
  4642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4643. public void MergeFrom(ForeignMessage other) {
  4644. if (other == null) {
  4645. return;
  4646. }
  4647. if (other.HasC) {
  4648. C = other.C;
  4649. }
  4650. if (other.HasD) {
  4651. D = other.D;
  4652. }
  4653. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  4654. }
  4655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4656. public void MergeFrom(pb::CodedInputStream input) {
  4657. uint tag;
  4658. while ((tag = input.ReadTag()) != 0) {
  4659. switch(tag) {
  4660. default:
  4661. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  4662. break;
  4663. case 8: {
  4664. C = input.ReadInt32();
  4665. break;
  4666. }
  4667. case 16: {
  4668. D = input.ReadInt32();
  4669. break;
  4670. }
  4671. }
  4672. }
  4673. }
  4674. }
  4675. public sealed partial class TestReservedFields : pb::IMessage<TestReservedFields> {
  4676. private static readonly pb::MessageParser<TestReservedFields> _parser = new pb::MessageParser<TestReservedFields>(() => new TestReservedFields());
  4677. private pb::UnknownFieldSet _unknownFields;
  4678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4679. public static pb::MessageParser<TestReservedFields> Parser { get { return _parser; } }
  4680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4681. public static pbr::MessageDescriptor Descriptor {
  4682. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[5]; }
  4683. }
  4684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4685. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4686. get { return Descriptor; }
  4687. }
  4688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4689. public TestReservedFields() {
  4690. OnConstruction();
  4691. }
  4692. partial void OnConstruction();
  4693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4694. public TestReservedFields(TestReservedFields other) : this() {
  4695. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  4696. }
  4697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4698. public TestReservedFields Clone() {
  4699. return new TestReservedFields(this);
  4700. }
  4701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4702. public override bool Equals(object other) {
  4703. return Equals(other as TestReservedFields);
  4704. }
  4705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4706. public bool Equals(TestReservedFields other) {
  4707. if (ReferenceEquals(other, null)) {
  4708. return false;
  4709. }
  4710. if (ReferenceEquals(other, this)) {
  4711. return true;
  4712. }
  4713. return Equals(_unknownFields, other._unknownFields);
  4714. }
  4715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4716. public override int GetHashCode() {
  4717. int hash = 1;
  4718. if (_unknownFields != null) {
  4719. hash ^= _unknownFields.GetHashCode();
  4720. }
  4721. return hash;
  4722. }
  4723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4724. public override string ToString() {
  4725. return pb::JsonFormatter.ToDiagnosticString(this);
  4726. }
  4727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4728. public void WriteTo(pb::CodedOutputStream output) {
  4729. if (_unknownFields != null) {
  4730. _unknownFields.WriteTo(output);
  4731. }
  4732. }
  4733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4734. public int CalculateSize() {
  4735. int size = 0;
  4736. if (_unknownFields != null) {
  4737. size += _unknownFields.CalculateSize();
  4738. }
  4739. return size;
  4740. }
  4741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4742. public void MergeFrom(TestReservedFields other) {
  4743. if (other == null) {
  4744. return;
  4745. }
  4746. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  4747. }
  4748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4749. public void MergeFrom(pb::CodedInputStream input) {
  4750. uint tag;
  4751. while ((tag = input.ReadTag()) != 0) {
  4752. switch(tag) {
  4753. default:
  4754. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  4755. break;
  4756. }
  4757. }
  4758. }
  4759. }
  4760. public sealed partial class TestAllExtensions : pb::IExtendableMessage<TestAllExtensions> {
  4761. private static readonly pb::MessageParser<TestAllExtensions> _parser = new pb::MessageParser<TestAllExtensions>(() => new TestAllExtensions());
  4762. private pb::UnknownFieldSet _unknownFields;
  4763. private pb::ExtensionSet<TestAllExtensions> _extensions;
  4764. private pb::ExtensionSet<TestAllExtensions> _Extensions { get { return _extensions; } }
  4765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4766. public static pb::MessageParser<TestAllExtensions> Parser { get { return _parser; } }
  4767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4768. public static pbr::MessageDescriptor Descriptor {
  4769. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[6]; }
  4770. }
  4771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4772. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4773. get { return Descriptor; }
  4774. }
  4775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4776. public TestAllExtensions() {
  4777. OnConstruction();
  4778. }
  4779. partial void OnConstruction();
  4780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4781. public TestAllExtensions(TestAllExtensions other) : this() {
  4782. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  4783. _extensions = pb::ExtensionSet.Clone(other._extensions);
  4784. }
  4785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4786. public TestAllExtensions Clone() {
  4787. return new TestAllExtensions(this);
  4788. }
  4789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4790. public override bool Equals(object other) {
  4791. return Equals(other as TestAllExtensions);
  4792. }
  4793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4794. public bool Equals(TestAllExtensions other) {
  4795. if (ReferenceEquals(other, null)) {
  4796. return false;
  4797. }
  4798. if (ReferenceEquals(other, this)) {
  4799. return true;
  4800. }
  4801. if (!Equals(_extensions, other._extensions)) {
  4802. return false;
  4803. }
  4804. return Equals(_unknownFields, other._unknownFields);
  4805. }
  4806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4807. public override int GetHashCode() {
  4808. int hash = 1;
  4809. if (_extensions != null) {
  4810. hash ^= _extensions.GetHashCode();
  4811. }
  4812. if (_unknownFields != null) {
  4813. hash ^= _unknownFields.GetHashCode();
  4814. }
  4815. return hash;
  4816. }
  4817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4818. public override string ToString() {
  4819. return pb::JsonFormatter.ToDiagnosticString(this);
  4820. }
  4821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4822. public void WriteTo(pb::CodedOutputStream output) {
  4823. if (_extensions != null) {
  4824. _extensions.WriteTo(output);
  4825. }
  4826. if (_unknownFields != null) {
  4827. _unknownFields.WriteTo(output);
  4828. }
  4829. }
  4830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4831. public int CalculateSize() {
  4832. int size = 0;
  4833. if (_extensions != null) {
  4834. size += _extensions.CalculateSize();
  4835. }
  4836. if (_unknownFields != null) {
  4837. size += _unknownFields.CalculateSize();
  4838. }
  4839. return size;
  4840. }
  4841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4842. public void MergeFrom(TestAllExtensions other) {
  4843. if (other == null) {
  4844. return;
  4845. }
  4846. pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
  4847. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  4848. }
  4849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4850. public void MergeFrom(pb::CodedInputStream input) {
  4851. uint tag;
  4852. while ((tag = input.ReadTag()) != 0) {
  4853. switch(tag) {
  4854. default:
  4855. if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
  4856. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  4857. }
  4858. break;
  4859. }
  4860. }
  4861. }
  4862. public TValue GetExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension) {
  4863. return pb::ExtensionSet.Get(ref _extensions, extension);
  4864. }
  4865. public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestAllExtensions, TValue> extension) {
  4866. return pb::ExtensionSet.Get(ref _extensions, extension);
  4867. }
  4868. public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestAllExtensions, TValue> extension) {
  4869. return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
  4870. }
  4871. public void SetExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension, TValue value) {
  4872. pb::ExtensionSet.Set(ref _extensions, extension, value);
  4873. }
  4874. public bool HasExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension) {
  4875. return pb::ExtensionSet.Has(ref _extensions, extension);
  4876. }
  4877. public void ClearExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension) {
  4878. pb::ExtensionSet.Clear(ref _extensions, extension);
  4879. }
  4880. public void ClearExtension<TValue>(pb::RepeatedExtension<TestAllExtensions, TValue> extension) {
  4881. pb::ExtensionSet.Clear(ref _extensions, extension);
  4882. }
  4883. }
  4884. public sealed partial class OptionalGroup_extension : pb::IMessage<OptionalGroup_extension> {
  4885. private static readonly pb::MessageParser<OptionalGroup_extension> _parser = new pb::MessageParser<OptionalGroup_extension>(() => new OptionalGroup_extension());
  4886. private pb::UnknownFieldSet _unknownFields;
  4887. private int _hasBits0;
  4888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4889. public static pb::MessageParser<OptionalGroup_extension> Parser { get { return _parser; } }
  4890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4891. public static pbr::MessageDescriptor Descriptor {
  4892. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[7]; }
  4893. }
  4894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4895. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4896. get { return Descriptor; }
  4897. }
  4898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4899. public OptionalGroup_extension() {
  4900. OnConstruction();
  4901. }
  4902. partial void OnConstruction();
  4903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4904. public OptionalGroup_extension(OptionalGroup_extension other) : this() {
  4905. _hasBits0 = other._hasBits0;
  4906. a_ = other.a_;
  4907. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  4908. }
  4909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4910. public OptionalGroup_extension Clone() {
  4911. return new OptionalGroup_extension(this);
  4912. }
  4913. /// <summary>Field number for the "a" field.</summary>
  4914. public const int AFieldNumber = 17;
  4915. private readonly static int ADefaultValue = 0;
  4916. private int a_;
  4917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4918. public int A {
  4919. get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
  4920. set {
  4921. _hasBits0 |= 1;
  4922. a_ = value;
  4923. }
  4924. }
  4925. /// <summary>Gets whether the "a" field is set</summary>
  4926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4927. public bool HasA {
  4928. get { return (_hasBits0 & 1) != 0; }
  4929. }
  4930. /// <summary>Clears the value of the "a" field</summary>
  4931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4932. public void ClearA() {
  4933. _hasBits0 &= ~1;
  4934. }
  4935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4936. public override bool Equals(object other) {
  4937. return Equals(other as OptionalGroup_extension);
  4938. }
  4939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4940. public bool Equals(OptionalGroup_extension other) {
  4941. if (ReferenceEquals(other, null)) {
  4942. return false;
  4943. }
  4944. if (ReferenceEquals(other, this)) {
  4945. return true;
  4946. }
  4947. if (A != other.A) return false;
  4948. return Equals(_unknownFields, other._unknownFields);
  4949. }
  4950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4951. public override int GetHashCode() {
  4952. int hash = 1;
  4953. if (HasA) hash ^= A.GetHashCode();
  4954. if (_unknownFields != null) {
  4955. hash ^= _unknownFields.GetHashCode();
  4956. }
  4957. return hash;
  4958. }
  4959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4960. public override string ToString() {
  4961. return pb::JsonFormatter.ToDiagnosticString(this);
  4962. }
  4963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4964. public void WriteTo(pb::CodedOutputStream output) {
  4965. if (HasA) {
  4966. output.WriteRawTag(136, 1);
  4967. output.WriteInt32(A);
  4968. }
  4969. if (_unknownFields != null) {
  4970. _unknownFields.WriteTo(output);
  4971. }
  4972. }
  4973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4974. public int CalculateSize() {
  4975. int size = 0;
  4976. if (HasA) {
  4977. size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
  4978. }
  4979. if (_unknownFields != null) {
  4980. size += _unknownFields.CalculateSize();
  4981. }
  4982. return size;
  4983. }
  4984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4985. public void MergeFrom(OptionalGroup_extension other) {
  4986. if (other == null) {
  4987. return;
  4988. }
  4989. if (other.HasA) {
  4990. A = other.A;
  4991. }
  4992. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  4993. }
  4994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4995. public void MergeFrom(pb::CodedInputStream input) {
  4996. uint tag;
  4997. while ((tag = input.ReadTag()) != 0) {
  4998. switch(tag) {
  4999. case 132:
  5000. return;
  5001. default:
  5002. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  5003. break;
  5004. case 136: {
  5005. A = input.ReadInt32();
  5006. break;
  5007. }
  5008. }
  5009. }
  5010. }
  5011. }
  5012. public sealed partial class RepeatedGroup_extension : pb::IMessage<RepeatedGroup_extension> {
  5013. private static readonly pb::MessageParser<RepeatedGroup_extension> _parser = new pb::MessageParser<RepeatedGroup_extension>(() => new RepeatedGroup_extension());
  5014. private pb::UnknownFieldSet _unknownFields;
  5015. private int _hasBits0;
  5016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5017. public static pb::MessageParser<RepeatedGroup_extension> Parser { get { return _parser; } }
  5018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5019. public static pbr::MessageDescriptor Descriptor {
  5020. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[8]; }
  5021. }
  5022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5023. pbr::MessageDescriptor pb::IMessage.Descriptor {
  5024. get { return Descriptor; }
  5025. }
  5026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5027. public RepeatedGroup_extension() {
  5028. OnConstruction();
  5029. }
  5030. partial void OnConstruction();
  5031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5032. public RepeatedGroup_extension(RepeatedGroup_extension other) : this() {
  5033. _hasBits0 = other._hasBits0;
  5034. a_ = other.a_;
  5035. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  5036. }
  5037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5038. public RepeatedGroup_extension Clone() {
  5039. return new RepeatedGroup_extension(this);
  5040. }
  5041. /// <summary>Field number for the "a" field.</summary>
  5042. public const int AFieldNumber = 47;
  5043. private readonly static int ADefaultValue = 0;
  5044. private int a_;
  5045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5046. public int A {
  5047. get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
  5048. set {
  5049. _hasBits0 |= 1;
  5050. a_ = value;
  5051. }
  5052. }
  5053. /// <summary>Gets whether the "a" field is set</summary>
  5054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5055. public bool HasA {
  5056. get { return (_hasBits0 & 1) != 0; }
  5057. }
  5058. /// <summary>Clears the value of the "a" field</summary>
  5059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5060. public void ClearA() {
  5061. _hasBits0 &= ~1;
  5062. }
  5063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5064. public override bool Equals(object other) {
  5065. return Equals(other as RepeatedGroup_extension);
  5066. }
  5067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5068. public bool Equals(RepeatedGroup_extension other) {
  5069. if (ReferenceEquals(other, null)) {
  5070. return false;
  5071. }
  5072. if (ReferenceEquals(other, this)) {
  5073. return true;
  5074. }
  5075. if (A != other.A) return false;
  5076. return Equals(_unknownFields, other._unknownFields);
  5077. }
  5078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5079. public override int GetHashCode() {
  5080. int hash = 1;
  5081. if (HasA) hash ^= A.GetHashCode();
  5082. if (_unknownFields != null) {
  5083. hash ^= _unknownFields.GetHashCode();
  5084. }
  5085. return hash;
  5086. }
  5087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5088. public override string ToString() {
  5089. return pb::JsonFormatter.ToDiagnosticString(this);
  5090. }
  5091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5092. public void WriteTo(pb::CodedOutputStream output) {
  5093. if (HasA) {
  5094. output.WriteRawTag(248, 2);
  5095. output.WriteInt32(A);
  5096. }
  5097. if (_unknownFields != null) {
  5098. _unknownFields.WriteTo(output);
  5099. }
  5100. }
  5101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5102. public int CalculateSize() {
  5103. int size = 0;
  5104. if (HasA) {
  5105. size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
  5106. }
  5107. if (_unknownFields != null) {
  5108. size += _unknownFields.CalculateSize();
  5109. }
  5110. return size;
  5111. }
  5112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5113. public void MergeFrom(RepeatedGroup_extension other) {
  5114. if (other == null) {
  5115. return;
  5116. }
  5117. if (other.HasA) {
  5118. A = other.A;
  5119. }
  5120. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  5121. }
  5122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5123. public void MergeFrom(pb::CodedInputStream input) {
  5124. uint tag;
  5125. while ((tag = input.ReadTag()) != 0) {
  5126. switch(tag) {
  5127. case 372:
  5128. return;
  5129. default:
  5130. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  5131. break;
  5132. case 376: {
  5133. A = input.ReadInt32();
  5134. break;
  5135. }
  5136. }
  5137. }
  5138. }
  5139. }
  5140. public sealed partial class TestGroup : pb::IMessage<TestGroup> {
  5141. private static readonly pb::MessageParser<TestGroup> _parser = new pb::MessageParser<TestGroup>(() => new TestGroup());
  5142. private pb::UnknownFieldSet _unknownFields;
  5143. private int _hasBits0;
  5144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5145. public static pb::MessageParser<TestGroup> Parser { get { return _parser; } }
  5146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5147. public static pbr::MessageDescriptor Descriptor {
  5148. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[9]; }
  5149. }
  5150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5151. pbr::MessageDescriptor pb::IMessage.Descriptor {
  5152. get { return Descriptor; }
  5153. }
  5154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5155. public TestGroup() {
  5156. OnConstruction();
  5157. }
  5158. partial void OnConstruction();
  5159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5160. public TestGroup(TestGroup other) : this() {
  5161. _hasBits0 = other._hasBits0;
  5162. optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
  5163. optionalForeignEnum_ = other.optionalForeignEnum_;
  5164. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  5165. }
  5166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5167. public TestGroup Clone() {
  5168. return new TestGroup(this);
  5169. }
  5170. /// <summary>Field number for the "optionalgroup" field.</summary>
  5171. public const int OptionalGroupFieldNumber = 16;
  5172. private global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup optionalGroup_;
  5173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5174. public global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup OptionalGroup {
  5175. get { return optionalGroup_; }
  5176. set {
  5177. optionalGroup_ = value;
  5178. }
  5179. }
  5180. /// <summary>Gets whether the optionalgroup field is set</summary>
  5181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5182. public bool HasOptionalGroup {
  5183. get { return optionalGroup_ != null; }
  5184. }
  5185. /// <summary>Clears the value of the optionalgroup field</summary>
  5186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5187. public void ClearOptionalGroup() {
  5188. optionalGroup_ = null;
  5189. }
  5190. /// <summary>Field number for the "optional_foreign_enum" field.</summary>
  5191. public const int OptionalForeignEnumFieldNumber = 22;
  5192. private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
  5193. private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum optionalForeignEnum_;
  5194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5195. public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnum {
  5196. get { if ((_hasBits0 & 1) != 0) { return optionalForeignEnum_; } else { return OptionalForeignEnumDefaultValue; } }
  5197. set {
  5198. _hasBits0 |= 1;
  5199. optionalForeignEnum_ = value;
  5200. }
  5201. }
  5202. /// <summary>Gets whether the "optional_foreign_enum" field is set</summary>
  5203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5204. public bool HasOptionalForeignEnum {
  5205. get { return (_hasBits0 & 1) != 0; }
  5206. }
  5207. /// <summary>Clears the value of the "optional_foreign_enum" field</summary>
  5208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5209. public void ClearOptionalForeignEnum() {
  5210. _hasBits0 &= ~1;
  5211. }
  5212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5213. public override bool Equals(object other) {
  5214. return Equals(other as TestGroup);
  5215. }
  5216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5217. public bool Equals(TestGroup other) {
  5218. if (ReferenceEquals(other, null)) {
  5219. return false;
  5220. }
  5221. if (ReferenceEquals(other, this)) {
  5222. return true;
  5223. }
  5224. if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
  5225. if (OptionalForeignEnum != other.OptionalForeignEnum) return false;
  5226. return Equals(_unknownFields, other._unknownFields);
  5227. }
  5228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5229. public override int GetHashCode() {
  5230. int hash = 1;
  5231. if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
  5232. if (HasOptionalForeignEnum) hash ^= OptionalForeignEnum.GetHashCode();
  5233. if (_unknownFields != null) {
  5234. hash ^= _unknownFields.GetHashCode();
  5235. }
  5236. return hash;
  5237. }
  5238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5239. public override string ToString() {
  5240. return pb::JsonFormatter.ToDiagnosticString(this);
  5241. }
  5242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5243. public void WriteTo(pb::CodedOutputStream output) {
  5244. if (HasOptionalGroup) {
  5245. output.WriteRawTag(131, 1);
  5246. output.WriteGroup(OptionalGroup);
  5247. output.WriteRawTag(132, 1);
  5248. }
  5249. if (HasOptionalForeignEnum) {
  5250. output.WriteRawTag(176, 1);
  5251. output.WriteEnum((int) OptionalForeignEnum);
  5252. }
  5253. if (_unknownFields != null) {
  5254. _unknownFields.WriteTo(output);
  5255. }
  5256. }
  5257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5258. public int CalculateSize() {
  5259. int size = 0;
  5260. if (HasOptionalGroup) {
  5261. size += 4 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
  5262. }
  5263. if (HasOptionalForeignEnum) {
  5264. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum);
  5265. }
  5266. if (_unknownFields != null) {
  5267. size += _unknownFields.CalculateSize();
  5268. }
  5269. return size;
  5270. }
  5271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5272. public void MergeFrom(TestGroup other) {
  5273. if (other == null) {
  5274. return;
  5275. }
  5276. if (other.HasOptionalGroup) {
  5277. if (!HasOptionalGroup) {
  5278. OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup();
  5279. }
  5280. OptionalGroup.MergeFrom(other.OptionalGroup);
  5281. }
  5282. if (other.HasOptionalForeignEnum) {
  5283. OptionalForeignEnum = other.OptionalForeignEnum;
  5284. }
  5285. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  5286. }
  5287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5288. public void MergeFrom(pb::CodedInputStream input) {
  5289. uint tag;
  5290. while ((tag = input.ReadTag()) != 0) {
  5291. switch(tag) {
  5292. default:
  5293. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  5294. break;
  5295. case 131: {
  5296. if (!HasOptionalGroup) {
  5297. OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup();
  5298. }
  5299. input.ReadGroup(OptionalGroup);
  5300. break;
  5301. }
  5302. case 176: {
  5303. OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
  5304. break;
  5305. }
  5306. }
  5307. }
  5308. }
  5309. #region Nested types
  5310. /// <summary>Container for nested types declared in the TestGroup message type.</summary>
  5311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5312. public static partial class Types {
  5313. public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup> {
  5314. private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
  5315. private pb::UnknownFieldSet _unknownFields;
  5316. private int _hasBits0;
  5317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5318. public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
  5319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5320. public static pbr::MessageDescriptor Descriptor {
  5321. get { return global::Google.Protobuf.TestProtos.Proto2.TestGroup.Descriptor.NestedTypes[0]; }
  5322. }
  5323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5324. pbr::MessageDescriptor pb::IMessage.Descriptor {
  5325. get { return Descriptor; }
  5326. }
  5327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5328. public OptionalGroup() {
  5329. OnConstruction();
  5330. }
  5331. partial void OnConstruction();
  5332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5333. public OptionalGroup(OptionalGroup other) : this() {
  5334. _hasBits0 = other._hasBits0;
  5335. a_ = other.a_;
  5336. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  5337. }
  5338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5339. public OptionalGroup Clone() {
  5340. return new OptionalGroup(this);
  5341. }
  5342. /// <summary>Field number for the "a" field.</summary>
  5343. public const int AFieldNumber = 17;
  5344. private readonly static int ADefaultValue = 0;
  5345. private int a_;
  5346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5347. public int A {
  5348. get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
  5349. set {
  5350. _hasBits0 |= 1;
  5351. a_ = value;
  5352. }
  5353. }
  5354. /// <summary>Gets whether the "a" field is set</summary>
  5355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5356. public bool HasA {
  5357. get { return (_hasBits0 & 1) != 0; }
  5358. }
  5359. /// <summary>Clears the value of the "a" field</summary>
  5360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5361. public void ClearA() {
  5362. _hasBits0 &= ~1;
  5363. }
  5364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5365. public override bool Equals(object other) {
  5366. return Equals(other as OptionalGroup);
  5367. }
  5368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5369. public bool Equals(OptionalGroup other) {
  5370. if (ReferenceEquals(other, null)) {
  5371. return false;
  5372. }
  5373. if (ReferenceEquals(other, this)) {
  5374. return true;
  5375. }
  5376. if (A != other.A) return false;
  5377. return Equals(_unknownFields, other._unknownFields);
  5378. }
  5379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5380. public override int GetHashCode() {
  5381. int hash = 1;
  5382. if (HasA) hash ^= A.GetHashCode();
  5383. if (_unknownFields != null) {
  5384. hash ^= _unknownFields.GetHashCode();
  5385. }
  5386. return hash;
  5387. }
  5388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5389. public override string ToString() {
  5390. return pb::JsonFormatter.ToDiagnosticString(this);
  5391. }
  5392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5393. public void WriteTo(pb::CodedOutputStream output) {
  5394. if (HasA) {
  5395. output.WriteRawTag(136, 1);
  5396. output.WriteInt32(A);
  5397. }
  5398. if (_unknownFields != null) {
  5399. _unknownFields.WriteTo(output);
  5400. }
  5401. }
  5402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5403. public int CalculateSize() {
  5404. int size = 0;
  5405. if (HasA) {
  5406. size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
  5407. }
  5408. if (_unknownFields != null) {
  5409. size += _unknownFields.CalculateSize();
  5410. }
  5411. return size;
  5412. }
  5413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5414. public void MergeFrom(OptionalGroup other) {
  5415. if (other == null) {
  5416. return;
  5417. }
  5418. if (other.HasA) {
  5419. A = other.A;
  5420. }
  5421. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  5422. }
  5423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5424. public void MergeFrom(pb::CodedInputStream input) {
  5425. uint tag;
  5426. while ((tag = input.ReadTag()) != 0) {
  5427. switch(tag) {
  5428. case 132:
  5429. return;
  5430. default:
  5431. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  5432. break;
  5433. case 136: {
  5434. A = input.ReadInt32();
  5435. break;
  5436. }
  5437. }
  5438. }
  5439. }
  5440. }
  5441. }
  5442. #endregion
  5443. }
  5444. public sealed partial class TestGroupExtension : pb::IExtendableMessage<TestGroupExtension> {
  5445. private static readonly pb::MessageParser<TestGroupExtension> _parser = new pb::MessageParser<TestGroupExtension>(() => new TestGroupExtension());
  5446. private pb::UnknownFieldSet _unknownFields;
  5447. private pb::ExtensionSet<TestGroupExtension> _extensions;
  5448. private pb::ExtensionSet<TestGroupExtension> _Extensions { get { return _extensions; } }
  5449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5450. public static pb::MessageParser<TestGroupExtension> Parser { get { return _parser; } }
  5451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5452. public static pbr::MessageDescriptor Descriptor {
  5453. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[10]; }
  5454. }
  5455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5456. pbr::MessageDescriptor pb::IMessage.Descriptor {
  5457. get { return Descriptor; }
  5458. }
  5459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5460. public TestGroupExtension() {
  5461. OnConstruction();
  5462. }
  5463. partial void OnConstruction();
  5464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5465. public TestGroupExtension(TestGroupExtension other) : this() {
  5466. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  5467. _extensions = pb::ExtensionSet.Clone(other._extensions);
  5468. }
  5469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5470. public TestGroupExtension Clone() {
  5471. return new TestGroupExtension(this);
  5472. }
  5473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5474. public override bool Equals(object other) {
  5475. return Equals(other as TestGroupExtension);
  5476. }
  5477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5478. public bool Equals(TestGroupExtension other) {
  5479. if (ReferenceEquals(other, null)) {
  5480. return false;
  5481. }
  5482. if (ReferenceEquals(other, this)) {
  5483. return true;
  5484. }
  5485. if (!Equals(_extensions, other._extensions)) {
  5486. return false;
  5487. }
  5488. return Equals(_unknownFields, other._unknownFields);
  5489. }
  5490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5491. public override int GetHashCode() {
  5492. int hash = 1;
  5493. if (_extensions != null) {
  5494. hash ^= _extensions.GetHashCode();
  5495. }
  5496. if (_unknownFields != null) {
  5497. hash ^= _unknownFields.GetHashCode();
  5498. }
  5499. return hash;
  5500. }
  5501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5502. public override string ToString() {
  5503. return pb::JsonFormatter.ToDiagnosticString(this);
  5504. }
  5505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5506. public void WriteTo(pb::CodedOutputStream output) {
  5507. if (_extensions != null) {
  5508. _extensions.WriteTo(output);
  5509. }
  5510. if (_unknownFields != null) {
  5511. _unknownFields.WriteTo(output);
  5512. }
  5513. }
  5514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5515. public int CalculateSize() {
  5516. int size = 0;
  5517. if (_extensions != null) {
  5518. size += _extensions.CalculateSize();
  5519. }
  5520. if (_unknownFields != null) {
  5521. size += _unknownFields.CalculateSize();
  5522. }
  5523. return size;
  5524. }
  5525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5526. public void MergeFrom(TestGroupExtension other) {
  5527. if (other == null) {
  5528. return;
  5529. }
  5530. pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
  5531. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  5532. }
  5533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5534. public void MergeFrom(pb::CodedInputStream input) {
  5535. uint tag;
  5536. while ((tag = input.ReadTag()) != 0) {
  5537. switch(tag) {
  5538. default:
  5539. if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
  5540. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  5541. }
  5542. break;
  5543. }
  5544. }
  5545. }
  5546. public TValue GetExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension) {
  5547. return pb::ExtensionSet.Get(ref _extensions, extension);
  5548. }
  5549. public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestGroupExtension, TValue> extension) {
  5550. return pb::ExtensionSet.Get(ref _extensions, extension);
  5551. }
  5552. public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestGroupExtension, TValue> extension) {
  5553. return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
  5554. }
  5555. public void SetExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension, TValue value) {
  5556. pb::ExtensionSet.Set(ref _extensions, extension, value);
  5557. }
  5558. public bool HasExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension) {
  5559. return pb::ExtensionSet.Has(ref _extensions, extension);
  5560. }
  5561. public void ClearExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension) {
  5562. pb::ExtensionSet.Clear(ref _extensions, extension);
  5563. }
  5564. public void ClearExtension<TValue>(pb::RepeatedExtension<TestGroupExtension, TValue> extension) {
  5565. pb::ExtensionSet.Clear(ref _extensions, extension);
  5566. }
  5567. }
  5568. public sealed partial class TestNestedExtension : pb::IMessage<TestNestedExtension> {
  5569. private static readonly pb::MessageParser<TestNestedExtension> _parser = new pb::MessageParser<TestNestedExtension>(() => new TestNestedExtension());
  5570. private pb::UnknownFieldSet _unknownFields;
  5571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5572. public static pb::MessageParser<TestNestedExtension> Parser { get { return _parser; } }
  5573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5574. public static pbr::MessageDescriptor Descriptor {
  5575. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[11]; }
  5576. }
  5577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5578. pbr::MessageDescriptor pb::IMessage.Descriptor {
  5579. get { return Descriptor; }
  5580. }
  5581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5582. public TestNestedExtension() {
  5583. OnConstruction();
  5584. }
  5585. partial void OnConstruction();
  5586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5587. public TestNestedExtension(TestNestedExtension other) : this() {
  5588. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  5589. }
  5590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5591. public TestNestedExtension Clone() {
  5592. return new TestNestedExtension(this);
  5593. }
  5594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5595. public override bool Equals(object other) {
  5596. return Equals(other as TestNestedExtension);
  5597. }
  5598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5599. public bool Equals(TestNestedExtension other) {
  5600. if (ReferenceEquals(other, null)) {
  5601. return false;
  5602. }
  5603. if (ReferenceEquals(other, this)) {
  5604. return true;
  5605. }
  5606. return Equals(_unknownFields, other._unknownFields);
  5607. }
  5608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5609. public override int GetHashCode() {
  5610. int hash = 1;
  5611. if (_unknownFields != null) {
  5612. hash ^= _unknownFields.GetHashCode();
  5613. }
  5614. return hash;
  5615. }
  5616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5617. public override string ToString() {
  5618. return pb::JsonFormatter.ToDiagnosticString(this);
  5619. }
  5620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5621. public void WriteTo(pb::CodedOutputStream output) {
  5622. if (_unknownFields != null) {
  5623. _unknownFields.WriteTo(output);
  5624. }
  5625. }
  5626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5627. public int CalculateSize() {
  5628. int size = 0;
  5629. if (_unknownFields != null) {
  5630. size += _unknownFields.CalculateSize();
  5631. }
  5632. return size;
  5633. }
  5634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5635. public void MergeFrom(TestNestedExtension other) {
  5636. if (other == null) {
  5637. return;
  5638. }
  5639. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  5640. }
  5641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5642. public void MergeFrom(pb::CodedInputStream input) {
  5643. uint tag;
  5644. while ((tag = input.ReadTag()) != 0) {
  5645. switch(tag) {
  5646. default:
  5647. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  5648. break;
  5649. }
  5650. }
  5651. }
  5652. #region Nested types
  5653. /// <summary>Container for nested types declared in the TestNestedExtension message type.</summary>
  5654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5655. public static partial class Types {
  5656. public sealed partial class OptionalGroup_extension : pb::IMessage<OptionalGroup_extension> {
  5657. private static readonly pb::MessageParser<OptionalGroup_extension> _parser = new pb::MessageParser<OptionalGroup_extension>(() => new OptionalGroup_extension());
  5658. private pb::UnknownFieldSet _unknownFields;
  5659. private int _hasBits0;
  5660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5661. public static pb::MessageParser<OptionalGroup_extension> Parser { get { return _parser; } }
  5662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5663. public static pbr::MessageDescriptor Descriptor {
  5664. get { return global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Descriptor.NestedTypes[0]; }
  5665. }
  5666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5667. pbr::MessageDescriptor pb::IMessage.Descriptor {
  5668. get { return Descriptor; }
  5669. }
  5670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5671. public OptionalGroup_extension() {
  5672. OnConstruction();
  5673. }
  5674. partial void OnConstruction();
  5675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5676. public OptionalGroup_extension(OptionalGroup_extension other) : this() {
  5677. _hasBits0 = other._hasBits0;
  5678. a_ = other.a_;
  5679. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  5680. }
  5681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5682. public OptionalGroup_extension Clone() {
  5683. return new OptionalGroup_extension(this);
  5684. }
  5685. /// <summary>Field number for the "a" field.</summary>
  5686. public const int AFieldNumber = 17;
  5687. private readonly static int ADefaultValue = 0;
  5688. private int a_;
  5689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5690. public int A {
  5691. get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
  5692. set {
  5693. _hasBits0 |= 1;
  5694. a_ = value;
  5695. }
  5696. }
  5697. /// <summary>Gets whether the "a" field is set</summary>
  5698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5699. public bool HasA {
  5700. get { return (_hasBits0 & 1) != 0; }
  5701. }
  5702. /// <summary>Clears the value of the "a" field</summary>
  5703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5704. public void ClearA() {
  5705. _hasBits0 &= ~1;
  5706. }
  5707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5708. public override bool Equals(object other) {
  5709. return Equals(other as OptionalGroup_extension);
  5710. }
  5711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5712. public bool Equals(OptionalGroup_extension other) {
  5713. if (ReferenceEquals(other, null)) {
  5714. return false;
  5715. }
  5716. if (ReferenceEquals(other, this)) {
  5717. return true;
  5718. }
  5719. if (A != other.A) return false;
  5720. return Equals(_unknownFields, other._unknownFields);
  5721. }
  5722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5723. public override int GetHashCode() {
  5724. int hash = 1;
  5725. if (HasA) hash ^= A.GetHashCode();
  5726. if (_unknownFields != null) {
  5727. hash ^= _unknownFields.GetHashCode();
  5728. }
  5729. return hash;
  5730. }
  5731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5732. public override string ToString() {
  5733. return pb::JsonFormatter.ToDiagnosticString(this);
  5734. }
  5735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5736. public void WriteTo(pb::CodedOutputStream output) {
  5737. if (HasA) {
  5738. output.WriteRawTag(136, 1);
  5739. output.WriteInt32(A);
  5740. }
  5741. if (_unknownFields != null) {
  5742. _unknownFields.WriteTo(output);
  5743. }
  5744. }
  5745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5746. public int CalculateSize() {
  5747. int size = 0;
  5748. if (HasA) {
  5749. size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
  5750. }
  5751. if (_unknownFields != null) {
  5752. size += _unknownFields.CalculateSize();
  5753. }
  5754. return size;
  5755. }
  5756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5757. public void MergeFrom(OptionalGroup_extension other) {
  5758. if (other == null) {
  5759. return;
  5760. }
  5761. if (other.HasA) {
  5762. A = other.A;
  5763. }
  5764. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  5765. }
  5766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5767. public void MergeFrom(pb::CodedInputStream input) {
  5768. uint tag;
  5769. while ((tag = input.ReadTag()) != 0) {
  5770. switch(tag) {
  5771. case 132:
  5772. return;
  5773. default:
  5774. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  5775. break;
  5776. case 136: {
  5777. A = input.ReadInt32();
  5778. break;
  5779. }
  5780. }
  5781. }
  5782. }
  5783. }
  5784. }
  5785. #endregion
  5786. #region Extensions
  5787. /// <summary>Container for extensions for other messages declared in the TestNestedExtension message type.</summary>
  5788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5789. public static partial class Extensions {
  5790. /// <summary>
  5791. /// Check for bug where string extensions declared in tested scope did not
  5792. /// compile.
  5793. /// </summary>
  5794. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> Test =
  5795. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(1002, pb::FieldCodec.ForString(8018, global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("dGVzdA=="), 0, 4)));
  5796. /// <summary>
  5797. /// Used to test if generated extension name is correct when there are
  5798. /// underscores.
  5799. /// </summary>
  5800. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> NestedStringExtension =
  5801. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(1003, pb::FieldCodec.ForString(8026, ""));
  5802. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension> OptionalGroupExtension =
  5803. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension>(16, pb::FieldCodec.ForGroup(131, 132, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension.Parser));
  5804. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> OptionalForeignEnumExtension =
  5805. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>(22, pb::FieldCodec.ForEnum(176, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo));
  5806. }
  5807. #endregion
  5808. }
  5809. /// <summary>
  5810. /// We have separate messages for testing required fields because it's
  5811. /// annoying to have to fill in required fields in TestProto in order to
  5812. /// do anything with it. Note that we don't need to test every type of
  5813. /// required filed because the code output is basically identical to
  5814. /// optional fields for all types.
  5815. /// </summary>
  5816. public sealed partial class TestRequired : pb::IMessage<TestRequired> {
  5817. private static readonly pb::MessageParser<TestRequired> _parser = new pb::MessageParser<TestRequired>(() => new TestRequired());
  5818. private pb::UnknownFieldSet _unknownFields;
  5819. private int _hasBits0;
  5820. private int _hasBits1;
  5821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5822. public static pb::MessageParser<TestRequired> Parser { get { return _parser; } }
  5823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5824. public static pbr::MessageDescriptor Descriptor {
  5825. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[12]; }
  5826. }
  5827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5828. pbr::MessageDescriptor pb::IMessage.Descriptor {
  5829. get { return Descriptor; }
  5830. }
  5831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5832. public TestRequired() {
  5833. OnConstruction();
  5834. }
  5835. partial void OnConstruction();
  5836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5837. public TestRequired(TestRequired other) : this() {
  5838. _hasBits0 = other._hasBits0;
  5839. _hasBits1 = other._hasBits1;
  5840. a_ = other.a_;
  5841. dummy2_ = other.dummy2_;
  5842. b_ = other.b_;
  5843. dummy4_ = other.dummy4_;
  5844. dummy5_ = other.dummy5_;
  5845. dummy6_ = other.dummy6_;
  5846. dummy7_ = other.dummy7_;
  5847. dummy8_ = other.dummy8_;
  5848. dummy9_ = other.dummy9_;
  5849. dummy10_ = other.dummy10_;
  5850. dummy11_ = other.dummy11_;
  5851. dummy12_ = other.dummy12_;
  5852. dummy13_ = other.dummy13_;
  5853. dummy14_ = other.dummy14_;
  5854. dummy15_ = other.dummy15_;
  5855. dummy16_ = other.dummy16_;
  5856. dummy17_ = other.dummy17_;
  5857. dummy18_ = other.dummy18_;
  5858. dummy19_ = other.dummy19_;
  5859. dummy20_ = other.dummy20_;
  5860. dummy21_ = other.dummy21_;
  5861. dummy22_ = other.dummy22_;
  5862. dummy23_ = other.dummy23_;
  5863. dummy24_ = other.dummy24_;
  5864. dummy25_ = other.dummy25_;
  5865. dummy26_ = other.dummy26_;
  5866. dummy27_ = other.dummy27_;
  5867. dummy28_ = other.dummy28_;
  5868. dummy29_ = other.dummy29_;
  5869. dummy30_ = other.dummy30_;
  5870. dummy31_ = other.dummy31_;
  5871. dummy32_ = other.dummy32_;
  5872. c_ = other.c_;
  5873. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  5874. }
  5875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5876. public TestRequired Clone() {
  5877. return new TestRequired(this);
  5878. }
  5879. /// <summary>Field number for the "a" field.</summary>
  5880. public const int AFieldNumber = 1;
  5881. private readonly static int ADefaultValue = 0;
  5882. private int a_;
  5883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5884. public int A {
  5885. get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
  5886. set {
  5887. _hasBits0 |= 1;
  5888. a_ = value;
  5889. }
  5890. }
  5891. /// <summary>Gets whether the "a" field is set</summary>
  5892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5893. public bool HasA {
  5894. get { return (_hasBits0 & 1) != 0; }
  5895. }
  5896. /// <summary>Clears the value of the "a" field</summary>
  5897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5898. public void ClearA() {
  5899. _hasBits0 &= ~1;
  5900. }
  5901. /// <summary>Field number for the "dummy2" field.</summary>
  5902. public const int Dummy2FieldNumber = 2;
  5903. private readonly static int Dummy2DefaultValue = 0;
  5904. private int dummy2_;
  5905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5906. public int Dummy2 {
  5907. get { if ((_hasBits0 & 2) != 0) { return dummy2_; } else { return Dummy2DefaultValue; } }
  5908. set {
  5909. _hasBits0 |= 2;
  5910. dummy2_ = value;
  5911. }
  5912. }
  5913. /// <summary>Gets whether the "dummy2" field is set</summary>
  5914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5915. public bool HasDummy2 {
  5916. get { return (_hasBits0 & 2) != 0; }
  5917. }
  5918. /// <summary>Clears the value of the "dummy2" field</summary>
  5919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5920. public void ClearDummy2() {
  5921. _hasBits0 &= ~2;
  5922. }
  5923. /// <summary>Field number for the "b" field.</summary>
  5924. public const int BFieldNumber = 3;
  5925. private readonly static int BDefaultValue = 0;
  5926. private int b_;
  5927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5928. public int B {
  5929. get { if ((_hasBits0 & 4) != 0) { return b_; } else { return BDefaultValue; } }
  5930. set {
  5931. _hasBits0 |= 4;
  5932. b_ = value;
  5933. }
  5934. }
  5935. /// <summary>Gets whether the "b" field is set</summary>
  5936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5937. public bool HasB {
  5938. get { return (_hasBits0 & 4) != 0; }
  5939. }
  5940. /// <summary>Clears the value of the "b" field</summary>
  5941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5942. public void ClearB() {
  5943. _hasBits0 &= ~4;
  5944. }
  5945. /// <summary>Field number for the "dummy4" field.</summary>
  5946. public const int Dummy4FieldNumber = 4;
  5947. private readonly static int Dummy4DefaultValue = 0;
  5948. private int dummy4_;
  5949. /// <summary>
  5950. /// Pad the field count to 32 so that we can test that IsInitialized()
  5951. /// properly checks multiple elements of has_bits_.
  5952. /// </summary>
  5953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5954. public int Dummy4 {
  5955. get { if ((_hasBits0 & 8) != 0) { return dummy4_; } else { return Dummy4DefaultValue; } }
  5956. set {
  5957. _hasBits0 |= 8;
  5958. dummy4_ = value;
  5959. }
  5960. }
  5961. /// <summary>Gets whether the "dummy4" field is set</summary>
  5962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5963. public bool HasDummy4 {
  5964. get { return (_hasBits0 & 8) != 0; }
  5965. }
  5966. /// <summary>Clears the value of the "dummy4" field</summary>
  5967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5968. public void ClearDummy4() {
  5969. _hasBits0 &= ~8;
  5970. }
  5971. /// <summary>Field number for the "dummy5" field.</summary>
  5972. public const int Dummy5FieldNumber = 5;
  5973. private readonly static int Dummy5DefaultValue = 0;
  5974. private int dummy5_;
  5975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5976. public int Dummy5 {
  5977. get { if ((_hasBits0 & 16) != 0) { return dummy5_; } else { return Dummy5DefaultValue; } }
  5978. set {
  5979. _hasBits0 |= 16;
  5980. dummy5_ = value;
  5981. }
  5982. }
  5983. /// <summary>Gets whether the "dummy5" field is set</summary>
  5984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5985. public bool HasDummy5 {
  5986. get { return (_hasBits0 & 16) != 0; }
  5987. }
  5988. /// <summary>Clears the value of the "dummy5" field</summary>
  5989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5990. public void ClearDummy5() {
  5991. _hasBits0 &= ~16;
  5992. }
  5993. /// <summary>Field number for the "dummy6" field.</summary>
  5994. public const int Dummy6FieldNumber = 6;
  5995. private readonly static int Dummy6DefaultValue = 0;
  5996. private int dummy6_;
  5997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5998. public int Dummy6 {
  5999. get { if ((_hasBits0 & 32) != 0) { return dummy6_; } else { return Dummy6DefaultValue; } }
  6000. set {
  6001. _hasBits0 |= 32;
  6002. dummy6_ = value;
  6003. }
  6004. }
  6005. /// <summary>Gets whether the "dummy6" field is set</summary>
  6006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6007. public bool HasDummy6 {
  6008. get { return (_hasBits0 & 32) != 0; }
  6009. }
  6010. /// <summary>Clears the value of the "dummy6" field</summary>
  6011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6012. public void ClearDummy6() {
  6013. _hasBits0 &= ~32;
  6014. }
  6015. /// <summary>Field number for the "dummy7" field.</summary>
  6016. public const int Dummy7FieldNumber = 7;
  6017. private readonly static int Dummy7DefaultValue = 0;
  6018. private int dummy7_;
  6019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6020. public int Dummy7 {
  6021. get { if ((_hasBits0 & 64) != 0) { return dummy7_; } else { return Dummy7DefaultValue; } }
  6022. set {
  6023. _hasBits0 |= 64;
  6024. dummy7_ = value;
  6025. }
  6026. }
  6027. /// <summary>Gets whether the "dummy7" field is set</summary>
  6028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6029. public bool HasDummy7 {
  6030. get { return (_hasBits0 & 64) != 0; }
  6031. }
  6032. /// <summary>Clears the value of the "dummy7" field</summary>
  6033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6034. public void ClearDummy7() {
  6035. _hasBits0 &= ~64;
  6036. }
  6037. /// <summary>Field number for the "dummy8" field.</summary>
  6038. public const int Dummy8FieldNumber = 8;
  6039. private readonly static int Dummy8DefaultValue = 0;
  6040. private int dummy8_;
  6041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6042. public int Dummy8 {
  6043. get { if ((_hasBits0 & 128) != 0) { return dummy8_; } else { return Dummy8DefaultValue; } }
  6044. set {
  6045. _hasBits0 |= 128;
  6046. dummy8_ = value;
  6047. }
  6048. }
  6049. /// <summary>Gets whether the "dummy8" field is set</summary>
  6050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6051. public bool HasDummy8 {
  6052. get { return (_hasBits0 & 128) != 0; }
  6053. }
  6054. /// <summary>Clears the value of the "dummy8" field</summary>
  6055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6056. public void ClearDummy8() {
  6057. _hasBits0 &= ~128;
  6058. }
  6059. /// <summary>Field number for the "dummy9" field.</summary>
  6060. public const int Dummy9FieldNumber = 9;
  6061. private readonly static int Dummy9DefaultValue = 0;
  6062. private int dummy9_;
  6063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6064. public int Dummy9 {
  6065. get { if ((_hasBits0 & 256) != 0) { return dummy9_; } else { return Dummy9DefaultValue; } }
  6066. set {
  6067. _hasBits0 |= 256;
  6068. dummy9_ = value;
  6069. }
  6070. }
  6071. /// <summary>Gets whether the "dummy9" field is set</summary>
  6072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6073. public bool HasDummy9 {
  6074. get { return (_hasBits0 & 256) != 0; }
  6075. }
  6076. /// <summary>Clears the value of the "dummy9" field</summary>
  6077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6078. public void ClearDummy9() {
  6079. _hasBits0 &= ~256;
  6080. }
  6081. /// <summary>Field number for the "dummy10" field.</summary>
  6082. public const int Dummy10FieldNumber = 10;
  6083. private readonly static int Dummy10DefaultValue = 0;
  6084. private int dummy10_;
  6085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6086. public int Dummy10 {
  6087. get { if ((_hasBits0 & 512) != 0) { return dummy10_; } else { return Dummy10DefaultValue; } }
  6088. set {
  6089. _hasBits0 |= 512;
  6090. dummy10_ = value;
  6091. }
  6092. }
  6093. /// <summary>Gets whether the "dummy10" field is set</summary>
  6094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6095. public bool HasDummy10 {
  6096. get { return (_hasBits0 & 512) != 0; }
  6097. }
  6098. /// <summary>Clears the value of the "dummy10" field</summary>
  6099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6100. public void ClearDummy10() {
  6101. _hasBits0 &= ~512;
  6102. }
  6103. /// <summary>Field number for the "dummy11" field.</summary>
  6104. public const int Dummy11FieldNumber = 11;
  6105. private readonly static int Dummy11DefaultValue = 0;
  6106. private int dummy11_;
  6107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6108. public int Dummy11 {
  6109. get { if ((_hasBits0 & 1024) != 0) { return dummy11_; } else { return Dummy11DefaultValue; } }
  6110. set {
  6111. _hasBits0 |= 1024;
  6112. dummy11_ = value;
  6113. }
  6114. }
  6115. /// <summary>Gets whether the "dummy11" field is set</summary>
  6116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6117. public bool HasDummy11 {
  6118. get { return (_hasBits0 & 1024) != 0; }
  6119. }
  6120. /// <summary>Clears the value of the "dummy11" field</summary>
  6121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6122. public void ClearDummy11() {
  6123. _hasBits0 &= ~1024;
  6124. }
  6125. /// <summary>Field number for the "dummy12" field.</summary>
  6126. public const int Dummy12FieldNumber = 12;
  6127. private readonly static int Dummy12DefaultValue = 0;
  6128. private int dummy12_;
  6129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6130. public int Dummy12 {
  6131. get { if ((_hasBits0 & 2048) != 0) { return dummy12_; } else { return Dummy12DefaultValue; } }
  6132. set {
  6133. _hasBits0 |= 2048;
  6134. dummy12_ = value;
  6135. }
  6136. }
  6137. /// <summary>Gets whether the "dummy12" field is set</summary>
  6138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6139. public bool HasDummy12 {
  6140. get { return (_hasBits0 & 2048) != 0; }
  6141. }
  6142. /// <summary>Clears the value of the "dummy12" field</summary>
  6143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6144. public void ClearDummy12() {
  6145. _hasBits0 &= ~2048;
  6146. }
  6147. /// <summary>Field number for the "dummy13" field.</summary>
  6148. public const int Dummy13FieldNumber = 13;
  6149. private readonly static int Dummy13DefaultValue = 0;
  6150. private int dummy13_;
  6151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6152. public int Dummy13 {
  6153. get { if ((_hasBits0 & 4096) != 0) { return dummy13_; } else { return Dummy13DefaultValue; } }
  6154. set {
  6155. _hasBits0 |= 4096;
  6156. dummy13_ = value;
  6157. }
  6158. }
  6159. /// <summary>Gets whether the "dummy13" field is set</summary>
  6160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6161. public bool HasDummy13 {
  6162. get { return (_hasBits0 & 4096) != 0; }
  6163. }
  6164. /// <summary>Clears the value of the "dummy13" field</summary>
  6165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6166. public void ClearDummy13() {
  6167. _hasBits0 &= ~4096;
  6168. }
  6169. /// <summary>Field number for the "dummy14" field.</summary>
  6170. public const int Dummy14FieldNumber = 14;
  6171. private readonly static int Dummy14DefaultValue = 0;
  6172. private int dummy14_;
  6173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6174. public int Dummy14 {
  6175. get { if ((_hasBits0 & 8192) != 0) { return dummy14_; } else { return Dummy14DefaultValue; } }
  6176. set {
  6177. _hasBits0 |= 8192;
  6178. dummy14_ = value;
  6179. }
  6180. }
  6181. /// <summary>Gets whether the "dummy14" field is set</summary>
  6182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6183. public bool HasDummy14 {
  6184. get { return (_hasBits0 & 8192) != 0; }
  6185. }
  6186. /// <summary>Clears the value of the "dummy14" field</summary>
  6187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6188. public void ClearDummy14() {
  6189. _hasBits0 &= ~8192;
  6190. }
  6191. /// <summary>Field number for the "dummy15" field.</summary>
  6192. public const int Dummy15FieldNumber = 15;
  6193. private readonly static int Dummy15DefaultValue = 0;
  6194. private int dummy15_;
  6195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6196. public int Dummy15 {
  6197. get { if ((_hasBits0 & 16384) != 0) { return dummy15_; } else { return Dummy15DefaultValue; } }
  6198. set {
  6199. _hasBits0 |= 16384;
  6200. dummy15_ = value;
  6201. }
  6202. }
  6203. /// <summary>Gets whether the "dummy15" field is set</summary>
  6204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6205. public bool HasDummy15 {
  6206. get { return (_hasBits0 & 16384) != 0; }
  6207. }
  6208. /// <summary>Clears the value of the "dummy15" field</summary>
  6209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6210. public void ClearDummy15() {
  6211. _hasBits0 &= ~16384;
  6212. }
  6213. /// <summary>Field number for the "dummy16" field.</summary>
  6214. public const int Dummy16FieldNumber = 16;
  6215. private readonly static int Dummy16DefaultValue = 0;
  6216. private int dummy16_;
  6217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6218. public int Dummy16 {
  6219. get { if ((_hasBits0 & 32768) != 0) { return dummy16_; } else { return Dummy16DefaultValue; } }
  6220. set {
  6221. _hasBits0 |= 32768;
  6222. dummy16_ = value;
  6223. }
  6224. }
  6225. /// <summary>Gets whether the "dummy16" field is set</summary>
  6226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6227. public bool HasDummy16 {
  6228. get { return (_hasBits0 & 32768) != 0; }
  6229. }
  6230. /// <summary>Clears the value of the "dummy16" field</summary>
  6231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6232. public void ClearDummy16() {
  6233. _hasBits0 &= ~32768;
  6234. }
  6235. /// <summary>Field number for the "dummy17" field.</summary>
  6236. public const int Dummy17FieldNumber = 17;
  6237. private readonly static int Dummy17DefaultValue = 0;
  6238. private int dummy17_;
  6239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6240. public int Dummy17 {
  6241. get { if ((_hasBits0 & 65536) != 0) { return dummy17_; } else { return Dummy17DefaultValue; } }
  6242. set {
  6243. _hasBits0 |= 65536;
  6244. dummy17_ = value;
  6245. }
  6246. }
  6247. /// <summary>Gets whether the "dummy17" field is set</summary>
  6248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6249. public bool HasDummy17 {
  6250. get { return (_hasBits0 & 65536) != 0; }
  6251. }
  6252. /// <summary>Clears the value of the "dummy17" field</summary>
  6253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6254. public void ClearDummy17() {
  6255. _hasBits0 &= ~65536;
  6256. }
  6257. /// <summary>Field number for the "dummy18" field.</summary>
  6258. public const int Dummy18FieldNumber = 18;
  6259. private readonly static int Dummy18DefaultValue = 0;
  6260. private int dummy18_;
  6261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6262. public int Dummy18 {
  6263. get { if ((_hasBits0 & 131072) != 0) { return dummy18_; } else { return Dummy18DefaultValue; } }
  6264. set {
  6265. _hasBits0 |= 131072;
  6266. dummy18_ = value;
  6267. }
  6268. }
  6269. /// <summary>Gets whether the "dummy18" field is set</summary>
  6270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6271. public bool HasDummy18 {
  6272. get { return (_hasBits0 & 131072) != 0; }
  6273. }
  6274. /// <summary>Clears the value of the "dummy18" field</summary>
  6275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6276. public void ClearDummy18() {
  6277. _hasBits0 &= ~131072;
  6278. }
  6279. /// <summary>Field number for the "dummy19" field.</summary>
  6280. public const int Dummy19FieldNumber = 19;
  6281. private readonly static int Dummy19DefaultValue = 0;
  6282. private int dummy19_;
  6283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6284. public int Dummy19 {
  6285. get { if ((_hasBits0 & 262144) != 0) { return dummy19_; } else { return Dummy19DefaultValue; } }
  6286. set {
  6287. _hasBits0 |= 262144;
  6288. dummy19_ = value;
  6289. }
  6290. }
  6291. /// <summary>Gets whether the "dummy19" field is set</summary>
  6292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6293. public bool HasDummy19 {
  6294. get { return (_hasBits0 & 262144) != 0; }
  6295. }
  6296. /// <summary>Clears the value of the "dummy19" field</summary>
  6297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6298. public void ClearDummy19() {
  6299. _hasBits0 &= ~262144;
  6300. }
  6301. /// <summary>Field number for the "dummy20" field.</summary>
  6302. public const int Dummy20FieldNumber = 20;
  6303. private readonly static int Dummy20DefaultValue = 0;
  6304. private int dummy20_;
  6305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6306. public int Dummy20 {
  6307. get { if ((_hasBits0 & 524288) != 0) { return dummy20_; } else { return Dummy20DefaultValue; } }
  6308. set {
  6309. _hasBits0 |= 524288;
  6310. dummy20_ = value;
  6311. }
  6312. }
  6313. /// <summary>Gets whether the "dummy20" field is set</summary>
  6314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6315. public bool HasDummy20 {
  6316. get { return (_hasBits0 & 524288) != 0; }
  6317. }
  6318. /// <summary>Clears the value of the "dummy20" field</summary>
  6319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6320. public void ClearDummy20() {
  6321. _hasBits0 &= ~524288;
  6322. }
  6323. /// <summary>Field number for the "dummy21" field.</summary>
  6324. public const int Dummy21FieldNumber = 21;
  6325. private readonly static int Dummy21DefaultValue = 0;
  6326. private int dummy21_;
  6327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6328. public int Dummy21 {
  6329. get { if ((_hasBits0 & 1048576) != 0) { return dummy21_; } else { return Dummy21DefaultValue; } }
  6330. set {
  6331. _hasBits0 |= 1048576;
  6332. dummy21_ = value;
  6333. }
  6334. }
  6335. /// <summary>Gets whether the "dummy21" field is set</summary>
  6336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6337. public bool HasDummy21 {
  6338. get { return (_hasBits0 & 1048576) != 0; }
  6339. }
  6340. /// <summary>Clears the value of the "dummy21" field</summary>
  6341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6342. public void ClearDummy21() {
  6343. _hasBits0 &= ~1048576;
  6344. }
  6345. /// <summary>Field number for the "dummy22" field.</summary>
  6346. public const int Dummy22FieldNumber = 22;
  6347. private readonly static int Dummy22DefaultValue = 0;
  6348. private int dummy22_;
  6349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6350. public int Dummy22 {
  6351. get { if ((_hasBits0 & 2097152) != 0) { return dummy22_; } else { return Dummy22DefaultValue; } }
  6352. set {
  6353. _hasBits0 |= 2097152;
  6354. dummy22_ = value;
  6355. }
  6356. }
  6357. /// <summary>Gets whether the "dummy22" field is set</summary>
  6358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6359. public bool HasDummy22 {
  6360. get { return (_hasBits0 & 2097152) != 0; }
  6361. }
  6362. /// <summary>Clears the value of the "dummy22" field</summary>
  6363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6364. public void ClearDummy22() {
  6365. _hasBits0 &= ~2097152;
  6366. }
  6367. /// <summary>Field number for the "dummy23" field.</summary>
  6368. public const int Dummy23FieldNumber = 23;
  6369. private readonly static int Dummy23DefaultValue = 0;
  6370. private int dummy23_;
  6371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6372. public int Dummy23 {
  6373. get { if ((_hasBits0 & 4194304) != 0) { return dummy23_; } else { return Dummy23DefaultValue; } }
  6374. set {
  6375. _hasBits0 |= 4194304;
  6376. dummy23_ = value;
  6377. }
  6378. }
  6379. /// <summary>Gets whether the "dummy23" field is set</summary>
  6380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6381. public bool HasDummy23 {
  6382. get { return (_hasBits0 & 4194304) != 0; }
  6383. }
  6384. /// <summary>Clears the value of the "dummy23" field</summary>
  6385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6386. public void ClearDummy23() {
  6387. _hasBits0 &= ~4194304;
  6388. }
  6389. /// <summary>Field number for the "dummy24" field.</summary>
  6390. public const int Dummy24FieldNumber = 24;
  6391. private readonly static int Dummy24DefaultValue = 0;
  6392. private int dummy24_;
  6393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6394. public int Dummy24 {
  6395. get { if ((_hasBits0 & 8388608) != 0) { return dummy24_; } else { return Dummy24DefaultValue; } }
  6396. set {
  6397. _hasBits0 |= 8388608;
  6398. dummy24_ = value;
  6399. }
  6400. }
  6401. /// <summary>Gets whether the "dummy24" field is set</summary>
  6402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6403. public bool HasDummy24 {
  6404. get { return (_hasBits0 & 8388608) != 0; }
  6405. }
  6406. /// <summary>Clears the value of the "dummy24" field</summary>
  6407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6408. public void ClearDummy24() {
  6409. _hasBits0 &= ~8388608;
  6410. }
  6411. /// <summary>Field number for the "dummy25" field.</summary>
  6412. public const int Dummy25FieldNumber = 25;
  6413. private readonly static int Dummy25DefaultValue = 0;
  6414. private int dummy25_;
  6415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6416. public int Dummy25 {
  6417. get { if ((_hasBits0 & 16777216) != 0) { return dummy25_; } else { return Dummy25DefaultValue; } }
  6418. set {
  6419. _hasBits0 |= 16777216;
  6420. dummy25_ = value;
  6421. }
  6422. }
  6423. /// <summary>Gets whether the "dummy25" field is set</summary>
  6424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6425. public bool HasDummy25 {
  6426. get { return (_hasBits0 & 16777216) != 0; }
  6427. }
  6428. /// <summary>Clears the value of the "dummy25" field</summary>
  6429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6430. public void ClearDummy25() {
  6431. _hasBits0 &= ~16777216;
  6432. }
  6433. /// <summary>Field number for the "dummy26" field.</summary>
  6434. public const int Dummy26FieldNumber = 26;
  6435. private readonly static int Dummy26DefaultValue = 0;
  6436. private int dummy26_;
  6437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6438. public int Dummy26 {
  6439. get { if ((_hasBits0 & 33554432) != 0) { return dummy26_; } else { return Dummy26DefaultValue; } }
  6440. set {
  6441. _hasBits0 |= 33554432;
  6442. dummy26_ = value;
  6443. }
  6444. }
  6445. /// <summary>Gets whether the "dummy26" field is set</summary>
  6446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6447. public bool HasDummy26 {
  6448. get { return (_hasBits0 & 33554432) != 0; }
  6449. }
  6450. /// <summary>Clears the value of the "dummy26" field</summary>
  6451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6452. public void ClearDummy26() {
  6453. _hasBits0 &= ~33554432;
  6454. }
  6455. /// <summary>Field number for the "dummy27" field.</summary>
  6456. public const int Dummy27FieldNumber = 27;
  6457. private readonly static int Dummy27DefaultValue = 0;
  6458. private int dummy27_;
  6459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6460. public int Dummy27 {
  6461. get { if ((_hasBits0 & 67108864) != 0) { return dummy27_; } else { return Dummy27DefaultValue; } }
  6462. set {
  6463. _hasBits0 |= 67108864;
  6464. dummy27_ = value;
  6465. }
  6466. }
  6467. /// <summary>Gets whether the "dummy27" field is set</summary>
  6468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6469. public bool HasDummy27 {
  6470. get { return (_hasBits0 & 67108864) != 0; }
  6471. }
  6472. /// <summary>Clears the value of the "dummy27" field</summary>
  6473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6474. public void ClearDummy27() {
  6475. _hasBits0 &= ~67108864;
  6476. }
  6477. /// <summary>Field number for the "dummy28" field.</summary>
  6478. public const int Dummy28FieldNumber = 28;
  6479. private readonly static int Dummy28DefaultValue = 0;
  6480. private int dummy28_;
  6481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6482. public int Dummy28 {
  6483. get { if ((_hasBits0 & 134217728) != 0) { return dummy28_; } else { return Dummy28DefaultValue; } }
  6484. set {
  6485. _hasBits0 |= 134217728;
  6486. dummy28_ = value;
  6487. }
  6488. }
  6489. /// <summary>Gets whether the "dummy28" field is set</summary>
  6490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6491. public bool HasDummy28 {
  6492. get { return (_hasBits0 & 134217728) != 0; }
  6493. }
  6494. /// <summary>Clears the value of the "dummy28" field</summary>
  6495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6496. public void ClearDummy28() {
  6497. _hasBits0 &= ~134217728;
  6498. }
  6499. /// <summary>Field number for the "dummy29" field.</summary>
  6500. public const int Dummy29FieldNumber = 29;
  6501. private readonly static int Dummy29DefaultValue = 0;
  6502. private int dummy29_;
  6503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6504. public int Dummy29 {
  6505. get { if ((_hasBits0 & 268435456) != 0) { return dummy29_; } else { return Dummy29DefaultValue; } }
  6506. set {
  6507. _hasBits0 |= 268435456;
  6508. dummy29_ = value;
  6509. }
  6510. }
  6511. /// <summary>Gets whether the "dummy29" field is set</summary>
  6512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6513. public bool HasDummy29 {
  6514. get { return (_hasBits0 & 268435456) != 0; }
  6515. }
  6516. /// <summary>Clears the value of the "dummy29" field</summary>
  6517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6518. public void ClearDummy29() {
  6519. _hasBits0 &= ~268435456;
  6520. }
  6521. /// <summary>Field number for the "dummy30" field.</summary>
  6522. public const int Dummy30FieldNumber = 30;
  6523. private readonly static int Dummy30DefaultValue = 0;
  6524. private int dummy30_;
  6525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6526. public int Dummy30 {
  6527. get { if ((_hasBits0 & 536870912) != 0) { return dummy30_; } else { return Dummy30DefaultValue; } }
  6528. set {
  6529. _hasBits0 |= 536870912;
  6530. dummy30_ = value;
  6531. }
  6532. }
  6533. /// <summary>Gets whether the "dummy30" field is set</summary>
  6534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6535. public bool HasDummy30 {
  6536. get { return (_hasBits0 & 536870912) != 0; }
  6537. }
  6538. /// <summary>Clears the value of the "dummy30" field</summary>
  6539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6540. public void ClearDummy30() {
  6541. _hasBits0 &= ~536870912;
  6542. }
  6543. /// <summary>Field number for the "dummy31" field.</summary>
  6544. public const int Dummy31FieldNumber = 31;
  6545. private readonly static int Dummy31DefaultValue = 0;
  6546. private int dummy31_;
  6547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6548. public int Dummy31 {
  6549. get { if ((_hasBits0 & 1073741824) != 0) { return dummy31_; } else { return Dummy31DefaultValue; } }
  6550. set {
  6551. _hasBits0 |= 1073741824;
  6552. dummy31_ = value;
  6553. }
  6554. }
  6555. /// <summary>Gets whether the "dummy31" field is set</summary>
  6556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6557. public bool HasDummy31 {
  6558. get { return (_hasBits0 & 1073741824) != 0; }
  6559. }
  6560. /// <summary>Clears the value of the "dummy31" field</summary>
  6561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6562. public void ClearDummy31() {
  6563. _hasBits0 &= ~1073741824;
  6564. }
  6565. /// <summary>Field number for the "dummy32" field.</summary>
  6566. public const int Dummy32FieldNumber = 32;
  6567. private readonly static int Dummy32DefaultValue = 0;
  6568. private int dummy32_;
  6569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6570. public int Dummy32 {
  6571. get { if ((_hasBits0 & -2147483648) != 0) { return dummy32_; } else { return Dummy32DefaultValue; } }
  6572. set {
  6573. _hasBits0 |= -2147483648;
  6574. dummy32_ = value;
  6575. }
  6576. }
  6577. /// <summary>Gets whether the "dummy32" field is set</summary>
  6578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6579. public bool HasDummy32 {
  6580. get { return (_hasBits0 & -2147483648) != 0; }
  6581. }
  6582. /// <summary>Clears the value of the "dummy32" field</summary>
  6583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6584. public void ClearDummy32() {
  6585. _hasBits0 &= ~-2147483648;
  6586. }
  6587. /// <summary>Field number for the "c" field.</summary>
  6588. public const int CFieldNumber = 33;
  6589. private readonly static int CDefaultValue = 0;
  6590. private int c_;
  6591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6592. public int C {
  6593. get { if ((_hasBits1 & 1) != 0) { return c_; } else { return CDefaultValue; } }
  6594. set {
  6595. _hasBits1 |= 1;
  6596. c_ = value;
  6597. }
  6598. }
  6599. /// <summary>Gets whether the "c" field is set</summary>
  6600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6601. public bool HasC {
  6602. get { return (_hasBits1 & 1) != 0; }
  6603. }
  6604. /// <summary>Clears the value of the "c" field</summary>
  6605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6606. public void ClearC() {
  6607. _hasBits1 &= ~1;
  6608. }
  6609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6610. public override bool Equals(object other) {
  6611. return Equals(other as TestRequired);
  6612. }
  6613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6614. public bool Equals(TestRequired other) {
  6615. if (ReferenceEquals(other, null)) {
  6616. return false;
  6617. }
  6618. if (ReferenceEquals(other, this)) {
  6619. return true;
  6620. }
  6621. if (A != other.A) return false;
  6622. if (Dummy2 != other.Dummy2) return false;
  6623. if (B != other.B) return false;
  6624. if (Dummy4 != other.Dummy4) return false;
  6625. if (Dummy5 != other.Dummy5) return false;
  6626. if (Dummy6 != other.Dummy6) return false;
  6627. if (Dummy7 != other.Dummy7) return false;
  6628. if (Dummy8 != other.Dummy8) return false;
  6629. if (Dummy9 != other.Dummy9) return false;
  6630. if (Dummy10 != other.Dummy10) return false;
  6631. if (Dummy11 != other.Dummy11) return false;
  6632. if (Dummy12 != other.Dummy12) return false;
  6633. if (Dummy13 != other.Dummy13) return false;
  6634. if (Dummy14 != other.Dummy14) return false;
  6635. if (Dummy15 != other.Dummy15) return false;
  6636. if (Dummy16 != other.Dummy16) return false;
  6637. if (Dummy17 != other.Dummy17) return false;
  6638. if (Dummy18 != other.Dummy18) return false;
  6639. if (Dummy19 != other.Dummy19) return false;
  6640. if (Dummy20 != other.Dummy20) return false;
  6641. if (Dummy21 != other.Dummy21) return false;
  6642. if (Dummy22 != other.Dummy22) return false;
  6643. if (Dummy23 != other.Dummy23) return false;
  6644. if (Dummy24 != other.Dummy24) return false;
  6645. if (Dummy25 != other.Dummy25) return false;
  6646. if (Dummy26 != other.Dummy26) return false;
  6647. if (Dummy27 != other.Dummy27) return false;
  6648. if (Dummy28 != other.Dummy28) return false;
  6649. if (Dummy29 != other.Dummy29) return false;
  6650. if (Dummy30 != other.Dummy30) return false;
  6651. if (Dummy31 != other.Dummy31) return false;
  6652. if (Dummy32 != other.Dummy32) return false;
  6653. if (C != other.C) return false;
  6654. return Equals(_unknownFields, other._unknownFields);
  6655. }
  6656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6657. public override int GetHashCode() {
  6658. int hash = 1;
  6659. if (HasA) hash ^= A.GetHashCode();
  6660. if (HasDummy2) hash ^= Dummy2.GetHashCode();
  6661. if (HasB) hash ^= B.GetHashCode();
  6662. if (HasDummy4) hash ^= Dummy4.GetHashCode();
  6663. if (HasDummy5) hash ^= Dummy5.GetHashCode();
  6664. if (HasDummy6) hash ^= Dummy6.GetHashCode();
  6665. if (HasDummy7) hash ^= Dummy7.GetHashCode();
  6666. if (HasDummy8) hash ^= Dummy8.GetHashCode();
  6667. if (HasDummy9) hash ^= Dummy9.GetHashCode();
  6668. if (HasDummy10) hash ^= Dummy10.GetHashCode();
  6669. if (HasDummy11) hash ^= Dummy11.GetHashCode();
  6670. if (HasDummy12) hash ^= Dummy12.GetHashCode();
  6671. if (HasDummy13) hash ^= Dummy13.GetHashCode();
  6672. if (HasDummy14) hash ^= Dummy14.GetHashCode();
  6673. if (HasDummy15) hash ^= Dummy15.GetHashCode();
  6674. if (HasDummy16) hash ^= Dummy16.GetHashCode();
  6675. if (HasDummy17) hash ^= Dummy17.GetHashCode();
  6676. if (HasDummy18) hash ^= Dummy18.GetHashCode();
  6677. if (HasDummy19) hash ^= Dummy19.GetHashCode();
  6678. if (HasDummy20) hash ^= Dummy20.GetHashCode();
  6679. if (HasDummy21) hash ^= Dummy21.GetHashCode();
  6680. if (HasDummy22) hash ^= Dummy22.GetHashCode();
  6681. if (HasDummy23) hash ^= Dummy23.GetHashCode();
  6682. if (HasDummy24) hash ^= Dummy24.GetHashCode();
  6683. if (HasDummy25) hash ^= Dummy25.GetHashCode();
  6684. if (HasDummy26) hash ^= Dummy26.GetHashCode();
  6685. if (HasDummy27) hash ^= Dummy27.GetHashCode();
  6686. if (HasDummy28) hash ^= Dummy28.GetHashCode();
  6687. if (HasDummy29) hash ^= Dummy29.GetHashCode();
  6688. if (HasDummy30) hash ^= Dummy30.GetHashCode();
  6689. if (HasDummy31) hash ^= Dummy31.GetHashCode();
  6690. if (HasDummy32) hash ^= Dummy32.GetHashCode();
  6691. if (HasC) hash ^= C.GetHashCode();
  6692. if (_unknownFields != null) {
  6693. hash ^= _unknownFields.GetHashCode();
  6694. }
  6695. return hash;
  6696. }
  6697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6698. public override string ToString() {
  6699. return pb::JsonFormatter.ToDiagnosticString(this);
  6700. }
  6701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6702. public void WriteTo(pb::CodedOutputStream output) {
  6703. if (HasA) {
  6704. output.WriteRawTag(8);
  6705. output.WriteInt32(A);
  6706. }
  6707. if (HasDummy2) {
  6708. output.WriteRawTag(16);
  6709. output.WriteInt32(Dummy2);
  6710. }
  6711. if (HasB) {
  6712. output.WriteRawTag(24);
  6713. output.WriteInt32(B);
  6714. }
  6715. if (HasDummy4) {
  6716. output.WriteRawTag(32);
  6717. output.WriteInt32(Dummy4);
  6718. }
  6719. if (HasDummy5) {
  6720. output.WriteRawTag(40);
  6721. output.WriteInt32(Dummy5);
  6722. }
  6723. if (HasDummy6) {
  6724. output.WriteRawTag(48);
  6725. output.WriteInt32(Dummy6);
  6726. }
  6727. if (HasDummy7) {
  6728. output.WriteRawTag(56);
  6729. output.WriteInt32(Dummy7);
  6730. }
  6731. if (HasDummy8) {
  6732. output.WriteRawTag(64);
  6733. output.WriteInt32(Dummy8);
  6734. }
  6735. if (HasDummy9) {
  6736. output.WriteRawTag(72);
  6737. output.WriteInt32(Dummy9);
  6738. }
  6739. if (HasDummy10) {
  6740. output.WriteRawTag(80);
  6741. output.WriteInt32(Dummy10);
  6742. }
  6743. if (HasDummy11) {
  6744. output.WriteRawTag(88);
  6745. output.WriteInt32(Dummy11);
  6746. }
  6747. if (HasDummy12) {
  6748. output.WriteRawTag(96);
  6749. output.WriteInt32(Dummy12);
  6750. }
  6751. if (HasDummy13) {
  6752. output.WriteRawTag(104);
  6753. output.WriteInt32(Dummy13);
  6754. }
  6755. if (HasDummy14) {
  6756. output.WriteRawTag(112);
  6757. output.WriteInt32(Dummy14);
  6758. }
  6759. if (HasDummy15) {
  6760. output.WriteRawTag(120);
  6761. output.WriteInt32(Dummy15);
  6762. }
  6763. if (HasDummy16) {
  6764. output.WriteRawTag(128, 1);
  6765. output.WriteInt32(Dummy16);
  6766. }
  6767. if (HasDummy17) {
  6768. output.WriteRawTag(136, 1);
  6769. output.WriteInt32(Dummy17);
  6770. }
  6771. if (HasDummy18) {
  6772. output.WriteRawTag(144, 1);
  6773. output.WriteInt32(Dummy18);
  6774. }
  6775. if (HasDummy19) {
  6776. output.WriteRawTag(152, 1);
  6777. output.WriteInt32(Dummy19);
  6778. }
  6779. if (HasDummy20) {
  6780. output.WriteRawTag(160, 1);
  6781. output.WriteInt32(Dummy20);
  6782. }
  6783. if (HasDummy21) {
  6784. output.WriteRawTag(168, 1);
  6785. output.WriteInt32(Dummy21);
  6786. }
  6787. if (HasDummy22) {
  6788. output.WriteRawTag(176, 1);
  6789. output.WriteInt32(Dummy22);
  6790. }
  6791. if (HasDummy23) {
  6792. output.WriteRawTag(184, 1);
  6793. output.WriteInt32(Dummy23);
  6794. }
  6795. if (HasDummy24) {
  6796. output.WriteRawTag(192, 1);
  6797. output.WriteInt32(Dummy24);
  6798. }
  6799. if (HasDummy25) {
  6800. output.WriteRawTag(200, 1);
  6801. output.WriteInt32(Dummy25);
  6802. }
  6803. if (HasDummy26) {
  6804. output.WriteRawTag(208, 1);
  6805. output.WriteInt32(Dummy26);
  6806. }
  6807. if (HasDummy27) {
  6808. output.WriteRawTag(216, 1);
  6809. output.WriteInt32(Dummy27);
  6810. }
  6811. if (HasDummy28) {
  6812. output.WriteRawTag(224, 1);
  6813. output.WriteInt32(Dummy28);
  6814. }
  6815. if (HasDummy29) {
  6816. output.WriteRawTag(232, 1);
  6817. output.WriteInt32(Dummy29);
  6818. }
  6819. if (HasDummy30) {
  6820. output.WriteRawTag(240, 1);
  6821. output.WriteInt32(Dummy30);
  6822. }
  6823. if (HasDummy31) {
  6824. output.WriteRawTag(248, 1);
  6825. output.WriteInt32(Dummy31);
  6826. }
  6827. if (HasDummy32) {
  6828. output.WriteRawTag(128, 2);
  6829. output.WriteInt32(Dummy32);
  6830. }
  6831. if (HasC) {
  6832. output.WriteRawTag(136, 2);
  6833. output.WriteInt32(C);
  6834. }
  6835. if (_unknownFields != null) {
  6836. _unknownFields.WriteTo(output);
  6837. }
  6838. }
  6839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6840. public int CalculateSize() {
  6841. int size = 0;
  6842. if (HasA) {
  6843. size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
  6844. }
  6845. if (HasDummy2) {
  6846. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy2);
  6847. }
  6848. if (HasB) {
  6849. size += 1 + pb::CodedOutputStream.ComputeInt32Size(B);
  6850. }
  6851. if (HasDummy4) {
  6852. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy4);
  6853. }
  6854. if (HasDummy5) {
  6855. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy5);
  6856. }
  6857. if (HasDummy6) {
  6858. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy6);
  6859. }
  6860. if (HasDummy7) {
  6861. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy7);
  6862. }
  6863. if (HasDummy8) {
  6864. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy8);
  6865. }
  6866. if (HasDummy9) {
  6867. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy9);
  6868. }
  6869. if (HasDummy10) {
  6870. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy10);
  6871. }
  6872. if (HasDummy11) {
  6873. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy11);
  6874. }
  6875. if (HasDummy12) {
  6876. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy12);
  6877. }
  6878. if (HasDummy13) {
  6879. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy13);
  6880. }
  6881. if (HasDummy14) {
  6882. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy14);
  6883. }
  6884. if (HasDummy15) {
  6885. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy15);
  6886. }
  6887. if (HasDummy16) {
  6888. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy16);
  6889. }
  6890. if (HasDummy17) {
  6891. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy17);
  6892. }
  6893. if (HasDummy18) {
  6894. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy18);
  6895. }
  6896. if (HasDummy19) {
  6897. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy19);
  6898. }
  6899. if (HasDummy20) {
  6900. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy20);
  6901. }
  6902. if (HasDummy21) {
  6903. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy21);
  6904. }
  6905. if (HasDummy22) {
  6906. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy22);
  6907. }
  6908. if (HasDummy23) {
  6909. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy23);
  6910. }
  6911. if (HasDummy24) {
  6912. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy24);
  6913. }
  6914. if (HasDummy25) {
  6915. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy25);
  6916. }
  6917. if (HasDummy26) {
  6918. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy26);
  6919. }
  6920. if (HasDummy27) {
  6921. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy27);
  6922. }
  6923. if (HasDummy28) {
  6924. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy28);
  6925. }
  6926. if (HasDummy29) {
  6927. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy29);
  6928. }
  6929. if (HasDummy30) {
  6930. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy30);
  6931. }
  6932. if (HasDummy31) {
  6933. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy31);
  6934. }
  6935. if (HasDummy32) {
  6936. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy32);
  6937. }
  6938. if (HasC) {
  6939. size += 2 + pb::CodedOutputStream.ComputeInt32Size(C);
  6940. }
  6941. if (_unknownFields != null) {
  6942. size += _unknownFields.CalculateSize();
  6943. }
  6944. return size;
  6945. }
  6946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  6947. public void MergeFrom(TestRequired other) {
  6948. if (other == null) {
  6949. return;
  6950. }
  6951. if (other.HasA) {
  6952. A = other.A;
  6953. }
  6954. if (other.HasDummy2) {
  6955. Dummy2 = other.Dummy2;
  6956. }
  6957. if (other.HasB) {
  6958. B = other.B;
  6959. }
  6960. if (other.HasDummy4) {
  6961. Dummy4 = other.Dummy4;
  6962. }
  6963. if (other.HasDummy5) {
  6964. Dummy5 = other.Dummy5;
  6965. }
  6966. if (other.HasDummy6) {
  6967. Dummy6 = other.Dummy6;
  6968. }
  6969. if (other.HasDummy7) {
  6970. Dummy7 = other.Dummy7;
  6971. }
  6972. if (other.HasDummy8) {
  6973. Dummy8 = other.Dummy8;
  6974. }
  6975. if (other.HasDummy9) {
  6976. Dummy9 = other.Dummy9;
  6977. }
  6978. if (other.HasDummy10) {
  6979. Dummy10 = other.Dummy10;
  6980. }
  6981. if (other.HasDummy11) {
  6982. Dummy11 = other.Dummy11;
  6983. }
  6984. if (other.HasDummy12) {
  6985. Dummy12 = other.Dummy12;
  6986. }
  6987. if (other.HasDummy13) {
  6988. Dummy13 = other.Dummy13;
  6989. }
  6990. if (other.HasDummy14) {
  6991. Dummy14 = other.Dummy14;
  6992. }
  6993. if (other.HasDummy15) {
  6994. Dummy15 = other.Dummy15;
  6995. }
  6996. if (other.HasDummy16) {
  6997. Dummy16 = other.Dummy16;
  6998. }
  6999. if (other.HasDummy17) {
  7000. Dummy17 = other.Dummy17;
  7001. }
  7002. if (other.HasDummy18) {
  7003. Dummy18 = other.Dummy18;
  7004. }
  7005. if (other.HasDummy19) {
  7006. Dummy19 = other.Dummy19;
  7007. }
  7008. if (other.HasDummy20) {
  7009. Dummy20 = other.Dummy20;
  7010. }
  7011. if (other.HasDummy21) {
  7012. Dummy21 = other.Dummy21;
  7013. }
  7014. if (other.HasDummy22) {
  7015. Dummy22 = other.Dummy22;
  7016. }
  7017. if (other.HasDummy23) {
  7018. Dummy23 = other.Dummy23;
  7019. }
  7020. if (other.HasDummy24) {
  7021. Dummy24 = other.Dummy24;
  7022. }
  7023. if (other.HasDummy25) {
  7024. Dummy25 = other.Dummy25;
  7025. }
  7026. if (other.HasDummy26) {
  7027. Dummy26 = other.Dummy26;
  7028. }
  7029. if (other.HasDummy27) {
  7030. Dummy27 = other.Dummy27;
  7031. }
  7032. if (other.HasDummy28) {
  7033. Dummy28 = other.Dummy28;
  7034. }
  7035. if (other.HasDummy29) {
  7036. Dummy29 = other.Dummy29;
  7037. }
  7038. if (other.HasDummy30) {
  7039. Dummy30 = other.Dummy30;
  7040. }
  7041. if (other.HasDummy31) {
  7042. Dummy31 = other.Dummy31;
  7043. }
  7044. if (other.HasDummy32) {
  7045. Dummy32 = other.Dummy32;
  7046. }
  7047. if (other.HasC) {
  7048. C = other.C;
  7049. }
  7050. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  7051. }
  7052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7053. public void MergeFrom(pb::CodedInputStream input) {
  7054. uint tag;
  7055. while ((tag = input.ReadTag()) != 0) {
  7056. switch(tag) {
  7057. default:
  7058. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  7059. break;
  7060. case 8: {
  7061. A = input.ReadInt32();
  7062. break;
  7063. }
  7064. case 16: {
  7065. Dummy2 = input.ReadInt32();
  7066. break;
  7067. }
  7068. case 24: {
  7069. B = input.ReadInt32();
  7070. break;
  7071. }
  7072. case 32: {
  7073. Dummy4 = input.ReadInt32();
  7074. break;
  7075. }
  7076. case 40: {
  7077. Dummy5 = input.ReadInt32();
  7078. break;
  7079. }
  7080. case 48: {
  7081. Dummy6 = input.ReadInt32();
  7082. break;
  7083. }
  7084. case 56: {
  7085. Dummy7 = input.ReadInt32();
  7086. break;
  7087. }
  7088. case 64: {
  7089. Dummy8 = input.ReadInt32();
  7090. break;
  7091. }
  7092. case 72: {
  7093. Dummy9 = input.ReadInt32();
  7094. break;
  7095. }
  7096. case 80: {
  7097. Dummy10 = input.ReadInt32();
  7098. break;
  7099. }
  7100. case 88: {
  7101. Dummy11 = input.ReadInt32();
  7102. break;
  7103. }
  7104. case 96: {
  7105. Dummy12 = input.ReadInt32();
  7106. break;
  7107. }
  7108. case 104: {
  7109. Dummy13 = input.ReadInt32();
  7110. break;
  7111. }
  7112. case 112: {
  7113. Dummy14 = input.ReadInt32();
  7114. break;
  7115. }
  7116. case 120: {
  7117. Dummy15 = input.ReadInt32();
  7118. break;
  7119. }
  7120. case 128: {
  7121. Dummy16 = input.ReadInt32();
  7122. break;
  7123. }
  7124. case 136: {
  7125. Dummy17 = input.ReadInt32();
  7126. break;
  7127. }
  7128. case 144: {
  7129. Dummy18 = input.ReadInt32();
  7130. break;
  7131. }
  7132. case 152: {
  7133. Dummy19 = input.ReadInt32();
  7134. break;
  7135. }
  7136. case 160: {
  7137. Dummy20 = input.ReadInt32();
  7138. break;
  7139. }
  7140. case 168: {
  7141. Dummy21 = input.ReadInt32();
  7142. break;
  7143. }
  7144. case 176: {
  7145. Dummy22 = input.ReadInt32();
  7146. break;
  7147. }
  7148. case 184: {
  7149. Dummy23 = input.ReadInt32();
  7150. break;
  7151. }
  7152. case 192: {
  7153. Dummy24 = input.ReadInt32();
  7154. break;
  7155. }
  7156. case 200: {
  7157. Dummy25 = input.ReadInt32();
  7158. break;
  7159. }
  7160. case 208: {
  7161. Dummy26 = input.ReadInt32();
  7162. break;
  7163. }
  7164. case 216: {
  7165. Dummy27 = input.ReadInt32();
  7166. break;
  7167. }
  7168. case 224: {
  7169. Dummy28 = input.ReadInt32();
  7170. break;
  7171. }
  7172. case 232: {
  7173. Dummy29 = input.ReadInt32();
  7174. break;
  7175. }
  7176. case 240: {
  7177. Dummy30 = input.ReadInt32();
  7178. break;
  7179. }
  7180. case 248: {
  7181. Dummy31 = input.ReadInt32();
  7182. break;
  7183. }
  7184. case 256: {
  7185. Dummy32 = input.ReadInt32();
  7186. break;
  7187. }
  7188. case 264: {
  7189. C = input.ReadInt32();
  7190. break;
  7191. }
  7192. }
  7193. }
  7194. }
  7195. #region Extensions
  7196. /// <summary>Container for extensions for other messages declared in the TestRequired message type.</summary>
  7197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7198. public static partial class Extensions {
  7199. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestRequired> Single =
  7200. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestRequired>(1000, pb::FieldCodec.ForMessage(8002, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser));
  7201. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestRequired> Multi =
  7202. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestRequired>(1001, pb::FieldCodec.ForMessage(8010, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser));
  7203. }
  7204. #endregion
  7205. }
  7206. public sealed partial class TestRequiredForeign : pb::IMessage<TestRequiredForeign> {
  7207. private static readonly pb::MessageParser<TestRequiredForeign> _parser = new pb::MessageParser<TestRequiredForeign>(() => new TestRequiredForeign());
  7208. private pb::UnknownFieldSet _unknownFields;
  7209. private int _hasBits0;
  7210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7211. public static pb::MessageParser<TestRequiredForeign> Parser { get { return _parser; } }
  7212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7213. public static pbr::MessageDescriptor Descriptor {
  7214. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[13]; }
  7215. }
  7216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7217. pbr::MessageDescriptor pb::IMessage.Descriptor {
  7218. get { return Descriptor; }
  7219. }
  7220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7221. public TestRequiredForeign() {
  7222. OnConstruction();
  7223. }
  7224. partial void OnConstruction();
  7225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7226. public TestRequiredForeign(TestRequiredForeign other) : this() {
  7227. _hasBits0 = other._hasBits0;
  7228. optionalMessage_ = other.optionalMessage_ != null ? other.optionalMessage_.Clone() : null;
  7229. repeatedMessage_ = other.repeatedMessage_.Clone();
  7230. dummy_ = other.dummy_;
  7231. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  7232. }
  7233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7234. public TestRequiredForeign Clone() {
  7235. return new TestRequiredForeign(this);
  7236. }
  7237. /// <summary>Field number for the "optional_message" field.</summary>
  7238. public const int OptionalMessageFieldNumber = 1;
  7239. private global::Google.Protobuf.TestProtos.Proto2.TestRequired optionalMessage_;
  7240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7241. public global::Google.Protobuf.TestProtos.Proto2.TestRequired OptionalMessage {
  7242. get { return optionalMessage_; }
  7243. set {
  7244. optionalMessage_ = value;
  7245. }
  7246. }
  7247. /// <summary>Field number for the "repeated_message" field.</summary>
  7248. public const int RepeatedMessageFieldNumber = 2;
  7249. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestRequired> _repeated_repeatedMessage_codec
  7250. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser);
  7251. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> repeatedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired>();
  7252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7253. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> RepeatedMessage {
  7254. get { return repeatedMessage_; }
  7255. }
  7256. /// <summary>Field number for the "dummy" field.</summary>
  7257. public const int DummyFieldNumber = 3;
  7258. private readonly static int DummyDefaultValue = 0;
  7259. private int dummy_;
  7260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7261. public int Dummy {
  7262. get { if ((_hasBits0 & 1) != 0) { return dummy_; } else { return DummyDefaultValue; } }
  7263. set {
  7264. _hasBits0 |= 1;
  7265. dummy_ = value;
  7266. }
  7267. }
  7268. /// <summary>Gets whether the "dummy" field is set</summary>
  7269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7270. public bool HasDummy {
  7271. get { return (_hasBits0 & 1) != 0; }
  7272. }
  7273. /// <summary>Clears the value of the "dummy" field</summary>
  7274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7275. public void ClearDummy() {
  7276. _hasBits0 &= ~1;
  7277. }
  7278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7279. public override bool Equals(object other) {
  7280. return Equals(other as TestRequiredForeign);
  7281. }
  7282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7283. public bool Equals(TestRequiredForeign other) {
  7284. if (ReferenceEquals(other, null)) {
  7285. return false;
  7286. }
  7287. if (ReferenceEquals(other, this)) {
  7288. return true;
  7289. }
  7290. if (!object.Equals(OptionalMessage, other.OptionalMessage)) return false;
  7291. if(!repeatedMessage_.Equals(other.repeatedMessage_)) return false;
  7292. if (Dummy != other.Dummy) return false;
  7293. return Equals(_unknownFields, other._unknownFields);
  7294. }
  7295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7296. public override int GetHashCode() {
  7297. int hash = 1;
  7298. if (optionalMessage_ != null) hash ^= OptionalMessage.GetHashCode();
  7299. hash ^= repeatedMessage_.GetHashCode();
  7300. if (HasDummy) hash ^= Dummy.GetHashCode();
  7301. if (_unknownFields != null) {
  7302. hash ^= _unknownFields.GetHashCode();
  7303. }
  7304. return hash;
  7305. }
  7306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7307. public override string ToString() {
  7308. return pb::JsonFormatter.ToDiagnosticString(this);
  7309. }
  7310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7311. public void WriteTo(pb::CodedOutputStream output) {
  7312. if (optionalMessage_ != null) {
  7313. output.WriteRawTag(10);
  7314. output.WriteMessage(OptionalMessage);
  7315. }
  7316. repeatedMessage_.WriteTo(output, _repeated_repeatedMessage_codec);
  7317. if (HasDummy) {
  7318. output.WriteRawTag(24);
  7319. output.WriteInt32(Dummy);
  7320. }
  7321. if (_unknownFields != null) {
  7322. _unknownFields.WriteTo(output);
  7323. }
  7324. }
  7325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7326. public int CalculateSize() {
  7327. int size = 0;
  7328. if (optionalMessage_ != null) {
  7329. size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalMessage);
  7330. }
  7331. size += repeatedMessage_.CalculateSize(_repeated_repeatedMessage_codec);
  7332. if (HasDummy) {
  7333. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy);
  7334. }
  7335. if (_unknownFields != null) {
  7336. size += _unknownFields.CalculateSize();
  7337. }
  7338. return size;
  7339. }
  7340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7341. public void MergeFrom(TestRequiredForeign other) {
  7342. if (other == null) {
  7343. return;
  7344. }
  7345. if (other.optionalMessage_ != null) {
  7346. if (optionalMessage_ == null) {
  7347. OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
  7348. }
  7349. OptionalMessage.MergeFrom(other.OptionalMessage);
  7350. }
  7351. repeatedMessage_.Add(other.repeatedMessage_);
  7352. if (other.HasDummy) {
  7353. Dummy = other.Dummy;
  7354. }
  7355. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  7356. }
  7357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7358. public void MergeFrom(pb::CodedInputStream input) {
  7359. uint tag;
  7360. while ((tag = input.ReadTag()) != 0) {
  7361. switch(tag) {
  7362. default:
  7363. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  7364. break;
  7365. case 10: {
  7366. if (optionalMessage_ == null) {
  7367. OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
  7368. }
  7369. input.ReadMessage(OptionalMessage);
  7370. break;
  7371. }
  7372. case 18: {
  7373. repeatedMessage_.AddEntriesFrom(input, _repeated_repeatedMessage_codec);
  7374. break;
  7375. }
  7376. case 24: {
  7377. Dummy = input.ReadInt32();
  7378. break;
  7379. }
  7380. }
  7381. }
  7382. }
  7383. }
  7384. public sealed partial class TestRequiredMessage : pb::IMessage<TestRequiredMessage> {
  7385. private static readonly pb::MessageParser<TestRequiredMessage> _parser = new pb::MessageParser<TestRequiredMessage>(() => new TestRequiredMessage());
  7386. private pb::UnknownFieldSet _unknownFields;
  7387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7388. public static pb::MessageParser<TestRequiredMessage> Parser { get { return _parser; } }
  7389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7390. public static pbr::MessageDescriptor Descriptor {
  7391. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[14]; }
  7392. }
  7393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7394. pbr::MessageDescriptor pb::IMessage.Descriptor {
  7395. get { return Descriptor; }
  7396. }
  7397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7398. public TestRequiredMessage() {
  7399. OnConstruction();
  7400. }
  7401. partial void OnConstruction();
  7402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7403. public TestRequiredMessage(TestRequiredMessage other) : this() {
  7404. optionalMessage_ = other.optionalMessage_ != null ? other.optionalMessage_.Clone() : null;
  7405. repeatedMessage_ = other.repeatedMessage_.Clone();
  7406. requiredMessage_ = other.requiredMessage_ != null ? other.requiredMessage_.Clone() : null;
  7407. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  7408. }
  7409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7410. public TestRequiredMessage Clone() {
  7411. return new TestRequiredMessage(this);
  7412. }
  7413. /// <summary>Field number for the "optional_message" field.</summary>
  7414. public const int OptionalMessageFieldNumber = 1;
  7415. private global::Google.Protobuf.TestProtos.Proto2.TestRequired optionalMessage_;
  7416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7417. public global::Google.Protobuf.TestProtos.Proto2.TestRequired OptionalMessage {
  7418. get { return optionalMessage_; }
  7419. set {
  7420. optionalMessage_ = value;
  7421. }
  7422. }
  7423. /// <summary>Field number for the "repeated_message" field.</summary>
  7424. public const int RepeatedMessageFieldNumber = 2;
  7425. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestRequired> _repeated_repeatedMessage_codec
  7426. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser);
  7427. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> repeatedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired>();
  7428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7429. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> RepeatedMessage {
  7430. get { return repeatedMessage_; }
  7431. }
  7432. /// <summary>Field number for the "required_message" field.</summary>
  7433. public const int RequiredMessageFieldNumber = 3;
  7434. private global::Google.Protobuf.TestProtos.Proto2.TestRequired requiredMessage_;
  7435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7436. public global::Google.Protobuf.TestProtos.Proto2.TestRequired RequiredMessage {
  7437. get { return requiredMessage_; }
  7438. set {
  7439. requiredMessage_ = value;
  7440. }
  7441. }
  7442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7443. public override bool Equals(object other) {
  7444. return Equals(other as TestRequiredMessage);
  7445. }
  7446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7447. public bool Equals(TestRequiredMessage other) {
  7448. if (ReferenceEquals(other, null)) {
  7449. return false;
  7450. }
  7451. if (ReferenceEquals(other, this)) {
  7452. return true;
  7453. }
  7454. if (!object.Equals(OptionalMessage, other.OptionalMessage)) return false;
  7455. if(!repeatedMessage_.Equals(other.repeatedMessage_)) return false;
  7456. if (!object.Equals(RequiredMessage, other.RequiredMessage)) return false;
  7457. return Equals(_unknownFields, other._unknownFields);
  7458. }
  7459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7460. public override int GetHashCode() {
  7461. int hash = 1;
  7462. if (optionalMessage_ != null) hash ^= OptionalMessage.GetHashCode();
  7463. hash ^= repeatedMessage_.GetHashCode();
  7464. if (requiredMessage_ != null) hash ^= RequiredMessage.GetHashCode();
  7465. if (_unknownFields != null) {
  7466. hash ^= _unknownFields.GetHashCode();
  7467. }
  7468. return hash;
  7469. }
  7470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7471. public override string ToString() {
  7472. return pb::JsonFormatter.ToDiagnosticString(this);
  7473. }
  7474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7475. public void WriteTo(pb::CodedOutputStream output) {
  7476. if (optionalMessage_ != null) {
  7477. output.WriteRawTag(10);
  7478. output.WriteMessage(OptionalMessage);
  7479. }
  7480. repeatedMessage_.WriteTo(output, _repeated_repeatedMessage_codec);
  7481. if (requiredMessage_ != null) {
  7482. output.WriteRawTag(26);
  7483. output.WriteMessage(RequiredMessage);
  7484. }
  7485. if (_unknownFields != null) {
  7486. _unknownFields.WriteTo(output);
  7487. }
  7488. }
  7489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7490. public int CalculateSize() {
  7491. int size = 0;
  7492. if (optionalMessage_ != null) {
  7493. size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalMessage);
  7494. }
  7495. size += repeatedMessage_.CalculateSize(_repeated_repeatedMessage_codec);
  7496. if (requiredMessage_ != null) {
  7497. size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequiredMessage);
  7498. }
  7499. if (_unknownFields != null) {
  7500. size += _unknownFields.CalculateSize();
  7501. }
  7502. return size;
  7503. }
  7504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7505. public void MergeFrom(TestRequiredMessage other) {
  7506. if (other == null) {
  7507. return;
  7508. }
  7509. if (other.optionalMessage_ != null) {
  7510. if (optionalMessage_ == null) {
  7511. OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
  7512. }
  7513. OptionalMessage.MergeFrom(other.OptionalMessage);
  7514. }
  7515. repeatedMessage_.Add(other.repeatedMessage_);
  7516. if (other.requiredMessage_ != null) {
  7517. if (requiredMessage_ == null) {
  7518. RequiredMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
  7519. }
  7520. RequiredMessage.MergeFrom(other.RequiredMessage);
  7521. }
  7522. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  7523. }
  7524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7525. public void MergeFrom(pb::CodedInputStream input) {
  7526. uint tag;
  7527. while ((tag = input.ReadTag()) != 0) {
  7528. switch(tag) {
  7529. default:
  7530. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  7531. break;
  7532. case 10: {
  7533. if (optionalMessage_ == null) {
  7534. OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
  7535. }
  7536. input.ReadMessage(OptionalMessage);
  7537. break;
  7538. }
  7539. case 18: {
  7540. repeatedMessage_.AddEntriesFrom(input, _repeated_repeatedMessage_codec);
  7541. break;
  7542. }
  7543. case 26: {
  7544. if (requiredMessage_ == null) {
  7545. RequiredMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
  7546. }
  7547. input.ReadMessage(RequiredMessage);
  7548. break;
  7549. }
  7550. }
  7551. }
  7552. }
  7553. }
  7554. /// <summary>
  7555. /// Test that we can use NestedMessage from outside TestAllTypes.
  7556. /// </summary>
  7557. public sealed partial class TestForeignNested : pb::IMessage<TestForeignNested> {
  7558. private static readonly pb::MessageParser<TestForeignNested> _parser = new pb::MessageParser<TestForeignNested>(() => new TestForeignNested());
  7559. private pb::UnknownFieldSet _unknownFields;
  7560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7561. public static pb::MessageParser<TestForeignNested> Parser { get { return _parser; } }
  7562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7563. public static pbr::MessageDescriptor Descriptor {
  7564. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[15]; }
  7565. }
  7566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7567. pbr::MessageDescriptor pb::IMessage.Descriptor {
  7568. get { return Descriptor; }
  7569. }
  7570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7571. public TestForeignNested() {
  7572. OnConstruction();
  7573. }
  7574. partial void OnConstruction();
  7575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7576. public TestForeignNested(TestForeignNested other) : this() {
  7577. foreignNested_ = other.foreignNested_ != null ? other.foreignNested_.Clone() : null;
  7578. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  7579. }
  7580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7581. public TestForeignNested Clone() {
  7582. return new TestForeignNested(this);
  7583. }
  7584. /// <summary>Field number for the "foreign_nested" field.</summary>
  7585. public const int ForeignNestedFieldNumber = 1;
  7586. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage foreignNested_;
  7587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7588. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage ForeignNested {
  7589. get { return foreignNested_; }
  7590. set {
  7591. foreignNested_ = value;
  7592. }
  7593. }
  7594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7595. public override bool Equals(object other) {
  7596. return Equals(other as TestForeignNested);
  7597. }
  7598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7599. public bool Equals(TestForeignNested other) {
  7600. if (ReferenceEquals(other, null)) {
  7601. return false;
  7602. }
  7603. if (ReferenceEquals(other, this)) {
  7604. return true;
  7605. }
  7606. if (!object.Equals(ForeignNested, other.ForeignNested)) return false;
  7607. return Equals(_unknownFields, other._unknownFields);
  7608. }
  7609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7610. public override int GetHashCode() {
  7611. int hash = 1;
  7612. if (foreignNested_ != null) hash ^= ForeignNested.GetHashCode();
  7613. if (_unknownFields != null) {
  7614. hash ^= _unknownFields.GetHashCode();
  7615. }
  7616. return hash;
  7617. }
  7618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7619. public override string ToString() {
  7620. return pb::JsonFormatter.ToDiagnosticString(this);
  7621. }
  7622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7623. public void WriteTo(pb::CodedOutputStream output) {
  7624. if (foreignNested_ != null) {
  7625. output.WriteRawTag(10);
  7626. output.WriteMessage(ForeignNested);
  7627. }
  7628. if (_unknownFields != null) {
  7629. _unknownFields.WriteTo(output);
  7630. }
  7631. }
  7632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7633. public int CalculateSize() {
  7634. int size = 0;
  7635. if (foreignNested_ != null) {
  7636. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ForeignNested);
  7637. }
  7638. if (_unknownFields != null) {
  7639. size += _unknownFields.CalculateSize();
  7640. }
  7641. return size;
  7642. }
  7643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7644. public void MergeFrom(TestForeignNested other) {
  7645. if (other == null) {
  7646. return;
  7647. }
  7648. if (other.foreignNested_ != null) {
  7649. if (foreignNested_ == null) {
  7650. ForeignNested = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
  7651. }
  7652. ForeignNested.MergeFrom(other.ForeignNested);
  7653. }
  7654. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  7655. }
  7656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7657. public void MergeFrom(pb::CodedInputStream input) {
  7658. uint tag;
  7659. while ((tag = input.ReadTag()) != 0) {
  7660. switch(tag) {
  7661. default:
  7662. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  7663. break;
  7664. case 10: {
  7665. if (foreignNested_ == null) {
  7666. ForeignNested = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
  7667. }
  7668. input.ReadMessage(ForeignNested);
  7669. break;
  7670. }
  7671. }
  7672. }
  7673. }
  7674. }
  7675. /// <summary>
  7676. /// TestEmptyMessage is used to test unknown field support.
  7677. /// </summary>
  7678. public sealed partial class TestEmptyMessage : pb::IMessage<TestEmptyMessage> {
  7679. private static readonly pb::MessageParser<TestEmptyMessage> _parser = new pb::MessageParser<TestEmptyMessage>(() => new TestEmptyMessage());
  7680. private pb::UnknownFieldSet _unknownFields;
  7681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7682. public static pb::MessageParser<TestEmptyMessage> Parser { get { return _parser; } }
  7683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7684. public static pbr::MessageDescriptor Descriptor {
  7685. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[16]; }
  7686. }
  7687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7688. pbr::MessageDescriptor pb::IMessage.Descriptor {
  7689. get { return Descriptor; }
  7690. }
  7691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7692. public TestEmptyMessage() {
  7693. OnConstruction();
  7694. }
  7695. partial void OnConstruction();
  7696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7697. public TestEmptyMessage(TestEmptyMessage other) : this() {
  7698. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  7699. }
  7700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7701. public TestEmptyMessage Clone() {
  7702. return new TestEmptyMessage(this);
  7703. }
  7704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7705. public override bool Equals(object other) {
  7706. return Equals(other as TestEmptyMessage);
  7707. }
  7708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7709. public bool Equals(TestEmptyMessage other) {
  7710. if (ReferenceEquals(other, null)) {
  7711. return false;
  7712. }
  7713. if (ReferenceEquals(other, this)) {
  7714. return true;
  7715. }
  7716. return Equals(_unknownFields, other._unknownFields);
  7717. }
  7718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7719. public override int GetHashCode() {
  7720. int hash = 1;
  7721. if (_unknownFields != null) {
  7722. hash ^= _unknownFields.GetHashCode();
  7723. }
  7724. return hash;
  7725. }
  7726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7727. public override string ToString() {
  7728. return pb::JsonFormatter.ToDiagnosticString(this);
  7729. }
  7730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7731. public void WriteTo(pb::CodedOutputStream output) {
  7732. if (_unknownFields != null) {
  7733. _unknownFields.WriteTo(output);
  7734. }
  7735. }
  7736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7737. public int CalculateSize() {
  7738. int size = 0;
  7739. if (_unknownFields != null) {
  7740. size += _unknownFields.CalculateSize();
  7741. }
  7742. return size;
  7743. }
  7744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7745. public void MergeFrom(TestEmptyMessage other) {
  7746. if (other == null) {
  7747. return;
  7748. }
  7749. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  7750. }
  7751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7752. public void MergeFrom(pb::CodedInputStream input) {
  7753. uint tag;
  7754. while ((tag = input.ReadTag()) != 0) {
  7755. switch(tag) {
  7756. default:
  7757. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  7758. break;
  7759. }
  7760. }
  7761. }
  7762. }
  7763. /// <summary>
  7764. /// Like above, but declare all field numbers as potential extensions. No
  7765. /// actual extensions should ever be defined for this type.
  7766. /// </summary>
  7767. public sealed partial class TestEmptyMessageWithExtensions : pb::IExtendableMessage<TestEmptyMessageWithExtensions> {
  7768. private static readonly pb::MessageParser<TestEmptyMessageWithExtensions> _parser = new pb::MessageParser<TestEmptyMessageWithExtensions>(() => new TestEmptyMessageWithExtensions());
  7769. private pb::UnknownFieldSet _unknownFields;
  7770. private pb::ExtensionSet<TestEmptyMessageWithExtensions> _extensions;
  7771. private pb::ExtensionSet<TestEmptyMessageWithExtensions> _Extensions { get { return _extensions; } }
  7772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7773. public static pb::MessageParser<TestEmptyMessageWithExtensions> Parser { get { return _parser; } }
  7774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7775. public static pbr::MessageDescriptor Descriptor {
  7776. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[17]; }
  7777. }
  7778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7779. pbr::MessageDescriptor pb::IMessage.Descriptor {
  7780. get { return Descriptor; }
  7781. }
  7782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7783. public TestEmptyMessageWithExtensions() {
  7784. OnConstruction();
  7785. }
  7786. partial void OnConstruction();
  7787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7788. public TestEmptyMessageWithExtensions(TestEmptyMessageWithExtensions other) : this() {
  7789. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  7790. _extensions = pb::ExtensionSet.Clone(other._extensions);
  7791. }
  7792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7793. public TestEmptyMessageWithExtensions Clone() {
  7794. return new TestEmptyMessageWithExtensions(this);
  7795. }
  7796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7797. public override bool Equals(object other) {
  7798. return Equals(other as TestEmptyMessageWithExtensions);
  7799. }
  7800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7801. public bool Equals(TestEmptyMessageWithExtensions other) {
  7802. if (ReferenceEquals(other, null)) {
  7803. return false;
  7804. }
  7805. if (ReferenceEquals(other, this)) {
  7806. return true;
  7807. }
  7808. if (!Equals(_extensions, other._extensions)) {
  7809. return false;
  7810. }
  7811. return Equals(_unknownFields, other._unknownFields);
  7812. }
  7813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7814. public override int GetHashCode() {
  7815. int hash = 1;
  7816. if (_extensions != null) {
  7817. hash ^= _extensions.GetHashCode();
  7818. }
  7819. if (_unknownFields != null) {
  7820. hash ^= _unknownFields.GetHashCode();
  7821. }
  7822. return hash;
  7823. }
  7824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7825. public override string ToString() {
  7826. return pb::JsonFormatter.ToDiagnosticString(this);
  7827. }
  7828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7829. public void WriteTo(pb::CodedOutputStream output) {
  7830. if (_extensions != null) {
  7831. _extensions.WriteTo(output);
  7832. }
  7833. if (_unknownFields != null) {
  7834. _unknownFields.WriteTo(output);
  7835. }
  7836. }
  7837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7838. public int CalculateSize() {
  7839. int size = 0;
  7840. if (_extensions != null) {
  7841. size += _extensions.CalculateSize();
  7842. }
  7843. if (_unknownFields != null) {
  7844. size += _unknownFields.CalculateSize();
  7845. }
  7846. return size;
  7847. }
  7848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7849. public void MergeFrom(TestEmptyMessageWithExtensions other) {
  7850. if (other == null) {
  7851. return;
  7852. }
  7853. pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
  7854. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  7855. }
  7856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7857. public void MergeFrom(pb::CodedInputStream input) {
  7858. uint tag;
  7859. while ((tag = input.ReadTag()) != 0) {
  7860. switch(tag) {
  7861. default:
  7862. if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
  7863. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  7864. }
  7865. break;
  7866. }
  7867. }
  7868. }
  7869. public TValue GetExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension) {
  7870. return pb::ExtensionSet.Get(ref _extensions, extension);
  7871. }
  7872. public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension) {
  7873. return pb::ExtensionSet.Get(ref _extensions, extension);
  7874. }
  7875. public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension) {
  7876. return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
  7877. }
  7878. public void SetExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension, TValue value) {
  7879. pb::ExtensionSet.Set(ref _extensions, extension, value);
  7880. }
  7881. public bool HasExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension) {
  7882. return pb::ExtensionSet.Has(ref _extensions, extension);
  7883. }
  7884. public void ClearExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension) {
  7885. pb::ExtensionSet.Clear(ref _extensions, extension);
  7886. }
  7887. public void ClearExtension<TValue>(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension) {
  7888. pb::ExtensionSet.Clear(ref _extensions, extension);
  7889. }
  7890. }
  7891. public sealed partial class TestMultipleExtensionRanges : pb::IExtendableMessage<TestMultipleExtensionRanges> {
  7892. private static readonly pb::MessageParser<TestMultipleExtensionRanges> _parser = new pb::MessageParser<TestMultipleExtensionRanges>(() => new TestMultipleExtensionRanges());
  7893. private pb::UnknownFieldSet _unknownFields;
  7894. private pb::ExtensionSet<TestMultipleExtensionRanges> _extensions;
  7895. private pb::ExtensionSet<TestMultipleExtensionRanges> _Extensions { get { return _extensions; } }
  7896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7897. public static pb::MessageParser<TestMultipleExtensionRanges> Parser { get { return _parser; } }
  7898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7899. public static pbr::MessageDescriptor Descriptor {
  7900. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[18]; }
  7901. }
  7902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7903. pbr::MessageDescriptor pb::IMessage.Descriptor {
  7904. get { return Descriptor; }
  7905. }
  7906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7907. public TestMultipleExtensionRanges() {
  7908. OnConstruction();
  7909. }
  7910. partial void OnConstruction();
  7911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7912. public TestMultipleExtensionRanges(TestMultipleExtensionRanges other) : this() {
  7913. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  7914. _extensions = pb::ExtensionSet.Clone(other._extensions);
  7915. }
  7916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7917. public TestMultipleExtensionRanges Clone() {
  7918. return new TestMultipleExtensionRanges(this);
  7919. }
  7920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7921. public override bool Equals(object other) {
  7922. return Equals(other as TestMultipleExtensionRanges);
  7923. }
  7924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7925. public bool Equals(TestMultipleExtensionRanges other) {
  7926. if (ReferenceEquals(other, null)) {
  7927. return false;
  7928. }
  7929. if (ReferenceEquals(other, this)) {
  7930. return true;
  7931. }
  7932. if (!Equals(_extensions, other._extensions)) {
  7933. return false;
  7934. }
  7935. return Equals(_unknownFields, other._unknownFields);
  7936. }
  7937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7938. public override int GetHashCode() {
  7939. int hash = 1;
  7940. if (_extensions != null) {
  7941. hash ^= _extensions.GetHashCode();
  7942. }
  7943. if (_unknownFields != null) {
  7944. hash ^= _unknownFields.GetHashCode();
  7945. }
  7946. return hash;
  7947. }
  7948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7949. public override string ToString() {
  7950. return pb::JsonFormatter.ToDiagnosticString(this);
  7951. }
  7952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7953. public void WriteTo(pb::CodedOutputStream output) {
  7954. if (_extensions != null) {
  7955. _extensions.WriteTo(output);
  7956. }
  7957. if (_unknownFields != null) {
  7958. _unknownFields.WriteTo(output);
  7959. }
  7960. }
  7961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7962. public int CalculateSize() {
  7963. int size = 0;
  7964. if (_extensions != null) {
  7965. size += _extensions.CalculateSize();
  7966. }
  7967. if (_unknownFields != null) {
  7968. size += _unknownFields.CalculateSize();
  7969. }
  7970. return size;
  7971. }
  7972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7973. public void MergeFrom(TestMultipleExtensionRanges other) {
  7974. if (other == null) {
  7975. return;
  7976. }
  7977. pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
  7978. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  7979. }
  7980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  7981. public void MergeFrom(pb::CodedInputStream input) {
  7982. uint tag;
  7983. while ((tag = input.ReadTag()) != 0) {
  7984. switch(tag) {
  7985. default:
  7986. if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
  7987. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  7988. }
  7989. break;
  7990. }
  7991. }
  7992. }
  7993. public TValue GetExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension) {
  7994. return pb::ExtensionSet.Get(ref _extensions, extension);
  7995. }
  7996. public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension) {
  7997. return pb::ExtensionSet.Get(ref _extensions, extension);
  7998. }
  7999. public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension) {
  8000. return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
  8001. }
  8002. public void SetExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension, TValue value) {
  8003. pb::ExtensionSet.Set(ref _extensions, extension, value);
  8004. }
  8005. public bool HasExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension) {
  8006. return pb::ExtensionSet.Has(ref _extensions, extension);
  8007. }
  8008. public void ClearExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension) {
  8009. pb::ExtensionSet.Clear(ref _extensions, extension);
  8010. }
  8011. public void ClearExtension<TValue>(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension) {
  8012. pb::ExtensionSet.Clear(ref _extensions, extension);
  8013. }
  8014. }
  8015. /// <summary>
  8016. /// Test that really large tag numbers don't break anything.
  8017. /// </summary>
  8018. public sealed partial class TestReallyLargeTagNumber : pb::IMessage<TestReallyLargeTagNumber> {
  8019. private static readonly pb::MessageParser<TestReallyLargeTagNumber> _parser = new pb::MessageParser<TestReallyLargeTagNumber>(() => new TestReallyLargeTagNumber());
  8020. private pb::UnknownFieldSet _unknownFields;
  8021. private int _hasBits0;
  8022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8023. public static pb::MessageParser<TestReallyLargeTagNumber> Parser { get { return _parser; } }
  8024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8025. public static pbr::MessageDescriptor Descriptor {
  8026. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[19]; }
  8027. }
  8028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8029. pbr::MessageDescriptor pb::IMessage.Descriptor {
  8030. get { return Descriptor; }
  8031. }
  8032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8033. public TestReallyLargeTagNumber() {
  8034. OnConstruction();
  8035. }
  8036. partial void OnConstruction();
  8037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8038. public TestReallyLargeTagNumber(TestReallyLargeTagNumber other) : this() {
  8039. _hasBits0 = other._hasBits0;
  8040. a_ = other.a_;
  8041. bb_ = other.bb_;
  8042. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  8043. }
  8044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8045. public TestReallyLargeTagNumber Clone() {
  8046. return new TestReallyLargeTagNumber(this);
  8047. }
  8048. /// <summary>Field number for the "a" field.</summary>
  8049. public const int AFieldNumber = 1;
  8050. private readonly static int ADefaultValue = 0;
  8051. private int a_;
  8052. /// <summary>
  8053. /// The largest possible tag number is 2^28 - 1, since the wire format uses
  8054. /// three bits to communicate wire type.
  8055. /// </summary>
  8056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8057. public int A {
  8058. get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
  8059. set {
  8060. _hasBits0 |= 1;
  8061. a_ = value;
  8062. }
  8063. }
  8064. /// <summary>Gets whether the "a" field is set</summary>
  8065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8066. public bool HasA {
  8067. get { return (_hasBits0 & 1) != 0; }
  8068. }
  8069. /// <summary>Clears the value of the "a" field</summary>
  8070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8071. public void ClearA() {
  8072. _hasBits0 &= ~1;
  8073. }
  8074. /// <summary>Field number for the "bb" field.</summary>
  8075. public const int BbFieldNumber = 268435455;
  8076. private readonly static int BbDefaultValue = 0;
  8077. private int bb_;
  8078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8079. public int Bb {
  8080. get { if ((_hasBits0 & 2) != 0) { return bb_; } else { return BbDefaultValue; } }
  8081. set {
  8082. _hasBits0 |= 2;
  8083. bb_ = value;
  8084. }
  8085. }
  8086. /// <summary>Gets whether the "bb" field is set</summary>
  8087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8088. public bool HasBb {
  8089. get { return (_hasBits0 & 2) != 0; }
  8090. }
  8091. /// <summary>Clears the value of the "bb" field</summary>
  8092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8093. public void ClearBb() {
  8094. _hasBits0 &= ~2;
  8095. }
  8096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8097. public override bool Equals(object other) {
  8098. return Equals(other as TestReallyLargeTagNumber);
  8099. }
  8100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8101. public bool Equals(TestReallyLargeTagNumber other) {
  8102. if (ReferenceEquals(other, null)) {
  8103. return false;
  8104. }
  8105. if (ReferenceEquals(other, this)) {
  8106. return true;
  8107. }
  8108. if (A != other.A) return false;
  8109. if (Bb != other.Bb) return false;
  8110. return Equals(_unknownFields, other._unknownFields);
  8111. }
  8112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8113. public override int GetHashCode() {
  8114. int hash = 1;
  8115. if (HasA) hash ^= A.GetHashCode();
  8116. if (HasBb) hash ^= Bb.GetHashCode();
  8117. if (_unknownFields != null) {
  8118. hash ^= _unknownFields.GetHashCode();
  8119. }
  8120. return hash;
  8121. }
  8122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8123. public override string ToString() {
  8124. return pb::JsonFormatter.ToDiagnosticString(this);
  8125. }
  8126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8127. public void WriteTo(pb::CodedOutputStream output) {
  8128. if (HasA) {
  8129. output.WriteRawTag(8);
  8130. output.WriteInt32(A);
  8131. }
  8132. if (HasBb) {
  8133. output.WriteRawTag(248, 255, 255, 255, 7);
  8134. output.WriteInt32(Bb);
  8135. }
  8136. if (_unknownFields != null) {
  8137. _unknownFields.WriteTo(output);
  8138. }
  8139. }
  8140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8141. public int CalculateSize() {
  8142. int size = 0;
  8143. if (HasA) {
  8144. size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
  8145. }
  8146. if (HasBb) {
  8147. size += 5 + pb::CodedOutputStream.ComputeInt32Size(Bb);
  8148. }
  8149. if (_unknownFields != null) {
  8150. size += _unknownFields.CalculateSize();
  8151. }
  8152. return size;
  8153. }
  8154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8155. public void MergeFrom(TestReallyLargeTagNumber other) {
  8156. if (other == null) {
  8157. return;
  8158. }
  8159. if (other.HasA) {
  8160. A = other.A;
  8161. }
  8162. if (other.HasBb) {
  8163. Bb = other.Bb;
  8164. }
  8165. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  8166. }
  8167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8168. public void MergeFrom(pb::CodedInputStream input) {
  8169. uint tag;
  8170. while ((tag = input.ReadTag()) != 0) {
  8171. switch(tag) {
  8172. default:
  8173. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  8174. break;
  8175. case 8: {
  8176. A = input.ReadInt32();
  8177. break;
  8178. }
  8179. case 2147483640: {
  8180. Bb = input.ReadInt32();
  8181. break;
  8182. }
  8183. }
  8184. }
  8185. }
  8186. }
  8187. public sealed partial class TestRecursiveMessage : pb::IMessage<TestRecursiveMessage> {
  8188. private static readonly pb::MessageParser<TestRecursiveMessage> _parser = new pb::MessageParser<TestRecursiveMessage>(() => new TestRecursiveMessage());
  8189. private pb::UnknownFieldSet _unknownFields;
  8190. private int _hasBits0;
  8191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8192. public static pb::MessageParser<TestRecursiveMessage> Parser { get { return _parser; } }
  8193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8194. public static pbr::MessageDescriptor Descriptor {
  8195. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[20]; }
  8196. }
  8197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8198. pbr::MessageDescriptor pb::IMessage.Descriptor {
  8199. get { return Descriptor; }
  8200. }
  8201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8202. public TestRecursiveMessage() {
  8203. OnConstruction();
  8204. }
  8205. partial void OnConstruction();
  8206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8207. public TestRecursiveMessage(TestRecursiveMessage other) : this() {
  8208. _hasBits0 = other._hasBits0;
  8209. a_ = other.a_ != null ? other.a_.Clone() : null;
  8210. i_ = other.i_;
  8211. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  8212. }
  8213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8214. public TestRecursiveMessage Clone() {
  8215. return new TestRecursiveMessage(this);
  8216. }
  8217. /// <summary>Field number for the "a" field.</summary>
  8218. public const int AFieldNumber = 1;
  8219. private global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage a_;
  8220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8221. public global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage A {
  8222. get { return a_; }
  8223. set {
  8224. a_ = value;
  8225. }
  8226. }
  8227. /// <summary>Field number for the "i" field.</summary>
  8228. public const int IFieldNumber = 2;
  8229. private readonly static int IDefaultValue = 0;
  8230. private int i_;
  8231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8232. public int I {
  8233. get { if ((_hasBits0 & 1) != 0) { return i_; } else { return IDefaultValue; } }
  8234. set {
  8235. _hasBits0 |= 1;
  8236. i_ = value;
  8237. }
  8238. }
  8239. /// <summary>Gets whether the "i" field is set</summary>
  8240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8241. public bool HasI {
  8242. get { return (_hasBits0 & 1) != 0; }
  8243. }
  8244. /// <summary>Clears the value of the "i" field</summary>
  8245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8246. public void ClearI() {
  8247. _hasBits0 &= ~1;
  8248. }
  8249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8250. public override bool Equals(object other) {
  8251. return Equals(other as TestRecursiveMessage);
  8252. }
  8253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8254. public bool Equals(TestRecursiveMessage other) {
  8255. if (ReferenceEquals(other, null)) {
  8256. return false;
  8257. }
  8258. if (ReferenceEquals(other, this)) {
  8259. return true;
  8260. }
  8261. if (!object.Equals(A, other.A)) return false;
  8262. if (I != other.I) return false;
  8263. return Equals(_unknownFields, other._unknownFields);
  8264. }
  8265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8266. public override int GetHashCode() {
  8267. int hash = 1;
  8268. if (a_ != null) hash ^= A.GetHashCode();
  8269. if (HasI) hash ^= I.GetHashCode();
  8270. if (_unknownFields != null) {
  8271. hash ^= _unknownFields.GetHashCode();
  8272. }
  8273. return hash;
  8274. }
  8275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8276. public override string ToString() {
  8277. return pb::JsonFormatter.ToDiagnosticString(this);
  8278. }
  8279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8280. public void WriteTo(pb::CodedOutputStream output) {
  8281. if (a_ != null) {
  8282. output.WriteRawTag(10);
  8283. output.WriteMessage(A);
  8284. }
  8285. if (HasI) {
  8286. output.WriteRawTag(16);
  8287. output.WriteInt32(I);
  8288. }
  8289. if (_unknownFields != null) {
  8290. _unknownFields.WriteTo(output);
  8291. }
  8292. }
  8293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8294. public int CalculateSize() {
  8295. int size = 0;
  8296. if (a_ != null) {
  8297. size += 1 + pb::CodedOutputStream.ComputeMessageSize(A);
  8298. }
  8299. if (HasI) {
  8300. size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
  8301. }
  8302. if (_unknownFields != null) {
  8303. size += _unknownFields.CalculateSize();
  8304. }
  8305. return size;
  8306. }
  8307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8308. public void MergeFrom(TestRecursiveMessage other) {
  8309. if (other == null) {
  8310. return;
  8311. }
  8312. if (other.a_ != null) {
  8313. if (a_ == null) {
  8314. A = new global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage();
  8315. }
  8316. A.MergeFrom(other.A);
  8317. }
  8318. if (other.HasI) {
  8319. I = other.I;
  8320. }
  8321. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  8322. }
  8323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8324. public void MergeFrom(pb::CodedInputStream input) {
  8325. uint tag;
  8326. while ((tag = input.ReadTag()) != 0) {
  8327. switch(tag) {
  8328. default:
  8329. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  8330. break;
  8331. case 10: {
  8332. if (a_ == null) {
  8333. A = new global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage();
  8334. }
  8335. input.ReadMessage(A);
  8336. break;
  8337. }
  8338. case 16: {
  8339. I = input.ReadInt32();
  8340. break;
  8341. }
  8342. }
  8343. }
  8344. }
  8345. }
  8346. /// <summary>
  8347. /// Test that mutual recursion works.
  8348. /// </summary>
  8349. public sealed partial class TestMutualRecursionA : pb::IMessage<TestMutualRecursionA> {
  8350. private static readonly pb::MessageParser<TestMutualRecursionA> _parser = new pb::MessageParser<TestMutualRecursionA>(() => new TestMutualRecursionA());
  8351. private pb::UnknownFieldSet _unknownFields;
  8352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8353. public static pb::MessageParser<TestMutualRecursionA> Parser { get { return _parser; } }
  8354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8355. public static pbr::MessageDescriptor Descriptor {
  8356. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[21]; }
  8357. }
  8358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8359. pbr::MessageDescriptor pb::IMessage.Descriptor {
  8360. get { return Descriptor; }
  8361. }
  8362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8363. public TestMutualRecursionA() {
  8364. OnConstruction();
  8365. }
  8366. partial void OnConstruction();
  8367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8368. public TestMutualRecursionA(TestMutualRecursionA other) : this() {
  8369. bb_ = other.bb_ != null ? other.bb_.Clone() : null;
  8370. subGroup_ = other.HasSubGroup ? other.subGroup_.Clone() : null;
  8371. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  8372. }
  8373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8374. public TestMutualRecursionA Clone() {
  8375. return new TestMutualRecursionA(this);
  8376. }
  8377. /// <summary>Field number for the "bb" field.</summary>
  8378. public const int BbFieldNumber = 1;
  8379. private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB bb_;
  8380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8381. public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB Bb {
  8382. get { return bb_; }
  8383. set {
  8384. bb_ = value;
  8385. }
  8386. }
  8387. /// <summary>Field number for the "subgroup" field.</summary>
  8388. public const int SubGroupFieldNumber = 2;
  8389. private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup subGroup_;
  8390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8391. public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup SubGroup {
  8392. get { return subGroup_; }
  8393. set {
  8394. subGroup_ = value;
  8395. }
  8396. }
  8397. /// <summary>Gets whether the subgroup field is set</summary>
  8398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8399. public bool HasSubGroup {
  8400. get { return subGroup_ != null; }
  8401. }
  8402. /// <summary>Clears the value of the subgroup field</summary>
  8403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8404. public void ClearSubGroup() {
  8405. subGroup_ = null;
  8406. }
  8407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8408. public override bool Equals(object other) {
  8409. return Equals(other as TestMutualRecursionA);
  8410. }
  8411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8412. public bool Equals(TestMutualRecursionA other) {
  8413. if (ReferenceEquals(other, null)) {
  8414. return false;
  8415. }
  8416. if (ReferenceEquals(other, this)) {
  8417. return true;
  8418. }
  8419. if (!object.Equals(Bb, other.Bb)) return false;
  8420. if (!object.Equals(SubGroup, other.SubGroup)) return false;
  8421. return Equals(_unknownFields, other._unknownFields);
  8422. }
  8423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8424. public override int GetHashCode() {
  8425. int hash = 1;
  8426. if (bb_ != null) hash ^= Bb.GetHashCode();
  8427. if (HasSubGroup) hash ^= SubGroup.GetHashCode();
  8428. if (_unknownFields != null) {
  8429. hash ^= _unknownFields.GetHashCode();
  8430. }
  8431. return hash;
  8432. }
  8433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8434. public override string ToString() {
  8435. return pb::JsonFormatter.ToDiagnosticString(this);
  8436. }
  8437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8438. public void WriteTo(pb::CodedOutputStream output) {
  8439. if (bb_ != null) {
  8440. output.WriteRawTag(10);
  8441. output.WriteMessage(Bb);
  8442. }
  8443. if (HasSubGroup) {
  8444. output.WriteRawTag(19);
  8445. output.WriteGroup(SubGroup);
  8446. output.WriteRawTag(20);
  8447. }
  8448. if (_unknownFields != null) {
  8449. _unknownFields.WriteTo(output);
  8450. }
  8451. }
  8452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8453. public int CalculateSize() {
  8454. int size = 0;
  8455. if (bb_ != null) {
  8456. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bb);
  8457. }
  8458. if (HasSubGroup) {
  8459. size += 2 + pb::CodedOutputStream.ComputeGroupSize(SubGroup);
  8460. }
  8461. if (_unknownFields != null) {
  8462. size += _unknownFields.CalculateSize();
  8463. }
  8464. return size;
  8465. }
  8466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8467. public void MergeFrom(TestMutualRecursionA other) {
  8468. if (other == null) {
  8469. return;
  8470. }
  8471. if (other.bb_ != null) {
  8472. if (bb_ == null) {
  8473. Bb = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
  8474. }
  8475. Bb.MergeFrom(other.Bb);
  8476. }
  8477. if (other.HasSubGroup) {
  8478. if (!HasSubGroup) {
  8479. SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup();
  8480. }
  8481. SubGroup.MergeFrom(other.SubGroup);
  8482. }
  8483. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  8484. }
  8485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8486. public void MergeFrom(pb::CodedInputStream input) {
  8487. uint tag;
  8488. while ((tag = input.ReadTag()) != 0) {
  8489. switch(tag) {
  8490. default:
  8491. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  8492. break;
  8493. case 10: {
  8494. if (bb_ == null) {
  8495. Bb = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
  8496. }
  8497. input.ReadMessage(Bb);
  8498. break;
  8499. }
  8500. case 19: {
  8501. if (!HasSubGroup) {
  8502. SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup();
  8503. }
  8504. input.ReadGroup(SubGroup);
  8505. break;
  8506. }
  8507. }
  8508. }
  8509. }
  8510. #region Nested types
  8511. /// <summary>Container for nested types declared in the TestMutualRecursionA message type.</summary>
  8512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8513. public static partial class Types {
  8514. public sealed partial class SubMessage : pb::IMessage<SubMessage> {
  8515. private static readonly pb::MessageParser<SubMessage> _parser = new pb::MessageParser<SubMessage>(() => new SubMessage());
  8516. private pb::UnknownFieldSet _unknownFields;
  8517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8518. public static pb::MessageParser<SubMessage> Parser { get { return _parser; } }
  8519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8520. public static pbr::MessageDescriptor Descriptor {
  8521. get { return global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Descriptor.NestedTypes[0]; }
  8522. }
  8523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8524. pbr::MessageDescriptor pb::IMessage.Descriptor {
  8525. get { return Descriptor; }
  8526. }
  8527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8528. public SubMessage() {
  8529. OnConstruction();
  8530. }
  8531. partial void OnConstruction();
  8532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8533. public SubMessage(SubMessage other) : this() {
  8534. b_ = other.b_ != null ? other.b_.Clone() : null;
  8535. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  8536. }
  8537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8538. public SubMessage Clone() {
  8539. return new SubMessage(this);
  8540. }
  8541. /// <summary>Field number for the "b" field.</summary>
  8542. public const int BFieldNumber = 1;
  8543. private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB b_;
  8544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8545. public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB B {
  8546. get { return b_; }
  8547. set {
  8548. b_ = value;
  8549. }
  8550. }
  8551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8552. public override bool Equals(object other) {
  8553. return Equals(other as SubMessage);
  8554. }
  8555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8556. public bool Equals(SubMessage other) {
  8557. if (ReferenceEquals(other, null)) {
  8558. return false;
  8559. }
  8560. if (ReferenceEquals(other, this)) {
  8561. return true;
  8562. }
  8563. if (!object.Equals(B, other.B)) return false;
  8564. return Equals(_unknownFields, other._unknownFields);
  8565. }
  8566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8567. public override int GetHashCode() {
  8568. int hash = 1;
  8569. if (b_ != null) hash ^= B.GetHashCode();
  8570. if (_unknownFields != null) {
  8571. hash ^= _unknownFields.GetHashCode();
  8572. }
  8573. return hash;
  8574. }
  8575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8576. public override string ToString() {
  8577. return pb::JsonFormatter.ToDiagnosticString(this);
  8578. }
  8579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8580. public void WriteTo(pb::CodedOutputStream output) {
  8581. if (b_ != null) {
  8582. output.WriteRawTag(10);
  8583. output.WriteMessage(B);
  8584. }
  8585. if (_unknownFields != null) {
  8586. _unknownFields.WriteTo(output);
  8587. }
  8588. }
  8589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8590. public int CalculateSize() {
  8591. int size = 0;
  8592. if (b_ != null) {
  8593. size += 1 + pb::CodedOutputStream.ComputeMessageSize(B);
  8594. }
  8595. if (_unknownFields != null) {
  8596. size += _unknownFields.CalculateSize();
  8597. }
  8598. return size;
  8599. }
  8600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8601. public void MergeFrom(SubMessage other) {
  8602. if (other == null) {
  8603. return;
  8604. }
  8605. if (other.b_ != null) {
  8606. if (b_ == null) {
  8607. B = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
  8608. }
  8609. B.MergeFrom(other.B);
  8610. }
  8611. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  8612. }
  8613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8614. public void MergeFrom(pb::CodedInputStream input) {
  8615. uint tag;
  8616. while ((tag = input.ReadTag()) != 0) {
  8617. switch(tag) {
  8618. default:
  8619. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  8620. break;
  8621. case 10: {
  8622. if (b_ == null) {
  8623. B = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
  8624. }
  8625. input.ReadMessage(B);
  8626. break;
  8627. }
  8628. }
  8629. }
  8630. }
  8631. }
  8632. public sealed partial class SubGroup : pb::IMessage<SubGroup> {
  8633. private static readonly pb::MessageParser<SubGroup> _parser = new pb::MessageParser<SubGroup>(() => new SubGroup());
  8634. private pb::UnknownFieldSet _unknownFields;
  8635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8636. public static pb::MessageParser<SubGroup> Parser { get { return _parser; } }
  8637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8638. public static pbr::MessageDescriptor Descriptor {
  8639. get { return global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Descriptor.NestedTypes[1]; }
  8640. }
  8641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8642. pbr::MessageDescriptor pb::IMessage.Descriptor {
  8643. get { return Descriptor; }
  8644. }
  8645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8646. public SubGroup() {
  8647. OnConstruction();
  8648. }
  8649. partial void OnConstruction();
  8650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8651. public SubGroup(SubGroup other) : this() {
  8652. subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null;
  8653. notInThisScc_ = other.notInThisScc_ != null ? other.notInThisScc_.Clone() : null;
  8654. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  8655. }
  8656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8657. public SubGroup Clone() {
  8658. return new SubGroup(this);
  8659. }
  8660. /// <summary>Field number for the "sub_message" field.</summary>
  8661. public const int SubMessageFieldNumber = 3;
  8662. private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage subMessage_;
  8663. /// <summary>
  8664. /// Needed because of bug in javatest
  8665. /// </summary>
  8666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8667. public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage SubMessage {
  8668. get { return subMessage_; }
  8669. set {
  8670. subMessage_ = value;
  8671. }
  8672. }
  8673. /// <summary>Field number for the "not_in_this_scc" field.</summary>
  8674. public const int NotInThisSccFieldNumber = 4;
  8675. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes notInThisScc_;
  8676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8677. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes NotInThisScc {
  8678. get { return notInThisScc_; }
  8679. set {
  8680. notInThisScc_ = value;
  8681. }
  8682. }
  8683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8684. public override bool Equals(object other) {
  8685. return Equals(other as SubGroup);
  8686. }
  8687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8688. public bool Equals(SubGroup other) {
  8689. if (ReferenceEquals(other, null)) {
  8690. return false;
  8691. }
  8692. if (ReferenceEquals(other, this)) {
  8693. return true;
  8694. }
  8695. if (!object.Equals(SubMessage, other.SubMessage)) return false;
  8696. if (!object.Equals(NotInThisScc, other.NotInThisScc)) return false;
  8697. return Equals(_unknownFields, other._unknownFields);
  8698. }
  8699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8700. public override int GetHashCode() {
  8701. int hash = 1;
  8702. if (subMessage_ != null) hash ^= SubMessage.GetHashCode();
  8703. if (notInThisScc_ != null) hash ^= NotInThisScc.GetHashCode();
  8704. if (_unknownFields != null) {
  8705. hash ^= _unknownFields.GetHashCode();
  8706. }
  8707. return hash;
  8708. }
  8709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8710. public override string ToString() {
  8711. return pb::JsonFormatter.ToDiagnosticString(this);
  8712. }
  8713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8714. public void WriteTo(pb::CodedOutputStream output) {
  8715. if (subMessage_ != null) {
  8716. output.WriteRawTag(26);
  8717. output.WriteMessage(SubMessage);
  8718. }
  8719. if (notInThisScc_ != null) {
  8720. output.WriteRawTag(34);
  8721. output.WriteMessage(NotInThisScc);
  8722. }
  8723. if (_unknownFields != null) {
  8724. _unknownFields.WriteTo(output);
  8725. }
  8726. }
  8727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8728. public int CalculateSize() {
  8729. int size = 0;
  8730. if (subMessage_ != null) {
  8731. size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage);
  8732. }
  8733. if (notInThisScc_ != null) {
  8734. size += 1 + pb::CodedOutputStream.ComputeMessageSize(NotInThisScc);
  8735. }
  8736. if (_unknownFields != null) {
  8737. size += _unknownFields.CalculateSize();
  8738. }
  8739. return size;
  8740. }
  8741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8742. public void MergeFrom(SubGroup other) {
  8743. if (other == null) {
  8744. return;
  8745. }
  8746. if (other.subMessage_ != null) {
  8747. if (subMessage_ == null) {
  8748. SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage();
  8749. }
  8750. SubMessage.MergeFrom(other.SubMessage);
  8751. }
  8752. if (other.notInThisScc_ != null) {
  8753. if (notInThisScc_ == null) {
  8754. NotInThisScc = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  8755. }
  8756. NotInThisScc.MergeFrom(other.NotInThisScc);
  8757. }
  8758. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  8759. }
  8760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8761. public void MergeFrom(pb::CodedInputStream input) {
  8762. uint tag;
  8763. while ((tag = input.ReadTag()) != 0) {
  8764. switch(tag) {
  8765. case 20:
  8766. return;
  8767. default:
  8768. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  8769. break;
  8770. case 26: {
  8771. if (subMessage_ == null) {
  8772. SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage();
  8773. }
  8774. input.ReadMessage(SubMessage);
  8775. break;
  8776. }
  8777. case 34: {
  8778. if (notInThisScc_ == null) {
  8779. NotInThisScc = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  8780. }
  8781. input.ReadMessage(NotInThisScc);
  8782. break;
  8783. }
  8784. }
  8785. }
  8786. }
  8787. }
  8788. }
  8789. #endregion
  8790. }
  8791. public sealed partial class TestMutualRecursionB : pb::IMessage<TestMutualRecursionB> {
  8792. private static readonly pb::MessageParser<TestMutualRecursionB> _parser = new pb::MessageParser<TestMutualRecursionB>(() => new TestMutualRecursionB());
  8793. private pb::UnknownFieldSet _unknownFields;
  8794. private int _hasBits0;
  8795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8796. public static pb::MessageParser<TestMutualRecursionB> Parser { get { return _parser; } }
  8797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8798. public static pbr::MessageDescriptor Descriptor {
  8799. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[22]; }
  8800. }
  8801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8802. pbr::MessageDescriptor pb::IMessage.Descriptor {
  8803. get { return Descriptor; }
  8804. }
  8805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8806. public TestMutualRecursionB() {
  8807. OnConstruction();
  8808. }
  8809. partial void OnConstruction();
  8810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8811. public TestMutualRecursionB(TestMutualRecursionB other) : this() {
  8812. _hasBits0 = other._hasBits0;
  8813. a_ = other.a_ != null ? other.a_.Clone() : null;
  8814. optionalInt32_ = other.optionalInt32_;
  8815. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  8816. }
  8817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8818. public TestMutualRecursionB Clone() {
  8819. return new TestMutualRecursionB(this);
  8820. }
  8821. /// <summary>Field number for the "a" field.</summary>
  8822. public const int AFieldNumber = 1;
  8823. private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA a_;
  8824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8825. public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA A {
  8826. get { return a_; }
  8827. set {
  8828. a_ = value;
  8829. }
  8830. }
  8831. /// <summary>Field number for the "optional_int32" field.</summary>
  8832. public const int OptionalInt32FieldNumber = 2;
  8833. private readonly static int OptionalInt32DefaultValue = 0;
  8834. private int optionalInt32_;
  8835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8836. public int OptionalInt32 {
  8837. get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
  8838. set {
  8839. _hasBits0 |= 1;
  8840. optionalInt32_ = value;
  8841. }
  8842. }
  8843. /// <summary>Gets whether the "optional_int32" field is set</summary>
  8844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8845. public bool HasOptionalInt32 {
  8846. get { return (_hasBits0 & 1) != 0; }
  8847. }
  8848. /// <summary>Clears the value of the "optional_int32" field</summary>
  8849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8850. public void ClearOptionalInt32() {
  8851. _hasBits0 &= ~1;
  8852. }
  8853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8854. public override bool Equals(object other) {
  8855. return Equals(other as TestMutualRecursionB);
  8856. }
  8857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8858. public bool Equals(TestMutualRecursionB other) {
  8859. if (ReferenceEquals(other, null)) {
  8860. return false;
  8861. }
  8862. if (ReferenceEquals(other, this)) {
  8863. return true;
  8864. }
  8865. if (!object.Equals(A, other.A)) return false;
  8866. if (OptionalInt32 != other.OptionalInt32) return false;
  8867. return Equals(_unknownFields, other._unknownFields);
  8868. }
  8869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8870. public override int GetHashCode() {
  8871. int hash = 1;
  8872. if (a_ != null) hash ^= A.GetHashCode();
  8873. if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
  8874. if (_unknownFields != null) {
  8875. hash ^= _unknownFields.GetHashCode();
  8876. }
  8877. return hash;
  8878. }
  8879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8880. public override string ToString() {
  8881. return pb::JsonFormatter.ToDiagnosticString(this);
  8882. }
  8883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8884. public void WriteTo(pb::CodedOutputStream output) {
  8885. if (a_ != null) {
  8886. output.WriteRawTag(10);
  8887. output.WriteMessage(A);
  8888. }
  8889. if (HasOptionalInt32) {
  8890. output.WriteRawTag(16);
  8891. output.WriteInt32(OptionalInt32);
  8892. }
  8893. if (_unknownFields != null) {
  8894. _unknownFields.WriteTo(output);
  8895. }
  8896. }
  8897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8898. public int CalculateSize() {
  8899. int size = 0;
  8900. if (a_ != null) {
  8901. size += 1 + pb::CodedOutputStream.ComputeMessageSize(A);
  8902. }
  8903. if (HasOptionalInt32) {
  8904. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
  8905. }
  8906. if (_unknownFields != null) {
  8907. size += _unknownFields.CalculateSize();
  8908. }
  8909. return size;
  8910. }
  8911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8912. public void MergeFrom(TestMutualRecursionB other) {
  8913. if (other == null) {
  8914. return;
  8915. }
  8916. if (other.a_ != null) {
  8917. if (a_ == null) {
  8918. A = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA();
  8919. }
  8920. A.MergeFrom(other.A);
  8921. }
  8922. if (other.HasOptionalInt32) {
  8923. OptionalInt32 = other.OptionalInt32;
  8924. }
  8925. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  8926. }
  8927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8928. public void MergeFrom(pb::CodedInputStream input) {
  8929. uint tag;
  8930. while ((tag = input.ReadTag()) != 0) {
  8931. switch(tag) {
  8932. default:
  8933. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  8934. break;
  8935. case 10: {
  8936. if (a_ == null) {
  8937. A = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA();
  8938. }
  8939. input.ReadMessage(A);
  8940. break;
  8941. }
  8942. case 16: {
  8943. OptionalInt32 = input.ReadInt32();
  8944. break;
  8945. }
  8946. }
  8947. }
  8948. }
  8949. }
  8950. public sealed partial class TestIsInitialized : pb::IMessage<TestIsInitialized> {
  8951. private static readonly pb::MessageParser<TestIsInitialized> _parser = new pb::MessageParser<TestIsInitialized>(() => new TestIsInitialized());
  8952. private pb::UnknownFieldSet _unknownFields;
  8953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8954. public static pb::MessageParser<TestIsInitialized> Parser { get { return _parser; } }
  8955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8956. public static pbr::MessageDescriptor Descriptor {
  8957. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[23]; }
  8958. }
  8959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8960. pbr::MessageDescriptor pb::IMessage.Descriptor {
  8961. get { return Descriptor; }
  8962. }
  8963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8964. public TestIsInitialized() {
  8965. OnConstruction();
  8966. }
  8967. partial void OnConstruction();
  8968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8969. public TestIsInitialized(TestIsInitialized other) : this() {
  8970. subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null;
  8971. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  8972. }
  8973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8974. public TestIsInitialized Clone() {
  8975. return new TestIsInitialized(this);
  8976. }
  8977. /// <summary>Field number for the "sub_message" field.</summary>
  8978. public const int SubMessageFieldNumber = 1;
  8979. private global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage subMessage_;
  8980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8981. public global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage SubMessage {
  8982. get { return subMessage_; }
  8983. set {
  8984. subMessage_ = value;
  8985. }
  8986. }
  8987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8988. public override bool Equals(object other) {
  8989. return Equals(other as TestIsInitialized);
  8990. }
  8991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  8992. public bool Equals(TestIsInitialized other) {
  8993. if (ReferenceEquals(other, null)) {
  8994. return false;
  8995. }
  8996. if (ReferenceEquals(other, this)) {
  8997. return true;
  8998. }
  8999. if (!object.Equals(SubMessage, other.SubMessage)) return false;
  9000. return Equals(_unknownFields, other._unknownFields);
  9001. }
  9002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9003. public override int GetHashCode() {
  9004. int hash = 1;
  9005. if (subMessage_ != null) hash ^= SubMessage.GetHashCode();
  9006. if (_unknownFields != null) {
  9007. hash ^= _unknownFields.GetHashCode();
  9008. }
  9009. return hash;
  9010. }
  9011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9012. public override string ToString() {
  9013. return pb::JsonFormatter.ToDiagnosticString(this);
  9014. }
  9015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9016. public void WriteTo(pb::CodedOutputStream output) {
  9017. if (subMessage_ != null) {
  9018. output.WriteRawTag(10);
  9019. output.WriteMessage(SubMessage);
  9020. }
  9021. if (_unknownFields != null) {
  9022. _unknownFields.WriteTo(output);
  9023. }
  9024. }
  9025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9026. public int CalculateSize() {
  9027. int size = 0;
  9028. if (subMessage_ != null) {
  9029. size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage);
  9030. }
  9031. if (_unknownFields != null) {
  9032. size += _unknownFields.CalculateSize();
  9033. }
  9034. return size;
  9035. }
  9036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9037. public void MergeFrom(TestIsInitialized other) {
  9038. if (other == null) {
  9039. return;
  9040. }
  9041. if (other.subMessage_ != null) {
  9042. if (subMessage_ == null) {
  9043. SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage();
  9044. }
  9045. SubMessage.MergeFrom(other.SubMessage);
  9046. }
  9047. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  9048. }
  9049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9050. public void MergeFrom(pb::CodedInputStream input) {
  9051. uint tag;
  9052. while ((tag = input.ReadTag()) != 0) {
  9053. switch(tag) {
  9054. default:
  9055. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  9056. break;
  9057. case 10: {
  9058. if (subMessage_ == null) {
  9059. SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage();
  9060. }
  9061. input.ReadMessage(SubMessage);
  9062. break;
  9063. }
  9064. }
  9065. }
  9066. }
  9067. #region Nested types
  9068. /// <summary>Container for nested types declared in the TestIsInitialized message type.</summary>
  9069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9070. public static partial class Types {
  9071. public sealed partial class SubMessage : pb::IMessage<SubMessage> {
  9072. private static readonly pb::MessageParser<SubMessage> _parser = new pb::MessageParser<SubMessage>(() => new SubMessage());
  9073. private pb::UnknownFieldSet _unknownFields;
  9074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9075. public static pb::MessageParser<SubMessage> Parser { get { return _parser; } }
  9076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9077. public static pbr::MessageDescriptor Descriptor {
  9078. get { return global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Descriptor.NestedTypes[0]; }
  9079. }
  9080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9081. pbr::MessageDescriptor pb::IMessage.Descriptor {
  9082. get { return Descriptor; }
  9083. }
  9084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9085. public SubMessage() {
  9086. OnConstruction();
  9087. }
  9088. partial void OnConstruction();
  9089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9090. public SubMessage(SubMessage other) : this() {
  9091. subGroup_ = other.HasSubGroup ? other.subGroup_.Clone() : null;
  9092. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  9093. }
  9094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9095. public SubMessage Clone() {
  9096. return new SubMessage(this);
  9097. }
  9098. /// <summary>Field number for the "subgroup" field.</summary>
  9099. public const int SubGroupFieldNumber = 1;
  9100. private global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup subGroup_;
  9101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9102. public global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup SubGroup {
  9103. get { return subGroup_; }
  9104. set {
  9105. subGroup_ = value;
  9106. }
  9107. }
  9108. /// <summary>Gets whether the subgroup field is set</summary>
  9109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9110. public bool HasSubGroup {
  9111. get { return subGroup_ != null; }
  9112. }
  9113. /// <summary>Clears the value of the subgroup field</summary>
  9114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9115. public void ClearSubGroup() {
  9116. subGroup_ = null;
  9117. }
  9118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9119. public override bool Equals(object other) {
  9120. return Equals(other as SubMessage);
  9121. }
  9122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9123. public bool Equals(SubMessage other) {
  9124. if (ReferenceEquals(other, null)) {
  9125. return false;
  9126. }
  9127. if (ReferenceEquals(other, this)) {
  9128. return true;
  9129. }
  9130. if (!object.Equals(SubGroup, other.SubGroup)) return false;
  9131. return Equals(_unknownFields, other._unknownFields);
  9132. }
  9133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9134. public override int GetHashCode() {
  9135. int hash = 1;
  9136. if (HasSubGroup) hash ^= SubGroup.GetHashCode();
  9137. if (_unknownFields != null) {
  9138. hash ^= _unknownFields.GetHashCode();
  9139. }
  9140. return hash;
  9141. }
  9142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9143. public override string ToString() {
  9144. return pb::JsonFormatter.ToDiagnosticString(this);
  9145. }
  9146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9147. public void WriteTo(pb::CodedOutputStream output) {
  9148. if (HasSubGroup) {
  9149. output.WriteRawTag(11);
  9150. output.WriteGroup(SubGroup);
  9151. output.WriteRawTag(12);
  9152. }
  9153. if (_unknownFields != null) {
  9154. _unknownFields.WriteTo(output);
  9155. }
  9156. }
  9157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9158. public int CalculateSize() {
  9159. int size = 0;
  9160. if (HasSubGroup) {
  9161. size += 2 + pb::CodedOutputStream.ComputeGroupSize(SubGroup);
  9162. }
  9163. if (_unknownFields != null) {
  9164. size += _unknownFields.CalculateSize();
  9165. }
  9166. return size;
  9167. }
  9168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9169. public void MergeFrom(SubMessage other) {
  9170. if (other == null) {
  9171. return;
  9172. }
  9173. if (other.HasSubGroup) {
  9174. if (!HasSubGroup) {
  9175. SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup();
  9176. }
  9177. SubGroup.MergeFrom(other.SubGroup);
  9178. }
  9179. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  9180. }
  9181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9182. public void MergeFrom(pb::CodedInputStream input) {
  9183. uint tag;
  9184. while ((tag = input.ReadTag()) != 0) {
  9185. switch(tag) {
  9186. default:
  9187. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  9188. break;
  9189. case 11: {
  9190. if (!HasSubGroup) {
  9191. SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup();
  9192. }
  9193. input.ReadGroup(SubGroup);
  9194. break;
  9195. }
  9196. }
  9197. }
  9198. }
  9199. #region Nested types
  9200. /// <summary>Container for nested types declared in the SubMessage message type.</summary>
  9201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9202. public static partial class Types {
  9203. public sealed partial class SubGroup : pb::IMessage<SubGroup> {
  9204. private static readonly pb::MessageParser<SubGroup> _parser = new pb::MessageParser<SubGroup>(() => new SubGroup());
  9205. private pb::UnknownFieldSet _unknownFields;
  9206. private int _hasBits0;
  9207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9208. public static pb::MessageParser<SubGroup> Parser { get { return _parser; } }
  9209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9210. public static pbr::MessageDescriptor Descriptor {
  9211. get { return global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Descriptor.NestedTypes[0]; }
  9212. }
  9213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9214. pbr::MessageDescriptor pb::IMessage.Descriptor {
  9215. get { return Descriptor; }
  9216. }
  9217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9218. public SubGroup() {
  9219. OnConstruction();
  9220. }
  9221. partial void OnConstruction();
  9222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9223. public SubGroup(SubGroup other) : this() {
  9224. _hasBits0 = other._hasBits0;
  9225. i_ = other.i_;
  9226. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  9227. }
  9228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9229. public SubGroup Clone() {
  9230. return new SubGroup(this);
  9231. }
  9232. /// <summary>Field number for the "i" field.</summary>
  9233. public const int IFieldNumber = 2;
  9234. private readonly static int IDefaultValue = 0;
  9235. private int i_;
  9236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9237. public int I {
  9238. get { if ((_hasBits0 & 1) != 0) { return i_; } else { return IDefaultValue; } }
  9239. set {
  9240. _hasBits0 |= 1;
  9241. i_ = value;
  9242. }
  9243. }
  9244. /// <summary>Gets whether the "i" field is set</summary>
  9245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9246. public bool HasI {
  9247. get { return (_hasBits0 & 1) != 0; }
  9248. }
  9249. /// <summary>Clears the value of the "i" field</summary>
  9250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9251. public void ClearI() {
  9252. _hasBits0 &= ~1;
  9253. }
  9254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9255. public override bool Equals(object other) {
  9256. return Equals(other as SubGroup);
  9257. }
  9258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9259. public bool Equals(SubGroup other) {
  9260. if (ReferenceEquals(other, null)) {
  9261. return false;
  9262. }
  9263. if (ReferenceEquals(other, this)) {
  9264. return true;
  9265. }
  9266. if (I != other.I) return false;
  9267. return Equals(_unknownFields, other._unknownFields);
  9268. }
  9269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9270. public override int GetHashCode() {
  9271. int hash = 1;
  9272. if (HasI) hash ^= I.GetHashCode();
  9273. if (_unknownFields != null) {
  9274. hash ^= _unknownFields.GetHashCode();
  9275. }
  9276. return hash;
  9277. }
  9278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9279. public override string ToString() {
  9280. return pb::JsonFormatter.ToDiagnosticString(this);
  9281. }
  9282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9283. public void WriteTo(pb::CodedOutputStream output) {
  9284. if (HasI) {
  9285. output.WriteRawTag(16);
  9286. output.WriteInt32(I);
  9287. }
  9288. if (_unknownFields != null) {
  9289. _unknownFields.WriteTo(output);
  9290. }
  9291. }
  9292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9293. public int CalculateSize() {
  9294. int size = 0;
  9295. if (HasI) {
  9296. size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
  9297. }
  9298. if (_unknownFields != null) {
  9299. size += _unknownFields.CalculateSize();
  9300. }
  9301. return size;
  9302. }
  9303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9304. public void MergeFrom(SubGroup other) {
  9305. if (other == null) {
  9306. return;
  9307. }
  9308. if (other.HasI) {
  9309. I = other.I;
  9310. }
  9311. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  9312. }
  9313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9314. public void MergeFrom(pb::CodedInputStream input) {
  9315. uint tag;
  9316. while ((tag = input.ReadTag()) != 0) {
  9317. switch(tag) {
  9318. case 12:
  9319. return;
  9320. default:
  9321. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  9322. break;
  9323. case 16: {
  9324. I = input.ReadInt32();
  9325. break;
  9326. }
  9327. }
  9328. }
  9329. }
  9330. }
  9331. }
  9332. #endregion
  9333. }
  9334. }
  9335. #endregion
  9336. }
  9337. /// <summary>
  9338. /// Test that groups have disjoint field numbers from their siblings and
  9339. /// parents. This is NOT possible in proto1; only google.protobuf. When attempting
  9340. /// to compile with proto1, this will emit an error; so we only include it
  9341. /// in protobuf_unittest_proto.
  9342. /// </summary>
  9343. public sealed partial class TestDupFieldNumber : pb::IMessage<TestDupFieldNumber> {
  9344. private static readonly pb::MessageParser<TestDupFieldNumber> _parser = new pb::MessageParser<TestDupFieldNumber>(() => new TestDupFieldNumber());
  9345. private pb::UnknownFieldSet _unknownFields;
  9346. private int _hasBits0;
  9347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9348. public static pb::MessageParser<TestDupFieldNumber> Parser { get { return _parser; } }
  9349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9350. public static pbr::MessageDescriptor Descriptor {
  9351. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[24]; }
  9352. }
  9353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9354. pbr::MessageDescriptor pb::IMessage.Descriptor {
  9355. get { return Descriptor; }
  9356. }
  9357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9358. public TestDupFieldNumber() {
  9359. OnConstruction();
  9360. }
  9361. partial void OnConstruction();
  9362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9363. public TestDupFieldNumber(TestDupFieldNumber other) : this() {
  9364. _hasBits0 = other._hasBits0;
  9365. a_ = other.a_;
  9366. foo_ = other.HasFoo ? other.foo_.Clone() : null;
  9367. bar_ = other.HasBar ? other.bar_.Clone() : null;
  9368. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  9369. }
  9370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9371. public TestDupFieldNumber Clone() {
  9372. return new TestDupFieldNumber(this);
  9373. }
  9374. /// <summary>Field number for the "a" field.</summary>
  9375. public const int AFieldNumber = 1;
  9376. private readonly static int ADefaultValue = 0;
  9377. private int a_;
  9378. /// <summary>
  9379. /// NO_PROTO1
  9380. /// </summary>
  9381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9382. public int A {
  9383. get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
  9384. set {
  9385. _hasBits0 |= 1;
  9386. a_ = value;
  9387. }
  9388. }
  9389. /// <summary>Gets whether the "a" field is set</summary>
  9390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9391. public bool HasA {
  9392. get { return (_hasBits0 & 1) != 0; }
  9393. }
  9394. /// <summary>Clears the value of the "a" field</summary>
  9395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9396. public void ClearA() {
  9397. _hasBits0 &= ~1;
  9398. }
  9399. /// <summary>Field number for the "foo" field.</summary>
  9400. public const int FooFieldNumber = 2;
  9401. private global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo foo_;
  9402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9403. public global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo Foo {
  9404. get { return foo_; }
  9405. set {
  9406. foo_ = value;
  9407. }
  9408. }
  9409. /// <summary>Gets whether the foo field is set</summary>
  9410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9411. public bool HasFoo {
  9412. get { return foo_ != null; }
  9413. }
  9414. /// <summary>Clears the value of the foo field</summary>
  9415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9416. public void ClearFoo() {
  9417. foo_ = null;
  9418. }
  9419. /// <summary>Field number for the "bar" field.</summary>
  9420. public const int BarFieldNumber = 3;
  9421. private global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar bar_;
  9422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9423. public global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar Bar {
  9424. get { return bar_; }
  9425. set {
  9426. bar_ = value;
  9427. }
  9428. }
  9429. /// <summary>Gets whether the bar field is set</summary>
  9430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9431. public bool HasBar {
  9432. get { return bar_ != null; }
  9433. }
  9434. /// <summary>Clears the value of the bar field</summary>
  9435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9436. public void ClearBar() {
  9437. bar_ = null;
  9438. }
  9439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9440. public override bool Equals(object other) {
  9441. return Equals(other as TestDupFieldNumber);
  9442. }
  9443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9444. public bool Equals(TestDupFieldNumber other) {
  9445. if (ReferenceEquals(other, null)) {
  9446. return false;
  9447. }
  9448. if (ReferenceEquals(other, this)) {
  9449. return true;
  9450. }
  9451. if (A != other.A) return false;
  9452. if (!object.Equals(Foo, other.Foo)) return false;
  9453. if (!object.Equals(Bar, other.Bar)) return false;
  9454. return Equals(_unknownFields, other._unknownFields);
  9455. }
  9456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9457. public override int GetHashCode() {
  9458. int hash = 1;
  9459. if (HasA) hash ^= A.GetHashCode();
  9460. if (HasFoo) hash ^= Foo.GetHashCode();
  9461. if (HasBar) hash ^= Bar.GetHashCode();
  9462. if (_unknownFields != null) {
  9463. hash ^= _unknownFields.GetHashCode();
  9464. }
  9465. return hash;
  9466. }
  9467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9468. public override string ToString() {
  9469. return pb::JsonFormatter.ToDiagnosticString(this);
  9470. }
  9471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9472. public void WriteTo(pb::CodedOutputStream output) {
  9473. if (HasA) {
  9474. output.WriteRawTag(8);
  9475. output.WriteInt32(A);
  9476. }
  9477. if (HasFoo) {
  9478. output.WriteRawTag(19);
  9479. output.WriteGroup(Foo);
  9480. output.WriteRawTag(20);
  9481. }
  9482. if (HasBar) {
  9483. output.WriteRawTag(27);
  9484. output.WriteGroup(Bar);
  9485. output.WriteRawTag(28);
  9486. }
  9487. if (_unknownFields != null) {
  9488. _unknownFields.WriteTo(output);
  9489. }
  9490. }
  9491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9492. public int CalculateSize() {
  9493. int size = 0;
  9494. if (HasA) {
  9495. size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
  9496. }
  9497. if (HasFoo) {
  9498. size += 2 + pb::CodedOutputStream.ComputeGroupSize(Foo);
  9499. }
  9500. if (HasBar) {
  9501. size += 2 + pb::CodedOutputStream.ComputeGroupSize(Bar);
  9502. }
  9503. if (_unknownFields != null) {
  9504. size += _unknownFields.CalculateSize();
  9505. }
  9506. return size;
  9507. }
  9508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9509. public void MergeFrom(TestDupFieldNumber other) {
  9510. if (other == null) {
  9511. return;
  9512. }
  9513. if (other.HasA) {
  9514. A = other.A;
  9515. }
  9516. if (other.HasFoo) {
  9517. if (!HasFoo) {
  9518. Foo = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo();
  9519. }
  9520. Foo.MergeFrom(other.Foo);
  9521. }
  9522. if (other.HasBar) {
  9523. if (!HasBar) {
  9524. Bar = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar();
  9525. }
  9526. Bar.MergeFrom(other.Bar);
  9527. }
  9528. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  9529. }
  9530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9531. public void MergeFrom(pb::CodedInputStream input) {
  9532. uint tag;
  9533. while ((tag = input.ReadTag()) != 0) {
  9534. switch(tag) {
  9535. default:
  9536. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  9537. break;
  9538. case 8: {
  9539. A = input.ReadInt32();
  9540. break;
  9541. }
  9542. case 19: {
  9543. if (!HasFoo) {
  9544. Foo = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo();
  9545. }
  9546. input.ReadGroup(Foo);
  9547. break;
  9548. }
  9549. case 27: {
  9550. if (!HasBar) {
  9551. Bar = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar();
  9552. }
  9553. input.ReadGroup(Bar);
  9554. break;
  9555. }
  9556. }
  9557. }
  9558. }
  9559. #region Nested types
  9560. /// <summary>Container for nested types declared in the TestDupFieldNumber message type.</summary>
  9561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9562. public static partial class Types {
  9563. public sealed partial class Foo : pb::IMessage<Foo> {
  9564. private static readonly pb::MessageParser<Foo> _parser = new pb::MessageParser<Foo>(() => new Foo());
  9565. private pb::UnknownFieldSet _unknownFields;
  9566. private int _hasBits0;
  9567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9568. public static pb::MessageParser<Foo> Parser { get { return _parser; } }
  9569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9570. public static pbr::MessageDescriptor Descriptor {
  9571. get { return global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Descriptor.NestedTypes[0]; }
  9572. }
  9573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9574. pbr::MessageDescriptor pb::IMessage.Descriptor {
  9575. get { return Descriptor; }
  9576. }
  9577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9578. public Foo() {
  9579. OnConstruction();
  9580. }
  9581. partial void OnConstruction();
  9582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9583. public Foo(Foo other) : this() {
  9584. _hasBits0 = other._hasBits0;
  9585. a_ = other.a_;
  9586. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  9587. }
  9588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9589. public Foo Clone() {
  9590. return new Foo(this);
  9591. }
  9592. /// <summary>Field number for the "a" field.</summary>
  9593. public const int AFieldNumber = 1;
  9594. private readonly static int ADefaultValue = 0;
  9595. private int a_;
  9596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9597. public int A {
  9598. get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
  9599. set {
  9600. _hasBits0 |= 1;
  9601. a_ = value;
  9602. }
  9603. }
  9604. /// <summary>Gets whether the "a" field is set</summary>
  9605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9606. public bool HasA {
  9607. get { return (_hasBits0 & 1) != 0; }
  9608. }
  9609. /// <summary>Clears the value of the "a" field</summary>
  9610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9611. public void ClearA() {
  9612. _hasBits0 &= ~1;
  9613. }
  9614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9615. public override bool Equals(object other) {
  9616. return Equals(other as Foo);
  9617. }
  9618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9619. public bool Equals(Foo other) {
  9620. if (ReferenceEquals(other, null)) {
  9621. return false;
  9622. }
  9623. if (ReferenceEquals(other, this)) {
  9624. return true;
  9625. }
  9626. if (A != other.A) return false;
  9627. return Equals(_unknownFields, other._unknownFields);
  9628. }
  9629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9630. public override int GetHashCode() {
  9631. int hash = 1;
  9632. if (HasA) hash ^= A.GetHashCode();
  9633. if (_unknownFields != null) {
  9634. hash ^= _unknownFields.GetHashCode();
  9635. }
  9636. return hash;
  9637. }
  9638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9639. public override string ToString() {
  9640. return pb::JsonFormatter.ToDiagnosticString(this);
  9641. }
  9642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9643. public void WriteTo(pb::CodedOutputStream output) {
  9644. if (HasA) {
  9645. output.WriteRawTag(8);
  9646. output.WriteInt32(A);
  9647. }
  9648. if (_unknownFields != null) {
  9649. _unknownFields.WriteTo(output);
  9650. }
  9651. }
  9652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9653. public int CalculateSize() {
  9654. int size = 0;
  9655. if (HasA) {
  9656. size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
  9657. }
  9658. if (_unknownFields != null) {
  9659. size += _unknownFields.CalculateSize();
  9660. }
  9661. return size;
  9662. }
  9663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9664. public void MergeFrom(Foo other) {
  9665. if (other == null) {
  9666. return;
  9667. }
  9668. if (other.HasA) {
  9669. A = other.A;
  9670. }
  9671. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  9672. }
  9673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9674. public void MergeFrom(pb::CodedInputStream input) {
  9675. uint tag;
  9676. while ((tag = input.ReadTag()) != 0) {
  9677. switch(tag) {
  9678. case 20:
  9679. return;
  9680. default:
  9681. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  9682. break;
  9683. case 8: {
  9684. A = input.ReadInt32();
  9685. break;
  9686. }
  9687. }
  9688. }
  9689. }
  9690. }
  9691. public sealed partial class Bar : pb::IMessage<Bar> {
  9692. private static readonly pb::MessageParser<Bar> _parser = new pb::MessageParser<Bar>(() => new Bar());
  9693. private pb::UnknownFieldSet _unknownFields;
  9694. private int _hasBits0;
  9695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9696. public static pb::MessageParser<Bar> Parser { get { return _parser; } }
  9697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9698. public static pbr::MessageDescriptor Descriptor {
  9699. get { return global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Descriptor.NestedTypes[1]; }
  9700. }
  9701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9702. pbr::MessageDescriptor pb::IMessage.Descriptor {
  9703. get { return Descriptor; }
  9704. }
  9705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9706. public Bar() {
  9707. OnConstruction();
  9708. }
  9709. partial void OnConstruction();
  9710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9711. public Bar(Bar other) : this() {
  9712. _hasBits0 = other._hasBits0;
  9713. a_ = other.a_;
  9714. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  9715. }
  9716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9717. public Bar Clone() {
  9718. return new Bar(this);
  9719. }
  9720. /// <summary>Field number for the "a" field.</summary>
  9721. public const int AFieldNumber = 1;
  9722. private readonly static int ADefaultValue = 0;
  9723. private int a_;
  9724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9725. public int A {
  9726. get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
  9727. set {
  9728. _hasBits0 |= 1;
  9729. a_ = value;
  9730. }
  9731. }
  9732. /// <summary>Gets whether the "a" field is set</summary>
  9733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9734. public bool HasA {
  9735. get { return (_hasBits0 & 1) != 0; }
  9736. }
  9737. /// <summary>Clears the value of the "a" field</summary>
  9738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9739. public void ClearA() {
  9740. _hasBits0 &= ~1;
  9741. }
  9742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9743. public override bool Equals(object other) {
  9744. return Equals(other as Bar);
  9745. }
  9746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9747. public bool Equals(Bar other) {
  9748. if (ReferenceEquals(other, null)) {
  9749. return false;
  9750. }
  9751. if (ReferenceEquals(other, this)) {
  9752. return true;
  9753. }
  9754. if (A != other.A) return false;
  9755. return Equals(_unknownFields, other._unknownFields);
  9756. }
  9757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9758. public override int GetHashCode() {
  9759. int hash = 1;
  9760. if (HasA) hash ^= A.GetHashCode();
  9761. if (_unknownFields != null) {
  9762. hash ^= _unknownFields.GetHashCode();
  9763. }
  9764. return hash;
  9765. }
  9766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9767. public override string ToString() {
  9768. return pb::JsonFormatter.ToDiagnosticString(this);
  9769. }
  9770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9771. public void WriteTo(pb::CodedOutputStream output) {
  9772. if (HasA) {
  9773. output.WriteRawTag(8);
  9774. output.WriteInt32(A);
  9775. }
  9776. if (_unknownFields != null) {
  9777. _unknownFields.WriteTo(output);
  9778. }
  9779. }
  9780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9781. public int CalculateSize() {
  9782. int size = 0;
  9783. if (HasA) {
  9784. size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
  9785. }
  9786. if (_unknownFields != null) {
  9787. size += _unknownFields.CalculateSize();
  9788. }
  9789. return size;
  9790. }
  9791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9792. public void MergeFrom(Bar other) {
  9793. if (other == null) {
  9794. return;
  9795. }
  9796. if (other.HasA) {
  9797. A = other.A;
  9798. }
  9799. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  9800. }
  9801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9802. public void MergeFrom(pb::CodedInputStream input) {
  9803. uint tag;
  9804. while ((tag = input.ReadTag()) != 0) {
  9805. switch(tag) {
  9806. case 28:
  9807. return;
  9808. default:
  9809. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  9810. break;
  9811. case 8: {
  9812. A = input.ReadInt32();
  9813. break;
  9814. }
  9815. }
  9816. }
  9817. }
  9818. }
  9819. }
  9820. #endregion
  9821. }
  9822. /// <summary>
  9823. /// Additional messages for testing lazy fields.
  9824. /// </summary>
  9825. public sealed partial class TestEagerMessage : pb::IMessage<TestEagerMessage> {
  9826. private static readonly pb::MessageParser<TestEagerMessage> _parser = new pb::MessageParser<TestEagerMessage>(() => new TestEagerMessage());
  9827. private pb::UnknownFieldSet _unknownFields;
  9828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9829. public static pb::MessageParser<TestEagerMessage> Parser { get { return _parser; } }
  9830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9831. public static pbr::MessageDescriptor Descriptor {
  9832. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[25]; }
  9833. }
  9834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9835. pbr::MessageDescriptor pb::IMessage.Descriptor {
  9836. get { return Descriptor; }
  9837. }
  9838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9839. public TestEagerMessage() {
  9840. OnConstruction();
  9841. }
  9842. partial void OnConstruction();
  9843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9844. public TestEagerMessage(TestEagerMessage other) : this() {
  9845. subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null;
  9846. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  9847. }
  9848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9849. public TestEagerMessage Clone() {
  9850. return new TestEagerMessage(this);
  9851. }
  9852. /// <summary>Field number for the "sub_message" field.</summary>
  9853. public const int SubMessageFieldNumber = 1;
  9854. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subMessage_;
  9855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9856. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes SubMessage {
  9857. get { return subMessage_; }
  9858. set {
  9859. subMessage_ = value;
  9860. }
  9861. }
  9862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9863. public override bool Equals(object other) {
  9864. return Equals(other as TestEagerMessage);
  9865. }
  9866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9867. public bool Equals(TestEagerMessage other) {
  9868. if (ReferenceEquals(other, null)) {
  9869. return false;
  9870. }
  9871. if (ReferenceEquals(other, this)) {
  9872. return true;
  9873. }
  9874. if (!object.Equals(SubMessage, other.SubMessage)) return false;
  9875. return Equals(_unknownFields, other._unknownFields);
  9876. }
  9877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9878. public override int GetHashCode() {
  9879. int hash = 1;
  9880. if (subMessage_ != null) hash ^= SubMessage.GetHashCode();
  9881. if (_unknownFields != null) {
  9882. hash ^= _unknownFields.GetHashCode();
  9883. }
  9884. return hash;
  9885. }
  9886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9887. public override string ToString() {
  9888. return pb::JsonFormatter.ToDiagnosticString(this);
  9889. }
  9890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9891. public void WriteTo(pb::CodedOutputStream output) {
  9892. if (subMessage_ != null) {
  9893. output.WriteRawTag(10);
  9894. output.WriteMessage(SubMessage);
  9895. }
  9896. if (_unknownFields != null) {
  9897. _unknownFields.WriteTo(output);
  9898. }
  9899. }
  9900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9901. public int CalculateSize() {
  9902. int size = 0;
  9903. if (subMessage_ != null) {
  9904. size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage);
  9905. }
  9906. if (_unknownFields != null) {
  9907. size += _unknownFields.CalculateSize();
  9908. }
  9909. return size;
  9910. }
  9911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9912. public void MergeFrom(TestEagerMessage other) {
  9913. if (other == null) {
  9914. return;
  9915. }
  9916. if (other.subMessage_ != null) {
  9917. if (subMessage_ == null) {
  9918. SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  9919. }
  9920. SubMessage.MergeFrom(other.SubMessage);
  9921. }
  9922. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  9923. }
  9924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9925. public void MergeFrom(pb::CodedInputStream input) {
  9926. uint tag;
  9927. while ((tag = input.ReadTag()) != 0) {
  9928. switch(tag) {
  9929. default:
  9930. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  9931. break;
  9932. case 10: {
  9933. if (subMessage_ == null) {
  9934. SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  9935. }
  9936. input.ReadMessage(SubMessage);
  9937. break;
  9938. }
  9939. }
  9940. }
  9941. }
  9942. }
  9943. public sealed partial class TestLazyMessage : pb::IMessage<TestLazyMessage> {
  9944. private static readonly pb::MessageParser<TestLazyMessage> _parser = new pb::MessageParser<TestLazyMessage>(() => new TestLazyMessage());
  9945. private pb::UnknownFieldSet _unknownFields;
  9946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9947. public static pb::MessageParser<TestLazyMessage> Parser { get { return _parser; } }
  9948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9949. public static pbr::MessageDescriptor Descriptor {
  9950. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[26]; }
  9951. }
  9952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9953. pbr::MessageDescriptor pb::IMessage.Descriptor {
  9954. get { return Descriptor; }
  9955. }
  9956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9957. public TestLazyMessage() {
  9958. OnConstruction();
  9959. }
  9960. partial void OnConstruction();
  9961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9962. public TestLazyMessage(TestLazyMessage other) : this() {
  9963. subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null;
  9964. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  9965. }
  9966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9967. public TestLazyMessage Clone() {
  9968. return new TestLazyMessage(this);
  9969. }
  9970. /// <summary>Field number for the "sub_message" field.</summary>
  9971. public const int SubMessageFieldNumber = 1;
  9972. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subMessage_;
  9973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9974. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes SubMessage {
  9975. get { return subMessage_; }
  9976. set {
  9977. subMessage_ = value;
  9978. }
  9979. }
  9980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9981. public override bool Equals(object other) {
  9982. return Equals(other as TestLazyMessage);
  9983. }
  9984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9985. public bool Equals(TestLazyMessage other) {
  9986. if (ReferenceEquals(other, null)) {
  9987. return false;
  9988. }
  9989. if (ReferenceEquals(other, this)) {
  9990. return true;
  9991. }
  9992. if (!object.Equals(SubMessage, other.SubMessage)) return false;
  9993. return Equals(_unknownFields, other._unknownFields);
  9994. }
  9995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  9996. public override int GetHashCode() {
  9997. int hash = 1;
  9998. if (subMessage_ != null) hash ^= SubMessage.GetHashCode();
  9999. if (_unknownFields != null) {
  10000. hash ^= _unknownFields.GetHashCode();
  10001. }
  10002. return hash;
  10003. }
  10004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10005. public override string ToString() {
  10006. return pb::JsonFormatter.ToDiagnosticString(this);
  10007. }
  10008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10009. public void WriteTo(pb::CodedOutputStream output) {
  10010. if (subMessage_ != null) {
  10011. output.WriteRawTag(10);
  10012. output.WriteMessage(SubMessage);
  10013. }
  10014. if (_unknownFields != null) {
  10015. _unknownFields.WriteTo(output);
  10016. }
  10017. }
  10018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10019. public int CalculateSize() {
  10020. int size = 0;
  10021. if (subMessage_ != null) {
  10022. size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage);
  10023. }
  10024. if (_unknownFields != null) {
  10025. size += _unknownFields.CalculateSize();
  10026. }
  10027. return size;
  10028. }
  10029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10030. public void MergeFrom(TestLazyMessage other) {
  10031. if (other == null) {
  10032. return;
  10033. }
  10034. if (other.subMessage_ != null) {
  10035. if (subMessage_ == null) {
  10036. SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  10037. }
  10038. SubMessage.MergeFrom(other.SubMessage);
  10039. }
  10040. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  10041. }
  10042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10043. public void MergeFrom(pb::CodedInputStream input) {
  10044. uint tag;
  10045. while ((tag = input.ReadTag()) != 0) {
  10046. switch(tag) {
  10047. default:
  10048. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  10049. break;
  10050. case 10: {
  10051. if (subMessage_ == null) {
  10052. SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  10053. }
  10054. input.ReadMessage(SubMessage);
  10055. break;
  10056. }
  10057. }
  10058. }
  10059. }
  10060. }
  10061. /// <summary>
  10062. /// Needed for a Python test.
  10063. /// </summary>
  10064. public sealed partial class TestNestedMessageHasBits : pb::IMessage<TestNestedMessageHasBits> {
  10065. private static readonly pb::MessageParser<TestNestedMessageHasBits> _parser = new pb::MessageParser<TestNestedMessageHasBits>(() => new TestNestedMessageHasBits());
  10066. private pb::UnknownFieldSet _unknownFields;
  10067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10068. public static pb::MessageParser<TestNestedMessageHasBits> Parser { get { return _parser; } }
  10069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10070. public static pbr::MessageDescriptor Descriptor {
  10071. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[27]; }
  10072. }
  10073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10074. pbr::MessageDescriptor pb::IMessage.Descriptor {
  10075. get { return Descriptor; }
  10076. }
  10077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10078. public TestNestedMessageHasBits() {
  10079. OnConstruction();
  10080. }
  10081. partial void OnConstruction();
  10082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10083. public TestNestedMessageHasBits(TestNestedMessageHasBits other) : this() {
  10084. optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
  10085. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  10086. }
  10087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10088. public TestNestedMessageHasBits Clone() {
  10089. return new TestNestedMessageHasBits(this);
  10090. }
  10091. /// <summary>Field number for the "optional_nested_message" field.</summary>
  10092. public const int OptionalNestedMessageFieldNumber = 1;
  10093. private global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_;
  10094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10095. public global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  10096. get { return optionalNestedMessage_; }
  10097. set {
  10098. optionalNestedMessage_ = value;
  10099. }
  10100. }
  10101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10102. public override bool Equals(object other) {
  10103. return Equals(other as TestNestedMessageHasBits);
  10104. }
  10105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10106. public bool Equals(TestNestedMessageHasBits other) {
  10107. if (ReferenceEquals(other, null)) {
  10108. return false;
  10109. }
  10110. if (ReferenceEquals(other, this)) {
  10111. return true;
  10112. }
  10113. if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
  10114. return Equals(_unknownFields, other._unknownFields);
  10115. }
  10116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10117. public override int GetHashCode() {
  10118. int hash = 1;
  10119. if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
  10120. if (_unknownFields != null) {
  10121. hash ^= _unknownFields.GetHashCode();
  10122. }
  10123. return hash;
  10124. }
  10125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10126. public override string ToString() {
  10127. return pb::JsonFormatter.ToDiagnosticString(this);
  10128. }
  10129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10130. public void WriteTo(pb::CodedOutputStream output) {
  10131. if (optionalNestedMessage_ != null) {
  10132. output.WriteRawTag(10);
  10133. output.WriteMessage(OptionalNestedMessage);
  10134. }
  10135. if (_unknownFields != null) {
  10136. _unknownFields.WriteTo(output);
  10137. }
  10138. }
  10139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10140. public int CalculateSize() {
  10141. int size = 0;
  10142. if (optionalNestedMessage_ != null) {
  10143. size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
  10144. }
  10145. if (_unknownFields != null) {
  10146. size += _unknownFields.CalculateSize();
  10147. }
  10148. return size;
  10149. }
  10150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10151. public void MergeFrom(TestNestedMessageHasBits other) {
  10152. if (other == null) {
  10153. return;
  10154. }
  10155. if (other.optionalNestedMessage_ != null) {
  10156. if (optionalNestedMessage_ == null) {
  10157. OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage();
  10158. }
  10159. OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
  10160. }
  10161. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  10162. }
  10163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10164. public void MergeFrom(pb::CodedInputStream input) {
  10165. uint tag;
  10166. while ((tag = input.ReadTag()) != 0) {
  10167. switch(tag) {
  10168. default:
  10169. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  10170. break;
  10171. case 10: {
  10172. if (optionalNestedMessage_ == null) {
  10173. OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage();
  10174. }
  10175. input.ReadMessage(OptionalNestedMessage);
  10176. break;
  10177. }
  10178. }
  10179. }
  10180. }
  10181. #region Nested types
  10182. /// <summary>Container for nested types declared in the TestNestedMessageHasBits message type.</summary>
  10183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10184. public static partial class Types {
  10185. public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
  10186. private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
  10187. private pb::UnknownFieldSet _unknownFields;
  10188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10189. public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
  10190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10191. public static pbr::MessageDescriptor Descriptor {
  10192. get { return global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Descriptor.NestedTypes[0]; }
  10193. }
  10194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10195. pbr::MessageDescriptor pb::IMessage.Descriptor {
  10196. get { return Descriptor; }
  10197. }
  10198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10199. public NestedMessage() {
  10200. OnConstruction();
  10201. }
  10202. partial void OnConstruction();
  10203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10204. public NestedMessage(NestedMessage other) : this() {
  10205. nestedmessageRepeatedInt32_ = other.nestedmessageRepeatedInt32_.Clone();
  10206. nestedmessageRepeatedForeignmessage_ = other.nestedmessageRepeatedForeignmessage_.Clone();
  10207. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  10208. }
  10209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10210. public NestedMessage Clone() {
  10211. return new NestedMessage(this);
  10212. }
  10213. /// <summary>Field number for the "nestedmessage_repeated_int32" field.</summary>
  10214. public const int NestedmessageRepeatedInt32FieldNumber = 1;
  10215. private static readonly pb::FieldCodec<int> _repeated_nestedmessageRepeatedInt32_codec
  10216. = pb::FieldCodec.ForInt32(8);
  10217. private readonly pbc::RepeatedField<int> nestedmessageRepeatedInt32_ = new pbc::RepeatedField<int>();
  10218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10219. public pbc::RepeatedField<int> NestedmessageRepeatedInt32 {
  10220. get { return nestedmessageRepeatedInt32_; }
  10221. }
  10222. /// <summary>Field number for the "nestedmessage_repeated_foreignmessage" field.</summary>
  10223. public const int NestedmessageRepeatedForeignmessageFieldNumber = 2;
  10224. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> _repeated_nestedmessageRepeatedForeignmessage_codec
  10225. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser);
  10226. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> nestedmessageRepeatedForeignmessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>();
  10227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10228. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> NestedmessageRepeatedForeignmessage {
  10229. get { return nestedmessageRepeatedForeignmessage_; }
  10230. }
  10231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10232. public override bool Equals(object other) {
  10233. return Equals(other as NestedMessage);
  10234. }
  10235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10236. public bool Equals(NestedMessage other) {
  10237. if (ReferenceEquals(other, null)) {
  10238. return false;
  10239. }
  10240. if (ReferenceEquals(other, this)) {
  10241. return true;
  10242. }
  10243. if(!nestedmessageRepeatedInt32_.Equals(other.nestedmessageRepeatedInt32_)) return false;
  10244. if(!nestedmessageRepeatedForeignmessage_.Equals(other.nestedmessageRepeatedForeignmessage_)) return false;
  10245. return Equals(_unknownFields, other._unknownFields);
  10246. }
  10247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10248. public override int GetHashCode() {
  10249. int hash = 1;
  10250. hash ^= nestedmessageRepeatedInt32_.GetHashCode();
  10251. hash ^= nestedmessageRepeatedForeignmessage_.GetHashCode();
  10252. if (_unknownFields != null) {
  10253. hash ^= _unknownFields.GetHashCode();
  10254. }
  10255. return hash;
  10256. }
  10257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10258. public override string ToString() {
  10259. return pb::JsonFormatter.ToDiagnosticString(this);
  10260. }
  10261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10262. public void WriteTo(pb::CodedOutputStream output) {
  10263. nestedmessageRepeatedInt32_.WriteTo(output, _repeated_nestedmessageRepeatedInt32_codec);
  10264. nestedmessageRepeatedForeignmessage_.WriteTo(output, _repeated_nestedmessageRepeatedForeignmessage_codec);
  10265. if (_unknownFields != null) {
  10266. _unknownFields.WriteTo(output);
  10267. }
  10268. }
  10269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10270. public int CalculateSize() {
  10271. int size = 0;
  10272. size += nestedmessageRepeatedInt32_.CalculateSize(_repeated_nestedmessageRepeatedInt32_codec);
  10273. size += nestedmessageRepeatedForeignmessage_.CalculateSize(_repeated_nestedmessageRepeatedForeignmessage_codec);
  10274. if (_unknownFields != null) {
  10275. size += _unknownFields.CalculateSize();
  10276. }
  10277. return size;
  10278. }
  10279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10280. public void MergeFrom(NestedMessage other) {
  10281. if (other == null) {
  10282. return;
  10283. }
  10284. nestedmessageRepeatedInt32_.Add(other.nestedmessageRepeatedInt32_);
  10285. nestedmessageRepeatedForeignmessage_.Add(other.nestedmessageRepeatedForeignmessage_);
  10286. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  10287. }
  10288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10289. public void MergeFrom(pb::CodedInputStream input) {
  10290. uint tag;
  10291. while ((tag = input.ReadTag()) != 0) {
  10292. switch(tag) {
  10293. default:
  10294. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  10295. break;
  10296. case 10:
  10297. case 8: {
  10298. nestedmessageRepeatedInt32_.AddEntriesFrom(input, _repeated_nestedmessageRepeatedInt32_codec);
  10299. break;
  10300. }
  10301. case 18: {
  10302. nestedmessageRepeatedForeignmessage_.AddEntriesFrom(input, _repeated_nestedmessageRepeatedForeignmessage_codec);
  10303. break;
  10304. }
  10305. }
  10306. }
  10307. }
  10308. }
  10309. }
  10310. #endregion
  10311. }
  10312. /// <summary>
  10313. /// Test message with CamelCase field names. This violates Protocol Buffer
  10314. /// standard style.
  10315. /// </summary>
  10316. public sealed partial class TestCamelCaseFieldNames : pb::IMessage<TestCamelCaseFieldNames> {
  10317. private static readonly pb::MessageParser<TestCamelCaseFieldNames> _parser = new pb::MessageParser<TestCamelCaseFieldNames>(() => new TestCamelCaseFieldNames());
  10318. private pb::UnknownFieldSet _unknownFields;
  10319. private int _hasBits0;
  10320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10321. public static pb::MessageParser<TestCamelCaseFieldNames> Parser { get { return _parser; } }
  10322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10323. public static pbr::MessageDescriptor Descriptor {
  10324. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[28]; }
  10325. }
  10326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10327. pbr::MessageDescriptor pb::IMessage.Descriptor {
  10328. get { return Descriptor; }
  10329. }
  10330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10331. public TestCamelCaseFieldNames() {
  10332. OnConstruction();
  10333. }
  10334. partial void OnConstruction();
  10335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10336. public TestCamelCaseFieldNames(TestCamelCaseFieldNames other) : this() {
  10337. _hasBits0 = other._hasBits0;
  10338. primitiveField_ = other.primitiveField_;
  10339. stringField_ = other.stringField_;
  10340. enumField_ = other.enumField_;
  10341. messageField_ = other.messageField_ != null ? other.messageField_.Clone() : null;
  10342. stringPieceField_ = other.stringPieceField_;
  10343. cordField_ = other.cordField_;
  10344. repeatedPrimitiveField_ = other.repeatedPrimitiveField_.Clone();
  10345. repeatedStringField_ = other.repeatedStringField_.Clone();
  10346. repeatedEnumField_ = other.repeatedEnumField_.Clone();
  10347. repeatedMessageField_ = other.repeatedMessageField_.Clone();
  10348. repeatedStringPieceField_ = other.repeatedStringPieceField_.Clone();
  10349. repeatedCordField_ = other.repeatedCordField_.Clone();
  10350. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  10351. }
  10352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10353. public TestCamelCaseFieldNames Clone() {
  10354. return new TestCamelCaseFieldNames(this);
  10355. }
  10356. /// <summary>Field number for the "PrimitiveField" field.</summary>
  10357. public const int PrimitiveFieldFieldNumber = 1;
  10358. private readonly static int PrimitiveFieldDefaultValue = 0;
  10359. private int primitiveField_;
  10360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10361. public int PrimitiveField {
  10362. get { if ((_hasBits0 & 1) != 0) { return primitiveField_; } else { return PrimitiveFieldDefaultValue; } }
  10363. set {
  10364. _hasBits0 |= 1;
  10365. primitiveField_ = value;
  10366. }
  10367. }
  10368. /// <summary>Gets whether the "PrimitiveField" field is set</summary>
  10369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10370. public bool HasPrimitiveField {
  10371. get { return (_hasBits0 & 1) != 0; }
  10372. }
  10373. /// <summary>Clears the value of the "PrimitiveField" field</summary>
  10374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10375. public void ClearPrimitiveField() {
  10376. _hasBits0 &= ~1;
  10377. }
  10378. /// <summary>Field number for the "StringField" field.</summary>
  10379. public const int StringFieldFieldNumber = 2;
  10380. private readonly static string StringFieldDefaultValue = "";
  10381. private string stringField_;
  10382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10383. public string StringField {
  10384. get { return stringField_ ?? StringFieldDefaultValue; }
  10385. set {
  10386. stringField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  10387. }
  10388. }
  10389. /// <summary>Gets whether the "StringField" field is set</summary>
  10390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10391. public bool HasStringField {
  10392. get { return stringField_ != null; }
  10393. }
  10394. /// <summary>Clears the value of the "StringField" field</summary>
  10395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10396. public void ClearStringField() {
  10397. stringField_ = null;
  10398. }
  10399. /// <summary>Field number for the "EnumField" field.</summary>
  10400. public const int EnumFieldFieldNumber = 3;
  10401. private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumFieldDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
  10402. private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum enumField_;
  10403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10404. public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumField {
  10405. get { if ((_hasBits0 & 2) != 0) { return enumField_; } else { return EnumFieldDefaultValue; } }
  10406. set {
  10407. _hasBits0 |= 2;
  10408. enumField_ = value;
  10409. }
  10410. }
  10411. /// <summary>Gets whether the "EnumField" field is set</summary>
  10412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10413. public bool HasEnumField {
  10414. get { return (_hasBits0 & 2) != 0; }
  10415. }
  10416. /// <summary>Clears the value of the "EnumField" field</summary>
  10417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10418. public void ClearEnumField() {
  10419. _hasBits0 &= ~2;
  10420. }
  10421. /// <summary>Field number for the "MessageField" field.</summary>
  10422. public const int MessageFieldFieldNumber = 4;
  10423. private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage messageField_;
  10424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10425. public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage MessageField {
  10426. get { return messageField_; }
  10427. set {
  10428. messageField_ = value;
  10429. }
  10430. }
  10431. /// <summary>Field number for the "StringPieceField" field.</summary>
  10432. public const int StringPieceFieldFieldNumber = 5;
  10433. private readonly static string StringPieceFieldDefaultValue = "";
  10434. private string stringPieceField_;
  10435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10436. public string StringPieceField {
  10437. get { return stringPieceField_ ?? StringPieceFieldDefaultValue; }
  10438. set {
  10439. stringPieceField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  10440. }
  10441. }
  10442. /// <summary>Gets whether the "StringPieceField" field is set</summary>
  10443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10444. public bool HasStringPieceField {
  10445. get { return stringPieceField_ != null; }
  10446. }
  10447. /// <summary>Clears the value of the "StringPieceField" field</summary>
  10448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10449. public void ClearStringPieceField() {
  10450. stringPieceField_ = null;
  10451. }
  10452. /// <summary>Field number for the "CordField" field.</summary>
  10453. public const int CordFieldFieldNumber = 6;
  10454. private readonly static string CordFieldDefaultValue = "";
  10455. private string cordField_;
  10456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10457. public string CordField {
  10458. get { return cordField_ ?? CordFieldDefaultValue; }
  10459. set {
  10460. cordField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  10461. }
  10462. }
  10463. /// <summary>Gets whether the "CordField" field is set</summary>
  10464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10465. public bool HasCordField {
  10466. get { return cordField_ != null; }
  10467. }
  10468. /// <summary>Clears the value of the "CordField" field</summary>
  10469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10470. public void ClearCordField() {
  10471. cordField_ = null;
  10472. }
  10473. /// <summary>Field number for the "RepeatedPrimitiveField" field.</summary>
  10474. public const int RepeatedPrimitiveFieldFieldNumber = 7;
  10475. private static readonly pb::FieldCodec<int> _repeated_repeatedPrimitiveField_codec
  10476. = pb::FieldCodec.ForInt32(56);
  10477. private readonly pbc::RepeatedField<int> repeatedPrimitiveField_ = new pbc::RepeatedField<int>();
  10478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10479. public pbc::RepeatedField<int> RepeatedPrimitiveField {
  10480. get { return repeatedPrimitiveField_; }
  10481. }
  10482. /// <summary>Field number for the "RepeatedStringField" field.</summary>
  10483. public const int RepeatedStringFieldFieldNumber = 8;
  10484. private static readonly pb::FieldCodec<string> _repeated_repeatedStringField_codec
  10485. = pb::FieldCodec.ForString(66);
  10486. private readonly pbc::RepeatedField<string> repeatedStringField_ = new pbc::RepeatedField<string>();
  10487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10488. public pbc::RepeatedField<string> RepeatedStringField {
  10489. get { return repeatedStringField_; }
  10490. }
  10491. /// <summary>Field number for the "RepeatedEnumField" field.</summary>
  10492. public const int RepeatedEnumFieldFieldNumber = 9;
  10493. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_repeatedEnumField_codec
  10494. = pb::FieldCodec.ForEnum(72, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x);
  10495. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> repeatedEnumField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>();
  10496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10497. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> RepeatedEnumField {
  10498. get { return repeatedEnumField_; }
  10499. }
  10500. /// <summary>Field number for the "RepeatedMessageField" field.</summary>
  10501. public const int RepeatedMessageFieldFieldNumber = 10;
  10502. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> _repeated_repeatedMessageField_codec
  10503. = pb::FieldCodec.ForMessage(82, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser);
  10504. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> repeatedMessageField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>();
  10505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10506. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> RepeatedMessageField {
  10507. get { return repeatedMessageField_; }
  10508. }
  10509. /// <summary>Field number for the "RepeatedStringPieceField" field.</summary>
  10510. public const int RepeatedStringPieceFieldFieldNumber = 11;
  10511. private static readonly pb::FieldCodec<string> _repeated_repeatedStringPieceField_codec
  10512. = pb::FieldCodec.ForString(90);
  10513. private readonly pbc::RepeatedField<string> repeatedStringPieceField_ = new pbc::RepeatedField<string>();
  10514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10515. public pbc::RepeatedField<string> RepeatedStringPieceField {
  10516. get { return repeatedStringPieceField_; }
  10517. }
  10518. /// <summary>Field number for the "RepeatedCordField" field.</summary>
  10519. public const int RepeatedCordFieldFieldNumber = 12;
  10520. private static readonly pb::FieldCodec<string> _repeated_repeatedCordField_codec
  10521. = pb::FieldCodec.ForString(98);
  10522. private readonly pbc::RepeatedField<string> repeatedCordField_ = new pbc::RepeatedField<string>();
  10523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10524. public pbc::RepeatedField<string> RepeatedCordField {
  10525. get { return repeatedCordField_; }
  10526. }
  10527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10528. public override bool Equals(object other) {
  10529. return Equals(other as TestCamelCaseFieldNames);
  10530. }
  10531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10532. public bool Equals(TestCamelCaseFieldNames other) {
  10533. if (ReferenceEquals(other, null)) {
  10534. return false;
  10535. }
  10536. if (ReferenceEquals(other, this)) {
  10537. return true;
  10538. }
  10539. if (PrimitiveField != other.PrimitiveField) return false;
  10540. if (StringField != other.StringField) return false;
  10541. if (EnumField != other.EnumField) return false;
  10542. if (!object.Equals(MessageField, other.MessageField)) return false;
  10543. if (StringPieceField != other.StringPieceField) return false;
  10544. if (CordField != other.CordField) return false;
  10545. if(!repeatedPrimitiveField_.Equals(other.repeatedPrimitiveField_)) return false;
  10546. if(!repeatedStringField_.Equals(other.repeatedStringField_)) return false;
  10547. if(!repeatedEnumField_.Equals(other.repeatedEnumField_)) return false;
  10548. if(!repeatedMessageField_.Equals(other.repeatedMessageField_)) return false;
  10549. if(!repeatedStringPieceField_.Equals(other.repeatedStringPieceField_)) return false;
  10550. if(!repeatedCordField_.Equals(other.repeatedCordField_)) return false;
  10551. return Equals(_unknownFields, other._unknownFields);
  10552. }
  10553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10554. public override int GetHashCode() {
  10555. int hash = 1;
  10556. if (HasPrimitiveField) hash ^= PrimitiveField.GetHashCode();
  10557. if (HasStringField) hash ^= StringField.GetHashCode();
  10558. if (HasEnumField) hash ^= EnumField.GetHashCode();
  10559. if (messageField_ != null) hash ^= MessageField.GetHashCode();
  10560. if (HasStringPieceField) hash ^= StringPieceField.GetHashCode();
  10561. if (HasCordField) hash ^= CordField.GetHashCode();
  10562. hash ^= repeatedPrimitiveField_.GetHashCode();
  10563. hash ^= repeatedStringField_.GetHashCode();
  10564. hash ^= repeatedEnumField_.GetHashCode();
  10565. hash ^= repeatedMessageField_.GetHashCode();
  10566. hash ^= repeatedStringPieceField_.GetHashCode();
  10567. hash ^= repeatedCordField_.GetHashCode();
  10568. if (_unknownFields != null) {
  10569. hash ^= _unknownFields.GetHashCode();
  10570. }
  10571. return hash;
  10572. }
  10573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10574. public override string ToString() {
  10575. return pb::JsonFormatter.ToDiagnosticString(this);
  10576. }
  10577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10578. public void WriteTo(pb::CodedOutputStream output) {
  10579. if (HasPrimitiveField) {
  10580. output.WriteRawTag(8);
  10581. output.WriteInt32(PrimitiveField);
  10582. }
  10583. if (HasStringField) {
  10584. output.WriteRawTag(18);
  10585. output.WriteString(StringField);
  10586. }
  10587. if (HasEnumField) {
  10588. output.WriteRawTag(24);
  10589. output.WriteEnum((int) EnumField);
  10590. }
  10591. if (messageField_ != null) {
  10592. output.WriteRawTag(34);
  10593. output.WriteMessage(MessageField);
  10594. }
  10595. if (HasStringPieceField) {
  10596. output.WriteRawTag(42);
  10597. output.WriteString(StringPieceField);
  10598. }
  10599. if (HasCordField) {
  10600. output.WriteRawTag(50);
  10601. output.WriteString(CordField);
  10602. }
  10603. repeatedPrimitiveField_.WriteTo(output, _repeated_repeatedPrimitiveField_codec);
  10604. repeatedStringField_.WriteTo(output, _repeated_repeatedStringField_codec);
  10605. repeatedEnumField_.WriteTo(output, _repeated_repeatedEnumField_codec);
  10606. repeatedMessageField_.WriteTo(output, _repeated_repeatedMessageField_codec);
  10607. repeatedStringPieceField_.WriteTo(output, _repeated_repeatedStringPieceField_codec);
  10608. repeatedCordField_.WriteTo(output, _repeated_repeatedCordField_codec);
  10609. if (_unknownFields != null) {
  10610. _unknownFields.WriteTo(output);
  10611. }
  10612. }
  10613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10614. public int CalculateSize() {
  10615. int size = 0;
  10616. if (HasPrimitiveField) {
  10617. size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveField);
  10618. }
  10619. if (HasStringField) {
  10620. size += 1 + pb::CodedOutputStream.ComputeStringSize(StringField);
  10621. }
  10622. if (HasEnumField) {
  10623. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumField);
  10624. }
  10625. if (messageField_ != null) {
  10626. size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageField);
  10627. }
  10628. if (HasStringPieceField) {
  10629. size += 1 + pb::CodedOutputStream.ComputeStringSize(StringPieceField);
  10630. }
  10631. if (HasCordField) {
  10632. size += 1 + pb::CodedOutputStream.ComputeStringSize(CordField);
  10633. }
  10634. size += repeatedPrimitiveField_.CalculateSize(_repeated_repeatedPrimitiveField_codec);
  10635. size += repeatedStringField_.CalculateSize(_repeated_repeatedStringField_codec);
  10636. size += repeatedEnumField_.CalculateSize(_repeated_repeatedEnumField_codec);
  10637. size += repeatedMessageField_.CalculateSize(_repeated_repeatedMessageField_codec);
  10638. size += repeatedStringPieceField_.CalculateSize(_repeated_repeatedStringPieceField_codec);
  10639. size += repeatedCordField_.CalculateSize(_repeated_repeatedCordField_codec);
  10640. if (_unknownFields != null) {
  10641. size += _unknownFields.CalculateSize();
  10642. }
  10643. return size;
  10644. }
  10645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10646. public void MergeFrom(TestCamelCaseFieldNames other) {
  10647. if (other == null) {
  10648. return;
  10649. }
  10650. if (other.HasPrimitiveField) {
  10651. PrimitiveField = other.PrimitiveField;
  10652. }
  10653. if (other.HasStringField) {
  10654. StringField = other.StringField;
  10655. }
  10656. if (other.HasEnumField) {
  10657. EnumField = other.EnumField;
  10658. }
  10659. if (other.messageField_ != null) {
  10660. if (messageField_ == null) {
  10661. MessageField = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
  10662. }
  10663. MessageField.MergeFrom(other.MessageField);
  10664. }
  10665. if (other.HasStringPieceField) {
  10666. StringPieceField = other.StringPieceField;
  10667. }
  10668. if (other.HasCordField) {
  10669. CordField = other.CordField;
  10670. }
  10671. repeatedPrimitiveField_.Add(other.repeatedPrimitiveField_);
  10672. repeatedStringField_.Add(other.repeatedStringField_);
  10673. repeatedEnumField_.Add(other.repeatedEnumField_);
  10674. repeatedMessageField_.Add(other.repeatedMessageField_);
  10675. repeatedStringPieceField_.Add(other.repeatedStringPieceField_);
  10676. repeatedCordField_.Add(other.repeatedCordField_);
  10677. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  10678. }
  10679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10680. public void MergeFrom(pb::CodedInputStream input) {
  10681. uint tag;
  10682. while ((tag = input.ReadTag()) != 0) {
  10683. switch(tag) {
  10684. default:
  10685. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  10686. break;
  10687. case 8: {
  10688. PrimitiveField = input.ReadInt32();
  10689. break;
  10690. }
  10691. case 18: {
  10692. StringField = input.ReadString();
  10693. break;
  10694. }
  10695. case 24: {
  10696. EnumField = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
  10697. break;
  10698. }
  10699. case 34: {
  10700. if (messageField_ == null) {
  10701. MessageField = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
  10702. }
  10703. input.ReadMessage(MessageField);
  10704. break;
  10705. }
  10706. case 42: {
  10707. StringPieceField = input.ReadString();
  10708. break;
  10709. }
  10710. case 50: {
  10711. CordField = input.ReadString();
  10712. break;
  10713. }
  10714. case 58:
  10715. case 56: {
  10716. repeatedPrimitiveField_.AddEntriesFrom(input, _repeated_repeatedPrimitiveField_codec);
  10717. break;
  10718. }
  10719. case 66: {
  10720. repeatedStringField_.AddEntriesFrom(input, _repeated_repeatedStringField_codec);
  10721. break;
  10722. }
  10723. case 74:
  10724. case 72: {
  10725. repeatedEnumField_.AddEntriesFrom(input, _repeated_repeatedEnumField_codec);
  10726. break;
  10727. }
  10728. case 82: {
  10729. repeatedMessageField_.AddEntriesFrom(input, _repeated_repeatedMessageField_codec);
  10730. break;
  10731. }
  10732. case 90: {
  10733. repeatedStringPieceField_.AddEntriesFrom(input, _repeated_repeatedStringPieceField_codec);
  10734. break;
  10735. }
  10736. case 98: {
  10737. repeatedCordField_.AddEntriesFrom(input, _repeated_repeatedCordField_codec);
  10738. break;
  10739. }
  10740. }
  10741. }
  10742. }
  10743. }
  10744. /// <summary>
  10745. /// We list fields out of order, to ensure that we're using field number and not
  10746. /// field index to determine serialization order.
  10747. /// </summary>
  10748. public sealed partial class TestFieldOrderings : pb::IExtendableMessage<TestFieldOrderings> {
  10749. private static readonly pb::MessageParser<TestFieldOrderings> _parser = new pb::MessageParser<TestFieldOrderings>(() => new TestFieldOrderings());
  10750. private pb::UnknownFieldSet _unknownFields;
  10751. private pb::ExtensionSet<TestFieldOrderings> _extensions;
  10752. private pb::ExtensionSet<TestFieldOrderings> _Extensions { get { return _extensions; } }
  10753. private int _hasBits0;
  10754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10755. public static pb::MessageParser<TestFieldOrderings> Parser { get { return _parser; } }
  10756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10757. public static pbr::MessageDescriptor Descriptor {
  10758. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[29]; }
  10759. }
  10760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10761. pbr::MessageDescriptor pb::IMessage.Descriptor {
  10762. get { return Descriptor; }
  10763. }
  10764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10765. public TestFieldOrderings() {
  10766. OnConstruction();
  10767. }
  10768. partial void OnConstruction();
  10769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10770. public TestFieldOrderings(TestFieldOrderings other) : this() {
  10771. _hasBits0 = other._hasBits0;
  10772. myString_ = other.myString_;
  10773. myInt_ = other.myInt_;
  10774. myFloat_ = other.myFloat_;
  10775. optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
  10776. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  10777. _extensions = pb::ExtensionSet.Clone(other._extensions);
  10778. }
  10779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10780. public TestFieldOrderings Clone() {
  10781. return new TestFieldOrderings(this);
  10782. }
  10783. /// <summary>Field number for the "my_string" field.</summary>
  10784. public const int MyStringFieldNumber = 11;
  10785. private readonly static string MyStringDefaultValue = "";
  10786. private string myString_;
  10787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10788. public string MyString {
  10789. get { return myString_ ?? MyStringDefaultValue; }
  10790. set {
  10791. myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  10792. }
  10793. }
  10794. /// <summary>Gets whether the "my_string" field is set</summary>
  10795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10796. public bool HasMyString {
  10797. get { return myString_ != null; }
  10798. }
  10799. /// <summary>Clears the value of the "my_string" field</summary>
  10800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10801. public void ClearMyString() {
  10802. myString_ = null;
  10803. }
  10804. /// <summary>Field number for the "my_int" field.</summary>
  10805. public const int MyIntFieldNumber = 1;
  10806. private readonly static long MyIntDefaultValue = 0L;
  10807. private long myInt_;
  10808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10809. public long MyInt {
  10810. get { if ((_hasBits0 & 1) != 0) { return myInt_; } else { return MyIntDefaultValue; } }
  10811. set {
  10812. _hasBits0 |= 1;
  10813. myInt_ = value;
  10814. }
  10815. }
  10816. /// <summary>Gets whether the "my_int" field is set</summary>
  10817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10818. public bool HasMyInt {
  10819. get { return (_hasBits0 & 1) != 0; }
  10820. }
  10821. /// <summary>Clears the value of the "my_int" field</summary>
  10822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10823. public void ClearMyInt() {
  10824. _hasBits0 &= ~1;
  10825. }
  10826. /// <summary>Field number for the "my_float" field.</summary>
  10827. public const int MyFloatFieldNumber = 101;
  10828. private readonly static float MyFloatDefaultValue = 0F;
  10829. private float myFloat_;
  10830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10831. public float MyFloat {
  10832. get { if ((_hasBits0 & 2) != 0) { return myFloat_; } else { return MyFloatDefaultValue; } }
  10833. set {
  10834. _hasBits0 |= 2;
  10835. myFloat_ = value;
  10836. }
  10837. }
  10838. /// <summary>Gets whether the "my_float" field is set</summary>
  10839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10840. public bool HasMyFloat {
  10841. get { return (_hasBits0 & 2) != 0; }
  10842. }
  10843. /// <summary>Clears the value of the "my_float" field</summary>
  10844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10845. public void ClearMyFloat() {
  10846. _hasBits0 &= ~2;
  10847. }
  10848. /// <summary>Field number for the "optional_nested_message" field.</summary>
  10849. public const int OptionalNestedMessageFieldNumber = 200;
  10850. private global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage optionalNestedMessage_;
  10851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10852. public global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage OptionalNestedMessage {
  10853. get { return optionalNestedMessage_; }
  10854. set {
  10855. optionalNestedMessage_ = value;
  10856. }
  10857. }
  10858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10859. public override bool Equals(object other) {
  10860. return Equals(other as TestFieldOrderings);
  10861. }
  10862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10863. public bool Equals(TestFieldOrderings other) {
  10864. if (ReferenceEquals(other, null)) {
  10865. return false;
  10866. }
  10867. if (ReferenceEquals(other, this)) {
  10868. return true;
  10869. }
  10870. if (MyString != other.MyString) return false;
  10871. if (MyInt != other.MyInt) return false;
  10872. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MyFloat, other.MyFloat)) return false;
  10873. if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
  10874. if (!Equals(_extensions, other._extensions)) {
  10875. return false;
  10876. }
  10877. return Equals(_unknownFields, other._unknownFields);
  10878. }
  10879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10880. public override int GetHashCode() {
  10881. int hash = 1;
  10882. if (HasMyString) hash ^= MyString.GetHashCode();
  10883. if (HasMyInt) hash ^= MyInt.GetHashCode();
  10884. if (HasMyFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MyFloat);
  10885. if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
  10886. if (_extensions != null) {
  10887. hash ^= _extensions.GetHashCode();
  10888. }
  10889. if (_unknownFields != null) {
  10890. hash ^= _unknownFields.GetHashCode();
  10891. }
  10892. return hash;
  10893. }
  10894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10895. public override string ToString() {
  10896. return pb::JsonFormatter.ToDiagnosticString(this);
  10897. }
  10898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10899. public void WriteTo(pb::CodedOutputStream output) {
  10900. if (HasMyInt) {
  10901. output.WriteRawTag(8);
  10902. output.WriteInt64(MyInt);
  10903. }
  10904. if (HasMyString) {
  10905. output.WriteRawTag(90);
  10906. output.WriteString(MyString);
  10907. }
  10908. if (HasMyFloat) {
  10909. output.WriteRawTag(173, 6);
  10910. output.WriteFloat(MyFloat);
  10911. }
  10912. if (optionalNestedMessage_ != null) {
  10913. output.WriteRawTag(194, 12);
  10914. output.WriteMessage(OptionalNestedMessage);
  10915. }
  10916. if (_extensions != null) {
  10917. _extensions.WriteTo(output);
  10918. }
  10919. if (_unknownFields != null) {
  10920. _unknownFields.WriteTo(output);
  10921. }
  10922. }
  10923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10924. public int CalculateSize() {
  10925. int size = 0;
  10926. if (HasMyString) {
  10927. size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
  10928. }
  10929. if (HasMyInt) {
  10930. size += 1 + pb::CodedOutputStream.ComputeInt64Size(MyInt);
  10931. }
  10932. if (HasMyFloat) {
  10933. size += 2 + 4;
  10934. }
  10935. if (optionalNestedMessage_ != null) {
  10936. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
  10937. }
  10938. if (_extensions != null) {
  10939. size += _extensions.CalculateSize();
  10940. }
  10941. if (_unknownFields != null) {
  10942. size += _unknownFields.CalculateSize();
  10943. }
  10944. return size;
  10945. }
  10946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10947. public void MergeFrom(TestFieldOrderings other) {
  10948. if (other == null) {
  10949. return;
  10950. }
  10951. if (other.HasMyString) {
  10952. MyString = other.MyString;
  10953. }
  10954. if (other.HasMyInt) {
  10955. MyInt = other.MyInt;
  10956. }
  10957. if (other.HasMyFloat) {
  10958. MyFloat = other.MyFloat;
  10959. }
  10960. if (other.optionalNestedMessage_ != null) {
  10961. if (optionalNestedMessage_ == null) {
  10962. OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage();
  10963. }
  10964. OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
  10965. }
  10966. pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
  10967. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  10968. }
  10969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  10970. public void MergeFrom(pb::CodedInputStream input) {
  10971. uint tag;
  10972. while ((tag = input.ReadTag()) != 0) {
  10973. switch(tag) {
  10974. default:
  10975. if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
  10976. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  10977. }
  10978. break;
  10979. case 8: {
  10980. MyInt = input.ReadInt64();
  10981. break;
  10982. }
  10983. case 90: {
  10984. MyString = input.ReadString();
  10985. break;
  10986. }
  10987. case 813: {
  10988. MyFloat = input.ReadFloat();
  10989. break;
  10990. }
  10991. case 1602: {
  10992. if (optionalNestedMessage_ == null) {
  10993. OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage();
  10994. }
  10995. input.ReadMessage(OptionalNestedMessage);
  10996. break;
  10997. }
  10998. }
  10999. }
  11000. }
  11001. public TValue GetExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension) {
  11002. return pb::ExtensionSet.Get(ref _extensions, extension);
  11003. }
  11004. public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestFieldOrderings, TValue> extension) {
  11005. return pb::ExtensionSet.Get(ref _extensions, extension);
  11006. }
  11007. public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestFieldOrderings, TValue> extension) {
  11008. return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
  11009. }
  11010. public void SetExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension, TValue value) {
  11011. pb::ExtensionSet.Set(ref _extensions, extension, value);
  11012. }
  11013. public bool HasExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension) {
  11014. return pb::ExtensionSet.Has(ref _extensions, extension);
  11015. }
  11016. public void ClearExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension) {
  11017. pb::ExtensionSet.Clear(ref _extensions, extension);
  11018. }
  11019. public void ClearExtension<TValue>(pb::RepeatedExtension<TestFieldOrderings, TValue> extension) {
  11020. pb::ExtensionSet.Clear(ref _extensions, extension);
  11021. }
  11022. #region Nested types
  11023. /// <summary>Container for nested types declared in the TestFieldOrderings message type.</summary>
  11024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11025. public static partial class Types {
  11026. public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
  11027. private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
  11028. private pb::UnknownFieldSet _unknownFields;
  11029. private int _hasBits0;
  11030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11031. public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
  11032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11033. public static pbr::MessageDescriptor Descriptor {
  11034. get { return global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Descriptor.NestedTypes[0]; }
  11035. }
  11036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11037. pbr::MessageDescriptor pb::IMessage.Descriptor {
  11038. get { return Descriptor; }
  11039. }
  11040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11041. public NestedMessage() {
  11042. OnConstruction();
  11043. }
  11044. partial void OnConstruction();
  11045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11046. public NestedMessage(NestedMessage other) : this() {
  11047. _hasBits0 = other._hasBits0;
  11048. oo_ = other.oo_;
  11049. bb_ = other.bb_;
  11050. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  11051. }
  11052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11053. public NestedMessage Clone() {
  11054. return new NestedMessage(this);
  11055. }
  11056. /// <summary>Field number for the "oo" field.</summary>
  11057. public const int OoFieldNumber = 2;
  11058. private readonly static long OoDefaultValue = 0L;
  11059. private long oo_;
  11060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11061. public long Oo {
  11062. get { if ((_hasBits0 & 2) != 0) { return oo_; } else { return OoDefaultValue; } }
  11063. set {
  11064. _hasBits0 |= 2;
  11065. oo_ = value;
  11066. }
  11067. }
  11068. /// <summary>Gets whether the "oo" field is set</summary>
  11069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11070. public bool HasOo {
  11071. get { return (_hasBits0 & 2) != 0; }
  11072. }
  11073. /// <summary>Clears the value of the "oo" field</summary>
  11074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11075. public void ClearOo() {
  11076. _hasBits0 &= ~2;
  11077. }
  11078. /// <summary>Field number for the "bb" field.</summary>
  11079. public const int BbFieldNumber = 1;
  11080. private readonly static int BbDefaultValue = 0;
  11081. private int bb_;
  11082. /// <summary>
  11083. /// The field name "b" fails to compile in proto1 because it conflicts with
  11084. /// a local variable named "b" in one of the generated methods. Doh.
  11085. /// This file needs to compile in proto1 to test backwards-compatibility.
  11086. /// </summary>
  11087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11088. public int Bb {
  11089. get { if ((_hasBits0 & 1) != 0) { return bb_; } else { return BbDefaultValue; } }
  11090. set {
  11091. _hasBits0 |= 1;
  11092. bb_ = value;
  11093. }
  11094. }
  11095. /// <summary>Gets whether the "bb" field is set</summary>
  11096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11097. public bool HasBb {
  11098. get { return (_hasBits0 & 1) != 0; }
  11099. }
  11100. /// <summary>Clears the value of the "bb" field</summary>
  11101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11102. public void ClearBb() {
  11103. _hasBits0 &= ~1;
  11104. }
  11105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11106. public override bool Equals(object other) {
  11107. return Equals(other as NestedMessage);
  11108. }
  11109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11110. public bool Equals(NestedMessage other) {
  11111. if (ReferenceEquals(other, null)) {
  11112. return false;
  11113. }
  11114. if (ReferenceEquals(other, this)) {
  11115. return true;
  11116. }
  11117. if (Oo != other.Oo) return false;
  11118. if (Bb != other.Bb) return false;
  11119. return Equals(_unknownFields, other._unknownFields);
  11120. }
  11121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11122. public override int GetHashCode() {
  11123. int hash = 1;
  11124. if (HasOo) hash ^= Oo.GetHashCode();
  11125. if (HasBb) hash ^= Bb.GetHashCode();
  11126. if (_unknownFields != null) {
  11127. hash ^= _unknownFields.GetHashCode();
  11128. }
  11129. return hash;
  11130. }
  11131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11132. public override string ToString() {
  11133. return pb::JsonFormatter.ToDiagnosticString(this);
  11134. }
  11135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11136. public void WriteTo(pb::CodedOutputStream output) {
  11137. if (HasBb) {
  11138. output.WriteRawTag(8);
  11139. output.WriteInt32(Bb);
  11140. }
  11141. if (HasOo) {
  11142. output.WriteRawTag(16);
  11143. output.WriteInt64(Oo);
  11144. }
  11145. if (_unknownFields != null) {
  11146. _unknownFields.WriteTo(output);
  11147. }
  11148. }
  11149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11150. public int CalculateSize() {
  11151. int size = 0;
  11152. if (HasOo) {
  11153. size += 1 + pb::CodedOutputStream.ComputeInt64Size(Oo);
  11154. }
  11155. if (HasBb) {
  11156. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb);
  11157. }
  11158. if (_unknownFields != null) {
  11159. size += _unknownFields.CalculateSize();
  11160. }
  11161. return size;
  11162. }
  11163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11164. public void MergeFrom(NestedMessage other) {
  11165. if (other == null) {
  11166. return;
  11167. }
  11168. if (other.HasOo) {
  11169. Oo = other.Oo;
  11170. }
  11171. if (other.HasBb) {
  11172. Bb = other.Bb;
  11173. }
  11174. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  11175. }
  11176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11177. public void MergeFrom(pb::CodedInputStream input) {
  11178. uint tag;
  11179. while ((tag = input.ReadTag()) != 0) {
  11180. switch(tag) {
  11181. default:
  11182. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  11183. break;
  11184. case 8: {
  11185. Bb = input.ReadInt32();
  11186. break;
  11187. }
  11188. case 16: {
  11189. Oo = input.ReadInt64();
  11190. break;
  11191. }
  11192. }
  11193. }
  11194. }
  11195. }
  11196. }
  11197. #endregion
  11198. }
  11199. public sealed partial class TestExtensionOrderings1 : pb::IMessage<TestExtensionOrderings1> {
  11200. private static readonly pb::MessageParser<TestExtensionOrderings1> _parser = new pb::MessageParser<TestExtensionOrderings1>(() => new TestExtensionOrderings1());
  11201. private pb::UnknownFieldSet _unknownFields;
  11202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11203. public static pb::MessageParser<TestExtensionOrderings1> Parser { get { return _parser; } }
  11204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11205. public static pbr::MessageDescriptor Descriptor {
  11206. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[30]; }
  11207. }
  11208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11209. pbr::MessageDescriptor pb::IMessage.Descriptor {
  11210. get { return Descriptor; }
  11211. }
  11212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11213. public TestExtensionOrderings1() {
  11214. OnConstruction();
  11215. }
  11216. partial void OnConstruction();
  11217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11218. public TestExtensionOrderings1(TestExtensionOrderings1 other) : this() {
  11219. myString_ = other.myString_;
  11220. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  11221. }
  11222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11223. public TestExtensionOrderings1 Clone() {
  11224. return new TestExtensionOrderings1(this);
  11225. }
  11226. /// <summary>Field number for the "my_string" field.</summary>
  11227. public const int MyStringFieldNumber = 1;
  11228. private readonly static string MyStringDefaultValue = "";
  11229. private string myString_;
  11230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11231. public string MyString {
  11232. get { return myString_ ?? MyStringDefaultValue; }
  11233. set {
  11234. myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  11235. }
  11236. }
  11237. /// <summary>Gets whether the "my_string" field is set</summary>
  11238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11239. public bool HasMyString {
  11240. get { return myString_ != null; }
  11241. }
  11242. /// <summary>Clears the value of the "my_string" field</summary>
  11243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11244. public void ClearMyString() {
  11245. myString_ = null;
  11246. }
  11247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11248. public override bool Equals(object other) {
  11249. return Equals(other as TestExtensionOrderings1);
  11250. }
  11251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11252. public bool Equals(TestExtensionOrderings1 other) {
  11253. if (ReferenceEquals(other, null)) {
  11254. return false;
  11255. }
  11256. if (ReferenceEquals(other, this)) {
  11257. return true;
  11258. }
  11259. if (MyString != other.MyString) return false;
  11260. return Equals(_unknownFields, other._unknownFields);
  11261. }
  11262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11263. public override int GetHashCode() {
  11264. int hash = 1;
  11265. if (HasMyString) hash ^= MyString.GetHashCode();
  11266. if (_unknownFields != null) {
  11267. hash ^= _unknownFields.GetHashCode();
  11268. }
  11269. return hash;
  11270. }
  11271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11272. public override string ToString() {
  11273. return pb::JsonFormatter.ToDiagnosticString(this);
  11274. }
  11275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11276. public void WriteTo(pb::CodedOutputStream output) {
  11277. if (HasMyString) {
  11278. output.WriteRawTag(10);
  11279. output.WriteString(MyString);
  11280. }
  11281. if (_unknownFields != null) {
  11282. _unknownFields.WriteTo(output);
  11283. }
  11284. }
  11285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11286. public int CalculateSize() {
  11287. int size = 0;
  11288. if (HasMyString) {
  11289. size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
  11290. }
  11291. if (_unknownFields != null) {
  11292. size += _unknownFields.CalculateSize();
  11293. }
  11294. return size;
  11295. }
  11296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11297. public void MergeFrom(TestExtensionOrderings1 other) {
  11298. if (other == null) {
  11299. return;
  11300. }
  11301. if (other.HasMyString) {
  11302. MyString = other.MyString;
  11303. }
  11304. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  11305. }
  11306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11307. public void MergeFrom(pb::CodedInputStream input) {
  11308. uint tag;
  11309. while ((tag = input.ReadTag()) != 0) {
  11310. switch(tag) {
  11311. default:
  11312. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  11313. break;
  11314. case 10: {
  11315. MyString = input.ReadString();
  11316. break;
  11317. }
  11318. }
  11319. }
  11320. }
  11321. #region Extensions
  11322. /// <summary>Container for extensions for other messages declared in the TestExtensionOrderings1 message type.</summary>
  11323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11324. public static partial class Extensions {
  11325. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1> TestExtOrderings1 =
  11326. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1>(13, pb::FieldCodec.ForMessage(106, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1.Parser));
  11327. }
  11328. #endregion
  11329. }
  11330. public sealed partial class TestExtensionOrderings2 : pb::IMessage<TestExtensionOrderings2> {
  11331. private static readonly pb::MessageParser<TestExtensionOrderings2> _parser = new pb::MessageParser<TestExtensionOrderings2>(() => new TestExtensionOrderings2());
  11332. private pb::UnknownFieldSet _unknownFields;
  11333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11334. public static pb::MessageParser<TestExtensionOrderings2> Parser { get { return _parser; } }
  11335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11336. public static pbr::MessageDescriptor Descriptor {
  11337. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[31]; }
  11338. }
  11339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11340. pbr::MessageDescriptor pb::IMessage.Descriptor {
  11341. get { return Descriptor; }
  11342. }
  11343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11344. public TestExtensionOrderings2() {
  11345. OnConstruction();
  11346. }
  11347. partial void OnConstruction();
  11348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11349. public TestExtensionOrderings2(TestExtensionOrderings2 other) : this() {
  11350. myString_ = other.myString_;
  11351. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  11352. }
  11353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11354. public TestExtensionOrderings2 Clone() {
  11355. return new TestExtensionOrderings2(this);
  11356. }
  11357. /// <summary>Field number for the "my_string" field.</summary>
  11358. public const int MyStringFieldNumber = 1;
  11359. private readonly static string MyStringDefaultValue = "";
  11360. private string myString_;
  11361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11362. public string MyString {
  11363. get { return myString_ ?? MyStringDefaultValue; }
  11364. set {
  11365. myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  11366. }
  11367. }
  11368. /// <summary>Gets whether the "my_string" field is set</summary>
  11369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11370. public bool HasMyString {
  11371. get { return myString_ != null; }
  11372. }
  11373. /// <summary>Clears the value of the "my_string" field</summary>
  11374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11375. public void ClearMyString() {
  11376. myString_ = null;
  11377. }
  11378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11379. public override bool Equals(object other) {
  11380. return Equals(other as TestExtensionOrderings2);
  11381. }
  11382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11383. public bool Equals(TestExtensionOrderings2 other) {
  11384. if (ReferenceEquals(other, null)) {
  11385. return false;
  11386. }
  11387. if (ReferenceEquals(other, this)) {
  11388. return true;
  11389. }
  11390. if (MyString != other.MyString) return false;
  11391. return Equals(_unknownFields, other._unknownFields);
  11392. }
  11393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11394. public override int GetHashCode() {
  11395. int hash = 1;
  11396. if (HasMyString) hash ^= MyString.GetHashCode();
  11397. if (_unknownFields != null) {
  11398. hash ^= _unknownFields.GetHashCode();
  11399. }
  11400. return hash;
  11401. }
  11402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11403. public override string ToString() {
  11404. return pb::JsonFormatter.ToDiagnosticString(this);
  11405. }
  11406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11407. public void WriteTo(pb::CodedOutputStream output) {
  11408. if (HasMyString) {
  11409. output.WriteRawTag(10);
  11410. output.WriteString(MyString);
  11411. }
  11412. if (_unknownFields != null) {
  11413. _unknownFields.WriteTo(output);
  11414. }
  11415. }
  11416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11417. public int CalculateSize() {
  11418. int size = 0;
  11419. if (HasMyString) {
  11420. size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
  11421. }
  11422. if (_unknownFields != null) {
  11423. size += _unknownFields.CalculateSize();
  11424. }
  11425. return size;
  11426. }
  11427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11428. public void MergeFrom(TestExtensionOrderings2 other) {
  11429. if (other == null) {
  11430. return;
  11431. }
  11432. if (other.HasMyString) {
  11433. MyString = other.MyString;
  11434. }
  11435. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  11436. }
  11437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11438. public void MergeFrom(pb::CodedInputStream input) {
  11439. uint tag;
  11440. while ((tag = input.ReadTag()) != 0) {
  11441. switch(tag) {
  11442. default:
  11443. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  11444. break;
  11445. case 10: {
  11446. MyString = input.ReadString();
  11447. break;
  11448. }
  11449. }
  11450. }
  11451. }
  11452. #region Nested types
  11453. /// <summary>Container for nested types declared in the TestExtensionOrderings2 message type.</summary>
  11454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11455. public static partial class Types {
  11456. public sealed partial class TestExtensionOrderings3 : pb::IMessage<TestExtensionOrderings3> {
  11457. private static readonly pb::MessageParser<TestExtensionOrderings3> _parser = new pb::MessageParser<TestExtensionOrderings3>(() => new TestExtensionOrderings3());
  11458. private pb::UnknownFieldSet _unknownFields;
  11459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11460. public static pb::MessageParser<TestExtensionOrderings3> Parser { get { return _parser; } }
  11461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11462. public static pbr::MessageDescriptor Descriptor {
  11463. get { return global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Descriptor.NestedTypes[0]; }
  11464. }
  11465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11466. pbr::MessageDescriptor pb::IMessage.Descriptor {
  11467. get { return Descriptor; }
  11468. }
  11469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11470. public TestExtensionOrderings3() {
  11471. OnConstruction();
  11472. }
  11473. partial void OnConstruction();
  11474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11475. public TestExtensionOrderings3(TestExtensionOrderings3 other) : this() {
  11476. myString_ = other.myString_;
  11477. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  11478. }
  11479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11480. public TestExtensionOrderings3 Clone() {
  11481. return new TestExtensionOrderings3(this);
  11482. }
  11483. /// <summary>Field number for the "my_string" field.</summary>
  11484. public const int MyStringFieldNumber = 1;
  11485. private readonly static string MyStringDefaultValue = "";
  11486. private string myString_;
  11487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11488. public string MyString {
  11489. get { return myString_ ?? MyStringDefaultValue; }
  11490. set {
  11491. myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  11492. }
  11493. }
  11494. /// <summary>Gets whether the "my_string" field is set</summary>
  11495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11496. public bool HasMyString {
  11497. get { return myString_ != null; }
  11498. }
  11499. /// <summary>Clears the value of the "my_string" field</summary>
  11500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11501. public void ClearMyString() {
  11502. myString_ = null;
  11503. }
  11504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11505. public override bool Equals(object other) {
  11506. return Equals(other as TestExtensionOrderings3);
  11507. }
  11508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11509. public bool Equals(TestExtensionOrderings3 other) {
  11510. if (ReferenceEquals(other, null)) {
  11511. return false;
  11512. }
  11513. if (ReferenceEquals(other, this)) {
  11514. return true;
  11515. }
  11516. if (MyString != other.MyString) return false;
  11517. return Equals(_unknownFields, other._unknownFields);
  11518. }
  11519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11520. public override int GetHashCode() {
  11521. int hash = 1;
  11522. if (HasMyString) hash ^= MyString.GetHashCode();
  11523. if (_unknownFields != null) {
  11524. hash ^= _unknownFields.GetHashCode();
  11525. }
  11526. return hash;
  11527. }
  11528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11529. public override string ToString() {
  11530. return pb::JsonFormatter.ToDiagnosticString(this);
  11531. }
  11532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11533. public void WriteTo(pb::CodedOutputStream output) {
  11534. if (HasMyString) {
  11535. output.WriteRawTag(10);
  11536. output.WriteString(MyString);
  11537. }
  11538. if (_unknownFields != null) {
  11539. _unknownFields.WriteTo(output);
  11540. }
  11541. }
  11542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11543. public int CalculateSize() {
  11544. int size = 0;
  11545. if (HasMyString) {
  11546. size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
  11547. }
  11548. if (_unknownFields != null) {
  11549. size += _unknownFields.CalculateSize();
  11550. }
  11551. return size;
  11552. }
  11553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11554. public void MergeFrom(TestExtensionOrderings3 other) {
  11555. if (other == null) {
  11556. return;
  11557. }
  11558. if (other.HasMyString) {
  11559. MyString = other.MyString;
  11560. }
  11561. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  11562. }
  11563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11564. public void MergeFrom(pb::CodedInputStream input) {
  11565. uint tag;
  11566. while ((tag = input.ReadTag()) != 0) {
  11567. switch(tag) {
  11568. default:
  11569. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  11570. break;
  11571. case 10: {
  11572. MyString = input.ReadString();
  11573. break;
  11574. }
  11575. }
  11576. }
  11577. }
  11578. #region Extensions
  11579. /// <summary>Container for extensions for other messages declared in the TestExtensionOrderings3 message type.</summary>
  11580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11581. public static partial class Extensions {
  11582. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3> TestExtOrderings3 =
  11583. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3>(14, pb::FieldCodec.ForMessage(114, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3.Parser));
  11584. }
  11585. #endregion
  11586. }
  11587. }
  11588. #endregion
  11589. #region Extensions
  11590. /// <summary>Container for extensions for other messages declared in the TestExtensionOrderings2 message type.</summary>
  11591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11592. public static partial class Extensions {
  11593. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2> TestExtOrderings2 =
  11594. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2>(12, pb::FieldCodec.ForMessage(98, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Parser));
  11595. }
  11596. #endregion
  11597. }
  11598. public sealed partial class TestExtremeDefaultValues : pb::IMessage<TestExtremeDefaultValues> {
  11599. private static readonly pb::MessageParser<TestExtremeDefaultValues> _parser = new pb::MessageParser<TestExtremeDefaultValues>(() => new TestExtremeDefaultValues());
  11600. private pb::UnknownFieldSet _unknownFields;
  11601. private int _hasBits0;
  11602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11603. public static pb::MessageParser<TestExtremeDefaultValues> Parser { get { return _parser; } }
  11604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11605. public static pbr::MessageDescriptor Descriptor {
  11606. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[32]; }
  11607. }
  11608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11609. pbr::MessageDescriptor pb::IMessage.Descriptor {
  11610. get { return Descriptor; }
  11611. }
  11612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11613. public TestExtremeDefaultValues() {
  11614. OnConstruction();
  11615. }
  11616. partial void OnConstruction();
  11617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11618. public TestExtremeDefaultValues(TestExtremeDefaultValues other) : this() {
  11619. _hasBits0 = other._hasBits0;
  11620. escapedBytes_ = other.escapedBytes_;
  11621. largeUint32_ = other.largeUint32_;
  11622. largeUint64_ = other.largeUint64_;
  11623. smallInt32_ = other.smallInt32_;
  11624. smallInt64_ = other.smallInt64_;
  11625. reallySmallInt32_ = other.reallySmallInt32_;
  11626. reallySmallInt64_ = other.reallySmallInt64_;
  11627. utf8String_ = other.utf8String_;
  11628. zeroFloat_ = other.zeroFloat_;
  11629. oneFloat_ = other.oneFloat_;
  11630. smallFloat_ = other.smallFloat_;
  11631. negativeOneFloat_ = other.negativeOneFloat_;
  11632. negativeFloat_ = other.negativeFloat_;
  11633. largeFloat_ = other.largeFloat_;
  11634. smallNegativeFloat_ = other.smallNegativeFloat_;
  11635. infDouble_ = other.infDouble_;
  11636. negInfDouble_ = other.negInfDouble_;
  11637. nanDouble_ = other.nanDouble_;
  11638. infFloat_ = other.infFloat_;
  11639. negInfFloat_ = other.negInfFloat_;
  11640. nanFloat_ = other.nanFloat_;
  11641. cppTrigraph_ = other.cppTrigraph_;
  11642. stringWithZero_ = other.stringWithZero_;
  11643. bytesWithZero_ = other.bytesWithZero_;
  11644. stringPieceWithZero_ = other.stringPieceWithZero_;
  11645. cordWithZero_ = other.cordWithZero_;
  11646. replacementString_ = other.replacementString_;
  11647. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  11648. }
  11649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11650. public TestExtremeDefaultValues Clone() {
  11651. return new TestExtremeDefaultValues(this);
  11652. }
  11653. /// <summary>Field number for the "escaped_bytes" field.</summary>
  11654. public const int EscapedBytesFieldNumber = 1;
  11655. private readonly static pb::ByteString EscapedBytesDefaultValue = pb::ByteString.FromBase64("AAEHCAwKDQkLXCci/g==");
  11656. private pb::ByteString escapedBytes_;
  11657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11658. public pb::ByteString EscapedBytes {
  11659. get { return escapedBytes_ ?? EscapedBytesDefaultValue; }
  11660. set {
  11661. escapedBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  11662. }
  11663. }
  11664. /// <summary>Gets whether the "escaped_bytes" field is set</summary>
  11665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11666. public bool HasEscapedBytes {
  11667. get { return escapedBytes_ != null; }
  11668. }
  11669. /// <summary>Clears the value of the "escaped_bytes" field</summary>
  11670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11671. public void ClearEscapedBytes() {
  11672. escapedBytes_ = null;
  11673. }
  11674. /// <summary>Field number for the "large_uint32" field.</summary>
  11675. public const int LargeUint32FieldNumber = 2;
  11676. private readonly static uint LargeUint32DefaultValue = 4294967295;
  11677. private uint largeUint32_;
  11678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11679. public uint LargeUint32 {
  11680. get { if ((_hasBits0 & 1) != 0) { return largeUint32_; } else { return LargeUint32DefaultValue; } }
  11681. set {
  11682. _hasBits0 |= 1;
  11683. largeUint32_ = value;
  11684. }
  11685. }
  11686. /// <summary>Gets whether the "large_uint32" field is set</summary>
  11687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11688. public bool HasLargeUint32 {
  11689. get { return (_hasBits0 & 1) != 0; }
  11690. }
  11691. /// <summary>Clears the value of the "large_uint32" field</summary>
  11692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11693. public void ClearLargeUint32() {
  11694. _hasBits0 &= ~1;
  11695. }
  11696. /// <summary>Field number for the "large_uint64" field.</summary>
  11697. public const int LargeUint64FieldNumber = 3;
  11698. private readonly static ulong LargeUint64DefaultValue = 18446744073709551615UL;
  11699. private ulong largeUint64_;
  11700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11701. public ulong LargeUint64 {
  11702. get { if ((_hasBits0 & 2) != 0) { return largeUint64_; } else { return LargeUint64DefaultValue; } }
  11703. set {
  11704. _hasBits0 |= 2;
  11705. largeUint64_ = value;
  11706. }
  11707. }
  11708. /// <summary>Gets whether the "large_uint64" field is set</summary>
  11709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11710. public bool HasLargeUint64 {
  11711. get { return (_hasBits0 & 2) != 0; }
  11712. }
  11713. /// <summary>Clears the value of the "large_uint64" field</summary>
  11714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11715. public void ClearLargeUint64() {
  11716. _hasBits0 &= ~2;
  11717. }
  11718. /// <summary>Field number for the "small_int32" field.</summary>
  11719. public const int SmallInt32FieldNumber = 4;
  11720. private readonly static int SmallInt32DefaultValue = -2147483647;
  11721. private int smallInt32_;
  11722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11723. public int SmallInt32 {
  11724. get { if ((_hasBits0 & 4) != 0) { return smallInt32_; } else { return SmallInt32DefaultValue; } }
  11725. set {
  11726. _hasBits0 |= 4;
  11727. smallInt32_ = value;
  11728. }
  11729. }
  11730. /// <summary>Gets whether the "small_int32" field is set</summary>
  11731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11732. public bool HasSmallInt32 {
  11733. get { return (_hasBits0 & 4) != 0; }
  11734. }
  11735. /// <summary>Clears the value of the "small_int32" field</summary>
  11736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11737. public void ClearSmallInt32() {
  11738. _hasBits0 &= ~4;
  11739. }
  11740. /// <summary>Field number for the "small_int64" field.</summary>
  11741. public const int SmallInt64FieldNumber = 5;
  11742. private readonly static long SmallInt64DefaultValue = -9223372036854775807L;
  11743. private long smallInt64_;
  11744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11745. public long SmallInt64 {
  11746. get { if ((_hasBits0 & 8) != 0) { return smallInt64_; } else { return SmallInt64DefaultValue; } }
  11747. set {
  11748. _hasBits0 |= 8;
  11749. smallInt64_ = value;
  11750. }
  11751. }
  11752. /// <summary>Gets whether the "small_int64" field is set</summary>
  11753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11754. public bool HasSmallInt64 {
  11755. get { return (_hasBits0 & 8) != 0; }
  11756. }
  11757. /// <summary>Clears the value of the "small_int64" field</summary>
  11758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11759. public void ClearSmallInt64() {
  11760. _hasBits0 &= ~8;
  11761. }
  11762. /// <summary>Field number for the "really_small_int32" field.</summary>
  11763. public const int ReallySmallInt32FieldNumber = 21;
  11764. private readonly static int ReallySmallInt32DefaultValue = -2147483648;
  11765. private int reallySmallInt32_;
  11766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11767. public int ReallySmallInt32 {
  11768. get { if ((_hasBits0 & 131072) != 0) { return reallySmallInt32_; } else { return ReallySmallInt32DefaultValue; } }
  11769. set {
  11770. _hasBits0 |= 131072;
  11771. reallySmallInt32_ = value;
  11772. }
  11773. }
  11774. /// <summary>Gets whether the "really_small_int32" field is set</summary>
  11775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11776. public bool HasReallySmallInt32 {
  11777. get { return (_hasBits0 & 131072) != 0; }
  11778. }
  11779. /// <summary>Clears the value of the "really_small_int32" field</summary>
  11780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11781. public void ClearReallySmallInt32() {
  11782. _hasBits0 &= ~131072;
  11783. }
  11784. /// <summary>Field number for the "really_small_int64" field.</summary>
  11785. public const int ReallySmallInt64FieldNumber = 22;
  11786. private readonly static long ReallySmallInt64DefaultValue = -9223372036854775808L;
  11787. private long reallySmallInt64_;
  11788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11789. public long ReallySmallInt64 {
  11790. get { if ((_hasBits0 & 262144) != 0) { return reallySmallInt64_; } else { return ReallySmallInt64DefaultValue; } }
  11791. set {
  11792. _hasBits0 |= 262144;
  11793. reallySmallInt64_ = value;
  11794. }
  11795. }
  11796. /// <summary>Gets whether the "really_small_int64" field is set</summary>
  11797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11798. public bool HasReallySmallInt64 {
  11799. get { return (_hasBits0 & 262144) != 0; }
  11800. }
  11801. /// <summary>Clears the value of the "really_small_int64" field</summary>
  11802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11803. public void ClearReallySmallInt64() {
  11804. _hasBits0 &= ~262144;
  11805. }
  11806. /// <summary>Field number for the "utf8_string" field.</summary>
  11807. public const int Utf8StringFieldNumber = 6;
  11808. private readonly static string Utf8StringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("4Yi0"), 0, 3);
  11809. private string utf8String_;
  11810. /// <summary>
  11811. /// The default value here is UTF-8 for "\u1234". (We could also just type
  11812. /// the UTF-8 text directly into this text file rather than escape it, but
  11813. /// lots of people use editors that would be confused by this.)
  11814. /// </summary>
  11815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11816. public string Utf8String {
  11817. get { return utf8String_ ?? Utf8StringDefaultValue; }
  11818. set {
  11819. utf8String_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  11820. }
  11821. }
  11822. /// <summary>Gets whether the "utf8_string" field is set</summary>
  11823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11824. public bool HasUtf8String {
  11825. get { return utf8String_ != null; }
  11826. }
  11827. /// <summary>Clears the value of the "utf8_string" field</summary>
  11828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11829. public void ClearUtf8String() {
  11830. utf8String_ = null;
  11831. }
  11832. /// <summary>Field number for the "zero_float" field.</summary>
  11833. public const int ZeroFloatFieldNumber = 7;
  11834. private readonly static float ZeroFloatDefaultValue = 0F;
  11835. private float zeroFloat_;
  11836. /// <summary>
  11837. /// Tests for single-precision floating-point values.
  11838. /// </summary>
  11839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11840. public float ZeroFloat {
  11841. get { if ((_hasBits0 & 16) != 0) { return zeroFloat_; } else { return ZeroFloatDefaultValue; } }
  11842. set {
  11843. _hasBits0 |= 16;
  11844. zeroFloat_ = value;
  11845. }
  11846. }
  11847. /// <summary>Gets whether the "zero_float" field is set</summary>
  11848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11849. public bool HasZeroFloat {
  11850. get { return (_hasBits0 & 16) != 0; }
  11851. }
  11852. /// <summary>Clears the value of the "zero_float" field</summary>
  11853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11854. public void ClearZeroFloat() {
  11855. _hasBits0 &= ~16;
  11856. }
  11857. /// <summary>Field number for the "one_float" field.</summary>
  11858. public const int OneFloatFieldNumber = 8;
  11859. private readonly static float OneFloatDefaultValue = 1F;
  11860. private float oneFloat_;
  11861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11862. public float OneFloat {
  11863. get { if ((_hasBits0 & 32) != 0) { return oneFloat_; } else { return OneFloatDefaultValue; } }
  11864. set {
  11865. _hasBits0 |= 32;
  11866. oneFloat_ = value;
  11867. }
  11868. }
  11869. /// <summary>Gets whether the "one_float" field is set</summary>
  11870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11871. public bool HasOneFloat {
  11872. get { return (_hasBits0 & 32) != 0; }
  11873. }
  11874. /// <summary>Clears the value of the "one_float" field</summary>
  11875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11876. public void ClearOneFloat() {
  11877. _hasBits0 &= ~32;
  11878. }
  11879. /// <summary>Field number for the "small_float" field.</summary>
  11880. public const int SmallFloatFieldNumber = 9;
  11881. private readonly static float SmallFloatDefaultValue = 1.5F;
  11882. private float smallFloat_;
  11883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11884. public float SmallFloat {
  11885. get { if ((_hasBits0 & 64) != 0) { return smallFloat_; } else { return SmallFloatDefaultValue; } }
  11886. set {
  11887. _hasBits0 |= 64;
  11888. smallFloat_ = value;
  11889. }
  11890. }
  11891. /// <summary>Gets whether the "small_float" field is set</summary>
  11892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11893. public bool HasSmallFloat {
  11894. get { return (_hasBits0 & 64) != 0; }
  11895. }
  11896. /// <summary>Clears the value of the "small_float" field</summary>
  11897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11898. public void ClearSmallFloat() {
  11899. _hasBits0 &= ~64;
  11900. }
  11901. /// <summary>Field number for the "negative_one_float" field.</summary>
  11902. public const int NegativeOneFloatFieldNumber = 10;
  11903. private readonly static float NegativeOneFloatDefaultValue = -1F;
  11904. private float negativeOneFloat_;
  11905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11906. public float NegativeOneFloat {
  11907. get { if ((_hasBits0 & 128) != 0) { return negativeOneFloat_; } else { return NegativeOneFloatDefaultValue; } }
  11908. set {
  11909. _hasBits0 |= 128;
  11910. negativeOneFloat_ = value;
  11911. }
  11912. }
  11913. /// <summary>Gets whether the "negative_one_float" field is set</summary>
  11914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11915. public bool HasNegativeOneFloat {
  11916. get { return (_hasBits0 & 128) != 0; }
  11917. }
  11918. /// <summary>Clears the value of the "negative_one_float" field</summary>
  11919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11920. public void ClearNegativeOneFloat() {
  11921. _hasBits0 &= ~128;
  11922. }
  11923. /// <summary>Field number for the "negative_float" field.</summary>
  11924. public const int NegativeFloatFieldNumber = 11;
  11925. private readonly static float NegativeFloatDefaultValue = -1.5F;
  11926. private float negativeFloat_;
  11927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11928. public float NegativeFloat {
  11929. get { if ((_hasBits0 & 256) != 0) { return negativeFloat_; } else { return NegativeFloatDefaultValue; } }
  11930. set {
  11931. _hasBits0 |= 256;
  11932. negativeFloat_ = value;
  11933. }
  11934. }
  11935. /// <summary>Gets whether the "negative_float" field is set</summary>
  11936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11937. public bool HasNegativeFloat {
  11938. get { return (_hasBits0 & 256) != 0; }
  11939. }
  11940. /// <summary>Clears the value of the "negative_float" field</summary>
  11941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11942. public void ClearNegativeFloat() {
  11943. _hasBits0 &= ~256;
  11944. }
  11945. /// <summary>Field number for the "large_float" field.</summary>
  11946. public const int LargeFloatFieldNumber = 12;
  11947. private readonly static float LargeFloatDefaultValue = 2e+08F;
  11948. private float largeFloat_;
  11949. /// <summary>
  11950. /// Using exponents
  11951. /// </summary>
  11952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11953. public float LargeFloat {
  11954. get { if ((_hasBits0 & 512) != 0) { return largeFloat_; } else { return LargeFloatDefaultValue; } }
  11955. set {
  11956. _hasBits0 |= 512;
  11957. largeFloat_ = value;
  11958. }
  11959. }
  11960. /// <summary>Gets whether the "large_float" field is set</summary>
  11961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11962. public bool HasLargeFloat {
  11963. get { return (_hasBits0 & 512) != 0; }
  11964. }
  11965. /// <summary>Clears the value of the "large_float" field</summary>
  11966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11967. public void ClearLargeFloat() {
  11968. _hasBits0 &= ~512;
  11969. }
  11970. /// <summary>Field number for the "small_negative_float" field.</summary>
  11971. public const int SmallNegativeFloatFieldNumber = 13;
  11972. private readonly static float SmallNegativeFloatDefaultValue = -8e-28F;
  11973. private float smallNegativeFloat_;
  11974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11975. public float SmallNegativeFloat {
  11976. get { if ((_hasBits0 & 1024) != 0) { return smallNegativeFloat_; } else { return SmallNegativeFloatDefaultValue; } }
  11977. set {
  11978. _hasBits0 |= 1024;
  11979. smallNegativeFloat_ = value;
  11980. }
  11981. }
  11982. /// <summary>Gets whether the "small_negative_float" field is set</summary>
  11983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11984. public bool HasSmallNegativeFloat {
  11985. get { return (_hasBits0 & 1024) != 0; }
  11986. }
  11987. /// <summary>Clears the value of the "small_negative_float" field</summary>
  11988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  11989. public void ClearSmallNegativeFloat() {
  11990. _hasBits0 &= ~1024;
  11991. }
  11992. /// <summary>Field number for the "inf_double" field.</summary>
  11993. public const int InfDoubleFieldNumber = 14;
  11994. private readonly static double InfDoubleDefaultValue = double.PositiveInfinity;
  11995. private double infDouble_;
  11996. /// <summary>
  11997. /// Text for nonfinite floating-point values.
  11998. /// </summary>
  11999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12000. public double InfDouble {
  12001. get { if ((_hasBits0 & 2048) != 0) { return infDouble_; } else { return InfDoubleDefaultValue; } }
  12002. set {
  12003. _hasBits0 |= 2048;
  12004. infDouble_ = value;
  12005. }
  12006. }
  12007. /// <summary>Gets whether the "inf_double" field is set</summary>
  12008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12009. public bool HasInfDouble {
  12010. get { return (_hasBits0 & 2048) != 0; }
  12011. }
  12012. /// <summary>Clears the value of the "inf_double" field</summary>
  12013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12014. public void ClearInfDouble() {
  12015. _hasBits0 &= ~2048;
  12016. }
  12017. /// <summary>Field number for the "neg_inf_double" field.</summary>
  12018. public const int NegInfDoubleFieldNumber = 15;
  12019. private readonly static double NegInfDoubleDefaultValue = double.NegativeInfinity;
  12020. private double negInfDouble_;
  12021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12022. public double NegInfDouble {
  12023. get { if ((_hasBits0 & 4096) != 0) { return negInfDouble_; } else { return NegInfDoubleDefaultValue; } }
  12024. set {
  12025. _hasBits0 |= 4096;
  12026. negInfDouble_ = value;
  12027. }
  12028. }
  12029. /// <summary>Gets whether the "neg_inf_double" field is set</summary>
  12030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12031. public bool HasNegInfDouble {
  12032. get { return (_hasBits0 & 4096) != 0; }
  12033. }
  12034. /// <summary>Clears the value of the "neg_inf_double" field</summary>
  12035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12036. public void ClearNegInfDouble() {
  12037. _hasBits0 &= ~4096;
  12038. }
  12039. /// <summary>Field number for the "nan_double" field.</summary>
  12040. public const int NanDoubleFieldNumber = 16;
  12041. private readonly static double NanDoubleDefaultValue = double.NaN;
  12042. private double nanDouble_;
  12043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12044. public double NanDouble {
  12045. get { if ((_hasBits0 & 8192) != 0) { return nanDouble_; } else { return NanDoubleDefaultValue; } }
  12046. set {
  12047. _hasBits0 |= 8192;
  12048. nanDouble_ = value;
  12049. }
  12050. }
  12051. /// <summary>Gets whether the "nan_double" field is set</summary>
  12052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12053. public bool HasNanDouble {
  12054. get { return (_hasBits0 & 8192) != 0; }
  12055. }
  12056. /// <summary>Clears the value of the "nan_double" field</summary>
  12057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12058. public void ClearNanDouble() {
  12059. _hasBits0 &= ~8192;
  12060. }
  12061. /// <summary>Field number for the "inf_float" field.</summary>
  12062. public const int InfFloatFieldNumber = 17;
  12063. private readonly static float InfFloatDefaultValue = float.PositiveInfinity;
  12064. private float infFloat_;
  12065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12066. public float InfFloat {
  12067. get { if ((_hasBits0 & 16384) != 0) { return infFloat_; } else { return InfFloatDefaultValue; } }
  12068. set {
  12069. _hasBits0 |= 16384;
  12070. infFloat_ = value;
  12071. }
  12072. }
  12073. /// <summary>Gets whether the "inf_float" field is set</summary>
  12074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12075. public bool HasInfFloat {
  12076. get { return (_hasBits0 & 16384) != 0; }
  12077. }
  12078. /// <summary>Clears the value of the "inf_float" field</summary>
  12079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12080. public void ClearInfFloat() {
  12081. _hasBits0 &= ~16384;
  12082. }
  12083. /// <summary>Field number for the "neg_inf_float" field.</summary>
  12084. public const int NegInfFloatFieldNumber = 18;
  12085. private readonly static float NegInfFloatDefaultValue = float.NegativeInfinity;
  12086. private float negInfFloat_;
  12087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12088. public float NegInfFloat {
  12089. get { if ((_hasBits0 & 32768) != 0) { return negInfFloat_; } else { return NegInfFloatDefaultValue; } }
  12090. set {
  12091. _hasBits0 |= 32768;
  12092. negInfFloat_ = value;
  12093. }
  12094. }
  12095. /// <summary>Gets whether the "neg_inf_float" field is set</summary>
  12096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12097. public bool HasNegInfFloat {
  12098. get { return (_hasBits0 & 32768) != 0; }
  12099. }
  12100. /// <summary>Clears the value of the "neg_inf_float" field</summary>
  12101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12102. public void ClearNegInfFloat() {
  12103. _hasBits0 &= ~32768;
  12104. }
  12105. /// <summary>Field number for the "nan_float" field.</summary>
  12106. public const int NanFloatFieldNumber = 19;
  12107. private readonly static float NanFloatDefaultValue = float.NaN;
  12108. private float nanFloat_;
  12109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12110. public float NanFloat {
  12111. get { if ((_hasBits0 & 65536) != 0) { return nanFloat_; } else { return NanFloatDefaultValue; } }
  12112. set {
  12113. _hasBits0 |= 65536;
  12114. nanFloat_ = value;
  12115. }
  12116. }
  12117. /// <summary>Gets whether the "nan_float" field is set</summary>
  12118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12119. public bool HasNanFloat {
  12120. get { return (_hasBits0 & 65536) != 0; }
  12121. }
  12122. /// <summary>Clears the value of the "nan_float" field</summary>
  12123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12124. public void ClearNanFloat() {
  12125. _hasBits0 &= ~65536;
  12126. }
  12127. /// <summary>Field number for the "cpp_trigraph" field.</summary>
  12128. public const int CppTrigraphFieldNumber = 20;
  12129. private readonly static string CppTrigraphDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("PyA/ID8/ID8/ID8/PyA/Py8gPz8t"), 0, 21);
  12130. private string cppTrigraph_;
  12131. /// <summary>
  12132. /// Tests for C++ trigraphs.
  12133. /// Trigraphs should be escaped in C++ generated files, but they should not be
  12134. /// escaped for other languages.
  12135. /// Note that in .proto file, "\?" is a valid way to escape ? in string
  12136. /// literals.
  12137. /// </summary>
  12138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12139. public string CppTrigraph {
  12140. get { return cppTrigraph_ ?? CppTrigraphDefaultValue; }
  12141. set {
  12142. cppTrigraph_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  12143. }
  12144. }
  12145. /// <summary>Gets whether the "cpp_trigraph" field is set</summary>
  12146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12147. public bool HasCppTrigraph {
  12148. get { return cppTrigraph_ != null; }
  12149. }
  12150. /// <summary>Clears the value of the "cpp_trigraph" field</summary>
  12151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12152. public void ClearCppTrigraph() {
  12153. cppTrigraph_ = null;
  12154. }
  12155. /// <summary>Field number for the "string_with_zero" field.</summary>
  12156. public const int StringWithZeroFieldNumber = 23;
  12157. private readonly static string StringWithZeroDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("aGVsAGxv"), 0, 6);
  12158. private string stringWithZero_;
  12159. /// <summary>
  12160. /// String defaults containing the character '\000'
  12161. /// </summary>
  12162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12163. public string StringWithZero {
  12164. get { return stringWithZero_ ?? StringWithZeroDefaultValue; }
  12165. set {
  12166. stringWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  12167. }
  12168. }
  12169. /// <summary>Gets whether the "string_with_zero" field is set</summary>
  12170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12171. public bool HasStringWithZero {
  12172. get { return stringWithZero_ != null; }
  12173. }
  12174. /// <summary>Clears the value of the "string_with_zero" field</summary>
  12175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12176. public void ClearStringWithZero() {
  12177. stringWithZero_ = null;
  12178. }
  12179. /// <summary>Field number for the "bytes_with_zero" field.</summary>
  12180. public const int BytesWithZeroFieldNumber = 24;
  12181. private readonly static pb::ByteString BytesWithZeroDefaultValue = pb::ByteString.FromBase64("d29yAGxk");
  12182. private pb::ByteString bytesWithZero_;
  12183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12184. public pb::ByteString BytesWithZero {
  12185. get { return bytesWithZero_ ?? BytesWithZeroDefaultValue; }
  12186. set {
  12187. bytesWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  12188. }
  12189. }
  12190. /// <summary>Gets whether the "bytes_with_zero" field is set</summary>
  12191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12192. public bool HasBytesWithZero {
  12193. get { return bytesWithZero_ != null; }
  12194. }
  12195. /// <summary>Clears the value of the "bytes_with_zero" field</summary>
  12196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12197. public void ClearBytesWithZero() {
  12198. bytesWithZero_ = null;
  12199. }
  12200. /// <summary>Field number for the "string_piece_with_zero" field.</summary>
  12201. public const int StringPieceWithZeroFieldNumber = 25;
  12202. private readonly static string StringPieceWithZeroDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("YWIAYw=="), 0, 4);
  12203. private string stringPieceWithZero_;
  12204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12205. public string StringPieceWithZero {
  12206. get { return stringPieceWithZero_ ?? StringPieceWithZeroDefaultValue; }
  12207. set {
  12208. stringPieceWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  12209. }
  12210. }
  12211. /// <summary>Gets whether the "string_piece_with_zero" field is set</summary>
  12212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12213. public bool HasStringPieceWithZero {
  12214. get { return stringPieceWithZero_ != null; }
  12215. }
  12216. /// <summary>Clears the value of the "string_piece_with_zero" field</summary>
  12217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12218. public void ClearStringPieceWithZero() {
  12219. stringPieceWithZero_ = null;
  12220. }
  12221. /// <summary>Field number for the "cord_with_zero" field.</summary>
  12222. public const int CordWithZeroFieldNumber = 26;
  12223. private readonly static string CordWithZeroDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("MTIAMw=="), 0, 4);
  12224. private string cordWithZero_;
  12225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12226. public string CordWithZero {
  12227. get { return cordWithZero_ ?? CordWithZeroDefaultValue; }
  12228. set {
  12229. cordWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  12230. }
  12231. }
  12232. /// <summary>Gets whether the "cord_with_zero" field is set</summary>
  12233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12234. public bool HasCordWithZero {
  12235. get { return cordWithZero_ != null; }
  12236. }
  12237. /// <summary>Clears the value of the "cord_with_zero" field</summary>
  12238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12239. public void ClearCordWithZero() {
  12240. cordWithZero_ = null;
  12241. }
  12242. /// <summary>Field number for the "replacement_string" field.</summary>
  12243. public const int ReplacementStringFieldNumber = 27;
  12244. private readonly static string ReplacementStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("JHt1bmtub3dufQ=="), 0, 10);
  12245. private string replacementString_;
  12246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12247. public string ReplacementString {
  12248. get { return replacementString_ ?? ReplacementStringDefaultValue; }
  12249. set {
  12250. replacementString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  12251. }
  12252. }
  12253. /// <summary>Gets whether the "replacement_string" field is set</summary>
  12254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12255. public bool HasReplacementString {
  12256. get { return replacementString_ != null; }
  12257. }
  12258. /// <summary>Clears the value of the "replacement_string" field</summary>
  12259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12260. public void ClearReplacementString() {
  12261. replacementString_ = null;
  12262. }
  12263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12264. public override bool Equals(object other) {
  12265. return Equals(other as TestExtremeDefaultValues);
  12266. }
  12267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12268. public bool Equals(TestExtremeDefaultValues other) {
  12269. if (ReferenceEquals(other, null)) {
  12270. return false;
  12271. }
  12272. if (ReferenceEquals(other, this)) {
  12273. return true;
  12274. }
  12275. if (EscapedBytes != other.EscapedBytes) return false;
  12276. if (LargeUint32 != other.LargeUint32) return false;
  12277. if (LargeUint64 != other.LargeUint64) return false;
  12278. if (SmallInt32 != other.SmallInt32) return false;
  12279. if (SmallInt64 != other.SmallInt64) return false;
  12280. if (ReallySmallInt32 != other.ReallySmallInt32) return false;
  12281. if (ReallySmallInt64 != other.ReallySmallInt64) return false;
  12282. if (Utf8String != other.Utf8String) return false;
  12283. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ZeroFloat, other.ZeroFloat)) return false;
  12284. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OneFloat, other.OneFloat)) return false;
  12285. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SmallFloat, other.SmallFloat)) return false;
  12286. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NegativeOneFloat, other.NegativeOneFloat)) return false;
  12287. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NegativeFloat, other.NegativeFloat)) return false;
  12288. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LargeFloat, other.LargeFloat)) return false;
  12289. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SmallNegativeFloat, other.SmallNegativeFloat)) return false;
  12290. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(InfDouble, other.InfDouble)) return false;
  12291. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NegInfDouble, other.NegInfDouble)) return false;
  12292. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NanDouble, other.NanDouble)) return false;
  12293. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(InfFloat, other.InfFloat)) return false;
  12294. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NegInfFloat, other.NegInfFloat)) return false;
  12295. if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NanFloat, other.NanFloat)) return false;
  12296. if (CppTrigraph != other.CppTrigraph) return false;
  12297. if (StringWithZero != other.StringWithZero) return false;
  12298. if (BytesWithZero != other.BytesWithZero) return false;
  12299. if (StringPieceWithZero != other.StringPieceWithZero) return false;
  12300. if (CordWithZero != other.CordWithZero) return false;
  12301. if (ReplacementString != other.ReplacementString) return false;
  12302. return Equals(_unknownFields, other._unknownFields);
  12303. }
  12304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12305. public override int GetHashCode() {
  12306. int hash = 1;
  12307. if (HasEscapedBytes) hash ^= EscapedBytes.GetHashCode();
  12308. if (HasLargeUint32) hash ^= LargeUint32.GetHashCode();
  12309. if (HasLargeUint64) hash ^= LargeUint64.GetHashCode();
  12310. if (HasSmallInt32) hash ^= SmallInt32.GetHashCode();
  12311. if (HasSmallInt64) hash ^= SmallInt64.GetHashCode();
  12312. if (HasReallySmallInt32) hash ^= ReallySmallInt32.GetHashCode();
  12313. if (HasReallySmallInt64) hash ^= ReallySmallInt64.GetHashCode();
  12314. if (HasUtf8String) hash ^= Utf8String.GetHashCode();
  12315. if (HasZeroFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ZeroFloat);
  12316. if (HasOneFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OneFloat);
  12317. if (HasSmallFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SmallFloat);
  12318. if (HasNegativeOneFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NegativeOneFloat);
  12319. if (HasNegativeFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NegativeFloat);
  12320. if (HasLargeFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LargeFloat);
  12321. if (HasSmallNegativeFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SmallNegativeFloat);
  12322. if (HasInfDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(InfDouble);
  12323. if (HasNegInfDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NegInfDouble);
  12324. if (HasNanDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NanDouble);
  12325. if (HasInfFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(InfFloat);
  12326. if (HasNegInfFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NegInfFloat);
  12327. if (HasNanFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NanFloat);
  12328. if (HasCppTrigraph) hash ^= CppTrigraph.GetHashCode();
  12329. if (HasStringWithZero) hash ^= StringWithZero.GetHashCode();
  12330. if (HasBytesWithZero) hash ^= BytesWithZero.GetHashCode();
  12331. if (HasStringPieceWithZero) hash ^= StringPieceWithZero.GetHashCode();
  12332. if (HasCordWithZero) hash ^= CordWithZero.GetHashCode();
  12333. if (HasReplacementString) hash ^= ReplacementString.GetHashCode();
  12334. if (_unknownFields != null) {
  12335. hash ^= _unknownFields.GetHashCode();
  12336. }
  12337. return hash;
  12338. }
  12339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12340. public override string ToString() {
  12341. return pb::JsonFormatter.ToDiagnosticString(this);
  12342. }
  12343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12344. public void WriteTo(pb::CodedOutputStream output) {
  12345. if (HasEscapedBytes) {
  12346. output.WriteRawTag(10);
  12347. output.WriteBytes(EscapedBytes);
  12348. }
  12349. if (HasLargeUint32) {
  12350. output.WriteRawTag(16);
  12351. output.WriteUInt32(LargeUint32);
  12352. }
  12353. if (HasLargeUint64) {
  12354. output.WriteRawTag(24);
  12355. output.WriteUInt64(LargeUint64);
  12356. }
  12357. if (HasSmallInt32) {
  12358. output.WriteRawTag(32);
  12359. output.WriteInt32(SmallInt32);
  12360. }
  12361. if (HasSmallInt64) {
  12362. output.WriteRawTag(40);
  12363. output.WriteInt64(SmallInt64);
  12364. }
  12365. if (HasUtf8String) {
  12366. output.WriteRawTag(50);
  12367. output.WriteString(Utf8String);
  12368. }
  12369. if (HasZeroFloat) {
  12370. output.WriteRawTag(61);
  12371. output.WriteFloat(ZeroFloat);
  12372. }
  12373. if (HasOneFloat) {
  12374. output.WriteRawTag(69);
  12375. output.WriteFloat(OneFloat);
  12376. }
  12377. if (HasSmallFloat) {
  12378. output.WriteRawTag(77);
  12379. output.WriteFloat(SmallFloat);
  12380. }
  12381. if (HasNegativeOneFloat) {
  12382. output.WriteRawTag(85);
  12383. output.WriteFloat(NegativeOneFloat);
  12384. }
  12385. if (HasNegativeFloat) {
  12386. output.WriteRawTag(93);
  12387. output.WriteFloat(NegativeFloat);
  12388. }
  12389. if (HasLargeFloat) {
  12390. output.WriteRawTag(101);
  12391. output.WriteFloat(LargeFloat);
  12392. }
  12393. if (HasSmallNegativeFloat) {
  12394. output.WriteRawTag(109);
  12395. output.WriteFloat(SmallNegativeFloat);
  12396. }
  12397. if (HasInfDouble) {
  12398. output.WriteRawTag(113);
  12399. output.WriteDouble(InfDouble);
  12400. }
  12401. if (HasNegInfDouble) {
  12402. output.WriteRawTag(121);
  12403. output.WriteDouble(NegInfDouble);
  12404. }
  12405. if (HasNanDouble) {
  12406. output.WriteRawTag(129, 1);
  12407. output.WriteDouble(NanDouble);
  12408. }
  12409. if (HasInfFloat) {
  12410. output.WriteRawTag(141, 1);
  12411. output.WriteFloat(InfFloat);
  12412. }
  12413. if (HasNegInfFloat) {
  12414. output.WriteRawTag(149, 1);
  12415. output.WriteFloat(NegInfFloat);
  12416. }
  12417. if (HasNanFloat) {
  12418. output.WriteRawTag(157, 1);
  12419. output.WriteFloat(NanFloat);
  12420. }
  12421. if (HasCppTrigraph) {
  12422. output.WriteRawTag(162, 1);
  12423. output.WriteString(CppTrigraph);
  12424. }
  12425. if (HasReallySmallInt32) {
  12426. output.WriteRawTag(168, 1);
  12427. output.WriteInt32(ReallySmallInt32);
  12428. }
  12429. if (HasReallySmallInt64) {
  12430. output.WriteRawTag(176, 1);
  12431. output.WriteInt64(ReallySmallInt64);
  12432. }
  12433. if (HasStringWithZero) {
  12434. output.WriteRawTag(186, 1);
  12435. output.WriteString(StringWithZero);
  12436. }
  12437. if (HasBytesWithZero) {
  12438. output.WriteRawTag(194, 1);
  12439. output.WriteBytes(BytesWithZero);
  12440. }
  12441. if (HasStringPieceWithZero) {
  12442. output.WriteRawTag(202, 1);
  12443. output.WriteString(StringPieceWithZero);
  12444. }
  12445. if (HasCordWithZero) {
  12446. output.WriteRawTag(210, 1);
  12447. output.WriteString(CordWithZero);
  12448. }
  12449. if (HasReplacementString) {
  12450. output.WriteRawTag(218, 1);
  12451. output.WriteString(ReplacementString);
  12452. }
  12453. if (_unknownFields != null) {
  12454. _unknownFields.WriteTo(output);
  12455. }
  12456. }
  12457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12458. public int CalculateSize() {
  12459. int size = 0;
  12460. if (HasEscapedBytes) {
  12461. size += 1 + pb::CodedOutputStream.ComputeBytesSize(EscapedBytes);
  12462. }
  12463. if (HasLargeUint32) {
  12464. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LargeUint32);
  12465. }
  12466. if (HasLargeUint64) {
  12467. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LargeUint64);
  12468. }
  12469. if (HasSmallInt32) {
  12470. size += 1 + pb::CodedOutputStream.ComputeInt32Size(SmallInt32);
  12471. }
  12472. if (HasSmallInt64) {
  12473. size += 1 + pb::CodedOutputStream.ComputeInt64Size(SmallInt64);
  12474. }
  12475. if (HasReallySmallInt32) {
  12476. size += 2 + pb::CodedOutputStream.ComputeInt32Size(ReallySmallInt32);
  12477. }
  12478. if (HasReallySmallInt64) {
  12479. size += 2 + pb::CodedOutputStream.ComputeInt64Size(ReallySmallInt64);
  12480. }
  12481. if (HasUtf8String) {
  12482. size += 1 + pb::CodedOutputStream.ComputeStringSize(Utf8String);
  12483. }
  12484. if (HasZeroFloat) {
  12485. size += 1 + 4;
  12486. }
  12487. if (HasOneFloat) {
  12488. size += 1 + 4;
  12489. }
  12490. if (HasSmallFloat) {
  12491. size += 1 + 4;
  12492. }
  12493. if (HasNegativeOneFloat) {
  12494. size += 1 + 4;
  12495. }
  12496. if (HasNegativeFloat) {
  12497. size += 1 + 4;
  12498. }
  12499. if (HasLargeFloat) {
  12500. size += 1 + 4;
  12501. }
  12502. if (HasSmallNegativeFloat) {
  12503. size += 1 + 4;
  12504. }
  12505. if (HasInfDouble) {
  12506. size += 1 + 8;
  12507. }
  12508. if (HasNegInfDouble) {
  12509. size += 1 + 8;
  12510. }
  12511. if (HasNanDouble) {
  12512. size += 2 + 8;
  12513. }
  12514. if (HasInfFloat) {
  12515. size += 2 + 4;
  12516. }
  12517. if (HasNegInfFloat) {
  12518. size += 2 + 4;
  12519. }
  12520. if (HasNanFloat) {
  12521. size += 2 + 4;
  12522. }
  12523. if (HasCppTrigraph) {
  12524. size += 2 + pb::CodedOutputStream.ComputeStringSize(CppTrigraph);
  12525. }
  12526. if (HasStringWithZero) {
  12527. size += 2 + pb::CodedOutputStream.ComputeStringSize(StringWithZero);
  12528. }
  12529. if (HasBytesWithZero) {
  12530. size += 2 + pb::CodedOutputStream.ComputeBytesSize(BytesWithZero);
  12531. }
  12532. if (HasStringPieceWithZero) {
  12533. size += 2 + pb::CodedOutputStream.ComputeStringSize(StringPieceWithZero);
  12534. }
  12535. if (HasCordWithZero) {
  12536. size += 2 + pb::CodedOutputStream.ComputeStringSize(CordWithZero);
  12537. }
  12538. if (HasReplacementString) {
  12539. size += 2 + pb::CodedOutputStream.ComputeStringSize(ReplacementString);
  12540. }
  12541. if (_unknownFields != null) {
  12542. size += _unknownFields.CalculateSize();
  12543. }
  12544. return size;
  12545. }
  12546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12547. public void MergeFrom(TestExtremeDefaultValues other) {
  12548. if (other == null) {
  12549. return;
  12550. }
  12551. if (other.HasEscapedBytes) {
  12552. EscapedBytes = other.EscapedBytes;
  12553. }
  12554. if (other.HasLargeUint32) {
  12555. LargeUint32 = other.LargeUint32;
  12556. }
  12557. if (other.HasLargeUint64) {
  12558. LargeUint64 = other.LargeUint64;
  12559. }
  12560. if (other.HasSmallInt32) {
  12561. SmallInt32 = other.SmallInt32;
  12562. }
  12563. if (other.HasSmallInt64) {
  12564. SmallInt64 = other.SmallInt64;
  12565. }
  12566. if (other.HasReallySmallInt32) {
  12567. ReallySmallInt32 = other.ReallySmallInt32;
  12568. }
  12569. if (other.HasReallySmallInt64) {
  12570. ReallySmallInt64 = other.ReallySmallInt64;
  12571. }
  12572. if (other.HasUtf8String) {
  12573. Utf8String = other.Utf8String;
  12574. }
  12575. if (other.HasZeroFloat) {
  12576. ZeroFloat = other.ZeroFloat;
  12577. }
  12578. if (other.HasOneFloat) {
  12579. OneFloat = other.OneFloat;
  12580. }
  12581. if (other.HasSmallFloat) {
  12582. SmallFloat = other.SmallFloat;
  12583. }
  12584. if (other.HasNegativeOneFloat) {
  12585. NegativeOneFloat = other.NegativeOneFloat;
  12586. }
  12587. if (other.HasNegativeFloat) {
  12588. NegativeFloat = other.NegativeFloat;
  12589. }
  12590. if (other.HasLargeFloat) {
  12591. LargeFloat = other.LargeFloat;
  12592. }
  12593. if (other.HasSmallNegativeFloat) {
  12594. SmallNegativeFloat = other.SmallNegativeFloat;
  12595. }
  12596. if (other.HasInfDouble) {
  12597. InfDouble = other.InfDouble;
  12598. }
  12599. if (other.HasNegInfDouble) {
  12600. NegInfDouble = other.NegInfDouble;
  12601. }
  12602. if (other.HasNanDouble) {
  12603. NanDouble = other.NanDouble;
  12604. }
  12605. if (other.HasInfFloat) {
  12606. InfFloat = other.InfFloat;
  12607. }
  12608. if (other.HasNegInfFloat) {
  12609. NegInfFloat = other.NegInfFloat;
  12610. }
  12611. if (other.HasNanFloat) {
  12612. NanFloat = other.NanFloat;
  12613. }
  12614. if (other.HasCppTrigraph) {
  12615. CppTrigraph = other.CppTrigraph;
  12616. }
  12617. if (other.HasStringWithZero) {
  12618. StringWithZero = other.StringWithZero;
  12619. }
  12620. if (other.HasBytesWithZero) {
  12621. BytesWithZero = other.BytesWithZero;
  12622. }
  12623. if (other.HasStringPieceWithZero) {
  12624. StringPieceWithZero = other.StringPieceWithZero;
  12625. }
  12626. if (other.HasCordWithZero) {
  12627. CordWithZero = other.CordWithZero;
  12628. }
  12629. if (other.HasReplacementString) {
  12630. ReplacementString = other.ReplacementString;
  12631. }
  12632. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  12633. }
  12634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12635. public void MergeFrom(pb::CodedInputStream input) {
  12636. uint tag;
  12637. while ((tag = input.ReadTag()) != 0) {
  12638. switch(tag) {
  12639. default:
  12640. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  12641. break;
  12642. case 10: {
  12643. EscapedBytes = input.ReadBytes();
  12644. break;
  12645. }
  12646. case 16: {
  12647. LargeUint32 = input.ReadUInt32();
  12648. break;
  12649. }
  12650. case 24: {
  12651. LargeUint64 = input.ReadUInt64();
  12652. break;
  12653. }
  12654. case 32: {
  12655. SmallInt32 = input.ReadInt32();
  12656. break;
  12657. }
  12658. case 40: {
  12659. SmallInt64 = input.ReadInt64();
  12660. break;
  12661. }
  12662. case 50: {
  12663. Utf8String = input.ReadString();
  12664. break;
  12665. }
  12666. case 61: {
  12667. ZeroFloat = input.ReadFloat();
  12668. break;
  12669. }
  12670. case 69: {
  12671. OneFloat = input.ReadFloat();
  12672. break;
  12673. }
  12674. case 77: {
  12675. SmallFloat = input.ReadFloat();
  12676. break;
  12677. }
  12678. case 85: {
  12679. NegativeOneFloat = input.ReadFloat();
  12680. break;
  12681. }
  12682. case 93: {
  12683. NegativeFloat = input.ReadFloat();
  12684. break;
  12685. }
  12686. case 101: {
  12687. LargeFloat = input.ReadFloat();
  12688. break;
  12689. }
  12690. case 109: {
  12691. SmallNegativeFloat = input.ReadFloat();
  12692. break;
  12693. }
  12694. case 113: {
  12695. InfDouble = input.ReadDouble();
  12696. break;
  12697. }
  12698. case 121: {
  12699. NegInfDouble = input.ReadDouble();
  12700. break;
  12701. }
  12702. case 129: {
  12703. NanDouble = input.ReadDouble();
  12704. break;
  12705. }
  12706. case 141: {
  12707. InfFloat = input.ReadFloat();
  12708. break;
  12709. }
  12710. case 149: {
  12711. NegInfFloat = input.ReadFloat();
  12712. break;
  12713. }
  12714. case 157: {
  12715. NanFloat = input.ReadFloat();
  12716. break;
  12717. }
  12718. case 162: {
  12719. CppTrigraph = input.ReadString();
  12720. break;
  12721. }
  12722. case 168: {
  12723. ReallySmallInt32 = input.ReadInt32();
  12724. break;
  12725. }
  12726. case 176: {
  12727. ReallySmallInt64 = input.ReadInt64();
  12728. break;
  12729. }
  12730. case 186: {
  12731. StringWithZero = input.ReadString();
  12732. break;
  12733. }
  12734. case 194: {
  12735. BytesWithZero = input.ReadBytes();
  12736. break;
  12737. }
  12738. case 202: {
  12739. StringPieceWithZero = input.ReadString();
  12740. break;
  12741. }
  12742. case 210: {
  12743. CordWithZero = input.ReadString();
  12744. break;
  12745. }
  12746. case 218: {
  12747. ReplacementString = input.ReadString();
  12748. break;
  12749. }
  12750. }
  12751. }
  12752. }
  12753. }
  12754. public sealed partial class SparseEnumMessage : pb::IMessage<SparseEnumMessage> {
  12755. private static readonly pb::MessageParser<SparseEnumMessage> _parser = new pb::MessageParser<SparseEnumMessage>(() => new SparseEnumMessage());
  12756. private pb::UnknownFieldSet _unknownFields;
  12757. private int _hasBits0;
  12758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12759. public static pb::MessageParser<SparseEnumMessage> Parser { get { return _parser; } }
  12760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12761. public static pbr::MessageDescriptor Descriptor {
  12762. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[33]; }
  12763. }
  12764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12765. pbr::MessageDescriptor pb::IMessage.Descriptor {
  12766. get { return Descriptor; }
  12767. }
  12768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12769. public SparseEnumMessage() {
  12770. OnConstruction();
  12771. }
  12772. partial void OnConstruction();
  12773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12774. public SparseEnumMessage(SparseEnumMessage other) : this() {
  12775. _hasBits0 = other._hasBits0;
  12776. sparseEnum_ = other.sparseEnum_;
  12777. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  12778. }
  12779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12780. public SparseEnumMessage Clone() {
  12781. return new SparseEnumMessage(this);
  12782. }
  12783. /// <summary>Field number for the "sparse_enum" field.</summary>
  12784. public const int SparseEnumFieldNumber = 1;
  12785. private readonly static global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum SparseEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum.SparseA;
  12786. private global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum sparseEnum_;
  12787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12788. public global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum SparseEnum {
  12789. get { if ((_hasBits0 & 1) != 0) { return sparseEnum_; } else { return SparseEnumDefaultValue; } }
  12790. set {
  12791. _hasBits0 |= 1;
  12792. sparseEnum_ = value;
  12793. }
  12794. }
  12795. /// <summary>Gets whether the "sparse_enum" field is set</summary>
  12796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12797. public bool HasSparseEnum {
  12798. get { return (_hasBits0 & 1) != 0; }
  12799. }
  12800. /// <summary>Clears the value of the "sparse_enum" field</summary>
  12801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12802. public void ClearSparseEnum() {
  12803. _hasBits0 &= ~1;
  12804. }
  12805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12806. public override bool Equals(object other) {
  12807. return Equals(other as SparseEnumMessage);
  12808. }
  12809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12810. public bool Equals(SparseEnumMessage other) {
  12811. if (ReferenceEquals(other, null)) {
  12812. return false;
  12813. }
  12814. if (ReferenceEquals(other, this)) {
  12815. return true;
  12816. }
  12817. if (SparseEnum != other.SparseEnum) return false;
  12818. return Equals(_unknownFields, other._unknownFields);
  12819. }
  12820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12821. public override int GetHashCode() {
  12822. int hash = 1;
  12823. if (HasSparseEnum) hash ^= SparseEnum.GetHashCode();
  12824. if (_unknownFields != null) {
  12825. hash ^= _unknownFields.GetHashCode();
  12826. }
  12827. return hash;
  12828. }
  12829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12830. public override string ToString() {
  12831. return pb::JsonFormatter.ToDiagnosticString(this);
  12832. }
  12833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12834. public void WriteTo(pb::CodedOutputStream output) {
  12835. if (HasSparseEnum) {
  12836. output.WriteRawTag(8);
  12837. output.WriteEnum((int) SparseEnum);
  12838. }
  12839. if (_unknownFields != null) {
  12840. _unknownFields.WriteTo(output);
  12841. }
  12842. }
  12843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12844. public int CalculateSize() {
  12845. int size = 0;
  12846. if (HasSparseEnum) {
  12847. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SparseEnum);
  12848. }
  12849. if (_unknownFields != null) {
  12850. size += _unknownFields.CalculateSize();
  12851. }
  12852. return size;
  12853. }
  12854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12855. public void MergeFrom(SparseEnumMessage other) {
  12856. if (other == null) {
  12857. return;
  12858. }
  12859. if (other.HasSparseEnum) {
  12860. SparseEnum = other.SparseEnum;
  12861. }
  12862. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  12863. }
  12864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12865. public void MergeFrom(pb::CodedInputStream input) {
  12866. uint tag;
  12867. while ((tag = input.ReadTag()) != 0) {
  12868. switch(tag) {
  12869. default:
  12870. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  12871. break;
  12872. case 8: {
  12873. SparseEnum = (global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum) input.ReadEnum();
  12874. break;
  12875. }
  12876. }
  12877. }
  12878. }
  12879. }
  12880. /// <summary>
  12881. /// Test String and Bytes: string is for valid UTF-8 strings
  12882. /// </summary>
  12883. public sealed partial class OneString : pb::IMessage<OneString> {
  12884. private static readonly pb::MessageParser<OneString> _parser = new pb::MessageParser<OneString>(() => new OneString());
  12885. private pb::UnknownFieldSet _unknownFields;
  12886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12887. public static pb::MessageParser<OneString> Parser { get { return _parser; } }
  12888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12889. public static pbr::MessageDescriptor Descriptor {
  12890. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[34]; }
  12891. }
  12892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12893. pbr::MessageDescriptor pb::IMessage.Descriptor {
  12894. get { return Descriptor; }
  12895. }
  12896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12897. public OneString() {
  12898. OnConstruction();
  12899. }
  12900. partial void OnConstruction();
  12901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12902. public OneString(OneString other) : this() {
  12903. data_ = other.data_;
  12904. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  12905. }
  12906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12907. public OneString Clone() {
  12908. return new OneString(this);
  12909. }
  12910. /// <summary>Field number for the "data" field.</summary>
  12911. public const int DataFieldNumber = 1;
  12912. private readonly static string DataDefaultValue = "";
  12913. private string data_;
  12914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12915. public string Data {
  12916. get { return data_ ?? DataDefaultValue; }
  12917. set {
  12918. data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  12919. }
  12920. }
  12921. /// <summary>Gets whether the "data" field is set</summary>
  12922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12923. public bool HasData {
  12924. get { return data_ != null; }
  12925. }
  12926. /// <summary>Clears the value of the "data" field</summary>
  12927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12928. public void ClearData() {
  12929. data_ = null;
  12930. }
  12931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12932. public override bool Equals(object other) {
  12933. return Equals(other as OneString);
  12934. }
  12935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12936. public bool Equals(OneString other) {
  12937. if (ReferenceEquals(other, null)) {
  12938. return false;
  12939. }
  12940. if (ReferenceEquals(other, this)) {
  12941. return true;
  12942. }
  12943. if (Data != other.Data) return false;
  12944. return Equals(_unknownFields, other._unknownFields);
  12945. }
  12946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12947. public override int GetHashCode() {
  12948. int hash = 1;
  12949. if (HasData) hash ^= Data.GetHashCode();
  12950. if (_unknownFields != null) {
  12951. hash ^= _unknownFields.GetHashCode();
  12952. }
  12953. return hash;
  12954. }
  12955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12956. public override string ToString() {
  12957. return pb::JsonFormatter.ToDiagnosticString(this);
  12958. }
  12959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12960. public void WriteTo(pb::CodedOutputStream output) {
  12961. if (HasData) {
  12962. output.WriteRawTag(10);
  12963. output.WriteString(Data);
  12964. }
  12965. if (_unknownFields != null) {
  12966. _unknownFields.WriteTo(output);
  12967. }
  12968. }
  12969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12970. public int CalculateSize() {
  12971. int size = 0;
  12972. if (HasData) {
  12973. size += 1 + pb::CodedOutputStream.ComputeStringSize(Data);
  12974. }
  12975. if (_unknownFields != null) {
  12976. size += _unknownFields.CalculateSize();
  12977. }
  12978. return size;
  12979. }
  12980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12981. public void MergeFrom(OneString other) {
  12982. if (other == null) {
  12983. return;
  12984. }
  12985. if (other.HasData) {
  12986. Data = other.Data;
  12987. }
  12988. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  12989. }
  12990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  12991. public void MergeFrom(pb::CodedInputStream input) {
  12992. uint tag;
  12993. while ((tag = input.ReadTag()) != 0) {
  12994. switch(tag) {
  12995. default:
  12996. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  12997. break;
  12998. case 10: {
  12999. Data = input.ReadString();
  13000. break;
  13001. }
  13002. }
  13003. }
  13004. }
  13005. }
  13006. public sealed partial class MoreString : pb::IMessage<MoreString> {
  13007. private static readonly pb::MessageParser<MoreString> _parser = new pb::MessageParser<MoreString>(() => new MoreString());
  13008. private pb::UnknownFieldSet _unknownFields;
  13009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13010. public static pb::MessageParser<MoreString> Parser { get { return _parser; } }
  13011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13012. public static pbr::MessageDescriptor Descriptor {
  13013. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[35]; }
  13014. }
  13015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13016. pbr::MessageDescriptor pb::IMessage.Descriptor {
  13017. get { return Descriptor; }
  13018. }
  13019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13020. public MoreString() {
  13021. OnConstruction();
  13022. }
  13023. partial void OnConstruction();
  13024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13025. public MoreString(MoreString other) : this() {
  13026. data_ = other.data_.Clone();
  13027. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  13028. }
  13029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13030. public MoreString Clone() {
  13031. return new MoreString(this);
  13032. }
  13033. /// <summary>Field number for the "data" field.</summary>
  13034. public const int DataFieldNumber = 1;
  13035. private static readonly pb::FieldCodec<string> _repeated_data_codec
  13036. = pb::FieldCodec.ForString(10);
  13037. private readonly pbc::RepeatedField<string> data_ = new pbc::RepeatedField<string>();
  13038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13039. public pbc::RepeatedField<string> Data {
  13040. get { return data_; }
  13041. }
  13042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13043. public override bool Equals(object other) {
  13044. return Equals(other as MoreString);
  13045. }
  13046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13047. public bool Equals(MoreString other) {
  13048. if (ReferenceEquals(other, null)) {
  13049. return false;
  13050. }
  13051. if (ReferenceEquals(other, this)) {
  13052. return true;
  13053. }
  13054. if(!data_.Equals(other.data_)) return false;
  13055. return Equals(_unknownFields, other._unknownFields);
  13056. }
  13057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13058. public override int GetHashCode() {
  13059. int hash = 1;
  13060. hash ^= data_.GetHashCode();
  13061. if (_unknownFields != null) {
  13062. hash ^= _unknownFields.GetHashCode();
  13063. }
  13064. return hash;
  13065. }
  13066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13067. public override string ToString() {
  13068. return pb::JsonFormatter.ToDiagnosticString(this);
  13069. }
  13070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13071. public void WriteTo(pb::CodedOutputStream output) {
  13072. data_.WriteTo(output, _repeated_data_codec);
  13073. if (_unknownFields != null) {
  13074. _unknownFields.WriteTo(output);
  13075. }
  13076. }
  13077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13078. public int CalculateSize() {
  13079. int size = 0;
  13080. size += data_.CalculateSize(_repeated_data_codec);
  13081. if (_unknownFields != null) {
  13082. size += _unknownFields.CalculateSize();
  13083. }
  13084. return size;
  13085. }
  13086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13087. public void MergeFrom(MoreString other) {
  13088. if (other == null) {
  13089. return;
  13090. }
  13091. data_.Add(other.data_);
  13092. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  13093. }
  13094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13095. public void MergeFrom(pb::CodedInputStream input) {
  13096. uint tag;
  13097. while ((tag = input.ReadTag()) != 0) {
  13098. switch(tag) {
  13099. default:
  13100. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  13101. break;
  13102. case 10: {
  13103. data_.AddEntriesFrom(input, _repeated_data_codec);
  13104. break;
  13105. }
  13106. }
  13107. }
  13108. }
  13109. }
  13110. public sealed partial class OneBytes : pb::IMessage<OneBytes> {
  13111. private static readonly pb::MessageParser<OneBytes> _parser = new pb::MessageParser<OneBytes>(() => new OneBytes());
  13112. private pb::UnknownFieldSet _unknownFields;
  13113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13114. public static pb::MessageParser<OneBytes> Parser { get { return _parser; } }
  13115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13116. public static pbr::MessageDescriptor Descriptor {
  13117. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[36]; }
  13118. }
  13119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13120. pbr::MessageDescriptor pb::IMessage.Descriptor {
  13121. get { return Descriptor; }
  13122. }
  13123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13124. public OneBytes() {
  13125. OnConstruction();
  13126. }
  13127. partial void OnConstruction();
  13128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13129. public OneBytes(OneBytes other) : this() {
  13130. data_ = other.data_;
  13131. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  13132. }
  13133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13134. public OneBytes Clone() {
  13135. return new OneBytes(this);
  13136. }
  13137. /// <summary>Field number for the "data" field.</summary>
  13138. public const int DataFieldNumber = 1;
  13139. private readonly static pb::ByteString DataDefaultValue = pb::ByteString.Empty;
  13140. private pb::ByteString data_;
  13141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13142. public pb::ByteString Data {
  13143. get { return data_ ?? DataDefaultValue; }
  13144. set {
  13145. data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  13146. }
  13147. }
  13148. /// <summary>Gets whether the "data" field is set</summary>
  13149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13150. public bool HasData {
  13151. get { return data_ != null; }
  13152. }
  13153. /// <summary>Clears the value of the "data" field</summary>
  13154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13155. public void ClearData() {
  13156. data_ = null;
  13157. }
  13158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13159. public override bool Equals(object other) {
  13160. return Equals(other as OneBytes);
  13161. }
  13162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13163. public bool Equals(OneBytes other) {
  13164. if (ReferenceEquals(other, null)) {
  13165. return false;
  13166. }
  13167. if (ReferenceEquals(other, this)) {
  13168. return true;
  13169. }
  13170. if (Data != other.Data) return false;
  13171. return Equals(_unknownFields, other._unknownFields);
  13172. }
  13173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13174. public override int GetHashCode() {
  13175. int hash = 1;
  13176. if (HasData) hash ^= Data.GetHashCode();
  13177. if (_unknownFields != null) {
  13178. hash ^= _unknownFields.GetHashCode();
  13179. }
  13180. return hash;
  13181. }
  13182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13183. public override string ToString() {
  13184. return pb::JsonFormatter.ToDiagnosticString(this);
  13185. }
  13186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13187. public void WriteTo(pb::CodedOutputStream output) {
  13188. if (HasData) {
  13189. output.WriteRawTag(10);
  13190. output.WriteBytes(Data);
  13191. }
  13192. if (_unknownFields != null) {
  13193. _unknownFields.WriteTo(output);
  13194. }
  13195. }
  13196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13197. public int CalculateSize() {
  13198. int size = 0;
  13199. if (HasData) {
  13200. size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data);
  13201. }
  13202. if (_unknownFields != null) {
  13203. size += _unknownFields.CalculateSize();
  13204. }
  13205. return size;
  13206. }
  13207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13208. public void MergeFrom(OneBytes other) {
  13209. if (other == null) {
  13210. return;
  13211. }
  13212. if (other.HasData) {
  13213. Data = other.Data;
  13214. }
  13215. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  13216. }
  13217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13218. public void MergeFrom(pb::CodedInputStream input) {
  13219. uint tag;
  13220. while ((tag = input.ReadTag()) != 0) {
  13221. switch(tag) {
  13222. default:
  13223. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  13224. break;
  13225. case 10: {
  13226. Data = input.ReadBytes();
  13227. break;
  13228. }
  13229. }
  13230. }
  13231. }
  13232. }
  13233. public sealed partial class MoreBytes : pb::IMessage<MoreBytes> {
  13234. private static readonly pb::MessageParser<MoreBytes> _parser = new pb::MessageParser<MoreBytes>(() => new MoreBytes());
  13235. private pb::UnknownFieldSet _unknownFields;
  13236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13237. public static pb::MessageParser<MoreBytes> Parser { get { return _parser; } }
  13238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13239. public static pbr::MessageDescriptor Descriptor {
  13240. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[37]; }
  13241. }
  13242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13243. pbr::MessageDescriptor pb::IMessage.Descriptor {
  13244. get { return Descriptor; }
  13245. }
  13246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13247. public MoreBytes() {
  13248. OnConstruction();
  13249. }
  13250. partial void OnConstruction();
  13251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13252. public MoreBytes(MoreBytes other) : this() {
  13253. data_ = other.data_.Clone();
  13254. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  13255. }
  13256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13257. public MoreBytes Clone() {
  13258. return new MoreBytes(this);
  13259. }
  13260. /// <summary>Field number for the "data" field.</summary>
  13261. public const int DataFieldNumber = 1;
  13262. private static readonly pb::FieldCodec<pb::ByteString> _repeated_data_codec
  13263. = pb::FieldCodec.ForBytes(10);
  13264. private readonly pbc::RepeatedField<pb::ByteString> data_ = new pbc::RepeatedField<pb::ByteString>();
  13265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13266. public pbc::RepeatedField<pb::ByteString> Data {
  13267. get { return data_; }
  13268. }
  13269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13270. public override bool Equals(object other) {
  13271. return Equals(other as MoreBytes);
  13272. }
  13273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13274. public bool Equals(MoreBytes other) {
  13275. if (ReferenceEquals(other, null)) {
  13276. return false;
  13277. }
  13278. if (ReferenceEquals(other, this)) {
  13279. return true;
  13280. }
  13281. if(!data_.Equals(other.data_)) return false;
  13282. return Equals(_unknownFields, other._unknownFields);
  13283. }
  13284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13285. public override int GetHashCode() {
  13286. int hash = 1;
  13287. hash ^= data_.GetHashCode();
  13288. if (_unknownFields != null) {
  13289. hash ^= _unknownFields.GetHashCode();
  13290. }
  13291. return hash;
  13292. }
  13293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13294. public override string ToString() {
  13295. return pb::JsonFormatter.ToDiagnosticString(this);
  13296. }
  13297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13298. public void WriteTo(pb::CodedOutputStream output) {
  13299. data_.WriteTo(output, _repeated_data_codec);
  13300. if (_unknownFields != null) {
  13301. _unknownFields.WriteTo(output);
  13302. }
  13303. }
  13304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13305. public int CalculateSize() {
  13306. int size = 0;
  13307. size += data_.CalculateSize(_repeated_data_codec);
  13308. if (_unknownFields != null) {
  13309. size += _unknownFields.CalculateSize();
  13310. }
  13311. return size;
  13312. }
  13313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13314. public void MergeFrom(MoreBytes other) {
  13315. if (other == null) {
  13316. return;
  13317. }
  13318. data_.Add(other.data_);
  13319. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  13320. }
  13321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13322. public void MergeFrom(pb::CodedInputStream input) {
  13323. uint tag;
  13324. while ((tag = input.ReadTag()) != 0) {
  13325. switch(tag) {
  13326. default:
  13327. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  13328. break;
  13329. case 10: {
  13330. data_.AddEntriesFrom(input, _repeated_data_codec);
  13331. break;
  13332. }
  13333. }
  13334. }
  13335. }
  13336. }
  13337. /// <summary>
  13338. /// Test int32, uint32, int64, uint64, and bool are all compatible
  13339. /// </summary>
  13340. public sealed partial class Int32Message : pb::IMessage<Int32Message> {
  13341. private static readonly pb::MessageParser<Int32Message> _parser = new pb::MessageParser<Int32Message>(() => new Int32Message());
  13342. private pb::UnknownFieldSet _unknownFields;
  13343. private int _hasBits0;
  13344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13345. public static pb::MessageParser<Int32Message> Parser { get { return _parser; } }
  13346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13347. public static pbr::MessageDescriptor Descriptor {
  13348. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[38]; }
  13349. }
  13350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13351. pbr::MessageDescriptor pb::IMessage.Descriptor {
  13352. get { return Descriptor; }
  13353. }
  13354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13355. public Int32Message() {
  13356. OnConstruction();
  13357. }
  13358. partial void OnConstruction();
  13359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13360. public Int32Message(Int32Message other) : this() {
  13361. _hasBits0 = other._hasBits0;
  13362. data_ = other.data_;
  13363. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  13364. }
  13365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13366. public Int32Message Clone() {
  13367. return new Int32Message(this);
  13368. }
  13369. /// <summary>Field number for the "data" field.</summary>
  13370. public const int DataFieldNumber = 1;
  13371. private readonly static int DataDefaultValue = 0;
  13372. private int data_;
  13373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13374. public int Data {
  13375. get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
  13376. set {
  13377. _hasBits0 |= 1;
  13378. data_ = value;
  13379. }
  13380. }
  13381. /// <summary>Gets whether the "data" field is set</summary>
  13382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13383. public bool HasData {
  13384. get { return (_hasBits0 & 1) != 0; }
  13385. }
  13386. /// <summary>Clears the value of the "data" field</summary>
  13387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13388. public void ClearData() {
  13389. _hasBits0 &= ~1;
  13390. }
  13391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13392. public override bool Equals(object other) {
  13393. return Equals(other as Int32Message);
  13394. }
  13395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13396. public bool Equals(Int32Message other) {
  13397. if (ReferenceEquals(other, null)) {
  13398. return false;
  13399. }
  13400. if (ReferenceEquals(other, this)) {
  13401. return true;
  13402. }
  13403. if (Data != other.Data) return false;
  13404. return Equals(_unknownFields, other._unknownFields);
  13405. }
  13406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13407. public override int GetHashCode() {
  13408. int hash = 1;
  13409. if (HasData) hash ^= Data.GetHashCode();
  13410. if (_unknownFields != null) {
  13411. hash ^= _unknownFields.GetHashCode();
  13412. }
  13413. return hash;
  13414. }
  13415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13416. public override string ToString() {
  13417. return pb::JsonFormatter.ToDiagnosticString(this);
  13418. }
  13419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13420. public void WriteTo(pb::CodedOutputStream output) {
  13421. if (HasData) {
  13422. output.WriteRawTag(8);
  13423. output.WriteInt32(Data);
  13424. }
  13425. if (_unknownFields != null) {
  13426. _unknownFields.WriteTo(output);
  13427. }
  13428. }
  13429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13430. public int CalculateSize() {
  13431. int size = 0;
  13432. if (HasData) {
  13433. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data);
  13434. }
  13435. if (_unknownFields != null) {
  13436. size += _unknownFields.CalculateSize();
  13437. }
  13438. return size;
  13439. }
  13440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13441. public void MergeFrom(Int32Message other) {
  13442. if (other == null) {
  13443. return;
  13444. }
  13445. if (other.HasData) {
  13446. Data = other.Data;
  13447. }
  13448. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  13449. }
  13450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13451. public void MergeFrom(pb::CodedInputStream input) {
  13452. uint tag;
  13453. while ((tag = input.ReadTag()) != 0) {
  13454. switch(tag) {
  13455. default:
  13456. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  13457. break;
  13458. case 8: {
  13459. Data = input.ReadInt32();
  13460. break;
  13461. }
  13462. }
  13463. }
  13464. }
  13465. }
  13466. public sealed partial class Uint32Message : pb::IMessage<Uint32Message> {
  13467. private static readonly pb::MessageParser<Uint32Message> _parser = new pb::MessageParser<Uint32Message>(() => new Uint32Message());
  13468. private pb::UnknownFieldSet _unknownFields;
  13469. private int _hasBits0;
  13470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13471. public static pb::MessageParser<Uint32Message> Parser { get { return _parser; } }
  13472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13473. public static pbr::MessageDescriptor Descriptor {
  13474. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[39]; }
  13475. }
  13476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13477. pbr::MessageDescriptor pb::IMessage.Descriptor {
  13478. get { return Descriptor; }
  13479. }
  13480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13481. public Uint32Message() {
  13482. OnConstruction();
  13483. }
  13484. partial void OnConstruction();
  13485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13486. public Uint32Message(Uint32Message other) : this() {
  13487. _hasBits0 = other._hasBits0;
  13488. data_ = other.data_;
  13489. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  13490. }
  13491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13492. public Uint32Message Clone() {
  13493. return new Uint32Message(this);
  13494. }
  13495. /// <summary>Field number for the "data" field.</summary>
  13496. public const int DataFieldNumber = 1;
  13497. private readonly static uint DataDefaultValue = 0;
  13498. private uint data_;
  13499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13500. public uint Data {
  13501. get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
  13502. set {
  13503. _hasBits0 |= 1;
  13504. data_ = value;
  13505. }
  13506. }
  13507. /// <summary>Gets whether the "data" field is set</summary>
  13508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13509. public bool HasData {
  13510. get { return (_hasBits0 & 1) != 0; }
  13511. }
  13512. /// <summary>Clears the value of the "data" field</summary>
  13513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13514. public void ClearData() {
  13515. _hasBits0 &= ~1;
  13516. }
  13517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13518. public override bool Equals(object other) {
  13519. return Equals(other as Uint32Message);
  13520. }
  13521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13522. public bool Equals(Uint32Message other) {
  13523. if (ReferenceEquals(other, null)) {
  13524. return false;
  13525. }
  13526. if (ReferenceEquals(other, this)) {
  13527. return true;
  13528. }
  13529. if (Data != other.Data) return false;
  13530. return Equals(_unknownFields, other._unknownFields);
  13531. }
  13532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13533. public override int GetHashCode() {
  13534. int hash = 1;
  13535. if (HasData) hash ^= Data.GetHashCode();
  13536. if (_unknownFields != null) {
  13537. hash ^= _unknownFields.GetHashCode();
  13538. }
  13539. return hash;
  13540. }
  13541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13542. public override string ToString() {
  13543. return pb::JsonFormatter.ToDiagnosticString(this);
  13544. }
  13545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13546. public void WriteTo(pb::CodedOutputStream output) {
  13547. if (HasData) {
  13548. output.WriteRawTag(8);
  13549. output.WriteUInt32(Data);
  13550. }
  13551. if (_unknownFields != null) {
  13552. _unknownFields.WriteTo(output);
  13553. }
  13554. }
  13555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13556. public int CalculateSize() {
  13557. int size = 0;
  13558. if (HasData) {
  13559. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Data);
  13560. }
  13561. if (_unknownFields != null) {
  13562. size += _unknownFields.CalculateSize();
  13563. }
  13564. return size;
  13565. }
  13566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13567. public void MergeFrom(Uint32Message other) {
  13568. if (other == null) {
  13569. return;
  13570. }
  13571. if (other.HasData) {
  13572. Data = other.Data;
  13573. }
  13574. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  13575. }
  13576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13577. public void MergeFrom(pb::CodedInputStream input) {
  13578. uint tag;
  13579. while ((tag = input.ReadTag()) != 0) {
  13580. switch(tag) {
  13581. default:
  13582. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  13583. break;
  13584. case 8: {
  13585. Data = input.ReadUInt32();
  13586. break;
  13587. }
  13588. }
  13589. }
  13590. }
  13591. }
  13592. public sealed partial class Int64Message : pb::IMessage<Int64Message> {
  13593. private static readonly pb::MessageParser<Int64Message> _parser = new pb::MessageParser<Int64Message>(() => new Int64Message());
  13594. private pb::UnknownFieldSet _unknownFields;
  13595. private int _hasBits0;
  13596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13597. public static pb::MessageParser<Int64Message> Parser { get { return _parser; } }
  13598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13599. public static pbr::MessageDescriptor Descriptor {
  13600. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[40]; }
  13601. }
  13602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13603. pbr::MessageDescriptor pb::IMessage.Descriptor {
  13604. get { return Descriptor; }
  13605. }
  13606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13607. public Int64Message() {
  13608. OnConstruction();
  13609. }
  13610. partial void OnConstruction();
  13611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13612. public Int64Message(Int64Message other) : this() {
  13613. _hasBits0 = other._hasBits0;
  13614. data_ = other.data_;
  13615. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  13616. }
  13617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13618. public Int64Message Clone() {
  13619. return new Int64Message(this);
  13620. }
  13621. /// <summary>Field number for the "data" field.</summary>
  13622. public const int DataFieldNumber = 1;
  13623. private readonly static long DataDefaultValue = 0L;
  13624. private long data_;
  13625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13626. public long Data {
  13627. get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
  13628. set {
  13629. _hasBits0 |= 1;
  13630. data_ = value;
  13631. }
  13632. }
  13633. /// <summary>Gets whether the "data" field is set</summary>
  13634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13635. public bool HasData {
  13636. get { return (_hasBits0 & 1) != 0; }
  13637. }
  13638. /// <summary>Clears the value of the "data" field</summary>
  13639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13640. public void ClearData() {
  13641. _hasBits0 &= ~1;
  13642. }
  13643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13644. public override bool Equals(object other) {
  13645. return Equals(other as Int64Message);
  13646. }
  13647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13648. public bool Equals(Int64Message other) {
  13649. if (ReferenceEquals(other, null)) {
  13650. return false;
  13651. }
  13652. if (ReferenceEquals(other, this)) {
  13653. return true;
  13654. }
  13655. if (Data != other.Data) return false;
  13656. return Equals(_unknownFields, other._unknownFields);
  13657. }
  13658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13659. public override int GetHashCode() {
  13660. int hash = 1;
  13661. if (HasData) hash ^= Data.GetHashCode();
  13662. if (_unknownFields != null) {
  13663. hash ^= _unknownFields.GetHashCode();
  13664. }
  13665. return hash;
  13666. }
  13667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13668. public override string ToString() {
  13669. return pb::JsonFormatter.ToDiagnosticString(this);
  13670. }
  13671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13672. public void WriteTo(pb::CodedOutputStream output) {
  13673. if (HasData) {
  13674. output.WriteRawTag(8);
  13675. output.WriteInt64(Data);
  13676. }
  13677. if (_unknownFields != null) {
  13678. _unknownFields.WriteTo(output);
  13679. }
  13680. }
  13681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13682. public int CalculateSize() {
  13683. int size = 0;
  13684. if (HasData) {
  13685. size += 1 + pb::CodedOutputStream.ComputeInt64Size(Data);
  13686. }
  13687. if (_unknownFields != null) {
  13688. size += _unknownFields.CalculateSize();
  13689. }
  13690. return size;
  13691. }
  13692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13693. public void MergeFrom(Int64Message other) {
  13694. if (other == null) {
  13695. return;
  13696. }
  13697. if (other.HasData) {
  13698. Data = other.Data;
  13699. }
  13700. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  13701. }
  13702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13703. public void MergeFrom(pb::CodedInputStream input) {
  13704. uint tag;
  13705. while ((tag = input.ReadTag()) != 0) {
  13706. switch(tag) {
  13707. default:
  13708. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  13709. break;
  13710. case 8: {
  13711. Data = input.ReadInt64();
  13712. break;
  13713. }
  13714. }
  13715. }
  13716. }
  13717. }
  13718. public sealed partial class Uint64Message : pb::IMessage<Uint64Message> {
  13719. private static readonly pb::MessageParser<Uint64Message> _parser = new pb::MessageParser<Uint64Message>(() => new Uint64Message());
  13720. private pb::UnknownFieldSet _unknownFields;
  13721. private int _hasBits0;
  13722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13723. public static pb::MessageParser<Uint64Message> Parser { get { return _parser; } }
  13724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13725. public static pbr::MessageDescriptor Descriptor {
  13726. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[41]; }
  13727. }
  13728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13729. pbr::MessageDescriptor pb::IMessage.Descriptor {
  13730. get { return Descriptor; }
  13731. }
  13732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13733. public Uint64Message() {
  13734. OnConstruction();
  13735. }
  13736. partial void OnConstruction();
  13737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13738. public Uint64Message(Uint64Message other) : this() {
  13739. _hasBits0 = other._hasBits0;
  13740. data_ = other.data_;
  13741. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  13742. }
  13743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13744. public Uint64Message Clone() {
  13745. return new Uint64Message(this);
  13746. }
  13747. /// <summary>Field number for the "data" field.</summary>
  13748. public const int DataFieldNumber = 1;
  13749. private readonly static ulong DataDefaultValue = 0UL;
  13750. private ulong data_;
  13751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13752. public ulong Data {
  13753. get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
  13754. set {
  13755. _hasBits0 |= 1;
  13756. data_ = value;
  13757. }
  13758. }
  13759. /// <summary>Gets whether the "data" field is set</summary>
  13760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13761. public bool HasData {
  13762. get { return (_hasBits0 & 1) != 0; }
  13763. }
  13764. /// <summary>Clears the value of the "data" field</summary>
  13765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13766. public void ClearData() {
  13767. _hasBits0 &= ~1;
  13768. }
  13769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13770. public override bool Equals(object other) {
  13771. return Equals(other as Uint64Message);
  13772. }
  13773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13774. public bool Equals(Uint64Message other) {
  13775. if (ReferenceEquals(other, null)) {
  13776. return false;
  13777. }
  13778. if (ReferenceEquals(other, this)) {
  13779. return true;
  13780. }
  13781. if (Data != other.Data) return false;
  13782. return Equals(_unknownFields, other._unknownFields);
  13783. }
  13784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13785. public override int GetHashCode() {
  13786. int hash = 1;
  13787. if (HasData) hash ^= Data.GetHashCode();
  13788. if (_unknownFields != null) {
  13789. hash ^= _unknownFields.GetHashCode();
  13790. }
  13791. return hash;
  13792. }
  13793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13794. public override string ToString() {
  13795. return pb::JsonFormatter.ToDiagnosticString(this);
  13796. }
  13797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13798. public void WriteTo(pb::CodedOutputStream output) {
  13799. if (HasData) {
  13800. output.WriteRawTag(8);
  13801. output.WriteUInt64(Data);
  13802. }
  13803. if (_unknownFields != null) {
  13804. _unknownFields.WriteTo(output);
  13805. }
  13806. }
  13807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13808. public int CalculateSize() {
  13809. int size = 0;
  13810. if (HasData) {
  13811. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Data);
  13812. }
  13813. if (_unknownFields != null) {
  13814. size += _unknownFields.CalculateSize();
  13815. }
  13816. return size;
  13817. }
  13818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13819. public void MergeFrom(Uint64Message other) {
  13820. if (other == null) {
  13821. return;
  13822. }
  13823. if (other.HasData) {
  13824. Data = other.Data;
  13825. }
  13826. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  13827. }
  13828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13829. public void MergeFrom(pb::CodedInputStream input) {
  13830. uint tag;
  13831. while ((tag = input.ReadTag()) != 0) {
  13832. switch(tag) {
  13833. default:
  13834. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  13835. break;
  13836. case 8: {
  13837. Data = input.ReadUInt64();
  13838. break;
  13839. }
  13840. }
  13841. }
  13842. }
  13843. }
  13844. public sealed partial class BoolMessage : pb::IMessage<BoolMessage> {
  13845. private static readonly pb::MessageParser<BoolMessage> _parser = new pb::MessageParser<BoolMessage>(() => new BoolMessage());
  13846. private pb::UnknownFieldSet _unknownFields;
  13847. private int _hasBits0;
  13848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13849. public static pb::MessageParser<BoolMessage> Parser { get { return _parser; } }
  13850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13851. public static pbr::MessageDescriptor Descriptor {
  13852. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[42]; }
  13853. }
  13854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13855. pbr::MessageDescriptor pb::IMessage.Descriptor {
  13856. get { return Descriptor; }
  13857. }
  13858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13859. public BoolMessage() {
  13860. OnConstruction();
  13861. }
  13862. partial void OnConstruction();
  13863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13864. public BoolMessage(BoolMessage other) : this() {
  13865. _hasBits0 = other._hasBits0;
  13866. data_ = other.data_;
  13867. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  13868. }
  13869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13870. public BoolMessage Clone() {
  13871. return new BoolMessage(this);
  13872. }
  13873. /// <summary>Field number for the "data" field.</summary>
  13874. public const int DataFieldNumber = 1;
  13875. private readonly static bool DataDefaultValue = false;
  13876. private bool data_;
  13877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13878. public bool Data {
  13879. get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
  13880. set {
  13881. _hasBits0 |= 1;
  13882. data_ = value;
  13883. }
  13884. }
  13885. /// <summary>Gets whether the "data" field is set</summary>
  13886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13887. public bool HasData {
  13888. get { return (_hasBits0 & 1) != 0; }
  13889. }
  13890. /// <summary>Clears the value of the "data" field</summary>
  13891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13892. public void ClearData() {
  13893. _hasBits0 &= ~1;
  13894. }
  13895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13896. public override bool Equals(object other) {
  13897. return Equals(other as BoolMessage);
  13898. }
  13899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13900. public bool Equals(BoolMessage other) {
  13901. if (ReferenceEquals(other, null)) {
  13902. return false;
  13903. }
  13904. if (ReferenceEquals(other, this)) {
  13905. return true;
  13906. }
  13907. if (Data != other.Data) return false;
  13908. return Equals(_unknownFields, other._unknownFields);
  13909. }
  13910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13911. public override int GetHashCode() {
  13912. int hash = 1;
  13913. if (HasData) hash ^= Data.GetHashCode();
  13914. if (_unknownFields != null) {
  13915. hash ^= _unknownFields.GetHashCode();
  13916. }
  13917. return hash;
  13918. }
  13919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13920. public override string ToString() {
  13921. return pb::JsonFormatter.ToDiagnosticString(this);
  13922. }
  13923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13924. public void WriteTo(pb::CodedOutputStream output) {
  13925. if (HasData) {
  13926. output.WriteRawTag(8);
  13927. output.WriteBool(Data);
  13928. }
  13929. if (_unknownFields != null) {
  13930. _unknownFields.WriteTo(output);
  13931. }
  13932. }
  13933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13934. public int CalculateSize() {
  13935. int size = 0;
  13936. if (HasData) {
  13937. size += 1 + 1;
  13938. }
  13939. if (_unknownFields != null) {
  13940. size += _unknownFields.CalculateSize();
  13941. }
  13942. return size;
  13943. }
  13944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13945. public void MergeFrom(BoolMessage other) {
  13946. if (other == null) {
  13947. return;
  13948. }
  13949. if (other.HasData) {
  13950. Data = other.Data;
  13951. }
  13952. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  13953. }
  13954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13955. public void MergeFrom(pb::CodedInputStream input) {
  13956. uint tag;
  13957. while ((tag = input.ReadTag()) != 0) {
  13958. switch(tag) {
  13959. default:
  13960. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  13961. break;
  13962. case 8: {
  13963. Data = input.ReadBool();
  13964. break;
  13965. }
  13966. }
  13967. }
  13968. }
  13969. }
  13970. /// <summary>
  13971. /// Test oneofs.
  13972. /// </summary>
  13973. public sealed partial class TestOneof : pb::IMessage<TestOneof> {
  13974. private static readonly pb::MessageParser<TestOneof> _parser = new pb::MessageParser<TestOneof>(() => new TestOneof());
  13975. private pb::UnknownFieldSet _unknownFields;
  13976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13977. public static pb::MessageParser<TestOneof> Parser { get { return _parser; } }
  13978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13979. public static pbr::MessageDescriptor Descriptor {
  13980. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[43]; }
  13981. }
  13982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13983. pbr::MessageDescriptor pb::IMessage.Descriptor {
  13984. get { return Descriptor; }
  13985. }
  13986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13987. public TestOneof() {
  13988. OnConstruction();
  13989. }
  13990. partial void OnConstruction();
  13991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  13992. public TestOneof(TestOneof other) : this() {
  13993. switch (other.FooCase) {
  13994. case FooOneofCase.FooInt:
  13995. FooInt = other.FooInt;
  13996. break;
  13997. case FooOneofCase.FooString:
  13998. FooString = other.FooString;
  13999. break;
  14000. case FooOneofCase.FooMessage:
  14001. FooMessage = other.FooMessage.Clone();
  14002. break;
  14003. case FooOneofCase.FooGroup:
  14004. FooGroup = other.FooGroup.Clone();
  14005. break;
  14006. }
  14007. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  14008. }
  14009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14010. public TestOneof Clone() {
  14011. return new TestOneof(this);
  14012. }
  14013. /// <summary>Field number for the "foo_int" field.</summary>
  14014. public const int FooIntFieldNumber = 1;
  14015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14016. public int FooInt {
  14017. get { return HasFooInt ? (int) foo_ : 0; }
  14018. set {
  14019. foo_ = value;
  14020. fooCase_ = FooOneofCase.FooInt;
  14021. }
  14022. }
  14023. /// <summary>Gets whether the "foo_int" field is set</summary>
  14024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14025. public bool HasFooInt {
  14026. get { return fooCase_ == FooOneofCase.FooInt; }
  14027. }
  14028. /// <summary> Clears the value of the oneof if it's currently set to "foo_int" </summary>
  14029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14030. public void ClearFooInt() {
  14031. if (HasFooInt) {
  14032. ClearFoo();
  14033. }
  14034. }
  14035. /// <summary>Field number for the "foo_string" field.</summary>
  14036. public const int FooStringFieldNumber = 2;
  14037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14038. public string FooString {
  14039. get { return HasFooString ? (string) foo_ : ""; }
  14040. set {
  14041. foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  14042. fooCase_ = FooOneofCase.FooString;
  14043. }
  14044. }
  14045. /// <summary>Gets whether the "foo_string" field is set</summary>
  14046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14047. public bool HasFooString {
  14048. get { return fooCase_ == FooOneofCase.FooString; }
  14049. }
  14050. /// <summary> Clears the value of the oneof if it's currently set to "foo_string" </summary>
  14051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14052. public void ClearFooString() {
  14053. if (HasFooString) {
  14054. ClearFoo();
  14055. }
  14056. }
  14057. /// <summary>Field number for the "foo_message" field.</summary>
  14058. public const int FooMessageFieldNumber = 3;
  14059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14060. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes FooMessage {
  14061. get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes) foo_ : null; }
  14062. set {
  14063. foo_ = value;
  14064. fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage;
  14065. }
  14066. }
  14067. /// <summary>Field number for the "foogroup" field.</summary>
  14068. public const int FooGroupFieldNumber = 4;
  14069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14070. public global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup FooGroup {
  14071. get { return HasFooGroup ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup) foo_ : null; }
  14072. set {
  14073. foo_ = value;
  14074. fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooGroup;
  14075. }
  14076. }
  14077. /// <summary>Gets whether the "foogroup" field is set</summary>
  14078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14079. public bool HasFooGroup {
  14080. get { return fooCase_ == FooOneofCase.FooGroup; }
  14081. }
  14082. /// <summary> Clears the value of the oneof if it's currently set to "foogroup" </summary>
  14083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14084. public void ClearFooGroup() {
  14085. if (HasFooGroup) {
  14086. ClearFoo();
  14087. }
  14088. }
  14089. private object foo_;
  14090. /// <summary>Enum of possible cases for the "foo" oneof.</summary>
  14091. public enum FooOneofCase {
  14092. None = 0,
  14093. FooInt = 1,
  14094. FooString = 2,
  14095. FooMessage = 3,
  14096. FooGroup = 4,
  14097. }
  14098. private FooOneofCase fooCase_ = FooOneofCase.None;
  14099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14100. public FooOneofCase FooCase {
  14101. get { return fooCase_; }
  14102. }
  14103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14104. public void ClearFoo() {
  14105. fooCase_ = FooOneofCase.None;
  14106. foo_ = null;
  14107. }
  14108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14109. public override bool Equals(object other) {
  14110. return Equals(other as TestOneof);
  14111. }
  14112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14113. public bool Equals(TestOneof other) {
  14114. if (ReferenceEquals(other, null)) {
  14115. return false;
  14116. }
  14117. if (ReferenceEquals(other, this)) {
  14118. return true;
  14119. }
  14120. if (FooInt != other.FooInt) return false;
  14121. if (FooString != other.FooString) return false;
  14122. if (!object.Equals(FooMessage, other.FooMessage)) return false;
  14123. if (!object.Equals(FooGroup, other.FooGroup)) return false;
  14124. if (FooCase != other.FooCase) return false;
  14125. return Equals(_unknownFields, other._unknownFields);
  14126. }
  14127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14128. public override int GetHashCode() {
  14129. int hash = 1;
  14130. if (HasFooInt) hash ^= FooInt.GetHashCode();
  14131. if (HasFooString) hash ^= FooString.GetHashCode();
  14132. if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode();
  14133. if (HasFooGroup) hash ^= FooGroup.GetHashCode();
  14134. hash ^= (int) fooCase_;
  14135. if (_unknownFields != null) {
  14136. hash ^= _unknownFields.GetHashCode();
  14137. }
  14138. return hash;
  14139. }
  14140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14141. public override string ToString() {
  14142. return pb::JsonFormatter.ToDiagnosticString(this);
  14143. }
  14144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14145. public void WriteTo(pb::CodedOutputStream output) {
  14146. if (HasFooInt) {
  14147. output.WriteRawTag(8);
  14148. output.WriteInt32(FooInt);
  14149. }
  14150. if (HasFooString) {
  14151. output.WriteRawTag(18);
  14152. output.WriteString(FooString);
  14153. }
  14154. if (fooCase_ == FooOneofCase.FooMessage) {
  14155. output.WriteRawTag(26);
  14156. output.WriteMessage(FooMessage);
  14157. }
  14158. if (HasFooGroup) {
  14159. output.WriteRawTag(35);
  14160. output.WriteGroup(FooGroup);
  14161. output.WriteRawTag(36);
  14162. }
  14163. if (_unknownFields != null) {
  14164. _unknownFields.WriteTo(output);
  14165. }
  14166. }
  14167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14168. public int CalculateSize() {
  14169. int size = 0;
  14170. if (HasFooInt) {
  14171. size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
  14172. }
  14173. if (HasFooString) {
  14174. size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
  14175. }
  14176. if (fooCase_ == FooOneofCase.FooMessage) {
  14177. size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
  14178. }
  14179. if (HasFooGroup) {
  14180. size += 2 + pb::CodedOutputStream.ComputeGroupSize(FooGroup);
  14181. }
  14182. if (_unknownFields != null) {
  14183. size += _unknownFields.CalculateSize();
  14184. }
  14185. return size;
  14186. }
  14187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14188. public void MergeFrom(TestOneof other) {
  14189. if (other == null) {
  14190. return;
  14191. }
  14192. switch (other.FooCase) {
  14193. case FooOneofCase.FooInt:
  14194. FooInt = other.FooInt;
  14195. break;
  14196. case FooOneofCase.FooString:
  14197. FooString = other.FooString;
  14198. break;
  14199. case FooOneofCase.FooMessage:
  14200. if (FooMessage == null) {
  14201. FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  14202. }
  14203. FooMessage.MergeFrom(other.FooMessage);
  14204. break;
  14205. case FooOneofCase.FooGroup:
  14206. if (FooGroup == null) {
  14207. FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup();
  14208. }
  14209. FooGroup.MergeFrom(other.FooGroup);
  14210. break;
  14211. }
  14212. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  14213. }
  14214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14215. public void MergeFrom(pb::CodedInputStream input) {
  14216. uint tag;
  14217. while ((tag = input.ReadTag()) != 0) {
  14218. switch(tag) {
  14219. default:
  14220. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  14221. break;
  14222. case 8: {
  14223. FooInt = input.ReadInt32();
  14224. break;
  14225. }
  14226. case 18: {
  14227. FooString = input.ReadString();
  14228. break;
  14229. }
  14230. case 26: {
  14231. global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  14232. if (fooCase_ == FooOneofCase.FooMessage) {
  14233. subBuilder.MergeFrom(FooMessage);
  14234. }
  14235. input.ReadMessage(subBuilder);
  14236. FooMessage = subBuilder;
  14237. break;
  14238. }
  14239. case 35: {
  14240. global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup();
  14241. if (HasFooGroup) {
  14242. subBuilder.MergeFrom(FooGroup);
  14243. }
  14244. input.ReadGroup(subBuilder);
  14245. FooGroup = subBuilder;
  14246. break;
  14247. }
  14248. }
  14249. }
  14250. }
  14251. #region Nested types
  14252. /// <summary>Container for nested types declared in the TestOneof message type.</summary>
  14253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14254. public static partial class Types {
  14255. public sealed partial class FooGroup : pb::IMessage<FooGroup> {
  14256. private static readonly pb::MessageParser<FooGroup> _parser = new pb::MessageParser<FooGroup>(() => new FooGroup());
  14257. private pb::UnknownFieldSet _unknownFields;
  14258. private int _hasBits0;
  14259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14260. public static pb::MessageParser<FooGroup> Parser { get { return _parser; } }
  14261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14262. public static pbr::MessageDescriptor Descriptor {
  14263. get { return global::Google.Protobuf.TestProtos.Proto2.TestOneof.Descriptor.NestedTypes[0]; }
  14264. }
  14265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14266. pbr::MessageDescriptor pb::IMessage.Descriptor {
  14267. get { return Descriptor; }
  14268. }
  14269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14270. public FooGroup() {
  14271. OnConstruction();
  14272. }
  14273. partial void OnConstruction();
  14274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14275. public FooGroup(FooGroup other) : this() {
  14276. _hasBits0 = other._hasBits0;
  14277. a_ = other.a_;
  14278. b_ = other.b_;
  14279. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  14280. }
  14281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14282. public FooGroup Clone() {
  14283. return new FooGroup(this);
  14284. }
  14285. /// <summary>Field number for the "a" field.</summary>
  14286. public const int AFieldNumber = 5;
  14287. private readonly static int ADefaultValue = 0;
  14288. private int a_;
  14289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14290. public int A {
  14291. get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
  14292. set {
  14293. _hasBits0 |= 1;
  14294. a_ = value;
  14295. }
  14296. }
  14297. /// <summary>Gets whether the "a" field is set</summary>
  14298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14299. public bool HasA {
  14300. get { return (_hasBits0 & 1) != 0; }
  14301. }
  14302. /// <summary>Clears the value of the "a" field</summary>
  14303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14304. public void ClearA() {
  14305. _hasBits0 &= ~1;
  14306. }
  14307. /// <summary>Field number for the "b" field.</summary>
  14308. public const int BFieldNumber = 6;
  14309. private readonly static string BDefaultValue = "";
  14310. private string b_;
  14311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14312. public string B {
  14313. get { return b_ ?? BDefaultValue; }
  14314. set {
  14315. b_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  14316. }
  14317. }
  14318. /// <summary>Gets whether the "b" field is set</summary>
  14319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14320. public bool HasB {
  14321. get { return b_ != null; }
  14322. }
  14323. /// <summary>Clears the value of the "b" field</summary>
  14324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14325. public void ClearB() {
  14326. b_ = null;
  14327. }
  14328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14329. public override bool Equals(object other) {
  14330. return Equals(other as FooGroup);
  14331. }
  14332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14333. public bool Equals(FooGroup other) {
  14334. if (ReferenceEquals(other, null)) {
  14335. return false;
  14336. }
  14337. if (ReferenceEquals(other, this)) {
  14338. return true;
  14339. }
  14340. if (A != other.A) return false;
  14341. if (B != other.B) return false;
  14342. return Equals(_unknownFields, other._unknownFields);
  14343. }
  14344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14345. public override int GetHashCode() {
  14346. int hash = 1;
  14347. if (HasA) hash ^= A.GetHashCode();
  14348. if (HasB) hash ^= B.GetHashCode();
  14349. if (_unknownFields != null) {
  14350. hash ^= _unknownFields.GetHashCode();
  14351. }
  14352. return hash;
  14353. }
  14354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14355. public override string ToString() {
  14356. return pb::JsonFormatter.ToDiagnosticString(this);
  14357. }
  14358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14359. public void WriteTo(pb::CodedOutputStream output) {
  14360. if (HasA) {
  14361. output.WriteRawTag(40);
  14362. output.WriteInt32(A);
  14363. }
  14364. if (HasB) {
  14365. output.WriteRawTag(50);
  14366. output.WriteString(B);
  14367. }
  14368. if (_unknownFields != null) {
  14369. _unknownFields.WriteTo(output);
  14370. }
  14371. }
  14372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14373. public int CalculateSize() {
  14374. int size = 0;
  14375. if (HasA) {
  14376. size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
  14377. }
  14378. if (HasB) {
  14379. size += 1 + pb::CodedOutputStream.ComputeStringSize(B);
  14380. }
  14381. if (_unknownFields != null) {
  14382. size += _unknownFields.CalculateSize();
  14383. }
  14384. return size;
  14385. }
  14386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14387. public void MergeFrom(FooGroup other) {
  14388. if (other == null) {
  14389. return;
  14390. }
  14391. if (other.HasA) {
  14392. A = other.A;
  14393. }
  14394. if (other.HasB) {
  14395. B = other.B;
  14396. }
  14397. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  14398. }
  14399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14400. public void MergeFrom(pb::CodedInputStream input) {
  14401. uint tag;
  14402. while ((tag = input.ReadTag()) != 0) {
  14403. switch(tag) {
  14404. case 36:
  14405. return;
  14406. default:
  14407. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  14408. break;
  14409. case 40: {
  14410. A = input.ReadInt32();
  14411. break;
  14412. }
  14413. case 50: {
  14414. B = input.ReadString();
  14415. break;
  14416. }
  14417. }
  14418. }
  14419. }
  14420. }
  14421. }
  14422. #endregion
  14423. }
  14424. public sealed partial class TestOneofBackwardsCompatible : pb::IMessage<TestOneofBackwardsCompatible> {
  14425. private static readonly pb::MessageParser<TestOneofBackwardsCompatible> _parser = new pb::MessageParser<TestOneofBackwardsCompatible>(() => new TestOneofBackwardsCompatible());
  14426. private pb::UnknownFieldSet _unknownFields;
  14427. private int _hasBits0;
  14428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14429. public static pb::MessageParser<TestOneofBackwardsCompatible> Parser { get { return _parser; } }
  14430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14431. public static pbr::MessageDescriptor Descriptor {
  14432. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[44]; }
  14433. }
  14434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14435. pbr::MessageDescriptor pb::IMessage.Descriptor {
  14436. get { return Descriptor; }
  14437. }
  14438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14439. public TestOneofBackwardsCompatible() {
  14440. OnConstruction();
  14441. }
  14442. partial void OnConstruction();
  14443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14444. public TestOneofBackwardsCompatible(TestOneofBackwardsCompatible other) : this() {
  14445. _hasBits0 = other._hasBits0;
  14446. fooInt_ = other.fooInt_;
  14447. fooString_ = other.fooString_;
  14448. fooMessage_ = other.fooMessage_ != null ? other.fooMessage_.Clone() : null;
  14449. fooGroup_ = other.HasFooGroup ? other.fooGroup_.Clone() : null;
  14450. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  14451. }
  14452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14453. public TestOneofBackwardsCompatible Clone() {
  14454. return new TestOneofBackwardsCompatible(this);
  14455. }
  14456. /// <summary>Field number for the "foo_int" field.</summary>
  14457. public const int FooIntFieldNumber = 1;
  14458. private readonly static int FooIntDefaultValue = 0;
  14459. private int fooInt_;
  14460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14461. public int FooInt {
  14462. get { if ((_hasBits0 & 1) != 0) { return fooInt_; } else { return FooIntDefaultValue; } }
  14463. set {
  14464. _hasBits0 |= 1;
  14465. fooInt_ = value;
  14466. }
  14467. }
  14468. /// <summary>Gets whether the "foo_int" field is set</summary>
  14469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14470. public bool HasFooInt {
  14471. get { return (_hasBits0 & 1) != 0; }
  14472. }
  14473. /// <summary>Clears the value of the "foo_int" field</summary>
  14474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14475. public void ClearFooInt() {
  14476. _hasBits0 &= ~1;
  14477. }
  14478. /// <summary>Field number for the "foo_string" field.</summary>
  14479. public const int FooStringFieldNumber = 2;
  14480. private readonly static string FooStringDefaultValue = "";
  14481. private string fooString_;
  14482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14483. public string FooString {
  14484. get { return fooString_ ?? FooStringDefaultValue; }
  14485. set {
  14486. fooString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  14487. }
  14488. }
  14489. /// <summary>Gets whether the "foo_string" field is set</summary>
  14490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14491. public bool HasFooString {
  14492. get { return fooString_ != null; }
  14493. }
  14494. /// <summary>Clears the value of the "foo_string" field</summary>
  14495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14496. public void ClearFooString() {
  14497. fooString_ = null;
  14498. }
  14499. /// <summary>Field number for the "foo_message" field.</summary>
  14500. public const int FooMessageFieldNumber = 3;
  14501. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes fooMessage_;
  14502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14503. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes FooMessage {
  14504. get { return fooMessage_; }
  14505. set {
  14506. fooMessage_ = value;
  14507. }
  14508. }
  14509. /// <summary>Field number for the "foogroup" field.</summary>
  14510. public const int FooGroupFieldNumber = 4;
  14511. private global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup fooGroup_;
  14512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14513. public global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup FooGroup {
  14514. get { return fooGroup_; }
  14515. set {
  14516. fooGroup_ = value;
  14517. }
  14518. }
  14519. /// <summary>Gets whether the foogroup field is set</summary>
  14520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14521. public bool HasFooGroup {
  14522. get { return fooGroup_ != null; }
  14523. }
  14524. /// <summary>Clears the value of the foogroup field</summary>
  14525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14526. public void ClearFooGroup() {
  14527. fooGroup_ = null;
  14528. }
  14529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14530. public override bool Equals(object other) {
  14531. return Equals(other as TestOneofBackwardsCompatible);
  14532. }
  14533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14534. public bool Equals(TestOneofBackwardsCompatible other) {
  14535. if (ReferenceEquals(other, null)) {
  14536. return false;
  14537. }
  14538. if (ReferenceEquals(other, this)) {
  14539. return true;
  14540. }
  14541. if (FooInt != other.FooInt) return false;
  14542. if (FooString != other.FooString) return false;
  14543. if (!object.Equals(FooMessage, other.FooMessage)) return false;
  14544. if (!object.Equals(FooGroup, other.FooGroup)) return false;
  14545. return Equals(_unknownFields, other._unknownFields);
  14546. }
  14547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14548. public override int GetHashCode() {
  14549. int hash = 1;
  14550. if (HasFooInt) hash ^= FooInt.GetHashCode();
  14551. if (HasFooString) hash ^= FooString.GetHashCode();
  14552. if (fooMessage_ != null) hash ^= FooMessage.GetHashCode();
  14553. if (HasFooGroup) hash ^= FooGroup.GetHashCode();
  14554. if (_unknownFields != null) {
  14555. hash ^= _unknownFields.GetHashCode();
  14556. }
  14557. return hash;
  14558. }
  14559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14560. public override string ToString() {
  14561. return pb::JsonFormatter.ToDiagnosticString(this);
  14562. }
  14563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14564. public void WriteTo(pb::CodedOutputStream output) {
  14565. if (HasFooInt) {
  14566. output.WriteRawTag(8);
  14567. output.WriteInt32(FooInt);
  14568. }
  14569. if (HasFooString) {
  14570. output.WriteRawTag(18);
  14571. output.WriteString(FooString);
  14572. }
  14573. if (fooMessage_ != null) {
  14574. output.WriteRawTag(26);
  14575. output.WriteMessage(FooMessage);
  14576. }
  14577. if (HasFooGroup) {
  14578. output.WriteRawTag(35);
  14579. output.WriteGroup(FooGroup);
  14580. output.WriteRawTag(36);
  14581. }
  14582. if (_unknownFields != null) {
  14583. _unknownFields.WriteTo(output);
  14584. }
  14585. }
  14586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14587. public int CalculateSize() {
  14588. int size = 0;
  14589. if (HasFooInt) {
  14590. size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
  14591. }
  14592. if (HasFooString) {
  14593. size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
  14594. }
  14595. if (fooMessage_ != null) {
  14596. size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
  14597. }
  14598. if (HasFooGroup) {
  14599. size += 2 + pb::CodedOutputStream.ComputeGroupSize(FooGroup);
  14600. }
  14601. if (_unknownFields != null) {
  14602. size += _unknownFields.CalculateSize();
  14603. }
  14604. return size;
  14605. }
  14606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14607. public void MergeFrom(TestOneofBackwardsCompatible other) {
  14608. if (other == null) {
  14609. return;
  14610. }
  14611. if (other.HasFooInt) {
  14612. FooInt = other.FooInt;
  14613. }
  14614. if (other.HasFooString) {
  14615. FooString = other.FooString;
  14616. }
  14617. if (other.fooMessage_ != null) {
  14618. if (fooMessage_ == null) {
  14619. FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  14620. }
  14621. FooMessage.MergeFrom(other.FooMessage);
  14622. }
  14623. if (other.HasFooGroup) {
  14624. if (!HasFooGroup) {
  14625. FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup();
  14626. }
  14627. FooGroup.MergeFrom(other.FooGroup);
  14628. }
  14629. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  14630. }
  14631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14632. public void MergeFrom(pb::CodedInputStream input) {
  14633. uint tag;
  14634. while ((tag = input.ReadTag()) != 0) {
  14635. switch(tag) {
  14636. default:
  14637. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  14638. break;
  14639. case 8: {
  14640. FooInt = input.ReadInt32();
  14641. break;
  14642. }
  14643. case 18: {
  14644. FooString = input.ReadString();
  14645. break;
  14646. }
  14647. case 26: {
  14648. if (fooMessage_ == null) {
  14649. FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  14650. }
  14651. input.ReadMessage(FooMessage);
  14652. break;
  14653. }
  14654. case 35: {
  14655. if (!HasFooGroup) {
  14656. FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup();
  14657. }
  14658. input.ReadGroup(FooGroup);
  14659. break;
  14660. }
  14661. }
  14662. }
  14663. }
  14664. #region Nested types
  14665. /// <summary>Container for nested types declared in the TestOneofBackwardsCompatible message type.</summary>
  14666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14667. public static partial class Types {
  14668. public sealed partial class FooGroup : pb::IMessage<FooGroup> {
  14669. private static readonly pb::MessageParser<FooGroup> _parser = new pb::MessageParser<FooGroup>(() => new FooGroup());
  14670. private pb::UnknownFieldSet _unknownFields;
  14671. private int _hasBits0;
  14672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14673. public static pb::MessageParser<FooGroup> Parser { get { return _parser; } }
  14674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14675. public static pbr::MessageDescriptor Descriptor {
  14676. get { return global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Descriptor.NestedTypes[0]; }
  14677. }
  14678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14679. pbr::MessageDescriptor pb::IMessage.Descriptor {
  14680. get { return Descriptor; }
  14681. }
  14682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14683. public FooGroup() {
  14684. OnConstruction();
  14685. }
  14686. partial void OnConstruction();
  14687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14688. public FooGroup(FooGroup other) : this() {
  14689. _hasBits0 = other._hasBits0;
  14690. a_ = other.a_;
  14691. b_ = other.b_;
  14692. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  14693. }
  14694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14695. public FooGroup Clone() {
  14696. return new FooGroup(this);
  14697. }
  14698. /// <summary>Field number for the "a" field.</summary>
  14699. public const int AFieldNumber = 5;
  14700. private readonly static int ADefaultValue = 0;
  14701. private int a_;
  14702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14703. public int A {
  14704. get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
  14705. set {
  14706. _hasBits0 |= 1;
  14707. a_ = value;
  14708. }
  14709. }
  14710. /// <summary>Gets whether the "a" field is set</summary>
  14711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14712. public bool HasA {
  14713. get { return (_hasBits0 & 1) != 0; }
  14714. }
  14715. /// <summary>Clears the value of the "a" field</summary>
  14716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14717. public void ClearA() {
  14718. _hasBits0 &= ~1;
  14719. }
  14720. /// <summary>Field number for the "b" field.</summary>
  14721. public const int BFieldNumber = 6;
  14722. private readonly static string BDefaultValue = "";
  14723. private string b_;
  14724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14725. public string B {
  14726. get { return b_ ?? BDefaultValue; }
  14727. set {
  14728. b_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  14729. }
  14730. }
  14731. /// <summary>Gets whether the "b" field is set</summary>
  14732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14733. public bool HasB {
  14734. get { return b_ != null; }
  14735. }
  14736. /// <summary>Clears the value of the "b" field</summary>
  14737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14738. public void ClearB() {
  14739. b_ = null;
  14740. }
  14741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14742. public override bool Equals(object other) {
  14743. return Equals(other as FooGroup);
  14744. }
  14745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14746. public bool Equals(FooGroup other) {
  14747. if (ReferenceEquals(other, null)) {
  14748. return false;
  14749. }
  14750. if (ReferenceEquals(other, this)) {
  14751. return true;
  14752. }
  14753. if (A != other.A) return false;
  14754. if (B != other.B) return false;
  14755. return Equals(_unknownFields, other._unknownFields);
  14756. }
  14757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14758. public override int GetHashCode() {
  14759. int hash = 1;
  14760. if (HasA) hash ^= A.GetHashCode();
  14761. if (HasB) hash ^= B.GetHashCode();
  14762. if (_unknownFields != null) {
  14763. hash ^= _unknownFields.GetHashCode();
  14764. }
  14765. return hash;
  14766. }
  14767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14768. public override string ToString() {
  14769. return pb::JsonFormatter.ToDiagnosticString(this);
  14770. }
  14771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14772. public void WriteTo(pb::CodedOutputStream output) {
  14773. if (HasA) {
  14774. output.WriteRawTag(40);
  14775. output.WriteInt32(A);
  14776. }
  14777. if (HasB) {
  14778. output.WriteRawTag(50);
  14779. output.WriteString(B);
  14780. }
  14781. if (_unknownFields != null) {
  14782. _unknownFields.WriteTo(output);
  14783. }
  14784. }
  14785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14786. public int CalculateSize() {
  14787. int size = 0;
  14788. if (HasA) {
  14789. size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
  14790. }
  14791. if (HasB) {
  14792. size += 1 + pb::CodedOutputStream.ComputeStringSize(B);
  14793. }
  14794. if (_unknownFields != null) {
  14795. size += _unknownFields.CalculateSize();
  14796. }
  14797. return size;
  14798. }
  14799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14800. public void MergeFrom(FooGroup other) {
  14801. if (other == null) {
  14802. return;
  14803. }
  14804. if (other.HasA) {
  14805. A = other.A;
  14806. }
  14807. if (other.HasB) {
  14808. B = other.B;
  14809. }
  14810. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  14811. }
  14812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14813. public void MergeFrom(pb::CodedInputStream input) {
  14814. uint tag;
  14815. while ((tag = input.ReadTag()) != 0) {
  14816. switch(tag) {
  14817. case 36:
  14818. return;
  14819. default:
  14820. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  14821. break;
  14822. case 40: {
  14823. A = input.ReadInt32();
  14824. break;
  14825. }
  14826. case 50: {
  14827. B = input.ReadString();
  14828. break;
  14829. }
  14830. }
  14831. }
  14832. }
  14833. }
  14834. }
  14835. #endregion
  14836. }
  14837. public sealed partial class TestOneof2 : pb::IMessage<TestOneof2> {
  14838. private static readonly pb::MessageParser<TestOneof2> _parser = new pb::MessageParser<TestOneof2>(() => new TestOneof2());
  14839. private pb::UnknownFieldSet _unknownFields;
  14840. private int _hasBits0;
  14841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14842. public static pb::MessageParser<TestOneof2> Parser { get { return _parser; } }
  14843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14844. public static pbr::MessageDescriptor Descriptor {
  14845. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[45]; }
  14846. }
  14847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14848. pbr::MessageDescriptor pb::IMessage.Descriptor {
  14849. get { return Descriptor; }
  14850. }
  14851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14852. public TestOneof2() {
  14853. OnConstruction();
  14854. }
  14855. partial void OnConstruction();
  14856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14857. public TestOneof2(TestOneof2 other) : this() {
  14858. _hasBits0 = other._hasBits0;
  14859. bazInt_ = other.bazInt_;
  14860. bazString_ = other.bazString_;
  14861. switch (other.FooCase) {
  14862. case FooOneofCase.FooInt:
  14863. FooInt = other.FooInt;
  14864. break;
  14865. case FooOneofCase.FooString:
  14866. FooString = other.FooString;
  14867. break;
  14868. case FooOneofCase.FooCord:
  14869. FooCord = other.FooCord;
  14870. break;
  14871. case FooOneofCase.FooStringPiece:
  14872. FooStringPiece = other.FooStringPiece;
  14873. break;
  14874. case FooOneofCase.FooBytes:
  14875. FooBytes = other.FooBytes;
  14876. break;
  14877. case FooOneofCase.FooEnum:
  14878. FooEnum = other.FooEnum;
  14879. break;
  14880. case FooOneofCase.FooMessage:
  14881. FooMessage = other.FooMessage.Clone();
  14882. break;
  14883. case FooOneofCase.FooGroup:
  14884. FooGroup = other.FooGroup.Clone();
  14885. break;
  14886. case FooOneofCase.FooLazyMessage:
  14887. FooLazyMessage = other.FooLazyMessage.Clone();
  14888. break;
  14889. }
  14890. switch (other.BarCase) {
  14891. case BarOneofCase.BarInt:
  14892. BarInt = other.BarInt;
  14893. break;
  14894. case BarOneofCase.BarString:
  14895. BarString = other.BarString;
  14896. break;
  14897. case BarOneofCase.BarCord:
  14898. BarCord = other.BarCord;
  14899. break;
  14900. case BarOneofCase.BarStringPiece:
  14901. BarStringPiece = other.BarStringPiece;
  14902. break;
  14903. case BarOneofCase.BarBytes:
  14904. BarBytes = other.BarBytes;
  14905. break;
  14906. case BarOneofCase.BarEnum:
  14907. BarEnum = other.BarEnum;
  14908. break;
  14909. }
  14910. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  14911. }
  14912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14913. public TestOneof2 Clone() {
  14914. return new TestOneof2(this);
  14915. }
  14916. /// <summary>Field number for the "foo_int" field.</summary>
  14917. public const int FooIntFieldNumber = 1;
  14918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14919. public int FooInt {
  14920. get { return HasFooInt ? (int) foo_ : 0; }
  14921. set {
  14922. foo_ = value;
  14923. fooCase_ = FooOneofCase.FooInt;
  14924. }
  14925. }
  14926. /// <summary>Gets whether the "foo_int" field is set</summary>
  14927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14928. public bool HasFooInt {
  14929. get { return fooCase_ == FooOneofCase.FooInt; }
  14930. }
  14931. /// <summary> Clears the value of the oneof if it's currently set to "foo_int" </summary>
  14932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14933. public void ClearFooInt() {
  14934. if (HasFooInt) {
  14935. ClearFoo();
  14936. }
  14937. }
  14938. /// <summary>Field number for the "foo_string" field.</summary>
  14939. public const int FooStringFieldNumber = 2;
  14940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14941. public string FooString {
  14942. get { return HasFooString ? (string) foo_ : ""; }
  14943. set {
  14944. foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  14945. fooCase_ = FooOneofCase.FooString;
  14946. }
  14947. }
  14948. /// <summary>Gets whether the "foo_string" field is set</summary>
  14949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14950. public bool HasFooString {
  14951. get { return fooCase_ == FooOneofCase.FooString; }
  14952. }
  14953. /// <summary> Clears the value of the oneof if it's currently set to "foo_string" </summary>
  14954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14955. public void ClearFooString() {
  14956. if (HasFooString) {
  14957. ClearFoo();
  14958. }
  14959. }
  14960. /// <summary>Field number for the "foo_cord" field.</summary>
  14961. public const int FooCordFieldNumber = 3;
  14962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14963. public string FooCord {
  14964. get { return HasFooCord ? (string) foo_ : ""; }
  14965. set {
  14966. foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  14967. fooCase_ = FooOneofCase.FooCord;
  14968. }
  14969. }
  14970. /// <summary>Gets whether the "foo_cord" field is set</summary>
  14971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14972. public bool HasFooCord {
  14973. get { return fooCase_ == FooOneofCase.FooCord; }
  14974. }
  14975. /// <summary> Clears the value of the oneof if it's currently set to "foo_cord" </summary>
  14976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14977. public void ClearFooCord() {
  14978. if (HasFooCord) {
  14979. ClearFoo();
  14980. }
  14981. }
  14982. /// <summary>Field number for the "foo_string_piece" field.</summary>
  14983. public const int FooStringPieceFieldNumber = 4;
  14984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14985. public string FooStringPiece {
  14986. get { return HasFooStringPiece ? (string) foo_ : ""; }
  14987. set {
  14988. foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  14989. fooCase_ = FooOneofCase.FooStringPiece;
  14990. }
  14991. }
  14992. /// <summary>Gets whether the "foo_string_piece" field is set</summary>
  14993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14994. public bool HasFooStringPiece {
  14995. get { return fooCase_ == FooOneofCase.FooStringPiece; }
  14996. }
  14997. /// <summary> Clears the value of the oneof if it's currently set to "foo_string_piece" </summary>
  14998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  14999. public void ClearFooStringPiece() {
  15000. if (HasFooStringPiece) {
  15001. ClearFoo();
  15002. }
  15003. }
  15004. /// <summary>Field number for the "foo_bytes" field.</summary>
  15005. public const int FooBytesFieldNumber = 5;
  15006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15007. public pb::ByteString FooBytes {
  15008. get { return HasFooBytes ? (pb::ByteString) foo_ : pb::ByteString.Empty; }
  15009. set {
  15010. foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  15011. fooCase_ = FooOneofCase.FooBytes;
  15012. }
  15013. }
  15014. /// <summary>Gets whether the "foo_bytes" field is set</summary>
  15015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15016. public bool HasFooBytes {
  15017. get { return fooCase_ == FooOneofCase.FooBytes; }
  15018. }
  15019. /// <summary> Clears the value of the oneof if it's currently set to "foo_bytes" </summary>
  15020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15021. public void ClearFooBytes() {
  15022. if (HasFooBytes) {
  15023. ClearFoo();
  15024. }
  15025. }
  15026. /// <summary>Field number for the "foo_enum" field.</summary>
  15027. public const int FooEnumFieldNumber = 6;
  15028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15029. public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum FooEnum {
  15030. get { return HasFooEnum ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum) foo_ : global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum.Foo; }
  15031. set {
  15032. foo_ = value;
  15033. fooCase_ = FooOneofCase.FooEnum;
  15034. }
  15035. }
  15036. /// <summary>Gets whether the "foo_enum" field is set</summary>
  15037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15038. public bool HasFooEnum {
  15039. get { return fooCase_ == FooOneofCase.FooEnum; }
  15040. }
  15041. /// <summary> Clears the value of the oneof if it's currently set to "foo_enum" </summary>
  15042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15043. public void ClearFooEnum() {
  15044. if (HasFooEnum) {
  15045. ClearFoo();
  15046. }
  15047. }
  15048. /// <summary>Field number for the "foo_message" field.</summary>
  15049. public const int FooMessageFieldNumber = 7;
  15050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15051. public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage FooMessage {
  15052. get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage) foo_ : null; }
  15053. set {
  15054. foo_ = value;
  15055. fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage;
  15056. }
  15057. }
  15058. /// <summary>Field number for the "foogroup" field.</summary>
  15059. public const int FooGroupFieldNumber = 8;
  15060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15061. public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup FooGroup {
  15062. get { return HasFooGroup ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup) foo_ : null; }
  15063. set {
  15064. foo_ = value;
  15065. fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooGroup;
  15066. }
  15067. }
  15068. /// <summary>Gets whether the "foogroup" field is set</summary>
  15069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15070. public bool HasFooGroup {
  15071. get { return fooCase_ == FooOneofCase.FooGroup; }
  15072. }
  15073. /// <summary> Clears the value of the oneof if it's currently set to "foogroup" </summary>
  15074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15075. public void ClearFooGroup() {
  15076. if (HasFooGroup) {
  15077. ClearFoo();
  15078. }
  15079. }
  15080. /// <summary>Field number for the "foo_lazy_message" field.</summary>
  15081. public const int FooLazyMessageFieldNumber = 11;
  15082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15083. public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage FooLazyMessage {
  15084. get { return fooCase_ == FooOneofCase.FooLazyMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage) foo_ : null; }
  15085. set {
  15086. foo_ = value;
  15087. fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooLazyMessage;
  15088. }
  15089. }
  15090. /// <summary>Field number for the "bar_int" field.</summary>
  15091. public const int BarIntFieldNumber = 12;
  15092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15093. public int BarInt {
  15094. get { return HasBarInt ? (int) bar_ : 5; }
  15095. set {
  15096. bar_ = value;
  15097. barCase_ = BarOneofCase.BarInt;
  15098. }
  15099. }
  15100. /// <summary>Gets whether the "bar_int" field is set</summary>
  15101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15102. public bool HasBarInt {
  15103. get { return barCase_ == BarOneofCase.BarInt; }
  15104. }
  15105. /// <summary> Clears the value of the oneof if it's currently set to "bar_int" </summary>
  15106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15107. public void ClearBarInt() {
  15108. if (HasBarInt) {
  15109. ClearBar();
  15110. }
  15111. }
  15112. /// <summary>Field number for the "bar_string" field.</summary>
  15113. public const int BarStringFieldNumber = 13;
  15114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15115. public string BarString {
  15116. get { return HasBarString ? (string) bar_ : global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("U1RSSU5H"), 0, 6); }
  15117. set {
  15118. bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  15119. barCase_ = BarOneofCase.BarString;
  15120. }
  15121. }
  15122. /// <summary>Gets whether the "bar_string" field is set</summary>
  15123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15124. public bool HasBarString {
  15125. get { return barCase_ == BarOneofCase.BarString; }
  15126. }
  15127. /// <summary> Clears the value of the oneof if it's currently set to "bar_string" </summary>
  15128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15129. public void ClearBarString() {
  15130. if (HasBarString) {
  15131. ClearBar();
  15132. }
  15133. }
  15134. /// <summary>Field number for the "bar_cord" field.</summary>
  15135. public const int BarCordFieldNumber = 14;
  15136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15137. public string BarCord {
  15138. get { return HasBarCord ? (string) bar_ : global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("Q09SRA=="), 0, 4); }
  15139. set {
  15140. bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  15141. barCase_ = BarOneofCase.BarCord;
  15142. }
  15143. }
  15144. /// <summary>Gets whether the "bar_cord" field is set</summary>
  15145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15146. public bool HasBarCord {
  15147. get { return barCase_ == BarOneofCase.BarCord; }
  15148. }
  15149. /// <summary> Clears the value of the oneof if it's currently set to "bar_cord" </summary>
  15150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15151. public void ClearBarCord() {
  15152. if (HasBarCord) {
  15153. ClearBar();
  15154. }
  15155. }
  15156. /// <summary>Field number for the "bar_string_piece" field.</summary>
  15157. public const int BarStringPieceFieldNumber = 15;
  15158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15159. public string BarStringPiece {
  15160. get { return HasBarStringPiece ? (string) bar_ : global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("U1BJRUNF"), 0, 6); }
  15161. set {
  15162. bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  15163. barCase_ = BarOneofCase.BarStringPiece;
  15164. }
  15165. }
  15166. /// <summary>Gets whether the "bar_string_piece" field is set</summary>
  15167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15168. public bool HasBarStringPiece {
  15169. get { return barCase_ == BarOneofCase.BarStringPiece; }
  15170. }
  15171. /// <summary> Clears the value of the oneof if it's currently set to "bar_string_piece" </summary>
  15172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15173. public void ClearBarStringPiece() {
  15174. if (HasBarStringPiece) {
  15175. ClearBar();
  15176. }
  15177. }
  15178. /// <summary>Field number for the "bar_bytes" field.</summary>
  15179. public const int BarBytesFieldNumber = 16;
  15180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15181. public pb::ByteString BarBytes {
  15182. get { return HasBarBytes ? (pb::ByteString) bar_ : pb::ByteString.FromBase64("QllURVM="); }
  15183. set {
  15184. bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  15185. barCase_ = BarOneofCase.BarBytes;
  15186. }
  15187. }
  15188. /// <summary>Gets whether the "bar_bytes" field is set</summary>
  15189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15190. public bool HasBarBytes {
  15191. get { return barCase_ == BarOneofCase.BarBytes; }
  15192. }
  15193. /// <summary> Clears the value of the oneof if it's currently set to "bar_bytes" </summary>
  15194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15195. public void ClearBarBytes() {
  15196. if (HasBarBytes) {
  15197. ClearBar();
  15198. }
  15199. }
  15200. /// <summary>Field number for the "bar_enum" field.</summary>
  15201. public const int BarEnumFieldNumber = 17;
  15202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15203. public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum BarEnum {
  15204. get { return HasBarEnum ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum) bar_ : global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum.Bar; }
  15205. set {
  15206. bar_ = value;
  15207. barCase_ = BarOneofCase.BarEnum;
  15208. }
  15209. }
  15210. /// <summary>Gets whether the "bar_enum" field is set</summary>
  15211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15212. public bool HasBarEnum {
  15213. get { return barCase_ == BarOneofCase.BarEnum; }
  15214. }
  15215. /// <summary> Clears the value of the oneof if it's currently set to "bar_enum" </summary>
  15216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15217. public void ClearBarEnum() {
  15218. if (HasBarEnum) {
  15219. ClearBar();
  15220. }
  15221. }
  15222. /// <summary>Field number for the "baz_int" field.</summary>
  15223. public const int BazIntFieldNumber = 18;
  15224. private readonly static int BazIntDefaultValue = 0;
  15225. private int bazInt_;
  15226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15227. public int BazInt {
  15228. get { if ((_hasBits0 & 1) != 0) { return bazInt_; } else { return BazIntDefaultValue; } }
  15229. set {
  15230. _hasBits0 |= 1;
  15231. bazInt_ = value;
  15232. }
  15233. }
  15234. /// <summary>Gets whether the "baz_int" field is set</summary>
  15235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15236. public bool HasBazInt {
  15237. get { return (_hasBits0 & 1) != 0; }
  15238. }
  15239. /// <summary>Clears the value of the "baz_int" field</summary>
  15240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15241. public void ClearBazInt() {
  15242. _hasBits0 &= ~1;
  15243. }
  15244. /// <summary>Field number for the "baz_string" field.</summary>
  15245. public const int BazStringFieldNumber = 19;
  15246. private readonly static string BazStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("QkFa"), 0, 3);
  15247. private string bazString_;
  15248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15249. public string BazString {
  15250. get { return bazString_ ?? BazStringDefaultValue; }
  15251. set {
  15252. bazString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  15253. }
  15254. }
  15255. /// <summary>Gets whether the "baz_string" field is set</summary>
  15256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15257. public bool HasBazString {
  15258. get { return bazString_ != null; }
  15259. }
  15260. /// <summary>Clears the value of the "baz_string" field</summary>
  15261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15262. public void ClearBazString() {
  15263. bazString_ = null;
  15264. }
  15265. private object foo_;
  15266. /// <summary>Enum of possible cases for the "foo" oneof.</summary>
  15267. public enum FooOneofCase {
  15268. None = 0,
  15269. FooInt = 1,
  15270. FooString = 2,
  15271. FooCord = 3,
  15272. FooStringPiece = 4,
  15273. FooBytes = 5,
  15274. FooEnum = 6,
  15275. FooMessage = 7,
  15276. FooGroup = 8,
  15277. FooLazyMessage = 11,
  15278. }
  15279. private FooOneofCase fooCase_ = FooOneofCase.None;
  15280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15281. public FooOneofCase FooCase {
  15282. get { return fooCase_; }
  15283. }
  15284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15285. public void ClearFoo() {
  15286. fooCase_ = FooOneofCase.None;
  15287. foo_ = null;
  15288. }
  15289. private object bar_;
  15290. /// <summary>Enum of possible cases for the "bar" oneof.</summary>
  15291. public enum BarOneofCase {
  15292. None = 0,
  15293. BarInt = 12,
  15294. BarString = 13,
  15295. BarCord = 14,
  15296. BarStringPiece = 15,
  15297. BarBytes = 16,
  15298. BarEnum = 17,
  15299. }
  15300. private BarOneofCase barCase_ = BarOneofCase.None;
  15301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15302. public BarOneofCase BarCase {
  15303. get { return barCase_; }
  15304. }
  15305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15306. public void ClearBar() {
  15307. barCase_ = BarOneofCase.None;
  15308. bar_ = null;
  15309. }
  15310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15311. public override bool Equals(object other) {
  15312. return Equals(other as TestOneof2);
  15313. }
  15314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15315. public bool Equals(TestOneof2 other) {
  15316. if (ReferenceEquals(other, null)) {
  15317. return false;
  15318. }
  15319. if (ReferenceEquals(other, this)) {
  15320. return true;
  15321. }
  15322. if (FooInt != other.FooInt) return false;
  15323. if (FooString != other.FooString) return false;
  15324. if (FooCord != other.FooCord) return false;
  15325. if (FooStringPiece != other.FooStringPiece) return false;
  15326. if (FooBytes != other.FooBytes) return false;
  15327. if (FooEnum != other.FooEnum) return false;
  15328. if (!object.Equals(FooMessage, other.FooMessage)) return false;
  15329. if (!object.Equals(FooGroup, other.FooGroup)) return false;
  15330. if (!object.Equals(FooLazyMessage, other.FooLazyMessage)) return false;
  15331. if (BarInt != other.BarInt) return false;
  15332. if (BarString != other.BarString) return false;
  15333. if (BarCord != other.BarCord) return false;
  15334. if (BarStringPiece != other.BarStringPiece) return false;
  15335. if (BarBytes != other.BarBytes) return false;
  15336. if (BarEnum != other.BarEnum) return false;
  15337. if (BazInt != other.BazInt) return false;
  15338. if (BazString != other.BazString) return false;
  15339. if (FooCase != other.FooCase) return false;
  15340. if (BarCase != other.BarCase) return false;
  15341. return Equals(_unknownFields, other._unknownFields);
  15342. }
  15343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15344. public override int GetHashCode() {
  15345. int hash = 1;
  15346. if (HasFooInt) hash ^= FooInt.GetHashCode();
  15347. if (HasFooString) hash ^= FooString.GetHashCode();
  15348. if (HasFooCord) hash ^= FooCord.GetHashCode();
  15349. if (HasFooStringPiece) hash ^= FooStringPiece.GetHashCode();
  15350. if (HasFooBytes) hash ^= FooBytes.GetHashCode();
  15351. if (HasFooEnum) hash ^= FooEnum.GetHashCode();
  15352. if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode();
  15353. if (HasFooGroup) hash ^= FooGroup.GetHashCode();
  15354. if (fooCase_ == FooOneofCase.FooLazyMessage) hash ^= FooLazyMessage.GetHashCode();
  15355. if (HasBarInt) hash ^= BarInt.GetHashCode();
  15356. if (HasBarString) hash ^= BarString.GetHashCode();
  15357. if (HasBarCord) hash ^= BarCord.GetHashCode();
  15358. if (HasBarStringPiece) hash ^= BarStringPiece.GetHashCode();
  15359. if (HasBarBytes) hash ^= BarBytes.GetHashCode();
  15360. if (HasBarEnum) hash ^= BarEnum.GetHashCode();
  15361. if (HasBazInt) hash ^= BazInt.GetHashCode();
  15362. if (HasBazString) hash ^= BazString.GetHashCode();
  15363. hash ^= (int) fooCase_;
  15364. hash ^= (int) barCase_;
  15365. if (_unknownFields != null) {
  15366. hash ^= _unknownFields.GetHashCode();
  15367. }
  15368. return hash;
  15369. }
  15370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15371. public override string ToString() {
  15372. return pb::JsonFormatter.ToDiagnosticString(this);
  15373. }
  15374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15375. public void WriteTo(pb::CodedOutputStream output) {
  15376. if (HasFooInt) {
  15377. output.WriteRawTag(8);
  15378. output.WriteInt32(FooInt);
  15379. }
  15380. if (HasFooString) {
  15381. output.WriteRawTag(18);
  15382. output.WriteString(FooString);
  15383. }
  15384. if (HasFooCord) {
  15385. output.WriteRawTag(26);
  15386. output.WriteString(FooCord);
  15387. }
  15388. if (HasFooStringPiece) {
  15389. output.WriteRawTag(34);
  15390. output.WriteString(FooStringPiece);
  15391. }
  15392. if (HasFooBytes) {
  15393. output.WriteRawTag(42);
  15394. output.WriteBytes(FooBytes);
  15395. }
  15396. if (HasFooEnum) {
  15397. output.WriteRawTag(48);
  15398. output.WriteEnum((int) FooEnum);
  15399. }
  15400. if (fooCase_ == FooOneofCase.FooMessage) {
  15401. output.WriteRawTag(58);
  15402. output.WriteMessage(FooMessage);
  15403. }
  15404. if (HasFooGroup) {
  15405. output.WriteRawTag(67);
  15406. output.WriteGroup(FooGroup);
  15407. output.WriteRawTag(68);
  15408. }
  15409. if (fooCase_ == FooOneofCase.FooLazyMessage) {
  15410. output.WriteRawTag(90);
  15411. output.WriteMessage(FooLazyMessage);
  15412. }
  15413. if (HasBarInt) {
  15414. output.WriteRawTag(96);
  15415. output.WriteInt32(BarInt);
  15416. }
  15417. if (HasBarString) {
  15418. output.WriteRawTag(106);
  15419. output.WriteString(BarString);
  15420. }
  15421. if (HasBarCord) {
  15422. output.WriteRawTag(114);
  15423. output.WriteString(BarCord);
  15424. }
  15425. if (HasBarStringPiece) {
  15426. output.WriteRawTag(122);
  15427. output.WriteString(BarStringPiece);
  15428. }
  15429. if (HasBarBytes) {
  15430. output.WriteRawTag(130, 1);
  15431. output.WriteBytes(BarBytes);
  15432. }
  15433. if (HasBarEnum) {
  15434. output.WriteRawTag(136, 1);
  15435. output.WriteEnum((int) BarEnum);
  15436. }
  15437. if (HasBazInt) {
  15438. output.WriteRawTag(144, 1);
  15439. output.WriteInt32(BazInt);
  15440. }
  15441. if (HasBazString) {
  15442. output.WriteRawTag(154, 1);
  15443. output.WriteString(BazString);
  15444. }
  15445. if (_unknownFields != null) {
  15446. _unknownFields.WriteTo(output);
  15447. }
  15448. }
  15449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15450. public int CalculateSize() {
  15451. int size = 0;
  15452. if (HasFooInt) {
  15453. size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
  15454. }
  15455. if (HasFooString) {
  15456. size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
  15457. }
  15458. if (HasFooCord) {
  15459. size += 1 + pb::CodedOutputStream.ComputeStringSize(FooCord);
  15460. }
  15461. if (HasFooStringPiece) {
  15462. size += 1 + pb::CodedOutputStream.ComputeStringSize(FooStringPiece);
  15463. }
  15464. if (HasFooBytes) {
  15465. size += 1 + pb::CodedOutputStream.ComputeBytesSize(FooBytes);
  15466. }
  15467. if (HasFooEnum) {
  15468. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FooEnum);
  15469. }
  15470. if (fooCase_ == FooOneofCase.FooMessage) {
  15471. size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
  15472. }
  15473. if (HasFooGroup) {
  15474. size += 2 + pb::CodedOutputStream.ComputeGroupSize(FooGroup);
  15475. }
  15476. if (fooCase_ == FooOneofCase.FooLazyMessage) {
  15477. size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooLazyMessage);
  15478. }
  15479. if (HasBarInt) {
  15480. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BarInt);
  15481. }
  15482. if (HasBarString) {
  15483. size += 1 + pb::CodedOutputStream.ComputeStringSize(BarString);
  15484. }
  15485. if (HasBarCord) {
  15486. size += 1 + pb::CodedOutputStream.ComputeStringSize(BarCord);
  15487. }
  15488. if (HasBarStringPiece) {
  15489. size += 1 + pb::CodedOutputStream.ComputeStringSize(BarStringPiece);
  15490. }
  15491. if (HasBarBytes) {
  15492. size += 2 + pb::CodedOutputStream.ComputeBytesSize(BarBytes);
  15493. }
  15494. if (HasBarEnum) {
  15495. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) BarEnum);
  15496. }
  15497. if (HasBazInt) {
  15498. size += 2 + pb::CodedOutputStream.ComputeInt32Size(BazInt);
  15499. }
  15500. if (HasBazString) {
  15501. size += 2 + pb::CodedOutputStream.ComputeStringSize(BazString);
  15502. }
  15503. if (_unknownFields != null) {
  15504. size += _unknownFields.CalculateSize();
  15505. }
  15506. return size;
  15507. }
  15508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15509. public void MergeFrom(TestOneof2 other) {
  15510. if (other == null) {
  15511. return;
  15512. }
  15513. if (other.HasBazInt) {
  15514. BazInt = other.BazInt;
  15515. }
  15516. if (other.HasBazString) {
  15517. BazString = other.BazString;
  15518. }
  15519. switch (other.FooCase) {
  15520. case FooOneofCase.FooInt:
  15521. FooInt = other.FooInt;
  15522. break;
  15523. case FooOneofCase.FooString:
  15524. FooString = other.FooString;
  15525. break;
  15526. case FooOneofCase.FooCord:
  15527. FooCord = other.FooCord;
  15528. break;
  15529. case FooOneofCase.FooStringPiece:
  15530. FooStringPiece = other.FooStringPiece;
  15531. break;
  15532. case FooOneofCase.FooBytes:
  15533. FooBytes = other.FooBytes;
  15534. break;
  15535. case FooOneofCase.FooEnum:
  15536. FooEnum = other.FooEnum;
  15537. break;
  15538. case FooOneofCase.FooMessage:
  15539. if (FooMessage == null) {
  15540. FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
  15541. }
  15542. FooMessage.MergeFrom(other.FooMessage);
  15543. break;
  15544. case FooOneofCase.FooGroup:
  15545. if (FooGroup == null) {
  15546. FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup();
  15547. }
  15548. FooGroup.MergeFrom(other.FooGroup);
  15549. break;
  15550. case FooOneofCase.FooLazyMessage:
  15551. if (FooLazyMessage == null) {
  15552. FooLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
  15553. }
  15554. FooLazyMessage.MergeFrom(other.FooLazyMessage);
  15555. break;
  15556. }
  15557. switch (other.BarCase) {
  15558. case BarOneofCase.BarInt:
  15559. BarInt = other.BarInt;
  15560. break;
  15561. case BarOneofCase.BarString:
  15562. BarString = other.BarString;
  15563. break;
  15564. case BarOneofCase.BarCord:
  15565. BarCord = other.BarCord;
  15566. break;
  15567. case BarOneofCase.BarStringPiece:
  15568. BarStringPiece = other.BarStringPiece;
  15569. break;
  15570. case BarOneofCase.BarBytes:
  15571. BarBytes = other.BarBytes;
  15572. break;
  15573. case BarOneofCase.BarEnum:
  15574. BarEnum = other.BarEnum;
  15575. break;
  15576. }
  15577. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  15578. }
  15579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15580. public void MergeFrom(pb::CodedInputStream input) {
  15581. uint tag;
  15582. while ((tag = input.ReadTag()) != 0) {
  15583. switch(tag) {
  15584. default:
  15585. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  15586. break;
  15587. case 8: {
  15588. FooInt = input.ReadInt32();
  15589. break;
  15590. }
  15591. case 18: {
  15592. FooString = input.ReadString();
  15593. break;
  15594. }
  15595. case 26: {
  15596. FooCord = input.ReadString();
  15597. break;
  15598. }
  15599. case 34: {
  15600. FooStringPiece = input.ReadString();
  15601. break;
  15602. }
  15603. case 42: {
  15604. FooBytes = input.ReadBytes();
  15605. break;
  15606. }
  15607. case 48: {
  15608. foo_ = input.ReadEnum();
  15609. fooCase_ = FooOneofCase.FooEnum;
  15610. break;
  15611. }
  15612. case 58: {
  15613. global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
  15614. if (fooCase_ == FooOneofCase.FooMessage) {
  15615. subBuilder.MergeFrom(FooMessage);
  15616. }
  15617. input.ReadMessage(subBuilder);
  15618. FooMessage = subBuilder;
  15619. break;
  15620. }
  15621. case 67: {
  15622. global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup();
  15623. if (HasFooGroup) {
  15624. subBuilder.MergeFrom(FooGroup);
  15625. }
  15626. input.ReadGroup(subBuilder);
  15627. FooGroup = subBuilder;
  15628. break;
  15629. }
  15630. case 90: {
  15631. global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
  15632. if (fooCase_ == FooOneofCase.FooLazyMessage) {
  15633. subBuilder.MergeFrom(FooLazyMessage);
  15634. }
  15635. input.ReadMessage(subBuilder);
  15636. FooLazyMessage = subBuilder;
  15637. break;
  15638. }
  15639. case 96: {
  15640. BarInt = input.ReadInt32();
  15641. break;
  15642. }
  15643. case 106: {
  15644. BarString = input.ReadString();
  15645. break;
  15646. }
  15647. case 114: {
  15648. BarCord = input.ReadString();
  15649. break;
  15650. }
  15651. case 122: {
  15652. BarStringPiece = input.ReadString();
  15653. break;
  15654. }
  15655. case 130: {
  15656. BarBytes = input.ReadBytes();
  15657. break;
  15658. }
  15659. case 136: {
  15660. bar_ = input.ReadEnum();
  15661. barCase_ = BarOneofCase.BarEnum;
  15662. break;
  15663. }
  15664. case 144: {
  15665. BazInt = input.ReadInt32();
  15666. break;
  15667. }
  15668. case 154: {
  15669. BazString = input.ReadString();
  15670. break;
  15671. }
  15672. }
  15673. }
  15674. }
  15675. #region Nested types
  15676. /// <summary>Container for nested types declared in the TestOneof2 message type.</summary>
  15677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15678. public static partial class Types {
  15679. public enum NestedEnum {
  15680. [pbr::OriginalName("FOO")] Foo = 1,
  15681. [pbr::OriginalName("BAR")] Bar = 2,
  15682. [pbr::OriginalName("BAZ")] Baz = 3,
  15683. }
  15684. public sealed partial class FooGroup : pb::IMessage<FooGroup> {
  15685. private static readonly pb::MessageParser<FooGroup> _parser = new pb::MessageParser<FooGroup>(() => new FooGroup());
  15686. private pb::UnknownFieldSet _unknownFields;
  15687. private int _hasBits0;
  15688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15689. public static pb::MessageParser<FooGroup> Parser { get { return _parser; } }
  15690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15691. public static pbr::MessageDescriptor Descriptor {
  15692. get { return global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Descriptor.NestedTypes[0]; }
  15693. }
  15694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15695. pbr::MessageDescriptor pb::IMessage.Descriptor {
  15696. get { return Descriptor; }
  15697. }
  15698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15699. public FooGroup() {
  15700. OnConstruction();
  15701. }
  15702. partial void OnConstruction();
  15703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15704. public FooGroup(FooGroup other) : this() {
  15705. _hasBits0 = other._hasBits0;
  15706. a_ = other.a_;
  15707. b_ = other.b_;
  15708. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  15709. }
  15710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15711. public FooGroup Clone() {
  15712. return new FooGroup(this);
  15713. }
  15714. /// <summary>Field number for the "a" field.</summary>
  15715. public const int AFieldNumber = 9;
  15716. private readonly static int ADefaultValue = 0;
  15717. private int a_;
  15718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15719. public int A {
  15720. get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
  15721. set {
  15722. _hasBits0 |= 1;
  15723. a_ = value;
  15724. }
  15725. }
  15726. /// <summary>Gets whether the "a" field is set</summary>
  15727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15728. public bool HasA {
  15729. get { return (_hasBits0 & 1) != 0; }
  15730. }
  15731. /// <summary>Clears the value of the "a" field</summary>
  15732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15733. public void ClearA() {
  15734. _hasBits0 &= ~1;
  15735. }
  15736. /// <summary>Field number for the "b" field.</summary>
  15737. public const int BFieldNumber = 10;
  15738. private readonly static string BDefaultValue = "";
  15739. private string b_;
  15740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15741. public string B {
  15742. get { return b_ ?? BDefaultValue; }
  15743. set {
  15744. b_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  15745. }
  15746. }
  15747. /// <summary>Gets whether the "b" field is set</summary>
  15748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15749. public bool HasB {
  15750. get { return b_ != null; }
  15751. }
  15752. /// <summary>Clears the value of the "b" field</summary>
  15753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15754. public void ClearB() {
  15755. b_ = null;
  15756. }
  15757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15758. public override bool Equals(object other) {
  15759. return Equals(other as FooGroup);
  15760. }
  15761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15762. public bool Equals(FooGroup other) {
  15763. if (ReferenceEquals(other, null)) {
  15764. return false;
  15765. }
  15766. if (ReferenceEquals(other, this)) {
  15767. return true;
  15768. }
  15769. if (A != other.A) return false;
  15770. if (B != other.B) return false;
  15771. return Equals(_unknownFields, other._unknownFields);
  15772. }
  15773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15774. public override int GetHashCode() {
  15775. int hash = 1;
  15776. if (HasA) hash ^= A.GetHashCode();
  15777. if (HasB) hash ^= B.GetHashCode();
  15778. if (_unknownFields != null) {
  15779. hash ^= _unknownFields.GetHashCode();
  15780. }
  15781. return hash;
  15782. }
  15783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15784. public override string ToString() {
  15785. return pb::JsonFormatter.ToDiagnosticString(this);
  15786. }
  15787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15788. public void WriteTo(pb::CodedOutputStream output) {
  15789. if (HasA) {
  15790. output.WriteRawTag(72);
  15791. output.WriteInt32(A);
  15792. }
  15793. if (HasB) {
  15794. output.WriteRawTag(82);
  15795. output.WriteString(B);
  15796. }
  15797. if (_unknownFields != null) {
  15798. _unknownFields.WriteTo(output);
  15799. }
  15800. }
  15801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15802. public int CalculateSize() {
  15803. int size = 0;
  15804. if (HasA) {
  15805. size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
  15806. }
  15807. if (HasB) {
  15808. size += 1 + pb::CodedOutputStream.ComputeStringSize(B);
  15809. }
  15810. if (_unknownFields != null) {
  15811. size += _unknownFields.CalculateSize();
  15812. }
  15813. return size;
  15814. }
  15815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15816. public void MergeFrom(FooGroup other) {
  15817. if (other == null) {
  15818. return;
  15819. }
  15820. if (other.HasA) {
  15821. A = other.A;
  15822. }
  15823. if (other.HasB) {
  15824. B = other.B;
  15825. }
  15826. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  15827. }
  15828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15829. public void MergeFrom(pb::CodedInputStream input) {
  15830. uint tag;
  15831. while ((tag = input.ReadTag()) != 0) {
  15832. switch(tag) {
  15833. case 68:
  15834. return;
  15835. default:
  15836. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  15837. break;
  15838. case 72: {
  15839. A = input.ReadInt32();
  15840. break;
  15841. }
  15842. case 82: {
  15843. B = input.ReadString();
  15844. break;
  15845. }
  15846. }
  15847. }
  15848. }
  15849. }
  15850. public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
  15851. private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
  15852. private pb::UnknownFieldSet _unknownFields;
  15853. private int _hasBits0;
  15854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15855. public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
  15856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15857. public static pbr::MessageDescriptor Descriptor {
  15858. get { return global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Descriptor.NestedTypes[1]; }
  15859. }
  15860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15861. pbr::MessageDescriptor pb::IMessage.Descriptor {
  15862. get { return Descriptor; }
  15863. }
  15864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15865. public NestedMessage() {
  15866. OnConstruction();
  15867. }
  15868. partial void OnConstruction();
  15869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15870. public NestedMessage(NestedMessage other) : this() {
  15871. _hasBits0 = other._hasBits0;
  15872. quxInt_ = other.quxInt_;
  15873. corgeInt_ = other.corgeInt_.Clone();
  15874. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  15875. }
  15876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15877. public NestedMessage Clone() {
  15878. return new NestedMessage(this);
  15879. }
  15880. /// <summary>Field number for the "qux_int" field.</summary>
  15881. public const int QuxIntFieldNumber = 1;
  15882. private readonly static long QuxIntDefaultValue = 0L;
  15883. private long quxInt_;
  15884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15885. public long QuxInt {
  15886. get { if ((_hasBits0 & 1) != 0) { return quxInt_; } else { return QuxIntDefaultValue; } }
  15887. set {
  15888. _hasBits0 |= 1;
  15889. quxInt_ = value;
  15890. }
  15891. }
  15892. /// <summary>Gets whether the "qux_int" field is set</summary>
  15893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15894. public bool HasQuxInt {
  15895. get { return (_hasBits0 & 1) != 0; }
  15896. }
  15897. /// <summary>Clears the value of the "qux_int" field</summary>
  15898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15899. public void ClearQuxInt() {
  15900. _hasBits0 &= ~1;
  15901. }
  15902. /// <summary>Field number for the "corge_int" field.</summary>
  15903. public const int CorgeIntFieldNumber = 2;
  15904. private static readonly pb::FieldCodec<int> _repeated_corgeInt_codec
  15905. = pb::FieldCodec.ForInt32(16);
  15906. private readonly pbc::RepeatedField<int> corgeInt_ = new pbc::RepeatedField<int>();
  15907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15908. public pbc::RepeatedField<int> CorgeInt {
  15909. get { return corgeInt_; }
  15910. }
  15911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15912. public override bool Equals(object other) {
  15913. return Equals(other as NestedMessage);
  15914. }
  15915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15916. public bool Equals(NestedMessage other) {
  15917. if (ReferenceEquals(other, null)) {
  15918. return false;
  15919. }
  15920. if (ReferenceEquals(other, this)) {
  15921. return true;
  15922. }
  15923. if (QuxInt != other.QuxInt) return false;
  15924. if(!corgeInt_.Equals(other.corgeInt_)) return false;
  15925. return Equals(_unknownFields, other._unknownFields);
  15926. }
  15927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15928. public override int GetHashCode() {
  15929. int hash = 1;
  15930. if (HasQuxInt) hash ^= QuxInt.GetHashCode();
  15931. hash ^= corgeInt_.GetHashCode();
  15932. if (_unknownFields != null) {
  15933. hash ^= _unknownFields.GetHashCode();
  15934. }
  15935. return hash;
  15936. }
  15937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15938. public override string ToString() {
  15939. return pb::JsonFormatter.ToDiagnosticString(this);
  15940. }
  15941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15942. public void WriteTo(pb::CodedOutputStream output) {
  15943. if (HasQuxInt) {
  15944. output.WriteRawTag(8);
  15945. output.WriteInt64(QuxInt);
  15946. }
  15947. corgeInt_.WriteTo(output, _repeated_corgeInt_codec);
  15948. if (_unknownFields != null) {
  15949. _unknownFields.WriteTo(output);
  15950. }
  15951. }
  15952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15953. public int CalculateSize() {
  15954. int size = 0;
  15955. if (HasQuxInt) {
  15956. size += 1 + pb::CodedOutputStream.ComputeInt64Size(QuxInt);
  15957. }
  15958. size += corgeInt_.CalculateSize(_repeated_corgeInt_codec);
  15959. if (_unknownFields != null) {
  15960. size += _unknownFields.CalculateSize();
  15961. }
  15962. return size;
  15963. }
  15964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15965. public void MergeFrom(NestedMessage other) {
  15966. if (other == null) {
  15967. return;
  15968. }
  15969. if (other.HasQuxInt) {
  15970. QuxInt = other.QuxInt;
  15971. }
  15972. corgeInt_.Add(other.corgeInt_);
  15973. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  15974. }
  15975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  15976. public void MergeFrom(pb::CodedInputStream input) {
  15977. uint tag;
  15978. while ((tag = input.ReadTag()) != 0) {
  15979. switch(tag) {
  15980. default:
  15981. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  15982. break;
  15983. case 8: {
  15984. QuxInt = input.ReadInt64();
  15985. break;
  15986. }
  15987. case 18:
  15988. case 16: {
  15989. corgeInt_.AddEntriesFrom(input, _repeated_corgeInt_codec);
  15990. break;
  15991. }
  15992. }
  15993. }
  15994. }
  15995. }
  15996. }
  15997. #endregion
  15998. }
  15999. public sealed partial class TestRequiredOneof : pb::IMessage<TestRequiredOneof> {
  16000. private static readonly pb::MessageParser<TestRequiredOneof> _parser = new pb::MessageParser<TestRequiredOneof>(() => new TestRequiredOneof());
  16001. private pb::UnknownFieldSet _unknownFields;
  16002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16003. public static pb::MessageParser<TestRequiredOneof> Parser { get { return _parser; } }
  16004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16005. public static pbr::MessageDescriptor Descriptor {
  16006. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[46]; }
  16007. }
  16008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16009. pbr::MessageDescriptor pb::IMessage.Descriptor {
  16010. get { return Descriptor; }
  16011. }
  16012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16013. public TestRequiredOneof() {
  16014. OnConstruction();
  16015. }
  16016. partial void OnConstruction();
  16017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16018. public TestRequiredOneof(TestRequiredOneof other) : this() {
  16019. switch (other.FooCase) {
  16020. case FooOneofCase.FooInt:
  16021. FooInt = other.FooInt;
  16022. break;
  16023. case FooOneofCase.FooString:
  16024. FooString = other.FooString;
  16025. break;
  16026. case FooOneofCase.FooMessage:
  16027. FooMessage = other.FooMessage.Clone();
  16028. break;
  16029. }
  16030. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  16031. }
  16032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16033. public TestRequiredOneof Clone() {
  16034. return new TestRequiredOneof(this);
  16035. }
  16036. /// <summary>Field number for the "foo_int" field.</summary>
  16037. public const int FooIntFieldNumber = 1;
  16038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16039. public int FooInt {
  16040. get { return HasFooInt ? (int) foo_ : 0; }
  16041. set {
  16042. foo_ = value;
  16043. fooCase_ = FooOneofCase.FooInt;
  16044. }
  16045. }
  16046. /// <summary>Gets whether the "foo_int" field is set</summary>
  16047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16048. public bool HasFooInt {
  16049. get { return fooCase_ == FooOneofCase.FooInt; }
  16050. }
  16051. /// <summary> Clears the value of the oneof if it's currently set to "foo_int" </summary>
  16052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16053. public void ClearFooInt() {
  16054. if (HasFooInt) {
  16055. ClearFoo();
  16056. }
  16057. }
  16058. /// <summary>Field number for the "foo_string" field.</summary>
  16059. public const int FooStringFieldNumber = 2;
  16060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16061. public string FooString {
  16062. get { return HasFooString ? (string) foo_ : ""; }
  16063. set {
  16064. foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  16065. fooCase_ = FooOneofCase.FooString;
  16066. }
  16067. }
  16068. /// <summary>Gets whether the "foo_string" field is set</summary>
  16069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16070. public bool HasFooString {
  16071. get { return fooCase_ == FooOneofCase.FooString; }
  16072. }
  16073. /// <summary> Clears the value of the oneof if it's currently set to "foo_string" </summary>
  16074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16075. public void ClearFooString() {
  16076. if (HasFooString) {
  16077. ClearFoo();
  16078. }
  16079. }
  16080. /// <summary>Field number for the "foo_message" field.</summary>
  16081. public const int FooMessageFieldNumber = 3;
  16082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16083. public global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage FooMessage {
  16084. get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage) foo_ : null; }
  16085. set {
  16086. foo_ = value;
  16087. fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage;
  16088. }
  16089. }
  16090. private object foo_;
  16091. /// <summary>Enum of possible cases for the "foo" oneof.</summary>
  16092. public enum FooOneofCase {
  16093. None = 0,
  16094. FooInt = 1,
  16095. FooString = 2,
  16096. FooMessage = 3,
  16097. }
  16098. private FooOneofCase fooCase_ = FooOneofCase.None;
  16099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16100. public FooOneofCase FooCase {
  16101. get { return fooCase_; }
  16102. }
  16103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16104. public void ClearFoo() {
  16105. fooCase_ = FooOneofCase.None;
  16106. foo_ = null;
  16107. }
  16108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16109. public override bool Equals(object other) {
  16110. return Equals(other as TestRequiredOneof);
  16111. }
  16112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16113. public bool Equals(TestRequiredOneof other) {
  16114. if (ReferenceEquals(other, null)) {
  16115. return false;
  16116. }
  16117. if (ReferenceEquals(other, this)) {
  16118. return true;
  16119. }
  16120. if (FooInt != other.FooInt) return false;
  16121. if (FooString != other.FooString) return false;
  16122. if (!object.Equals(FooMessage, other.FooMessage)) return false;
  16123. if (FooCase != other.FooCase) return false;
  16124. return Equals(_unknownFields, other._unknownFields);
  16125. }
  16126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16127. public override int GetHashCode() {
  16128. int hash = 1;
  16129. if (HasFooInt) hash ^= FooInt.GetHashCode();
  16130. if (HasFooString) hash ^= FooString.GetHashCode();
  16131. if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode();
  16132. hash ^= (int) fooCase_;
  16133. if (_unknownFields != null) {
  16134. hash ^= _unknownFields.GetHashCode();
  16135. }
  16136. return hash;
  16137. }
  16138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16139. public override string ToString() {
  16140. return pb::JsonFormatter.ToDiagnosticString(this);
  16141. }
  16142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16143. public void WriteTo(pb::CodedOutputStream output) {
  16144. if (HasFooInt) {
  16145. output.WriteRawTag(8);
  16146. output.WriteInt32(FooInt);
  16147. }
  16148. if (HasFooString) {
  16149. output.WriteRawTag(18);
  16150. output.WriteString(FooString);
  16151. }
  16152. if (fooCase_ == FooOneofCase.FooMessage) {
  16153. output.WriteRawTag(26);
  16154. output.WriteMessage(FooMessage);
  16155. }
  16156. if (_unknownFields != null) {
  16157. _unknownFields.WriteTo(output);
  16158. }
  16159. }
  16160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16161. public int CalculateSize() {
  16162. int size = 0;
  16163. if (HasFooInt) {
  16164. size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
  16165. }
  16166. if (HasFooString) {
  16167. size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
  16168. }
  16169. if (fooCase_ == FooOneofCase.FooMessage) {
  16170. size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
  16171. }
  16172. if (_unknownFields != null) {
  16173. size += _unknownFields.CalculateSize();
  16174. }
  16175. return size;
  16176. }
  16177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16178. public void MergeFrom(TestRequiredOneof other) {
  16179. if (other == null) {
  16180. return;
  16181. }
  16182. switch (other.FooCase) {
  16183. case FooOneofCase.FooInt:
  16184. FooInt = other.FooInt;
  16185. break;
  16186. case FooOneofCase.FooString:
  16187. FooString = other.FooString;
  16188. break;
  16189. case FooOneofCase.FooMessage:
  16190. if (FooMessage == null) {
  16191. FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage();
  16192. }
  16193. FooMessage.MergeFrom(other.FooMessage);
  16194. break;
  16195. }
  16196. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  16197. }
  16198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16199. public void MergeFrom(pb::CodedInputStream input) {
  16200. uint tag;
  16201. while ((tag = input.ReadTag()) != 0) {
  16202. switch(tag) {
  16203. default:
  16204. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  16205. break;
  16206. case 8: {
  16207. FooInt = input.ReadInt32();
  16208. break;
  16209. }
  16210. case 18: {
  16211. FooString = input.ReadString();
  16212. break;
  16213. }
  16214. case 26: {
  16215. global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage();
  16216. if (fooCase_ == FooOneofCase.FooMessage) {
  16217. subBuilder.MergeFrom(FooMessage);
  16218. }
  16219. input.ReadMessage(subBuilder);
  16220. FooMessage = subBuilder;
  16221. break;
  16222. }
  16223. }
  16224. }
  16225. }
  16226. #region Nested types
  16227. /// <summary>Container for nested types declared in the TestRequiredOneof message type.</summary>
  16228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16229. public static partial class Types {
  16230. public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
  16231. private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
  16232. private pb::UnknownFieldSet _unknownFields;
  16233. private int _hasBits0;
  16234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16235. public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
  16236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16237. public static pbr::MessageDescriptor Descriptor {
  16238. get { return global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Descriptor.NestedTypes[0]; }
  16239. }
  16240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16241. pbr::MessageDescriptor pb::IMessage.Descriptor {
  16242. get { return Descriptor; }
  16243. }
  16244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16245. public NestedMessage() {
  16246. OnConstruction();
  16247. }
  16248. partial void OnConstruction();
  16249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16250. public NestedMessage(NestedMessage other) : this() {
  16251. _hasBits0 = other._hasBits0;
  16252. requiredDouble_ = other.requiredDouble_;
  16253. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  16254. }
  16255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16256. public NestedMessage Clone() {
  16257. return new NestedMessage(this);
  16258. }
  16259. /// <summary>Field number for the "required_double" field.</summary>
  16260. public const int RequiredDoubleFieldNumber = 1;
  16261. private readonly static double RequiredDoubleDefaultValue = 0D;
  16262. private double requiredDouble_;
  16263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16264. public double RequiredDouble {
  16265. get { if ((_hasBits0 & 1) != 0) { return requiredDouble_; } else { return RequiredDoubleDefaultValue; } }
  16266. set {
  16267. _hasBits0 |= 1;
  16268. requiredDouble_ = value;
  16269. }
  16270. }
  16271. /// <summary>Gets whether the "required_double" field is set</summary>
  16272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16273. public bool HasRequiredDouble {
  16274. get { return (_hasBits0 & 1) != 0; }
  16275. }
  16276. /// <summary>Clears the value of the "required_double" field</summary>
  16277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16278. public void ClearRequiredDouble() {
  16279. _hasBits0 &= ~1;
  16280. }
  16281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16282. public override bool Equals(object other) {
  16283. return Equals(other as NestedMessage);
  16284. }
  16285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16286. public bool Equals(NestedMessage other) {
  16287. if (ReferenceEquals(other, null)) {
  16288. return false;
  16289. }
  16290. if (ReferenceEquals(other, this)) {
  16291. return true;
  16292. }
  16293. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RequiredDouble, other.RequiredDouble)) return false;
  16294. return Equals(_unknownFields, other._unknownFields);
  16295. }
  16296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16297. public override int GetHashCode() {
  16298. int hash = 1;
  16299. if (HasRequiredDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RequiredDouble);
  16300. if (_unknownFields != null) {
  16301. hash ^= _unknownFields.GetHashCode();
  16302. }
  16303. return hash;
  16304. }
  16305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16306. public override string ToString() {
  16307. return pb::JsonFormatter.ToDiagnosticString(this);
  16308. }
  16309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16310. public void WriteTo(pb::CodedOutputStream output) {
  16311. if (HasRequiredDouble) {
  16312. output.WriteRawTag(9);
  16313. output.WriteDouble(RequiredDouble);
  16314. }
  16315. if (_unknownFields != null) {
  16316. _unknownFields.WriteTo(output);
  16317. }
  16318. }
  16319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16320. public int CalculateSize() {
  16321. int size = 0;
  16322. if (HasRequiredDouble) {
  16323. size += 1 + 8;
  16324. }
  16325. if (_unknownFields != null) {
  16326. size += _unknownFields.CalculateSize();
  16327. }
  16328. return size;
  16329. }
  16330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16331. public void MergeFrom(NestedMessage other) {
  16332. if (other == null) {
  16333. return;
  16334. }
  16335. if (other.HasRequiredDouble) {
  16336. RequiredDouble = other.RequiredDouble;
  16337. }
  16338. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  16339. }
  16340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16341. public void MergeFrom(pb::CodedInputStream input) {
  16342. uint tag;
  16343. while ((tag = input.ReadTag()) != 0) {
  16344. switch(tag) {
  16345. default:
  16346. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  16347. break;
  16348. case 9: {
  16349. RequiredDouble = input.ReadDouble();
  16350. break;
  16351. }
  16352. }
  16353. }
  16354. }
  16355. }
  16356. }
  16357. #endregion
  16358. }
  16359. public sealed partial class TestRequiredMap : pb::IMessage<TestRequiredMap> {
  16360. private static readonly pb::MessageParser<TestRequiredMap> _parser = new pb::MessageParser<TestRequiredMap>(() => new TestRequiredMap());
  16361. private pb::UnknownFieldSet _unknownFields;
  16362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16363. public static pb::MessageParser<TestRequiredMap> Parser { get { return _parser; } }
  16364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16365. public static pbr::MessageDescriptor Descriptor {
  16366. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[47]; }
  16367. }
  16368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16369. pbr::MessageDescriptor pb::IMessage.Descriptor {
  16370. get { return Descriptor; }
  16371. }
  16372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16373. public TestRequiredMap() {
  16374. OnConstruction();
  16375. }
  16376. partial void OnConstruction();
  16377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16378. public TestRequiredMap(TestRequiredMap other) : this() {
  16379. foo_ = other.foo_.Clone();
  16380. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  16381. }
  16382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16383. public TestRequiredMap Clone() {
  16384. return new TestRequiredMap(this);
  16385. }
  16386. /// <summary>Field number for the "foo" field.</summary>
  16387. public const int FooFieldNumber = 1;
  16388. private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage>.Codec _map_foo_codec
  16389. = new pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage.Parser), 10);
  16390. private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage> foo_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage>();
  16391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16392. public pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage> Foo {
  16393. get { return foo_; }
  16394. }
  16395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16396. public override bool Equals(object other) {
  16397. return Equals(other as TestRequiredMap);
  16398. }
  16399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16400. public bool Equals(TestRequiredMap other) {
  16401. if (ReferenceEquals(other, null)) {
  16402. return false;
  16403. }
  16404. if (ReferenceEquals(other, this)) {
  16405. return true;
  16406. }
  16407. if (!Foo.Equals(other.Foo)) return false;
  16408. return Equals(_unknownFields, other._unknownFields);
  16409. }
  16410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16411. public override int GetHashCode() {
  16412. int hash = 1;
  16413. hash ^= Foo.GetHashCode();
  16414. if (_unknownFields != null) {
  16415. hash ^= _unknownFields.GetHashCode();
  16416. }
  16417. return hash;
  16418. }
  16419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16420. public override string ToString() {
  16421. return pb::JsonFormatter.ToDiagnosticString(this);
  16422. }
  16423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16424. public void WriteTo(pb::CodedOutputStream output) {
  16425. foo_.WriteTo(output, _map_foo_codec);
  16426. if (_unknownFields != null) {
  16427. _unknownFields.WriteTo(output);
  16428. }
  16429. }
  16430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16431. public int CalculateSize() {
  16432. int size = 0;
  16433. size += foo_.CalculateSize(_map_foo_codec);
  16434. if (_unknownFields != null) {
  16435. size += _unknownFields.CalculateSize();
  16436. }
  16437. return size;
  16438. }
  16439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16440. public void MergeFrom(TestRequiredMap other) {
  16441. if (other == null) {
  16442. return;
  16443. }
  16444. foo_.Add(other.foo_);
  16445. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  16446. }
  16447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16448. public void MergeFrom(pb::CodedInputStream input) {
  16449. uint tag;
  16450. while ((tag = input.ReadTag()) != 0) {
  16451. switch(tag) {
  16452. default:
  16453. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  16454. break;
  16455. case 10: {
  16456. foo_.AddEntriesFrom(input, _map_foo_codec);
  16457. break;
  16458. }
  16459. }
  16460. }
  16461. }
  16462. #region Nested types
  16463. /// <summary>Container for nested types declared in the TestRequiredMap message type.</summary>
  16464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16465. public static partial class Types {
  16466. public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
  16467. private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
  16468. private pb::UnknownFieldSet _unknownFields;
  16469. private int _hasBits0;
  16470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16471. public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
  16472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16473. public static pbr::MessageDescriptor Descriptor {
  16474. get { return global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Descriptor.NestedTypes[1]; }
  16475. }
  16476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16477. pbr::MessageDescriptor pb::IMessage.Descriptor {
  16478. get { return Descriptor; }
  16479. }
  16480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16481. public NestedMessage() {
  16482. OnConstruction();
  16483. }
  16484. partial void OnConstruction();
  16485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16486. public NestedMessage(NestedMessage other) : this() {
  16487. _hasBits0 = other._hasBits0;
  16488. requiredInt32_ = other.requiredInt32_;
  16489. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  16490. }
  16491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16492. public NestedMessage Clone() {
  16493. return new NestedMessage(this);
  16494. }
  16495. /// <summary>Field number for the "required_int32" field.</summary>
  16496. public const int RequiredInt32FieldNumber = 1;
  16497. private readonly static int RequiredInt32DefaultValue = 0;
  16498. private int requiredInt32_;
  16499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16500. public int RequiredInt32 {
  16501. get { if ((_hasBits0 & 1) != 0) { return requiredInt32_; } else { return RequiredInt32DefaultValue; } }
  16502. set {
  16503. _hasBits0 |= 1;
  16504. requiredInt32_ = value;
  16505. }
  16506. }
  16507. /// <summary>Gets whether the "required_int32" field is set</summary>
  16508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16509. public bool HasRequiredInt32 {
  16510. get { return (_hasBits0 & 1) != 0; }
  16511. }
  16512. /// <summary>Clears the value of the "required_int32" field</summary>
  16513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16514. public void ClearRequiredInt32() {
  16515. _hasBits0 &= ~1;
  16516. }
  16517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16518. public override bool Equals(object other) {
  16519. return Equals(other as NestedMessage);
  16520. }
  16521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16522. public bool Equals(NestedMessage other) {
  16523. if (ReferenceEquals(other, null)) {
  16524. return false;
  16525. }
  16526. if (ReferenceEquals(other, this)) {
  16527. return true;
  16528. }
  16529. if (RequiredInt32 != other.RequiredInt32) return false;
  16530. return Equals(_unknownFields, other._unknownFields);
  16531. }
  16532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16533. public override int GetHashCode() {
  16534. int hash = 1;
  16535. if (HasRequiredInt32) hash ^= RequiredInt32.GetHashCode();
  16536. if (_unknownFields != null) {
  16537. hash ^= _unknownFields.GetHashCode();
  16538. }
  16539. return hash;
  16540. }
  16541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16542. public override string ToString() {
  16543. return pb::JsonFormatter.ToDiagnosticString(this);
  16544. }
  16545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16546. public void WriteTo(pb::CodedOutputStream output) {
  16547. if (HasRequiredInt32) {
  16548. output.WriteRawTag(8);
  16549. output.WriteInt32(RequiredInt32);
  16550. }
  16551. if (_unknownFields != null) {
  16552. _unknownFields.WriteTo(output);
  16553. }
  16554. }
  16555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16556. public int CalculateSize() {
  16557. int size = 0;
  16558. if (HasRequiredInt32) {
  16559. size += 1 + pb::CodedOutputStream.ComputeInt32Size(RequiredInt32);
  16560. }
  16561. if (_unknownFields != null) {
  16562. size += _unknownFields.CalculateSize();
  16563. }
  16564. return size;
  16565. }
  16566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16567. public void MergeFrom(NestedMessage other) {
  16568. if (other == null) {
  16569. return;
  16570. }
  16571. if (other.HasRequiredInt32) {
  16572. RequiredInt32 = other.RequiredInt32;
  16573. }
  16574. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  16575. }
  16576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16577. public void MergeFrom(pb::CodedInputStream input) {
  16578. uint tag;
  16579. while ((tag = input.ReadTag()) != 0) {
  16580. switch(tag) {
  16581. default:
  16582. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  16583. break;
  16584. case 8: {
  16585. RequiredInt32 = input.ReadInt32();
  16586. break;
  16587. }
  16588. }
  16589. }
  16590. }
  16591. }
  16592. }
  16593. #endregion
  16594. }
  16595. public sealed partial class TestPackedTypes : pb::IMessage<TestPackedTypes> {
  16596. private static readonly pb::MessageParser<TestPackedTypes> _parser = new pb::MessageParser<TestPackedTypes>(() => new TestPackedTypes());
  16597. private pb::UnknownFieldSet _unknownFields;
  16598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16599. public static pb::MessageParser<TestPackedTypes> Parser { get { return _parser; } }
  16600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16601. public static pbr::MessageDescriptor Descriptor {
  16602. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[48]; }
  16603. }
  16604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16605. pbr::MessageDescriptor pb::IMessage.Descriptor {
  16606. get { return Descriptor; }
  16607. }
  16608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16609. public TestPackedTypes() {
  16610. OnConstruction();
  16611. }
  16612. partial void OnConstruction();
  16613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16614. public TestPackedTypes(TestPackedTypes other) : this() {
  16615. packedInt32_ = other.packedInt32_.Clone();
  16616. packedInt64_ = other.packedInt64_.Clone();
  16617. packedUint32_ = other.packedUint32_.Clone();
  16618. packedUint64_ = other.packedUint64_.Clone();
  16619. packedSint32_ = other.packedSint32_.Clone();
  16620. packedSint64_ = other.packedSint64_.Clone();
  16621. packedFixed32_ = other.packedFixed32_.Clone();
  16622. packedFixed64_ = other.packedFixed64_.Clone();
  16623. packedSfixed32_ = other.packedSfixed32_.Clone();
  16624. packedSfixed64_ = other.packedSfixed64_.Clone();
  16625. packedFloat_ = other.packedFloat_.Clone();
  16626. packedDouble_ = other.packedDouble_.Clone();
  16627. packedBool_ = other.packedBool_.Clone();
  16628. packedEnum_ = other.packedEnum_.Clone();
  16629. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  16630. }
  16631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16632. public TestPackedTypes Clone() {
  16633. return new TestPackedTypes(this);
  16634. }
  16635. /// <summary>Field number for the "packed_int32" field.</summary>
  16636. public const int PackedInt32FieldNumber = 90;
  16637. private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec
  16638. = pb::FieldCodec.ForInt32(722);
  16639. private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>();
  16640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16641. public pbc::RepeatedField<int> PackedInt32 {
  16642. get { return packedInt32_; }
  16643. }
  16644. /// <summary>Field number for the "packed_int64" field.</summary>
  16645. public const int PackedInt64FieldNumber = 91;
  16646. private static readonly pb::FieldCodec<long> _repeated_packedInt64_codec
  16647. = pb::FieldCodec.ForInt64(730);
  16648. private readonly pbc::RepeatedField<long> packedInt64_ = new pbc::RepeatedField<long>();
  16649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16650. public pbc::RepeatedField<long> PackedInt64 {
  16651. get { return packedInt64_; }
  16652. }
  16653. /// <summary>Field number for the "packed_uint32" field.</summary>
  16654. public const int PackedUint32FieldNumber = 92;
  16655. private static readonly pb::FieldCodec<uint> _repeated_packedUint32_codec
  16656. = pb::FieldCodec.ForUInt32(738);
  16657. private readonly pbc::RepeatedField<uint> packedUint32_ = new pbc::RepeatedField<uint>();
  16658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16659. public pbc::RepeatedField<uint> PackedUint32 {
  16660. get { return packedUint32_; }
  16661. }
  16662. /// <summary>Field number for the "packed_uint64" field.</summary>
  16663. public const int PackedUint64FieldNumber = 93;
  16664. private static readonly pb::FieldCodec<ulong> _repeated_packedUint64_codec
  16665. = pb::FieldCodec.ForUInt64(746);
  16666. private readonly pbc::RepeatedField<ulong> packedUint64_ = new pbc::RepeatedField<ulong>();
  16667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16668. public pbc::RepeatedField<ulong> PackedUint64 {
  16669. get { return packedUint64_; }
  16670. }
  16671. /// <summary>Field number for the "packed_sint32" field.</summary>
  16672. public const int PackedSint32FieldNumber = 94;
  16673. private static readonly pb::FieldCodec<int> _repeated_packedSint32_codec
  16674. = pb::FieldCodec.ForSInt32(754);
  16675. private readonly pbc::RepeatedField<int> packedSint32_ = new pbc::RepeatedField<int>();
  16676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16677. public pbc::RepeatedField<int> PackedSint32 {
  16678. get { return packedSint32_; }
  16679. }
  16680. /// <summary>Field number for the "packed_sint64" field.</summary>
  16681. public const int PackedSint64FieldNumber = 95;
  16682. private static readonly pb::FieldCodec<long> _repeated_packedSint64_codec
  16683. = pb::FieldCodec.ForSInt64(762);
  16684. private readonly pbc::RepeatedField<long> packedSint64_ = new pbc::RepeatedField<long>();
  16685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16686. public pbc::RepeatedField<long> PackedSint64 {
  16687. get { return packedSint64_; }
  16688. }
  16689. /// <summary>Field number for the "packed_fixed32" field.</summary>
  16690. public const int PackedFixed32FieldNumber = 96;
  16691. private static readonly pb::FieldCodec<uint> _repeated_packedFixed32_codec
  16692. = pb::FieldCodec.ForFixed32(770);
  16693. private readonly pbc::RepeatedField<uint> packedFixed32_ = new pbc::RepeatedField<uint>();
  16694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16695. public pbc::RepeatedField<uint> PackedFixed32 {
  16696. get { return packedFixed32_; }
  16697. }
  16698. /// <summary>Field number for the "packed_fixed64" field.</summary>
  16699. public const int PackedFixed64FieldNumber = 97;
  16700. private static readonly pb::FieldCodec<ulong> _repeated_packedFixed64_codec
  16701. = pb::FieldCodec.ForFixed64(778);
  16702. private readonly pbc::RepeatedField<ulong> packedFixed64_ = new pbc::RepeatedField<ulong>();
  16703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16704. public pbc::RepeatedField<ulong> PackedFixed64 {
  16705. get { return packedFixed64_; }
  16706. }
  16707. /// <summary>Field number for the "packed_sfixed32" field.</summary>
  16708. public const int PackedSfixed32FieldNumber = 98;
  16709. private static readonly pb::FieldCodec<int> _repeated_packedSfixed32_codec
  16710. = pb::FieldCodec.ForSFixed32(786);
  16711. private readonly pbc::RepeatedField<int> packedSfixed32_ = new pbc::RepeatedField<int>();
  16712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16713. public pbc::RepeatedField<int> PackedSfixed32 {
  16714. get { return packedSfixed32_; }
  16715. }
  16716. /// <summary>Field number for the "packed_sfixed64" field.</summary>
  16717. public const int PackedSfixed64FieldNumber = 99;
  16718. private static readonly pb::FieldCodec<long> _repeated_packedSfixed64_codec
  16719. = pb::FieldCodec.ForSFixed64(794);
  16720. private readonly pbc::RepeatedField<long> packedSfixed64_ = new pbc::RepeatedField<long>();
  16721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16722. public pbc::RepeatedField<long> PackedSfixed64 {
  16723. get { return packedSfixed64_; }
  16724. }
  16725. /// <summary>Field number for the "packed_float" field.</summary>
  16726. public const int PackedFloatFieldNumber = 100;
  16727. private static readonly pb::FieldCodec<float> _repeated_packedFloat_codec
  16728. = pb::FieldCodec.ForFloat(802);
  16729. private readonly pbc::RepeatedField<float> packedFloat_ = new pbc::RepeatedField<float>();
  16730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16731. public pbc::RepeatedField<float> PackedFloat {
  16732. get { return packedFloat_; }
  16733. }
  16734. /// <summary>Field number for the "packed_double" field.</summary>
  16735. public const int PackedDoubleFieldNumber = 101;
  16736. private static readonly pb::FieldCodec<double> _repeated_packedDouble_codec
  16737. = pb::FieldCodec.ForDouble(810);
  16738. private readonly pbc::RepeatedField<double> packedDouble_ = new pbc::RepeatedField<double>();
  16739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16740. public pbc::RepeatedField<double> PackedDouble {
  16741. get { return packedDouble_; }
  16742. }
  16743. /// <summary>Field number for the "packed_bool" field.</summary>
  16744. public const int PackedBoolFieldNumber = 102;
  16745. private static readonly pb::FieldCodec<bool> _repeated_packedBool_codec
  16746. = pb::FieldCodec.ForBool(818);
  16747. private readonly pbc::RepeatedField<bool> packedBool_ = new pbc::RepeatedField<bool>();
  16748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16749. public pbc::RepeatedField<bool> PackedBool {
  16750. get { return packedBool_; }
  16751. }
  16752. /// <summary>Field number for the "packed_enum" field.</summary>
  16753. public const int PackedEnumFieldNumber = 103;
  16754. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_packedEnum_codec
  16755. = pb::FieldCodec.ForEnum(826, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x);
  16756. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> packedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>();
  16757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16758. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> PackedEnum {
  16759. get { return packedEnum_; }
  16760. }
  16761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16762. public override bool Equals(object other) {
  16763. return Equals(other as TestPackedTypes);
  16764. }
  16765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16766. public bool Equals(TestPackedTypes other) {
  16767. if (ReferenceEquals(other, null)) {
  16768. return false;
  16769. }
  16770. if (ReferenceEquals(other, this)) {
  16771. return true;
  16772. }
  16773. if(!packedInt32_.Equals(other.packedInt32_)) return false;
  16774. if(!packedInt64_.Equals(other.packedInt64_)) return false;
  16775. if(!packedUint32_.Equals(other.packedUint32_)) return false;
  16776. if(!packedUint64_.Equals(other.packedUint64_)) return false;
  16777. if(!packedSint32_.Equals(other.packedSint32_)) return false;
  16778. if(!packedSint64_.Equals(other.packedSint64_)) return false;
  16779. if(!packedFixed32_.Equals(other.packedFixed32_)) return false;
  16780. if(!packedFixed64_.Equals(other.packedFixed64_)) return false;
  16781. if(!packedSfixed32_.Equals(other.packedSfixed32_)) return false;
  16782. if(!packedSfixed64_.Equals(other.packedSfixed64_)) return false;
  16783. if(!packedFloat_.Equals(other.packedFloat_)) return false;
  16784. if(!packedDouble_.Equals(other.packedDouble_)) return false;
  16785. if(!packedBool_.Equals(other.packedBool_)) return false;
  16786. if(!packedEnum_.Equals(other.packedEnum_)) return false;
  16787. return Equals(_unknownFields, other._unknownFields);
  16788. }
  16789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16790. public override int GetHashCode() {
  16791. int hash = 1;
  16792. hash ^= packedInt32_.GetHashCode();
  16793. hash ^= packedInt64_.GetHashCode();
  16794. hash ^= packedUint32_.GetHashCode();
  16795. hash ^= packedUint64_.GetHashCode();
  16796. hash ^= packedSint32_.GetHashCode();
  16797. hash ^= packedSint64_.GetHashCode();
  16798. hash ^= packedFixed32_.GetHashCode();
  16799. hash ^= packedFixed64_.GetHashCode();
  16800. hash ^= packedSfixed32_.GetHashCode();
  16801. hash ^= packedSfixed64_.GetHashCode();
  16802. hash ^= packedFloat_.GetHashCode();
  16803. hash ^= packedDouble_.GetHashCode();
  16804. hash ^= packedBool_.GetHashCode();
  16805. hash ^= packedEnum_.GetHashCode();
  16806. if (_unknownFields != null) {
  16807. hash ^= _unknownFields.GetHashCode();
  16808. }
  16809. return hash;
  16810. }
  16811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16812. public override string ToString() {
  16813. return pb::JsonFormatter.ToDiagnosticString(this);
  16814. }
  16815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16816. public void WriteTo(pb::CodedOutputStream output) {
  16817. packedInt32_.WriteTo(output, _repeated_packedInt32_codec);
  16818. packedInt64_.WriteTo(output, _repeated_packedInt64_codec);
  16819. packedUint32_.WriteTo(output, _repeated_packedUint32_codec);
  16820. packedUint64_.WriteTo(output, _repeated_packedUint64_codec);
  16821. packedSint32_.WriteTo(output, _repeated_packedSint32_codec);
  16822. packedSint64_.WriteTo(output, _repeated_packedSint64_codec);
  16823. packedFixed32_.WriteTo(output, _repeated_packedFixed32_codec);
  16824. packedFixed64_.WriteTo(output, _repeated_packedFixed64_codec);
  16825. packedSfixed32_.WriteTo(output, _repeated_packedSfixed32_codec);
  16826. packedSfixed64_.WriteTo(output, _repeated_packedSfixed64_codec);
  16827. packedFloat_.WriteTo(output, _repeated_packedFloat_codec);
  16828. packedDouble_.WriteTo(output, _repeated_packedDouble_codec);
  16829. packedBool_.WriteTo(output, _repeated_packedBool_codec);
  16830. packedEnum_.WriteTo(output, _repeated_packedEnum_codec);
  16831. if (_unknownFields != null) {
  16832. _unknownFields.WriteTo(output);
  16833. }
  16834. }
  16835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16836. public int CalculateSize() {
  16837. int size = 0;
  16838. size += packedInt32_.CalculateSize(_repeated_packedInt32_codec);
  16839. size += packedInt64_.CalculateSize(_repeated_packedInt64_codec);
  16840. size += packedUint32_.CalculateSize(_repeated_packedUint32_codec);
  16841. size += packedUint64_.CalculateSize(_repeated_packedUint64_codec);
  16842. size += packedSint32_.CalculateSize(_repeated_packedSint32_codec);
  16843. size += packedSint64_.CalculateSize(_repeated_packedSint64_codec);
  16844. size += packedFixed32_.CalculateSize(_repeated_packedFixed32_codec);
  16845. size += packedFixed64_.CalculateSize(_repeated_packedFixed64_codec);
  16846. size += packedSfixed32_.CalculateSize(_repeated_packedSfixed32_codec);
  16847. size += packedSfixed64_.CalculateSize(_repeated_packedSfixed64_codec);
  16848. size += packedFloat_.CalculateSize(_repeated_packedFloat_codec);
  16849. size += packedDouble_.CalculateSize(_repeated_packedDouble_codec);
  16850. size += packedBool_.CalculateSize(_repeated_packedBool_codec);
  16851. size += packedEnum_.CalculateSize(_repeated_packedEnum_codec);
  16852. if (_unknownFields != null) {
  16853. size += _unknownFields.CalculateSize();
  16854. }
  16855. return size;
  16856. }
  16857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16858. public void MergeFrom(TestPackedTypes other) {
  16859. if (other == null) {
  16860. return;
  16861. }
  16862. packedInt32_.Add(other.packedInt32_);
  16863. packedInt64_.Add(other.packedInt64_);
  16864. packedUint32_.Add(other.packedUint32_);
  16865. packedUint64_.Add(other.packedUint64_);
  16866. packedSint32_.Add(other.packedSint32_);
  16867. packedSint64_.Add(other.packedSint64_);
  16868. packedFixed32_.Add(other.packedFixed32_);
  16869. packedFixed64_.Add(other.packedFixed64_);
  16870. packedSfixed32_.Add(other.packedSfixed32_);
  16871. packedSfixed64_.Add(other.packedSfixed64_);
  16872. packedFloat_.Add(other.packedFloat_);
  16873. packedDouble_.Add(other.packedDouble_);
  16874. packedBool_.Add(other.packedBool_);
  16875. packedEnum_.Add(other.packedEnum_);
  16876. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  16877. }
  16878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16879. public void MergeFrom(pb::CodedInputStream input) {
  16880. uint tag;
  16881. while ((tag = input.ReadTag()) != 0) {
  16882. switch(tag) {
  16883. default:
  16884. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  16885. break;
  16886. case 722:
  16887. case 720: {
  16888. packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec);
  16889. break;
  16890. }
  16891. case 730:
  16892. case 728: {
  16893. packedInt64_.AddEntriesFrom(input, _repeated_packedInt64_codec);
  16894. break;
  16895. }
  16896. case 738:
  16897. case 736: {
  16898. packedUint32_.AddEntriesFrom(input, _repeated_packedUint32_codec);
  16899. break;
  16900. }
  16901. case 746:
  16902. case 744: {
  16903. packedUint64_.AddEntriesFrom(input, _repeated_packedUint64_codec);
  16904. break;
  16905. }
  16906. case 754:
  16907. case 752: {
  16908. packedSint32_.AddEntriesFrom(input, _repeated_packedSint32_codec);
  16909. break;
  16910. }
  16911. case 762:
  16912. case 760: {
  16913. packedSint64_.AddEntriesFrom(input, _repeated_packedSint64_codec);
  16914. break;
  16915. }
  16916. case 770:
  16917. case 773: {
  16918. packedFixed32_.AddEntriesFrom(input, _repeated_packedFixed32_codec);
  16919. break;
  16920. }
  16921. case 778:
  16922. case 777: {
  16923. packedFixed64_.AddEntriesFrom(input, _repeated_packedFixed64_codec);
  16924. break;
  16925. }
  16926. case 786:
  16927. case 789: {
  16928. packedSfixed32_.AddEntriesFrom(input, _repeated_packedSfixed32_codec);
  16929. break;
  16930. }
  16931. case 794:
  16932. case 793: {
  16933. packedSfixed64_.AddEntriesFrom(input, _repeated_packedSfixed64_codec);
  16934. break;
  16935. }
  16936. case 802:
  16937. case 805: {
  16938. packedFloat_.AddEntriesFrom(input, _repeated_packedFloat_codec);
  16939. break;
  16940. }
  16941. case 810:
  16942. case 809: {
  16943. packedDouble_.AddEntriesFrom(input, _repeated_packedDouble_codec);
  16944. break;
  16945. }
  16946. case 818:
  16947. case 816: {
  16948. packedBool_.AddEntriesFrom(input, _repeated_packedBool_codec);
  16949. break;
  16950. }
  16951. case 826:
  16952. case 824: {
  16953. packedEnum_.AddEntriesFrom(input, _repeated_packedEnum_codec);
  16954. break;
  16955. }
  16956. }
  16957. }
  16958. }
  16959. }
  16960. /// <summary>
  16961. /// A message with the same fields as TestPackedTypes, but without packing. Used
  16962. /// to test packed &lt;-> unpacked wire compatibility.
  16963. /// </summary>
  16964. public sealed partial class TestUnpackedTypes : pb::IMessage<TestUnpackedTypes> {
  16965. private static readonly pb::MessageParser<TestUnpackedTypes> _parser = new pb::MessageParser<TestUnpackedTypes>(() => new TestUnpackedTypes());
  16966. private pb::UnknownFieldSet _unknownFields;
  16967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16968. public static pb::MessageParser<TestUnpackedTypes> Parser { get { return _parser; } }
  16969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16970. public static pbr::MessageDescriptor Descriptor {
  16971. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[49]; }
  16972. }
  16973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16974. pbr::MessageDescriptor pb::IMessage.Descriptor {
  16975. get { return Descriptor; }
  16976. }
  16977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16978. public TestUnpackedTypes() {
  16979. OnConstruction();
  16980. }
  16981. partial void OnConstruction();
  16982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  16983. public TestUnpackedTypes(TestUnpackedTypes other) : this() {
  16984. unpackedInt32_ = other.unpackedInt32_.Clone();
  16985. unpackedInt64_ = other.unpackedInt64_.Clone();
  16986. unpackedUint32_ = other.unpackedUint32_.Clone();
  16987. unpackedUint64_ = other.unpackedUint64_.Clone();
  16988. unpackedSint32_ = other.unpackedSint32_.Clone();
  16989. unpackedSint64_ = other.unpackedSint64_.Clone();
  16990. unpackedFixed32_ = other.unpackedFixed32_.Clone();
  16991. unpackedFixed64_ = other.unpackedFixed64_.Clone();
  16992. unpackedSfixed32_ = other.unpackedSfixed32_.Clone();
  16993. unpackedSfixed64_ = other.unpackedSfixed64_.Clone();
  16994. unpackedFloat_ = other.unpackedFloat_.Clone();
  16995. unpackedDouble_ = other.unpackedDouble_.Clone();
  16996. unpackedBool_ = other.unpackedBool_.Clone();
  16997. unpackedEnum_ = other.unpackedEnum_.Clone();
  16998. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  16999. }
  17000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17001. public TestUnpackedTypes Clone() {
  17002. return new TestUnpackedTypes(this);
  17003. }
  17004. /// <summary>Field number for the "unpacked_int32" field.</summary>
  17005. public const int UnpackedInt32FieldNumber = 90;
  17006. private static readonly pb::FieldCodec<int> _repeated_unpackedInt32_codec
  17007. = pb::FieldCodec.ForInt32(720);
  17008. private readonly pbc::RepeatedField<int> unpackedInt32_ = new pbc::RepeatedField<int>();
  17009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17010. public pbc::RepeatedField<int> UnpackedInt32 {
  17011. get { return unpackedInt32_; }
  17012. }
  17013. /// <summary>Field number for the "unpacked_int64" field.</summary>
  17014. public const int UnpackedInt64FieldNumber = 91;
  17015. private static readonly pb::FieldCodec<long> _repeated_unpackedInt64_codec
  17016. = pb::FieldCodec.ForInt64(728);
  17017. private readonly pbc::RepeatedField<long> unpackedInt64_ = new pbc::RepeatedField<long>();
  17018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17019. public pbc::RepeatedField<long> UnpackedInt64 {
  17020. get { return unpackedInt64_; }
  17021. }
  17022. /// <summary>Field number for the "unpacked_uint32" field.</summary>
  17023. public const int UnpackedUint32FieldNumber = 92;
  17024. private static readonly pb::FieldCodec<uint> _repeated_unpackedUint32_codec
  17025. = pb::FieldCodec.ForUInt32(736);
  17026. private readonly pbc::RepeatedField<uint> unpackedUint32_ = new pbc::RepeatedField<uint>();
  17027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17028. public pbc::RepeatedField<uint> UnpackedUint32 {
  17029. get { return unpackedUint32_; }
  17030. }
  17031. /// <summary>Field number for the "unpacked_uint64" field.</summary>
  17032. public const int UnpackedUint64FieldNumber = 93;
  17033. private static readonly pb::FieldCodec<ulong> _repeated_unpackedUint64_codec
  17034. = pb::FieldCodec.ForUInt64(744);
  17035. private readonly pbc::RepeatedField<ulong> unpackedUint64_ = new pbc::RepeatedField<ulong>();
  17036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17037. public pbc::RepeatedField<ulong> UnpackedUint64 {
  17038. get { return unpackedUint64_; }
  17039. }
  17040. /// <summary>Field number for the "unpacked_sint32" field.</summary>
  17041. public const int UnpackedSint32FieldNumber = 94;
  17042. private static readonly pb::FieldCodec<int> _repeated_unpackedSint32_codec
  17043. = pb::FieldCodec.ForSInt32(752);
  17044. private readonly pbc::RepeatedField<int> unpackedSint32_ = new pbc::RepeatedField<int>();
  17045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17046. public pbc::RepeatedField<int> UnpackedSint32 {
  17047. get { return unpackedSint32_; }
  17048. }
  17049. /// <summary>Field number for the "unpacked_sint64" field.</summary>
  17050. public const int UnpackedSint64FieldNumber = 95;
  17051. private static readonly pb::FieldCodec<long> _repeated_unpackedSint64_codec
  17052. = pb::FieldCodec.ForSInt64(760);
  17053. private readonly pbc::RepeatedField<long> unpackedSint64_ = new pbc::RepeatedField<long>();
  17054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17055. public pbc::RepeatedField<long> UnpackedSint64 {
  17056. get { return unpackedSint64_; }
  17057. }
  17058. /// <summary>Field number for the "unpacked_fixed32" field.</summary>
  17059. public const int UnpackedFixed32FieldNumber = 96;
  17060. private static readonly pb::FieldCodec<uint> _repeated_unpackedFixed32_codec
  17061. = pb::FieldCodec.ForFixed32(773);
  17062. private readonly pbc::RepeatedField<uint> unpackedFixed32_ = new pbc::RepeatedField<uint>();
  17063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17064. public pbc::RepeatedField<uint> UnpackedFixed32 {
  17065. get { return unpackedFixed32_; }
  17066. }
  17067. /// <summary>Field number for the "unpacked_fixed64" field.</summary>
  17068. public const int UnpackedFixed64FieldNumber = 97;
  17069. private static readonly pb::FieldCodec<ulong> _repeated_unpackedFixed64_codec
  17070. = pb::FieldCodec.ForFixed64(777);
  17071. private readonly pbc::RepeatedField<ulong> unpackedFixed64_ = new pbc::RepeatedField<ulong>();
  17072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17073. public pbc::RepeatedField<ulong> UnpackedFixed64 {
  17074. get { return unpackedFixed64_; }
  17075. }
  17076. /// <summary>Field number for the "unpacked_sfixed32" field.</summary>
  17077. public const int UnpackedSfixed32FieldNumber = 98;
  17078. private static readonly pb::FieldCodec<int> _repeated_unpackedSfixed32_codec
  17079. = pb::FieldCodec.ForSFixed32(789);
  17080. private readonly pbc::RepeatedField<int> unpackedSfixed32_ = new pbc::RepeatedField<int>();
  17081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17082. public pbc::RepeatedField<int> UnpackedSfixed32 {
  17083. get { return unpackedSfixed32_; }
  17084. }
  17085. /// <summary>Field number for the "unpacked_sfixed64" field.</summary>
  17086. public const int UnpackedSfixed64FieldNumber = 99;
  17087. private static readonly pb::FieldCodec<long> _repeated_unpackedSfixed64_codec
  17088. = pb::FieldCodec.ForSFixed64(793);
  17089. private readonly pbc::RepeatedField<long> unpackedSfixed64_ = new pbc::RepeatedField<long>();
  17090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17091. public pbc::RepeatedField<long> UnpackedSfixed64 {
  17092. get { return unpackedSfixed64_; }
  17093. }
  17094. /// <summary>Field number for the "unpacked_float" field.</summary>
  17095. public const int UnpackedFloatFieldNumber = 100;
  17096. private static readonly pb::FieldCodec<float> _repeated_unpackedFloat_codec
  17097. = pb::FieldCodec.ForFloat(805);
  17098. private readonly pbc::RepeatedField<float> unpackedFloat_ = new pbc::RepeatedField<float>();
  17099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17100. public pbc::RepeatedField<float> UnpackedFloat {
  17101. get { return unpackedFloat_; }
  17102. }
  17103. /// <summary>Field number for the "unpacked_double" field.</summary>
  17104. public const int UnpackedDoubleFieldNumber = 101;
  17105. private static readonly pb::FieldCodec<double> _repeated_unpackedDouble_codec
  17106. = pb::FieldCodec.ForDouble(809);
  17107. private readonly pbc::RepeatedField<double> unpackedDouble_ = new pbc::RepeatedField<double>();
  17108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17109. public pbc::RepeatedField<double> UnpackedDouble {
  17110. get { return unpackedDouble_; }
  17111. }
  17112. /// <summary>Field number for the "unpacked_bool" field.</summary>
  17113. public const int UnpackedBoolFieldNumber = 102;
  17114. private static readonly pb::FieldCodec<bool> _repeated_unpackedBool_codec
  17115. = pb::FieldCodec.ForBool(816);
  17116. private readonly pbc::RepeatedField<bool> unpackedBool_ = new pbc::RepeatedField<bool>();
  17117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17118. public pbc::RepeatedField<bool> UnpackedBool {
  17119. get { return unpackedBool_; }
  17120. }
  17121. /// <summary>Field number for the "unpacked_enum" field.</summary>
  17122. public const int UnpackedEnumFieldNumber = 103;
  17123. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_unpackedEnum_codec
  17124. = pb::FieldCodec.ForEnum(824, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x);
  17125. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> unpackedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>();
  17126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17127. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> UnpackedEnum {
  17128. get { return unpackedEnum_; }
  17129. }
  17130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17131. public override bool Equals(object other) {
  17132. return Equals(other as TestUnpackedTypes);
  17133. }
  17134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17135. public bool Equals(TestUnpackedTypes other) {
  17136. if (ReferenceEquals(other, null)) {
  17137. return false;
  17138. }
  17139. if (ReferenceEquals(other, this)) {
  17140. return true;
  17141. }
  17142. if(!unpackedInt32_.Equals(other.unpackedInt32_)) return false;
  17143. if(!unpackedInt64_.Equals(other.unpackedInt64_)) return false;
  17144. if(!unpackedUint32_.Equals(other.unpackedUint32_)) return false;
  17145. if(!unpackedUint64_.Equals(other.unpackedUint64_)) return false;
  17146. if(!unpackedSint32_.Equals(other.unpackedSint32_)) return false;
  17147. if(!unpackedSint64_.Equals(other.unpackedSint64_)) return false;
  17148. if(!unpackedFixed32_.Equals(other.unpackedFixed32_)) return false;
  17149. if(!unpackedFixed64_.Equals(other.unpackedFixed64_)) return false;
  17150. if(!unpackedSfixed32_.Equals(other.unpackedSfixed32_)) return false;
  17151. if(!unpackedSfixed64_.Equals(other.unpackedSfixed64_)) return false;
  17152. if(!unpackedFloat_.Equals(other.unpackedFloat_)) return false;
  17153. if(!unpackedDouble_.Equals(other.unpackedDouble_)) return false;
  17154. if(!unpackedBool_.Equals(other.unpackedBool_)) return false;
  17155. if(!unpackedEnum_.Equals(other.unpackedEnum_)) return false;
  17156. return Equals(_unknownFields, other._unknownFields);
  17157. }
  17158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17159. public override int GetHashCode() {
  17160. int hash = 1;
  17161. hash ^= unpackedInt32_.GetHashCode();
  17162. hash ^= unpackedInt64_.GetHashCode();
  17163. hash ^= unpackedUint32_.GetHashCode();
  17164. hash ^= unpackedUint64_.GetHashCode();
  17165. hash ^= unpackedSint32_.GetHashCode();
  17166. hash ^= unpackedSint64_.GetHashCode();
  17167. hash ^= unpackedFixed32_.GetHashCode();
  17168. hash ^= unpackedFixed64_.GetHashCode();
  17169. hash ^= unpackedSfixed32_.GetHashCode();
  17170. hash ^= unpackedSfixed64_.GetHashCode();
  17171. hash ^= unpackedFloat_.GetHashCode();
  17172. hash ^= unpackedDouble_.GetHashCode();
  17173. hash ^= unpackedBool_.GetHashCode();
  17174. hash ^= unpackedEnum_.GetHashCode();
  17175. if (_unknownFields != null) {
  17176. hash ^= _unknownFields.GetHashCode();
  17177. }
  17178. return hash;
  17179. }
  17180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17181. public override string ToString() {
  17182. return pb::JsonFormatter.ToDiagnosticString(this);
  17183. }
  17184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17185. public void WriteTo(pb::CodedOutputStream output) {
  17186. unpackedInt32_.WriteTo(output, _repeated_unpackedInt32_codec);
  17187. unpackedInt64_.WriteTo(output, _repeated_unpackedInt64_codec);
  17188. unpackedUint32_.WriteTo(output, _repeated_unpackedUint32_codec);
  17189. unpackedUint64_.WriteTo(output, _repeated_unpackedUint64_codec);
  17190. unpackedSint32_.WriteTo(output, _repeated_unpackedSint32_codec);
  17191. unpackedSint64_.WriteTo(output, _repeated_unpackedSint64_codec);
  17192. unpackedFixed32_.WriteTo(output, _repeated_unpackedFixed32_codec);
  17193. unpackedFixed64_.WriteTo(output, _repeated_unpackedFixed64_codec);
  17194. unpackedSfixed32_.WriteTo(output, _repeated_unpackedSfixed32_codec);
  17195. unpackedSfixed64_.WriteTo(output, _repeated_unpackedSfixed64_codec);
  17196. unpackedFloat_.WriteTo(output, _repeated_unpackedFloat_codec);
  17197. unpackedDouble_.WriteTo(output, _repeated_unpackedDouble_codec);
  17198. unpackedBool_.WriteTo(output, _repeated_unpackedBool_codec);
  17199. unpackedEnum_.WriteTo(output, _repeated_unpackedEnum_codec);
  17200. if (_unknownFields != null) {
  17201. _unknownFields.WriteTo(output);
  17202. }
  17203. }
  17204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17205. public int CalculateSize() {
  17206. int size = 0;
  17207. size += unpackedInt32_.CalculateSize(_repeated_unpackedInt32_codec);
  17208. size += unpackedInt64_.CalculateSize(_repeated_unpackedInt64_codec);
  17209. size += unpackedUint32_.CalculateSize(_repeated_unpackedUint32_codec);
  17210. size += unpackedUint64_.CalculateSize(_repeated_unpackedUint64_codec);
  17211. size += unpackedSint32_.CalculateSize(_repeated_unpackedSint32_codec);
  17212. size += unpackedSint64_.CalculateSize(_repeated_unpackedSint64_codec);
  17213. size += unpackedFixed32_.CalculateSize(_repeated_unpackedFixed32_codec);
  17214. size += unpackedFixed64_.CalculateSize(_repeated_unpackedFixed64_codec);
  17215. size += unpackedSfixed32_.CalculateSize(_repeated_unpackedSfixed32_codec);
  17216. size += unpackedSfixed64_.CalculateSize(_repeated_unpackedSfixed64_codec);
  17217. size += unpackedFloat_.CalculateSize(_repeated_unpackedFloat_codec);
  17218. size += unpackedDouble_.CalculateSize(_repeated_unpackedDouble_codec);
  17219. size += unpackedBool_.CalculateSize(_repeated_unpackedBool_codec);
  17220. size += unpackedEnum_.CalculateSize(_repeated_unpackedEnum_codec);
  17221. if (_unknownFields != null) {
  17222. size += _unknownFields.CalculateSize();
  17223. }
  17224. return size;
  17225. }
  17226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17227. public void MergeFrom(TestUnpackedTypes other) {
  17228. if (other == null) {
  17229. return;
  17230. }
  17231. unpackedInt32_.Add(other.unpackedInt32_);
  17232. unpackedInt64_.Add(other.unpackedInt64_);
  17233. unpackedUint32_.Add(other.unpackedUint32_);
  17234. unpackedUint64_.Add(other.unpackedUint64_);
  17235. unpackedSint32_.Add(other.unpackedSint32_);
  17236. unpackedSint64_.Add(other.unpackedSint64_);
  17237. unpackedFixed32_.Add(other.unpackedFixed32_);
  17238. unpackedFixed64_.Add(other.unpackedFixed64_);
  17239. unpackedSfixed32_.Add(other.unpackedSfixed32_);
  17240. unpackedSfixed64_.Add(other.unpackedSfixed64_);
  17241. unpackedFloat_.Add(other.unpackedFloat_);
  17242. unpackedDouble_.Add(other.unpackedDouble_);
  17243. unpackedBool_.Add(other.unpackedBool_);
  17244. unpackedEnum_.Add(other.unpackedEnum_);
  17245. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  17246. }
  17247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17248. public void MergeFrom(pb::CodedInputStream input) {
  17249. uint tag;
  17250. while ((tag = input.ReadTag()) != 0) {
  17251. switch(tag) {
  17252. default:
  17253. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  17254. break;
  17255. case 722:
  17256. case 720: {
  17257. unpackedInt32_.AddEntriesFrom(input, _repeated_unpackedInt32_codec);
  17258. break;
  17259. }
  17260. case 730:
  17261. case 728: {
  17262. unpackedInt64_.AddEntriesFrom(input, _repeated_unpackedInt64_codec);
  17263. break;
  17264. }
  17265. case 738:
  17266. case 736: {
  17267. unpackedUint32_.AddEntriesFrom(input, _repeated_unpackedUint32_codec);
  17268. break;
  17269. }
  17270. case 746:
  17271. case 744: {
  17272. unpackedUint64_.AddEntriesFrom(input, _repeated_unpackedUint64_codec);
  17273. break;
  17274. }
  17275. case 754:
  17276. case 752: {
  17277. unpackedSint32_.AddEntriesFrom(input, _repeated_unpackedSint32_codec);
  17278. break;
  17279. }
  17280. case 762:
  17281. case 760: {
  17282. unpackedSint64_.AddEntriesFrom(input, _repeated_unpackedSint64_codec);
  17283. break;
  17284. }
  17285. case 770:
  17286. case 773: {
  17287. unpackedFixed32_.AddEntriesFrom(input, _repeated_unpackedFixed32_codec);
  17288. break;
  17289. }
  17290. case 778:
  17291. case 777: {
  17292. unpackedFixed64_.AddEntriesFrom(input, _repeated_unpackedFixed64_codec);
  17293. break;
  17294. }
  17295. case 786:
  17296. case 789: {
  17297. unpackedSfixed32_.AddEntriesFrom(input, _repeated_unpackedSfixed32_codec);
  17298. break;
  17299. }
  17300. case 794:
  17301. case 793: {
  17302. unpackedSfixed64_.AddEntriesFrom(input, _repeated_unpackedSfixed64_codec);
  17303. break;
  17304. }
  17305. case 802:
  17306. case 805: {
  17307. unpackedFloat_.AddEntriesFrom(input, _repeated_unpackedFloat_codec);
  17308. break;
  17309. }
  17310. case 810:
  17311. case 809: {
  17312. unpackedDouble_.AddEntriesFrom(input, _repeated_unpackedDouble_codec);
  17313. break;
  17314. }
  17315. case 818:
  17316. case 816: {
  17317. unpackedBool_.AddEntriesFrom(input, _repeated_unpackedBool_codec);
  17318. break;
  17319. }
  17320. case 826:
  17321. case 824: {
  17322. unpackedEnum_.AddEntriesFrom(input, _repeated_unpackedEnum_codec);
  17323. break;
  17324. }
  17325. }
  17326. }
  17327. }
  17328. }
  17329. public sealed partial class TestPackedExtensions : pb::IExtendableMessage<TestPackedExtensions> {
  17330. private static readonly pb::MessageParser<TestPackedExtensions> _parser = new pb::MessageParser<TestPackedExtensions>(() => new TestPackedExtensions());
  17331. private pb::UnknownFieldSet _unknownFields;
  17332. private pb::ExtensionSet<TestPackedExtensions> _extensions;
  17333. private pb::ExtensionSet<TestPackedExtensions> _Extensions { get { return _extensions; } }
  17334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17335. public static pb::MessageParser<TestPackedExtensions> Parser { get { return _parser; } }
  17336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17337. public static pbr::MessageDescriptor Descriptor {
  17338. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[50]; }
  17339. }
  17340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17341. pbr::MessageDescriptor pb::IMessage.Descriptor {
  17342. get { return Descriptor; }
  17343. }
  17344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17345. public TestPackedExtensions() {
  17346. OnConstruction();
  17347. }
  17348. partial void OnConstruction();
  17349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17350. public TestPackedExtensions(TestPackedExtensions other) : this() {
  17351. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  17352. _extensions = pb::ExtensionSet.Clone(other._extensions);
  17353. }
  17354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17355. public TestPackedExtensions Clone() {
  17356. return new TestPackedExtensions(this);
  17357. }
  17358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17359. public override bool Equals(object other) {
  17360. return Equals(other as TestPackedExtensions);
  17361. }
  17362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17363. public bool Equals(TestPackedExtensions other) {
  17364. if (ReferenceEquals(other, null)) {
  17365. return false;
  17366. }
  17367. if (ReferenceEquals(other, this)) {
  17368. return true;
  17369. }
  17370. if (!Equals(_extensions, other._extensions)) {
  17371. return false;
  17372. }
  17373. return Equals(_unknownFields, other._unknownFields);
  17374. }
  17375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17376. public override int GetHashCode() {
  17377. int hash = 1;
  17378. if (_extensions != null) {
  17379. hash ^= _extensions.GetHashCode();
  17380. }
  17381. if (_unknownFields != null) {
  17382. hash ^= _unknownFields.GetHashCode();
  17383. }
  17384. return hash;
  17385. }
  17386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17387. public override string ToString() {
  17388. return pb::JsonFormatter.ToDiagnosticString(this);
  17389. }
  17390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17391. public void WriteTo(pb::CodedOutputStream output) {
  17392. if (_extensions != null) {
  17393. _extensions.WriteTo(output);
  17394. }
  17395. if (_unknownFields != null) {
  17396. _unknownFields.WriteTo(output);
  17397. }
  17398. }
  17399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17400. public int CalculateSize() {
  17401. int size = 0;
  17402. if (_extensions != null) {
  17403. size += _extensions.CalculateSize();
  17404. }
  17405. if (_unknownFields != null) {
  17406. size += _unknownFields.CalculateSize();
  17407. }
  17408. return size;
  17409. }
  17410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17411. public void MergeFrom(TestPackedExtensions other) {
  17412. if (other == null) {
  17413. return;
  17414. }
  17415. pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
  17416. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  17417. }
  17418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17419. public void MergeFrom(pb::CodedInputStream input) {
  17420. uint tag;
  17421. while ((tag = input.ReadTag()) != 0) {
  17422. switch(tag) {
  17423. default:
  17424. if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
  17425. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  17426. }
  17427. break;
  17428. }
  17429. }
  17430. }
  17431. public TValue GetExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension) {
  17432. return pb::ExtensionSet.Get(ref _extensions, extension);
  17433. }
  17434. public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestPackedExtensions, TValue> extension) {
  17435. return pb::ExtensionSet.Get(ref _extensions, extension);
  17436. }
  17437. public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestPackedExtensions, TValue> extension) {
  17438. return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
  17439. }
  17440. public void SetExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension, TValue value) {
  17441. pb::ExtensionSet.Set(ref _extensions, extension, value);
  17442. }
  17443. public bool HasExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension) {
  17444. return pb::ExtensionSet.Has(ref _extensions, extension);
  17445. }
  17446. public void ClearExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension) {
  17447. pb::ExtensionSet.Clear(ref _extensions, extension);
  17448. }
  17449. public void ClearExtension<TValue>(pb::RepeatedExtension<TestPackedExtensions, TValue> extension) {
  17450. pb::ExtensionSet.Clear(ref _extensions, extension);
  17451. }
  17452. }
  17453. public sealed partial class TestUnpackedExtensions : pb::IExtendableMessage<TestUnpackedExtensions> {
  17454. private static readonly pb::MessageParser<TestUnpackedExtensions> _parser = new pb::MessageParser<TestUnpackedExtensions>(() => new TestUnpackedExtensions());
  17455. private pb::UnknownFieldSet _unknownFields;
  17456. private pb::ExtensionSet<TestUnpackedExtensions> _extensions;
  17457. private pb::ExtensionSet<TestUnpackedExtensions> _Extensions { get { return _extensions; } }
  17458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17459. public static pb::MessageParser<TestUnpackedExtensions> Parser { get { return _parser; } }
  17460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17461. public static pbr::MessageDescriptor Descriptor {
  17462. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[51]; }
  17463. }
  17464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17465. pbr::MessageDescriptor pb::IMessage.Descriptor {
  17466. get { return Descriptor; }
  17467. }
  17468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17469. public TestUnpackedExtensions() {
  17470. OnConstruction();
  17471. }
  17472. partial void OnConstruction();
  17473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17474. public TestUnpackedExtensions(TestUnpackedExtensions other) : this() {
  17475. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  17476. _extensions = pb::ExtensionSet.Clone(other._extensions);
  17477. }
  17478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17479. public TestUnpackedExtensions Clone() {
  17480. return new TestUnpackedExtensions(this);
  17481. }
  17482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17483. public override bool Equals(object other) {
  17484. return Equals(other as TestUnpackedExtensions);
  17485. }
  17486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17487. public bool Equals(TestUnpackedExtensions other) {
  17488. if (ReferenceEquals(other, null)) {
  17489. return false;
  17490. }
  17491. if (ReferenceEquals(other, this)) {
  17492. return true;
  17493. }
  17494. if (!Equals(_extensions, other._extensions)) {
  17495. return false;
  17496. }
  17497. return Equals(_unknownFields, other._unknownFields);
  17498. }
  17499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17500. public override int GetHashCode() {
  17501. int hash = 1;
  17502. if (_extensions != null) {
  17503. hash ^= _extensions.GetHashCode();
  17504. }
  17505. if (_unknownFields != null) {
  17506. hash ^= _unknownFields.GetHashCode();
  17507. }
  17508. return hash;
  17509. }
  17510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17511. public override string ToString() {
  17512. return pb::JsonFormatter.ToDiagnosticString(this);
  17513. }
  17514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17515. public void WriteTo(pb::CodedOutputStream output) {
  17516. if (_extensions != null) {
  17517. _extensions.WriteTo(output);
  17518. }
  17519. if (_unknownFields != null) {
  17520. _unknownFields.WriteTo(output);
  17521. }
  17522. }
  17523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17524. public int CalculateSize() {
  17525. int size = 0;
  17526. if (_extensions != null) {
  17527. size += _extensions.CalculateSize();
  17528. }
  17529. if (_unknownFields != null) {
  17530. size += _unknownFields.CalculateSize();
  17531. }
  17532. return size;
  17533. }
  17534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17535. public void MergeFrom(TestUnpackedExtensions other) {
  17536. if (other == null) {
  17537. return;
  17538. }
  17539. pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
  17540. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  17541. }
  17542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17543. public void MergeFrom(pb::CodedInputStream input) {
  17544. uint tag;
  17545. while ((tag = input.ReadTag()) != 0) {
  17546. switch(tag) {
  17547. default:
  17548. if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
  17549. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  17550. }
  17551. break;
  17552. }
  17553. }
  17554. }
  17555. public TValue GetExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension) {
  17556. return pb::ExtensionSet.Get(ref _extensions, extension);
  17557. }
  17558. public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension) {
  17559. return pb::ExtensionSet.Get(ref _extensions, extension);
  17560. }
  17561. public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension) {
  17562. return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
  17563. }
  17564. public void SetExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension, TValue value) {
  17565. pb::ExtensionSet.Set(ref _extensions, extension, value);
  17566. }
  17567. public bool HasExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension) {
  17568. return pb::ExtensionSet.Has(ref _extensions, extension);
  17569. }
  17570. public void ClearExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension) {
  17571. pb::ExtensionSet.Clear(ref _extensions, extension);
  17572. }
  17573. public void ClearExtension<TValue>(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension) {
  17574. pb::ExtensionSet.Clear(ref _extensions, extension);
  17575. }
  17576. }
  17577. /// <summary>
  17578. /// Used by ExtensionSetTest/DynamicExtensions. The test actually builds
  17579. /// a set of extensions to TestAllExtensions dynamically, based on the fields
  17580. /// of this message type.
  17581. /// </summary>
  17582. public sealed partial class TestDynamicExtensions : pb::IMessage<TestDynamicExtensions> {
  17583. private static readonly pb::MessageParser<TestDynamicExtensions> _parser = new pb::MessageParser<TestDynamicExtensions>(() => new TestDynamicExtensions());
  17584. private pb::UnknownFieldSet _unknownFields;
  17585. private int _hasBits0;
  17586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17587. public static pb::MessageParser<TestDynamicExtensions> Parser { get { return _parser; } }
  17588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17589. public static pbr::MessageDescriptor Descriptor {
  17590. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[52]; }
  17591. }
  17592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17593. pbr::MessageDescriptor pb::IMessage.Descriptor {
  17594. get { return Descriptor; }
  17595. }
  17596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17597. public TestDynamicExtensions() {
  17598. OnConstruction();
  17599. }
  17600. partial void OnConstruction();
  17601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17602. public TestDynamicExtensions(TestDynamicExtensions other) : this() {
  17603. _hasBits0 = other._hasBits0;
  17604. scalarExtension_ = other.scalarExtension_;
  17605. enumExtension_ = other.enumExtension_;
  17606. dynamicEnumExtension_ = other.dynamicEnumExtension_;
  17607. messageExtension_ = other.messageExtension_ != null ? other.messageExtension_.Clone() : null;
  17608. dynamicMessageExtension_ = other.dynamicMessageExtension_ != null ? other.dynamicMessageExtension_.Clone() : null;
  17609. repeatedExtension_ = other.repeatedExtension_.Clone();
  17610. packedExtension_ = other.packedExtension_.Clone();
  17611. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  17612. }
  17613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17614. public TestDynamicExtensions Clone() {
  17615. return new TestDynamicExtensions(this);
  17616. }
  17617. /// <summary>Field number for the "scalar_extension" field.</summary>
  17618. public const int ScalarExtensionFieldNumber = 2000;
  17619. private readonly static uint ScalarExtensionDefaultValue = 0;
  17620. private uint scalarExtension_;
  17621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17622. public uint ScalarExtension {
  17623. get { if ((_hasBits0 & 1) != 0) { return scalarExtension_; } else { return ScalarExtensionDefaultValue; } }
  17624. set {
  17625. _hasBits0 |= 1;
  17626. scalarExtension_ = value;
  17627. }
  17628. }
  17629. /// <summary>Gets whether the "scalar_extension" field is set</summary>
  17630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17631. public bool HasScalarExtension {
  17632. get { return (_hasBits0 & 1) != 0; }
  17633. }
  17634. /// <summary>Clears the value of the "scalar_extension" field</summary>
  17635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17636. public void ClearScalarExtension() {
  17637. _hasBits0 &= ~1;
  17638. }
  17639. /// <summary>Field number for the "enum_extension" field.</summary>
  17640. public const int EnumExtensionFieldNumber = 2001;
  17641. private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumExtensionDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
  17642. private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum enumExtension_;
  17643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17644. public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumExtension {
  17645. get { if ((_hasBits0 & 2) != 0) { return enumExtension_; } else { return EnumExtensionDefaultValue; } }
  17646. set {
  17647. _hasBits0 |= 2;
  17648. enumExtension_ = value;
  17649. }
  17650. }
  17651. /// <summary>Gets whether the "enum_extension" field is set</summary>
  17652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17653. public bool HasEnumExtension {
  17654. get { return (_hasBits0 & 2) != 0; }
  17655. }
  17656. /// <summary>Clears the value of the "enum_extension" field</summary>
  17657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17658. public void ClearEnumExtension() {
  17659. _hasBits0 &= ~2;
  17660. }
  17661. /// <summary>Field number for the "dynamic_enum_extension" field.</summary>
  17662. public const int DynamicEnumExtensionFieldNumber = 2002;
  17663. private readonly static global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtensionDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType.DynamicFoo;
  17664. private global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType dynamicEnumExtension_;
  17665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17666. public global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtension {
  17667. get { if ((_hasBits0 & 4) != 0) { return dynamicEnumExtension_; } else { return DynamicEnumExtensionDefaultValue; } }
  17668. set {
  17669. _hasBits0 |= 4;
  17670. dynamicEnumExtension_ = value;
  17671. }
  17672. }
  17673. /// <summary>Gets whether the "dynamic_enum_extension" field is set</summary>
  17674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17675. public bool HasDynamicEnumExtension {
  17676. get { return (_hasBits0 & 4) != 0; }
  17677. }
  17678. /// <summary>Clears the value of the "dynamic_enum_extension" field</summary>
  17679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17680. public void ClearDynamicEnumExtension() {
  17681. _hasBits0 &= ~4;
  17682. }
  17683. /// <summary>Field number for the "message_extension" field.</summary>
  17684. public const int MessageExtensionFieldNumber = 2003;
  17685. private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage messageExtension_;
  17686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17687. public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage MessageExtension {
  17688. get { return messageExtension_; }
  17689. set {
  17690. messageExtension_ = value;
  17691. }
  17692. }
  17693. /// <summary>Field number for the "dynamic_message_extension" field.</summary>
  17694. public const int DynamicMessageExtensionFieldNumber = 2004;
  17695. private global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType dynamicMessageExtension_;
  17696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17697. public global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType DynamicMessageExtension {
  17698. get { return dynamicMessageExtension_; }
  17699. set {
  17700. dynamicMessageExtension_ = value;
  17701. }
  17702. }
  17703. /// <summary>Field number for the "repeated_extension" field.</summary>
  17704. public const int RepeatedExtensionFieldNumber = 2005;
  17705. private static readonly pb::FieldCodec<string> _repeated_repeatedExtension_codec
  17706. = pb::FieldCodec.ForString(16042);
  17707. private readonly pbc::RepeatedField<string> repeatedExtension_ = new pbc::RepeatedField<string>();
  17708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17709. public pbc::RepeatedField<string> RepeatedExtension {
  17710. get { return repeatedExtension_; }
  17711. }
  17712. /// <summary>Field number for the "packed_extension" field.</summary>
  17713. public const int PackedExtensionFieldNumber = 2006;
  17714. private static readonly pb::FieldCodec<int> _repeated_packedExtension_codec
  17715. = pb::FieldCodec.ForSInt32(16050);
  17716. private readonly pbc::RepeatedField<int> packedExtension_ = new pbc::RepeatedField<int>();
  17717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17718. public pbc::RepeatedField<int> PackedExtension {
  17719. get { return packedExtension_; }
  17720. }
  17721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17722. public override bool Equals(object other) {
  17723. return Equals(other as TestDynamicExtensions);
  17724. }
  17725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17726. public bool Equals(TestDynamicExtensions other) {
  17727. if (ReferenceEquals(other, null)) {
  17728. return false;
  17729. }
  17730. if (ReferenceEquals(other, this)) {
  17731. return true;
  17732. }
  17733. if (ScalarExtension != other.ScalarExtension) return false;
  17734. if (EnumExtension != other.EnumExtension) return false;
  17735. if (DynamicEnumExtension != other.DynamicEnumExtension) return false;
  17736. if (!object.Equals(MessageExtension, other.MessageExtension)) return false;
  17737. if (!object.Equals(DynamicMessageExtension, other.DynamicMessageExtension)) return false;
  17738. if(!repeatedExtension_.Equals(other.repeatedExtension_)) return false;
  17739. if(!packedExtension_.Equals(other.packedExtension_)) return false;
  17740. return Equals(_unknownFields, other._unknownFields);
  17741. }
  17742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17743. public override int GetHashCode() {
  17744. int hash = 1;
  17745. if (HasScalarExtension) hash ^= ScalarExtension.GetHashCode();
  17746. if (HasEnumExtension) hash ^= EnumExtension.GetHashCode();
  17747. if (HasDynamicEnumExtension) hash ^= DynamicEnumExtension.GetHashCode();
  17748. if (messageExtension_ != null) hash ^= MessageExtension.GetHashCode();
  17749. if (dynamicMessageExtension_ != null) hash ^= DynamicMessageExtension.GetHashCode();
  17750. hash ^= repeatedExtension_.GetHashCode();
  17751. hash ^= packedExtension_.GetHashCode();
  17752. if (_unknownFields != null) {
  17753. hash ^= _unknownFields.GetHashCode();
  17754. }
  17755. return hash;
  17756. }
  17757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17758. public override string ToString() {
  17759. return pb::JsonFormatter.ToDiagnosticString(this);
  17760. }
  17761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17762. public void WriteTo(pb::CodedOutputStream output) {
  17763. if (HasScalarExtension) {
  17764. output.WriteRawTag(133, 125);
  17765. output.WriteFixed32(ScalarExtension);
  17766. }
  17767. if (HasEnumExtension) {
  17768. output.WriteRawTag(136, 125);
  17769. output.WriteEnum((int) EnumExtension);
  17770. }
  17771. if (HasDynamicEnumExtension) {
  17772. output.WriteRawTag(144, 125);
  17773. output.WriteEnum((int) DynamicEnumExtension);
  17774. }
  17775. if (messageExtension_ != null) {
  17776. output.WriteRawTag(154, 125);
  17777. output.WriteMessage(MessageExtension);
  17778. }
  17779. if (dynamicMessageExtension_ != null) {
  17780. output.WriteRawTag(162, 125);
  17781. output.WriteMessage(DynamicMessageExtension);
  17782. }
  17783. repeatedExtension_.WriteTo(output, _repeated_repeatedExtension_codec);
  17784. packedExtension_.WriteTo(output, _repeated_packedExtension_codec);
  17785. if (_unknownFields != null) {
  17786. _unknownFields.WriteTo(output);
  17787. }
  17788. }
  17789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17790. public int CalculateSize() {
  17791. int size = 0;
  17792. if (HasScalarExtension) {
  17793. size += 2 + 4;
  17794. }
  17795. if (HasEnumExtension) {
  17796. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) EnumExtension);
  17797. }
  17798. if (HasDynamicEnumExtension) {
  17799. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DynamicEnumExtension);
  17800. }
  17801. if (messageExtension_ != null) {
  17802. size += 2 + pb::CodedOutputStream.ComputeMessageSize(MessageExtension);
  17803. }
  17804. if (dynamicMessageExtension_ != null) {
  17805. size += 2 + pb::CodedOutputStream.ComputeMessageSize(DynamicMessageExtension);
  17806. }
  17807. size += repeatedExtension_.CalculateSize(_repeated_repeatedExtension_codec);
  17808. size += packedExtension_.CalculateSize(_repeated_packedExtension_codec);
  17809. if (_unknownFields != null) {
  17810. size += _unknownFields.CalculateSize();
  17811. }
  17812. return size;
  17813. }
  17814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17815. public void MergeFrom(TestDynamicExtensions other) {
  17816. if (other == null) {
  17817. return;
  17818. }
  17819. if (other.HasScalarExtension) {
  17820. ScalarExtension = other.ScalarExtension;
  17821. }
  17822. if (other.HasEnumExtension) {
  17823. EnumExtension = other.EnumExtension;
  17824. }
  17825. if (other.HasDynamicEnumExtension) {
  17826. DynamicEnumExtension = other.DynamicEnumExtension;
  17827. }
  17828. if (other.messageExtension_ != null) {
  17829. if (messageExtension_ == null) {
  17830. MessageExtension = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
  17831. }
  17832. MessageExtension.MergeFrom(other.MessageExtension);
  17833. }
  17834. if (other.dynamicMessageExtension_ != null) {
  17835. if (dynamicMessageExtension_ == null) {
  17836. DynamicMessageExtension = new global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType();
  17837. }
  17838. DynamicMessageExtension.MergeFrom(other.DynamicMessageExtension);
  17839. }
  17840. repeatedExtension_.Add(other.repeatedExtension_);
  17841. packedExtension_.Add(other.packedExtension_);
  17842. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  17843. }
  17844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17845. public void MergeFrom(pb::CodedInputStream input) {
  17846. uint tag;
  17847. while ((tag = input.ReadTag()) != 0) {
  17848. switch(tag) {
  17849. default:
  17850. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  17851. break;
  17852. case 16005: {
  17853. ScalarExtension = input.ReadFixed32();
  17854. break;
  17855. }
  17856. case 16008: {
  17857. EnumExtension = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
  17858. break;
  17859. }
  17860. case 16016: {
  17861. DynamicEnumExtension = (global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType) input.ReadEnum();
  17862. break;
  17863. }
  17864. case 16026: {
  17865. if (messageExtension_ == null) {
  17866. MessageExtension = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
  17867. }
  17868. input.ReadMessage(MessageExtension);
  17869. break;
  17870. }
  17871. case 16034: {
  17872. if (dynamicMessageExtension_ == null) {
  17873. DynamicMessageExtension = new global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType();
  17874. }
  17875. input.ReadMessage(DynamicMessageExtension);
  17876. break;
  17877. }
  17878. case 16042: {
  17879. repeatedExtension_.AddEntriesFrom(input, _repeated_repeatedExtension_codec);
  17880. break;
  17881. }
  17882. case 16050:
  17883. case 16048: {
  17884. packedExtension_.AddEntriesFrom(input, _repeated_packedExtension_codec);
  17885. break;
  17886. }
  17887. }
  17888. }
  17889. }
  17890. #region Nested types
  17891. /// <summary>Container for nested types declared in the TestDynamicExtensions message type.</summary>
  17892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17893. public static partial class Types {
  17894. public enum DynamicEnumType {
  17895. [pbr::OriginalName("DYNAMIC_FOO")] DynamicFoo = 2200,
  17896. [pbr::OriginalName("DYNAMIC_BAR")] DynamicBar = 2201,
  17897. [pbr::OriginalName("DYNAMIC_BAZ")] DynamicBaz = 2202,
  17898. }
  17899. public sealed partial class DynamicMessageType : pb::IMessage<DynamicMessageType> {
  17900. private static readonly pb::MessageParser<DynamicMessageType> _parser = new pb::MessageParser<DynamicMessageType>(() => new DynamicMessageType());
  17901. private pb::UnknownFieldSet _unknownFields;
  17902. private int _hasBits0;
  17903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17904. public static pb::MessageParser<DynamicMessageType> Parser { get { return _parser; } }
  17905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17906. public static pbr::MessageDescriptor Descriptor {
  17907. get { return global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Descriptor.NestedTypes[0]; }
  17908. }
  17909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17910. pbr::MessageDescriptor pb::IMessage.Descriptor {
  17911. get { return Descriptor; }
  17912. }
  17913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17914. public DynamicMessageType() {
  17915. OnConstruction();
  17916. }
  17917. partial void OnConstruction();
  17918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17919. public DynamicMessageType(DynamicMessageType other) : this() {
  17920. _hasBits0 = other._hasBits0;
  17921. dynamicField_ = other.dynamicField_;
  17922. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  17923. }
  17924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17925. public DynamicMessageType Clone() {
  17926. return new DynamicMessageType(this);
  17927. }
  17928. /// <summary>Field number for the "dynamic_field" field.</summary>
  17929. public const int DynamicFieldFieldNumber = 2100;
  17930. private readonly static int DynamicFieldDefaultValue = 0;
  17931. private int dynamicField_;
  17932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17933. public int DynamicField {
  17934. get { if ((_hasBits0 & 1) != 0) { return dynamicField_; } else { return DynamicFieldDefaultValue; } }
  17935. set {
  17936. _hasBits0 |= 1;
  17937. dynamicField_ = value;
  17938. }
  17939. }
  17940. /// <summary>Gets whether the "dynamic_field" field is set</summary>
  17941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17942. public bool HasDynamicField {
  17943. get { return (_hasBits0 & 1) != 0; }
  17944. }
  17945. /// <summary>Clears the value of the "dynamic_field" field</summary>
  17946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17947. public void ClearDynamicField() {
  17948. _hasBits0 &= ~1;
  17949. }
  17950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17951. public override bool Equals(object other) {
  17952. return Equals(other as DynamicMessageType);
  17953. }
  17954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17955. public bool Equals(DynamicMessageType other) {
  17956. if (ReferenceEquals(other, null)) {
  17957. return false;
  17958. }
  17959. if (ReferenceEquals(other, this)) {
  17960. return true;
  17961. }
  17962. if (DynamicField != other.DynamicField) return false;
  17963. return Equals(_unknownFields, other._unknownFields);
  17964. }
  17965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17966. public override int GetHashCode() {
  17967. int hash = 1;
  17968. if (HasDynamicField) hash ^= DynamicField.GetHashCode();
  17969. if (_unknownFields != null) {
  17970. hash ^= _unknownFields.GetHashCode();
  17971. }
  17972. return hash;
  17973. }
  17974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17975. public override string ToString() {
  17976. return pb::JsonFormatter.ToDiagnosticString(this);
  17977. }
  17978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17979. public void WriteTo(pb::CodedOutputStream output) {
  17980. if (HasDynamicField) {
  17981. output.WriteRawTag(160, 131, 1);
  17982. output.WriteInt32(DynamicField);
  17983. }
  17984. if (_unknownFields != null) {
  17985. _unknownFields.WriteTo(output);
  17986. }
  17987. }
  17988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  17989. public int CalculateSize() {
  17990. int size = 0;
  17991. if (HasDynamicField) {
  17992. size += 3 + pb::CodedOutputStream.ComputeInt32Size(DynamicField);
  17993. }
  17994. if (_unknownFields != null) {
  17995. size += _unknownFields.CalculateSize();
  17996. }
  17997. return size;
  17998. }
  17999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18000. public void MergeFrom(DynamicMessageType other) {
  18001. if (other == null) {
  18002. return;
  18003. }
  18004. if (other.HasDynamicField) {
  18005. DynamicField = other.DynamicField;
  18006. }
  18007. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  18008. }
  18009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18010. public void MergeFrom(pb::CodedInputStream input) {
  18011. uint tag;
  18012. while ((tag = input.ReadTag()) != 0) {
  18013. switch(tag) {
  18014. default:
  18015. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  18016. break;
  18017. case 16800: {
  18018. DynamicField = input.ReadInt32();
  18019. break;
  18020. }
  18021. }
  18022. }
  18023. }
  18024. }
  18025. }
  18026. #endregion
  18027. }
  18028. public sealed partial class TestRepeatedScalarDifferentTagSizes : pb::IMessage<TestRepeatedScalarDifferentTagSizes> {
  18029. private static readonly pb::MessageParser<TestRepeatedScalarDifferentTagSizes> _parser = new pb::MessageParser<TestRepeatedScalarDifferentTagSizes>(() => new TestRepeatedScalarDifferentTagSizes());
  18030. private pb::UnknownFieldSet _unknownFields;
  18031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18032. public static pb::MessageParser<TestRepeatedScalarDifferentTagSizes> Parser { get { return _parser; } }
  18033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18034. public static pbr::MessageDescriptor Descriptor {
  18035. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[53]; }
  18036. }
  18037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18038. pbr::MessageDescriptor pb::IMessage.Descriptor {
  18039. get { return Descriptor; }
  18040. }
  18041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18042. public TestRepeatedScalarDifferentTagSizes() {
  18043. OnConstruction();
  18044. }
  18045. partial void OnConstruction();
  18046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18047. public TestRepeatedScalarDifferentTagSizes(TestRepeatedScalarDifferentTagSizes other) : this() {
  18048. repeatedFixed32_ = other.repeatedFixed32_.Clone();
  18049. repeatedInt32_ = other.repeatedInt32_.Clone();
  18050. repeatedFixed64_ = other.repeatedFixed64_.Clone();
  18051. repeatedInt64_ = other.repeatedInt64_.Clone();
  18052. repeatedFloat_ = other.repeatedFloat_.Clone();
  18053. repeatedUint64_ = other.repeatedUint64_.Clone();
  18054. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  18055. }
  18056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18057. public TestRepeatedScalarDifferentTagSizes Clone() {
  18058. return new TestRepeatedScalarDifferentTagSizes(this);
  18059. }
  18060. /// <summary>Field number for the "repeated_fixed32" field.</summary>
  18061. public const int RepeatedFixed32FieldNumber = 12;
  18062. private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
  18063. = pb::FieldCodec.ForFixed32(101);
  18064. private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
  18065. /// <summary>
  18066. /// Parsing repeated fixed size values used to fail. This message needs to be
  18067. /// used in order to get a tag of the right size; all of the repeated fields
  18068. /// in TestAllTypes didn't trigger the check.
  18069. /// </summary>
  18070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18071. public pbc::RepeatedField<uint> RepeatedFixed32 {
  18072. get { return repeatedFixed32_; }
  18073. }
  18074. /// <summary>Field number for the "repeated_int32" field.</summary>
  18075. public const int RepeatedInt32FieldNumber = 13;
  18076. private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
  18077. = pb::FieldCodec.ForInt32(104);
  18078. private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
  18079. /// <summary>
  18080. /// Check for a varint type, just for good measure.
  18081. /// </summary>
  18082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18083. public pbc::RepeatedField<int> RepeatedInt32 {
  18084. get { return repeatedInt32_; }
  18085. }
  18086. /// <summary>Field number for the "repeated_fixed64" field.</summary>
  18087. public const int RepeatedFixed64FieldNumber = 2046;
  18088. private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
  18089. = pb::FieldCodec.ForFixed64(16369);
  18090. private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
  18091. /// <summary>
  18092. /// These have two-byte tags.
  18093. /// </summary>
  18094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18095. public pbc::RepeatedField<ulong> RepeatedFixed64 {
  18096. get { return repeatedFixed64_; }
  18097. }
  18098. /// <summary>Field number for the "repeated_int64" field.</summary>
  18099. public const int RepeatedInt64FieldNumber = 2047;
  18100. private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
  18101. = pb::FieldCodec.ForInt64(16376);
  18102. private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
  18103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18104. public pbc::RepeatedField<long> RepeatedInt64 {
  18105. get { return repeatedInt64_; }
  18106. }
  18107. /// <summary>Field number for the "repeated_float" field.</summary>
  18108. public const int RepeatedFloatFieldNumber = 262142;
  18109. private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
  18110. = pb::FieldCodec.ForFloat(2097141);
  18111. private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
  18112. /// <summary>
  18113. /// Three byte tags.
  18114. /// </summary>
  18115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18116. public pbc::RepeatedField<float> RepeatedFloat {
  18117. get { return repeatedFloat_; }
  18118. }
  18119. /// <summary>Field number for the "repeated_uint64" field.</summary>
  18120. public const int RepeatedUint64FieldNumber = 262143;
  18121. private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
  18122. = pb::FieldCodec.ForUInt64(2097144);
  18123. private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
  18124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18125. public pbc::RepeatedField<ulong> RepeatedUint64 {
  18126. get { return repeatedUint64_; }
  18127. }
  18128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18129. public override bool Equals(object other) {
  18130. return Equals(other as TestRepeatedScalarDifferentTagSizes);
  18131. }
  18132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18133. public bool Equals(TestRepeatedScalarDifferentTagSizes other) {
  18134. if (ReferenceEquals(other, null)) {
  18135. return false;
  18136. }
  18137. if (ReferenceEquals(other, this)) {
  18138. return true;
  18139. }
  18140. if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
  18141. if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
  18142. if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
  18143. if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
  18144. if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
  18145. if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
  18146. return Equals(_unknownFields, other._unknownFields);
  18147. }
  18148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18149. public override int GetHashCode() {
  18150. int hash = 1;
  18151. hash ^= repeatedFixed32_.GetHashCode();
  18152. hash ^= repeatedInt32_.GetHashCode();
  18153. hash ^= repeatedFixed64_.GetHashCode();
  18154. hash ^= repeatedInt64_.GetHashCode();
  18155. hash ^= repeatedFloat_.GetHashCode();
  18156. hash ^= repeatedUint64_.GetHashCode();
  18157. if (_unknownFields != null) {
  18158. hash ^= _unknownFields.GetHashCode();
  18159. }
  18160. return hash;
  18161. }
  18162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18163. public override string ToString() {
  18164. return pb::JsonFormatter.ToDiagnosticString(this);
  18165. }
  18166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18167. public void WriteTo(pb::CodedOutputStream output) {
  18168. repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
  18169. repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
  18170. repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
  18171. repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
  18172. repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
  18173. repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
  18174. if (_unknownFields != null) {
  18175. _unknownFields.WriteTo(output);
  18176. }
  18177. }
  18178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18179. public int CalculateSize() {
  18180. int size = 0;
  18181. size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
  18182. size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
  18183. size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
  18184. size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
  18185. size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
  18186. size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
  18187. if (_unknownFields != null) {
  18188. size += _unknownFields.CalculateSize();
  18189. }
  18190. return size;
  18191. }
  18192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18193. public void MergeFrom(TestRepeatedScalarDifferentTagSizes other) {
  18194. if (other == null) {
  18195. return;
  18196. }
  18197. repeatedFixed32_.Add(other.repeatedFixed32_);
  18198. repeatedInt32_.Add(other.repeatedInt32_);
  18199. repeatedFixed64_.Add(other.repeatedFixed64_);
  18200. repeatedInt64_.Add(other.repeatedInt64_);
  18201. repeatedFloat_.Add(other.repeatedFloat_);
  18202. repeatedUint64_.Add(other.repeatedUint64_);
  18203. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  18204. }
  18205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18206. public void MergeFrom(pb::CodedInputStream input) {
  18207. uint tag;
  18208. while ((tag = input.ReadTag()) != 0) {
  18209. switch(tag) {
  18210. default:
  18211. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  18212. break;
  18213. case 98:
  18214. case 101: {
  18215. repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
  18216. break;
  18217. }
  18218. case 106:
  18219. case 104: {
  18220. repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
  18221. break;
  18222. }
  18223. case 16370:
  18224. case 16369: {
  18225. repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
  18226. break;
  18227. }
  18228. case 16378:
  18229. case 16376: {
  18230. repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
  18231. break;
  18232. }
  18233. case 2097138:
  18234. case 2097141: {
  18235. repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
  18236. break;
  18237. }
  18238. case 2097146:
  18239. case 2097144: {
  18240. repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
  18241. break;
  18242. }
  18243. }
  18244. }
  18245. }
  18246. }
  18247. /// <summary>
  18248. /// Test that if an optional or required message/group field appears multiple
  18249. /// times in the input, they need to be merged.
  18250. /// </summary>
  18251. public sealed partial class TestParsingMerge : pb::IExtendableMessage<TestParsingMerge> {
  18252. private static readonly pb::MessageParser<TestParsingMerge> _parser = new pb::MessageParser<TestParsingMerge>(() => new TestParsingMerge());
  18253. private pb::UnknownFieldSet _unknownFields;
  18254. private pb::ExtensionSet<TestParsingMerge> _extensions;
  18255. private pb::ExtensionSet<TestParsingMerge> _Extensions { get { return _extensions; } }
  18256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18257. public static pb::MessageParser<TestParsingMerge> Parser { get { return _parser; } }
  18258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18259. public static pbr::MessageDescriptor Descriptor {
  18260. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[54]; }
  18261. }
  18262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18263. pbr::MessageDescriptor pb::IMessage.Descriptor {
  18264. get { return Descriptor; }
  18265. }
  18266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18267. public TestParsingMerge() {
  18268. OnConstruction();
  18269. }
  18270. partial void OnConstruction();
  18271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18272. public TestParsingMerge(TestParsingMerge other) : this() {
  18273. requiredAllTypes_ = other.requiredAllTypes_ != null ? other.requiredAllTypes_.Clone() : null;
  18274. optionalAllTypes_ = other.optionalAllTypes_ != null ? other.optionalAllTypes_.Clone() : null;
  18275. repeatedAllTypes_ = other.repeatedAllTypes_.Clone();
  18276. optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
  18277. repeatedGroup_ = other.repeatedGroup_.Clone();
  18278. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  18279. _extensions = pb::ExtensionSet.Clone(other._extensions);
  18280. }
  18281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18282. public TestParsingMerge Clone() {
  18283. return new TestParsingMerge(this);
  18284. }
  18285. /// <summary>Field number for the "required_all_types" field.</summary>
  18286. public const int RequiredAllTypesFieldNumber = 1;
  18287. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes requiredAllTypes_;
  18288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18289. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes RequiredAllTypes {
  18290. get { return requiredAllTypes_; }
  18291. set {
  18292. requiredAllTypes_ = value;
  18293. }
  18294. }
  18295. /// <summary>Field number for the "optional_all_types" field.</summary>
  18296. public const int OptionalAllTypesFieldNumber = 2;
  18297. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes optionalAllTypes_;
  18298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18299. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes OptionalAllTypes {
  18300. get { return optionalAllTypes_; }
  18301. set {
  18302. optionalAllTypes_ = value;
  18303. }
  18304. }
  18305. /// <summary>Field number for the "repeated_all_types" field.</summary>
  18306. public const int RepeatedAllTypesFieldNumber = 3;
  18307. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_repeatedAllTypes_codec
  18308. = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
  18309. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> repeatedAllTypes_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
  18310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18311. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> RepeatedAllTypes {
  18312. get { return repeatedAllTypes_; }
  18313. }
  18314. /// <summary>Field number for the "optionalgroup" field.</summary>
  18315. public const int OptionalGroupFieldNumber = 10;
  18316. private global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup optionalGroup_;
  18317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18318. public global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup OptionalGroup {
  18319. get { return optionalGroup_; }
  18320. set {
  18321. optionalGroup_ = value;
  18322. }
  18323. }
  18324. /// <summary>Gets whether the optionalgroup field is set</summary>
  18325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18326. public bool HasOptionalGroup {
  18327. get { return optionalGroup_ != null; }
  18328. }
  18329. /// <summary>Clears the value of the optionalgroup field</summary>
  18330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18331. public void ClearOptionalGroup() {
  18332. optionalGroup_ = null;
  18333. }
  18334. /// <summary>Field number for the "repeatedgroup" field.</summary>
  18335. public const int RepeatedGroupFieldNumber = 20;
  18336. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup> _repeated_repeatedGroup_codec
  18337. = pb::FieldCodec.ForGroup(163, 164, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup.Parser);
  18338. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup> repeatedGroup_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup>();
  18339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18340. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup> RepeatedGroup {
  18341. get { return repeatedGroup_; }
  18342. }
  18343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18344. public override bool Equals(object other) {
  18345. return Equals(other as TestParsingMerge);
  18346. }
  18347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18348. public bool Equals(TestParsingMerge other) {
  18349. if (ReferenceEquals(other, null)) {
  18350. return false;
  18351. }
  18352. if (ReferenceEquals(other, this)) {
  18353. return true;
  18354. }
  18355. if (!object.Equals(RequiredAllTypes, other.RequiredAllTypes)) return false;
  18356. if (!object.Equals(OptionalAllTypes, other.OptionalAllTypes)) return false;
  18357. if(!repeatedAllTypes_.Equals(other.repeatedAllTypes_)) return false;
  18358. if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
  18359. if(!repeatedGroup_.Equals(other.repeatedGroup_)) return false;
  18360. if (!Equals(_extensions, other._extensions)) {
  18361. return false;
  18362. }
  18363. return Equals(_unknownFields, other._unknownFields);
  18364. }
  18365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18366. public override int GetHashCode() {
  18367. int hash = 1;
  18368. if (requiredAllTypes_ != null) hash ^= RequiredAllTypes.GetHashCode();
  18369. if (optionalAllTypes_ != null) hash ^= OptionalAllTypes.GetHashCode();
  18370. hash ^= repeatedAllTypes_.GetHashCode();
  18371. if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
  18372. hash ^= repeatedGroup_.GetHashCode();
  18373. if (_extensions != null) {
  18374. hash ^= _extensions.GetHashCode();
  18375. }
  18376. if (_unknownFields != null) {
  18377. hash ^= _unknownFields.GetHashCode();
  18378. }
  18379. return hash;
  18380. }
  18381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18382. public override string ToString() {
  18383. return pb::JsonFormatter.ToDiagnosticString(this);
  18384. }
  18385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18386. public void WriteTo(pb::CodedOutputStream output) {
  18387. if (requiredAllTypes_ != null) {
  18388. output.WriteRawTag(10);
  18389. output.WriteMessage(RequiredAllTypes);
  18390. }
  18391. if (optionalAllTypes_ != null) {
  18392. output.WriteRawTag(18);
  18393. output.WriteMessage(OptionalAllTypes);
  18394. }
  18395. repeatedAllTypes_.WriteTo(output, _repeated_repeatedAllTypes_codec);
  18396. if (HasOptionalGroup) {
  18397. output.WriteRawTag(83);
  18398. output.WriteGroup(OptionalGroup);
  18399. output.WriteRawTag(84);
  18400. }
  18401. repeatedGroup_.WriteTo(output, _repeated_repeatedGroup_codec);
  18402. if (_extensions != null) {
  18403. _extensions.WriteTo(output);
  18404. }
  18405. if (_unknownFields != null) {
  18406. _unknownFields.WriteTo(output);
  18407. }
  18408. }
  18409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18410. public int CalculateSize() {
  18411. int size = 0;
  18412. if (requiredAllTypes_ != null) {
  18413. size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequiredAllTypes);
  18414. }
  18415. if (optionalAllTypes_ != null) {
  18416. size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalAllTypes);
  18417. }
  18418. size += repeatedAllTypes_.CalculateSize(_repeated_repeatedAllTypes_codec);
  18419. if (HasOptionalGroup) {
  18420. size += 2 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
  18421. }
  18422. size += repeatedGroup_.CalculateSize(_repeated_repeatedGroup_codec);
  18423. if (_extensions != null) {
  18424. size += _extensions.CalculateSize();
  18425. }
  18426. if (_unknownFields != null) {
  18427. size += _unknownFields.CalculateSize();
  18428. }
  18429. return size;
  18430. }
  18431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18432. public void MergeFrom(TestParsingMerge other) {
  18433. if (other == null) {
  18434. return;
  18435. }
  18436. if (other.requiredAllTypes_ != null) {
  18437. if (requiredAllTypes_ == null) {
  18438. RequiredAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  18439. }
  18440. RequiredAllTypes.MergeFrom(other.RequiredAllTypes);
  18441. }
  18442. if (other.optionalAllTypes_ != null) {
  18443. if (optionalAllTypes_ == null) {
  18444. OptionalAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  18445. }
  18446. OptionalAllTypes.MergeFrom(other.OptionalAllTypes);
  18447. }
  18448. repeatedAllTypes_.Add(other.repeatedAllTypes_);
  18449. if (other.HasOptionalGroup) {
  18450. if (!HasOptionalGroup) {
  18451. OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup();
  18452. }
  18453. OptionalGroup.MergeFrom(other.OptionalGroup);
  18454. }
  18455. repeatedGroup_.Add(other.repeatedGroup_);
  18456. pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
  18457. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  18458. }
  18459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18460. public void MergeFrom(pb::CodedInputStream input) {
  18461. uint tag;
  18462. while ((tag = input.ReadTag()) != 0) {
  18463. switch(tag) {
  18464. default:
  18465. if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
  18466. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  18467. }
  18468. break;
  18469. case 10: {
  18470. if (requiredAllTypes_ == null) {
  18471. RequiredAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  18472. }
  18473. input.ReadMessage(RequiredAllTypes);
  18474. break;
  18475. }
  18476. case 18: {
  18477. if (optionalAllTypes_ == null) {
  18478. OptionalAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  18479. }
  18480. input.ReadMessage(OptionalAllTypes);
  18481. break;
  18482. }
  18483. case 26: {
  18484. repeatedAllTypes_.AddEntriesFrom(input, _repeated_repeatedAllTypes_codec);
  18485. break;
  18486. }
  18487. case 83: {
  18488. if (!HasOptionalGroup) {
  18489. OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup();
  18490. }
  18491. input.ReadGroup(OptionalGroup);
  18492. break;
  18493. }
  18494. case 163: {
  18495. repeatedGroup_.AddEntriesFrom(input, _repeated_repeatedGroup_codec);
  18496. break;
  18497. }
  18498. }
  18499. }
  18500. }
  18501. public TValue GetExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension) {
  18502. return pb::ExtensionSet.Get(ref _extensions, extension);
  18503. }
  18504. public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestParsingMerge, TValue> extension) {
  18505. return pb::ExtensionSet.Get(ref _extensions, extension);
  18506. }
  18507. public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestParsingMerge, TValue> extension) {
  18508. return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
  18509. }
  18510. public void SetExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension, TValue value) {
  18511. pb::ExtensionSet.Set(ref _extensions, extension, value);
  18512. }
  18513. public bool HasExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension) {
  18514. return pb::ExtensionSet.Has(ref _extensions, extension);
  18515. }
  18516. public void ClearExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension) {
  18517. pb::ExtensionSet.Clear(ref _extensions, extension);
  18518. }
  18519. public void ClearExtension<TValue>(pb::RepeatedExtension<TestParsingMerge, TValue> extension) {
  18520. pb::ExtensionSet.Clear(ref _extensions, extension);
  18521. }
  18522. #region Nested types
  18523. /// <summary>Container for nested types declared in the TestParsingMerge message type.</summary>
  18524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18525. public static partial class Types {
  18526. /// <summary>
  18527. /// RepeatedFieldsGenerator defines matching field types as TestParsingMerge,
  18528. /// except that all fields are repeated. In the tests, we will serialize the
  18529. /// RepeatedFieldsGenerator to bytes, and parse the bytes to TestParsingMerge.
  18530. /// Repeated fields in RepeatedFieldsGenerator are expected to be merged into
  18531. /// the corresponding required/optional fields in TestParsingMerge.
  18532. /// </summary>
  18533. public sealed partial class RepeatedFieldsGenerator : pb::IMessage<RepeatedFieldsGenerator> {
  18534. private static readonly pb::MessageParser<RepeatedFieldsGenerator> _parser = new pb::MessageParser<RepeatedFieldsGenerator>(() => new RepeatedFieldsGenerator());
  18535. private pb::UnknownFieldSet _unknownFields;
  18536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18537. public static pb::MessageParser<RepeatedFieldsGenerator> Parser { get { return _parser; } }
  18538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18539. public static pbr::MessageDescriptor Descriptor {
  18540. get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Descriptor.NestedTypes[0]; }
  18541. }
  18542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18543. pbr::MessageDescriptor pb::IMessage.Descriptor {
  18544. get { return Descriptor; }
  18545. }
  18546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18547. public RepeatedFieldsGenerator() {
  18548. OnConstruction();
  18549. }
  18550. partial void OnConstruction();
  18551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18552. public RepeatedFieldsGenerator(RepeatedFieldsGenerator other) : this() {
  18553. field1_ = other.field1_.Clone();
  18554. field2_ = other.field2_.Clone();
  18555. field3_ = other.field3_.Clone();
  18556. group1_ = other.group1_.Clone();
  18557. group2_ = other.group2_.Clone();
  18558. ext1_ = other.ext1_.Clone();
  18559. ext2_ = other.ext2_.Clone();
  18560. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  18561. }
  18562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18563. public RepeatedFieldsGenerator Clone() {
  18564. return new RepeatedFieldsGenerator(this);
  18565. }
  18566. /// <summary>Field number for the "field1" field.</summary>
  18567. public const int Field1FieldNumber = 1;
  18568. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_field1_codec
  18569. = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
  18570. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> field1_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
  18571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18572. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Field1 {
  18573. get { return field1_; }
  18574. }
  18575. /// <summary>Field number for the "field2" field.</summary>
  18576. public const int Field2FieldNumber = 2;
  18577. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_field2_codec
  18578. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
  18579. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> field2_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
  18580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18581. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Field2 {
  18582. get { return field2_; }
  18583. }
  18584. /// <summary>Field number for the "field3" field.</summary>
  18585. public const int Field3FieldNumber = 3;
  18586. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_field3_codec
  18587. = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
  18588. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> field3_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
  18589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18590. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Field3 {
  18591. get { return field3_; }
  18592. }
  18593. /// <summary>Field number for the "group1" field.</summary>
  18594. public const int Group1FieldNumber = 10;
  18595. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> _repeated_group1_codec
  18596. = pb::FieldCodec.ForGroup(83, 84, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Parser);
  18597. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> group1_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1>();
  18598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18599. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> Group1 {
  18600. get { return group1_; }
  18601. }
  18602. /// <summary>Field number for the "group2" field.</summary>
  18603. public const int Group2FieldNumber = 20;
  18604. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> _repeated_group2_codec
  18605. = pb::FieldCodec.ForGroup(163, 164, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Parser);
  18606. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> group2_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2>();
  18607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18608. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> Group2 {
  18609. get { return group2_; }
  18610. }
  18611. /// <summary>Field number for the "ext1" field.</summary>
  18612. public const int Ext1FieldNumber = 1000;
  18613. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_ext1_codec
  18614. = pb::FieldCodec.ForMessage(8002, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
  18615. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> ext1_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
  18616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18617. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Ext1 {
  18618. get { return ext1_; }
  18619. }
  18620. /// <summary>Field number for the "ext2" field.</summary>
  18621. public const int Ext2FieldNumber = 1001;
  18622. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_ext2_codec
  18623. = pb::FieldCodec.ForMessage(8010, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
  18624. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> ext2_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
  18625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18626. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Ext2 {
  18627. get { return ext2_; }
  18628. }
  18629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18630. public override bool Equals(object other) {
  18631. return Equals(other as RepeatedFieldsGenerator);
  18632. }
  18633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18634. public bool Equals(RepeatedFieldsGenerator other) {
  18635. if (ReferenceEquals(other, null)) {
  18636. return false;
  18637. }
  18638. if (ReferenceEquals(other, this)) {
  18639. return true;
  18640. }
  18641. if(!field1_.Equals(other.field1_)) return false;
  18642. if(!field2_.Equals(other.field2_)) return false;
  18643. if(!field3_.Equals(other.field3_)) return false;
  18644. if(!group1_.Equals(other.group1_)) return false;
  18645. if(!group2_.Equals(other.group2_)) return false;
  18646. if(!ext1_.Equals(other.ext1_)) return false;
  18647. if(!ext2_.Equals(other.ext2_)) return false;
  18648. return Equals(_unknownFields, other._unknownFields);
  18649. }
  18650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18651. public override int GetHashCode() {
  18652. int hash = 1;
  18653. hash ^= field1_.GetHashCode();
  18654. hash ^= field2_.GetHashCode();
  18655. hash ^= field3_.GetHashCode();
  18656. hash ^= group1_.GetHashCode();
  18657. hash ^= group2_.GetHashCode();
  18658. hash ^= ext1_.GetHashCode();
  18659. hash ^= ext2_.GetHashCode();
  18660. if (_unknownFields != null) {
  18661. hash ^= _unknownFields.GetHashCode();
  18662. }
  18663. return hash;
  18664. }
  18665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18666. public override string ToString() {
  18667. return pb::JsonFormatter.ToDiagnosticString(this);
  18668. }
  18669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18670. public void WriteTo(pb::CodedOutputStream output) {
  18671. field1_.WriteTo(output, _repeated_field1_codec);
  18672. field2_.WriteTo(output, _repeated_field2_codec);
  18673. field3_.WriteTo(output, _repeated_field3_codec);
  18674. group1_.WriteTo(output, _repeated_group1_codec);
  18675. group2_.WriteTo(output, _repeated_group2_codec);
  18676. ext1_.WriteTo(output, _repeated_ext1_codec);
  18677. ext2_.WriteTo(output, _repeated_ext2_codec);
  18678. if (_unknownFields != null) {
  18679. _unknownFields.WriteTo(output);
  18680. }
  18681. }
  18682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18683. public int CalculateSize() {
  18684. int size = 0;
  18685. size += field1_.CalculateSize(_repeated_field1_codec);
  18686. size += field2_.CalculateSize(_repeated_field2_codec);
  18687. size += field3_.CalculateSize(_repeated_field3_codec);
  18688. size += group1_.CalculateSize(_repeated_group1_codec);
  18689. size += group2_.CalculateSize(_repeated_group2_codec);
  18690. size += ext1_.CalculateSize(_repeated_ext1_codec);
  18691. size += ext2_.CalculateSize(_repeated_ext2_codec);
  18692. if (_unknownFields != null) {
  18693. size += _unknownFields.CalculateSize();
  18694. }
  18695. return size;
  18696. }
  18697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18698. public void MergeFrom(RepeatedFieldsGenerator other) {
  18699. if (other == null) {
  18700. return;
  18701. }
  18702. field1_.Add(other.field1_);
  18703. field2_.Add(other.field2_);
  18704. field3_.Add(other.field3_);
  18705. group1_.Add(other.group1_);
  18706. group2_.Add(other.group2_);
  18707. ext1_.Add(other.ext1_);
  18708. ext2_.Add(other.ext2_);
  18709. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  18710. }
  18711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18712. public void MergeFrom(pb::CodedInputStream input) {
  18713. uint tag;
  18714. while ((tag = input.ReadTag()) != 0) {
  18715. switch(tag) {
  18716. default:
  18717. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  18718. break;
  18719. case 10: {
  18720. field1_.AddEntriesFrom(input, _repeated_field1_codec);
  18721. break;
  18722. }
  18723. case 18: {
  18724. field2_.AddEntriesFrom(input, _repeated_field2_codec);
  18725. break;
  18726. }
  18727. case 26: {
  18728. field3_.AddEntriesFrom(input, _repeated_field3_codec);
  18729. break;
  18730. }
  18731. case 83: {
  18732. group1_.AddEntriesFrom(input, _repeated_group1_codec);
  18733. break;
  18734. }
  18735. case 163: {
  18736. group2_.AddEntriesFrom(input, _repeated_group2_codec);
  18737. break;
  18738. }
  18739. case 8002: {
  18740. ext1_.AddEntriesFrom(input, _repeated_ext1_codec);
  18741. break;
  18742. }
  18743. case 8010: {
  18744. ext2_.AddEntriesFrom(input, _repeated_ext2_codec);
  18745. break;
  18746. }
  18747. }
  18748. }
  18749. }
  18750. #region Nested types
  18751. /// <summary>Container for nested types declared in the RepeatedFieldsGenerator message type.</summary>
  18752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18753. public static partial class Types {
  18754. public sealed partial class Group1 : pb::IMessage<Group1> {
  18755. private static readonly pb::MessageParser<Group1> _parser = new pb::MessageParser<Group1>(() => new Group1());
  18756. private pb::UnknownFieldSet _unknownFields;
  18757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18758. public static pb::MessageParser<Group1> Parser { get { return _parser; } }
  18759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18760. public static pbr::MessageDescriptor Descriptor {
  18761. get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Descriptor.NestedTypes[0]; }
  18762. }
  18763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18764. pbr::MessageDescriptor pb::IMessage.Descriptor {
  18765. get { return Descriptor; }
  18766. }
  18767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18768. public Group1() {
  18769. OnConstruction();
  18770. }
  18771. partial void OnConstruction();
  18772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18773. public Group1(Group1 other) : this() {
  18774. field1_ = other.field1_ != null ? other.field1_.Clone() : null;
  18775. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  18776. }
  18777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18778. public Group1 Clone() {
  18779. return new Group1(this);
  18780. }
  18781. /// <summary>Field number for the "field1" field.</summary>
  18782. public const int Field1FieldNumber = 11;
  18783. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes field1_;
  18784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18785. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes Field1 {
  18786. get { return field1_; }
  18787. set {
  18788. field1_ = value;
  18789. }
  18790. }
  18791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18792. public override bool Equals(object other) {
  18793. return Equals(other as Group1);
  18794. }
  18795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18796. public bool Equals(Group1 other) {
  18797. if (ReferenceEquals(other, null)) {
  18798. return false;
  18799. }
  18800. if (ReferenceEquals(other, this)) {
  18801. return true;
  18802. }
  18803. if (!object.Equals(Field1, other.Field1)) return false;
  18804. return Equals(_unknownFields, other._unknownFields);
  18805. }
  18806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18807. public override int GetHashCode() {
  18808. int hash = 1;
  18809. if (field1_ != null) hash ^= Field1.GetHashCode();
  18810. if (_unknownFields != null) {
  18811. hash ^= _unknownFields.GetHashCode();
  18812. }
  18813. return hash;
  18814. }
  18815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18816. public override string ToString() {
  18817. return pb::JsonFormatter.ToDiagnosticString(this);
  18818. }
  18819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18820. public void WriteTo(pb::CodedOutputStream output) {
  18821. if (field1_ != null) {
  18822. output.WriteRawTag(90);
  18823. output.WriteMessage(Field1);
  18824. }
  18825. if (_unknownFields != null) {
  18826. _unknownFields.WriteTo(output);
  18827. }
  18828. }
  18829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18830. public int CalculateSize() {
  18831. int size = 0;
  18832. if (field1_ != null) {
  18833. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Field1);
  18834. }
  18835. if (_unknownFields != null) {
  18836. size += _unknownFields.CalculateSize();
  18837. }
  18838. return size;
  18839. }
  18840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18841. public void MergeFrom(Group1 other) {
  18842. if (other == null) {
  18843. return;
  18844. }
  18845. if (other.field1_ != null) {
  18846. if (field1_ == null) {
  18847. Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  18848. }
  18849. Field1.MergeFrom(other.Field1);
  18850. }
  18851. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  18852. }
  18853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18854. public void MergeFrom(pb::CodedInputStream input) {
  18855. uint tag;
  18856. while ((tag = input.ReadTag()) != 0) {
  18857. switch(tag) {
  18858. case 84:
  18859. return;
  18860. default:
  18861. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  18862. break;
  18863. case 90: {
  18864. if (field1_ == null) {
  18865. Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  18866. }
  18867. input.ReadMessage(Field1);
  18868. break;
  18869. }
  18870. }
  18871. }
  18872. }
  18873. }
  18874. public sealed partial class Group2 : pb::IMessage<Group2> {
  18875. private static readonly pb::MessageParser<Group2> _parser = new pb::MessageParser<Group2>(() => new Group2());
  18876. private pb::UnknownFieldSet _unknownFields;
  18877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18878. public static pb::MessageParser<Group2> Parser { get { return _parser; } }
  18879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18880. public static pbr::MessageDescriptor Descriptor {
  18881. get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Descriptor.NestedTypes[1]; }
  18882. }
  18883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18884. pbr::MessageDescriptor pb::IMessage.Descriptor {
  18885. get { return Descriptor; }
  18886. }
  18887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18888. public Group2() {
  18889. OnConstruction();
  18890. }
  18891. partial void OnConstruction();
  18892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18893. public Group2(Group2 other) : this() {
  18894. field1_ = other.field1_ != null ? other.field1_.Clone() : null;
  18895. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  18896. }
  18897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18898. public Group2 Clone() {
  18899. return new Group2(this);
  18900. }
  18901. /// <summary>Field number for the "field1" field.</summary>
  18902. public const int Field1FieldNumber = 21;
  18903. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes field1_;
  18904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18905. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes Field1 {
  18906. get { return field1_; }
  18907. set {
  18908. field1_ = value;
  18909. }
  18910. }
  18911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18912. public override bool Equals(object other) {
  18913. return Equals(other as Group2);
  18914. }
  18915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18916. public bool Equals(Group2 other) {
  18917. if (ReferenceEquals(other, null)) {
  18918. return false;
  18919. }
  18920. if (ReferenceEquals(other, this)) {
  18921. return true;
  18922. }
  18923. if (!object.Equals(Field1, other.Field1)) return false;
  18924. return Equals(_unknownFields, other._unknownFields);
  18925. }
  18926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18927. public override int GetHashCode() {
  18928. int hash = 1;
  18929. if (field1_ != null) hash ^= Field1.GetHashCode();
  18930. if (_unknownFields != null) {
  18931. hash ^= _unknownFields.GetHashCode();
  18932. }
  18933. return hash;
  18934. }
  18935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18936. public override string ToString() {
  18937. return pb::JsonFormatter.ToDiagnosticString(this);
  18938. }
  18939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18940. public void WriteTo(pb::CodedOutputStream output) {
  18941. if (field1_ != null) {
  18942. output.WriteRawTag(170, 1);
  18943. output.WriteMessage(Field1);
  18944. }
  18945. if (_unknownFields != null) {
  18946. _unknownFields.WriteTo(output);
  18947. }
  18948. }
  18949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18950. public int CalculateSize() {
  18951. int size = 0;
  18952. if (field1_ != null) {
  18953. size += 2 + pb::CodedOutputStream.ComputeMessageSize(Field1);
  18954. }
  18955. if (_unknownFields != null) {
  18956. size += _unknownFields.CalculateSize();
  18957. }
  18958. return size;
  18959. }
  18960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18961. public void MergeFrom(Group2 other) {
  18962. if (other == null) {
  18963. return;
  18964. }
  18965. if (other.field1_ != null) {
  18966. if (field1_ == null) {
  18967. Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  18968. }
  18969. Field1.MergeFrom(other.Field1);
  18970. }
  18971. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  18972. }
  18973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  18974. public void MergeFrom(pb::CodedInputStream input) {
  18975. uint tag;
  18976. while ((tag = input.ReadTag()) != 0) {
  18977. switch(tag) {
  18978. case 164:
  18979. return;
  18980. default:
  18981. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  18982. break;
  18983. case 170: {
  18984. if (field1_ == null) {
  18985. Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  18986. }
  18987. input.ReadMessage(Field1);
  18988. break;
  18989. }
  18990. }
  18991. }
  18992. }
  18993. }
  18994. }
  18995. #endregion
  18996. }
  18997. public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup> {
  18998. private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
  18999. private pb::UnknownFieldSet _unknownFields;
  19000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19001. public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
  19002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19003. public static pbr::MessageDescriptor Descriptor {
  19004. get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Descriptor.NestedTypes[1]; }
  19005. }
  19006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19007. pbr::MessageDescriptor pb::IMessage.Descriptor {
  19008. get { return Descriptor; }
  19009. }
  19010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19011. public OptionalGroup() {
  19012. OnConstruction();
  19013. }
  19014. partial void OnConstruction();
  19015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19016. public OptionalGroup(OptionalGroup other) : this() {
  19017. optionalGroupAllTypes_ = other.optionalGroupAllTypes_ != null ? other.optionalGroupAllTypes_.Clone() : null;
  19018. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  19019. }
  19020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19021. public OptionalGroup Clone() {
  19022. return new OptionalGroup(this);
  19023. }
  19024. /// <summary>Field number for the "optional_group_all_types" field.</summary>
  19025. public const int OptionalGroupAllTypesFieldNumber = 11;
  19026. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes optionalGroupAllTypes_;
  19027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19028. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes OptionalGroupAllTypes {
  19029. get { return optionalGroupAllTypes_; }
  19030. set {
  19031. optionalGroupAllTypes_ = value;
  19032. }
  19033. }
  19034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19035. public override bool Equals(object other) {
  19036. return Equals(other as OptionalGroup);
  19037. }
  19038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19039. public bool Equals(OptionalGroup other) {
  19040. if (ReferenceEquals(other, null)) {
  19041. return false;
  19042. }
  19043. if (ReferenceEquals(other, this)) {
  19044. return true;
  19045. }
  19046. if (!object.Equals(OptionalGroupAllTypes, other.OptionalGroupAllTypes)) return false;
  19047. return Equals(_unknownFields, other._unknownFields);
  19048. }
  19049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19050. public override int GetHashCode() {
  19051. int hash = 1;
  19052. if (optionalGroupAllTypes_ != null) hash ^= OptionalGroupAllTypes.GetHashCode();
  19053. if (_unknownFields != null) {
  19054. hash ^= _unknownFields.GetHashCode();
  19055. }
  19056. return hash;
  19057. }
  19058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19059. public override string ToString() {
  19060. return pb::JsonFormatter.ToDiagnosticString(this);
  19061. }
  19062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19063. public void WriteTo(pb::CodedOutputStream output) {
  19064. if (optionalGroupAllTypes_ != null) {
  19065. output.WriteRawTag(90);
  19066. output.WriteMessage(OptionalGroupAllTypes);
  19067. }
  19068. if (_unknownFields != null) {
  19069. _unknownFields.WriteTo(output);
  19070. }
  19071. }
  19072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19073. public int CalculateSize() {
  19074. int size = 0;
  19075. if (optionalGroupAllTypes_ != null) {
  19076. size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalGroupAllTypes);
  19077. }
  19078. if (_unknownFields != null) {
  19079. size += _unknownFields.CalculateSize();
  19080. }
  19081. return size;
  19082. }
  19083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19084. public void MergeFrom(OptionalGroup other) {
  19085. if (other == null) {
  19086. return;
  19087. }
  19088. if (other.optionalGroupAllTypes_ != null) {
  19089. if (optionalGroupAllTypes_ == null) {
  19090. OptionalGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  19091. }
  19092. OptionalGroupAllTypes.MergeFrom(other.OptionalGroupAllTypes);
  19093. }
  19094. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  19095. }
  19096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19097. public void MergeFrom(pb::CodedInputStream input) {
  19098. uint tag;
  19099. while ((tag = input.ReadTag()) != 0) {
  19100. switch(tag) {
  19101. case 84:
  19102. return;
  19103. default:
  19104. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  19105. break;
  19106. case 90: {
  19107. if (optionalGroupAllTypes_ == null) {
  19108. OptionalGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  19109. }
  19110. input.ReadMessage(OptionalGroupAllTypes);
  19111. break;
  19112. }
  19113. }
  19114. }
  19115. }
  19116. }
  19117. public sealed partial class RepeatedGroup : pb::IMessage<RepeatedGroup> {
  19118. private static readonly pb::MessageParser<RepeatedGroup> _parser = new pb::MessageParser<RepeatedGroup>(() => new RepeatedGroup());
  19119. private pb::UnknownFieldSet _unknownFields;
  19120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19121. public static pb::MessageParser<RepeatedGroup> Parser { get { return _parser; } }
  19122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19123. public static pbr::MessageDescriptor Descriptor {
  19124. get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Descriptor.NestedTypes[2]; }
  19125. }
  19126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19127. pbr::MessageDescriptor pb::IMessage.Descriptor {
  19128. get { return Descriptor; }
  19129. }
  19130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19131. public RepeatedGroup() {
  19132. OnConstruction();
  19133. }
  19134. partial void OnConstruction();
  19135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19136. public RepeatedGroup(RepeatedGroup other) : this() {
  19137. repeatedGroupAllTypes_ = other.repeatedGroupAllTypes_ != null ? other.repeatedGroupAllTypes_.Clone() : null;
  19138. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  19139. }
  19140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19141. public RepeatedGroup Clone() {
  19142. return new RepeatedGroup(this);
  19143. }
  19144. /// <summary>Field number for the "repeated_group_all_types" field.</summary>
  19145. public const int RepeatedGroupAllTypesFieldNumber = 21;
  19146. private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes repeatedGroupAllTypes_;
  19147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19148. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes RepeatedGroupAllTypes {
  19149. get { return repeatedGroupAllTypes_; }
  19150. set {
  19151. repeatedGroupAllTypes_ = value;
  19152. }
  19153. }
  19154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19155. public override bool Equals(object other) {
  19156. return Equals(other as RepeatedGroup);
  19157. }
  19158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19159. public bool Equals(RepeatedGroup other) {
  19160. if (ReferenceEquals(other, null)) {
  19161. return false;
  19162. }
  19163. if (ReferenceEquals(other, this)) {
  19164. return true;
  19165. }
  19166. if (!object.Equals(RepeatedGroupAllTypes, other.RepeatedGroupAllTypes)) return false;
  19167. return Equals(_unknownFields, other._unknownFields);
  19168. }
  19169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19170. public override int GetHashCode() {
  19171. int hash = 1;
  19172. if (repeatedGroupAllTypes_ != null) hash ^= RepeatedGroupAllTypes.GetHashCode();
  19173. if (_unknownFields != null) {
  19174. hash ^= _unknownFields.GetHashCode();
  19175. }
  19176. return hash;
  19177. }
  19178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19179. public override string ToString() {
  19180. return pb::JsonFormatter.ToDiagnosticString(this);
  19181. }
  19182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19183. public void WriteTo(pb::CodedOutputStream output) {
  19184. if (repeatedGroupAllTypes_ != null) {
  19185. output.WriteRawTag(170, 1);
  19186. output.WriteMessage(RepeatedGroupAllTypes);
  19187. }
  19188. if (_unknownFields != null) {
  19189. _unknownFields.WriteTo(output);
  19190. }
  19191. }
  19192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19193. public int CalculateSize() {
  19194. int size = 0;
  19195. if (repeatedGroupAllTypes_ != null) {
  19196. size += 2 + pb::CodedOutputStream.ComputeMessageSize(RepeatedGroupAllTypes);
  19197. }
  19198. if (_unknownFields != null) {
  19199. size += _unknownFields.CalculateSize();
  19200. }
  19201. return size;
  19202. }
  19203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19204. public void MergeFrom(RepeatedGroup other) {
  19205. if (other == null) {
  19206. return;
  19207. }
  19208. if (other.repeatedGroupAllTypes_ != null) {
  19209. if (repeatedGroupAllTypes_ == null) {
  19210. RepeatedGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  19211. }
  19212. RepeatedGroupAllTypes.MergeFrom(other.RepeatedGroupAllTypes);
  19213. }
  19214. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  19215. }
  19216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19217. public void MergeFrom(pb::CodedInputStream input) {
  19218. uint tag;
  19219. while ((tag = input.ReadTag()) != 0) {
  19220. switch(tag) {
  19221. case 164:
  19222. return;
  19223. default:
  19224. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  19225. break;
  19226. case 170: {
  19227. if (repeatedGroupAllTypes_ == null) {
  19228. RepeatedGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  19229. }
  19230. input.ReadMessage(RepeatedGroupAllTypes);
  19231. break;
  19232. }
  19233. }
  19234. }
  19235. }
  19236. }
  19237. }
  19238. #endregion
  19239. #region Extensions
  19240. /// <summary>Container for extensions for other messages declared in the TestParsingMerge message type.</summary>
  19241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19242. public static partial class Extensions {
  19243. public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> OptionalExt =
  19244. new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>(1000, pb::FieldCodec.ForMessage(8002, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser));
  19245. public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> RepeatedExt =
  19246. new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>(1001, pb::FieldCodec.ForMessage(8010, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser));
  19247. }
  19248. #endregion
  19249. }
  19250. public sealed partial class TestCommentInjectionMessage : pb::IMessage<TestCommentInjectionMessage> {
  19251. private static readonly pb::MessageParser<TestCommentInjectionMessage> _parser = new pb::MessageParser<TestCommentInjectionMessage>(() => new TestCommentInjectionMessage());
  19252. private pb::UnknownFieldSet _unknownFields;
  19253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19254. public static pb::MessageParser<TestCommentInjectionMessage> Parser { get { return _parser; } }
  19255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19256. public static pbr::MessageDescriptor Descriptor {
  19257. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[55]; }
  19258. }
  19259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19260. pbr::MessageDescriptor pb::IMessage.Descriptor {
  19261. get { return Descriptor; }
  19262. }
  19263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19264. public TestCommentInjectionMessage() {
  19265. OnConstruction();
  19266. }
  19267. partial void OnConstruction();
  19268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19269. public TestCommentInjectionMessage(TestCommentInjectionMessage other) : this() {
  19270. a_ = other.a_;
  19271. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  19272. }
  19273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19274. public TestCommentInjectionMessage Clone() {
  19275. return new TestCommentInjectionMessage(this);
  19276. }
  19277. /// <summary>Field number for the "a" field.</summary>
  19278. public const int AFieldNumber = 1;
  19279. private readonly static string ADefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("Ki8gPC0gTmVpdGhlciBzaG91bGQgdGhpcy4="), 0, 26);
  19280. private string a_;
  19281. /// <summary>
  19282. /// */ &lt;- This should not close the generated doc comment
  19283. /// </summary>
  19284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19285. public string A {
  19286. get { return a_ ?? ADefaultValue; }
  19287. set {
  19288. a_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  19289. }
  19290. }
  19291. /// <summary>Gets whether the "a" field is set</summary>
  19292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19293. public bool HasA {
  19294. get { return a_ != null; }
  19295. }
  19296. /// <summary>Clears the value of the "a" field</summary>
  19297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19298. public void ClearA() {
  19299. a_ = null;
  19300. }
  19301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19302. public override bool Equals(object other) {
  19303. return Equals(other as TestCommentInjectionMessage);
  19304. }
  19305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19306. public bool Equals(TestCommentInjectionMessage other) {
  19307. if (ReferenceEquals(other, null)) {
  19308. return false;
  19309. }
  19310. if (ReferenceEquals(other, this)) {
  19311. return true;
  19312. }
  19313. if (A != other.A) return false;
  19314. return Equals(_unknownFields, other._unknownFields);
  19315. }
  19316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19317. public override int GetHashCode() {
  19318. int hash = 1;
  19319. if (HasA) hash ^= A.GetHashCode();
  19320. if (_unknownFields != null) {
  19321. hash ^= _unknownFields.GetHashCode();
  19322. }
  19323. return hash;
  19324. }
  19325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19326. public override string ToString() {
  19327. return pb::JsonFormatter.ToDiagnosticString(this);
  19328. }
  19329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19330. public void WriteTo(pb::CodedOutputStream output) {
  19331. if (HasA) {
  19332. output.WriteRawTag(10);
  19333. output.WriteString(A);
  19334. }
  19335. if (_unknownFields != null) {
  19336. _unknownFields.WriteTo(output);
  19337. }
  19338. }
  19339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19340. public int CalculateSize() {
  19341. int size = 0;
  19342. if (HasA) {
  19343. size += 1 + pb::CodedOutputStream.ComputeStringSize(A);
  19344. }
  19345. if (_unknownFields != null) {
  19346. size += _unknownFields.CalculateSize();
  19347. }
  19348. return size;
  19349. }
  19350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19351. public void MergeFrom(TestCommentInjectionMessage other) {
  19352. if (other == null) {
  19353. return;
  19354. }
  19355. if (other.HasA) {
  19356. A = other.A;
  19357. }
  19358. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  19359. }
  19360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19361. public void MergeFrom(pb::CodedInputStream input) {
  19362. uint tag;
  19363. while ((tag = input.ReadTag()) != 0) {
  19364. switch(tag) {
  19365. default:
  19366. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  19367. break;
  19368. case 10: {
  19369. A = input.ReadString();
  19370. break;
  19371. }
  19372. }
  19373. }
  19374. }
  19375. }
  19376. /// <summary>
  19377. /// Test that RPC services work.
  19378. /// </summary>
  19379. public sealed partial class FooRequest : pb::IMessage<FooRequest> {
  19380. private static readonly pb::MessageParser<FooRequest> _parser = new pb::MessageParser<FooRequest>(() => new FooRequest());
  19381. private pb::UnknownFieldSet _unknownFields;
  19382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19383. public static pb::MessageParser<FooRequest> Parser { get { return _parser; } }
  19384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19385. public static pbr::MessageDescriptor Descriptor {
  19386. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[56]; }
  19387. }
  19388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19389. pbr::MessageDescriptor pb::IMessage.Descriptor {
  19390. get { return Descriptor; }
  19391. }
  19392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19393. public FooRequest() {
  19394. OnConstruction();
  19395. }
  19396. partial void OnConstruction();
  19397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19398. public FooRequest(FooRequest other) : this() {
  19399. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  19400. }
  19401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19402. public FooRequest Clone() {
  19403. return new FooRequest(this);
  19404. }
  19405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19406. public override bool Equals(object other) {
  19407. return Equals(other as FooRequest);
  19408. }
  19409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19410. public bool Equals(FooRequest other) {
  19411. if (ReferenceEquals(other, null)) {
  19412. return false;
  19413. }
  19414. if (ReferenceEquals(other, this)) {
  19415. return true;
  19416. }
  19417. return Equals(_unknownFields, other._unknownFields);
  19418. }
  19419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19420. public override int GetHashCode() {
  19421. int hash = 1;
  19422. if (_unknownFields != null) {
  19423. hash ^= _unknownFields.GetHashCode();
  19424. }
  19425. return hash;
  19426. }
  19427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19428. public override string ToString() {
  19429. return pb::JsonFormatter.ToDiagnosticString(this);
  19430. }
  19431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19432. public void WriteTo(pb::CodedOutputStream output) {
  19433. if (_unknownFields != null) {
  19434. _unknownFields.WriteTo(output);
  19435. }
  19436. }
  19437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19438. public int CalculateSize() {
  19439. int size = 0;
  19440. if (_unknownFields != null) {
  19441. size += _unknownFields.CalculateSize();
  19442. }
  19443. return size;
  19444. }
  19445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19446. public void MergeFrom(FooRequest other) {
  19447. if (other == null) {
  19448. return;
  19449. }
  19450. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  19451. }
  19452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19453. public void MergeFrom(pb::CodedInputStream input) {
  19454. uint tag;
  19455. while ((tag = input.ReadTag()) != 0) {
  19456. switch(tag) {
  19457. default:
  19458. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  19459. break;
  19460. }
  19461. }
  19462. }
  19463. }
  19464. public sealed partial class FooResponse : pb::IMessage<FooResponse> {
  19465. private static readonly pb::MessageParser<FooResponse> _parser = new pb::MessageParser<FooResponse>(() => new FooResponse());
  19466. private pb::UnknownFieldSet _unknownFields;
  19467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19468. public static pb::MessageParser<FooResponse> Parser { get { return _parser; } }
  19469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19470. public static pbr::MessageDescriptor Descriptor {
  19471. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[57]; }
  19472. }
  19473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19474. pbr::MessageDescriptor pb::IMessage.Descriptor {
  19475. get { return Descriptor; }
  19476. }
  19477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19478. public FooResponse() {
  19479. OnConstruction();
  19480. }
  19481. partial void OnConstruction();
  19482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19483. public FooResponse(FooResponse other) : this() {
  19484. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  19485. }
  19486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19487. public FooResponse Clone() {
  19488. return new FooResponse(this);
  19489. }
  19490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19491. public override bool Equals(object other) {
  19492. return Equals(other as FooResponse);
  19493. }
  19494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19495. public bool Equals(FooResponse other) {
  19496. if (ReferenceEquals(other, null)) {
  19497. return false;
  19498. }
  19499. if (ReferenceEquals(other, this)) {
  19500. return true;
  19501. }
  19502. return Equals(_unknownFields, other._unknownFields);
  19503. }
  19504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19505. public override int GetHashCode() {
  19506. int hash = 1;
  19507. if (_unknownFields != null) {
  19508. hash ^= _unknownFields.GetHashCode();
  19509. }
  19510. return hash;
  19511. }
  19512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19513. public override string ToString() {
  19514. return pb::JsonFormatter.ToDiagnosticString(this);
  19515. }
  19516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19517. public void WriteTo(pb::CodedOutputStream output) {
  19518. if (_unknownFields != null) {
  19519. _unknownFields.WriteTo(output);
  19520. }
  19521. }
  19522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19523. public int CalculateSize() {
  19524. int size = 0;
  19525. if (_unknownFields != null) {
  19526. size += _unknownFields.CalculateSize();
  19527. }
  19528. return size;
  19529. }
  19530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19531. public void MergeFrom(FooResponse other) {
  19532. if (other == null) {
  19533. return;
  19534. }
  19535. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  19536. }
  19537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19538. public void MergeFrom(pb::CodedInputStream input) {
  19539. uint tag;
  19540. while ((tag = input.ReadTag()) != 0) {
  19541. switch(tag) {
  19542. default:
  19543. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  19544. break;
  19545. }
  19546. }
  19547. }
  19548. }
  19549. public sealed partial class FooClientMessage : pb::IMessage<FooClientMessage> {
  19550. private static readonly pb::MessageParser<FooClientMessage> _parser = new pb::MessageParser<FooClientMessage>(() => new FooClientMessage());
  19551. private pb::UnknownFieldSet _unknownFields;
  19552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19553. public static pb::MessageParser<FooClientMessage> Parser { get { return _parser; } }
  19554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19555. public static pbr::MessageDescriptor Descriptor {
  19556. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[58]; }
  19557. }
  19558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19559. pbr::MessageDescriptor pb::IMessage.Descriptor {
  19560. get { return Descriptor; }
  19561. }
  19562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19563. public FooClientMessage() {
  19564. OnConstruction();
  19565. }
  19566. partial void OnConstruction();
  19567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19568. public FooClientMessage(FooClientMessage other) : this() {
  19569. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  19570. }
  19571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19572. public FooClientMessage Clone() {
  19573. return new FooClientMessage(this);
  19574. }
  19575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19576. public override bool Equals(object other) {
  19577. return Equals(other as FooClientMessage);
  19578. }
  19579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19580. public bool Equals(FooClientMessage other) {
  19581. if (ReferenceEquals(other, null)) {
  19582. return false;
  19583. }
  19584. if (ReferenceEquals(other, this)) {
  19585. return true;
  19586. }
  19587. return Equals(_unknownFields, other._unknownFields);
  19588. }
  19589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19590. public override int GetHashCode() {
  19591. int hash = 1;
  19592. if (_unknownFields != null) {
  19593. hash ^= _unknownFields.GetHashCode();
  19594. }
  19595. return hash;
  19596. }
  19597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19598. public override string ToString() {
  19599. return pb::JsonFormatter.ToDiagnosticString(this);
  19600. }
  19601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19602. public void WriteTo(pb::CodedOutputStream output) {
  19603. if (_unknownFields != null) {
  19604. _unknownFields.WriteTo(output);
  19605. }
  19606. }
  19607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19608. public int CalculateSize() {
  19609. int size = 0;
  19610. if (_unknownFields != null) {
  19611. size += _unknownFields.CalculateSize();
  19612. }
  19613. return size;
  19614. }
  19615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19616. public void MergeFrom(FooClientMessage other) {
  19617. if (other == null) {
  19618. return;
  19619. }
  19620. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  19621. }
  19622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19623. public void MergeFrom(pb::CodedInputStream input) {
  19624. uint tag;
  19625. while ((tag = input.ReadTag()) != 0) {
  19626. switch(tag) {
  19627. default:
  19628. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  19629. break;
  19630. }
  19631. }
  19632. }
  19633. }
  19634. public sealed partial class FooServerMessage : pb::IMessage<FooServerMessage> {
  19635. private static readonly pb::MessageParser<FooServerMessage> _parser = new pb::MessageParser<FooServerMessage>(() => new FooServerMessage());
  19636. private pb::UnknownFieldSet _unknownFields;
  19637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19638. public static pb::MessageParser<FooServerMessage> Parser { get { return _parser; } }
  19639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19640. public static pbr::MessageDescriptor Descriptor {
  19641. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[59]; }
  19642. }
  19643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19644. pbr::MessageDescriptor pb::IMessage.Descriptor {
  19645. get { return Descriptor; }
  19646. }
  19647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19648. public FooServerMessage() {
  19649. OnConstruction();
  19650. }
  19651. partial void OnConstruction();
  19652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19653. public FooServerMessage(FooServerMessage other) : this() {
  19654. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  19655. }
  19656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19657. public FooServerMessage Clone() {
  19658. return new FooServerMessage(this);
  19659. }
  19660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19661. public override bool Equals(object other) {
  19662. return Equals(other as FooServerMessage);
  19663. }
  19664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19665. public bool Equals(FooServerMessage other) {
  19666. if (ReferenceEquals(other, null)) {
  19667. return false;
  19668. }
  19669. if (ReferenceEquals(other, this)) {
  19670. return true;
  19671. }
  19672. return Equals(_unknownFields, other._unknownFields);
  19673. }
  19674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19675. public override int GetHashCode() {
  19676. int hash = 1;
  19677. if (_unknownFields != null) {
  19678. hash ^= _unknownFields.GetHashCode();
  19679. }
  19680. return hash;
  19681. }
  19682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19683. public override string ToString() {
  19684. return pb::JsonFormatter.ToDiagnosticString(this);
  19685. }
  19686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19687. public void WriteTo(pb::CodedOutputStream output) {
  19688. if (_unknownFields != null) {
  19689. _unknownFields.WriteTo(output);
  19690. }
  19691. }
  19692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19693. public int CalculateSize() {
  19694. int size = 0;
  19695. if (_unknownFields != null) {
  19696. size += _unknownFields.CalculateSize();
  19697. }
  19698. return size;
  19699. }
  19700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19701. public void MergeFrom(FooServerMessage other) {
  19702. if (other == null) {
  19703. return;
  19704. }
  19705. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  19706. }
  19707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19708. public void MergeFrom(pb::CodedInputStream input) {
  19709. uint tag;
  19710. while ((tag = input.ReadTag()) != 0) {
  19711. switch(tag) {
  19712. default:
  19713. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  19714. break;
  19715. }
  19716. }
  19717. }
  19718. }
  19719. public sealed partial class BarRequest : pb::IMessage<BarRequest> {
  19720. private static readonly pb::MessageParser<BarRequest> _parser = new pb::MessageParser<BarRequest>(() => new BarRequest());
  19721. private pb::UnknownFieldSet _unknownFields;
  19722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19723. public static pb::MessageParser<BarRequest> Parser { get { return _parser; } }
  19724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19725. public static pbr::MessageDescriptor Descriptor {
  19726. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[60]; }
  19727. }
  19728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19729. pbr::MessageDescriptor pb::IMessage.Descriptor {
  19730. get { return Descriptor; }
  19731. }
  19732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19733. public BarRequest() {
  19734. OnConstruction();
  19735. }
  19736. partial void OnConstruction();
  19737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19738. public BarRequest(BarRequest other) : this() {
  19739. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  19740. }
  19741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19742. public BarRequest Clone() {
  19743. return new BarRequest(this);
  19744. }
  19745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19746. public override bool Equals(object other) {
  19747. return Equals(other as BarRequest);
  19748. }
  19749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19750. public bool Equals(BarRequest other) {
  19751. if (ReferenceEquals(other, null)) {
  19752. return false;
  19753. }
  19754. if (ReferenceEquals(other, this)) {
  19755. return true;
  19756. }
  19757. return Equals(_unknownFields, other._unknownFields);
  19758. }
  19759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19760. public override int GetHashCode() {
  19761. int hash = 1;
  19762. if (_unknownFields != null) {
  19763. hash ^= _unknownFields.GetHashCode();
  19764. }
  19765. return hash;
  19766. }
  19767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19768. public override string ToString() {
  19769. return pb::JsonFormatter.ToDiagnosticString(this);
  19770. }
  19771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19772. public void WriteTo(pb::CodedOutputStream output) {
  19773. if (_unknownFields != null) {
  19774. _unknownFields.WriteTo(output);
  19775. }
  19776. }
  19777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19778. public int CalculateSize() {
  19779. int size = 0;
  19780. if (_unknownFields != null) {
  19781. size += _unknownFields.CalculateSize();
  19782. }
  19783. return size;
  19784. }
  19785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19786. public void MergeFrom(BarRequest other) {
  19787. if (other == null) {
  19788. return;
  19789. }
  19790. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  19791. }
  19792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19793. public void MergeFrom(pb::CodedInputStream input) {
  19794. uint tag;
  19795. while ((tag = input.ReadTag()) != 0) {
  19796. switch(tag) {
  19797. default:
  19798. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  19799. break;
  19800. }
  19801. }
  19802. }
  19803. }
  19804. public sealed partial class BarResponse : pb::IMessage<BarResponse> {
  19805. private static readonly pb::MessageParser<BarResponse> _parser = new pb::MessageParser<BarResponse>(() => new BarResponse());
  19806. private pb::UnknownFieldSet _unknownFields;
  19807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19808. public static pb::MessageParser<BarResponse> Parser { get { return _parser; } }
  19809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19810. public static pbr::MessageDescriptor Descriptor {
  19811. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[61]; }
  19812. }
  19813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19814. pbr::MessageDescriptor pb::IMessage.Descriptor {
  19815. get { return Descriptor; }
  19816. }
  19817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19818. public BarResponse() {
  19819. OnConstruction();
  19820. }
  19821. partial void OnConstruction();
  19822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19823. public BarResponse(BarResponse other) : this() {
  19824. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  19825. }
  19826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19827. public BarResponse Clone() {
  19828. return new BarResponse(this);
  19829. }
  19830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19831. public override bool Equals(object other) {
  19832. return Equals(other as BarResponse);
  19833. }
  19834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19835. public bool Equals(BarResponse other) {
  19836. if (ReferenceEquals(other, null)) {
  19837. return false;
  19838. }
  19839. if (ReferenceEquals(other, this)) {
  19840. return true;
  19841. }
  19842. return Equals(_unknownFields, other._unknownFields);
  19843. }
  19844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19845. public override int GetHashCode() {
  19846. int hash = 1;
  19847. if (_unknownFields != null) {
  19848. hash ^= _unknownFields.GetHashCode();
  19849. }
  19850. return hash;
  19851. }
  19852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19853. public override string ToString() {
  19854. return pb::JsonFormatter.ToDiagnosticString(this);
  19855. }
  19856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19857. public void WriteTo(pb::CodedOutputStream output) {
  19858. if (_unknownFields != null) {
  19859. _unknownFields.WriteTo(output);
  19860. }
  19861. }
  19862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19863. public int CalculateSize() {
  19864. int size = 0;
  19865. if (_unknownFields != null) {
  19866. size += _unknownFields.CalculateSize();
  19867. }
  19868. return size;
  19869. }
  19870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19871. public void MergeFrom(BarResponse other) {
  19872. if (other == null) {
  19873. return;
  19874. }
  19875. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  19876. }
  19877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19878. public void MergeFrom(pb::CodedInputStream input) {
  19879. uint tag;
  19880. while ((tag = input.ReadTag()) != 0) {
  19881. switch(tag) {
  19882. default:
  19883. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  19884. break;
  19885. }
  19886. }
  19887. }
  19888. }
  19889. public sealed partial class TestJsonName : pb::IMessage<TestJsonName> {
  19890. private static readonly pb::MessageParser<TestJsonName> _parser = new pb::MessageParser<TestJsonName>(() => new TestJsonName());
  19891. private pb::UnknownFieldSet _unknownFields;
  19892. private int _hasBits0;
  19893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19894. public static pb::MessageParser<TestJsonName> Parser { get { return _parser; } }
  19895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19896. public static pbr::MessageDescriptor Descriptor {
  19897. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[62]; }
  19898. }
  19899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19900. pbr::MessageDescriptor pb::IMessage.Descriptor {
  19901. get { return Descriptor; }
  19902. }
  19903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19904. public TestJsonName() {
  19905. OnConstruction();
  19906. }
  19907. partial void OnConstruction();
  19908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19909. public TestJsonName(TestJsonName other) : this() {
  19910. _hasBits0 = other._hasBits0;
  19911. fieldName1_ = other.fieldName1_;
  19912. fieldName2_ = other.fieldName2_;
  19913. fieldName3_ = other.fieldName3_;
  19914. FieldName4_ = other.FieldName4_;
  19915. fIELDNAME5_ = other.fIELDNAME5_;
  19916. fieldName6_ = other.fieldName6_;
  19917. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  19918. }
  19919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19920. public TestJsonName Clone() {
  19921. return new TestJsonName(this);
  19922. }
  19923. /// <summary>Field number for the "field_name1" field.</summary>
  19924. public const int FieldName1FieldNumber = 1;
  19925. private readonly static int FieldName1DefaultValue = 0;
  19926. private int fieldName1_;
  19927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19928. public int FieldName1 {
  19929. get { if ((_hasBits0 & 1) != 0) { return fieldName1_; } else { return FieldName1DefaultValue; } }
  19930. set {
  19931. _hasBits0 |= 1;
  19932. fieldName1_ = value;
  19933. }
  19934. }
  19935. /// <summary>Gets whether the "field_name1" field is set</summary>
  19936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19937. public bool HasFieldName1 {
  19938. get { return (_hasBits0 & 1) != 0; }
  19939. }
  19940. /// <summary>Clears the value of the "field_name1" field</summary>
  19941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19942. public void ClearFieldName1() {
  19943. _hasBits0 &= ~1;
  19944. }
  19945. /// <summary>Field number for the "fieldName2" field.</summary>
  19946. public const int FieldName2FieldNumber = 2;
  19947. private readonly static int FieldName2DefaultValue = 0;
  19948. private int fieldName2_;
  19949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19950. public int FieldName2 {
  19951. get { if ((_hasBits0 & 2) != 0) { return fieldName2_; } else { return FieldName2DefaultValue; } }
  19952. set {
  19953. _hasBits0 |= 2;
  19954. fieldName2_ = value;
  19955. }
  19956. }
  19957. /// <summary>Gets whether the "fieldName2" field is set</summary>
  19958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19959. public bool HasFieldName2 {
  19960. get { return (_hasBits0 & 2) != 0; }
  19961. }
  19962. /// <summary>Clears the value of the "fieldName2" field</summary>
  19963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19964. public void ClearFieldName2() {
  19965. _hasBits0 &= ~2;
  19966. }
  19967. /// <summary>Field number for the "FieldName3" field.</summary>
  19968. public const int FieldName3FieldNumber = 3;
  19969. private readonly static int FieldName3DefaultValue = 0;
  19970. private int fieldName3_;
  19971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19972. public int FieldName3 {
  19973. get { if ((_hasBits0 & 4) != 0) { return fieldName3_; } else { return FieldName3DefaultValue; } }
  19974. set {
  19975. _hasBits0 |= 4;
  19976. fieldName3_ = value;
  19977. }
  19978. }
  19979. /// <summary>Gets whether the "FieldName3" field is set</summary>
  19980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19981. public bool HasFieldName3 {
  19982. get { return (_hasBits0 & 4) != 0; }
  19983. }
  19984. /// <summary>Clears the value of the "FieldName3" field</summary>
  19985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19986. public void ClearFieldName3() {
  19987. _hasBits0 &= ~4;
  19988. }
  19989. /// <summary>Field number for the "_field_name4" field.</summary>
  19990. public const int FieldName4FieldNumber = 4;
  19991. private readonly static int FieldName4DefaultValue = 0;
  19992. private int FieldName4_;
  19993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  19994. public int FieldName4 {
  19995. get { if ((_hasBits0 & 8) != 0) { return FieldName4_; } else { return FieldName4DefaultValue; } }
  19996. set {
  19997. _hasBits0 |= 8;
  19998. FieldName4_ = value;
  19999. }
  20000. }
  20001. /// <summary>Gets whether the "_field_name4" field is set</summary>
  20002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20003. public bool HasFieldName4 {
  20004. get { return (_hasBits0 & 8) != 0; }
  20005. }
  20006. /// <summary>Clears the value of the "_field_name4" field</summary>
  20007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20008. public void ClearFieldName4() {
  20009. _hasBits0 &= ~8;
  20010. }
  20011. /// <summary>Field number for the "FIELD_NAME5" field.</summary>
  20012. public const int FIELDNAME5FieldNumber = 5;
  20013. private readonly static int FIELDNAME5DefaultValue = 0;
  20014. private int fIELDNAME5_;
  20015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20016. public int FIELDNAME5 {
  20017. get { if ((_hasBits0 & 16) != 0) { return fIELDNAME5_; } else { return FIELDNAME5DefaultValue; } }
  20018. set {
  20019. _hasBits0 |= 16;
  20020. fIELDNAME5_ = value;
  20021. }
  20022. }
  20023. /// <summary>Gets whether the "FIELD_NAME5" field is set</summary>
  20024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20025. public bool HasFIELDNAME5 {
  20026. get { return (_hasBits0 & 16) != 0; }
  20027. }
  20028. /// <summary>Clears the value of the "FIELD_NAME5" field</summary>
  20029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20030. public void ClearFIELDNAME5() {
  20031. _hasBits0 &= ~16;
  20032. }
  20033. /// <summary>Field number for the "field_name6" field.</summary>
  20034. public const int FieldName6FieldNumber = 6;
  20035. private readonly static int FieldName6DefaultValue = 0;
  20036. private int fieldName6_;
  20037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20038. public int FieldName6 {
  20039. get { if ((_hasBits0 & 32) != 0) { return fieldName6_; } else { return FieldName6DefaultValue; } }
  20040. set {
  20041. _hasBits0 |= 32;
  20042. fieldName6_ = value;
  20043. }
  20044. }
  20045. /// <summary>Gets whether the "field_name6" field is set</summary>
  20046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20047. public bool HasFieldName6 {
  20048. get { return (_hasBits0 & 32) != 0; }
  20049. }
  20050. /// <summary>Clears the value of the "field_name6" field</summary>
  20051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20052. public void ClearFieldName6() {
  20053. _hasBits0 &= ~32;
  20054. }
  20055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20056. public override bool Equals(object other) {
  20057. return Equals(other as TestJsonName);
  20058. }
  20059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20060. public bool Equals(TestJsonName other) {
  20061. if (ReferenceEquals(other, null)) {
  20062. return false;
  20063. }
  20064. if (ReferenceEquals(other, this)) {
  20065. return true;
  20066. }
  20067. if (FieldName1 != other.FieldName1) return false;
  20068. if (FieldName2 != other.FieldName2) return false;
  20069. if (FieldName3 != other.FieldName3) return false;
  20070. if (FieldName4 != other.FieldName4) return false;
  20071. if (FIELDNAME5 != other.FIELDNAME5) return false;
  20072. if (FieldName6 != other.FieldName6) return false;
  20073. return Equals(_unknownFields, other._unknownFields);
  20074. }
  20075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20076. public override int GetHashCode() {
  20077. int hash = 1;
  20078. if (HasFieldName1) hash ^= FieldName1.GetHashCode();
  20079. if (HasFieldName2) hash ^= FieldName2.GetHashCode();
  20080. if (HasFieldName3) hash ^= FieldName3.GetHashCode();
  20081. if (HasFieldName4) hash ^= FieldName4.GetHashCode();
  20082. if (HasFIELDNAME5) hash ^= FIELDNAME5.GetHashCode();
  20083. if (HasFieldName6) hash ^= FieldName6.GetHashCode();
  20084. if (_unknownFields != null) {
  20085. hash ^= _unknownFields.GetHashCode();
  20086. }
  20087. return hash;
  20088. }
  20089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20090. public override string ToString() {
  20091. return pb::JsonFormatter.ToDiagnosticString(this);
  20092. }
  20093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20094. public void WriteTo(pb::CodedOutputStream output) {
  20095. if (HasFieldName1) {
  20096. output.WriteRawTag(8);
  20097. output.WriteInt32(FieldName1);
  20098. }
  20099. if (HasFieldName2) {
  20100. output.WriteRawTag(16);
  20101. output.WriteInt32(FieldName2);
  20102. }
  20103. if (HasFieldName3) {
  20104. output.WriteRawTag(24);
  20105. output.WriteInt32(FieldName3);
  20106. }
  20107. if (HasFieldName4) {
  20108. output.WriteRawTag(32);
  20109. output.WriteInt32(FieldName4);
  20110. }
  20111. if (HasFIELDNAME5) {
  20112. output.WriteRawTag(40);
  20113. output.WriteInt32(FIELDNAME5);
  20114. }
  20115. if (HasFieldName6) {
  20116. output.WriteRawTag(48);
  20117. output.WriteInt32(FieldName6);
  20118. }
  20119. if (_unknownFields != null) {
  20120. _unknownFields.WriteTo(output);
  20121. }
  20122. }
  20123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20124. public int CalculateSize() {
  20125. int size = 0;
  20126. if (HasFieldName1) {
  20127. size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName1);
  20128. }
  20129. if (HasFieldName2) {
  20130. size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName2);
  20131. }
  20132. if (HasFieldName3) {
  20133. size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName3);
  20134. }
  20135. if (HasFieldName4) {
  20136. size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName4);
  20137. }
  20138. if (HasFIELDNAME5) {
  20139. size += 1 + pb::CodedOutputStream.ComputeInt32Size(FIELDNAME5);
  20140. }
  20141. if (HasFieldName6) {
  20142. size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName6);
  20143. }
  20144. if (_unknownFields != null) {
  20145. size += _unknownFields.CalculateSize();
  20146. }
  20147. return size;
  20148. }
  20149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20150. public void MergeFrom(TestJsonName other) {
  20151. if (other == null) {
  20152. return;
  20153. }
  20154. if (other.HasFieldName1) {
  20155. FieldName1 = other.FieldName1;
  20156. }
  20157. if (other.HasFieldName2) {
  20158. FieldName2 = other.FieldName2;
  20159. }
  20160. if (other.HasFieldName3) {
  20161. FieldName3 = other.FieldName3;
  20162. }
  20163. if (other.HasFieldName4) {
  20164. FieldName4 = other.FieldName4;
  20165. }
  20166. if (other.HasFIELDNAME5) {
  20167. FIELDNAME5 = other.FIELDNAME5;
  20168. }
  20169. if (other.HasFieldName6) {
  20170. FieldName6 = other.FieldName6;
  20171. }
  20172. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  20173. }
  20174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20175. public void MergeFrom(pb::CodedInputStream input) {
  20176. uint tag;
  20177. while ((tag = input.ReadTag()) != 0) {
  20178. switch(tag) {
  20179. default:
  20180. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  20181. break;
  20182. case 8: {
  20183. FieldName1 = input.ReadInt32();
  20184. break;
  20185. }
  20186. case 16: {
  20187. FieldName2 = input.ReadInt32();
  20188. break;
  20189. }
  20190. case 24: {
  20191. FieldName3 = input.ReadInt32();
  20192. break;
  20193. }
  20194. case 32: {
  20195. FieldName4 = input.ReadInt32();
  20196. break;
  20197. }
  20198. case 40: {
  20199. FIELDNAME5 = input.ReadInt32();
  20200. break;
  20201. }
  20202. case 48: {
  20203. FieldName6 = input.ReadInt32();
  20204. break;
  20205. }
  20206. }
  20207. }
  20208. }
  20209. }
  20210. public sealed partial class TestHugeFieldNumbers : pb::IExtendableMessage<TestHugeFieldNumbers> {
  20211. private static readonly pb::MessageParser<TestHugeFieldNumbers> _parser = new pb::MessageParser<TestHugeFieldNumbers>(() => new TestHugeFieldNumbers());
  20212. private pb::UnknownFieldSet _unknownFields;
  20213. private pb::ExtensionSet<TestHugeFieldNumbers> _extensions;
  20214. private pb::ExtensionSet<TestHugeFieldNumbers> _Extensions { get { return _extensions; } }
  20215. private int _hasBits0;
  20216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20217. public static pb::MessageParser<TestHugeFieldNumbers> Parser { get { return _parser; } }
  20218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20219. public static pbr::MessageDescriptor Descriptor {
  20220. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[63]; }
  20221. }
  20222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20223. pbr::MessageDescriptor pb::IMessage.Descriptor {
  20224. get { return Descriptor; }
  20225. }
  20226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20227. public TestHugeFieldNumbers() {
  20228. OnConstruction();
  20229. }
  20230. partial void OnConstruction();
  20231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20232. public TestHugeFieldNumbers(TestHugeFieldNumbers other) : this() {
  20233. _hasBits0 = other._hasBits0;
  20234. optionalInt32_ = other.optionalInt32_;
  20235. fixed32_ = other.fixed32_;
  20236. repeatedInt32_ = other.repeatedInt32_.Clone();
  20237. packedInt32_ = other.packedInt32_.Clone();
  20238. optionalEnum_ = other.optionalEnum_;
  20239. optionalString_ = other.optionalString_;
  20240. optionalBytes_ = other.optionalBytes_;
  20241. optionalMessage_ = other.optionalMessage_ != null ? other.optionalMessage_.Clone() : null;
  20242. optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
  20243. stringStringMap_ = other.stringStringMap_.Clone();
  20244. switch (other.OneofFieldCase) {
  20245. case OneofFieldOneofCase.OneofUint32:
  20246. OneofUint32 = other.OneofUint32;
  20247. break;
  20248. case OneofFieldOneofCase.OneofTestAllTypes:
  20249. OneofTestAllTypes = other.OneofTestAllTypes.Clone();
  20250. break;
  20251. case OneofFieldOneofCase.OneofString:
  20252. OneofString = other.OneofString;
  20253. break;
  20254. case OneofFieldOneofCase.OneofBytes:
  20255. OneofBytes = other.OneofBytes;
  20256. break;
  20257. }
  20258. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  20259. _extensions = pb::ExtensionSet.Clone(other._extensions);
  20260. }
  20261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20262. public TestHugeFieldNumbers Clone() {
  20263. return new TestHugeFieldNumbers(this);
  20264. }
  20265. /// <summary>Field number for the "optional_int32" field.</summary>
  20266. public const int OptionalInt32FieldNumber = 536870000;
  20267. private readonly static int OptionalInt32DefaultValue = 0;
  20268. private int optionalInt32_;
  20269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20270. public int OptionalInt32 {
  20271. get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
  20272. set {
  20273. _hasBits0 |= 1;
  20274. optionalInt32_ = value;
  20275. }
  20276. }
  20277. /// <summary>Gets whether the "optional_int32" field is set</summary>
  20278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20279. public bool HasOptionalInt32 {
  20280. get { return (_hasBits0 & 1) != 0; }
  20281. }
  20282. /// <summary>Clears the value of the "optional_int32" field</summary>
  20283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20284. public void ClearOptionalInt32() {
  20285. _hasBits0 &= ~1;
  20286. }
  20287. /// <summary>Field number for the "fixed_32" field.</summary>
  20288. public const int Fixed32FieldNumber = 536870001;
  20289. private readonly static int Fixed32DefaultValue = 0;
  20290. private int fixed32_;
  20291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20292. public int Fixed32 {
  20293. get { if ((_hasBits0 & 2) != 0) { return fixed32_; } else { return Fixed32DefaultValue; } }
  20294. set {
  20295. _hasBits0 |= 2;
  20296. fixed32_ = value;
  20297. }
  20298. }
  20299. /// <summary>Gets whether the "fixed_32" field is set</summary>
  20300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20301. public bool HasFixed32 {
  20302. get { return (_hasBits0 & 2) != 0; }
  20303. }
  20304. /// <summary>Clears the value of the "fixed_32" field</summary>
  20305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20306. public void ClearFixed32() {
  20307. _hasBits0 &= ~2;
  20308. }
  20309. /// <summary>Field number for the "repeated_int32" field.</summary>
  20310. public const int RepeatedInt32FieldNumber = 536870002;
  20311. private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
  20312. = pb::FieldCodec.ForInt32(4294960016);
  20313. private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
  20314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20315. public pbc::RepeatedField<int> RepeatedInt32 {
  20316. get { return repeatedInt32_; }
  20317. }
  20318. /// <summary>Field number for the "packed_int32" field.</summary>
  20319. public const int PackedInt32FieldNumber = 536870003;
  20320. private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec
  20321. = pb::FieldCodec.ForInt32(4294960026);
  20322. private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>();
  20323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20324. public pbc::RepeatedField<int> PackedInt32 {
  20325. get { return packedInt32_; }
  20326. }
  20327. /// <summary>Field number for the "optional_enum" field.</summary>
  20328. public const int OptionalEnumFieldNumber = 536870004;
  20329. private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
  20330. private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum optionalEnum_;
  20331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20332. public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalEnum {
  20333. get { if ((_hasBits0 & 4) != 0) { return optionalEnum_; } else { return OptionalEnumDefaultValue; } }
  20334. set {
  20335. _hasBits0 |= 4;
  20336. optionalEnum_ = value;
  20337. }
  20338. }
  20339. /// <summary>Gets whether the "optional_enum" field is set</summary>
  20340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20341. public bool HasOptionalEnum {
  20342. get { return (_hasBits0 & 4) != 0; }
  20343. }
  20344. /// <summary>Clears the value of the "optional_enum" field</summary>
  20345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20346. public void ClearOptionalEnum() {
  20347. _hasBits0 &= ~4;
  20348. }
  20349. /// <summary>Field number for the "optional_string" field.</summary>
  20350. public const int OptionalStringFieldNumber = 536870005;
  20351. private readonly static string OptionalStringDefaultValue = "";
  20352. private string optionalString_;
  20353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20354. public string OptionalString {
  20355. get { return optionalString_ ?? OptionalStringDefaultValue; }
  20356. set {
  20357. optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  20358. }
  20359. }
  20360. /// <summary>Gets whether the "optional_string" field is set</summary>
  20361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20362. public bool HasOptionalString {
  20363. get { return optionalString_ != null; }
  20364. }
  20365. /// <summary>Clears the value of the "optional_string" field</summary>
  20366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20367. public void ClearOptionalString() {
  20368. optionalString_ = null;
  20369. }
  20370. /// <summary>Field number for the "optional_bytes" field.</summary>
  20371. public const int OptionalBytesFieldNumber = 536870006;
  20372. private readonly static pb::ByteString OptionalBytesDefaultValue = pb::ByteString.Empty;
  20373. private pb::ByteString optionalBytes_;
  20374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20375. public pb::ByteString OptionalBytes {
  20376. get { return optionalBytes_ ?? OptionalBytesDefaultValue; }
  20377. set {
  20378. optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  20379. }
  20380. }
  20381. /// <summary>Gets whether the "optional_bytes" field is set</summary>
  20382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20383. public bool HasOptionalBytes {
  20384. get { return optionalBytes_ != null; }
  20385. }
  20386. /// <summary>Clears the value of the "optional_bytes" field</summary>
  20387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20388. public void ClearOptionalBytes() {
  20389. optionalBytes_ = null;
  20390. }
  20391. /// <summary>Field number for the "optional_message" field.</summary>
  20392. public const int OptionalMessageFieldNumber = 536870007;
  20393. private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage optionalMessage_;
  20394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20395. public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage OptionalMessage {
  20396. get { return optionalMessage_; }
  20397. set {
  20398. optionalMessage_ = value;
  20399. }
  20400. }
  20401. /// <summary>Field number for the "optionalgroup" field.</summary>
  20402. public const int OptionalGroupFieldNumber = 536870008;
  20403. private global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup optionalGroup_;
  20404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20405. public global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup OptionalGroup {
  20406. get { return optionalGroup_; }
  20407. set {
  20408. optionalGroup_ = value;
  20409. }
  20410. }
  20411. /// <summary>Gets whether the optionalgroup field is set</summary>
  20412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20413. public bool HasOptionalGroup {
  20414. get { return optionalGroup_ != null; }
  20415. }
  20416. /// <summary>Clears the value of the optionalgroup field</summary>
  20417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20418. public void ClearOptionalGroup() {
  20419. optionalGroup_ = null;
  20420. }
  20421. /// <summary>Field number for the "string_string_map" field.</summary>
  20422. public const int StringStringMapFieldNumber = 536870010;
  20423. private static readonly pbc::MapField<string, string>.Codec _map_stringStringMap_codec
  20424. = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 4294960082);
  20425. private readonly pbc::MapField<string, string> stringStringMap_ = new pbc::MapField<string, string>();
  20426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20427. public pbc::MapField<string, string> StringStringMap {
  20428. get { return stringStringMap_; }
  20429. }
  20430. /// <summary>Field number for the "oneof_uint32" field.</summary>
  20431. public const int OneofUint32FieldNumber = 536870011;
  20432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20433. public uint OneofUint32 {
  20434. get { return HasOneofUint32 ? (uint) oneofField_ : 0; }
  20435. set {
  20436. oneofField_ = value;
  20437. oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
  20438. }
  20439. }
  20440. /// <summary>Gets whether the "oneof_uint32" field is set</summary>
  20441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20442. public bool HasOneofUint32 {
  20443. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32; }
  20444. }
  20445. /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint32" </summary>
  20446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20447. public void ClearOneofUint32() {
  20448. if (HasOneofUint32) {
  20449. ClearOneofField();
  20450. }
  20451. }
  20452. /// <summary>Field number for the "oneof_test_all_types" field.</summary>
  20453. public const int OneofTestAllTypesFieldNumber = 536870012;
  20454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20455. public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes OneofTestAllTypes {
  20456. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes ? (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes) oneofField_ : null; }
  20457. set {
  20458. oneofField_ = value;
  20459. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofTestAllTypes;
  20460. }
  20461. }
  20462. /// <summary>Field number for the "oneof_string" field.</summary>
  20463. public const int OneofStringFieldNumber = 536870013;
  20464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20465. public string OneofString {
  20466. get { return HasOneofString ? (string) oneofField_ : ""; }
  20467. set {
  20468. oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  20469. oneofFieldCase_ = OneofFieldOneofCase.OneofString;
  20470. }
  20471. }
  20472. /// <summary>Gets whether the "oneof_string" field is set</summary>
  20473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20474. public bool HasOneofString {
  20475. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString; }
  20476. }
  20477. /// <summary> Clears the value of the oneof if it's currently set to "oneof_string" </summary>
  20478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20479. public void ClearOneofString() {
  20480. if (HasOneofString) {
  20481. ClearOneofField();
  20482. }
  20483. }
  20484. /// <summary>Field number for the "oneof_bytes" field.</summary>
  20485. public const int OneofBytesFieldNumber = 536870014;
  20486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20487. public pb::ByteString OneofBytes {
  20488. get { return HasOneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
  20489. set {
  20490. oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  20491. oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
  20492. }
  20493. }
  20494. /// <summary>Gets whether the "oneof_bytes" field is set</summary>
  20495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20496. public bool HasOneofBytes {
  20497. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes; }
  20498. }
  20499. /// <summary> Clears the value of the oneof if it's currently set to "oneof_bytes" </summary>
  20500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20501. public void ClearOneofBytes() {
  20502. if (HasOneofBytes) {
  20503. ClearOneofField();
  20504. }
  20505. }
  20506. private object oneofField_;
  20507. /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
  20508. public enum OneofFieldOneofCase {
  20509. None = 0,
  20510. OneofUint32 = 536870011,
  20511. OneofTestAllTypes = 536870012,
  20512. OneofString = 536870013,
  20513. OneofBytes = 536870014,
  20514. }
  20515. private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
  20516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20517. public OneofFieldOneofCase OneofFieldCase {
  20518. get { return oneofFieldCase_; }
  20519. }
  20520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20521. public void ClearOneofField() {
  20522. oneofFieldCase_ = OneofFieldOneofCase.None;
  20523. oneofField_ = null;
  20524. }
  20525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20526. public override bool Equals(object other) {
  20527. return Equals(other as TestHugeFieldNumbers);
  20528. }
  20529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20530. public bool Equals(TestHugeFieldNumbers other) {
  20531. if (ReferenceEquals(other, null)) {
  20532. return false;
  20533. }
  20534. if (ReferenceEquals(other, this)) {
  20535. return true;
  20536. }
  20537. if (OptionalInt32 != other.OptionalInt32) return false;
  20538. if (Fixed32 != other.Fixed32) return false;
  20539. if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
  20540. if(!packedInt32_.Equals(other.packedInt32_)) return false;
  20541. if (OptionalEnum != other.OptionalEnum) return false;
  20542. if (OptionalString != other.OptionalString) return false;
  20543. if (OptionalBytes != other.OptionalBytes) return false;
  20544. if (!object.Equals(OptionalMessage, other.OptionalMessage)) return false;
  20545. if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
  20546. if (!StringStringMap.Equals(other.StringStringMap)) return false;
  20547. if (OneofUint32 != other.OneofUint32) return false;
  20548. if (!object.Equals(OneofTestAllTypes, other.OneofTestAllTypes)) return false;
  20549. if (OneofString != other.OneofString) return false;
  20550. if (OneofBytes != other.OneofBytes) return false;
  20551. if (OneofFieldCase != other.OneofFieldCase) return false;
  20552. if (!Equals(_extensions, other._extensions)) {
  20553. return false;
  20554. }
  20555. return Equals(_unknownFields, other._unknownFields);
  20556. }
  20557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20558. public override int GetHashCode() {
  20559. int hash = 1;
  20560. if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
  20561. if (HasFixed32) hash ^= Fixed32.GetHashCode();
  20562. hash ^= repeatedInt32_.GetHashCode();
  20563. hash ^= packedInt32_.GetHashCode();
  20564. if (HasOptionalEnum) hash ^= OptionalEnum.GetHashCode();
  20565. if (HasOptionalString) hash ^= OptionalString.GetHashCode();
  20566. if (HasOptionalBytes) hash ^= OptionalBytes.GetHashCode();
  20567. if (optionalMessage_ != null) hash ^= OptionalMessage.GetHashCode();
  20568. if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
  20569. hash ^= StringStringMap.GetHashCode();
  20570. if (HasOneofUint32) hash ^= OneofUint32.GetHashCode();
  20571. if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) hash ^= OneofTestAllTypes.GetHashCode();
  20572. if (HasOneofString) hash ^= OneofString.GetHashCode();
  20573. if (HasOneofBytes) hash ^= OneofBytes.GetHashCode();
  20574. hash ^= (int) oneofFieldCase_;
  20575. if (_extensions != null) {
  20576. hash ^= _extensions.GetHashCode();
  20577. }
  20578. if (_unknownFields != null) {
  20579. hash ^= _unknownFields.GetHashCode();
  20580. }
  20581. return hash;
  20582. }
  20583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20584. public override string ToString() {
  20585. return pb::JsonFormatter.ToDiagnosticString(this);
  20586. }
  20587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20588. public void WriteTo(pb::CodedOutputStream output) {
  20589. if (HasOptionalInt32) {
  20590. output.WriteRawTag(128, 199, 255, 255, 15);
  20591. output.WriteInt32(OptionalInt32);
  20592. }
  20593. if (HasFixed32) {
  20594. output.WriteRawTag(136, 199, 255, 255, 15);
  20595. output.WriteInt32(Fixed32);
  20596. }
  20597. repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
  20598. packedInt32_.WriteTo(output, _repeated_packedInt32_codec);
  20599. if (HasOptionalEnum) {
  20600. output.WriteRawTag(160, 199, 255, 255, 15);
  20601. output.WriteEnum((int) OptionalEnum);
  20602. }
  20603. if (HasOptionalString) {
  20604. output.WriteRawTag(170, 199, 255, 255, 15);
  20605. output.WriteString(OptionalString);
  20606. }
  20607. if (HasOptionalBytes) {
  20608. output.WriteRawTag(178, 199, 255, 255, 15);
  20609. output.WriteBytes(OptionalBytes);
  20610. }
  20611. if (optionalMessage_ != null) {
  20612. output.WriteRawTag(186, 199, 255, 255, 15);
  20613. output.WriteMessage(OptionalMessage);
  20614. }
  20615. if (HasOptionalGroup) {
  20616. output.WriteRawTag(195, 199, 255, 255, 15);
  20617. output.WriteGroup(OptionalGroup);
  20618. output.WriteRawTag(196, 199, 255, 255, 15);
  20619. }
  20620. stringStringMap_.WriteTo(output, _map_stringStringMap_codec);
  20621. if (HasOneofUint32) {
  20622. output.WriteRawTag(216, 199, 255, 255, 15);
  20623. output.WriteUInt32(OneofUint32);
  20624. }
  20625. if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) {
  20626. output.WriteRawTag(226, 199, 255, 255, 15);
  20627. output.WriteMessage(OneofTestAllTypes);
  20628. }
  20629. if (HasOneofString) {
  20630. output.WriteRawTag(234, 199, 255, 255, 15);
  20631. output.WriteString(OneofString);
  20632. }
  20633. if (HasOneofBytes) {
  20634. output.WriteRawTag(242, 199, 255, 255, 15);
  20635. output.WriteBytes(OneofBytes);
  20636. }
  20637. if (_extensions != null) {
  20638. _extensions.WriteTo(output);
  20639. }
  20640. if (_unknownFields != null) {
  20641. _unknownFields.WriteTo(output);
  20642. }
  20643. }
  20644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20645. public int CalculateSize() {
  20646. int size = 0;
  20647. if (HasOptionalInt32) {
  20648. size += 5 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
  20649. }
  20650. if (HasFixed32) {
  20651. size += 5 + pb::CodedOutputStream.ComputeInt32Size(Fixed32);
  20652. }
  20653. size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
  20654. size += packedInt32_.CalculateSize(_repeated_packedInt32_codec);
  20655. if (HasOptionalEnum) {
  20656. size += 5 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalEnum);
  20657. }
  20658. if (HasOptionalString) {
  20659. size += 5 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
  20660. }
  20661. if (HasOptionalBytes) {
  20662. size += 5 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes);
  20663. }
  20664. if (optionalMessage_ != null) {
  20665. size += 5 + pb::CodedOutputStream.ComputeMessageSize(OptionalMessage);
  20666. }
  20667. if (HasOptionalGroup) {
  20668. size += 10 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
  20669. }
  20670. size += stringStringMap_.CalculateSize(_map_stringStringMap_codec);
  20671. if (HasOneofUint32) {
  20672. size += 5 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
  20673. }
  20674. if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) {
  20675. size += 5 + pb::CodedOutputStream.ComputeMessageSize(OneofTestAllTypes);
  20676. }
  20677. if (HasOneofString) {
  20678. size += 5 + pb::CodedOutputStream.ComputeStringSize(OneofString);
  20679. }
  20680. if (HasOneofBytes) {
  20681. size += 5 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
  20682. }
  20683. if (_extensions != null) {
  20684. size += _extensions.CalculateSize();
  20685. }
  20686. if (_unknownFields != null) {
  20687. size += _unknownFields.CalculateSize();
  20688. }
  20689. return size;
  20690. }
  20691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20692. public void MergeFrom(TestHugeFieldNumbers other) {
  20693. if (other == null) {
  20694. return;
  20695. }
  20696. if (other.HasOptionalInt32) {
  20697. OptionalInt32 = other.OptionalInt32;
  20698. }
  20699. if (other.HasFixed32) {
  20700. Fixed32 = other.Fixed32;
  20701. }
  20702. repeatedInt32_.Add(other.repeatedInt32_);
  20703. packedInt32_.Add(other.packedInt32_);
  20704. if (other.HasOptionalEnum) {
  20705. OptionalEnum = other.OptionalEnum;
  20706. }
  20707. if (other.HasOptionalString) {
  20708. OptionalString = other.OptionalString;
  20709. }
  20710. if (other.HasOptionalBytes) {
  20711. OptionalBytes = other.OptionalBytes;
  20712. }
  20713. if (other.optionalMessage_ != null) {
  20714. if (optionalMessage_ == null) {
  20715. OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
  20716. }
  20717. OptionalMessage.MergeFrom(other.OptionalMessage);
  20718. }
  20719. if (other.HasOptionalGroup) {
  20720. if (!HasOptionalGroup) {
  20721. OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup();
  20722. }
  20723. OptionalGroup.MergeFrom(other.OptionalGroup);
  20724. }
  20725. stringStringMap_.Add(other.stringStringMap_);
  20726. switch (other.OneofFieldCase) {
  20727. case OneofFieldOneofCase.OneofUint32:
  20728. OneofUint32 = other.OneofUint32;
  20729. break;
  20730. case OneofFieldOneofCase.OneofTestAllTypes:
  20731. if (OneofTestAllTypes == null) {
  20732. OneofTestAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  20733. }
  20734. OneofTestAllTypes.MergeFrom(other.OneofTestAllTypes);
  20735. break;
  20736. case OneofFieldOneofCase.OneofString:
  20737. OneofString = other.OneofString;
  20738. break;
  20739. case OneofFieldOneofCase.OneofBytes:
  20740. OneofBytes = other.OneofBytes;
  20741. break;
  20742. }
  20743. pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
  20744. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  20745. }
  20746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20747. public void MergeFrom(pb::CodedInputStream input) {
  20748. uint tag;
  20749. while ((tag = input.ReadTag()) != 0) {
  20750. switch(tag) {
  20751. default:
  20752. if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
  20753. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  20754. }
  20755. break;
  20756. case 4294960000: {
  20757. OptionalInt32 = input.ReadInt32();
  20758. break;
  20759. }
  20760. case 4294960008: {
  20761. Fixed32 = input.ReadInt32();
  20762. break;
  20763. }
  20764. case 4294960018:
  20765. case 4294960016: {
  20766. repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
  20767. break;
  20768. }
  20769. case 4294960026:
  20770. case 4294960024: {
  20771. packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec);
  20772. break;
  20773. }
  20774. case 4294960032: {
  20775. OptionalEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
  20776. break;
  20777. }
  20778. case 4294960042: {
  20779. OptionalString = input.ReadString();
  20780. break;
  20781. }
  20782. case 4294960050: {
  20783. OptionalBytes = input.ReadBytes();
  20784. break;
  20785. }
  20786. case 4294960058: {
  20787. if (optionalMessage_ == null) {
  20788. OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
  20789. }
  20790. input.ReadMessage(OptionalMessage);
  20791. break;
  20792. }
  20793. case 4294960067: {
  20794. if (!HasOptionalGroup) {
  20795. OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup();
  20796. }
  20797. input.ReadGroup(OptionalGroup);
  20798. break;
  20799. }
  20800. case 4294960082: {
  20801. stringStringMap_.AddEntriesFrom(input, _map_stringStringMap_codec);
  20802. break;
  20803. }
  20804. case 4294960088: {
  20805. OneofUint32 = input.ReadUInt32();
  20806. break;
  20807. }
  20808. case 4294960098: {
  20809. global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
  20810. if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) {
  20811. subBuilder.MergeFrom(OneofTestAllTypes);
  20812. }
  20813. input.ReadMessage(subBuilder);
  20814. OneofTestAllTypes = subBuilder;
  20815. break;
  20816. }
  20817. case 4294960106: {
  20818. OneofString = input.ReadString();
  20819. break;
  20820. }
  20821. case 4294960114: {
  20822. OneofBytes = input.ReadBytes();
  20823. break;
  20824. }
  20825. }
  20826. }
  20827. }
  20828. public TValue GetExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension) {
  20829. return pb::ExtensionSet.Get(ref _extensions, extension);
  20830. }
  20831. public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension) {
  20832. return pb::ExtensionSet.Get(ref _extensions, extension);
  20833. }
  20834. public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension) {
  20835. return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
  20836. }
  20837. public void SetExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension, TValue value) {
  20838. pb::ExtensionSet.Set(ref _extensions, extension, value);
  20839. }
  20840. public bool HasExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension) {
  20841. return pb::ExtensionSet.Has(ref _extensions, extension);
  20842. }
  20843. public void ClearExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension) {
  20844. pb::ExtensionSet.Clear(ref _extensions, extension);
  20845. }
  20846. public void ClearExtension<TValue>(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension) {
  20847. pb::ExtensionSet.Clear(ref _extensions, extension);
  20848. }
  20849. #region Nested types
  20850. /// <summary>Container for nested types declared in the TestHugeFieldNumbers message type.</summary>
  20851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20852. public static partial class Types {
  20853. public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup> {
  20854. private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
  20855. private pb::UnknownFieldSet _unknownFields;
  20856. private int _hasBits0;
  20857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20858. public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
  20859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20860. public static pbr::MessageDescriptor Descriptor {
  20861. get { return global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Descriptor.NestedTypes[0]; }
  20862. }
  20863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20864. pbr::MessageDescriptor pb::IMessage.Descriptor {
  20865. get { return Descriptor; }
  20866. }
  20867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20868. public OptionalGroup() {
  20869. OnConstruction();
  20870. }
  20871. partial void OnConstruction();
  20872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20873. public OptionalGroup(OptionalGroup other) : this() {
  20874. _hasBits0 = other._hasBits0;
  20875. groupA_ = other.groupA_;
  20876. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  20877. }
  20878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20879. public OptionalGroup Clone() {
  20880. return new OptionalGroup(this);
  20881. }
  20882. /// <summary>Field number for the "group_a" field.</summary>
  20883. public const int GroupAFieldNumber = 536870009;
  20884. private readonly static int GroupADefaultValue = 0;
  20885. private int groupA_;
  20886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20887. public int GroupA {
  20888. get { if ((_hasBits0 & 1) != 0) { return groupA_; } else { return GroupADefaultValue; } }
  20889. set {
  20890. _hasBits0 |= 1;
  20891. groupA_ = value;
  20892. }
  20893. }
  20894. /// <summary>Gets whether the "group_a" field is set</summary>
  20895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20896. public bool HasGroupA {
  20897. get { return (_hasBits0 & 1) != 0; }
  20898. }
  20899. /// <summary>Clears the value of the "group_a" field</summary>
  20900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20901. public void ClearGroupA() {
  20902. _hasBits0 &= ~1;
  20903. }
  20904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20905. public override bool Equals(object other) {
  20906. return Equals(other as OptionalGroup);
  20907. }
  20908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20909. public bool Equals(OptionalGroup other) {
  20910. if (ReferenceEquals(other, null)) {
  20911. return false;
  20912. }
  20913. if (ReferenceEquals(other, this)) {
  20914. return true;
  20915. }
  20916. if (GroupA != other.GroupA) return false;
  20917. return Equals(_unknownFields, other._unknownFields);
  20918. }
  20919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20920. public override int GetHashCode() {
  20921. int hash = 1;
  20922. if (HasGroupA) hash ^= GroupA.GetHashCode();
  20923. if (_unknownFields != null) {
  20924. hash ^= _unknownFields.GetHashCode();
  20925. }
  20926. return hash;
  20927. }
  20928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20929. public override string ToString() {
  20930. return pb::JsonFormatter.ToDiagnosticString(this);
  20931. }
  20932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20933. public void WriteTo(pb::CodedOutputStream output) {
  20934. if (HasGroupA) {
  20935. output.WriteRawTag(200, 199, 255, 255, 15);
  20936. output.WriteInt32(GroupA);
  20937. }
  20938. if (_unknownFields != null) {
  20939. _unknownFields.WriteTo(output);
  20940. }
  20941. }
  20942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20943. public int CalculateSize() {
  20944. int size = 0;
  20945. if (HasGroupA) {
  20946. size += 5 + pb::CodedOutputStream.ComputeInt32Size(GroupA);
  20947. }
  20948. if (_unknownFields != null) {
  20949. size += _unknownFields.CalculateSize();
  20950. }
  20951. return size;
  20952. }
  20953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20954. public void MergeFrom(OptionalGroup other) {
  20955. if (other == null) {
  20956. return;
  20957. }
  20958. if (other.HasGroupA) {
  20959. GroupA = other.GroupA;
  20960. }
  20961. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  20962. }
  20963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20964. public void MergeFrom(pb::CodedInputStream input) {
  20965. uint tag;
  20966. while ((tag = input.ReadTag()) != 0) {
  20967. switch(tag) {
  20968. case 4294960068:
  20969. return;
  20970. default:
  20971. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  20972. break;
  20973. case 4294960072: {
  20974. GroupA = input.ReadInt32();
  20975. break;
  20976. }
  20977. }
  20978. }
  20979. }
  20980. }
  20981. }
  20982. #endregion
  20983. }
  20984. public sealed partial class TestExtensionInsideTable : pb::IExtendableMessage<TestExtensionInsideTable> {
  20985. private static readonly pb::MessageParser<TestExtensionInsideTable> _parser = new pb::MessageParser<TestExtensionInsideTable>(() => new TestExtensionInsideTable());
  20986. private pb::UnknownFieldSet _unknownFields;
  20987. private pb::ExtensionSet<TestExtensionInsideTable> _extensions;
  20988. private pb::ExtensionSet<TestExtensionInsideTable> _Extensions { get { return _extensions; } }
  20989. private int _hasBits0;
  20990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20991. public static pb::MessageParser<TestExtensionInsideTable> Parser { get { return _parser; } }
  20992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20993. public static pbr::MessageDescriptor Descriptor {
  20994. get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[64]; }
  20995. }
  20996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  20997. pbr::MessageDescriptor pb::IMessage.Descriptor {
  20998. get { return Descriptor; }
  20999. }
  21000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21001. public TestExtensionInsideTable() {
  21002. OnConstruction();
  21003. }
  21004. partial void OnConstruction();
  21005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21006. public TestExtensionInsideTable(TestExtensionInsideTable other) : this() {
  21007. _hasBits0 = other._hasBits0;
  21008. field1_ = other.field1_;
  21009. field2_ = other.field2_;
  21010. field3_ = other.field3_;
  21011. field4_ = other.field4_;
  21012. field6_ = other.field6_;
  21013. field7_ = other.field7_;
  21014. field8_ = other.field8_;
  21015. field9_ = other.field9_;
  21016. field10_ = other.field10_;
  21017. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  21018. _extensions = pb::ExtensionSet.Clone(other._extensions);
  21019. }
  21020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21021. public TestExtensionInsideTable Clone() {
  21022. return new TestExtensionInsideTable(this);
  21023. }
  21024. /// <summary>Field number for the "field1" field.</summary>
  21025. public const int Field1FieldNumber = 1;
  21026. private readonly static int Field1DefaultValue = 0;
  21027. private int field1_;
  21028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21029. public int Field1 {
  21030. get { if ((_hasBits0 & 1) != 0) { return field1_; } else { return Field1DefaultValue; } }
  21031. set {
  21032. _hasBits0 |= 1;
  21033. field1_ = value;
  21034. }
  21035. }
  21036. /// <summary>Gets whether the "field1" field is set</summary>
  21037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21038. public bool HasField1 {
  21039. get { return (_hasBits0 & 1) != 0; }
  21040. }
  21041. /// <summary>Clears the value of the "field1" field</summary>
  21042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21043. public void ClearField1() {
  21044. _hasBits0 &= ~1;
  21045. }
  21046. /// <summary>Field number for the "field2" field.</summary>
  21047. public const int Field2FieldNumber = 2;
  21048. private readonly static int Field2DefaultValue = 0;
  21049. private int field2_;
  21050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21051. public int Field2 {
  21052. get { if ((_hasBits0 & 2) != 0) { return field2_; } else { return Field2DefaultValue; } }
  21053. set {
  21054. _hasBits0 |= 2;
  21055. field2_ = value;
  21056. }
  21057. }
  21058. /// <summary>Gets whether the "field2" field is set</summary>
  21059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21060. public bool HasField2 {
  21061. get { return (_hasBits0 & 2) != 0; }
  21062. }
  21063. /// <summary>Clears the value of the "field2" field</summary>
  21064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21065. public void ClearField2() {
  21066. _hasBits0 &= ~2;
  21067. }
  21068. /// <summary>Field number for the "field3" field.</summary>
  21069. public const int Field3FieldNumber = 3;
  21070. private readonly static int Field3DefaultValue = 0;
  21071. private int field3_;
  21072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21073. public int Field3 {
  21074. get { if ((_hasBits0 & 4) != 0) { return field3_; } else { return Field3DefaultValue; } }
  21075. set {
  21076. _hasBits0 |= 4;
  21077. field3_ = value;
  21078. }
  21079. }
  21080. /// <summary>Gets whether the "field3" field is set</summary>
  21081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21082. public bool HasField3 {
  21083. get { return (_hasBits0 & 4) != 0; }
  21084. }
  21085. /// <summary>Clears the value of the "field3" field</summary>
  21086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21087. public void ClearField3() {
  21088. _hasBits0 &= ~4;
  21089. }
  21090. /// <summary>Field number for the "field4" field.</summary>
  21091. public const int Field4FieldNumber = 4;
  21092. private readonly static int Field4DefaultValue = 0;
  21093. private int field4_;
  21094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21095. public int Field4 {
  21096. get { if ((_hasBits0 & 8) != 0) { return field4_; } else { return Field4DefaultValue; } }
  21097. set {
  21098. _hasBits0 |= 8;
  21099. field4_ = value;
  21100. }
  21101. }
  21102. /// <summary>Gets whether the "field4" field is set</summary>
  21103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21104. public bool HasField4 {
  21105. get { return (_hasBits0 & 8) != 0; }
  21106. }
  21107. /// <summary>Clears the value of the "field4" field</summary>
  21108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21109. public void ClearField4() {
  21110. _hasBits0 &= ~8;
  21111. }
  21112. /// <summary>Field number for the "field6" field.</summary>
  21113. public const int Field6FieldNumber = 6;
  21114. private readonly static int Field6DefaultValue = 0;
  21115. private int field6_;
  21116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21117. public int Field6 {
  21118. get { if ((_hasBits0 & 16) != 0) { return field6_; } else { return Field6DefaultValue; } }
  21119. set {
  21120. _hasBits0 |= 16;
  21121. field6_ = value;
  21122. }
  21123. }
  21124. /// <summary>Gets whether the "field6" field is set</summary>
  21125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21126. public bool HasField6 {
  21127. get { return (_hasBits0 & 16) != 0; }
  21128. }
  21129. /// <summary>Clears the value of the "field6" field</summary>
  21130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21131. public void ClearField6() {
  21132. _hasBits0 &= ~16;
  21133. }
  21134. /// <summary>Field number for the "field7" field.</summary>
  21135. public const int Field7FieldNumber = 7;
  21136. private readonly static int Field7DefaultValue = 0;
  21137. private int field7_;
  21138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21139. public int Field7 {
  21140. get { if ((_hasBits0 & 32) != 0) { return field7_; } else { return Field7DefaultValue; } }
  21141. set {
  21142. _hasBits0 |= 32;
  21143. field7_ = value;
  21144. }
  21145. }
  21146. /// <summary>Gets whether the "field7" field is set</summary>
  21147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21148. public bool HasField7 {
  21149. get { return (_hasBits0 & 32) != 0; }
  21150. }
  21151. /// <summary>Clears the value of the "field7" field</summary>
  21152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21153. public void ClearField7() {
  21154. _hasBits0 &= ~32;
  21155. }
  21156. /// <summary>Field number for the "field8" field.</summary>
  21157. public const int Field8FieldNumber = 8;
  21158. private readonly static int Field8DefaultValue = 0;
  21159. private int field8_;
  21160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21161. public int Field8 {
  21162. get { if ((_hasBits0 & 64) != 0) { return field8_; } else { return Field8DefaultValue; } }
  21163. set {
  21164. _hasBits0 |= 64;
  21165. field8_ = value;
  21166. }
  21167. }
  21168. /// <summary>Gets whether the "field8" field is set</summary>
  21169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21170. public bool HasField8 {
  21171. get { return (_hasBits0 & 64) != 0; }
  21172. }
  21173. /// <summary>Clears the value of the "field8" field</summary>
  21174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21175. public void ClearField8() {
  21176. _hasBits0 &= ~64;
  21177. }
  21178. /// <summary>Field number for the "field9" field.</summary>
  21179. public const int Field9FieldNumber = 9;
  21180. private readonly static int Field9DefaultValue = 0;
  21181. private int field9_;
  21182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21183. public int Field9 {
  21184. get { if ((_hasBits0 & 128) != 0) { return field9_; } else { return Field9DefaultValue; } }
  21185. set {
  21186. _hasBits0 |= 128;
  21187. field9_ = value;
  21188. }
  21189. }
  21190. /// <summary>Gets whether the "field9" field is set</summary>
  21191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21192. public bool HasField9 {
  21193. get { return (_hasBits0 & 128) != 0; }
  21194. }
  21195. /// <summary>Clears the value of the "field9" field</summary>
  21196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21197. public void ClearField9() {
  21198. _hasBits0 &= ~128;
  21199. }
  21200. /// <summary>Field number for the "field10" field.</summary>
  21201. public const int Field10FieldNumber = 10;
  21202. private readonly static int Field10DefaultValue = 0;
  21203. private int field10_;
  21204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21205. public int Field10 {
  21206. get { if ((_hasBits0 & 256) != 0) { return field10_; } else { return Field10DefaultValue; } }
  21207. set {
  21208. _hasBits0 |= 256;
  21209. field10_ = value;
  21210. }
  21211. }
  21212. /// <summary>Gets whether the "field10" field is set</summary>
  21213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21214. public bool HasField10 {
  21215. get { return (_hasBits0 & 256) != 0; }
  21216. }
  21217. /// <summary>Clears the value of the "field10" field</summary>
  21218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21219. public void ClearField10() {
  21220. _hasBits0 &= ~256;
  21221. }
  21222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21223. public override bool Equals(object other) {
  21224. return Equals(other as TestExtensionInsideTable);
  21225. }
  21226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21227. public bool Equals(TestExtensionInsideTable other) {
  21228. if (ReferenceEquals(other, null)) {
  21229. return false;
  21230. }
  21231. if (ReferenceEquals(other, this)) {
  21232. return true;
  21233. }
  21234. if (Field1 != other.Field1) return false;
  21235. if (Field2 != other.Field2) return false;
  21236. if (Field3 != other.Field3) return false;
  21237. if (Field4 != other.Field4) return false;
  21238. if (Field6 != other.Field6) return false;
  21239. if (Field7 != other.Field7) return false;
  21240. if (Field8 != other.Field8) return false;
  21241. if (Field9 != other.Field9) return false;
  21242. if (Field10 != other.Field10) return false;
  21243. if (!Equals(_extensions, other._extensions)) {
  21244. return false;
  21245. }
  21246. return Equals(_unknownFields, other._unknownFields);
  21247. }
  21248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21249. public override int GetHashCode() {
  21250. int hash = 1;
  21251. if (HasField1) hash ^= Field1.GetHashCode();
  21252. if (HasField2) hash ^= Field2.GetHashCode();
  21253. if (HasField3) hash ^= Field3.GetHashCode();
  21254. if (HasField4) hash ^= Field4.GetHashCode();
  21255. if (HasField6) hash ^= Field6.GetHashCode();
  21256. if (HasField7) hash ^= Field7.GetHashCode();
  21257. if (HasField8) hash ^= Field8.GetHashCode();
  21258. if (HasField9) hash ^= Field9.GetHashCode();
  21259. if (HasField10) hash ^= Field10.GetHashCode();
  21260. if (_extensions != null) {
  21261. hash ^= _extensions.GetHashCode();
  21262. }
  21263. if (_unknownFields != null) {
  21264. hash ^= _unknownFields.GetHashCode();
  21265. }
  21266. return hash;
  21267. }
  21268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21269. public override string ToString() {
  21270. return pb::JsonFormatter.ToDiagnosticString(this);
  21271. }
  21272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21273. public void WriteTo(pb::CodedOutputStream output) {
  21274. if (HasField1) {
  21275. output.WriteRawTag(8);
  21276. output.WriteInt32(Field1);
  21277. }
  21278. if (HasField2) {
  21279. output.WriteRawTag(16);
  21280. output.WriteInt32(Field2);
  21281. }
  21282. if (HasField3) {
  21283. output.WriteRawTag(24);
  21284. output.WriteInt32(Field3);
  21285. }
  21286. if (HasField4) {
  21287. output.WriteRawTag(32);
  21288. output.WriteInt32(Field4);
  21289. }
  21290. if (HasField6) {
  21291. output.WriteRawTag(48);
  21292. output.WriteInt32(Field6);
  21293. }
  21294. if (HasField7) {
  21295. output.WriteRawTag(56);
  21296. output.WriteInt32(Field7);
  21297. }
  21298. if (HasField8) {
  21299. output.WriteRawTag(64);
  21300. output.WriteInt32(Field8);
  21301. }
  21302. if (HasField9) {
  21303. output.WriteRawTag(72);
  21304. output.WriteInt32(Field9);
  21305. }
  21306. if (HasField10) {
  21307. output.WriteRawTag(80);
  21308. output.WriteInt32(Field10);
  21309. }
  21310. if (_extensions != null) {
  21311. _extensions.WriteTo(output);
  21312. }
  21313. if (_unknownFields != null) {
  21314. _unknownFields.WriteTo(output);
  21315. }
  21316. }
  21317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21318. public int CalculateSize() {
  21319. int size = 0;
  21320. if (HasField1) {
  21321. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field1);
  21322. }
  21323. if (HasField2) {
  21324. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field2);
  21325. }
  21326. if (HasField3) {
  21327. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field3);
  21328. }
  21329. if (HasField4) {
  21330. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field4);
  21331. }
  21332. if (HasField6) {
  21333. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field6);
  21334. }
  21335. if (HasField7) {
  21336. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field7);
  21337. }
  21338. if (HasField8) {
  21339. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field8);
  21340. }
  21341. if (HasField9) {
  21342. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field9);
  21343. }
  21344. if (HasField10) {
  21345. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field10);
  21346. }
  21347. if (_extensions != null) {
  21348. size += _extensions.CalculateSize();
  21349. }
  21350. if (_unknownFields != null) {
  21351. size += _unknownFields.CalculateSize();
  21352. }
  21353. return size;
  21354. }
  21355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21356. public void MergeFrom(TestExtensionInsideTable other) {
  21357. if (other == null) {
  21358. return;
  21359. }
  21360. if (other.HasField1) {
  21361. Field1 = other.Field1;
  21362. }
  21363. if (other.HasField2) {
  21364. Field2 = other.Field2;
  21365. }
  21366. if (other.HasField3) {
  21367. Field3 = other.Field3;
  21368. }
  21369. if (other.HasField4) {
  21370. Field4 = other.Field4;
  21371. }
  21372. if (other.HasField6) {
  21373. Field6 = other.Field6;
  21374. }
  21375. if (other.HasField7) {
  21376. Field7 = other.Field7;
  21377. }
  21378. if (other.HasField8) {
  21379. Field8 = other.Field8;
  21380. }
  21381. if (other.HasField9) {
  21382. Field9 = other.Field9;
  21383. }
  21384. if (other.HasField10) {
  21385. Field10 = other.Field10;
  21386. }
  21387. pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
  21388. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  21389. }
  21390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  21391. public void MergeFrom(pb::CodedInputStream input) {
  21392. uint tag;
  21393. while ((tag = input.ReadTag()) != 0) {
  21394. switch(tag) {
  21395. default:
  21396. if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
  21397. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  21398. }
  21399. break;
  21400. case 8: {
  21401. Field1 = input.ReadInt32();
  21402. break;
  21403. }
  21404. case 16: {
  21405. Field2 = input.ReadInt32();
  21406. break;
  21407. }
  21408. case 24: {
  21409. Field3 = input.ReadInt32();
  21410. break;
  21411. }
  21412. case 32: {
  21413. Field4 = input.ReadInt32();
  21414. break;
  21415. }
  21416. case 48: {
  21417. Field6 = input.ReadInt32();
  21418. break;
  21419. }
  21420. case 56: {
  21421. Field7 = input.ReadInt32();
  21422. break;
  21423. }
  21424. case 64: {
  21425. Field8 = input.ReadInt32();
  21426. break;
  21427. }
  21428. case 72: {
  21429. Field9 = input.ReadInt32();
  21430. break;
  21431. }
  21432. case 80: {
  21433. Field10 = input.ReadInt32();
  21434. break;
  21435. }
  21436. }
  21437. }
  21438. }
  21439. public TValue GetExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension) {
  21440. return pb::ExtensionSet.Get(ref _extensions, extension);
  21441. }
  21442. public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension) {
  21443. return pb::ExtensionSet.Get(ref _extensions, extension);
  21444. }
  21445. public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension) {
  21446. return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
  21447. }
  21448. public void SetExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension, TValue value) {
  21449. pb::ExtensionSet.Set(ref _extensions, extension, value);
  21450. }
  21451. public bool HasExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension) {
  21452. return pb::ExtensionSet.Has(ref _extensions, extension);
  21453. }
  21454. public void ClearExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension) {
  21455. pb::ExtensionSet.Clear(ref _extensions, extension);
  21456. }
  21457. public void ClearExtension<TValue>(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension) {
  21458. pb::ExtensionSet.Clear(ref _extensions, extension);
  21459. }
  21460. }
  21461. #endregion
  21462. }
  21463. #endregion Designer generated code