| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535 |
- // <auto-generated>
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: unittest.proto
- // </auto-generated>
- #pragma warning disable 1591, 0612, 3021
- #region Designer generated code
- using pb = global::Google.Protobuf;
- using pbc = global::Google.Protobuf.Collections;
- using pbr = global::Google.Protobuf.Reflection;
- using scg = global::System.Collections.Generic;
- namespace Google.Protobuf.TestProtos.Proto2 {
- /// <summary>Holder for reflection information generated from unittest.proto</summary>
- public static partial class UnittestReflection {
- #region Descriptor
- /// <summary>File descriptor for unittest.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
- static UnittestReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cg51bml0dGVzdC5wcm90bxIYcHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yGhV1",
- "bml0dGVzdF9pbXBvcnQucHJvdG8igBoKDFRlc3RBbGxUeXBlcxIWCg5vcHRp",
- "b25hbF9pbnQzMhgBIAEoBRIWCg5vcHRpb25hbF9pbnQ2NBgCIAEoAxIXCg9v",
- "cHRpb25hbF91aW50MzIYAyABKA0SFwoPb3B0aW9uYWxfdWludDY0GAQgASgE",
- "EhcKD29wdGlvbmFsX3NpbnQzMhgFIAEoERIXCg9vcHRpb25hbF9zaW50NjQY",
- "BiABKBISGAoQb3B0aW9uYWxfZml4ZWQzMhgHIAEoBxIYChBvcHRpb25hbF9m",
- "aXhlZDY0GAggASgGEhkKEW9wdGlvbmFsX3NmaXhlZDMyGAkgASgPEhkKEW9w",
- "dGlvbmFsX3NmaXhlZDY0GAogASgQEhYKDm9wdGlvbmFsX2Zsb2F0GAsgASgC",
- "EhcKD29wdGlvbmFsX2RvdWJsZRgMIAEoARIVCg1vcHRpb25hbF9ib29sGA0g",
- "ASgIEhcKD29wdGlvbmFsX3N0cmluZxgOIAEoCRIWCg5vcHRpb25hbF9ieXRl",
- "cxgPIAEoDBJLCg1vcHRpb25hbGdyb3VwGBAgASgKMjQucHJvdG9idWZfdW5p",
- "dHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcy5PcHRpb25hbEdyb3VwElUKF29w",
- "dGlvbmFsX25lc3RlZF9tZXNzYWdlGBIgASgLMjQucHJvdG9idWZfdW5pdHRl",
- "c3RfcHJvdG8yLlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlEkoKGG9wdGlv",
- "bmFsX2ZvcmVpZ25fbWVzc2FnZRgTIAEoCzIoLnByb3RvYnVmX3VuaXR0ZXN0",
- "X3Byb3RvMi5Gb3JlaWduTWVzc2FnZRJPChdvcHRpb25hbF9pbXBvcnRfbWVz",
- "c2FnZRgUIAEoCzIuLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydF9wcm90bzIu",
- "SW1wb3J0TWVzc2FnZRJPChRvcHRpb25hbF9uZXN0ZWRfZW51bRgVIAEoDjIx",
- "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVk",
- "RW51bRJEChVvcHRpb25hbF9mb3JlaWduX2VudW0YFiABKA4yJS5wcm90b2J1",
- "Zl91bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW0SSQoUb3B0aW9uYWxfaW1w",
- "b3J0X2VudW0YFyABKA4yKy5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnRfcHJv",
- "dG8yLkltcG9ydEVudW0SIQoVb3B0aW9uYWxfc3RyaW5nX3BpZWNlGBggASgJ",
- "QgIIAhIZCg1vcHRpb25hbF9jb3JkGBkgASgJQgIIARJcCh5vcHRpb25hbF9w",
- "dWJsaWNfaW1wb3J0X21lc3NhZ2UYGiABKAsyNC5wcm90b2J1Zl91bml0dGVz",
- "dF9pbXBvcnRfcHJvdG8yLlB1YmxpY0ltcG9ydE1lc3NhZ2USVwoVb3B0aW9u",
- "YWxfbGF6eV9tZXNzYWdlGBsgASgLMjQucHJvdG9idWZfdW5pdHRlc3RfcHJv",
- "dG8yLlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlQgIoARIWCg5yZXBlYXRl",
- "ZF9pbnQzMhgfIAMoBRIWCg5yZXBlYXRlZF9pbnQ2NBggIAMoAxIXCg9yZXBl",
- "YXRlZF91aW50MzIYISADKA0SFwoPcmVwZWF0ZWRfdWludDY0GCIgAygEEhcK",
- "D3JlcGVhdGVkX3NpbnQzMhgjIAMoERIXCg9yZXBlYXRlZF9zaW50NjQYJCAD",
- "KBISGAoQcmVwZWF0ZWRfZml4ZWQzMhglIAMoBxIYChByZXBlYXRlZF9maXhl",
- "ZDY0GCYgAygGEhkKEXJlcGVhdGVkX3NmaXhlZDMyGCcgAygPEhkKEXJlcGVh",
- "dGVkX3NmaXhlZDY0GCggAygQEhYKDnJlcGVhdGVkX2Zsb2F0GCkgAygCEhcK",
- "D3JlcGVhdGVkX2RvdWJsZRgqIAMoARIVCg1yZXBlYXRlZF9ib29sGCsgAygI",
- "EhcKD3JlcGVhdGVkX3N0cmluZxgsIAMoCRIWCg5yZXBlYXRlZF9ieXRlcxgt",
- "IAMoDBJLCg1yZXBlYXRlZGdyb3VwGC4gAygKMjQucHJvdG9idWZfdW5pdHRl",
- "c3RfcHJvdG8yLlRlc3RBbGxUeXBlcy5SZXBlYXRlZEdyb3VwElUKF3JlcGVh",
- "dGVkX25lc3RlZF9tZXNzYWdlGDAgAygLMjQucHJvdG9idWZfdW5pdHRlc3Rf",
- "cHJvdG8yLlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlEkoKGHJlcGVhdGVk",
- "X2ZvcmVpZ25fbWVzc2FnZRgxIAMoCzIoLnByb3RvYnVmX3VuaXR0ZXN0X3By",
- "b3RvMi5Gb3JlaWduTWVzc2FnZRJPChdyZXBlYXRlZF9pbXBvcnRfbWVzc2Fn",
- "ZRgyIAMoCzIuLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydF9wcm90bzIuSW1w",
- "b3J0TWVzc2FnZRJPChRyZXBlYXRlZF9uZXN0ZWRfZW51bRgzIAMoDjIxLnBy",
- "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVkRW51",
- "bRJEChVyZXBlYXRlZF9mb3JlaWduX2VudW0YNCADKA4yJS5wcm90b2J1Zl91",
- "bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW0SSQoUcmVwZWF0ZWRfaW1wb3J0",
- "X2VudW0YNSADKA4yKy5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnRfcHJvdG8y",
- "LkltcG9ydEVudW0SIQoVcmVwZWF0ZWRfc3RyaW5nX3BpZWNlGDYgAygJQgII",
- "AhIZCg1yZXBlYXRlZF9jb3JkGDcgAygJQgIIARJXChVyZXBlYXRlZF9sYXp5",
- "X21lc3NhZ2UYOSADKAsyNC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz",
- "dEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2VCAigBEhkKDWRlZmF1bHRfaW50MzIY",
- "PSABKAU6AjQxEhkKDWRlZmF1bHRfaW50NjQYPiABKAM6AjQyEhoKDmRlZmF1",
- "bHRfdWludDMyGD8gASgNOgI0MxIaCg5kZWZhdWx0X3VpbnQ2NBhAIAEoBDoC",
- "NDQSGwoOZGVmYXVsdF9zaW50MzIYQSABKBE6Ay00NRIaCg5kZWZhdWx0X3Np",
- "bnQ2NBhCIAEoEjoCNDYSGwoPZGVmYXVsdF9maXhlZDMyGEMgASgHOgI0NxIb",
- "Cg9kZWZhdWx0X2ZpeGVkNjQYRCABKAY6AjQ4EhwKEGRlZmF1bHRfc2ZpeGVk",
- "MzIYRSABKA86AjQ5Eh0KEGRlZmF1bHRfc2ZpeGVkNjQYRiABKBA6Ay01MBIb",
- "Cg1kZWZhdWx0X2Zsb2F0GEcgASgCOgQ1MS41Eh0KDmRlZmF1bHRfZG91Ymxl",
- "GEggASgBOgU1MjAwMBIaCgxkZWZhdWx0X2Jvb2wYSSABKAg6BHRydWUSHQoO",
- "ZGVmYXVsdF9zdHJpbmcYSiABKAk6BWhlbGxvEhwKDWRlZmF1bHRfYnl0ZXMY",
- "SyABKAw6BXdvcmxkElMKE2RlZmF1bHRfbmVzdGVkX2VudW0YUSABKA4yMS5w",
- "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZEVu",
- "dW06A0JBUhJQChRkZWZhdWx0X2ZvcmVpZ25fZW51bRhSIAEoDjIlLnByb3Rv",
- "YnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bToLRk9SRUlHTl9CQVIS",
- "VAoTZGVmYXVsdF9pbXBvcnRfZW51bRhTIAEoDjIrLnByb3RvYnVmX3VuaXR0",
- "ZXN0X2ltcG9ydF9wcm90bzIuSW1wb3J0RW51bToKSU1QT1JUX0JBUhIlChRk",
- "ZWZhdWx0X3N0cmluZ19waWVjZRhUIAEoCToDYWJjQgIIAhIdCgxkZWZhdWx0",
- "X2NvcmQYVSABKAk6AzEyM0ICCAESFgoMb25lb2ZfdWludDMyGG8gASgNSAAS",
- "VAoUb25lb2ZfbmVzdGVkX21lc3NhZ2UYcCABKAsyNC5wcm90b2J1Zl91bml0",
- "dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2VIABIWCgxv",
- "bmVvZl9zdHJpbmcYcSABKAlIABIVCgtvbmVvZl9ieXRlcxhyIAEoDEgAGhsK",
- "DU5lc3RlZE1lc3NhZ2USCgoCYmIYASABKAUaGgoNT3B0aW9uYWxHcm91cBIJ",
- "CgFhGBEgASgFGhoKDVJlcGVhdGVkR3JvdXASCQoBYRgvIAEoBSI5CgpOZXN0",
- "ZWRFbnVtEgcKA0ZPTxABEgcKA0JBUhACEgcKA0JBWhADEhAKA05FRxD/////",
- "//////8BQg0KC29uZW9mX2ZpZWxkItABChJOZXN0ZWRUZXN0QWxsVHlwZXMS",
- "OwoFY2hpbGQYASABKAsyLC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuTmVz",
- "dGVkVGVzdEFsbFR5cGVzEjcKB3BheWxvYWQYAiABKAsyJi5wcm90b2J1Zl91",
- "bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzEkQKDnJlcGVhdGVkX2NoaWxk",
- "GAMgAygLMiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLk5lc3RlZFRlc3RB",
- "bGxUeXBlcyJtChRUZXN0RGVwcmVjYXRlZEZpZWxkcxIcChBkZXByZWNhdGVk",
- "X2ludDMyGAEgASgFQgIYARInChlkZXByZWNhdGVkX2ludDMyX2luX29uZW9m",
- "GAIgASgFQgIYAUgAQg4KDG9uZW9mX2ZpZWxkcyIbChVUZXN0RGVwcmVjYXRl",
- "ZE1lc3NhZ2U6AhgBIiYKDkZvcmVpZ25NZXNzYWdlEgkKAWMYASABKAUSCQoB",
- "ZBgCIAEoBSIwChJUZXN0UmVzZXJ2ZWRGaWVsZHNKBAgCEANKBAgPEBBKBAgJ",
- "EAxSA2JhclIDYmF6Ih0KEVRlc3RBbGxFeHRlbnNpb25zKggIARCAgICAAiIk",
- "ChdPcHRpb25hbEdyb3VwX2V4dGVuc2lvbhIJCgFhGBEgASgFIiQKF1JlcGVh",
- "dGVkR3JvdXBfZXh0ZW5zaW9uEgkKAWEYLyABKAUitwEKCVRlc3RHcm91cBJI",
- "Cg1vcHRpb25hbGdyb3VwGBAgASgKMjEucHJvdG9idWZfdW5pdHRlc3RfcHJv",
- "dG8yLlRlc3RHcm91cC5PcHRpb25hbEdyb3VwEkQKFW9wdGlvbmFsX2ZvcmVp",
- "Z25fZW51bRgWIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3Jl",
- "aWduRW51bRoaCg1PcHRpb25hbEdyb3VwEgkKAWEYESABKAUiHgoSVGVzdEdy",
- "b3VwRXh0ZW5zaW9uKggIARCAgICAAiLhAwoTVGVzdE5lc3RlZEV4dGVuc2lv",
- "bhokChdPcHRpb25hbEdyb3VwX2V4dGVuc2lvbhIJCgFhGBEgASgFMkAKBHRl",
- "c3QSKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lv",
- "bnMY6gcgASgJOgR0ZXN0Mk0KF25lc3RlZF9zdHJpbmdfZXh0ZW5zaW9uEisu",
- "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGOsH",
- "IAEoCTKUAQoXb3B0aW9uYWxncm91cF9leHRlbnNpb24SLC5wcm90b2J1Zl91",
- "bml0dGVzdF9wcm90bzIuVGVzdEdyb3VwRXh0ZW5zaW9uGBAgASgKMkUucHJv",
- "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3ROZXN0ZWRFeHRlbnNpb24uT3B0",
- "aW9uYWxHcm91cF9leHRlbnNpb24yfAofb3B0aW9uYWxfZm9yZWlnbl9lbnVt",
- "X2V4dGVuc2lvbhIsLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0R3Jv",
- "dXBFeHRlbnNpb24YFiABKA4yJS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
- "Rm9yZWlnbkVudW0i8QUKDFRlc3RSZXF1aXJlZBIJCgFhGAEgAigFEg4KBmR1",
- "bW15MhgCIAEoBRIJCgFiGAMgAigFEg4KBmR1bW15NBgEIAEoBRIOCgZkdW1t",
- "eTUYBSABKAUSDgoGZHVtbXk2GAYgASgFEg4KBmR1bW15NxgHIAEoBRIOCgZk",
- "dW1teTgYCCABKAUSDgoGZHVtbXk5GAkgASgFEg8KB2R1bW15MTAYCiABKAUS",
- "DwoHZHVtbXkxMRgLIAEoBRIPCgdkdW1teTEyGAwgASgFEg8KB2R1bW15MTMY",
- "DSABKAUSDwoHZHVtbXkxNBgOIAEoBRIPCgdkdW1teTE1GA8gASgFEg8KB2R1",
- "bW15MTYYECABKAUSDwoHZHVtbXkxNxgRIAEoBRIPCgdkdW1teTE4GBIgASgF",
- "Eg8KB2R1bW15MTkYEyABKAUSDwoHZHVtbXkyMBgUIAEoBRIPCgdkdW1teTIx",
- "GBUgASgFEg8KB2R1bW15MjIYFiABKAUSDwoHZHVtbXkyMxgXIAEoBRIPCgdk",
- "dW1teTI0GBggASgFEg8KB2R1bW15MjUYGSABKAUSDwoHZHVtbXkyNhgaIAEo",
- "BRIPCgdkdW1teTI3GBsgASgFEg8KB2R1bW15MjgYHCABKAUSDwoHZHVtbXky",
- "ORgdIAEoBRIPCgdkdW1teTMwGB4gASgFEg8KB2R1bW15MzEYHyABKAUSDwoH",
- "ZHVtbXkzMhggIAEoBRIJCgFjGCEgAigFMmQKBnNpbmdsZRIrLnByb3RvYnVm",
- "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxjoByABKAsyJi5w",
- "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFJlcXVpcmVkMmMKBW11bHRp",
- "EisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25z",
- "GOkHIAMoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWly",
- "ZWQiqAEKE1Rlc3RSZXF1aXJlZEZvcmVpZ24SQAoQb3B0aW9uYWxfbWVzc2Fn",
- "ZRgBIAEoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWly",
- "ZWQSQAoQcmVwZWF0ZWRfbWVzc2FnZRgCIAMoCzImLnByb3RvYnVmX3VuaXR0",
- "ZXN0X3Byb3RvMi5UZXN0UmVxdWlyZWQSDQoFZHVtbXkYAyABKAUi2wEKE1Rl",
- "c3RSZXF1aXJlZE1lc3NhZ2USQAoQb3B0aW9uYWxfbWVzc2FnZRgBIAEoCzIm",
- "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWlyZWQSQAoQcmVw",
- "ZWF0ZWRfbWVzc2FnZRgCIAMoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
- "Mi5UZXN0UmVxdWlyZWQSQAoQcmVxdWlyZWRfbWVzc2FnZRgDIAIoCzImLnBy",
- "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UmVxdWlyZWQiYQoRVGVzdEZv",
- "cmVpZ25OZXN0ZWQSTAoOZm9yZWlnbl9uZXN0ZWQYASABKAsyNC5wcm90b2J1",
- "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2Ui",
- "EgoQVGVzdEVtcHR5TWVzc2FnZSIqCh5UZXN0RW1wdHlNZXNzYWdlV2l0aEV4",
- "dGVuc2lvbnMqCAgBEICAgIACIjcKG1Rlc3RNdWx0aXBsZUV4dGVuc2lvblJh",
- "bmdlcyoECCoQKyoGCK8gEJQhKgoIgIAEEICAgIACIjQKGFRlc3RSZWFsbHlM",
- "YXJnZVRhZ051bWJlchIJCgFhGAEgASgFEg0KAmJiGP///38gASgFIlwKFFRl",
- "c3RSZWN1cnNpdmVNZXNzYWdlEjkKAWEYASABKAsyLi5wcm90b2J1Zl91bml0",
- "dGVzdF9wcm90bzIuVGVzdFJlY3Vyc2l2ZU1lc3NhZ2USCQoBaRgCIAEoBSKE",
- "AwoUVGVzdE11dHVhbFJlY3Vyc2lvbkESOgoCYmIYASABKAsyLi5wcm90b2J1",
- "Zl91bml0dGVzdF9wcm90bzIuVGVzdE11dHVhbFJlY3Vyc2lvbkISSQoIc3Vi",
- "Z3JvdXAYAiABKAoyNy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE11",
- "dHVhbFJlY3Vyc2lvbkEuU3ViR3JvdXAaRwoKU3ViTWVzc2FnZRI5CgFiGAEg",
- "ASgLMi4ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RNdXR1YWxSZWN1",
- "cnNpb25CGpsBCghTdWJHcm91cBJOCgtzdWJfbWVzc2FnZRgDIAEoCzI5LnBy",
- "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0TXV0dWFsUmVjdXJzaW9uQS5T",
- "dWJNZXNzYWdlEj8KD25vdF9pbl90aGlzX3NjYxgEIAEoCzImLnByb3RvYnVm",
- "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMiaQoUVGVzdE11dHVhbFJl",
- "Y3Vyc2lvbkISOQoBYRgBIAEoCzIuLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
- "Mi5UZXN0TXV0dWFsUmVjdXJzaW9uQRIWCg5vcHRpb25hbF9pbnQzMhgCIAEo",
- "BSLYAQoRVGVzdElzSW5pdGlhbGl6ZWQSSwoLc3ViX21lc3NhZ2UYASABKAsy",
- "Ni5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdElzSW5pdGlhbGl6ZWQu",
- "U3ViTWVzc2FnZRp2CgpTdWJNZXNzYWdlElEKCHN1Ymdyb3VwGAEgASgKMj8u",
- "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RJc0luaXRpYWxpemVkLlN1",
- "Yk1lc3NhZ2UuU3ViR3JvdXAaFQoIU3ViR3JvdXASCQoBaRgCIAIoBSLBAQoS",
- "VGVzdER1cEZpZWxkTnVtYmVyEgkKAWEYASABKAUSPQoDZm9vGAIgASgKMjAu",
- "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3REdXBGaWVsZE51bWJlci5G",
- "b28SPQoDYmFyGAMgASgKMjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
- "c3REdXBGaWVsZE51bWJlci5CYXIaEAoDRm9vEgkKAWEYASABKAUaEAoDQmFy",
- "EgkKAWEYASABKAUiUwoQVGVzdEVhZ2VyTWVzc2FnZRI/CgtzdWJfbWVzc2Fn",
- "ZRgBIAEoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlw",
- "ZXNCAigAIlIKD1Rlc3RMYXp5TWVzc2FnZRI/CgtzdWJfbWVzc2FnZRgBIAEo",
- "CzImLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXNCAigB",
- "Io4CChhUZXN0TmVzdGVkTWVzc2FnZUhhc0JpdHMSYQoXb3B0aW9uYWxfbmVz",
- "dGVkX21lc3NhZ2UYASABKAsyQC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
- "VGVzdE5lc3RlZE1lc3NhZ2VIYXNCaXRzLk5lc3RlZE1lc3NhZ2UajgEKDU5l",
- "c3RlZE1lc3NhZ2USJAocbmVzdGVkbWVzc2FnZV9yZXBlYXRlZF9pbnQzMhgB",
- "IAMoBRJXCiVuZXN0ZWRtZXNzYWdlX3JlcGVhdGVkX2ZvcmVpZ25tZXNzYWdl",
- "GAIgAygLMigucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkZvcmVpZ25NZXNz",
- "YWdlIoEEChdUZXN0Q2FtZWxDYXNlRmllbGROYW1lcxIWCg5QcmltaXRpdmVG",
- "aWVsZBgBIAEoBRITCgtTdHJpbmdGaWVsZBgCIAEoCRI4CglFbnVtRmllbGQY",
- "AyABKA4yJS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW0S",
- "PgoMTWVzc2FnZUZpZWxkGAQgASgLMigucHJvdG9idWZfdW5pdHRlc3RfcHJv",
- "dG8yLkZvcmVpZ25NZXNzYWdlEhwKEFN0cmluZ1BpZWNlRmllbGQYBSABKAlC",
- "AggCEhUKCUNvcmRGaWVsZBgGIAEoCUICCAESHgoWUmVwZWF0ZWRQcmltaXRp",
- "dmVGaWVsZBgHIAMoBRIbChNSZXBlYXRlZFN0cmluZ0ZpZWxkGAggAygJEkAK",
- "EVJlcGVhdGVkRW51bUZpZWxkGAkgAygOMiUucHJvdG9idWZfdW5pdHRlc3Rf",
- "cHJvdG8yLkZvcmVpZ25FbnVtEkYKFFJlcGVhdGVkTWVzc2FnZUZpZWxkGAog",
- "AygLMigucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkZvcmVpZ25NZXNzYWdl",
- "EiQKGFJlcGVhdGVkU3RyaW5nUGllY2VGaWVsZBgLIAMoCUICCAISHQoRUmVw",
- "ZWF0ZWRDb3JkRmllbGQYDCADKAlCAggBItwBChJUZXN0RmllbGRPcmRlcmlu",
- "Z3MSEQoJbXlfc3RyaW5nGAsgASgJEg4KBm15X2ludBgBIAEoAxIQCghteV9m",
- "bG9hdBhlIAEoAhJcChdvcHRpb25hbF9uZXN0ZWRfbWVzc2FnZRjIASABKAsy",
- "Oi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEZpZWxkT3JkZXJpbmdz",
- "Lk5lc3RlZE1lc3NhZ2UaJwoNTmVzdGVkTWVzc2FnZRIKCgJvbxgCIAEoAxIK",
- "CgJiYhgBIAEoBSoECAIQCyoECAwQZSKqAQoXVGVzdEV4dGVuc2lvbk9yZGVy",
- "aW5nczESEQoJbXlfc3RyaW5nGAEgASgJMnwKE3Rlc3RfZXh0X29yZGVyaW5n",
- "czESLC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEZpZWxkT3JkZXJp",
- "bmdzGA0gASgLMjEucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RFeHRl",
- "bnNpb25PcmRlcmluZ3MxIvACChdUZXN0RXh0ZW5zaW9uT3JkZXJpbmdzMhIR",
- "CglteV9zdHJpbmcYASABKAkawwEKF1Rlc3RFeHRlbnNpb25PcmRlcmluZ3Mz",
- "EhEKCW15X3N0cmluZxgBIAEoCTKUAQoTdGVzdF9leHRfb3JkZXJpbmdzMxIs",
- "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0RmllbGRPcmRlcmluZ3MY",
- "DiABKAsySS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEV4dGVuc2lv",
- "bk9yZGVyaW5nczIuVGVzdEV4dGVuc2lvbk9yZGVyaW5nczMyfAoTdGVzdF9l",
- "eHRfb3JkZXJpbmdzMhIsLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0",
- "RmllbGRPcmRlcmluZ3MYDCABKAsyMS5wcm90b2J1Zl91bml0dGVzdF9wcm90",
- "bzIuVGVzdEV4dGVuc2lvbk9yZGVyaW5nczIitgcKGFRlc3RFeHRyZW1lRGVm",
- "YXVsdFZhbHVlcxI/Cg1lc2NhcGVkX2J5dGVzGAEgASgMOihcMDAwXDAwMVww",
- "MDdcMDEwXDAxNFxuXHJcdFwwMTNcXFwnXCJcMzc2EiAKDGxhcmdlX3VpbnQz",
- "MhgCIAEoDToKNDI5NDk2NzI5NRIqCgxsYXJnZV91aW50NjQYAyABKAQ6FDE4",
- "NDQ2NzQ0MDczNzA5NTUxNjE1EiAKC3NtYWxsX2ludDMyGAQgASgFOgstMjE0",
- "NzQ4MzY0NxIpCgtzbWFsbF9pbnQ2NBgFIAEoAzoULTkyMjMzNzIwMzY4NTQ3",
- "NzU4MDcSJwoScmVhbGx5X3NtYWxsX2ludDMyGBUgASgFOgstMjE0NzQ4MzY0",
- "OBIwChJyZWFsbHlfc21hbGxfaW50NjQYFiABKAM6FC05MjIzMzcyMDM2ODU0",
- "Nzc1ODA4EhgKC3V0Zjhfc3RyaW5nGAYgASgJOgPhiLQSFQoKemVyb19mbG9h",
- "dBgHIAEoAjoBMBIUCglvbmVfZmxvYXQYCCABKAI6ATESGAoLc21hbGxfZmxv",
- "YXQYCSABKAI6AzEuNRIeChJuZWdhdGl2ZV9vbmVfZmxvYXQYCiABKAI6Ai0x",
- "EhwKDm5lZ2F0aXZlX2Zsb2F0GAsgASgCOgQtMS41EhoKC2xhcmdlX2Zsb2F0",
- "GAwgASgCOgUyZSswOBIkChRzbWFsbF9uZWdhdGl2ZV9mbG9hdBgNIAEoAjoG",
- "LThlLTI4EhcKCmluZl9kb3VibGUYDiABKAE6A2luZhIcCg5uZWdfaW5mX2Rv",
- "dWJsZRgPIAEoAToELWluZhIXCgpuYW5fZG91YmxlGBAgASgBOgNuYW4SFgoJ",
- "aW5mX2Zsb2F0GBEgASgCOgNpbmYSGwoNbmVnX2luZl9mbG9hdBgSIAEoAjoE",
- "LWluZhIWCgluYW5fZmxvYXQYEyABKAI6A25hbhIrCgxjcHBfdHJpZ3JhcGgY",
- "FCABKAk6FT8gPyA/PyA/PyA/Pz8gPz8vID8/LRIgChBzdHJpbmdfd2l0aF96",
- "ZXJvGBcgASgJOgZoZWwAbG8SIgoPYnl0ZXNfd2l0aF96ZXJvGBggASgMOgl3",
- "b3JcMDAwbGQSKAoWc3RyaW5nX3BpZWNlX3dpdGhfemVybxgZIAEoCToEYWIA",
- "Y0ICCAISIAoOY29yZF93aXRoX3plcm8YGiABKAk6BDEyADNCAggBEiYKEnJl",
- "cGxhY2VtZW50X3N0cmluZxgbIAEoCToKJHt1bmtub3dufSJSChFTcGFyc2VF",
- "bnVtTWVzc2FnZRI9CgtzcGFyc2VfZW51bRgBIAEoDjIoLnByb3RvYnVmX3Vu",
- "aXR0ZXN0X3Byb3RvMi5UZXN0U3BhcnNlRW51bSIZCglPbmVTdHJpbmcSDAoE",
- "ZGF0YRgBIAEoCSIaCgpNb3JlU3RyaW5nEgwKBGRhdGEYASADKAkiGAoIT25l",
- "Qnl0ZXMSDAoEZGF0YRgBIAEoDCIZCglNb3JlQnl0ZXMSDAoEZGF0YRgBIAMo",
- "DCIcCgxJbnQzMk1lc3NhZ2USDAoEZGF0YRgBIAEoBSIdCg1VaW50MzJNZXNz",
- "YWdlEgwKBGRhdGEYASABKA0iHAoMSW50NjRNZXNzYWdlEgwKBGRhdGEYASAB",
- "KAMiHQoNVWludDY0TWVzc2FnZRIMCgRkYXRhGAEgASgEIhsKC0Jvb2xNZXNz",
- "YWdlEgwKBGRhdGEYASABKAgi3gEKCVRlc3RPbmVvZhIRCgdmb29faW50GAEg",
- "ASgFSAASFAoKZm9vX3N0cmluZxgCIAEoCUgAEj0KC2Zvb19tZXNzYWdlGAMg",
- "ASgLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlc0gA",
- "EkAKCGZvb2dyb3VwGAQgASgKMiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
- "LlRlc3RPbmVvZi5Gb29Hcm91cEgAGiAKCEZvb0dyb3VwEgkKAWEYBSABKAUS",
- "CQoBYhgGIAEoCUIFCgNmb28i9QEKHFRlc3RPbmVvZkJhY2t3YXJkc0NvbXBh",
- "dGlibGUSDwoHZm9vX2ludBgBIAEoBRISCgpmb29fc3RyaW5nGAIgASgJEjsK",
- "C2Zvb19tZXNzYWdlGAMgASgLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
- "LlRlc3RBbGxUeXBlcxJRCghmb29ncm91cBgEIAEoCjI/LnByb3RvYnVmX3Vu",
- "aXR0ZXN0X3Byb3RvMi5UZXN0T25lb2ZCYWNrd2FyZHNDb21wYXRpYmxlLkZv",
- "b0dyb3VwGiAKCEZvb0dyb3VwEgkKAWEYBSABKAUSCQoBYhgGIAEoCSLBBgoK",
- "VGVzdE9uZW9mMhIRCgdmb29faW50GAEgASgFSAASFAoKZm9vX3N0cmluZxgC",
- "IAEoCUgAEhYKCGZvb19jb3JkGAMgASgJQgIIAUgAEh4KEGZvb19zdHJpbmdf",
- "cGllY2UYBCABKAlCAggCSAASEwoJZm9vX2J5dGVzGAUgASgMSAASQwoIZm9v",
- "X2VudW0YBiABKA4yLy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE9u",
- "ZW9mMi5OZXN0ZWRFbnVtSAASSQoLZm9vX21lc3NhZ2UYByABKAsyMi5wcm90",
- "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE9uZW9mMi5OZXN0ZWRNZXNzYWdl",
- "SAASQQoIZm9vZ3JvdXAYCCABKAoyLS5wcm90b2J1Zl91bml0dGVzdF9wcm90",
- "bzIuVGVzdE9uZW9mMi5Gb29Hcm91cEgAElIKEGZvb19sYXp5X21lc3NhZ2UY",
- "CyABKAsyMi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdE9uZW9mMi5O",
- "ZXN0ZWRNZXNzYWdlQgIoAUgAEhQKB2Jhcl9pbnQYDCABKAU6ATVIARIcCgpi",
- "YXJfc3RyaW5nGA0gASgJOgZTVFJJTkdIARIcCghiYXJfY29yZBgOIAEoCToE",
- "Q09SREICCAFIARImChBiYXJfc3RyaW5nX3BpZWNlGA8gASgJOgZTUElFQ0VC",
- "AggCSAESGgoJYmFyX2J5dGVzGBAgASgMOgVCWVRFU0gBEkgKCGJhcl9lbnVt",
- "GBEgASgOMi8ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RPbmVvZjIu",
- "TmVzdGVkRW51bToDQkFSSAESDwoHYmF6X2ludBgSIAEoBRIXCgpiYXpfc3Ry",
- "aW5nGBMgASgJOgNCQVoaIAoIRm9vR3JvdXASCQoBYRgJIAEoBRIJCgFiGAog",
- "ASgJGjMKDU5lc3RlZE1lc3NhZ2USDwoHcXV4X2ludBgBIAEoAxIRCgljb3Jn",
- "ZV9pbnQYAiADKAUiJwoKTmVzdGVkRW51bRIHCgNGT08QARIHCgNCQVIQAhIH",
- "CgNCQVoQA0IFCgNmb29CBQoDYmFyIr8BChFUZXN0UmVxdWlyZWRPbmVvZhIR",
- "Cgdmb29faW50GAEgASgFSAASFAoKZm9vX3N0cmluZxgCIAEoCUgAElAKC2Zv",
- "b19tZXNzYWdlGAMgASgLMjkucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
- "c3RSZXF1aXJlZE9uZW9mLk5lc3RlZE1lc3NhZ2VIABooCg1OZXN0ZWRNZXNz",
- "YWdlEhcKD3JlcXVpcmVkX2RvdWJsZRgBIAIoAUIFCgNmb28i4AEKD1Rlc3RS",
- "ZXF1aXJlZE1hcBI/CgNmb28YASADKAsyMi5wcm90b2J1Zl91bml0dGVzdF9w",
- "cm90bzIuVGVzdFJlcXVpcmVkTWFwLkZvb0VudHJ5GmMKCEZvb0VudHJ5EgsK",
- "A2tleRgBIAEoBRJGCgV2YWx1ZRgCIAEoCzI3LnByb3RvYnVmX3VuaXR0ZXN0",
- "X3Byb3RvMi5UZXN0UmVxdWlyZWRNYXAuTmVzdGVkTWVzc2FnZToCOAEaJwoN",
- "TmVzdGVkTWVzc2FnZRIWCg5yZXF1aXJlZF9pbnQzMhgBIAIoBSKxAwoPVGVz",
- "dFBhY2tlZFR5cGVzEhgKDHBhY2tlZF9pbnQzMhhaIAMoBUICEAESGAoMcGFj",
- "a2VkX2ludDY0GFsgAygDQgIQARIZCg1wYWNrZWRfdWludDMyGFwgAygNQgIQ",
- "ARIZCg1wYWNrZWRfdWludDY0GF0gAygEQgIQARIZCg1wYWNrZWRfc2ludDMy",
- "GF4gAygRQgIQARIZCg1wYWNrZWRfc2ludDY0GF8gAygSQgIQARIaCg5wYWNr",
- "ZWRfZml4ZWQzMhhgIAMoB0ICEAESGgoOcGFja2VkX2ZpeGVkNjQYYSADKAZC",
- "AhABEhsKD3BhY2tlZF9zZml4ZWQzMhhiIAMoD0ICEAESGwoPcGFja2VkX3Nm",
- "aXhlZDY0GGMgAygQQgIQARIYCgxwYWNrZWRfZmxvYXQYZCADKAJCAhABEhkK",
- "DXBhY2tlZF9kb3VibGUYZSADKAFCAhABEhcKC3BhY2tlZF9ib29sGGYgAygI",
- "QgIQARI+CgtwYWNrZWRfZW51bRhnIAMoDjIlLnByb3RvYnVmX3VuaXR0ZXN0",
- "X3Byb3RvMi5Gb3JlaWduRW51bUICEAEizwMKEVRlc3RVbnBhY2tlZFR5cGVz",
- "EhoKDnVucGFja2VkX2ludDMyGFogAygFQgIQABIaCg51bnBhY2tlZF9pbnQ2",
- "NBhbIAMoA0ICEAASGwoPdW5wYWNrZWRfdWludDMyGFwgAygNQgIQABIbCg91",
- "bnBhY2tlZF91aW50NjQYXSADKARCAhAAEhsKD3VucGFja2VkX3NpbnQzMhhe",
- "IAMoEUICEAASGwoPdW5wYWNrZWRfc2ludDY0GF8gAygSQgIQABIcChB1bnBh",
- "Y2tlZF9maXhlZDMyGGAgAygHQgIQABIcChB1bnBhY2tlZF9maXhlZDY0GGEg",
- "AygGQgIQABIdChF1bnBhY2tlZF9zZml4ZWQzMhhiIAMoD0ICEAASHQoRdW5w",
- "YWNrZWRfc2ZpeGVkNjQYYyADKBBCAhAAEhoKDnVucGFja2VkX2Zsb2F0GGQg",
- "AygCQgIQABIbCg91bnBhY2tlZF9kb3VibGUYZSADKAFCAhAAEhkKDXVucGFj",
- "a2VkX2Jvb2wYZiADKAhCAhAAEkAKDXVucGFja2VkX2VudW0YZyADKA4yJS5w",
- "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuRm9yZWlnbkVudW1CAhAAIiAKFFRl",
- "c3RQYWNrZWRFeHRlbnNpb25zKggIARCAgICAAiIiChZUZXN0VW5wYWNrZWRF",
- "eHRlbnNpb25zKggIARCAgICAAiK1BAoVVGVzdER5bmFtaWNFeHRlbnNpb25z",
- "EhkKEHNjYWxhcl9leHRlbnNpb24Y0A8gASgHEj4KDmVudW1fZXh0ZW5zaW9u",
- "GNEPIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51",
- "bRJgChZkeW5hbWljX2VudW1fZXh0ZW5zaW9uGNIPIAEoDjI/LnByb3RvYnVm",
- "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0RHluYW1pY0V4dGVuc2lvbnMuRHluYW1p",
- "Y0VudW1UeXBlEkQKEW1lc3NhZ2VfZXh0ZW5zaW9uGNMPIAEoCzIoLnByb3Rv",
- "YnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduTWVzc2FnZRJmChlkeW5hbWlj",
- "X21lc3NhZ2VfZXh0ZW5zaW9uGNQPIAEoCzJCLnByb3RvYnVmX3VuaXR0ZXN0",
- "X3Byb3RvMi5UZXN0RHluYW1pY0V4dGVuc2lvbnMuRHluYW1pY01lc3NhZ2VU",
- "eXBlEhsKEnJlcGVhdGVkX2V4dGVuc2lvbhjVDyADKAkSHQoQcGFja2VkX2V4",
- "dGVuc2lvbhjWDyADKBFCAhABGiwKEkR5bmFtaWNNZXNzYWdlVHlwZRIWCg1k",
- "eW5hbWljX2ZpZWxkGLQQIAEoBSJHCg9EeW5hbWljRW51bVR5cGUSEAoLRFlO",
- "QU1JQ19GT08QmBESEAoLRFlOQU1JQ19CQVIQmRESEAoLRFlOQU1JQ19CQVoQ",
- "mhEiwAEKI1Rlc3RSZXBlYXRlZFNjYWxhckRpZmZlcmVudFRhZ1NpemVzEhgK",
- "EHJlcGVhdGVkX2ZpeGVkMzIYDCADKAcSFgoOcmVwZWF0ZWRfaW50MzIYDSAD",
- "KAUSGQoQcmVwZWF0ZWRfZml4ZWQ2NBj+DyADKAYSFwoOcmVwZWF0ZWRfaW50",
- "NjQY/w8gAygDEhgKDnJlcGVhdGVkX2Zsb2F0GP7/DyADKAISGQoPcmVwZWF0",
- "ZWRfdWludDY0GP//DyADKAQigwsKEFRlc3RQYXJzaW5nTWVyZ2USQgoScmVx",
- "dWlyZWRfYWxsX3R5cGVzGAEgAigLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJv",
- "dG8yLlRlc3RBbGxUeXBlcxJCChJvcHRpb25hbF9hbGxfdHlwZXMYAiABKAsy",
- "Ji5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzEkIKEnJl",
- "cGVhdGVkX2FsbF90eXBlcxgDIAMoCzImLnByb3RvYnVmX3VuaXR0ZXN0X3By",
- "b3RvMi5UZXN0QWxsVHlwZXMSTwoNb3B0aW9uYWxncm91cBgKIAEoCjI4LnBy",
- "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UGFyc2luZ01lcmdlLk9wdGlv",
- "bmFsR3JvdXASTwoNcmVwZWF0ZWRncm91cBgUIAMoCjI4LnByb3RvYnVmX3Vu",
- "aXR0ZXN0X3Byb3RvMi5UZXN0UGFyc2luZ01lcmdlLlJlcGVhdGVkR3JvdXAa",
- "6QQKF1JlcGVhdGVkRmllbGRzR2VuZXJhdG9yEjYKBmZpZWxkMRgBIAMoCzIm",
- "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMSNgoGZmll",
- "bGQyGAIgAygLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxU",
- "eXBlcxI2CgZmaWVsZDMYAyADKAsyJi5wcm90b2J1Zl91bml0dGVzdF9wcm90",
- "bzIuVGVzdEFsbFR5cGVzElkKBmdyb3VwMRgKIAMoCjJJLnByb3RvYnVmX3Vu",
- "aXR0ZXN0X3Byb3RvMi5UZXN0UGFyc2luZ01lcmdlLlJlcGVhdGVkRmllbGRz",
- "R2VuZXJhdG9yLkdyb3VwMRJZCgZncm91cDIYFCADKAoySS5wcm90b2J1Zl91",
- "bml0dGVzdF9wcm90bzIuVGVzdFBhcnNpbmdNZXJnZS5SZXBlYXRlZEZpZWxk",
- "c0dlbmVyYXRvci5Hcm91cDISNQoEZXh0MRjoByADKAsyJi5wcm90b2J1Zl91",
- "bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzEjUKBGV4dDIY6QcgAygLMiYu",
- "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcxpACgZHcm91",
- "cDESNgoGZmllbGQxGAsgASgLMiYucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
- "LlRlc3RBbGxUeXBlcxpACgZHcm91cDISNgoGZmllbGQxGBUgASgLMiYucHJv",
- "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlcxpZCg1PcHRpb25h",
- "bEdyb3VwEkgKGG9wdGlvbmFsX2dyb3VwX2FsbF90eXBlcxgLIAEoCzImLnBy",
- "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMaWQoNUmVwZWF0",
- "ZWRHcm91cBJIChhyZXBlYXRlZF9ncm91cF9hbGxfdHlwZXMYFSABKAsyJi5w",
- "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzKgkI6AcQgICA",
- "gAIyaQoMb3B0aW9uYWxfZXh0EioucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
- "LlRlc3RQYXJzaW5nTWVyZ2UY6AcgASgLMiYucHJvdG9idWZfdW5pdHRlc3Rf",
- "cHJvdG8yLlRlc3RBbGxUeXBlczJpCgxyZXBlYXRlZF9leHQSKi5wcm90b2J1",
- "Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhcnNpbmdNZXJnZRjpByADKAsyJi5w",
- "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzIkQKG1Rlc3RD",
- "b21tZW50SW5qZWN0aW9uTWVzc2FnZRIlCgFhGAEgASgJOhoqLyA8LSBOZWl0",
- "aGVyIHNob3VsZCB0aGlzLiIMCgpGb29SZXF1ZXN0Ig0KC0Zvb1Jlc3BvbnNl",
- "IhIKEEZvb0NsaWVudE1lc3NhZ2UiEgoQRm9vU2VydmVyTWVzc2FnZSIMCgpC",
- "YXJSZXF1ZXN0Ig0KC0JhclJlc3BvbnNlIpIBCgxUZXN0SnNvbk5hbWUSEwoL",
- "ZmllbGRfbmFtZTEYASABKAUSEgoKZmllbGROYW1lMhgCIAEoBRISCgpGaWVs",
- "ZE5hbWUzGAMgASgFEhQKDF9maWVsZF9uYW1lNBgEIAEoBRITCgtGSUVMRF9O",
- "QU1FNRgFIAEoBRIaCgtmaWVsZF9uYW1lNhgGIAEoBVIFQHR5cGUioAYKFFRl",
- "c3RIdWdlRmllbGROdW1iZXJzEhoKDm9wdGlvbmFsX2ludDMyGPD4//8BIAEo",
- "BRIUCghmaXhlZF8zMhjx+P//ASABKAUSHgoOcmVwZWF0ZWRfaW50MzIY8vj/",
- "/wEgAygFQgIQABIcCgxwYWNrZWRfaW50MzIY8/j//wEgAygFQgIQARJACg1v",
- "cHRpb25hbF9lbnVtGPT4//8BIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3By",
- "b3RvMi5Gb3JlaWduRW51bRIbCg9vcHRpb25hbF9zdHJpbmcY9fj//wEgASgJ",
- "EhoKDm9wdGlvbmFsX2J5dGVzGPb4//8BIAEoDBJGChBvcHRpb25hbF9tZXNz",
- "YWdlGPf4//8BIAEoCzIoLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3Jl",
- "aWduTWVzc2FnZRJXCg1vcHRpb25hbGdyb3VwGPj4//8BIAEoCjI8LnByb3Rv",
- "YnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0SHVnZUZpZWxkTnVtYmVycy5PcHRp",
- "b25hbEdyb3VwEmIKEXN0cmluZ19zdHJpbmdfbWFwGPr4//8BIAMoCzJDLnBy",
- "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0SHVnZUZpZWxkTnVtYmVycy5T",
- "dHJpbmdTdHJpbmdNYXBFbnRyeRIaCgxvbmVvZl91aW50MzIY+/j//wEgASgN",
- "SAASSgoUb25lb2ZfdGVzdF9hbGxfdHlwZXMY/Pj//wEgASgLMiYucHJvdG9i",
- "dWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlc0gAEhoKDG9uZW9mX3N0",
- "cmluZxj9+P//ASABKAlIABIZCgtvbmVvZl9ieXRlcxj++P//ASABKAxIABok",
- "Cg1PcHRpb25hbEdyb3VwEhMKB2dyb3VwX2EY+fj//wEgASgFGjYKFFN0cmlu",
- "Z1N0cmluZ01hcEVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToC",
- "OAEqDAjgqv//ARDw+P//AUINCgtvbmVvZl9maWVsZCKxAQoYVGVzdEV4dGVu",
- "c2lvbkluc2lkZVRhYmxlEg4KBmZpZWxkMRgBIAEoBRIOCgZmaWVsZDIYAiAB",
- "KAUSDgoGZmllbGQzGAMgASgFEg4KBmZpZWxkNBgEIAEoBRIOCgZmaWVsZDYY",
- "BiABKAUSDgoGZmllbGQ3GAcgASgFEg4KBmZpZWxkOBgIIAEoBRIOCgZmaWVs",
- "ZDkYCSABKAUSDwoHZmllbGQxMBgKIAEoBSoECAUQBipACgtGb3JlaWduRW51",
- "bRIPCgtGT1JFSUdOX0ZPTxAEEg8KC0ZPUkVJR05fQkFSEAUSDwoLRk9SRUlH",
- "Tl9CQVoQBipLChRUZXN0RW51bVdpdGhEdXBWYWx1ZRIICgRGT08xEAESCAoE",
- "QkFSMRACEgcKA0JBWhADEggKBEZPTzIQARIICgRCQVIyEAIaAhABKokBCg5U",
- "ZXN0U3BhcnNlRW51bRIMCghTUEFSU0VfQRB7Eg4KCFNQQVJTRV9CEKbnAxIP",
- "CghTUEFSU0VfQxCysYAGEhUKCFNQQVJTRV9EEPH//////////wESFQoIU1BB",
- "UlNFX0UQtN78////////ARIMCghTUEFSU0VfRhAAEgwKCFNQQVJTRV9HEAIq",
- "iw8KDVZlcnlMYXJnZUVudW0SFgoSRU5VTV9MQUJFTF9ERUZBVUxUEAASEAoM",
- "RU5VTV9MQUJFTF8xEAESEAoMRU5VTV9MQUJFTF8yEAISEAoMRU5VTV9MQUJF",
- "TF8zEAMSEAoMRU5VTV9MQUJFTF80EAQSEAoMRU5VTV9MQUJFTF81EAUSEAoM",
- "RU5VTV9MQUJFTF82EAYSEAoMRU5VTV9MQUJFTF83EAcSEAoMRU5VTV9MQUJF",
- "TF84EAgSEAoMRU5VTV9MQUJFTF85EAkSEQoNRU5VTV9MQUJFTF8xMBAKEhEK",
- "DUVOVU1fTEFCRUxfMTEQCxIRCg1FTlVNX0xBQkVMXzEyEAwSEQoNRU5VTV9M",
- "QUJFTF8xMxANEhEKDUVOVU1fTEFCRUxfMTQQDhIRCg1FTlVNX0xBQkVMXzE1",
- "EA8SEQoNRU5VTV9MQUJFTF8xNhAQEhEKDUVOVU1fTEFCRUxfMTcQERIRCg1F",
- "TlVNX0xBQkVMXzE4EBISEQoNRU5VTV9MQUJFTF8xORATEhEKDUVOVU1fTEFC",
- "RUxfMjAQFBIRCg1FTlVNX0xBQkVMXzIxEBUSEQoNRU5VTV9MQUJFTF8yMhAW",
- "EhEKDUVOVU1fTEFCRUxfMjMQFxIRCg1FTlVNX0xBQkVMXzI0EBgSEQoNRU5V",
- "TV9MQUJFTF8yNRAZEhEKDUVOVU1fTEFCRUxfMjYQGhIRCg1FTlVNX0xBQkVM",
- "XzI3EBsSEQoNRU5VTV9MQUJFTF8yOBAcEhEKDUVOVU1fTEFCRUxfMjkQHRIR",
- "Cg1FTlVNX0xBQkVMXzMwEB4SEQoNRU5VTV9MQUJFTF8zMRAfEhEKDUVOVU1f",
- "TEFCRUxfMzIQIBIRCg1FTlVNX0xBQkVMXzMzECESEQoNRU5VTV9MQUJFTF8z",
- "NBAiEhEKDUVOVU1fTEFCRUxfMzUQIxIRCg1FTlVNX0xBQkVMXzM2ECQSEQoN",
- "RU5VTV9MQUJFTF8zNxAlEhEKDUVOVU1fTEFCRUxfMzgQJhIRCg1FTlVNX0xB",
- "QkVMXzM5ECcSEQoNRU5VTV9MQUJFTF80MBAoEhEKDUVOVU1fTEFCRUxfNDEQ",
- "KRIRCg1FTlVNX0xBQkVMXzQyECoSEQoNRU5VTV9MQUJFTF80MxArEhEKDUVO",
- "VU1fTEFCRUxfNDQQLBIRCg1FTlVNX0xBQkVMXzQ1EC0SEQoNRU5VTV9MQUJF",
- "TF80NhAuEhEKDUVOVU1fTEFCRUxfNDcQLxIRCg1FTlVNX0xBQkVMXzQ4EDAS",
- "EQoNRU5VTV9MQUJFTF80ORAxEhEKDUVOVU1fTEFCRUxfNTAQMhIRCg1FTlVN",
- "X0xBQkVMXzUxEDMSEQoNRU5VTV9MQUJFTF81MhA0EhEKDUVOVU1fTEFCRUxf",
- "NTMQNRIRCg1FTlVNX0xBQkVMXzU0EDYSEQoNRU5VTV9MQUJFTF81NRA3EhEK",
- "DUVOVU1fTEFCRUxfNTYQOBIRCg1FTlVNX0xBQkVMXzU3EDkSEQoNRU5VTV9M",
- "QUJFTF81OBA6EhEKDUVOVU1fTEFCRUxfNTkQOxIRCg1FTlVNX0xBQkVMXzYw",
- "EDwSEQoNRU5VTV9MQUJFTF82MRA9EhEKDUVOVU1fTEFCRUxfNjIQPhIRCg1F",
- "TlVNX0xBQkVMXzYzED8SEQoNRU5VTV9MQUJFTF82NBBAEhEKDUVOVU1fTEFC",
- "RUxfNjUQQRIRCg1FTlVNX0xBQkVMXzY2EEISEQoNRU5VTV9MQUJFTF82NxBD",
- "EhEKDUVOVU1fTEFCRUxfNjgQRBIRCg1FTlVNX0xBQkVMXzY5EEUSEQoNRU5V",
- "TV9MQUJFTF83MBBGEhEKDUVOVU1fTEFCRUxfNzEQRxIRCg1FTlVNX0xBQkVM",
- "XzcyEEgSEQoNRU5VTV9MQUJFTF83MxBJEhEKDUVOVU1fTEFCRUxfNzQQShIR",
- "Cg1FTlVNX0xBQkVMXzc1EEsSEQoNRU5VTV9MQUJFTF83NhBMEhEKDUVOVU1f",
- "TEFCRUxfNzcQTRIRCg1FTlVNX0xBQkVMXzc4EE4SEQoNRU5VTV9MQUJFTF83",
- "ORBPEhEKDUVOVU1fTEFCRUxfODAQUBIRCg1FTlVNX0xBQkVMXzgxEFESEQoN",
- "RU5VTV9MQUJFTF84MhBSEhEKDUVOVU1fTEFCRUxfODMQUxIRCg1FTlVNX0xB",
- "QkVMXzg0EFQSEQoNRU5VTV9MQUJFTF84NRBVEhEKDUVOVU1fTEFCRUxfODYQ",
- "VhIRCg1FTlVNX0xBQkVMXzg3EFcSEQoNRU5VTV9MQUJFTF84OBBYEhEKDUVO",
- "VU1fTEFCRUxfODkQWRIRCg1FTlVNX0xBQkVMXzkwEFoSEQoNRU5VTV9MQUJF",
- "TF85MRBbEhEKDUVOVU1fTEFCRUxfOTIQXBIRCg1FTlVNX0xBQkVMXzkzEF0S",
- "EQoNRU5VTV9MQUJFTF85NBBeEhEKDUVOVU1fTEFCRUxfOTUQXxIRCg1FTlVN",
- "X0xBQkVMXzk2EGASEQoNRU5VTV9MQUJFTF85NxBhEhEKDUVOVU1fTEFCRUxf",
- "OTgQYhIRCg1FTlVNX0xBQkVMXzk5EGMSEgoORU5VTV9MQUJFTF8xMDAQZDK1",
- "AQoLVGVzdFNlcnZpY2USUgoDRm9vEiQucHJvdG9idWZfdW5pdHRlc3RfcHJv",
- "dG8yLkZvb1JlcXVlc3QaJS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuRm9v",
- "UmVzcG9uc2USUgoDQmFyEiQucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLkJh",
- "clJlcXVlc3QaJS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuQmFyUmVzcG9u",
- "c2U6TQoYb3B0aW9uYWxfaW50MzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5p",
- "dHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGAEgASgFOk0KGG9wdGlv",
- "bmFsX2ludDY0X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
- "Mi5UZXN0QWxsRXh0ZW5zaW9ucxgCIAEoAzpOChlvcHRpb25hbF91aW50MzJf",
- "ZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxF",
- "eHRlbnNpb25zGAMgASgNOk4KGW9wdGlvbmFsX3VpbnQ2NF9leHRlbnNpb24S",
- "Ky5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMY",
- "BCABKAQ6TgoZb3B0aW9uYWxfc2ludDMyX2V4dGVuc2lvbhIrLnByb3RvYnVm",
- "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgFIAEoETpOChlv",
- "cHRpb25hbF9zaW50NjRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3Rf",
- "cHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGAYgASgSOk8KGm9wdGlvbmFsX2Zp",
- "eGVkMzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
- "c3RBbGxFeHRlbnNpb25zGAcgASgHOk8KGm9wdGlvbmFsX2ZpeGVkNjRfZXh0",
- "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
- "bnNpb25zGAggASgGOlAKG29wdGlvbmFsX3NmaXhlZDMyX2V4dGVuc2lvbhIr",
- "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgJ",
- "IAEoDzpQChtvcHRpb25hbF9zZml4ZWQ2NF9leHRlbnNpb24SKy5wcm90b2J1",
- "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYCiABKBA6TQoY",
- "b3B0aW9uYWxfZmxvYXRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3Rf",
- "cHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGAsgASgCOk4KGW9wdGlvbmFsX2Rv",
- "dWJsZV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz",
- "dEFsbEV4dGVuc2lvbnMYDCABKAE6TAoXb3B0aW9uYWxfYm9vbF9leHRlbnNp",
- "b24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lv",
- "bnMYDSABKAg6TgoZb3B0aW9uYWxfc3RyaW5nX2V4dGVuc2lvbhIrLnByb3Rv",
- "YnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgOIAEoCTpN",
- "ChhvcHRpb25hbF9ieXRlc19leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVz",
- "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYDyABKAw6fwoXb3B0aW9uYWxn",
- "cm91cF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz",
- "dEFsbEV4dGVuc2lvbnMYECABKAoyMS5wcm90b2J1Zl91bml0dGVzdF9wcm90",
- "bzIuT3B0aW9uYWxHcm91cF9leHRlbnNpb246jAEKIW9wdGlvbmFsX25lc3Rl",
- "ZF9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
- "Mi5UZXN0QWxsRXh0ZW5zaW9ucxgSIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0",
- "X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZTqBAQoib3B0aW9u",
- "YWxfZm9yZWlnbl9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0",
- "ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgTIAEoCzIoLnByb3RvYnVm",
- "X3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduTWVzc2FnZTqGAQohb3B0aW9uYWxf",
- "aW1wb3J0X21lc3NhZ2VfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3Rf",
- "cHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGBQgASgLMi4ucHJvdG9idWZfdW5p",
- "dHRlc3RfaW1wb3J0X3Byb3RvMi5JbXBvcnRNZXNzYWdlOoYBCh5vcHRpb25h",
- "bF9uZXN0ZWRfZW51bV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9w",
- "cm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYFSABKA4yMS5wcm90b2J1Zl91bml0",
- "dGVzdF9wcm90bzIuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW06ewofb3B0aW9u",
- "YWxfZm9yZWlnbl9lbnVtX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0",
- "X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgWIAEoDjIlLnByb3RvYnVmX3Vu",
- "aXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bTqAAQoeb3B0aW9uYWxfaW1wb3J0",
- "X2VudW1fZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
- "c3RBbGxFeHRlbnNpb25zGBcgASgOMisucHJvdG9idWZfdW5pdHRlc3RfaW1w",
- "b3J0X3Byb3RvMi5JbXBvcnRFbnVtOlgKH29wdGlvbmFsX3N0cmluZ19waWVj",
- "ZV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFs",
- "bEV4dGVuc2lvbnMYGCABKAlCAggCOlAKF29wdGlvbmFsX2NvcmRfZXh0ZW5z",
- "aW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNp",
- "b25zGBkgASgJQgIIATqTAQoob3B0aW9uYWxfcHVibGljX2ltcG9ydF9tZXNz",
- "YWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0",
- "QWxsRXh0ZW5zaW9ucxgaIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9y",
- "dF9wcm90bzIuUHVibGljSW1wb3J0TWVzc2FnZTqOAQofb3B0aW9uYWxfbGF6",
- "eV9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
- "Mi5UZXN0QWxsRXh0ZW5zaW9ucxgbIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0",
- "X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZUICKAE6TQoYcmVw",
- "ZWF0ZWRfaW50MzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJv",
- "dG8yLlRlc3RBbGxFeHRlbnNpb25zGB8gAygFOk0KGHJlcGVhdGVkX2ludDY0",
- "X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxs",
- "RXh0ZW5zaW9ucxggIAMoAzpOChlyZXBlYXRlZF91aW50MzJfZXh0ZW5zaW9u",
- "EisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25z",
- "GCEgAygNOk4KGXJlcGVhdGVkX3VpbnQ2NF9leHRlbnNpb24SKy5wcm90b2J1",
- "Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYIiADKAQ6TgoZ",
- "cmVwZWF0ZWRfc2ludDMyX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0",
- "X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgjIAMoETpOChlyZXBlYXRlZF9z",
- "aW50NjRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
- "c3RBbGxFeHRlbnNpb25zGCQgAygSOk8KGnJlcGVhdGVkX2ZpeGVkMzJfZXh0",
- "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
- "bnNpb25zGCUgAygHOk8KGnJlcGVhdGVkX2ZpeGVkNjRfZXh0ZW5zaW9uEisu",
- "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGCYg",
- "AygGOlAKG3JlcGVhdGVkX3NmaXhlZDMyX2V4dGVuc2lvbhIrLnByb3RvYnVm",
- "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgnIAMoDzpQChty",
- "ZXBlYXRlZF9zZml4ZWQ2NF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVz",
- "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYKCADKBA6TQoYcmVwZWF0ZWRf",
- "ZmxvYXRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
- "c3RBbGxFeHRlbnNpb25zGCkgAygCOk4KGXJlcGVhdGVkX2RvdWJsZV9leHRl",
- "bnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVu",
- "c2lvbnMYKiADKAE6TAoXcmVwZWF0ZWRfYm9vbF9leHRlbnNpb24SKy5wcm90",
- "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYKyADKAg6",
- "TgoZcmVwZWF0ZWRfc3RyaW5nX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0",
- "ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxgsIAMoCTpNChhyZXBlYXRl",
- "ZF9ieXRlc19leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
- "VGVzdEFsbEV4dGVuc2lvbnMYLSADKAw6fwoXcmVwZWF0ZWRncm91cF9leHRl",
- "bnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVu",
- "c2lvbnMYLiADKAoyMS5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuUmVwZWF0",
- "ZWRHcm91cF9leHRlbnNpb246jAEKIXJlcGVhdGVkX25lc3RlZF9tZXNzYWdl",
- "X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxs",
- "RXh0ZW5zaW9ucxgwIAMoCzI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5U",
- "ZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZTqBAQoicmVwZWF0ZWRfZm9yZWln",
- "bl9tZXNzYWdlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
- "Mi5UZXN0QWxsRXh0ZW5zaW9ucxgxIAMoCzIoLnByb3RvYnVmX3VuaXR0ZXN0",
- "X3Byb3RvMi5Gb3JlaWduTWVzc2FnZTqGAQohcmVwZWF0ZWRfaW1wb3J0X21l",
- "c3NhZ2VfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
- "c3RBbGxFeHRlbnNpb25zGDIgAygLMi4ucHJvdG9idWZfdW5pdHRlc3RfaW1w",
- "b3J0X3Byb3RvMi5JbXBvcnRNZXNzYWdlOoYBCh5yZXBlYXRlZF9uZXN0ZWRf",
- "ZW51bV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVz",
- "dEFsbEV4dGVuc2lvbnMYMyADKA4yMS5wcm90b2J1Zl91bml0dGVzdF9wcm90",
- "bzIuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW06ewofcmVwZWF0ZWRfZm9yZWln",
- "bl9lbnVtX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5U",
- "ZXN0QWxsRXh0ZW5zaW9ucxg0IAMoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3By",
- "b3RvMi5Gb3JlaWduRW51bTqAAQoecmVwZWF0ZWRfaW1wb3J0X2VudW1fZXh0",
- "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
- "bnNpb25zGDUgAygOMisucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0X3Byb3Rv",
- "Mi5JbXBvcnRFbnVtOlgKH3JlcGVhdGVkX3N0cmluZ19waWVjZV9leHRlbnNp",
- "b24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lv",
- "bnMYNiADKAlCAggCOlAKF3JlcGVhdGVkX2NvcmRfZXh0ZW5zaW9uEisucHJv",
- "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGDcgAygJ",
- "QgIIATqOAQofcmVwZWF0ZWRfbGF6eV9tZXNzYWdlX2V4dGVuc2lvbhIrLnBy",
- "b3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxg5IAMo",
- "CzI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsVHlwZXMuTmVz",
- "dGVkTWVzc2FnZUICKAE6UAoXZGVmYXVsdF9pbnQzMl9leHRlbnNpb24SKy5w",
- "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYPSAB",
- "KAU6AjQxOlAKF2RlZmF1bHRfaW50NjRfZXh0ZW5zaW9uEisucHJvdG9idWZf",
- "dW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGD4gASgDOgI0MjpR",
- "ChhkZWZhdWx0X3VpbnQzMl9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVz",
- "dF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYPyABKA06AjQzOlEKGGRlZmF1",
- "bHRfdWludDY0X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
- "Mi5UZXN0QWxsRXh0ZW5zaW9ucxhAIAEoBDoCNDQ6UgoYZGVmYXVsdF9zaW50",
- "MzJfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RB",
- "bGxFeHRlbnNpb25zGEEgASgROgMtNDU6UQoYZGVmYXVsdF9zaW50NjRfZXh0",
- "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
- "bnNpb25zGEIgASgSOgI0NjpSChlkZWZhdWx0X2ZpeGVkMzJfZXh0ZW5zaW9u",
- "EisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25z",
- "GEMgASgHOgI0NzpSChlkZWZhdWx0X2ZpeGVkNjRfZXh0ZW5zaW9uEisucHJv",
- "dG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNpb25zGEQgASgG",
- "OgI0ODpTChpkZWZhdWx0X3NmaXhlZDMyX2V4dGVuc2lvbhIrLnByb3RvYnVm",
- "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhFIAEoDzoCNDk6",
- "VAoaZGVmYXVsdF9zZml4ZWQ2NF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0",
- "dGVzdF9wcm90bzIuVGVzdEFsbEV4dGVuc2lvbnMYRiABKBA6Ay01MDpSChdk",
- "ZWZhdWx0X2Zsb2F0X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3By",
- "b3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhHIAEoAjoENTEuNTpUChhkZWZhdWx0",
- "X2RvdWJsZV9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
- "VGVzdEFsbEV4dGVuc2lvbnMYSCABKAE6BTUyMDAwOlEKFmRlZmF1bHRfYm9v",
- "bF9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFs",
- "bEV4dGVuc2lvbnMYSSABKAg6BHRydWU6VAoYZGVmYXVsdF9zdHJpbmdfZXh0",
- "ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRl",
- "bnNpb25zGEogASgJOgVoZWxsbzpTChdkZWZhdWx0X2J5dGVzX2V4dGVuc2lv",
- "bhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9u",
- "cxhLIAEoDDoFd29ybGQ6igEKHWRlZmF1bHRfbmVzdGVkX2VudW1fZXh0ZW5z",
- "aW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNp",
- "b25zGFEgASgOMjEucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxU",
- "eXBlcy5OZXN0ZWRFbnVtOgNCQVI6hwEKHmRlZmF1bHRfZm9yZWlnbl9lbnVt",
- "X2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxs",
- "RXh0ZW5zaW9ucxhSIAEoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5G",
- "b3JlaWduRW51bToLRk9SRUlHTl9CQVI6iwEKHWRlZmF1bHRfaW1wb3J0X2Vu",
- "dW1fZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RB",
- "bGxFeHRlbnNpb25zGFMgASgOMisucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0",
- "X3Byb3RvMi5JbXBvcnRFbnVtOgpJTVBPUlRfQkFSOlwKHmRlZmF1bHRfc3Ry",
- "aW5nX3BpZWNlX2V4dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3Rv",
- "Mi5UZXN0QWxsRXh0ZW5zaW9ucxhUIAEoCToDYWJjQgIIAjpUChZkZWZhdWx0",
- "X2NvcmRfZXh0ZW5zaW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRl",
- "c3RBbGxFeHRlbnNpb25zGFUgASgJOgMxMjNCAggBOksKFm9uZW9mX3VpbnQz",
- "Ml9leHRlbnNpb24SKy5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdEFs",
- "bEV4dGVuc2lvbnMYbyABKA06iQEKHm9uZW9mX25lc3RlZF9tZXNzYWdlX2V4",
- "dGVuc2lvbhIrLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0",
- "ZW5zaW9ucxhwIAEoCzI0LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0",
- "QWxsVHlwZXMuTmVzdGVkTWVzc2FnZTpLChZvbmVvZl9zdHJpbmdfZXh0ZW5z",
- "aW9uEisucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RBbGxFeHRlbnNp",
- "b25zGHEgASgJOkoKFW9uZW9mX2J5dGVzX2V4dGVuc2lvbhIrLnByb3RvYnVm",
- "X3VuaXR0ZXN0X3Byb3RvMi5UZXN0QWxsRXh0ZW5zaW9ucxhyIAEoDDpJChNt",
- "eV9leHRlbnNpb25fc3RyaW5nEiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8y",
- "LlRlc3RGaWVsZE9yZGVyaW5ncxgyIAEoCTpGChBteV9leHRlbnNpb25faW50",
- "EiwucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RGaWVsZE9yZGVyaW5n",
- "cxgFIAEoBTpSChZwYWNrZWRfaW50MzJfZXh0ZW5zaW9uEi4ucHJvdG9idWZf",
- "dW5pdHRlc3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRlbnNpb25zGFogAygFQgIQ",
- "ATpSChZwYWNrZWRfaW50NjRfZXh0ZW5zaW9uEi4ucHJvdG9idWZfdW5pdHRl",
- "c3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRlbnNpb25zGFsgAygDQgIQATpTChdw",
- "YWNrZWRfdWludDMyX2V4dGVuc2lvbhIuLnByb3RvYnVmX3VuaXR0ZXN0X3By",
- "b3RvMi5UZXN0UGFja2VkRXh0ZW5zaW9ucxhcIAMoDUICEAE6UwoXcGFja2Vk",
- "X3VpbnQ2NF9leHRlbnNpb24SLi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
- "VGVzdFBhY2tlZEV4dGVuc2lvbnMYXSADKARCAhABOlMKF3BhY2tlZF9zaW50",
- "MzJfZXh0ZW5zaW9uEi4ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RQ",
- "YWNrZWRFeHRlbnNpb25zGF4gAygRQgIQATpTChdwYWNrZWRfc2ludDY0X2V4",
- "dGVuc2lvbhIuLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0UGFja2Vk",
- "RXh0ZW5zaW9ucxhfIAMoEkICEAE6VAoYcGFja2VkX2ZpeGVkMzJfZXh0ZW5z",
- "aW9uEi4ucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRl",
- "bnNpb25zGGAgAygHQgIQATpUChhwYWNrZWRfZml4ZWQ2NF9leHRlbnNpb24S",
- "Li5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lv",
- "bnMYYSADKAZCAhABOlUKGXBhY2tlZF9zZml4ZWQzMl9leHRlbnNpb24SLi5w",
- "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMY",
- "YiADKA9CAhABOlUKGXBhY2tlZF9zZml4ZWQ2NF9leHRlbnNpb24SLi5wcm90",
- "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMYYyAD",
- "KBBCAhABOlIKFnBhY2tlZF9mbG9hdF9leHRlbnNpb24SLi5wcm90b2J1Zl91",
- "bml0dGVzdF9wcm90bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMYZCADKAJCAhAB",
- "OlMKF3BhY2tlZF9kb3VibGVfZXh0ZW5zaW9uEi4ucHJvdG9idWZfdW5pdHRl",
- "c3RfcHJvdG8yLlRlc3RQYWNrZWRFeHRlbnNpb25zGGUgAygBQgIQATpRChVw",
- "YWNrZWRfYm9vbF9leHRlbnNpb24SLi5wcm90b2J1Zl91bml0dGVzdF9wcm90",
- "bzIuVGVzdFBhY2tlZEV4dGVuc2lvbnMYZiADKAhCAhABOngKFXBhY2tlZF9l",
- "bnVtX2V4dGVuc2lvbhIuLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0",
- "UGFja2VkRXh0ZW5zaW9ucxhnIAMoDjIlLnByb3RvYnVmX3VuaXR0ZXN0X3By",
- "b3RvMi5Gb3JlaWduRW51bUICEAE6VgoYdW5wYWNrZWRfaW50MzJfZXh0ZW5z",
- "aW9uEjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4",
- "dGVuc2lvbnMYWiADKAVCAhAAOlYKGHVucGFja2VkX2ludDY0X2V4dGVuc2lv",
- "bhIwLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0VW5wYWNrZWRFeHRl",
- "bnNpb25zGFsgAygDQgIQADpXChl1bnBhY2tlZF91aW50MzJfZXh0ZW5zaW9u",
- "EjAucHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVu",
- "c2lvbnMYXCADKA1CAhAAOlcKGXVucGFja2VkX3VpbnQ2NF9leHRlbnNpb24S",
- "MC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5z",
- "aW9ucxhdIAMoBEICEAA6VwoZdW5wYWNrZWRfc2ludDMyX2V4dGVuc2lvbhIw",
- "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0VW5wYWNrZWRFeHRlbnNp",
- "b25zGF4gAygRQgIQADpXChl1bnBhY2tlZF9zaW50NjRfZXh0ZW5zaW9uEjAu",
- "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVuc2lv",
- "bnMYXyADKBJCAhAAOlgKGnVucGFja2VkX2ZpeGVkMzJfZXh0ZW5zaW9uEjAu",
- "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVuc2lv",
- "bnMYYCADKAdCAhAAOlgKGnVucGFja2VkX2ZpeGVkNjRfZXh0ZW5zaW9uEjAu",
- "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVuc2lv",
- "bnMYYSADKAZCAhAAOlkKG3VucGFja2VkX3NmaXhlZDMyX2V4dGVuc2lvbhIw",
- "LnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5UZXN0VW5wYWNrZWRFeHRlbnNp",
- "b25zGGIgAygPQgIQADpZCht1bnBhY2tlZF9zZml4ZWQ2NF9leHRlbnNpb24S",
- "MC5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5z",
- "aW9ucxhjIAMoEEICEAA6VgoYdW5wYWNrZWRfZmxvYXRfZXh0ZW5zaW9uEjAu",
- "cHJvdG9idWZfdW5pdHRlc3RfcHJvdG8yLlRlc3RVbnBhY2tlZEV4dGVuc2lv",
- "bnMYZCADKAJCAhAAOlcKGXVucGFja2VkX2RvdWJsZV9leHRlbnNpb24SMC5w",
- "cm90b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5zaW9u",
- "cxhlIAMoAUICEAA6VQoXdW5wYWNrZWRfYm9vbF9leHRlbnNpb24SMC5wcm90",
- "b2J1Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5zaW9ucxhm",
- "IAMoCEICEAA6fAoXdW5wYWNrZWRfZW51bV9leHRlbnNpb24SMC5wcm90b2J1",
- "Zl91bml0dGVzdF9wcm90bzIuVGVzdFVucGFja2VkRXh0ZW5zaW9ucxhnIAMo",
- "DjIlLnByb3RvYnVmX3VuaXR0ZXN0X3Byb3RvMi5Gb3JlaWduRW51bUICEAA6",
- "cgoOdGVzdF9hbGxfdHlwZXMSLi5wcm90b2J1Zl91bml0dGVzdF9wcm90bzIu",
- "VGVzdEh1Z2VGaWVsZE51bWJlcnMY4Kr//wEgASgLMiYucHJvdG9idWZfdW5p",
- "dHRlc3RfcHJvdG8yLlRlc3RBbGxUeXBlczphCiV0ZXN0X2V4dGVuc2lvbl9p",
- "bnNpZGVfdGFibGVfZXh0ZW5zaW9uEjIucHJvdG9idWZfdW5pdHRlc3RfcHJv",
- "dG8yLlRlc3RFeHRlbnNpb25JbnNpZGVUYWJsZRgFIAEoBUIySAGAAQGIAQGQ",
- "AQH4AQGqAiFHb29nbGUuUHJvdG9idWYuVGVzdFByb3Rvcy5Qcm90bzI="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.Proto2.UnittestImportReflection.Descriptor, },
- 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[] {
- 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),
- 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),
- 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)}),
- 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),
- 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),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedMessage), global::Google.Protobuf.TestProtos.Proto2.TestDeprecatedMessage.Parser, null, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.ForeignMessage), global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser, new[]{ "C", "D" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestReservedFields), global::Google.Protobuf.TestProtos.Proto2.TestReservedFields.Parser, null, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions), global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions.Parser, null, null, null, null, null),
- 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),
- 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),
- 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)}),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension), global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension.Parser, null, null, null, null, null),
- 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)}),
- 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),
- 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),
- 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),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestForeignNested), global::Google.Protobuf.TestProtos.Proto2.TestForeignNested.Parser, new[]{ "ForeignNested" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessage), global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessage.Parser, null, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessageWithExtensions), global::Google.Protobuf.TestProtos.Proto2.TestEmptyMessageWithExtensions.Parser, null, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMultipleExtensionRanges), global::Google.Protobuf.TestProtos.Proto2.TestMultipleExtensionRanges.Parser, null, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestReallyLargeTagNumber), global::Google.Protobuf.TestProtos.Proto2.TestReallyLargeTagNumber.Parser, new[]{ "A", "Bb" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage), global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage.Parser, new[]{ "A", "I" }, null, null, null, null),
- 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),
- 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)}),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB), global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB.Parser, new[]{ "A", "OptionalInt32" }, null, null, null, null),
- 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)})}),
- 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),
- 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)}),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestEagerMessage), global::Google.Protobuf.TestProtos.Proto2.TestEagerMessage.Parser, new[]{ "SubMessage" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestLazyMessage), global::Google.Protobuf.TestProtos.Proto2.TestLazyMessage.Parser, new[]{ "SubMessage" }, null, null, null, null),
- 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)}),
- 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),
- 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)}),
- 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),
- 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)}),
- 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),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.SparseEnumMessage), global::Google.Protobuf.TestProtos.Proto2.SparseEnumMessage.Parser, new[]{ "SparseEnum" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.OneString), global::Google.Protobuf.TestProtos.Proto2.OneString.Parser, new[]{ "Data" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.MoreString), global::Google.Protobuf.TestProtos.Proto2.MoreString.Parser, new[]{ "Data" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.OneBytes), global::Google.Protobuf.TestProtos.Proto2.OneBytes.Parser, new[]{ "Data" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.MoreBytes), global::Google.Protobuf.TestProtos.Proto2.MoreBytes.Parser, new[]{ "Data" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Int32Message), global::Google.Protobuf.TestProtos.Proto2.Int32Message.Parser, new[]{ "Data" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Uint32Message), global::Google.Protobuf.TestProtos.Proto2.Uint32Message.Parser, new[]{ "Data" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Int64Message), global::Google.Protobuf.TestProtos.Proto2.Int64Message.Parser, new[]{ "Data" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.Uint64Message), global::Google.Protobuf.TestProtos.Proto2.Uint64Message.Parser, new[]{ "Data" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.BoolMessage), global::Google.Protobuf.TestProtos.Proto2.BoolMessage.Parser, new[]{ "Data" }, null, null, null, null),
- 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)}),
- 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)}),
- 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),
- 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)}),
- 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)}),
- 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)}),
- 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),
- 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),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions), global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions.Parser, null, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions), global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions.Parser, null, null, null, null, null),
- 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)}),
- 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),
- 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),
- 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)}),
- 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),
- 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)}),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestCommentInjectionMessage), global::Google.Protobuf.TestProtos.Proto2.TestCommentInjectionMessage.Parser, new[]{ "A" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooRequest), global::Google.Protobuf.TestProtos.Proto2.FooRequest.Parser, null, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooResponse), global::Google.Protobuf.TestProtos.Proto2.FooResponse.Parser, null, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooClientMessage), global::Google.Protobuf.TestProtos.Proto2.FooClientMessage.Parser, null, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.FooServerMessage), global::Google.Protobuf.TestProtos.Proto2.FooServerMessage.Parser, null, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.BarRequest), global::Google.Protobuf.TestProtos.Proto2.BarRequest.Parser, null, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.BarResponse), global::Google.Protobuf.TestProtos.Proto2.BarResponse.Parser, null, null, null, null, null),
- 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),
- 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),
- null, }),
- 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)
- }));
- }
- #endregion
- }
- /// <summary>Holder for extension identifiers generated from the top level of unittest.proto</summary>
- public static partial class UnittestExtensions {
- /// <summary>
- /// Singular
- /// </summary>
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> OptionalInt32Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(1, pb::FieldCodec.ForInt32(8, 0));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> OptionalInt64Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(2, pb::FieldCodec.ForInt64(16, 0L));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> OptionalUint32Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(3, pb::FieldCodec.ForUInt32(24, 0));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> OptionalUint64Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(4, pb::FieldCodec.ForUInt64(32, 0UL));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> OptionalSint32Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(5, pb::FieldCodec.ForSInt32(40, 0));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> OptionalSint64Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(6, pb::FieldCodec.ForSInt64(48, 0L));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> OptionalFixed32Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(7, pb::FieldCodec.ForFixed32(61, 0));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> OptionalFixed64Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(8, pb::FieldCodec.ForFixed64(65, 0UL));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> OptionalSfixed32Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(9, pb::FieldCodec.ForSFixed32(77, 0));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> OptionalSfixed64Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(10, pb::FieldCodec.ForSFixed64(81, 0L));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float> OptionalFloatExtension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float>(11, pb::FieldCodec.ForFloat(93, 0F));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double> OptionalDoubleExtension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double>(12, pb::FieldCodec.ForDouble(97, 0D));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool> OptionalBoolExtension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool>(13, pb::FieldCodec.ForBool(104, false));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OptionalStringExtension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(14, pb::FieldCodec.ForString(114, ""));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> OptionalBytesExtension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(15, pb::FieldCodec.ForBytes(122, pb::ByteString.Empty));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.OptionalGroup_extension> OptionalGroupExtension =
- 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));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> OptionalNestedMessageExtension =
- 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));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> OptionalForeignMessageExtension =
- 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));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportMessage> OptionalImportMessageExtension =
- 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));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> OptionalNestedEnumExtension =
- 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));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> OptionalForeignEnumExtension =
- 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));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum> OptionalImportEnumExtension =
- 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));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OptionalStringPieceExtension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(24, pb::FieldCodec.ForString(194, ""));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OptionalCordExtension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(25, pb::FieldCodec.ForString(202, ""));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage> OptionalPublicImportMessageExtension =
- 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));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> OptionalLazyMessageExtension =
- 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));
- /// <summary>
- /// Repeated
- /// </summary>
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> RepeatedInt32Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(31, pb::FieldCodec.ForInt32(248));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> RepeatedInt64Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(32, pb::FieldCodec.ForInt64(256));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> RepeatedUint32Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(33, pb::FieldCodec.ForUInt32(264));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> RepeatedUint64Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(34, pb::FieldCodec.ForUInt64(272));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> RepeatedSint32Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(35, pb::FieldCodec.ForSInt32(280));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> RepeatedSint64Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(36, pb::FieldCodec.ForSInt64(288));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> RepeatedFixed32Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(37, pb::FieldCodec.ForFixed32(301));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> RepeatedFixed64Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(38, pb::FieldCodec.ForFixed64(305));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> RepeatedSfixed32Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(39, pb::FieldCodec.ForSFixed32(317));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> RepeatedSfixed64Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(40, pb::FieldCodec.ForSFixed64(321));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float> RepeatedFloatExtension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float>(41, pb::FieldCodec.ForFloat(333));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double> RepeatedDoubleExtension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double>(42, pb::FieldCodec.ForDouble(337));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool> RepeatedBoolExtension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool>(43, pb::FieldCodec.ForBool(344));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> RepeatedStringExtension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(44, pb::FieldCodec.ForString(354));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> RepeatedBytesExtension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(45, pb::FieldCodec.ForBytes(362));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.RepeatedGroup_extension> RepeatedGroupExtension =
- 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));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageExtension =
- 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));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> RepeatedForeignMessageExtension =
- 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));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportMessage> RepeatedImportMessageExtension =
- 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));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumExtension =
- 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));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> RepeatedForeignEnumExtension =
- 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));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum> RepeatedImportEnumExtension =
- 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));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> RepeatedStringPieceExtension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(54, pb::FieldCodec.ForString(434));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> RepeatedCordExtension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(55, pb::FieldCodec.ForString(442));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedLazyMessageExtension =
- 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));
- /// <summary>
- /// Singular with defaults
- /// </summary>
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> DefaultInt32Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(61, pb::FieldCodec.ForInt32(488, 41));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> DefaultInt64Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(62, pb::FieldCodec.ForInt64(496, 42L));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> DefaultUint32Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(63, pb::FieldCodec.ForUInt32(504, 43));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> DefaultUint64Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(64, pb::FieldCodec.ForUInt64(512, 44UL));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> DefaultSint32Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(65, pb::FieldCodec.ForSInt32(520, -45));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> DefaultSint64Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(66, pb::FieldCodec.ForSInt64(528, 46L));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> DefaultFixed32Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(67, pb::FieldCodec.ForFixed32(541, 47));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong> DefaultFixed64Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, ulong>(68, pb::FieldCodec.ForFixed64(545, 48UL));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int> DefaultSfixed32Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, int>(69, pb::FieldCodec.ForSFixed32(557, 49));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long> DefaultSfixed64Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, long>(70, pb::FieldCodec.ForSFixed64(561, -50L));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float> DefaultFloatExtension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, float>(71, pb::FieldCodec.ForFloat(573, 51.5F));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double> DefaultDoubleExtension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, double>(72, pb::FieldCodec.ForDouble(577, 52000D));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool> DefaultBoolExtension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, bool>(73, pb::FieldCodec.ForBool(584, true));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> DefaultStringExtension =
- 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)));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> DefaultBytesExtension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(75, pb::FieldCodec.ForBytes(602, pb::ByteString.FromBase64("d29ybGQ=")));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> DefaultNestedEnumExtension =
- 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));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> DefaultForeignEnumExtension =
- 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));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.ImportEnum> DefaultImportEnumExtension =
- 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));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> DefaultStringPieceExtension =
- 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)));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> DefaultCordExtension =
- 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)));
- /// <summary>
- /// For oneof test
- /// </summary>
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint> OneofUint32Extension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, uint>(111, pb::FieldCodec.ForUInt32(888, 0));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> OneofNestedMessageExtension =
- 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));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> OneofStringExtension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(113, pb::FieldCodec.ForString(906, ""));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString> OneofBytesExtension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, pb::ByteString>(114, pb::FieldCodec.ForBytes(914, pb::ByteString.Empty));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, string> MyExtensionString =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, string>(50, pb::FieldCodec.ForString(402, ""));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, int> MyExtensionInt =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, int>(5, pb::FieldCodec.ForInt32(40, 0));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int> PackedInt32Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int>(90, pb::FieldCodec.ForInt32(722));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long> PackedInt64Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long>(91, pb::FieldCodec.ForInt64(730));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint> PackedUint32Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint>(92, pb::FieldCodec.ForUInt32(738));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong> PackedUint64Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong>(93, pb::FieldCodec.ForUInt64(746));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int> PackedSint32Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int>(94, pb::FieldCodec.ForSInt32(754));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long> PackedSint64Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long>(95, pb::FieldCodec.ForSInt64(762));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint> PackedFixed32Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, uint>(96, pb::FieldCodec.ForFixed32(770));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong> PackedFixed64Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, ulong>(97, pb::FieldCodec.ForFixed64(778));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int> PackedSfixed32Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, int>(98, pb::FieldCodec.ForSFixed32(786));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long> PackedSfixed64Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, long>(99, pb::FieldCodec.ForSFixed64(794));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, float> PackedFloatExtension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, float>(100, pb::FieldCodec.ForFloat(802));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, double> PackedDoubleExtension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, double>(101, pb::FieldCodec.ForDouble(810));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, bool> PackedBoolExtension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, bool>(102, pb::FieldCodec.ForBool(818));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestPackedExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> PackedEnumExtension =
- 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));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int> UnpackedInt32Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int>(90, pb::FieldCodec.ForInt32(720));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long> UnpackedInt64Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long>(91, pb::FieldCodec.ForInt64(728));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint> UnpackedUint32Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint>(92, pb::FieldCodec.ForUInt32(736));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong> UnpackedUint64Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong>(93, pb::FieldCodec.ForUInt64(744));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int> UnpackedSint32Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int>(94, pb::FieldCodec.ForSInt32(752));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long> UnpackedSint64Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long>(95, pb::FieldCodec.ForSInt64(760));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint> UnpackedFixed32Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, uint>(96, pb::FieldCodec.ForFixed32(773));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong> UnpackedFixed64Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, ulong>(97, pb::FieldCodec.ForFixed64(777));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int> UnpackedSfixed32Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, int>(98, pb::FieldCodec.ForSFixed32(789));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long> UnpackedSfixed64Extension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, long>(99, pb::FieldCodec.ForSFixed64(793));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, float> UnpackedFloatExtension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, float>(100, pb::FieldCodec.ForFloat(805));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, double> UnpackedDoubleExtension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, double>(101, pb::FieldCodec.ForDouble(809));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, bool> UnpackedBoolExtension =
- new pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, bool>(102, pb::FieldCodec.ForBool(816));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestUnpackedExtensions, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> UnpackedEnumExtension =
- 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));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> TestAllTypes =
- 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));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable, int> TestExtensionInsideTableExtension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestExtensionInsideTable, int>(5, pb::FieldCodec.ForInt32(40, 0));
- }
- #region Enums
- public enum ForeignEnum {
- [pbr::OriginalName("FOREIGN_FOO")] ForeignFoo = 4,
- [pbr::OriginalName("FOREIGN_BAR")] ForeignBar = 5,
- [pbr::OriginalName("FOREIGN_BAZ")] ForeignBaz = 6,
- }
- /// <summary>
- /// Test an enum that has multiple values with the same number.
- /// </summary>
- public enum TestEnumWithDupValue {
- [pbr::OriginalName("FOO1")] Foo1 = 1,
- [pbr::OriginalName("BAR1")] Bar1 = 2,
- [pbr::OriginalName("BAZ")] Baz = 3,
- [pbr::OriginalName("FOO2", PreferredAlias = false)] Foo2 = 1,
- [pbr::OriginalName("BAR2", PreferredAlias = false)] Bar2 = 2,
- }
- /// <summary>
- /// Test an enum with large, unordered values.
- /// </summary>
- public enum TestSparseEnum {
- [pbr::OriginalName("SPARSE_A")] SparseA = 123,
- [pbr::OriginalName("SPARSE_B")] SparseB = 62374,
- [pbr::OriginalName("SPARSE_C")] SparseC = 12589234,
- [pbr::OriginalName("SPARSE_D")] SparseD = -15,
- [pbr::OriginalName("SPARSE_E")] SparseE = -53452,
- [pbr::OriginalName("SPARSE_F")] SparseF = 0,
- [pbr::OriginalName("SPARSE_G")] SparseG = 2,
- }
- public enum VeryLargeEnum {
- [pbr::OriginalName("ENUM_LABEL_DEFAULT")] EnumLabelDefault = 0,
- [pbr::OriginalName("ENUM_LABEL_1")] EnumLabel1 = 1,
- [pbr::OriginalName("ENUM_LABEL_2")] EnumLabel2 = 2,
- [pbr::OriginalName("ENUM_LABEL_3")] EnumLabel3 = 3,
- [pbr::OriginalName("ENUM_LABEL_4")] EnumLabel4 = 4,
- [pbr::OriginalName("ENUM_LABEL_5")] EnumLabel5 = 5,
- [pbr::OriginalName("ENUM_LABEL_6")] EnumLabel6 = 6,
- [pbr::OriginalName("ENUM_LABEL_7")] EnumLabel7 = 7,
- [pbr::OriginalName("ENUM_LABEL_8")] EnumLabel8 = 8,
- [pbr::OriginalName("ENUM_LABEL_9")] EnumLabel9 = 9,
- [pbr::OriginalName("ENUM_LABEL_10")] EnumLabel10 = 10,
- [pbr::OriginalName("ENUM_LABEL_11")] EnumLabel11 = 11,
- [pbr::OriginalName("ENUM_LABEL_12")] EnumLabel12 = 12,
- [pbr::OriginalName("ENUM_LABEL_13")] EnumLabel13 = 13,
- [pbr::OriginalName("ENUM_LABEL_14")] EnumLabel14 = 14,
- [pbr::OriginalName("ENUM_LABEL_15")] EnumLabel15 = 15,
- [pbr::OriginalName("ENUM_LABEL_16")] EnumLabel16 = 16,
- [pbr::OriginalName("ENUM_LABEL_17")] EnumLabel17 = 17,
- [pbr::OriginalName("ENUM_LABEL_18")] EnumLabel18 = 18,
- [pbr::OriginalName("ENUM_LABEL_19")] EnumLabel19 = 19,
- [pbr::OriginalName("ENUM_LABEL_20")] EnumLabel20 = 20,
- [pbr::OriginalName("ENUM_LABEL_21")] EnumLabel21 = 21,
- [pbr::OriginalName("ENUM_LABEL_22")] EnumLabel22 = 22,
- [pbr::OriginalName("ENUM_LABEL_23")] EnumLabel23 = 23,
- [pbr::OriginalName("ENUM_LABEL_24")] EnumLabel24 = 24,
- [pbr::OriginalName("ENUM_LABEL_25")] EnumLabel25 = 25,
- [pbr::OriginalName("ENUM_LABEL_26")] EnumLabel26 = 26,
- [pbr::OriginalName("ENUM_LABEL_27")] EnumLabel27 = 27,
- [pbr::OriginalName("ENUM_LABEL_28")] EnumLabel28 = 28,
- [pbr::OriginalName("ENUM_LABEL_29")] EnumLabel29 = 29,
- [pbr::OriginalName("ENUM_LABEL_30")] EnumLabel30 = 30,
- [pbr::OriginalName("ENUM_LABEL_31")] EnumLabel31 = 31,
- [pbr::OriginalName("ENUM_LABEL_32")] EnumLabel32 = 32,
- [pbr::OriginalName("ENUM_LABEL_33")] EnumLabel33 = 33,
- [pbr::OriginalName("ENUM_LABEL_34")] EnumLabel34 = 34,
- [pbr::OriginalName("ENUM_LABEL_35")] EnumLabel35 = 35,
- [pbr::OriginalName("ENUM_LABEL_36")] EnumLabel36 = 36,
- [pbr::OriginalName("ENUM_LABEL_37")] EnumLabel37 = 37,
- [pbr::OriginalName("ENUM_LABEL_38")] EnumLabel38 = 38,
- [pbr::OriginalName("ENUM_LABEL_39")] EnumLabel39 = 39,
- [pbr::OriginalName("ENUM_LABEL_40")] EnumLabel40 = 40,
- [pbr::OriginalName("ENUM_LABEL_41")] EnumLabel41 = 41,
- [pbr::OriginalName("ENUM_LABEL_42")] EnumLabel42 = 42,
- [pbr::OriginalName("ENUM_LABEL_43")] EnumLabel43 = 43,
- [pbr::OriginalName("ENUM_LABEL_44")] EnumLabel44 = 44,
- [pbr::OriginalName("ENUM_LABEL_45")] EnumLabel45 = 45,
- [pbr::OriginalName("ENUM_LABEL_46")] EnumLabel46 = 46,
- [pbr::OriginalName("ENUM_LABEL_47")] EnumLabel47 = 47,
- [pbr::OriginalName("ENUM_LABEL_48")] EnumLabel48 = 48,
- [pbr::OriginalName("ENUM_LABEL_49")] EnumLabel49 = 49,
- [pbr::OriginalName("ENUM_LABEL_50")] EnumLabel50 = 50,
- [pbr::OriginalName("ENUM_LABEL_51")] EnumLabel51 = 51,
- [pbr::OriginalName("ENUM_LABEL_52")] EnumLabel52 = 52,
- [pbr::OriginalName("ENUM_LABEL_53")] EnumLabel53 = 53,
- [pbr::OriginalName("ENUM_LABEL_54")] EnumLabel54 = 54,
- [pbr::OriginalName("ENUM_LABEL_55")] EnumLabel55 = 55,
- [pbr::OriginalName("ENUM_LABEL_56")] EnumLabel56 = 56,
- [pbr::OriginalName("ENUM_LABEL_57")] EnumLabel57 = 57,
- [pbr::OriginalName("ENUM_LABEL_58")] EnumLabel58 = 58,
- [pbr::OriginalName("ENUM_LABEL_59")] EnumLabel59 = 59,
- [pbr::OriginalName("ENUM_LABEL_60")] EnumLabel60 = 60,
- [pbr::OriginalName("ENUM_LABEL_61")] EnumLabel61 = 61,
- [pbr::OriginalName("ENUM_LABEL_62")] EnumLabel62 = 62,
- [pbr::OriginalName("ENUM_LABEL_63")] EnumLabel63 = 63,
- [pbr::OriginalName("ENUM_LABEL_64")] EnumLabel64 = 64,
- [pbr::OriginalName("ENUM_LABEL_65")] EnumLabel65 = 65,
- [pbr::OriginalName("ENUM_LABEL_66")] EnumLabel66 = 66,
- [pbr::OriginalName("ENUM_LABEL_67")] EnumLabel67 = 67,
- [pbr::OriginalName("ENUM_LABEL_68")] EnumLabel68 = 68,
- [pbr::OriginalName("ENUM_LABEL_69")] EnumLabel69 = 69,
- [pbr::OriginalName("ENUM_LABEL_70")] EnumLabel70 = 70,
- [pbr::OriginalName("ENUM_LABEL_71")] EnumLabel71 = 71,
- [pbr::OriginalName("ENUM_LABEL_72")] EnumLabel72 = 72,
- [pbr::OriginalName("ENUM_LABEL_73")] EnumLabel73 = 73,
- [pbr::OriginalName("ENUM_LABEL_74")] EnumLabel74 = 74,
- [pbr::OriginalName("ENUM_LABEL_75")] EnumLabel75 = 75,
- [pbr::OriginalName("ENUM_LABEL_76")] EnumLabel76 = 76,
- [pbr::OriginalName("ENUM_LABEL_77")] EnumLabel77 = 77,
- [pbr::OriginalName("ENUM_LABEL_78")] EnumLabel78 = 78,
- [pbr::OriginalName("ENUM_LABEL_79")] EnumLabel79 = 79,
- [pbr::OriginalName("ENUM_LABEL_80")] EnumLabel80 = 80,
- [pbr::OriginalName("ENUM_LABEL_81")] EnumLabel81 = 81,
- [pbr::OriginalName("ENUM_LABEL_82")] EnumLabel82 = 82,
- [pbr::OriginalName("ENUM_LABEL_83")] EnumLabel83 = 83,
- [pbr::OriginalName("ENUM_LABEL_84")] EnumLabel84 = 84,
- [pbr::OriginalName("ENUM_LABEL_85")] EnumLabel85 = 85,
- [pbr::OriginalName("ENUM_LABEL_86")] EnumLabel86 = 86,
- [pbr::OriginalName("ENUM_LABEL_87")] EnumLabel87 = 87,
- [pbr::OriginalName("ENUM_LABEL_88")] EnumLabel88 = 88,
- [pbr::OriginalName("ENUM_LABEL_89")] EnumLabel89 = 89,
- [pbr::OriginalName("ENUM_LABEL_90")] EnumLabel90 = 90,
- [pbr::OriginalName("ENUM_LABEL_91")] EnumLabel91 = 91,
- [pbr::OriginalName("ENUM_LABEL_92")] EnumLabel92 = 92,
- [pbr::OriginalName("ENUM_LABEL_93")] EnumLabel93 = 93,
- [pbr::OriginalName("ENUM_LABEL_94")] EnumLabel94 = 94,
- [pbr::OriginalName("ENUM_LABEL_95")] EnumLabel95 = 95,
- [pbr::OriginalName("ENUM_LABEL_96")] EnumLabel96 = 96,
- [pbr::OriginalName("ENUM_LABEL_97")] EnumLabel97 = 97,
- [pbr::OriginalName("ENUM_LABEL_98")] EnumLabel98 = 98,
- [pbr::OriginalName("ENUM_LABEL_99")] EnumLabel99 = 99,
- [pbr::OriginalName("ENUM_LABEL_100")] EnumLabel100 = 100,
- }
- #endregion
- #region Messages
- /// <summary>
- /// This proto includes every type of field in both singular and repeated
- /// forms.
- /// </summary>
- public sealed partial class TestAllTypes : pb::IMessage<TestAllTypes> {
- private static readonly pb::MessageParser<TestAllTypes> _parser = new pb::MessageParser<TestAllTypes>(() => new TestAllTypes());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- private int _hasBits1;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestAllTypes> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestAllTypes() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestAllTypes(TestAllTypes other) : this() {
- _hasBits0 = other._hasBits0;
- _hasBits1 = other._hasBits1;
- optionalInt32_ = other.optionalInt32_;
- optionalInt64_ = other.optionalInt64_;
- optionalUint32_ = other.optionalUint32_;
- optionalUint64_ = other.optionalUint64_;
- optionalSint32_ = other.optionalSint32_;
- optionalSint64_ = other.optionalSint64_;
- optionalFixed32_ = other.optionalFixed32_;
- optionalFixed64_ = other.optionalFixed64_;
- optionalSfixed32_ = other.optionalSfixed32_;
- optionalSfixed64_ = other.optionalSfixed64_;
- optionalFloat_ = other.optionalFloat_;
- optionalDouble_ = other.optionalDouble_;
- optionalBool_ = other.optionalBool_;
- optionalString_ = other.optionalString_;
- optionalBytes_ = other.optionalBytes_;
- optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
- optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
- optionalForeignMessage_ = other.optionalForeignMessage_ != null ? other.optionalForeignMessage_.Clone() : null;
- optionalImportMessage_ = other.optionalImportMessage_ != null ? other.optionalImportMessage_.Clone() : null;
- optionalNestedEnum_ = other.optionalNestedEnum_;
- optionalForeignEnum_ = other.optionalForeignEnum_;
- optionalImportEnum_ = other.optionalImportEnum_;
- optionalStringPiece_ = other.optionalStringPiece_;
- optionalCord_ = other.optionalCord_;
- optionalPublicImportMessage_ = other.optionalPublicImportMessage_ != null ? other.optionalPublicImportMessage_.Clone() : null;
- optionalLazyMessage_ = other.optionalLazyMessage_ != null ? other.optionalLazyMessage_.Clone() : null;
- repeatedInt32_ = other.repeatedInt32_.Clone();
- repeatedInt64_ = other.repeatedInt64_.Clone();
- repeatedUint32_ = other.repeatedUint32_.Clone();
- repeatedUint64_ = other.repeatedUint64_.Clone();
- repeatedSint32_ = other.repeatedSint32_.Clone();
- repeatedSint64_ = other.repeatedSint64_.Clone();
- repeatedFixed32_ = other.repeatedFixed32_.Clone();
- repeatedFixed64_ = other.repeatedFixed64_.Clone();
- repeatedSfixed32_ = other.repeatedSfixed32_.Clone();
- repeatedSfixed64_ = other.repeatedSfixed64_.Clone();
- repeatedFloat_ = other.repeatedFloat_.Clone();
- repeatedDouble_ = other.repeatedDouble_.Clone();
- repeatedBool_ = other.repeatedBool_.Clone();
- repeatedString_ = other.repeatedString_.Clone();
- repeatedBytes_ = other.repeatedBytes_.Clone();
- repeatedGroup_ = other.repeatedGroup_.Clone();
- repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone();
- repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone();
- repeatedImportMessage_ = other.repeatedImportMessage_.Clone();
- repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone();
- repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone();
- repeatedImportEnum_ = other.repeatedImportEnum_.Clone();
- repeatedStringPiece_ = other.repeatedStringPiece_.Clone();
- repeatedCord_ = other.repeatedCord_.Clone();
- repeatedLazyMessage_ = other.repeatedLazyMessage_.Clone();
- defaultInt32_ = other.defaultInt32_;
- defaultInt64_ = other.defaultInt64_;
- defaultUint32_ = other.defaultUint32_;
- defaultUint64_ = other.defaultUint64_;
- defaultSint32_ = other.defaultSint32_;
- defaultSint64_ = other.defaultSint64_;
- defaultFixed32_ = other.defaultFixed32_;
- defaultFixed64_ = other.defaultFixed64_;
- defaultSfixed32_ = other.defaultSfixed32_;
- defaultSfixed64_ = other.defaultSfixed64_;
- defaultFloat_ = other.defaultFloat_;
- defaultDouble_ = other.defaultDouble_;
- defaultBool_ = other.defaultBool_;
- defaultString_ = other.defaultString_;
- defaultBytes_ = other.defaultBytes_;
- defaultNestedEnum_ = other.defaultNestedEnum_;
- defaultForeignEnum_ = other.defaultForeignEnum_;
- defaultImportEnum_ = other.defaultImportEnum_;
- defaultStringPiece_ = other.defaultStringPiece_;
- defaultCord_ = other.defaultCord_;
- switch (other.OneofFieldCase) {
- case OneofFieldOneofCase.OneofUint32:
- OneofUint32 = other.OneofUint32;
- break;
- case OneofFieldOneofCase.OneofNestedMessage:
- OneofNestedMessage = other.OneofNestedMessage.Clone();
- break;
- case OneofFieldOneofCase.OneofString:
- OneofString = other.OneofString;
- break;
- case OneofFieldOneofCase.OneofBytes:
- OneofBytes = other.OneofBytes;
- break;
- }
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestAllTypes Clone() {
- return new TestAllTypes(this);
- }
- /// <summary>Field number for the "optional_int32" field.</summary>
- public const int OptionalInt32FieldNumber = 1;
- private readonly static int OptionalInt32DefaultValue = 0;
- private int optionalInt32_;
- /// <summary>
- /// Singular
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int OptionalInt32 {
- get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
- set {
- _hasBits0 |= 1;
- optionalInt32_ = value;
- }
- }
- /// <summary>Gets whether the "optional_int32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalInt32 {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "optional_int32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalInt32() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "optional_int64" field.</summary>
- public const int OptionalInt64FieldNumber = 2;
- private readonly static long OptionalInt64DefaultValue = 0L;
- private long optionalInt64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long OptionalInt64 {
- get { if ((_hasBits0 & 2) != 0) { return optionalInt64_; } else { return OptionalInt64DefaultValue; } }
- set {
- _hasBits0 |= 2;
- optionalInt64_ = value;
- }
- }
- /// <summary>Gets whether the "optional_int64" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalInt64 {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// <summary>Clears the value of the "optional_int64" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalInt64() {
- _hasBits0 &= ~2;
- }
- /// <summary>Field number for the "optional_uint32" field.</summary>
- public const int OptionalUint32FieldNumber = 3;
- private readonly static uint OptionalUint32DefaultValue = 0;
- private uint optionalUint32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint OptionalUint32 {
- get { if ((_hasBits0 & 4) != 0) { return optionalUint32_; } else { return OptionalUint32DefaultValue; } }
- set {
- _hasBits0 |= 4;
- optionalUint32_ = value;
- }
- }
- /// <summary>Gets whether the "optional_uint32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalUint32 {
- get { return (_hasBits0 & 4) != 0; }
- }
- /// <summary>Clears the value of the "optional_uint32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalUint32() {
- _hasBits0 &= ~4;
- }
- /// <summary>Field number for the "optional_uint64" field.</summary>
- public const int OptionalUint64FieldNumber = 4;
- private readonly static ulong OptionalUint64DefaultValue = 0UL;
- private ulong optionalUint64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ulong OptionalUint64 {
- get { if ((_hasBits0 & 8) != 0) { return optionalUint64_; } else { return OptionalUint64DefaultValue; } }
- set {
- _hasBits0 |= 8;
- optionalUint64_ = value;
- }
- }
- /// <summary>Gets whether the "optional_uint64" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalUint64 {
- get { return (_hasBits0 & 8) != 0; }
- }
- /// <summary>Clears the value of the "optional_uint64" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalUint64() {
- _hasBits0 &= ~8;
- }
- /// <summary>Field number for the "optional_sint32" field.</summary>
- public const int OptionalSint32FieldNumber = 5;
- private readonly static int OptionalSint32DefaultValue = 0;
- private int optionalSint32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int OptionalSint32 {
- get { if ((_hasBits0 & 16) != 0) { return optionalSint32_; } else { return OptionalSint32DefaultValue; } }
- set {
- _hasBits0 |= 16;
- optionalSint32_ = value;
- }
- }
- /// <summary>Gets whether the "optional_sint32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalSint32 {
- get { return (_hasBits0 & 16) != 0; }
- }
- /// <summary>Clears the value of the "optional_sint32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalSint32() {
- _hasBits0 &= ~16;
- }
- /// <summary>Field number for the "optional_sint64" field.</summary>
- public const int OptionalSint64FieldNumber = 6;
- private readonly static long OptionalSint64DefaultValue = 0L;
- private long optionalSint64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long OptionalSint64 {
- get { if ((_hasBits0 & 32) != 0) { return optionalSint64_; } else { return OptionalSint64DefaultValue; } }
- set {
- _hasBits0 |= 32;
- optionalSint64_ = value;
- }
- }
- /// <summary>Gets whether the "optional_sint64" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalSint64 {
- get { return (_hasBits0 & 32) != 0; }
- }
- /// <summary>Clears the value of the "optional_sint64" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalSint64() {
- _hasBits0 &= ~32;
- }
- /// <summary>Field number for the "optional_fixed32" field.</summary>
- public const int OptionalFixed32FieldNumber = 7;
- private readonly static uint OptionalFixed32DefaultValue = 0;
- private uint optionalFixed32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint OptionalFixed32 {
- get { if ((_hasBits0 & 64) != 0) { return optionalFixed32_; } else { return OptionalFixed32DefaultValue; } }
- set {
- _hasBits0 |= 64;
- optionalFixed32_ = value;
- }
- }
- /// <summary>Gets whether the "optional_fixed32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalFixed32 {
- get { return (_hasBits0 & 64) != 0; }
- }
- /// <summary>Clears the value of the "optional_fixed32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalFixed32() {
- _hasBits0 &= ~64;
- }
- /// <summary>Field number for the "optional_fixed64" field.</summary>
- public const int OptionalFixed64FieldNumber = 8;
- private readonly static ulong OptionalFixed64DefaultValue = 0UL;
- private ulong optionalFixed64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ulong OptionalFixed64 {
- get { if ((_hasBits0 & 128) != 0) { return optionalFixed64_; } else { return OptionalFixed64DefaultValue; } }
- set {
- _hasBits0 |= 128;
- optionalFixed64_ = value;
- }
- }
- /// <summary>Gets whether the "optional_fixed64" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalFixed64 {
- get { return (_hasBits0 & 128) != 0; }
- }
- /// <summary>Clears the value of the "optional_fixed64" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalFixed64() {
- _hasBits0 &= ~128;
- }
- /// <summary>Field number for the "optional_sfixed32" field.</summary>
- public const int OptionalSfixed32FieldNumber = 9;
- private readonly static int OptionalSfixed32DefaultValue = 0;
- private int optionalSfixed32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int OptionalSfixed32 {
- get { if ((_hasBits0 & 256) != 0) { return optionalSfixed32_; } else { return OptionalSfixed32DefaultValue; } }
- set {
- _hasBits0 |= 256;
- optionalSfixed32_ = value;
- }
- }
- /// <summary>Gets whether the "optional_sfixed32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalSfixed32 {
- get { return (_hasBits0 & 256) != 0; }
- }
- /// <summary>Clears the value of the "optional_sfixed32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalSfixed32() {
- _hasBits0 &= ~256;
- }
- /// <summary>Field number for the "optional_sfixed64" field.</summary>
- public const int OptionalSfixed64FieldNumber = 10;
- private readonly static long OptionalSfixed64DefaultValue = 0L;
- private long optionalSfixed64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long OptionalSfixed64 {
- get { if ((_hasBits0 & 512) != 0) { return optionalSfixed64_; } else { return OptionalSfixed64DefaultValue; } }
- set {
- _hasBits0 |= 512;
- optionalSfixed64_ = value;
- }
- }
- /// <summary>Gets whether the "optional_sfixed64" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalSfixed64 {
- get { return (_hasBits0 & 512) != 0; }
- }
- /// <summary>Clears the value of the "optional_sfixed64" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalSfixed64() {
- _hasBits0 &= ~512;
- }
- /// <summary>Field number for the "optional_float" field.</summary>
- public const int OptionalFloatFieldNumber = 11;
- private readonly static float OptionalFloatDefaultValue = 0F;
- private float optionalFloat_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float OptionalFloat {
- get { if ((_hasBits0 & 1024) != 0) { return optionalFloat_; } else { return OptionalFloatDefaultValue; } }
- set {
- _hasBits0 |= 1024;
- optionalFloat_ = value;
- }
- }
- /// <summary>Gets whether the "optional_float" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalFloat {
- get { return (_hasBits0 & 1024) != 0; }
- }
- /// <summary>Clears the value of the "optional_float" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalFloat() {
- _hasBits0 &= ~1024;
- }
- /// <summary>Field number for the "optional_double" field.</summary>
- public const int OptionalDoubleFieldNumber = 12;
- private readonly static double OptionalDoubleDefaultValue = 0D;
- private double optionalDouble_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double OptionalDouble {
- get { if ((_hasBits0 & 2048) != 0) { return optionalDouble_; } else { return OptionalDoubleDefaultValue; } }
- set {
- _hasBits0 |= 2048;
- optionalDouble_ = value;
- }
- }
- /// <summary>Gets whether the "optional_double" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalDouble {
- get { return (_hasBits0 & 2048) != 0; }
- }
- /// <summary>Clears the value of the "optional_double" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalDouble() {
- _hasBits0 &= ~2048;
- }
- /// <summary>Field number for the "optional_bool" field.</summary>
- public const int OptionalBoolFieldNumber = 13;
- private readonly static bool OptionalBoolDefaultValue = false;
- private bool optionalBool_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool OptionalBool {
- get { if ((_hasBits0 & 4096) != 0) { return optionalBool_; } else { return OptionalBoolDefaultValue; } }
- set {
- _hasBits0 |= 4096;
- optionalBool_ = value;
- }
- }
- /// <summary>Gets whether the "optional_bool" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalBool {
- get { return (_hasBits0 & 4096) != 0; }
- }
- /// <summary>Clears the value of the "optional_bool" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalBool() {
- _hasBits0 &= ~4096;
- }
- /// <summary>Field number for the "optional_string" field.</summary>
- public const int OptionalStringFieldNumber = 14;
- private readonly static string OptionalStringDefaultValue = "";
- private string optionalString_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string OptionalString {
- get { return optionalString_ ?? OptionalStringDefaultValue; }
- set {
- optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "optional_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalString {
- get { return optionalString_ != null; }
- }
- /// <summary>Clears the value of the "optional_string" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalString() {
- optionalString_ = null;
- }
- /// <summary>Field number for the "optional_bytes" field.</summary>
- public const int OptionalBytesFieldNumber = 15;
- private readonly static pb::ByteString OptionalBytesDefaultValue = pb::ByteString.Empty;
- private pb::ByteString optionalBytes_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString OptionalBytes {
- get { return optionalBytes_ ?? OptionalBytesDefaultValue; }
- set {
- optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "optional_bytes" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalBytes {
- get { return optionalBytes_ != null; }
- }
- /// <summary>Clears the value of the "optional_bytes" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalBytes() {
- optionalBytes_ = null;
- }
- /// <summary>Field number for the "optionalgroup" field.</summary>
- public const int OptionalGroupFieldNumber = 16;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup optionalGroup_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup OptionalGroup {
- get { return optionalGroup_; }
- set {
- optionalGroup_ = value;
- }
- }
- /// <summary>Gets whether the optionalgroup field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalGroup {
- get { return optionalGroup_ != null; }
- }
- /// <summary>Clears the value of the optionalgroup field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalGroup() {
- optionalGroup_ = null;
- }
- /// <summary>Field number for the "optional_nested_message" field.</summary>
- public const int OptionalNestedMessageFieldNumber = 18;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage optionalNestedMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
- get { return optionalNestedMessage_; }
- set {
- optionalNestedMessage_ = value;
- }
- }
- /// <summary>Field number for the "optional_foreign_message" field.</summary>
- public const int OptionalForeignMessageFieldNumber = 19;
- private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage optionalForeignMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage OptionalForeignMessage {
- get { return optionalForeignMessage_; }
- set {
- optionalForeignMessage_ = value;
- }
- }
- /// <summary>Field number for the "optional_import_message" field.</summary>
- public const int OptionalImportMessageFieldNumber = 20;
- private global::Google.Protobuf.TestProtos.Proto2.ImportMessage optionalImportMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.ImportMessage OptionalImportMessage {
- get { return optionalImportMessage_; }
- set {
- optionalImportMessage_ = value;
- }
- }
- /// <summary>Field number for the "optional_nested_enum" field.</summary>
- public const int OptionalNestedEnumFieldNumber = 21;
- private readonly static global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum OptionalNestedEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum.Foo;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum optionalNestedEnum_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
- get { if ((_hasBits0 & 8192) != 0) { return optionalNestedEnum_; } else { return OptionalNestedEnumDefaultValue; } }
- set {
- _hasBits0 |= 8192;
- optionalNestedEnum_ = value;
- }
- }
- /// <summary>Gets whether the "optional_nested_enum" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalNestedEnum {
- get { return (_hasBits0 & 8192) != 0; }
- }
- /// <summary>Clears the value of the "optional_nested_enum" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalNestedEnum() {
- _hasBits0 &= ~8192;
- }
- /// <summary>Field number for the "optional_foreign_enum" field.</summary>
- public const int OptionalForeignEnumFieldNumber = 22;
- private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
- private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum optionalForeignEnum_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnum {
- get { if ((_hasBits0 & 16384) != 0) { return optionalForeignEnum_; } else { return OptionalForeignEnumDefaultValue; } }
- set {
- _hasBits0 |= 16384;
- optionalForeignEnum_ = value;
- }
- }
- /// <summary>Gets whether the "optional_foreign_enum" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalForeignEnum {
- get { return (_hasBits0 & 16384) != 0; }
- }
- /// <summary>Clears the value of the "optional_foreign_enum" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalForeignEnum() {
- _hasBits0 &= ~16384;
- }
- /// <summary>Field number for the "optional_import_enum" field.</summary>
- public const int OptionalImportEnumFieldNumber = 23;
- private readonly static global::Google.Protobuf.TestProtos.Proto2.ImportEnum OptionalImportEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ImportEnum.ImportFoo;
- private global::Google.Protobuf.TestProtos.Proto2.ImportEnum optionalImportEnum_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.ImportEnum OptionalImportEnum {
- get { if ((_hasBits0 & 32768) != 0) { return optionalImportEnum_; } else { return OptionalImportEnumDefaultValue; } }
- set {
- _hasBits0 |= 32768;
- optionalImportEnum_ = value;
- }
- }
- /// <summary>Gets whether the "optional_import_enum" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalImportEnum {
- get { return (_hasBits0 & 32768) != 0; }
- }
- /// <summary>Clears the value of the "optional_import_enum" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalImportEnum() {
- _hasBits0 &= ~32768;
- }
- /// <summary>Field number for the "optional_string_piece" field.</summary>
- public const int OptionalStringPieceFieldNumber = 24;
- private readonly static string OptionalStringPieceDefaultValue = "";
- private string optionalStringPiece_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string OptionalStringPiece {
- get { return optionalStringPiece_ ?? OptionalStringPieceDefaultValue; }
- set {
- optionalStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "optional_string_piece" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalStringPiece {
- get { return optionalStringPiece_ != null; }
- }
- /// <summary>Clears the value of the "optional_string_piece" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalStringPiece() {
- optionalStringPiece_ = null;
- }
- /// <summary>Field number for the "optional_cord" field.</summary>
- public const int OptionalCordFieldNumber = 25;
- private readonly static string OptionalCordDefaultValue = "";
- private string optionalCord_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string OptionalCord {
- get { return optionalCord_ ?? OptionalCordDefaultValue; }
- set {
- optionalCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "optional_cord" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalCord {
- get { return optionalCord_ != null; }
- }
- /// <summary>Clears the value of the "optional_cord" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalCord() {
- optionalCord_ = null;
- }
- /// <summary>Field number for the "optional_public_import_message" field.</summary>
- public const int OptionalPublicImportMessageFieldNumber = 26;
- private global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage optionalPublicImportMessage_;
- /// <summary>
- /// Defined in unittest_import_public.proto
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage OptionalPublicImportMessage {
- get { return optionalPublicImportMessage_; }
- set {
- optionalPublicImportMessage_ = value;
- }
- }
- /// <summary>Field number for the "optional_lazy_message" field.</summary>
- public const int OptionalLazyMessageFieldNumber = 27;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage optionalLazyMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage OptionalLazyMessage {
- get { return optionalLazyMessage_; }
- set {
- optionalLazyMessage_ = value;
- }
- }
- /// <summary>Field number for the "repeated_int32" field.</summary>
- public const int RepeatedInt32FieldNumber = 31;
- private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
- = pb::FieldCodec.ForInt32(248);
- private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
- /// <summary>
- /// Repeated
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> RepeatedInt32 {
- get { return repeatedInt32_; }
- }
- /// <summary>Field number for the "repeated_int64" field.</summary>
- public const int RepeatedInt64FieldNumber = 32;
- private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
- = pb::FieldCodec.ForInt64(256);
- private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> RepeatedInt64 {
- get { return repeatedInt64_; }
- }
- /// <summary>Field number for the "repeated_uint32" field.</summary>
- public const int RepeatedUint32FieldNumber = 33;
- private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec
- = pb::FieldCodec.ForUInt32(264);
- private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<uint> RepeatedUint32 {
- get { return repeatedUint32_; }
- }
- /// <summary>Field number for the "repeated_uint64" field.</summary>
- public const int RepeatedUint64FieldNumber = 34;
- private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
- = pb::FieldCodec.ForUInt64(272);
- private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong> RepeatedUint64 {
- get { return repeatedUint64_; }
- }
- /// <summary>Field number for the "repeated_sint32" field.</summary>
- public const int RepeatedSint32FieldNumber = 35;
- private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec
- = pb::FieldCodec.ForSInt32(280);
- private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> RepeatedSint32 {
- get { return repeatedSint32_; }
- }
- /// <summary>Field number for the "repeated_sint64" field.</summary>
- public const int RepeatedSint64FieldNumber = 36;
- private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec
- = pb::FieldCodec.ForSInt64(288);
- private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> RepeatedSint64 {
- get { return repeatedSint64_; }
- }
- /// <summary>Field number for the "repeated_fixed32" field.</summary>
- public const int RepeatedFixed32FieldNumber = 37;
- private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
- = pb::FieldCodec.ForFixed32(301);
- private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<uint> RepeatedFixed32 {
- get { return repeatedFixed32_; }
- }
- /// <summary>Field number for the "repeated_fixed64" field.</summary>
- public const int RepeatedFixed64FieldNumber = 38;
- private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
- = pb::FieldCodec.ForFixed64(305);
- private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong> RepeatedFixed64 {
- get { return repeatedFixed64_; }
- }
- /// <summary>Field number for the "repeated_sfixed32" field.</summary>
- public const int RepeatedSfixed32FieldNumber = 39;
- private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec
- = pb::FieldCodec.ForSFixed32(317);
- private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> RepeatedSfixed32 {
- get { return repeatedSfixed32_; }
- }
- /// <summary>Field number for the "repeated_sfixed64" field.</summary>
- public const int RepeatedSfixed64FieldNumber = 40;
- private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_codec
- = pb::FieldCodec.ForSFixed64(321);
- private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> RepeatedSfixed64 {
- get { return repeatedSfixed64_; }
- }
- /// <summary>Field number for the "repeated_float" field.</summary>
- public const int RepeatedFloatFieldNumber = 41;
- private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
- = pb::FieldCodec.ForFloat(333);
- private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<float> RepeatedFloat {
- get { return repeatedFloat_; }
- }
- /// <summary>Field number for the "repeated_double" field.</summary>
- public const int RepeatedDoubleFieldNumber = 42;
- private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_codec
- = pb::FieldCodec.ForDouble(337);
- private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::RepeatedField<double>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<double> RepeatedDouble {
- get { return repeatedDouble_; }
- }
- /// <summary>Field number for the "repeated_bool" field.</summary>
- public const int RepeatedBoolFieldNumber = 43;
- private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec
- = pb::FieldCodec.ForBool(344);
- private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedField<bool>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<bool> RepeatedBool {
- get { return repeatedBool_; }
- }
- /// <summary>Field number for the "repeated_string" field.</summary>
- public const int RepeatedStringFieldNumber = 44;
- private static readonly pb::FieldCodec<string> _repeated_repeatedString_codec
- = pb::FieldCodec.ForString(354);
- private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::RepeatedField<string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<string> RepeatedString {
- get { return repeatedString_; }
- }
- /// <summary>Field number for the "repeated_bytes" field.</summary>
- public const int RepeatedBytesFieldNumber = 45;
- private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytes_codec
- = pb::FieldCodec.ForBytes(362);
- private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc::RepeatedField<pb::ByteString>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<pb::ByteString> RepeatedBytes {
- get { return repeatedBytes_; }
- }
- /// <summary>Field number for the "repeatedgroup" field.</summary>
- public const int RepeatedGroupFieldNumber = 46;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup> _repeated_repeatedGroup_codec
- = pb::FieldCodec.ForGroup(371, 372, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.RepeatedGroup> RepeatedGroup {
- get { return repeatedGroup_; }
- }
- /// <summary>Field number for the "repeated_nested_message" field.</summary>
- public const int RepeatedNestedMessageFieldNumber = 48;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> _repeated_repeatedNestedMessage_codec
- = pb::FieldCodec.ForMessage(386, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedNestedMessage {
- get { return repeatedNestedMessage_; }
- }
- /// <summary>Field number for the "repeated_foreign_message" field.</summary>
- public const int RepeatedForeignMessageFieldNumber = 49;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> _repeated_repeatedForeignMessage_codec
- = pb::FieldCodec.ForMessage(394, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> repeatedForeignMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> RepeatedForeignMessage {
- get { return repeatedForeignMessage_; }
- }
- /// <summary>Field number for the "repeated_import_message" field.</summary>
- public const int RepeatedImportMessageFieldNumber = 50;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ImportMessage> _repeated_repeatedImportMessage_codec
- = pb::FieldCodec.ForMessage(402, global::Google.Protobuf.TestProtos.Proto2.ImportMessage.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportMessage> repeatedImportMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportMessage>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportMessage> RepeatedImportMessage {
- get { return repeatedImportMessage_; }
- }
- /// <summary>Field number for the "repeated_nested_enum" field.</summary>
- public const int RepeatedNestedEnumFieldNumber = 51;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> _repeated_repeatedNestedEnum_codec
- = pb::FieldCodec.ForEnum(408, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) x);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum> RepeatedNestedEnum {
- get { return repeatedNestedEnum_; }
- }
- /// <summary>Field number for the "repeated_foreign_enum" field.</summary>
- public const int RepeatedForeignEnumFieldNumber = 52;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_repeatedForeignEnum_codec
- = pb::FieldCodec.ForEnum(416, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> RepeatedForeignEnum {
- get { return repeatedForeignEnum_; }
- }
- /// <summary>Field number for the "repeated_import_enum" field.</summary>
- public const int RepeatedImportEnumFieldNumber = 53;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ImportEnum> _repeated_repeatedImportEnum_codec
- = pb::FieldCodec.ForEnum(424, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) x);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportEnum> repeatedImportEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportEnum>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ImportEnum> RepeatedImportEnum {
- get { return repeatedImportEnum_; }
- }
- /// <summary>Field number for the "repeated_string_piece" field.</summary>
- public const int RepeatedStringPieceFieldNumber = 54;
- private static readonly pb::FieldCodec<string> _repeated_repeatedStringPiece_codec
- = pb::FieldCodec.ForString(434);
- private readonly pbc::RepeatedField<string> repeatedStringPiece_ = new pbc::RepeatedField<string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<string> RepeatedStringPiece {
- get { return repeatedStringPiece_; }
- }
- /// <summary>Field number for the "repeated_cord" field.</summary>
- public const int RepeatedCordFieldNumber = 55;
- private static readonly pb::FieldCodec<string> _repeated_repeatedCord_codec
- = pb::FieldCodec.ForString(442);
- private readonly pbc::RepeatedField<string> repeatedCord_ = new pbc::RepeatedField<string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<string> RepeatedCord {
- get { return repeatedCord_; }
- }
- /// <summary>Field number for the "repeated_lazy_message" field.</summary>
- public const int RepeatedLazyMessageFieldNumber = 57;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> _repeated_repeatedLazyMessage_codec
- = pb::FieldCodec.ForMessage(458, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> repeatedLazyMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage> RepeatedLazyMessage {
- get { return repeatedLazyMessage_; }
- }
- /// <summary>Field number for the "default_int32" field.</summary>
- public const int DefaultInt32FieldNumber = 61;
- private readonly static int DefaultInt32DefaultValue = 41;
- private int defaultInt32_;
- /// <summary>
- /// Singular with defaults
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int DefaultInt32 {
- get { if ((_hasBits0 & 65536) != 0) { return defaultInt32_; } else { return DefaultInt32DefaultValue; } }
- set {
- _hasBits0 |= 65536;
- defaultInt32_ = value;
- }
- }
- /// <summary>Gets whether the "default_int32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultInt32 {
- get { return (_hasBits0 & 65536) != 0; }
- }
- /// <summary>Clears the value of the "default_int32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultInt32() {
- _hasBits0 &= ~65536;
- }
- /// <summary>Field number for the "default_int64" field.</summary>
- public const int DefaultInt64FieldNumber = 62;
- private readonly static long DefaultInt64DefaultValue = 42L;
- private long defaultInt64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long DefaultInt64 {
- get { if ((_hasBits0 & 131072) != 0) { return defaultInt64_; } else { return DefaultInt64DefaultValue; } }
- set {
- _hasBits0 |= 131072;
- defaultInt64_ = value;
- }
- }
- /// <summary>Gets whether the "default_int64" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultInt64 {
- get { return (_hasBits0 & 131072) != 0; }
- }
- /// <summary>Clears the value of the "default_int64" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultInt64() {
- _hasBits0 &= ~131072;
- }
- /// <summary>Field number for the "default_uint32" field.</summary>
- public const int DefaultUint32FieldNumber = 63;
- private readonly static uint DefaultUint32DefaultValue = 43;
- private uint defaultUint32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint DefaultUint32 {
- get { if ((_hasBits0 & 262144) != 0) { return defaultUint32_; } else { return DefaultUint32DefaultValue; } }
- set {
- _hasBits0 |= 262144;
- defaultUint32_ = value;
- }
- }
- /// <summary>Gets whether the "default_uint32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultUint32 {
- get { return (_hasBits0 & 262144) != 0; }
- }
- /// <summary>Clears the value of the "default_uint32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultUint32() {
- _hasBits0 &= ~262144;
- }
- /// <summary>Field number for the "default_uint64" field.</summary>
- public const int DefaultUint64FieldNumber = 64;
- private readonly static ulong DefaultUint64DefaultValue = 44UL;
- private ulong defaultUint64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ulong DefaultUint64 {
- get { if ((_hasBits0 & 524288) != 0) { return defaultUint64_; } else { return DefaultUint64DefaultValue; } }
- set {
- _hasBits0 |= 524288;
- defaultUint64_ = value;
- }
- }
- /// <summary>Gets whether the "default_uint64" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultUint64 {
- get { return (_hasBits0 & 524288) != 0; }
- }
- /// <summary>Clears the value of the "default_uint64" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultUint64() {
- _hasBits0 &= ~524288;
- }
- /// <summary>Field number for the "default_sint32" field.</summary>
- public const int DefaultSint32FieldNumber = 65;
- private readonly static int DefaultSint32DefaultValue = -45;
- private int defaultSint32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int DefaultSint32 {
- get { if ((_hasBits0 & 1048576) != 0) { return defaultSint32_; } else { return DefaultSint32DefaultValue; } }
- set {
- _hasBits0 |= 1048576;
- defaultSint32_ = value;
- }
- }
- /// <summary>Gets whether the "default_sint32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultSint32 {
- get { return (_hasBits0 & 1048576) != 0; }
- }
- /// <summary>Clears the value of the "default_sint32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultSint32() {
- _hasBits0 &= ~1048576;
- }
- /// <summary>Field number for the "default_sint64" field.</summary>
- public const int DefaultSint64FieldNumber = 66;
- private readonly static long DefaultSint64DefaultValue = 46L;
- private long defaultSint64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long DefaultSint64 {
- get { if ((_hasBits0 & 2097152) != 0) { return defaultSint64_; } else { return DefaultSint64DefaultValue; } }
- set {
- _hasBits0 |= 2097152;
- defaultSint64_ = value;
- }
- }
- /// <summary>Gets whether the "default_sint64" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultSint64 {
- get { return (_hasBits0 & 2097152) != 0; }
- }
- /// <summary>Clears the value of the "default_sint64" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultSint64() {
- _hasBits0 &= ~2097152;
- }
- /// <summary>Field number for the "default_fixed32" field.</summary>
- public const int DefaultFixed32FieldNumber = 67;
- private readonly static uint DefaultFixed32DefaultValue = 47;
- private uint defaultFixed32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint DefaultFixed32 {
- get { if ((_hasBits0 & 4194304) != 0) { return defaultFixed32_; } else { return DefaultFixed32DefaultValue; } }
- set {
- _hasBits0 |= 4194304;
- defaultFixed32_ = value;
- }
- }
- /// <summary>Gets whether the "default_fixed32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultFixed32 {
- get { return (_hasBits0 & 4194304) != 0; }
- }
- /// <summary>Clears the value of the "default_fixed32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultFixed32() {
- _hasBits0 &= ~4194304;
- }
- /// <summary>Field number for the "default_fixed64" field.</summary>
- public const int DefaultFixed64FieldNumber = 68;
- private readonly static ulong DefaultFixed64DefaultValue = 48UL;
- private ulong defaultFixed64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ulong DefaultFixed64 {
- get { if ((_hasBits0 & 8388608) != 0) { return defaultFixed64_; } else { return DefaultFixed64DefaultValue; } }
- set {
- _hasBits0 |= 8388608;
- defaultFixed64_ = value;
- }
- }
- /// <summary>Gets whether the "default_fixed64" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultFixed64 {
- get { return (_hasBits0 & 8388608) != 0; }
- }
- /// <summary>Clears the value of the "default_fixed64" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultFixed64() {
- _hasBits0 &= ~8388608;
- }
- /// <summary>Field number for the "default_sfixed32" field.</summary>
- public const int DefaultSfixed32FieldNumber = 69;
- private readonly static int DefaultSfixed32DefaultValue = 49;
- private int defaultSfixed32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int DefaultSfixed32 {
- get { if ((_hasBits0 & 16777216) != 0) { return defaultSfixed32_; } else { return DefaultSfixed32DefaultValue; } }
- set {
- _hasBits0 |= 16777216;
- defaultSfixed32_ = value;
- }
- }
- /// <summary>Gets whether the "default_sfixed32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultSfixed32 {
- get { return (_hasBits0 & 16777216) != 0; }
- }
- /// <summary>Clears the value of the "default_sfixed32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultSfixed32() {
- _hasBits0 &= ~16777216;
- }
- /// <summary>Field number for the "default_sfixed64" field.</summary>
- public const int DefaultSfixed64FieldNumber = 70;
- private readonly static long DefaultSfixed64DefaultValue = -50L;
- private long defaultSfixed64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long DefaultSfixed64 {
- get { if ((_hasBits0 & 33554432) != 0) { return defaultSfixed64_; } else { return DefaultSfixed64DefaultValue; } }
- set {
- _hasBits0 |= 33554432;
- defaultSfixed64_ = value;
- }
- }
- /// <summary>Gets whether the "default_sfixed64" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultSfixed64 {
- get { return (_hasBits0 & 33554432) != 0; }
- }
- /// <summary>Clears the value of the "default_sfixed64" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultSfixed64() {
- _hasBits0 &= ~33554432;
- }
- /// <summary>Field number for the "default_float" field.</summary>
- public const int DefaultFloatFieldNumber = 71;
- private readonly static float DefaultFloatDefaultValue = 51.5F;
- private float defaultFloat_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float DefaultFloat {
- get { if ((_hasBits0 & 67108864) != 0) { return defaultFloat_; } else { return DefaultFloatDefaultValue; } }
- set {
- _hasBits0 |= 67108864;
- defaultFloat_ = value;
- }
- }
- /// <summary>Gets whether the "default_float" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultFloat {
- get { return (_hasBits0 & 67108864) != 0; }
- }
- /// <summary>Clears the value of the "default_float" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultFloat() {
- _hasBits0 &= ~67108864;
- }
- /// <summary>Field number for the "default_double" field.</summary>
- public const int DefaultDoubleFieldNumber = 72;
- private readonly static double DefaultDoubleDefaultValue = 52000D;
- private double defaultDouble_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double DefaultDouble {
- get { if ((_hasBits0 & 134217728) != 0) { return defaultDouble_; } else { return DefaultDoubleDefaultValue; } }
- set {
- _hasBits0 |= 134217728;
- defaultDouble_ = value;
- }
- }
- /// <summary>Gets whether the "default_double" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultDouble {
- get { return (_hasBits0 & 134217728) != 0; }
- }
- /// <summary>Clears the value of the "default_double" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultDouble() {
- _hasBits0 &= ~134217728;
- }
- /// <summary>Field number for the "default_bool" field.</summary>
- public const int DefaultBoolFieldNumber = 73;
- private readonly static bool DefaultBoolDefaultValue = true;
- private bool defaultBool_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool DefaultBool {
- get { if ((_hasBits0 & 268435456) != 0) { return defaultBool_; } else { return DefaultBoolDefaultValue; } }
- set {
- _hasBits0 |= 268435456;
- defaultBool_ = value;
- }
- }
- /// <summary>Gets whether the "default_bool" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultBool {
- get { return (_hasBits0 & 268435456) != 0; }
- }
- /// <summary>Clears the value of the "default_bool" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultBool() {
- _hasBits0 &= ~268435456;
- }
- /// <summary>Field number for the "default_string" field.</summary>
- public const int DefaultStringFieldNumber = 74;
- private readonly static string DefaultStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("aGVsbG8="), 0, 5);
- private string defaultString_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string DefaultString {
- get { return defaultString_ ?? DefaultStringDefaultValue; }
- set {
- defaultString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "default_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultString {
- get { return defaultString_ != null; }
- }
- /// <summary>Clears the value of the "default_string" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultString() {
- defaultString_ = null;
- }
- /// <summary>Field number for the "default_bytes" field.</summary>
- public const int DefaultBytesFieldNumber = 75;
- private readonly static pb::ByteString DefaultBytesDefaultValue = pb::ByteString.FromBase64("d29ybGQ=");
- private pb::ByteString defaultBytes_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString DefaultBytes {
- get { return defaultBytes_ ?? DefaultBytesDefaultValue; }
- set {
- defaultBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "default_bytes" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultBytes {
- get { return defaultBytes_ != null; }
- }
- /// <summary>Clears the value of the "default_bytes" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultBytes() {
- defaultBytes_ = null;
- }
- /// <summary>Field number for the "default_nested_enum" field.</summary>
- public const int DefaultNestedEnumFieldNumber = 81;
- private readonly static global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum DefaultNestedEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum.Bar;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum defaultNestedEnum_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum DefaultNestedEnum {
- get { if ((_hasBits0 & 536870912) != 0) { return defaultNestedEnum_; } else { return DefaultNestedEnumDefaultValue; } }
- set {
- _hasBits0 |= 536870912;
- defaultNestedEnum_ = value;
- }
- }
- /// <summary>Gets whether the "default_nested_enum" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultNestedEnum {
- get { return (_hasBits0 & 536870912) != 0; }
- }
- /// <summary>Clears the value of the "default_nested_enum" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultNestedEnum() {
- _hasBits0 &= ~536870912;
- }
- /// <summary>Field number for the "default_foreign_enum" field.</summary>
- public const int DefaultForeignEnumFieldNumber = 82;
- private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum DefaultForeignEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignBar;
- private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum defaultForeignEnum_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum DefaultForeignEnum {
- get { if ((_hasBits0 & 1073741824) != 0) { return defaultForeignEnum_; } else { return DefaultForeignEnumDefaultValue; } }
- set {
- _hasBits0 |= 1073741824;
- defaultForeignEnum_ = value;
- }
- }
- /// <summary>Gets whether the "default_foreign_enum" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultForeignEnum {
- get { return (_hasBits0 & 1073741824) != 0; }
- }
- /// <summary>Clears the value of the "default_foreign_enum" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultForeignEnum() {
- _hasBits0 &= ~1073741824;
- }
- /// <summary>Field number for the "default_import_enum" field.</summary>
- public const int DefaultImportEnumFieldNumber = 83;
- private readonly static global::Google.Protobuf.TestProtos.Proto2.ImportEnum DefaultImportEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ImportEnum.ImportBar;
- private global::Google.Protobuf.TestProtos.Proto2.ImportEnum defaultImportEnum_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.ImportEnum DefaultImportEnum {
- get { if ((_hasBits0 & -2147483648) != 0) { return defaultImportEnum_; } else { return DefaultImportEnumDefaultValue; } }
- set {
- _hasBits0 |= -2147483648;
- defaultImportEnum_ = value;
- }
- }
- /// <summary>Gets whether the "default_import_enum" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultImportEnum {
- get { return (_hasBits0 & -2147483648) != 0; }
- }
- /// <summary>Clears the value of the "default_import_enum" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultImportEnum() {
- _hasBits0 &= ~-2147483648;
- }
- /// <summary>Field number for the "default_string_piece" field.</summary>
- public const int DefaultStringPieceFieldNumber = 84;
- private readonly static string DefaultStringPieceDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("YWJj"), 0, 3);
- private string defaultStringPiece_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string DefaultStringPiece {
- get { return defaultStringPiece_ ?? DefaultStringPieceDefaultValue; }
- set {
- defaultStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "default_string_piece" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultStringPiece {
- get { return defaultStringPiece_ != null; }
- }
- /// <summary>Clears the value of the "default_string_piece" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultStringPiece() {
- defaultStringPiece_ = null;
- }
- /// <summary>Field number for the "default_cord" field.</summary>
- public const int DefaultCordFieldNumber = 85;
- private readonly static string DefaultCordDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("MTIz"), 0, 3);
- private string defaultCord_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string DefaultCord {
- get { return defaultCord_ ?? DefaultCordDefaultValue; }
- set {
- defaultCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "default_cord" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDefaultCord {
- get { return defaultCord_ != null; }
- }
- /// <summary>Clears the value of the "default_cord" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDefaultCord() {
- defaultCord_ = null;
- }
- /// <summary>Field number for the "oneof_uint32" field.</summary>
- public const int OneofUint32FieldNumber = 111;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint OneofUint32 {
- get { return HasOneofUint32 ? (uint) oneofField_ : 0; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
- }
- }
- /// <summary>Gets whether the "oneof_uint32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOneofUint32 {
- get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint32" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOneofUint32() {
- if (HasOneofUint32) {
- ClearOneofField();
- }
- }
- /// <summary>Field number for the "oneof_nested_message" field.</summary>
- public const int OneofNestedMessageFieldNumber = 112;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage OneofNestedMessage {
- get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage) oneofField_ : null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofNestedMessage;
- }
- }
- /// <summary>Field number for the "oneof_string" field.</summary>
- public const int OneofStringFieldNumber = 113;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string OneofString {
- get { return HasOneofString ? (string) oneofField_ : ""; }
- set {
- oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- oneofFieldCase_ = OneofFieldOneofCase.OneofString;
- }
- }
- /// <summary>Gets whether the "oneof_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOneofString {
- get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "oneof_string" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOneofString() {
- if (HasOneofString) {
- ClearOneofField();
- }
- }
- /// <summary>Field number for the "oneof_bytes" field.</summary>
- public const int OneofBytesFieldNumber = 114;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString OneofBytes {
- get { return HasOneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
- set {
- oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
- }
- }
- /// <summary>Gets whether the "oneof_bytes" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOneofBytes {
- get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "oneof_bytes" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOneofBytes() {
- if (HasOneofBytes) {
- ClearOneofField();
- }
- }
- private object oneofField_;
- /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
- public enum OneofFieldOneofCase {
- None = 0,
- OneofUint32 = 111,
- OneofNestedMessage = 112,
- OneofString = 113,
- OneofBytes = 114,
- }
- private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneofFieldOneofCase OneofFieldCase {
- get { return oneofFieldCase_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOneofField() {
- oneofFieldCase_ = OneofFieldOneofCase.None;
- oneofField_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestAllTypes);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestAllTypes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (OptionalInt32 != other.OptionalInt32) return false;
- if (OptionalInt64 != other.OptionalInt64) return false;
- if (OptionalUint32 != other.OptionalUint32) return false;
- if (OptionalUint64 != other.OptionalUint64) return false;
- if (OptionalSint32 != other.OptionalSint32) return false;
- if (OptionalSint64 != other.OptionalSint64) return false;
- if (OptionalFixed32 != other.OptionalFixed32) return false;
- if (OptionalFixed64 != other.OptionalFixed64) return false;
- if (OptionalSfixed32 != other.OptionalSfixed32) return false;
- if (OptionalSfixed64 != other.OptionalSfixed64) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OptionalFloat, other.OptionalFloat)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) return false;
- if (OptionalBool != other.OptionalBool) return false;
- if (OptionalString != other.OptionalString) return false;
- if (OptionalBytes != other.OptionalBytes) return false;
- if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
- if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
- if (!object.Equals(OptionalForeignMessage, other.OptionalForeignMessage)) return false;
- if (!object.Equals(OptionalImportMessage, other.OptionalImportMessage)) return false;
- if (OptionalNestedEnum != other.OptionalNestedEnum) return false;
- if (OptionalForeignEnum != other.OptionalForeignEnum) return false;
- if (OptionalImportEnum != other.OptionalImportEnum) return false;
- if (OptionalStringPiece != other.OptionalStringPiece) return false;
- if (OptionalCord != other.OptionalCord) return false;
- if (!object.Equals(OptionalPublicImportMessage, other.OptionalPublicImportMessage)) return false;
- if (!object.Equals(OptionalLazyMessage, other.OptionalLazyMessage)) return false;
- if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
- if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
- if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false;
- if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
- if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false;
- if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false;
- if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
- if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
- if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false;
- if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false;
- if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
- if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false;
- if(!repeatedBool_.Equals(other.repeatedBool_)) return false;
- if(!repeatedString_.Equals(other.repeatedString_)) return false;
- if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false;
- if(!repeatedGroup_.Equals(other.repeatedGroup_)) return false;
- if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false;
- if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false;
- if(!repeatedImportMessage_.Equals(other.repeatedImportMessage_)) return false;
- if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false;
- if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false;
- if(!repeatedImportEnum_.Equals(other.repeatedImportEnum_)) return false;
- if(!repeatedStringPiece_.Equals(other.repeatedStringPiece_)) return false;
- if(!repeatedCord_.Equals(other.repeatedCord_)) return false;
- if(!repeatedLazyMessage_.Equals(other.repeatedLazyMessage_)) return false;
- if (DefaultInt32 != other.DefaultInt32) return false;
- if (DefaultInt64 != other.DefaultInt64) return false;
- if (DefaultUint32 != other.DefaultUint32) return false;
- if (DefaultUint64 != other.DefaultUint64) return false;
- if (DefaultSint32 != other.DefaultSint32) return false;
- if (DefaultSint64 != other.DefaultSint64) return false;
- if (DefaultFixed32 != other.DefaultFixed32) return false;
- if (DefaultFixed64 != other.DefaultFixed64) return false;
- if (DefaultSfixed32 != other.DefaultSfixed32) return false;
- if (DefaultSfixed64 != other.DefaultSfixed64) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DefaultFloat, other.DefaultFloat)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DefaultDouble, other.DefaultDouble)) return false;
- if (DefaultBool != other.DefaultBool) return false;
- if (DefaultString != other.DefaultString) return false;
- if (DefaultBytes != other.DefaultBytes) return false;
- if (DefaultNestedEnum != other.DefaultNestedEnum) return false;
- if (DefaultForeignEnum != other.DefaultForeignEnum) return false;
- if (DefaultImportEnum != other.DefaultImportEnum) return false;
- if (DefaultStringPiece != other.DefaultStringPiece) return false;
- if (DefaultCord != other.DefaultCord) return false;
- if (OneofUint32 != other.OneofUint32) return false;
- if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false;
- if (OneofString != other.OneofString) return false;
- if (OneofBytes != other.OneofBytes) return false;
- if (OneofFieldCase != other.OneofFieldCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
- if (HasOptionalInt64) hash ^= OptionalInt64.GetHashCode();
- if (HasOptionalUint32) hash ^= OptionalUint32.GetHashCode();
- if (HasOptionalUint64) hash ^= OptionalUint64.GetHashCode();
- if (HasOptionalSint32) hash ^= OptionalSint32.GetHashCode();
- if (HasOptionalSint64) hash ^= OptionalSint64.GetHashCode();
- if (HasOptionalFixed32) hash ^= OptionalFixed32.GetHashCode();
- if (HasOptionalFixed64) hash ^= OptionalFixed64.GetHashCode();
- if (HasOptionalSfixed32) hash ^= OptionalSfixed32.GetHashCode();
- if (HasOptionalSfixed64) hash ^= OptionalSfixed64.GetHashCode();
- if (HasOptionalFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OptionalFloat);
- if (HasOptionalDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OptionalDouble);
- if (HasOptionalBool) hash ^= OptionalBool.GetHashCode();
- if (HasOptionalString) hash ^= OptionalString.GetHashCode();
- if (HasOptionalBytes) hash ^= OptionalBytes.GetHashCode();
- if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
- if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
- if (optionalForeignMessage_ != null) hash ^= OptionalForeignMessage.GetHashCode();
- if (optionalImportMessage_ != null) hash ^= OptionalImportMessage.GetHashCode();
- if (HasOptionalNestedEnum) hash ^= OptionalNestedEnum.GetHashCode();
- if (HasOptionalForeignEnum) hash ^= OptionalForeignEnum.GetHashCode();
- if (HasOptionalImportEnum) hash ^= OptionalImportEnum.GetHashCode();
- if (HasOptionalStringPiece) hash ^= OptionalStringPiece.GetHashCode();
- if (HasOptionalCord) hash ^= OptionalCord.GetHashCode();
- if (optionalPublicImportMessage_ != null) hash ^= OptionalPublicImportMessage.GetHashCode();
- if (optionalLazyMessage_ != null) hash ^= OptionalLazyMessage.GetHashCode();
- hash ^= repeatedInt32_.GetHashCode();
- hash ^= repeatedInt64_.GetHashCode();
- hash ^= repeatedUint32_.GetHashCode();
- hash ^= repeatedUint64_.GetHashCode();
- hash ^= repeatedSint32_.GetHashCode();
- hash ^= repeatedSint64_.GetHashCode();
- hash ^= repeatedFixed32_.GetHashCode();
- hash ^= repeatedFixed64_.GetHashCode();
- hash ^= repeatedSfixed32_.GetHashCode();
- hash ^= repeatedSfixed64_.GetHashCode();
- hash ^= repeatedFloat_.GetHashCode();
- hash ^= repeatedDouble_.GetHashCode();
- hash ^= repeatedBool_.GetHashCode();
- hash ^= repeatedString_.GetHashCode();
- hash ^= repeatedBytes_.GetHashCode();
- hash ^= repeatedGroup_.GetHashCode();
- hash ^= repeatedNestedMessage_.GetHashCode();
- hash ^= repeatedForeignMessage_.GetHashCode();
- hash ^= repeatedImportMessage_.GetHashCode();
- hash ^= repeatedNestedEnum_.GetHashCode();
- hash ^= repeatedForeignEnum_.GetHashCode();
- hash ^= repeatedImportEnum_.GetHashCode();
- hash ^= repeatedStringPiece_.GetHashCode();
- hash ^= repeatedCord_.GetHashCode();
- hash ^= repeatedLazyMessage_.GetHashCode();
- if (HasDefaultInt32) hash ^= DefaultInt32.GetHashCode();
- if (HasDefaultInt64) hash ^= DefaultInt64.GetHashCode();
- if (HasDefaultUint32) hash ^= DefaultUint32.GetHashCode();
- if (HasDefaultUint64) hash ^= DefaultUint64.GetHashCode();
- if (HasDefaultSint32) hash ^= DefaultSint32.GetHashCode();
- if (HasDefaultSint64) hash ^= DefaultSint64.GetHashCode();
- if (HasDefaultFixed32) hash ^= DefaultFixed32.GetHashCode();
- if (HasDefaultFixed64) hash ^= DefaultFixed64.GetHashCode();
- if (HasDefaultSfixed32) hash ^= DefaultSfixed32.GetHashCode();
- if (HasDefaultSfixed64) hash ^= DefaultSfixed64.GetHashCode();
- if (HasDefaultFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DefaultFloat);
- if (HasDefaultDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DefaultDouble);
- if (HasDefaultBool) hash ^= DefaultBool.GetHashCode();
- if (HasDefaultString) hash ^= DefaultString.GetHashCode();
- if (HasDefaultBytes) hash ^= DefaultBytes.GetHashCode();
- if (HasDefaultNestedEnum) hash ^= DefaultNestedEnum.GetHashCode();
- if (HasDefaultForeignEnum) hash ^= DefaultForeignEnum.GetHashCode();
- if (HasDefaultImportEnum) hash ^= DefaultImportEnum.GetHashCode();
- if (HasDefaultStringPiece) hash ^= DefaultStringPiece.GetHashCode();
- if (HasDefaultCord) hash ^= DefaultCord.GetHashCode();
- if (HasOneofUint32) hash ^= OneofUint32.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode();
- if (HasOneofString) hash ^= OneofString.GetHashCode();
- if (HasOneofBytes) hash ^= OneofBytes.GetHashCode();
- hash ^= (int) oneofFieldCase_;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasOptionalInt32) {
- output.WriteRawTag(8);
- output.WriteInt32(OptionalInt32);
- }
- if (HasOptionalInt64) {
- output.WriteRawTag(16);
- output.WriteInt64(OptionalInt64);
- }
- if (HasOptionalUint32) {
- output.WriteRawTag(24);
- output.WriteUInt32(OptionalUint32);
- }
- if (HasOptionalUint64) {
- output.WriteRawTag(32);
- output.WriteUInt64(OptionalUint64);
- }
- if (HasOptionalSint32) {
- output.WriteRawTag(40);
- output.WriteSInt32(OptionalSint32);
- }
- if (HasOptionalSint64) {
- output.WriteRawTag(48);
- output.WriteSInt64(OptionalSint64);
- }
- if (HasOptionalFixed32) {
- output.WriteRawTag(61);
- output.WriteFixed32(OptionalFixed32);
- }
- if (HasOptionalFixed64) {
- output.WriteRawTag(65);
- output.WriteFixed64(OptionalFixed64);
- }
- if (HasOptionalSfixed32) {
- output.WriteRawTag(77);
- output.WriteSFixed32(OptionalSfixed32);
- }
- if (HasOptionalSfixed64) {
- output.WriteRawTag(81);
- output.WriteSFixed64(OptionalSfixed64);
- }
- if (HasOptionalFloat) {
- output.WriteRawTag(93);
- output.WriteFloat(OptionalFloat);
- }
- if (HasOptionalDouble) {
- output.WriteRawTag(97);
- output.WriteDouble(OptionalDouble);
- }
- if (HasOptionalBool) {
- output.WriteRawTag(104);
- output.WriteBool(OptionalBool);
- }
- if (HasOptionalString) {
- output.WriteRawTag(114);
- output.WriteString(OptionalString);
- }
- if (HasOptionalBytes) {
- output.WriteRawTag(122);
- output.WriteBytes(OptionalBytes);
- }
- if (HasOptionalGroup) {
- output.WriteRawTag(131, 1);
- output.WriteGroup(OptionalGroup);
- output.WriteRawTag(132, 1);
- }
- if (optionalNestedMessage_ != null) {
- output.WriteRawTag(146, 1);
- output.WriteMessage(OptionalNestedMessage);
- }
- if (optionalForeignMessage_ != null) {
- output.WriteRawTag(154, 1);
- output.WriteMessage(OptionalForeignMessage);
- }
- if (optionalImportMessage_ != null) {
- output.WriteRawTag(162, 1);
- output.WriteMessage(OptionalImportMessage);
- }
- if (HasOptionalNestedEnum) {
- output.WriteRawTag(168, 1);
- output.WriteEnum((int) OptionalNestedEnum);
- }
- if (HasOptionalForeignEnum) {
- output.WriteRawTag(176, 1);
- output.WriteEnum((int) OptionalForeignEnum);
- }
- if (HasOptionalImportEnum) {
- output.WriteRawTag(184, 1);
- output.WriteEnum((int) OptionalImportEnum);
- }
- if (HasOptionalStringPiece) {
- output.WriteRawTag(194, 1);
- output.WriteString(OptionalStringPiece);
- }
- if (HasOptionalCord) {
- output.WriteRawTag(202, 1);
- output.WriteString(OptionalCord);
- }
- if (optionalPublicImportMessage_ != null) {
- output.WriteRawTag(210, 1);
- output.WriteMessage(OptionalPublicImportMessage);
- }
- if (optionalLazyMessage_ != null) {
- output.WriteRawTag(218, 1);
- output.WriteMessage(OptionalLazyMessage);
- }
- repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
- repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
- repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec);
- repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
- repeatedSint32_.WriteTo(output, _repeated_repeatedSint32_codec);
- repeatedSint64_.WriteTo(output, _repeated_repeatedSint64_codec);
- repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
- repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
- repeatedSfixed32_.WriteTo(output, _repeated_repeatedSfixed32_codec);
- repeatedSfixed64_.WriteTo(output, _repeated_repeatedSfixed64_codec);
- repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
- repeatedDouble_.WriteTo(output, _repeated_repeatedDouble_codec);
- repeatedBool_.WriteTo(output, _repeated_repeatedBool_codec);
- repeatedString_.WriteTo(output, _repeated_repeatedString_codec);
- repeatedBytes_.WriteTo(output, _repeated_repeatedBytes_codec);
- repeatedGroup_.WriteTo(output, _repeated_repeatedGroup_codec);
- repeatedNestedMessage_.WriteTo(output, _repeated_repeatedNestedMessage_codec);
- repeatedForeignMessage_.WriteTo(output, _repeated_repeatedForeignMessage_codec);
- repeatedImportMessage_.WriteTo(output, _repeated_repeatedImportMessage_codec);
- repeatedNestedEnum_.WriteTo(output, _repeated_repeatedNestedEnum_codec);
- repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec);
- repeatedImportEnum_.WriteTo(output, _repeated_repeatedImportEnum_codec);
- repeatedStringPiece_.WriteTo(output, _repeated_repeatedStringPiece_codec);
- repeatedCord_.WriteTo(output, _repeated_repeatedCord_codec);
- repeatedLazyMessage_.WriteTo(output, _repeated_repeatedLazyMessage_codec);
- if (HasDefaultInt32) {
- output.WriteRawTag(232, 3);
- output.WriteInt32(DefaultInt32);
- }
- if (HasDefaultInt64) {
- output.WriteRawTag(240, 3);
- output.WriteInt64(DefaultInt64);
- }
- if (HasDefaultUint32) {
- output.WriteRawTag(248, 3);
- output.WriteUInt32(DefaultUint32);
- }
- if (HasDefaultUint64) {
- output.WriteRawTag(128, 4);
- output.WriteUInt64(DefaultUint64);
- }
- if (HasDefaultSint32) {
- output.WriteRawTag(136, 4);
- output.WriteSInt32(DefaultSint32);
- }
- if (HasDefaultSint64) {
- output.WriteRawTag(144, 4);
- output.WriteSInt64(DefaultSint64);
- }
- if (HasDefaultFixed32) {
- output.WriteRawTag(157, 4);
- output.WriteFixed32(DefaultFixed32);
- }
- if (HasDefaultFixed64) {
- output.WriteRawTag(161, 4);
- output.WriteFixed64(DefaultFixed64);
- }
- if (HasDefaultSfixed32) {
- output.WriteRawTag(173, 4);
- output.WriteSFixed32(DefaultSfixed32);
- }
- if (HasDefaultSfixed64) {
- output.WriteRawTag(177, 4);
- output.WriteSFixed64(DefaultSfixed64);
- }
- if (HasDefaultFloat) {
- output.WriteRawTag(189, 4);
- output.WriteFloat(DefaultFloat);
- }
- if (HasDefaultDouble) {
- output.WriteRawTag(193, 4);
- output.WriteDouble(DefaultDouble);
- }
- if (HasDefaultBool) {
- output.WriteRawTag(200, 4);
- output.WriteBool(DefaultBool);
- }
- if (HasDefaultString) {
- output.WriteRawTag(210, 4);
- output.WriteString(DefaultString);
- }
- if (HasDefaultBytes) {
- output.WriteRawTag(218, 4);
- output.WriteBytes(DefaultBytes);
- }
- if (HasDefaultNestedEnum) {
- output.WriteRawTag(136, 5);
- output.WriteEnum((int) DefaultNestedEnum);
- }
- if (HasDefaultForeignEnum) {
- output.WriteRawTag(144, 5);
- output.WriteEnum((int) DefaultForeignEnum);
- }
- if (HasDefaultImportEnum) {
- output.WriteRawTag(152, 5);
- output.WriteEnum((int) DefaultImportEnum);
- }
- if (HasDefaultStringPiece) {
- output.WriteRawTag(162, 5);
- output.WriteString(DefaultStringPiece);
- }
- if (HasDefaultCord) {
- output.WriteRawTag(170, 5);
- output.WriteString(DefaultCord);
- }
- if (HasOneofUint32) {
- output.WriteRawTag(248, 6);
- output.WriteUInt32(OneofUint32);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
- output.WriteRawTag(130, 7);
- output.WriteMessage(OneofNestedMessage);
- }
- if (HasOneofString) {
- output.WriteRawTag(138, 7);
- output.WriteString(OneofString);
- }
- if (HasOneofBytes) {
- output.WriteRawTag(146, 7);
- output.WriteBytes(OneofBytes);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasOptionalInt32) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
- }
- if (HasOptionalInt64) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(OptionalInt64);
- }
- if (HasOptionalUint32) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionalUint32);
- }
- if (HasOptionalUint64) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OptionalUint64);
- }
- if (HasOptionalSint32) {
- size += 1 + pb::CodedOutputStream.ComputeSInt32Size(OptionalSint32);
- }
- if (HasOptionalSint64) {
- size += 1 + pb::CodedOutputStream.ComputeSInt64Size(OptionalSint64);
- }
- if (HasOptionalFixed32) {
- size += 1 + 4;
- }
- if (HasOptionalFixed64) {
- size += 1 + 8;
- }
- if (HasOptionalSfixed32) {
- size += 1 + 4;
- }
- if (HasOptionalSfixed64) {
- size += 1 + 8;
- }
- if (HasOptionalFloat) {
- size += 1 + 4;
- }
- if (HasOptionalDouble) {
- size += 1 + 8;
- }
- if (HasOptionalBool) {
- size += 1 + 1;
- }
- if (HasOptionalString) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
- }
- if (HasOptionalBytes) {
- size += 1 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes);
- }
- if (HasOptionalGroup) {
- size += 4 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
- }
- if (optionalNestedMessage_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
- }
- if (optionalForeignMessage_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalForeignMessage);
- }
- if (optionalImportMessage_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalImportMessage);
- }
- if (HasOptionalNestedEnum) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalNestedEnum);
- }
- if (HasOptionalForeignEnum) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum);
- }
- if (HasOptionalImportEnum) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalImportEnum);
- }
- if (HasOptionalStringPiece) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalStringPiece);
- }
- if (HasOptionalCord) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(OptionalCord);
- }
- if (optionalPublicImportMessage_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalPublicImportMessage);
- }
- if (optionalLazyMessage_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalLazyMessage);
- }
- size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
- size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
- size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec);
- size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
- size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec);
- size += repeatedSint64_.CalculateSize(_repeated_repeatedSint64_codec);
- size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
- size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
- size += repeatedSfixed32_.CalculateSize(_repeated_repeatedSfixed32_codec);
- size += repeatedSfixed64_.CalculateSize(_repeated_repeatedSfixed64_codec);
- size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
- size += repeatedDouble_.CalculateSize(_repeated_repeatedDouble_codec);
- size += repeatedBool_.CalculateSize(_repeated_repeatedBool_codec);
- size += repeatedString_.CalculateSize(_repeated_repeatedString_codec);
- size += repeatedBytes_.CalculateSize(_repeated_repeatedBytes_codec);
- size += repeatedGroup_.CalculateSize(_repeated_repeatedGroup_codec);
- size += repeatedNestedMessage_.CalculateSize(_repeated_repeatedNestedMessage_codec);
- size += repeatedForeignMessage_.CalculateSize(_repeated_repeatedForeignMessage_codec);
- size += repeatedImportMessage_.CalculateSize(_repeated_repeatedImportMessage_codec);
- size += repeatedNestedEnum_.CalculateSize(_repeated_repeatedNestedEnum_codec);
- size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec);
- size += repeatedImportEnum_.CalculateSize(_repeated_repeatedImportEnum_codec);
- size += repeatedStringPiece_.CalculateSize(_repeated_repeatedStringPiece_codec);
- size += repeatedCord_.CalculateSize(_repeated_repeatedCord_codec);
- size += repeatedLazyMessage_.CalculateSize(_repeated_repeatedLazyMessage_codec);
- if (HasDefaultInt32) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(DefaultInt32);
- }
- if (HasDefaultInt64) {
- size += 2 + pb::CodedOutputStream.ComputeInt64Size(DefaultInt64);
- }
- if (HasDefaultUint32) {
- size += 2 + pb::CodedOutputStream.ComputeUInt32Size(DefaultUint32);
- }
- if (HasDefaultUint64) {
- size += 2 + pb::CodedOutputStream.ComputeUInt64Size(DefaultUint64);
- }
- if (HasDefaultSint32) {
- size += 2 + pb::CodedOutputStream.ComputeSInt32Size(DefaultSint32);
- }
- if (HasDefaultSint64) {
- size += 2 + pb::CodedOutputStream.ComputeSInt64Size(DefaultSint64);
- }
- if (HasDefaultFixed32) {
- size += 2 + 4;
- }
- if (HasDefaultFixed64) {
- size += 2 + 8;
- }
- if (HasDefaultSfixed32) {
- size += 2 + 4;
- }
- if (HasDefaultSfixed64) {
- size += 2 + 8;
- }
- if (HasDefaultFloat) {
- size += 2 + 4;
- }
- if (HasDefaultDouble) {
- size += 2 + 8;
- }
- if (HasDefaultBool) {
- size += 2 + 1;
- }
- if (HasDefaultString) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultString);
- }
- if (HasDefaultBytes) {
- size += 2 + pb::CodedOutputStream.ComputeBytesSize(DefaultBytes);
- }
- if (HasDefaultNestedEnum) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DefaultNestedEnum);
- }
- if (HasDefaultForeignEnum) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DefaultForeignEnum);
- }
- if (HasDefaultImportEnum) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DefaultImportEnum);
- }
- if (HasDefaultStringPiece) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultStringPiece);
- }
- if (HasDefaultCord) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(DefaultCord);
- }
- if (HasOneofUint32) {
- size += 2 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(OneofNestedMessage);
- }
- if (HasOneofString) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString);
- }
- if (HasOneofBytes) {
- size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestAllTypes other) {
- if (other == null) {
- return;
- }
- if (other.HasOptionalInt32) {
- OptionalInt32 = other.OptionalInt32;
- }
- if (other.HasOptionalInt64) {
- OptionalInt64 = other.OptionalInt64;
- }
- if (other.HasOptionalUint32) {
- OptionalUint32 = other.OptionalUint32;
- }
- if (other.HasOptionalUint64) {
- OptionalUint64 = other.OptionalUint64;
- }
- if (other.HasOptionalSint32) {
- OptionalSint32 = other.OptionalSint32;
- }
- if (other.HasOptionalSint64) {
- OptionalSint64 = other.OptionalSint64;
- }
- if (other.HasOptionalFixed32) {
- OptionalFixed32 = other.OptionalFixed32;
- }
- if (other.HasOptionalFixed64) {
- OptionalFixed64 = other.OptionalFixed64;
- }
- if (other.HasOptionalSfixed32) {
- OptionalSfixed32 = other.OptionalSfixed32;
- }
- if (other.HasOptionalSfixed64) {
- OptionalSfixed64 = other.OptionalSfixed64;
- }
- if (other.HasOptionalFloat) {
- OptionalFloat = other.OptionalFloat;
- }
- if (other.HasOptionalDouble) {
- OptionalDouble = other.OptionalDouble;
- }
- if (other.HasOptionalBool) {
- OptionalBool = other.OptionalBool;
- }
- if (other.HasOptionalString) {
- OptionalString = other.OptionalString;
- }
- if (other.HasOptionalBytes) {
- OptionalBytes = other.OptionalBytes;
- }
- if (other.HasOptionalGroup) {
- if (!HasOptionalGroup) {
- OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup();
- }
- OptionalGroup.MergeFrom(other.OptionalGroup);
- }
- if (other.optionalNestedMessage_ != null) {
- if (optionalNestedMessage_ == null) {
- OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
- }
- OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
- }
- if (other.optionalForeignMessage_ != null) {
- if (optionalForeignMessage_ == null) {
- OptionalForeignMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
- }
- OptionalForeignMessage.MergeFrom(other.OptionalForeignMessage);
- }
- if (other.optionalImportMessage_ != null) {
- if (optionalImportMessage_ == null) {
- OptionalImportMessage = new global::Google.Protobuf.TestProtos.Proto2.ImportMessage();
- }
- OptionalImportMessage.MergeFrom(other.OptionalImportMessage);
- }
- if (other.HasOptionalNestedEnum) {
- OptionalNestedEnum = other.OptionalNestedEnum;
- }
- if (other.HasOptionalForeignEnum) {
- OptionalForeignEnum = other.OptionalForeignEnum;
- }
- if (other.HasOptionalImportEnum) {
- OptionalImportEnum = other.OptionalImportEnum;
- }
- if (other.HasOptionalStringPiece) {
- OptionalStringPiece = other.OptionalStringPiece;
- }
- if (other.HasOptionalCord) {
- OptionalCord = other.OptionalCord;
- }
- if (other.optionalPublicImportMessage_ != null) {
- if (optionalPublicImportMessage_ == null) {
- OptionalPublicImportMessage = new global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage();
- }
- OptionalPublicImportMessage.MergeFrom(other.OptionalPublicImportMessage);
- }
- if (other.optionalLazyMessage_ != null) {
- if (optionalLazyMessage_ == null) {
- OptionalLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
- }
- OptionalLazyMessage.MergeFrom(other.OptionalLazyMessage);
- }
- repeatedInt32_.Add(other.repeatedInt32_);
- repeatedInt64_.Add(other.repeatedInt64_);
- repeatedUint32_.Add(other.repeatedUint32_);
- repeatedUint64_.Add(other.repeatedUint64_);
- repeatedSint32_.Add(other.repeatedSint32_);
- repeatedSint64_.Add(other.repeatedSint64_);
- repeatedFixed32_.Add(other.repeatedFixed32_);
- repeatedFixed64_.Add(other.repeatedFixed64_);
- repeatedSfixed32_.Add(other.repeatedSfixed32_);
- repeatedSfixed64_.Add(other.repeatedSfixed64_);
- repeatedFloat_.Add(other.repeatedFloat_);
- repeatedDouble_.Add(other.repeatedDouble_);
- repeatedBool_.Add(other.repeatedBool_);
- repeatedString_.Add(other.repeatedString_);
- repeatedBytes_.Add(other.repeatedBytes_);
- repeatedGroup_.Add(other.repeatedGroup_);
- repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
- repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
- repeatedImportMessage_.Add(other.repeatedImportMessage_);
- repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
- repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
- repeatedImportEnum_.Add(other.repeatedImportEnum_);
- repeatedStringPiece_.Add(other.repeatedStringPiece_);
- repeatedCord_.Add(other.repeatedCord_);
- repeatedLazyMessage_.Add(other.repeatedLazyMessage_);
- if (other.HasDefaultInt32) {
- DefaultInt32 = other.DefaultInt32;
- }
- if (other.HasDefaultInt64) {
- DefaultInt64 = other.DefaultInt64;
- }
- if (other.HasDefaultUint32) {
- DefaultUint32 = other.DefaultUint32;
- }
- if (other.HasDefaultUint64) {
- DefaultUint64 = other.DefaultUint64;
- }
- if (other.HasDefaultSint32) {
- DefaultSint32 = other.DefaultSint32;
- }
- if (other.HasDefaultSint64) {
- DefaultSint64 = other.DefaultSint64;
- }
- if (other.HasDefaultFixed32) {
- DefaultFixed32 = other.DefaultFixed32;
- }
- if (other.HasDefaultFixed64) {
- DefaultFixed64 = other.DefaultFixed64;
- }
- if (other.HasDefaultSfixed32) {
- DefaultSfixed32 = other.DefaultSfixed32;
- }
- if (other.HasDefaultSfixed64) {
- DefaultSfixed64 = other.DefaultSfixed64;
- }
- if (other.HasDefaultFloat) {
- DefaultFloat = other.DefaultFloat;
- }
- if (other.HasDefaultDouble) {
- DefaultDouble = other.DefaultDouble;
- }
- if (other.HasDefaultBool) {
- DefaultBool = other.DefaultBool;
- }
- if (other.HasDefaultString) {
- DefaultString = other.DefaultString;
- }
- if (other.HasDefaultBytes) {
- DefaultBytes = other.DefaultBytes;
- }
- if (other.HasDefaultNestedEnum) {
- DefaultNestedEnum = other.DefaultNestedEnum;
- }
- if (other.HasDefaultForeignEnum) {
- DefaultForeignEnum = other.DefaultForeignEnum;
- }
- if (other.HasDefaultImportEnum) {
- DefaultImportEnum = other.DefaultImportEnum;
- }
- if (other.HasDefaultStringPiece) {
- DefaultStringPiece = other.DefaultStringPiece;
- }
- if (other.HasDefaultCord) {
- DefaultCord = other.DefaultCord;
- }
- switch (other.OneofFieldCase) {
- case OneofFieldOneofCase.OneofUint32:
- OneofUint32 = other.OneofUint32;
- break;
- case OneofFieldOneofCase.OneofNestedMessage:
- if (OneofNestedMessage == null) {
- OneofNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
- }
- OneofNestedMessage.MergeFrom(other.OneofNestedMessage);
- break;
- case OneofFieldOneofCase.OneofString:
- OneofString = other.OneofString;
- break;
- case OneofFieldOneofCase.OneofBytes:
- OneofBytes = other.OneofBytes;
- break;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- OptionalInt32 = input.ReadInt32();
- break;
- }
- case 16: {
- OptionalInt64 = input.ReadInt64();
- break;
- }
- case 24: {
- OptionalUint32 = input.ReadUInt32();
- break;
- }
- case 32: {
- OptionalUint64 = input.ReadUInt64();
- break;
- }
- case 40: {
- OptionalSint32 = input.ReadSInt32();
- break;
- }
- case 48: {
- OptionalSint64 = input.ReadSInt64();
- break;
- }
- case 61: {
- OptionalFixed32 = input.ReadFixed32();
- break;
- }
- case 65: {
- OptionalFixed64 = input.ReadFixed64();
- break;
- }
- case 77: {
- OptionalSfixed32 = input.ReadSFixed32();
- break;
- }
- case 81: {
- OptionalSfixed64 = input.ReadSFixed64();
- break;
- }
- case 93: {
- OptionalFloat = input.ReadFloat();
- break;
- }
- case 97: {
- OptionalDouble = input.ReadDouble();
- break;
- }
- case 104: {
- OptionalBool = input.ReadBool();
- break;
- }
- case 114: {
- OptionalString = input.ReadString();
- break;
- }
- case 122: {
- OptionalBytes = input.ReadBytes();
- break;
- }
- case 131: {
- if (!HasOptionalGroup) {
- OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.OptionalGroup();
- }
- input.ReadGroup(OptionalGroup);
- break;
- }
- case 146: {
- if (optionalNestedMessage_ == null) {
- OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
- }
- input.ReadMessage(OptionalNestedMessage);
- break;
- }
- case 154: {
- if (optionalForeignMessage_ == null) {
- OptionalForeignMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
- }
- input.ReadMessage(OptionalForeignMessage);
- break;
- }
- case 162: {
- if (optionalImportMessage_ == null) {
- OptionalImportMessage = new global::Google.Protobuf.TestProtos.Proto2.ImportMessage();
- }
- input.ReadMessage(OptionalImportMessage);
- break;
- }
- case 168: {
- OptionalNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum();
- break;
- }
- case 176: {
- OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
- break;
- }
- case 184: {
- OptionalImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum();
- break;
- }
- case 194: {
- OptionalStringPiece = input.ReadString();
- break;
- }
- case 202: {
- OptionalCord = input.ReadString();
- break;
- }
- case 210: {
- if (optionalPublicImportMessage_ == null) {
- OptionalPublicImportMessage = new global::Google.Protobuf.TestProtos.Proto2.PublicImportMessage();
- }
- input.ReadMessage(OptionalPublicImportMessage);
- break;
- }
- case 218: {
- if (optionalLazyMessage_ == null) {
- OptionalLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
- }
- input.ReadMessage(OptionalLazyMessage);
- break;
- }
- case 250:
- case 248: {
- repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
- break;
- }
- case 258:
- case 256: {
- repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
- break;
- }
- case 266:
- case 264: {
- repeatedUint32_.AddEntriesFrom(input, _repeated_repeatedUint32_codec);
- break;
- }
- case 274:
- case 272: {
- repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
- break;
- }
- case 282:
- case 280: {
- repeatedSint32_.AddEntriesFrom(input, _repeated_repeatedSint32_codec);
- break;
- }
- case 290:
- case 288: {
- repeatedSint64_.AddEntriesFrom(input, _repeated_repeatedSint64_codec);
- break;
- }
- case 298:
- case 301: {
- repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
- break;
- }
- case 306:
- case 305: {
- repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
- break;
- }
- case 314:
- case 317: {
- repeatedSfixed32_.AddEntriesFrom(input, _repeated_repeatedSfixed32_codec);
- break;
- }
- case 322:
- case 321: {
- repeatedSfixed64_.AddEntriesFrom(input, _repeated_repeatedSfixed64_codec);
- break;
- }
- case 330:
- case 333: {
- repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
- break;
- }
- case 338:
- case 337: {
- repeatedDouble_.AddEntriesFrom(input, _repeated_repeatedDouble_codec);
- break;
- }
- case 346:
- case 344: {
- repeatedBool_.AddEntriesFrom(input, _repeated_repeatedBool_codec);
- break;
- }
- case 354: {
- repeatedString_.AddEntriesFrom(input, _repeated_repeatedString_codec);
- break;
- }
- case 362: {
- repeatedBytes_.AddEntriesFrom(input, _repeated_repeatedBytes_codec);
- break;
- }
- case 371: {
- repeatedGroup_.AddEntriesFrom(input, _repeated_repeatedGroup_codec);
- break;
- }
- case 386: {
- repeatedNestedMessage_.AddEntriesFrom(input, _repeated_repeatedNestedMessage_codec);
- break;
- }
- case 394: {
- repeatedForeignMessage_.AddEntriesFrom(input, _repeated_repeatedForeignMessage_codec);
- break;
- }
- case 402: {
- repeatedImportMessage_.AddEntriesFrom(input, _repeated_repeatedImportMessage_codec);
- break;
- }
- case 410:
- case 408: {
- repeatedNestedEnum_.AddEntriesFrom(input, _repeated_repeatedNestedEnum_codec);
- break;
- }
- case 418:
- case 416: {
- repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec);
- break;
- }
- case 426:
- case 424: {
- repeatedImportEnum_.AddEntriesFrom(input, _repeated_repeatedImportEnum_codec);
- break;
- }
- case 434: {
- repeatedStringPiece_.AddEntriesFrom(input, _repeated_repeatedStringPiece_codec);
- break;
- }
- case 442: {
- repeatedCord_.AddEntriesFrom(input, _repeated_repeatedCord_codec);
- break;
- }
- case 458: {
- repeatedLazyMessage_.AddEntriesFrom(input, _repeated_repeatedLazyMessage_codec);
- break;
- }
- case 488: {
- DefaultInt32 = input.ReadInt32();
- break;
- }
- case 496: {
- DefaultInt64 = input.ReadInt64();
- break;
- }
- case 504: {
- DefaultUint32 = input.ReadUInt32();
- break;
- }
- case 512: {
- DefaultUint64 = input.ReadUInt64();
- break;
- }
- case 520: {
- DefaultSint32 = input.ReadSInt32();
- break;
- }
- case 528: {
- DefaultSint64 = input.ReadSInt64();
- break;
- }
- case 541: {
- DefaultFixed32 = input.ReadFixed32();
- break;
- }
- case 545: {
- DefaultFixed64 = input.ReadFixed64();
- break;
- }
- case 557: {
- DefaultSfixed32 = input.ReadSFixed32();
- break;
- }
- case 561: {
- DefaultSfixed64 = input.ReadSFixed64();
- break;
- }
- case 573: {
- DefaultFloat = input.ReadFloat();
- break;
- }
- case 577: {
- DefaultDouble = input.ReadDouble();
- break;
- }
- case 584: {
- DefaultBool = input.ReadBool();
- break;
- }
- case 594: {
- DefaultString = input.ReadString();
- break;
- }
- case 602: {
- DefaultBytes = input.ReadBytes();
- break;
- }
- case 648: {
- DefaultNestedEnum = (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedEnum) input.ReadEnum();
- break;
- }
- case 656: {
- DefaultForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
- break;
- }
- case 664: {
- DefaultImportEnum = (global::Google.Protobuf.TestProtos.Proto2.ImportEnum) input.ReadEnum();
- break;
- }
- case 674: {
- DefaultStringPiece = input.ReadString();
- break;
- }
- case 682: {
- DefaultCord = input.ReadString();
- break;
- }
- case 888: {
- OneofUint32 = input.ReadUInt32();
- break;
- }
- case 898: {
- global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
- subBuilder.MergeFrom(OneofNestedMessage);
- }
- input.ReadMessage(subBuilder);
- OneofNestedMessage = subBuilder;
- break;
- }
- case 906: {
- OneofString = input.ReadString();
- break;
- }
- case 914: {
- OneofBytes = input.ReadBytes();
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestAllTypes message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public enum NestedEnum {
- [pbr::OriginalName("FOO")] Foo = 1,
- [pbr::OriginalName("BAR")] Bar = 2,
- [pbr::OriginalName("BAZ")] Baz = 3,
- /// <summary>
- /// Intentionally negative.
- /// </summary>
- [pbr::OriginalName("NEG")] Neg = -1,
- }
- public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
- private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage(NestedMessage other) : this() {
- _hasBits0 = other._hasBits0;
- bb_ = other.bb_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage Clone() {
- return new NestedMessage(this);
- }
- /// <summary>Field number for the "bb" field.</summary>
- public const int BbFieldNumber = 1;
- private readonly static int BbDefaultValue = 0;
- private int bb_;
- /// <summary>
- /// The field name "b" fails to compile in proto1 because it conflicts with
- /// a local variable named "b" in one of the generated methods. Doh.
- /// This file needs to compile in proto1 to test backwards-compatibility.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Bb {
- get { if ((_hasBits0 & 1) != 0) { return bb_; } else { return BbDefaultValue; } }
- set {
- _hasBits0 |= 1;
- bb_ = value;
- }
- }
- /// <summary>Gets whether the "bb" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasBb {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "bb" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearBb() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as NestedMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(NestedMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Bb != other.Bb) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasBb) hash ^= Bb.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasBb) {
- output.WriteRawTag(8);
- output.WriteInt32(Bb);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasBb) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(NestedMessage other) {
- if (other == null) {
- return;
- }
- if (other.HasBb) {
- Bb = other.Bb;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Bb = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup> {
- private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[1]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup(OptionalGroup other) : this() {
- _hasBits0 = other._hasBits0;
- a_ = other.a_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup Clone() {
- return new OptionalGroup(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 17;
- private readonly static int ADefaultValue = 0;
- private int a_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int A {
- get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
- set {
- _hasBits0 |= 1;
- a_ = value;
- }
- }
- /// <summary>Gets whether the "a" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasA {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "a" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearA() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as OptionalGroup);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(OptionalGroup other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasA) hash ^= A.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasA) {
- output.WriteRawTag(136, 1);
- output.WriteInt32(A);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasA) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(OptionalGroup other) {
- if (other == null) {
- return;
- }
- if (other.HasA) {
- A = other.A;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 132:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 136: {
- A = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- public sealed partial class RepeatedGroup : pb::IMessage<RepeatedGroup> {
- private static readonly pb::MessageParser<RepeatedGroup> _parser = new pb::MessageParser<RepeatedGroup>(() => new RepeatedGroup());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<RepeatedGroup> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Descriptor.NestedTypes[2]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RepeatedGroup() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RepeatedGroup(RepeatedGroup other) : this() {
- _hasBits0 = other._hasBits0;
- a_ = other.a_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RepeatedGroup Clone() {
- return new RepeatedGroup(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 47;
- private readonly static int ADefaultValue = 0;
- private int a_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int A {
- get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
- set {
- _hasBits0 |= 1;
- a_ = value;
- }
- }
- /// <summary>Gets whether the "a" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasA {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "a" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearA() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as RepeatedGroup);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(RepeatedGroup other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasA) hash ^= A.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasA) {
- output.WriteRawTag(248, 2);
- output.WriteInt32(A);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasA) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(RepeatedGroup other) {
- if (other == null) {
- return;
- }
- if (other.HasA) {
- A = other.A;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 372:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 376: {
- A = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- /// <summary>
- /// This proto includes a recursively nested message.
- /// </summary>
- public sealed partial class NestedTestAllTypes : pb::IMessage<NestedTestAllTypes> {
- private static readonly pb::MessageParser<NestedTestAllTypes> _parser = new pb::MessageParser<NestedTestAllTypes>(() => new NestedTestAllTypes());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<NestedTestAllTypes> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[1]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedTestAllTypes() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedTestAllTypes(NestedTestAllTypes other) : this() {
- child_ = other.child_ != null ? other.child_.Clone() : null;
- payload_ = other.payload_ != null ? other.payload_.Clone() : null;
- repeatedChild_ = other.repeatedChild_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedTestAllTypes Clone() {
- return new NestedTestAllTypes(this);
- }
- /// <summary>Field number for the "child" field.</summary>
- public const int ChildFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes child_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes Child {
- get { return child_; }
- set {
- child_ = value;
- }
- }
- /// <summary>Field number for the "payload" field.</summary>
- public const int PayloadFieldNumber = 2;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes payload_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes Payload {
- get { return payload_; }
- set {
- payload_ = value;
- }
- }
- /// <summary>Field number for the "repeated_child" field.</summary>
- public const int RepeatedChildFieldNumber = 3;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes> _repeated_repeatedChild_codec
- = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes> repeatedChild_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes> RepeatedChild {
- get { return repeatedChild_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as NestedTestAllTypes);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(NestedTestAllTypes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Child, other.Child)) return false;
- if (!object.Equals(Payload, other.Payload)) return false;
- if(!repeatedChild_.Equals(other.repeatedChild_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (child_ != null) hash ^= Child.GetHashCode();
- if (payload_ != null) hash ^= Payload.GetHashCode();
- hash ^= repeatedChild_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (child_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Child);
- }
- if (payload_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Payload);
- }
- repeatedChild_.WriteTo(output, _repeated_repeatedChild_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (child_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Child);
- }
- if (payload_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
- }
- size += repeatedChild_.CalculateSize(_repeated_repeatedChild_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(NestedTestAllTypes other) {
- if (other == null) {
- return;
- }
- if (other.child_ != null) {
- if (child_ == null) {
- Child = new global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes();
- }
- Child.MergeFrom(other.Child);
- }
- if (other.payload_ != null) {
- if (payload_ == null) {
- Payload = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- Payload.MergeFrom(other.Payload);
- }
- repeatedChild_.Add(other.repeatedChild_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (child_ == null) {
- Child = new global::Google.Protobuf.TestProtos.Proto2.NestedTestAllTypes();
- }
- input.ReadMessage(Child);
- break;
- }
- case 18: {
- if (payload_ == null) {
- Payload = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- input.ReadMessage(Payload);
- break;
- }
- case 26: {
- repeatedChild_.AddEntriesFrom(input, _repeated_repeatedChild_codec);
- break;
- }
- }
- }
- }
- }
- public sealed partial class TestDeprecatedFields : pb::IMessage<TestDeprecatedFields> {
- private static readonly pb::MessageParser<TestDeprecatedFields> _parser = new pb::MessageParser<TestDeprecatedFields>(() => new TestDeprecatedFields());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestDeprecatedFields> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[2]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestDeprecatedFields() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestDeprecatedFields(TestDeprecatedFields other) : this() {
- _hasBits0 = other._hasBits0;
- deprecatedInt32_ = other.deprecatedInt32_;
- switch (other.OneofFieldsCase) {
- case OneofFieldsOneofCase.DeprecatedInt32InOneof:
- DeprecatedInt32InOneof = other.DeprecatedInt32InOneof;
- break;
- }
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestDeprecatedFields Clone() {
- return new TestDeprecatedFields(this);
- }
- /// <summary>Field number for the "deprecated_int32" field.</summary>
- public const int DeprecatedInt32FieldNumber = 1;
- private readonly static int DeprecatedInt32DefaultValue = 0;
- private int deprecatedInt32_;
- [global::System.ObsoleteAttribute]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int DeprecatedInt32 {
- get { if ((_hasBits0 & 1) != 0) { return deprecatedInt32_; } else { return DeprecatedInt32DefaultValue; } }
- set {
- _hasBits0 |= 1;
- deprecatedInt32_ = value;
- }
- }
- /// <summary>Gets whether the "deprecated_int32" field is set</summary>
- [global::System.ObsoleteAttribute]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDeprecatedInt32 {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "deprecated_int32" field</summary>
- [global::System.ObsoleteAttribute]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDeprecatedInt32() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "deprecated_int32_in_oneof" field.</summary>
- public const int DeprecatedInt32InOneofFieldNumber = 2;
- [global::System.ObsoleteAttribute]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int DeprecatedInt32InOneof {
- get { return HasDeprecatedInt32InOneof ? (int) oneofFields_ : 0; }
- set {
- oneofFields_ = value;
- oneofFieldsCase_ = OneofFieldsOneofCase.DeprecatedInt32InOneof;
- }
- }
- /// <summary>Gets whether the "deprecated_int32_in_oneof" field is set</summary>
- [global::System.ObsoleteAttribute]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDeprecatedInt32InOneof {
- get { return oneofFieldsCase_ == OneofFieldsOneofCase.DeprecatedInt32InOneof; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "deprecated_int32_in_oneof" </summary>
- [global::System.ObsoleteAttribute]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDeprecatedInt32InOneof() {
- if (HasDeprecatedInt32InOneof) {
- ClearOneofFields();
- }
- }
- private object oneofFields_;
- /// <summary>Enum of possible cases for the "oneof_fields" oneof.</summary>
- public enum OneofFieldsOneofCase {
- None = 0,
- DeprecatedInt32InOneof = 2,
- }
- private OneofFieldsOneofCase oneofFieldsCase_ = OneofFieldsOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneofFieldsOneofCase OneofFieldsCase {
- get { return oneofFieldsCase_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOneofFields() {
- oneofFieldsCase_ = OneofFieldsOneofCase.None;
- oneofFields_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestDeprecatedFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestDeprecatedFields other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (DeprecatedInt32 != other.DeprecatedInt32) return false;
- if (DeprecatedInt32InOneof != other.DeprecatedInt32InOneof) return false;
- if (OneofFieldsCase != other.OneofFieldsCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasDeprecatedInt32) hash ^= DeprecatedInt32.GetHashCode();
- if (HasDeprecatedInt32InOneof) hash ^= DeprecatedInt32InOneof.GetHashCode();
- hash ^= (int) oneofFieldsCase_;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasDeprecatedInt32) {
- output.WriteRawTag(8);
- output.WriteInt32(DeprecatedInt32);
- }
- if (HasDeprecatedInt32InOneof) {
- output.WriteRawTag(16);
- output.WriteInt32(DeprecatedInt32InOneof);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasDeprecatedInt32) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeprecatedInt32);
- }
- if (HasDeprecatedInt32InOneof) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeprecatedInt32InOneof);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestDeprecatedFields other) {
- if (other == null) {
- return;
- }
- if (other.HasDeprecatedInt32) {
- DeprecatedInt32 = other.DeprecatedInt32;
- }
- switch (other.OneofFieldsCase) {
- case OneofFieldsOneofCase.DeprecatedInt32InOneof:
- DeprecatedInt32InOneof = other.DeprecatedInt32InOneof;
- break;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- DeprecatedInt32 = input.ReadInt32();
- break;
- }
- case 16: {
- DeprecatedInt32InOneof = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- [global::System.ObsoleteAttribute]
- public sealed partial class TestDeprecatedMessage : pb::IMessage<TestDeprecatedMessage> {
- private static readonly pb::MessageParser<TestDeprecatedMessage> _parser = new pb::MessageParser<TestDeprecatedMessage>(() => new TestDeprecatedMessage());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestDeprecatedMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[3]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestDeprecatedMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestDeprecatedMessage(TestDeprecatedMessage other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestDeprecatedMessage Clone() {
- return new TestDeprecatedMessage(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestDeprecatedMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestDeprecatedMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestDeprecatedMessage other) {
- if (other == null) {
- return;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- }
- }
- }
- }
- /// <summary>
- /// Define these after TestAllTypes to make sure the compiler can handle
- /// that.
- /// </summary>
- public sealed partial class ForeignMessage : pb::IMessage<ForeignMessage> {
- private static readonly pb::MessageParser<ForeignMessage> _parser = new pb::MessageParser<ForeignMessage>(() => new ForeignMessage());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ForeignMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[4]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ForeignMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ForeignMessage(ForeignMessage other) : this() {
- _hasBits0 = other._hasBits0;
- c_ = other.c_;
- d_ = other.d_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ForeignMessage Clone() {
- return new ForeignMessage(this);
- }
- /// <summary>Field number for the "c" field.</summary>
- public const int CFieldNumber = 1;
- private readonly static int CDefaultValue = 0;
- private int c_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int C {
- get { if ((_hasBits0 & 1) != 0) { return c_; } else { return CDefaultValue; } }
- set {
- _hasBits0 |= 1;
- c_ = value;
- }
- }
- /// <summary>Gets whether the "c" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasC {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "c" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearC() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "d" field.</summary>
- public const int DFieldNumber = 2;
- private readonly static int DDefaultValue = 0;
- private int d_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int D {
- get { if ((_hasBits0 & 2) != 0) { return d_; } else { return DDefaultValue; } }
- set {
- _hasBits0 |= 2;
- d_ = value;
- }
- }
- /// <summary>Gets whether the "d" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasD {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// <summary>Clears the value of the "d" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearD() {
- _hasBits0 &= ~2;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ForeignMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ForeignMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (C != other.C) return false;
- if (D != other.D) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasC) hash ^= C.GetHashCode();
- if (HasD) hash ^= D.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasC) {
- output.WriteRawTag(8);
- output.WriteInt32(C);
- }
- if (HasD) {
- output.WriteRawTag(16);
- output.WriteInt32(D);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasC) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(C);
- }
- if (HasD) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(D);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ForeignMessage other) {
- if (other == null) {
- return;
- }
- if (other.HasC) {
- C = other.C;
- }
- if (other.HasD) {
- D = other.D;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- C = input.ReadInt32();
- break;
- }
- case 16: {
- D = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- public sealed partial class TestReservedFields : pb::IMessage<TestReservedFields> {
- private static readonly pb::MessageParser<TestReservedFields> _parser = new pb::MessageParser<TestReservedFields>(() => new TestReservedFields());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestReservedFields> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[5]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestReservedFields() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestReservedFields(TestReservedFields other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestReservedFields Clone() {
- return new TestReservedFields(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestReservedFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestReservedFields other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestReservedFields other) {
- if (other == null) {
- return;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- }
- }
- }
- }
- public sealed partial class TestAllExtensions : pb::IExtendableMessage<TestAllExtensions> {
- private static readonly pb::MessageParser<TestAllExtensions> _parser = new pb::MessageParser<TestAllExtensions>(() => new TestAllExtensions());
- private pb::UnknownFieldSet _unknownFields;
- private pb::ExtensionSet<TestAllExtensions> _extensions;
- private pb::ExtensionSet<TestAllExtensions> _Extensions { get { return _extensions; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestAllExtensions> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[6]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestAllExtensions() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestAllExtensions(TestAllExtensions other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- _extensions = pb::ExtensionSet.Clone(other._extensions);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestAllExtensions Clone() {
- return new TestAllExtensions(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestAllExtensions);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestAllExtensions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!Equals(_extensions, other._extensions)) {
- return false;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_extensions != null) {
- hash ^= _extensions.GetHashCode();
- }
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (_extensions != null) {
- _extensions.WriteTo(output);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_extensions != null) {
- size += _extensions.CalculateSize();
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestAllExtensions other) {
- if (other == null) {
- return;
- }
- pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- }
- break;
- }
- }
- }
- public TValue GetExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestAllExtensions, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestAllExtensions, TValue> extension) {
- return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
- }
- public void SetExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension, TValue value) {
- pb::ExtensionSet.Set(ref _extensions, extension, value);
- }
- public bool HasExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension) {
- return pb::ExtensionSet.Has(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::Extension<TestAllExtensions, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::RepeatedExtension<TestAllExtensions, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- }
- public sealed partial class OptionalGroup_extension : pb::IMessage<OptionalGroup_extension> {
- private static readonly pb::MessageParser<OptionalGroup_extension> _parser = new pb::MessageParser<OptionalGroup_extension>(() => new OptionalGroup_extension());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<OptionalGroup_extension> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[7]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup_extension() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup_extension(OptionalGroup_extension other) : this() {
- _hasBits0 = other._hasBits0;
- a_ = other.a_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup_extension Clone() {
- return new OptionalGroup_extension(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 17;
- private readonly static int ADefaultValue = 0;
- private int a_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int A {
- get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
- set {
- _hasBits0 |= 1;
- a_ = value;
- }
- }
- /// <summary>Gets whether the "a" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasA {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "a" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearA() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as OptionalGroup_extension);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(OptionalGroup_extension other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasA) hash ^= A.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasA) {
- output.WriteRawTag(136, 1);
- output.WriteInt32(A);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasA) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(OptionalGroup_extension other) {
- if (other == null) {
- return;
- }
- if (other.HasA) {
- A = other.A;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 132:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 136: {
- A = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- public sealed partial class RepeatedGroup_extension : pb::IMessage<RepeatedGroup_extension> {
- private static readonly pb::MessageParser<RepeatedGroup_extension> _parser = new pb::MessageParser<RepeatedGroup_extension>(() => new RepeatedGroup_extension());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<RepeatedGroup_extension> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[8]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RepeatedGroup_extension() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RepeatedGroup_extension(RepeatedGroup_extension other) : this() {
- _hasBits0 = other._hasBits0;
- a_ = other.a_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RepeatedGroup_extension Clone() {
- return new RepeatedGroup_extension(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 47;
- private readonly static int ADefaultValue = 0;
- private int a_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int A {
- get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
- set {
- _hasBits0 |= 1;
- a_ = value;
- }
- }
- /// <summary>Gets whether the "a" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasA {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "a" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearA() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as RepeatedGroup_extension);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(RepeatedGroup_extension other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasA) hash ^= A.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasA) {
- output.WriteRawTag(248, 2);
- output.WriteInt32(A);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasA) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(RepeatedGroup_extension other) {
- if (other == null) {
- return;
- }
- if (other.HasA) {
- A = other.A;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 372:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 376: {
- A = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- public sealed partial class TestGroup : pb::IMessage<TestGroup> {
- private static readonly pb::MessageParser<TestGroup> _parser = new pb::MessageParser<TestGroup>(() => new TestGroup());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestGroup> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[9]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestGroup() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestGroup(TestGroup other) : this() {
- _hasBits0 = other._hasBits0;
- optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
- optionalForeignEnum_ = other.optionalForeignEnum_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestGroup Clone() {
- return new TestGroup(this);
- }
- /// <summary>Field number for the "optionalgroup" field.</summary>
- public const int OptionalGroupFieldNumber = 16;
- private global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup optionalGroup_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup OptionalGroup {
- get { return optionalGroup_; }
- set {
- optionalGroup_ = value;
- }
- }
- /// <summary>Gets whether the optionalgroup field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalGroup {
- get { return optionalGroup_ != null; }
- }
- /// <summary>Clears the value of the optionalgroup field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalGroup() {
- optionalGroup_ = null;
- }
- /// <summary>Field number for the "optional_foreign_enum" field.</summary>
- public const int OptionalForeignEnumFieldNumber = 22;
- private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
- private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum optionalForeignEnum_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalForeignEnum {
- get { if ((_hasBits0 & 1) != 0) { return optionalForeignEnum_; } else { return OptionalForeignEnumDefaultValue; } }
- set {
- _hasBits0 |= 1;
- optionalForeignEnum_ = value;
- }
- }
- /// <summary>Gets whether the "optional_foreign_enum" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalForeignEnum {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "optional_foreign_enum" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalForeignEnum() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestGroup);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestGroup other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
- if (OptionalForeignEnum != other.OptionalForeignEnum) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
- if (HasOptionalForeignEnum) hash ^= OptionalForeignEnum.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasOptionalGroup) {
- output.WriteRawTag(131, 1);
- output.WriteGroup(OptionalGroup);
- output.WriteRawTag(132, 1);
- }
- if (HasOptionalForeignEnum) {
- output.WriteRawTag(176, 1);
- output.WriteEnum((int) OptionalForeignEnum);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasOptionalGroup) {
- size += 4 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
- }
- if (HasOptionalForeignEnum) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestGroup other) {
- if (other == null) {
- return;
- }
- if (other.HasOptionalGroup) {
- if (!HasOptionalGroup) {
- OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup();
- }
- OptionalGroup.MergeFrom(other.OptionalGroup);
- }
- if (other.HasOptionalForeignEnum) {
- OptionalForeignEnum = other.OptionalForeignEnum;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 131: {
- if (!HasOptionalGroup) {
- OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestGroup.Types.OptionalGroup();
- }
- input.ReadGroup(OptionalGroup);
- break;
- }
- case 176: {
- OptionalForeignEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestGroup message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup> {
- private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestGroup.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup(OptionalGroup other) : this() {
- _hasBits0 = other._hasBits0;
- a_ = other.a_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup Clone() {
- return new OptionalGroup(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 17;
- private readonly static int ADefaultValue = 0;
- private int a_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int A {
- get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
- set {
- _hasBits0 |= 1;
- a_ = value;
- }
- }
- /// <summary>Gets whether the "a" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasA {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "a" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearA() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as OptionalGroup);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(OptionalGroup other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasA) hash ^= A.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasA) {
- output.WriteRawTag(136, 1);
- output.WriteInt32(A);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasA) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(OptionalGroup other) {
- if (other == null) {
- return;
- }
- if (other.HasA) {
- A = other.A;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 132:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 136: {
- A = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- public sealed partial class TestGroupExtension : pb::IExtendableMessage<TestGroupExtension> {
- private static readonly pb::MessageParser<TestGroupExtension> _parser = new pb::MessageParser<TestGroupExtension>(() => new TestGroupExtension());
- private pb::UnknownFieldSet _unknownFields;
- private pb::ExtensionSet<TestGroupExtension> _extensions;
- private pb::ExtensionSet<TestGroupExtension> _Extensions { get { return _extensions; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestGroupExtension> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[10]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestGroupExtension() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestGroupExtension(TestGroupExtension other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- _extensions = pb::ExtensionSet.Clone(other._extensions);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestGroupExtension Clone() {
- return new TestGroupExtension(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestGroupExtension);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestGroupExtension other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!Equals(_extensions, other._extensions)) {
- return false;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_extensions != null) {
- hash ^= _extensions.GetHashCode();
- }
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (_extensions != null) {
- _extensions.WriteTo(output);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_extensions != null) {
- size += _extensions.CalculateSize();
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestGroupExtension other) {
- if (other == null) {
- return;
- }
- pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- }
- break;
- }
- }
- }
- public TValue GetExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestGroupExtension, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestGroupExtension, TValue> extension) {
- return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
- }
- public void SetExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension, TValue value) {
- pb::ExtensionSet.Set(ref _extensions, extension, value);
- }
- public bool HasExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension) {
- return pb::ExtensionSet.Has(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::Extension<TestGroupExtension, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::RepeatedExtension<TestGroupExtension, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- }
- public sealed partial class TestNestedExtension : pb::IMessage<TestNestedExtension> {
- private static readonly pb::MessageParser<TestNestedExtension> _parser = new pb::MessageParser<TestNestedExtension>(() => new TestNestedExtension());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestNestedExtension> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[11]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestNestedExtension() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestNestedExtension(TestNestedExtension other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestNestedExtension Clone() {
- return new TestNestedExtension(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestNestedExtension);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestNestedExtension other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestNestedExtension other) {
- if (other == null) {
- return;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestNestedExtension message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class OptionalGroup_extension : pb::IMessage<OptionalGroup_extension> {
- private static readonly pb::MessageParser<OptionalGroup_extension> _parser = new pb::MessageParser<OptionalGroup_extension>(() => new OptionalGroup_extension());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<OptionalGroup_extension> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup_extension() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup_extension(OptionalGroup_extension other) : this() {
- _hasBits0 = other._hasBits0;
- a_ = other.a_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup_extension Clone() {
- return new OptionalGroup_extension(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 17;
- private readonly static int ADefaultValue = 0;
- private int a_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int A {
- get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
- set {
- _hasBits0 |= 1;
- a_ = value;
- }
- }
- /// <summary>Gets whether the "a" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasA {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "a" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearA() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as OptionalGroup_extension);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(OptionalGroup_extension other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasA) hash ^= A.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasA) {
- output.WriteRawTag(136, 1);
- output.WriteInt32(A);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasA) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(A);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(OptionalGroup_extension other) {
- if (other == null) {
- return;
- }
- if (other.HasA) {
- A = other.A;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 132:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 136: {
- A = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- #region Extensions
- /// <summary>Container for extensions for other messages declared in the TestNestedExtension message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Extensions {
- /// <summary>
- /// Check for bug where string extensions declared in tested scope did not
- /// compile.
- /// </summary>
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> Test =
- 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)));
- /// <summary>
- /// Used to test if generated extension name is correct when there are
- /// underscores.
- /// </summary>
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string> NestedStringExtension =
- new pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, string>(1003, pb::FieldCodec.ForString(8026, ""));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension, global::Google.Protobuf.TestProtos.Proto2.TestNestedExtension.Types.OptionalGroup_extension> OptionalGroupExtension =
- 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));
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestGroupExtension, global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> OptionalForeignEnumExtension =
- 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));
- }
- #endregion
- }
- /// <summary>
- /// We have separate messages for testing required fields because it's
- /// annoying to have to fill in required fields in TestProto in order to
- /// do anything with it. Note that we don't need to test every type of
- /// required filed because the code output is basically identical to
- /// optional fields for all types.
- /// </summary>
- public sealed partial class TestRequired : pb::IMessage<TestRequired> {
- private static readonly pb::MessageParser<TestRequired> _parser = new pb::MessageParser<TestRequired>(() => new TestRequired());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- private int _hasBits1;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestRequired> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[12]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRequired() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRequired(TestRequired other) : this() {
- _hasBits0 = other._hasBits0;
- _hasBits1 = other._hasBits1;
- a_ = other.a_;
- dummy2_ = other.dummy2_;
- b_ = other.b_;
- dummy4_ = other.dummy4_;
- dummy5_ = other.dummy5_;
- dummy6_ = other.dummy6_;
- dummy7_ = other.dummy7_;
- dummy8_ = other.dummy8_;
- dummy9_ = other.dummy9_;
- dummy10_ = other.dummy10_;
- dummy11_ = other.dummy11_;
- dummy12_ = other.dummy12_;
- dummy13_ = other.dummy13_;
- dummy14_ = other.dummy14_;
- dummy15_ = other.dummy15_;
- dummy16_ = other.dummy16_;
- dummy17_ = other.dummy17_;
- dummy18_ = other.dummy18_;
- dummy19_ = other.dummy19_;
- dummy20_ = other.dummy20_;
- dummy21_ = other.dummy21_;
- dummy22_ = other.dummy22_;
- dummy23_ = other.dummy23_;
- dummy24_ = other.dummy24_;
- dummy25_ = other.dummy25_;
- dummy26_ = other.dummy26_;
- dummy27_ = other.dummy27_;
- dummy28_ = other.dummy28_;
- dummy29_ = other.dummy29_;
- dummy30_ = other.dummy30_;
- dummy31_ = other.dummy31_;
- dummy32_ = other.dummy32_;
- c_ = other.c_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRequired Clone() {
- return new TestRequired(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 1;
- private readonly static int ADefaultValue = 0;
- private int a_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int A {
- get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
- set {
- _hasBits0 |= 1;
- a_ = value;
- }
- }
- /// <summary>Gets whether the "a" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasA {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "a" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearA() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "dummy2" field.</summary>
- public const int Dummy2FieldNumber = 2;
- private readonly static int Dummy2DefaultValue = 0;
- private int dummy2_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy2 {
- get { if ((_hasBits0 & 2) != 0) { return dummy2_; } else { return Dummy2DefaultValue; } }
- set {
- _hasBits0 |= 2;
- dummy2_ = value;
- }
- }
- /// <summary>Gets whether the "dummy2" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy2 {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// <summary>Clears the value of the "dummy2" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy2() {
- _hasBits0 &= ~2;
- }
- /// <summary>Field number for the "b" field.</summary>
- public const int BFieldNumber = 3;
- private readonly static int BDefaultValue = 0;
- private int b_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int B {
- get { if ((_hasBits0 & 4) != 0) { return b_; } else { return BDefaultValue; } }
- set {
- _hasBits0 |= 4;
- b_ = value;
- }
- }
- /// <summary>Gets whether the "b" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasB {
- get { return (_hasBits0 & 4) != 0; }
- }
- /// <summary>Clears the value of the "b" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearB() {
- _hasBits0 &= ~4;
- }
- /// <summary>Field number for the "dummy4" field.</summary>
- public const int Dummy4FieldNumber = 4;
- private readonly static int Dummy4DefaultValue = 0;
- private int dummy4_;
- /// <summary>
- /// Pad the field count to 32 so that we can test that IsInitialized()
- /// properly checks multiple elements of has_bits_.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy4 {
- get { if ((_hasBits0 & 8) != 0) { return dummy4_; } else { return Dummy4DefaultValue; } }
- set {
- _hasBits0 |= 8;
- dummy4_ = value;
- }
- }
- /// <summary>Gets whether the "dummy4" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy4 {
- get { return (_hasBits0 & 8) != 0; }
- }
- /// <summary>Clears the value of the "dummy4" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy4() {
- _hasBits0 &= ~8;
- }
- /// <summary>Field number for the "dummy5" field.</summary>
- public const int Dummy5FieldNumber = 5;
- private readonly static int Dummy5DefaultValue = 0;
- private int dummy5_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy5 {
- get { if ((_hasBits0 & 16) != 0) { return dummy5_; } else { return Dummy5DefaultValue; } }
- set {
- _hasBits0 |= 16;
- dummy5_ = value;
- }
- }
- /// <summary>Gets whether the "dummy5" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy5 {
- get { return (_hasBits0 & 16) != 0; }
- }
- /// <summary>Clears the value of the "dummy5" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy5() {
- _hasBits0 &= ~16;
- }
- /// <summary>Field number for the "dummy6" field.</summary>
- public const int Dummy6FieldNumber = 6;
- private readonly static int Dummy6DefaultValue = 0;
- private int dummy6_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy6 {
- get { if ((_hasBits0 & 32) != 0) { return dummy6_; } else { return Dummy6DefaultValue; } }
- set {
- _hasBits0 |= 32;
- dummy6_ = value;
- }
- }
- /// <summary>Gets whether the "dummy6" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy6 {
- get { return (_hasBits0 & 32) != 0; }
- }
- /// <summary>Clears the value of the "dummy6" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy6() {
- _hasBits0 &= ~32;
- }
- /// <summary>Field number for the "dummy7" field.</summary>
- public const int Dummy7FieldNumber = 7;
- private readonly static int Dummy7DefaultValue = 0;
- private int dummy7_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy7 {
- get { if ((_hasBits0 & 64) != 0) { return dummy7_; } else { return Dummy7DefaultValue; } }
- set {
- _hasBits0 |= 64;
- dummy7_ = value;
- }
- }
- /// <summary>Gets whether the "dummy7" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy7 {
- get { return (_hasBits0 & 64) != 0; }
- }
- /// <summary>Clears the value of the "dummy7" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy7() {
- _hasBits0 &= ~64;
- }
- /// <summary>Field number for the "dummy8" field.</summary>
- public const int Dummy8FieldNumber = 8;
- private readonly static int Dummy8DefaultValue = 0;
- private int dummy8_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy8 {
- get { if ((_hasBits0 & 128) != 0) { return dummy8_; } else { return Dummy8DefaultValue; } }
- set {
- _hasBits0 |= 128;
- dummy8_ = value;
- }
- }
- /// <summary>Gets whether the "dummy8" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy8 {
- get { return (_hasBits0 & 128) != 0; }
- }
- /// <summary>Clears the value of the "dummy8" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy8() {
- _hasBits0 &= ~128;
- }
- /// <summary>Field number for the "dummy9" field.</summary>
- public const int Dummy9FieldNumber = 9;
- private readonly static int Dummy9DefaultValue = 0;
- private int dummy9_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy9 {
- get { if ((_hasBits0 & 256) != 0) { return dummy9_; } else { return Dummy9DefaultValue; } }
- set {
- _hasBits0 |= 256;
- dummy9_ = value;
- }
- }
- /// <summary>Gets whether the "dummy9" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy9 {
- get { return (_hasBits0 & 256) != 0; }
- }
- /// <summary>Clears the value of the "dummy9" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy9() {
- _hasBits0 &= ~256;
- }
- /// <summary>Field number for the "dummy10" field.</summary>
- public const int Dummy10FieldNumber = 10;
- private readonly static int Dummy10DefaultValue = 0;
- private int dummy10_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy10 {
- get { if ((_hasBits0 & 512) != 0) { return dummy10_; } else { return Dummy10DefaultValue; } }
- set {
- _hasBits0 |= 512;
- dummy10_ = value;
- }
- }
- /// <summary>Gets whether the "dummy10" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy10 {
- get { return (_hasBits0 & 512) != 0; }
- }
- /// <summary>Clears the value of the "dummy10" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy10() {
- _hasBits0 &= ~512;
- }
- /// <summary>Field number for the "dummy11" field.</summary>
- public const int Dummy11FieldNumber = 11;
- private readonly static int Dummy11DefaultValue = 0;
- private int dummy11_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy11 {
- get { if ((_hasBits0 & 1024) != 0) { return dummy11_; } else { return Dummy11DefaultValue; } }
- set {
- _hasBits0 |= 1024;
- dummy11_ = value;
- }
- }
- /// <summary>Gets whether the "dummy11" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy11 {
- get { return (_hasBits0 & 1024) != 0; }
- }
- /// <summary>Clears the value of the "dummy11" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy11() {
- _hasBits0 &= ~1024;
- }
- /// <summary>Field number for the "dummy12" field.</summary>
- public const int Dummy12FieldNumber = 12;
- private readonly static int Dummy12DefaultValue = 0;
- private int dummy12_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy12 {
- get { if ((_hasBits0 & 2048) != 0) { return dummy12_; } else { return Dummy12DefaultValue; } }
- set {
- _hasBits0 |= 2048;
- dummy12_ = value;
- }
- }
- /// <summary>Gets whether the "dummy12" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy12 {
- get { return (_hasBits0 & 2048) != 0; }
- }
- /// <summary>Clears the value of the "dummy12" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy12() {
- _hasBits0 &= ~2048;
- }
- /// <summary>Field number for the "dummy13" field.</summary>
- public const int Dummy13FieldNumber = 13;
- private readonly static int Dummy13DefaultValue = 0;
- private int dummy13_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy13 {
- get { if ((_hasBits0 & 4096) != 0) { return dummy13_; } else { return Dummy13DefaultValue; } }
- set {
- _hasBits0 |= 4096;
- dummy13_ = value;
- }
- }
- /// <summary>Gets whether the "dummy13" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy13 {
- get { return (_hasBits0 & 4096) != 0; }
- }
- /// <summary>Clears the value of the "dummy13" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy13() {
- _hasBits0 &= ~4096;
- }
- /// <summary>Field number for the "dummy14" field.</summary>
- public const int Dummy14FieldNumber = 14;
- private readonly static int Dummy14DefaultValue = 0;
- private int dummy14_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy14 {
- get { if ((_hasBits0 & 8192) != 0) { return dummy14_; } else { return Dummy14DefaultValue; } }
- set {
- _hasBits0 |= 8192;
- dummy14_ = value;
- }
- }
- /// <summary>Gets whether the "dummy14" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy14 {
- get { return (_hasBits0 & 8192) != 0; }
- }
- /// <summary>Clears the value of the "dummy14" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy14() {
- _hasBits0 &= ~8192;
- }
- /// <summary>Field number for the "dummy15" field.</summary>
- public const int Dummy15FieldNumber = 15;
- private readonly static int Dummy15DefaultValue = 0;
- private int dummy15_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy15 {
- get { if ((_hasBits0 & 16384) != 0) { return dummy15_; } else { return Dummy15DefaultValue; } }
- set {
- _hasBits0 |= 16384;
- dummy15_ = value;
- }
- }
- /// <summary>Gets whether the "dummy15" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy15 {
- get { return (_hasBits0 & 16384) != 0; }
- }
- /// <summary>Clears the value of the "dummy15" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy15() {
- _hasBits0 &= ~16384;
- }
- /// <summary>Field number for the "dummy16" field.</summary>
- public const int Dummy16FieldNumber = 16;
- private readonly static int Dummy16DefaultValue = 0;
- private int dummy16_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy16 {
- get { if ((_hasBits0 & 32768) != 0) { return dummy16_; } else { return Dummy16DefaultValue; } }
- set {
- _hasBits0 |= 32768;
- dummy16_ = value;
- }
- }
- /// <summary>Gets whether the "dummy16" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy16 {
- get { return (_hasBits0 & 32768) != 0; }
- }
- /// <summary>Clears the value of the "dummy16" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy16() {
- _hasBits0 &= ~32768;
- }
- /// <summary>Field number for the "dummy17" field.</summary>
- public const int Dummy17FieldNumber = 17;
- private readonly static int Dummy17DefaultValue = 0;
- private int dummy17_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy17 {
- get { if ((_hasBits0 & 65536) != 0) { return dummy17_; } else { return Dummy17DefaultValue; } }
- set {
- _hasBits0 |= 65536;
- dummy17_ = value;
- }
- }
- /// <summary>Gets whether the "dummy17" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy17 {
- get { return (_hasBits0 & 65536) != 0; }
- }
- /// <summary>Clears the value of the "dummy17" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy17() {
- _hasBits0 &= ~65536;
- }
- /// <summary>Field number for the "dummy18" field.</summary>
- public const int Dummy18FieldNumber = 18;
- private readonly static int Dummy18DefaultValue = 0;
- private int dummy18_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy18 {
- get { if ((_hasBits0 & 131072) != 0) { return dummy18_; } else { return Dummy18DefaultValue; } }
- set {
- _hasBits0 |= 131072;
- dummy18_ = value;
- }
- }
- /// <summary>Gets whether the "dummy18" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy18 {
- get { return (_hasBits0 & 131072) != 0; }
- }
- /// <summary>Clears the value of the "dummy18" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy18() {
- _hasBits0 &= ~131072;
- }
- /// <summary>Field number for the "dummy19" field.</summary>
- public const int Dummy19FieldNumber = 19;
- private readonly static int Dummy19DefaultValue = 0;
- private int dummy19_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy19 {
- get { if ((_hasBits0 & 262144) != 0) { return dummy19_; } else { return Dummy19DefaultValue; } }
- set {
- _hasBits0 |= 262144;
- dummy19_ = value;
- }
- }
- /// <summary>Gets whether the "dummy19" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy19 {
- get { return (_hasBits0 & 262144) != 0; }
- }
- /// <summary>Clears the value of the "dummy19" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy19() {
- _hasBits0 &= ~262144;
- }
- /// <summary>Field number for the "dummy20" field.</summary>
- public const int Dummy20FieldNumber = 20;
- private readonly static int Dummy20DefaultValue = 0;
- private int dummy20_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy20 {
- get { if ((_hasBits0 & 524288) != 0) { return dummy20_; } else { return Dummy20DefaultValue; } }
- set {
- _hasBits0 |= 524288;
- dummy20_ = value;
- }
- }
- /// <summary>Gets whether the "dummy20" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy20 {
- get { return (_hasBits0 & 524288) != 0; }
- }
- /// <summary>Clears the value of the "dummy20" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy20() {
- _hasBits0 &= ~524288;
- }
- /// <summary>Field number for the "dummy21" field.</summary>
- public const int Dummy21FieldNumber = 21;
- private readonly static int Dummy21DefaultValue = 0;
- private int dummy21_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy21 {
- get { if ((_hasBits0 & 1048576) != 0) { return dummy21_; } else { return Dummy21DefaultValue; } }
- set {
- _hasBits0 |= 1048576;
- dummy21_ = value;
- }
- }
- /// <summary>Gets whether the "dummy21" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy21 {
- get { return (_hasBits0 & 1048576) != 0; }
- }
- /// <summary>Clears the value of the "dummy21" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy21() {
- _hasBits0 &= ~1048576;
- }
- /// <summary>Field number for the "dummy22" field.</summary>
- public const int Dummy22FieldNumber = 22;
- private readonly static int Dummy22DefaultValue = 0;
- private int dummy22_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy22 {
- get { if ((_hasBits0 & 2097152) != 0) { return dummy22_; } else { return Dummy22DefaultValue; } }
- set {
- _hasBits0 |= 2097152;
- dummy22_ = value;
- }
- }
- /// <summary>Gets whether the "dummy22" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy22 {
- get { return (_hasBits0 & 2097152) != 0; }
- }
- /// <summary>Clears the value of the "dummy22" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy22() {
- _hasBits0 &= ~2097152;
- }
- /// <summary>Field number for the "dummy23" field.</summary>
- public const int Dummy23FieldNumber = 23;
- private readonly static int Dummy23DefaultValue = 0;
- private int dummy23_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy23 {
- get { if ((_hasBits0 & 4194304) != 0) { return dummy23_; } else { return Dummy23DefaultValue; } }
- set {
- _hasBits0 |= 4194304;
- dummy23_ = value;
- }
- }
- /// <summary>Gets whether the "dummy23" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy23 {
- get { return (_hasBits0 & 4194304) != 0; }
- }
- /// <summary>Clears the value of the "dummy23" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy23() {
- _hasBits0 &= ~4194304;
- }
- /// <summary>Field number for the "dummy24" field.</summary>
- public const int Dummy24FieldNumber = 24;
- private readonly static int Dummy24DefaultValue = 0;
- private int dummy24_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy24 {
- get { if ((_hasBits0 & 8388608) != 0) { return dummy24_; } else { return Dummy24DefaultValue; } }
- set {
- _hasBits0 |= 8388608;
- dummy24_ = value;
- }
- }
- /// <summary>Gets whether the "dummy24" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy24 {
- get { return (_hasBits0 & 8388608) != 0; }
- }
- /// <summary>Clears the value of the "dummy24" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy24() {
- _hasBits0 &= ~8388608;
- }
- /// <summary>Field number for the "dummy25" field.</summary>
- public const int Dummy25FieldNumber = 25;
- private readonly static int Dummy25DefaultValue = 0;
- private int dummy25_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy25 {
- get { if ((_hasBits0 & 16777216) != 0) { return dummy25_; } else { return Dummy25DefaultValue; } }
- set {
- _hasBits0 |= 16777216;
- dummy25_ = value;
- }
- }
- /// <summary>Gets whether the "dummy25" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy25 {
- get { return (_hasBits0 & 16777216) != 0; }
- }
- /// <summary>Clears the value of the "dummy25" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy25() {
- _hasBits0 &= ~16777216;
- }
- /// <summary>Field number for the "dummy26" field.</summary>
- public const int Dummy26FieldNumber = 26;
- private readonly static int Dummy26DefaultValue = 0;
- private int dummy26_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy26 {
- get { if ((_hasBits0 & 33554432) != 0) { return dummy26_; } else { return Dummy26DefaultValue; } }
- set {
- _hasBits0 |= 33554432;
- dummy26_ = value;
- }
- }
- /// <summary>Gets whether the "dummy26" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy26 {
- get { return (_hasBits0 & 33554432) != 0; }
- }
- /// <summary>Clears the value of the "dummy26" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy26() {
- _hasBits0 &= ~33554432;
- }
- /// <summary>Field number for the "dummy27" field.</summary>
- public const int Dummy27FieldNumber = 27;
- private readonly static int Dummy27DefaultValue = 0;
- private int dummy27_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy27 {
- get { if ((_hasBits0 & 67108864) != 0) { return dummy27_; } else { return Dummy27DefaultValue; } }
- set {
- _hasBits0 |= 67108864;
- dummy27_ = value;
- }
- }
- /// <summary>Gets whether the "dummy27" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy27 {
- get { return (_hasBits0 & 67108864) != 0; }
- }
- /// <summary>Clears the value of the "dummy27" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy27() {
- _hasBits0 &= ~67108864;
- }
- /// <summary>Field number for the "dummy28" field.</summary>
- public const int Dummy28FieldNumber = 28;
- private readonly static int Dummy28DefaultValue = 0;
- private int dummy28_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy28 {
- get { if ((_hasBits0 & 134217728) != 0) { return dummy28_; } else { return Dummy28DefaultValue; } }
- set {
- _hasBits0 |= 134217728;
- dummy28_ = value;
- }
- }
- /// <summary>Gets whether the "dummy28" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy28 {
- get { return (_hasBits0 & 134217728) != 0; }
- }
- /// <summary>Clears the value of the "dummy28" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy28() {
- _hasBits0 &= ~134217728;
- }
- /// <summary>Field number for the "dummy29" field.</summary>
- public const int Dummy29FieldNumber = 29;
- private readonly static int Dummy29DefaultValue = 0;
- private int dummy29_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy29 {
- get { if ((_hasBits0 & 268435456) != 0) { return dummy29_; } else { return Dummy29DefaultValue; } }
- set {
- _hasBits0 |= 268435456;
- dummy29_ = value;
- }
- }
- /// <summary>Gets whether the "dummy29" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy29 {
- get { return (_hasBits0 & 268435456) != 0; }
- }
- /// <summary>Clears the value of the "dummy29" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy29() {
- _hasBits0 &= ~268435456;
- }
- /// <summary>Field number for the "dummy30" field.</summary>
- public const int Dummy30FieldNumber = 30;
- private readonly static int Dummy30DefaultValue = 0;
- private int dummy30_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy30 {
- get { if ((_hasBits0 & 536870912) != 0) { return dummy30_; } else { return Dummy30DefaultValue; } }
- set {
- _hasBits0 |= 536870912;
- dummy30_ = value;
- }
- }
- /// <summary>Gets whether the "dummy30" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy30 {
- get { return (_hasBits0 & 536870912) != 0; }
- }
- /// <summary>Clears the value of the "dummy30" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy30() {
- _hasBits0 &= ~536870912;
- }
- /// <summary>Field number for the "dummy31" field.</summary>
- public const int Dummy31FieldNumber = 31;
- private readonly static int Dummy31DefaultValue = 0;
- private int dummy31_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy31 {
- get { if ((_hasBits0 & 1073741824) != 0) { return dummy31_; } else { return Dummy31DefaultValue; } }
- set {
- _hasBits0 |= 1073741824;
- dummy31_ = value;
- }
- }
- /// <summary>Gets whether the "dummy31" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy31 {
- get { return (_hasBits0 & 1073741824) != 0; }
- }
- /// <summary>Clears the value of the "dummy31" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy31() {
- _hasBits0 &= ~1073741824;
- }
- /// <summary>Field number for the "dummy32" field.</summary>
- public const int Dummy32FieldNumber = 32;
- private readonly static int Dummy32DefaultValue = 0;
- private int dummy32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy32 {
- get { if ((_hasBits0 & -2147483648) != 0) { return dummy32_; } else { return Dummy32DefaultValue; } }
- set {
- _hasBits0 |= -2147483648;
- dummy32_ = value;
- }
- }
- /// <summary>Gets whether the "dummy32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy32 {
- get { return (_hasBits0 & -2147483648) != 0; }
- }
- /// <summary>Clears the value of the "dummy32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy32() {
- _hasBits0 &= ~-2147483648;
- }
- /// <summary>Field number for the "c" field.</summary>
- public const int CFieldNumber = 33;
- private readonly static int CDefaultValue = 0;
- private int c_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int C {
- get { if ((_hasBits1 & 1) != 0) { return c_; } else { return CDefaultValue; } }
- set {
- _hasBits1 |= 1;
- c_ = value;
- }
- }
- /// <summary>Gets whether the "c" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasC {
- get { return (_hasBits1 & 1) != 0; }
- }
- /// <summary>Clears the value of the "c" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearC() {
- _hasBits1 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestRequired);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestRequired other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- if (Dummy2 != other.Dummy2) return false;
- if (B != other.B) return false;
- if (Dummy4 != other.Dummy4) return false;
- if (Dummy5 != other.Dummy5) return false;
- if (Dummy6 != other.Dummy6) return false;
- if (Dummy7 != other.Dummy7) return false;
- if (Dummy8 != other.Dummy8) return false;
- if (Dummy9 != other.Dummy9) return false;
- if (Dummy10 != other.Dummy10) return false;
- if (Dummy11 != other.Dummy11) return false;
- if (Dummy12 != other.Dummy12) return false;
- if (Dummy13 != other.Dummy13) return false;
- if (Dummy14 != other.Dummy14) return false;
- if (Dummy15 != other.Dummy15) return false;
- if (Dummy16 != other.Dummy16) return false;
- if (Dummy17 != other.Dummy17) return false;
- if (Dummy18 != other.Dummy18) return false;
- if (Dummy19 != other.Dummy19) return false;
- if (Dummy20 != other.Dummy20) return false;
- if (Dummy21 != other.Dummy21) return false;
- if (Dummy22 != other.Dummy22) return false;
- if (Dummy23 != other.Dummy23) return false;
- if (Dummy24 != other.Dummy24) return false;
- if (Dummy25 != other.Dummy25) return false;
- if (Dummy26 != other.Dummy26) return false;
- if (Dummy27 != other.Dummy27) return false;
- if (Dummy28 != other.Dummy28) return false;
- if (Dummy29 != other.Dummy29) return false;
- if (Dummy30 != other.Dummy30) return false;
- if (Dummy31 != other.Dummy31) return false;
- if (Dummy32 != other.Dummy32) return false;
- if (C != other.C) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasA) hash ^= A.GetHashCode();
- if (HasDummy2) hash ^= Dummy2.GetHashCode();
- if (HasB) hash ^= B.GetHashCode();
- if (HasDummy4) hash ^= Dummy4.GetHashCode();
- if (HasDummy5) hash ^= Dummy5.GetHashCode();
- if (HasDummy6) hash ^= Dummy6.GetHashCode();
- if (HasDummy7) hash ^= Dummy7.GetHashCode();
- if (HasDummy8) hash ^= Dummy8.GetHashCode();
- if (HasDummy9) hash ^= Dummy9.GetHashCode();
- if (HasDummy10) hash ^= Dummy10.GetHashCode();
- if (HasDummy11) hash ^= Dummy11.GetHashCode();
- if (HasDummy12) hash ^= Dummy12.GetHashCode();
- if (HasDummy13) hash ^= Dummy13.GetHashCode();
- if (HasDummy14) hash ^= Dummy14.GetHashCode();
- if (HasDummy15) hash ^= Dummy15.GetHashCode();
- if (HasDummy16) hash ^= Dummy16.GetHashCode();
- if (HasDummy17) hash ^= Dummy17.GetHashCode();
- if (HasDummy18) hash ^= Dummy18.GetHashCode();
- if (HasDummy19) hash ^= Dummy19.GetHashCode();
- if (HasDummy20) hash ^= Dummy20.GetHashCode();
- if (HasDummy21) hash ^= Dummy21.GetHashCode();
- if (HasDummy22) hash ^= Dummy22.GetHashCode();
- if (HasDummy23) hash ^= Dummy23.GetHashCode();
- if (HasDummy24) hash ^= Dummy24.GetHashCode();
- if (HasDummy25) hash ^= Dummy25.GetHashCode();
- if (HasDummy26) hash ^= Dummy26.GetHashCode();
- if (HasDummy27) hash ^= Dummy27.GetHashCode();
- if (HasDummy28) hash ^= Dummy28.GetHashCode();
- if (HasDummy29) hash ^= Dummy29.GetHashCode();
- if (HasDummy30) hash ^= Dummy30.GetHashCode();
- if (HasDummy31) hash ^= Dummy31.GetHashCode();
- if (HasDummy32) hash ^= Dummy32.GetHashCode();
- if (HasC) hash ^= C.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasA) {
- output.WriteRawTag(8);
- output.WriteInt32(A);
- }
- if (HasDummy2) {
- output.WriteRawTag(16);
- output.WriteInt32(Dummy2);
- }
- if (HasB) {
- output.WriteRawTag(24);
- output.WriteInt32(B);
- }
- if (HasDummy4) {
- output.WriteRawTag(32);
- output.WriteInt32(Dummy4);
- }
- if (HasDummy5) {
- output.WriteRawTag(40);
- output.WriteInt32(Dummy5);
- }
- if (HasDummy6) {
- output.WriteRawTag(48);
- output.WriteInt32(Dummy6);
- }
- if (HasDummy7) {
- output.WriteRawTag(56);
- output.WriteInt32(Dummy7);
- }
- if (HasDummy8) {
- output.WriteRawTag(64);
- output.WriteInt32(Dummy8);
- }
- if (HasDummy9) {
- output.WriteRawTag(72);
- output.WriteInt32(Dummy9);
- }
- if (HasDummy10) {
- output.WriteRawTag(80);
- output.WriteInt32(Dummy10);
- }
- if (HasDummy11) {
- output.WriteRawTag(88);
- output.WriteInt32(Dummy11);
- }
- if (HasDummy12) {
- output.WriteRawTag(96);
- output.WriteInt32(Dummy12);
- }
- if (HasDummy13) {
- output.WriteRawTag(104);
- output.WriteInt32(Dummy13);
- }
- if (HasDummy14) {
- output.WriteRawTag(112);
- output.WriteInt32(Dummy14);
- }
- if (HasDummy15) {
- output.WriteRawTag(120);
- output.WriteInt32(Dummy15);
- }
- if (HasDummy16) {
- output.WriteRawTag(128, 1);
- output.WriteInt32(Dummy16);
- }
- if (HasDummy17) {
- output.WriteRawTag(136, 1);
- output.WriteInt32(Dummy17);
- }
- if (HasDummy18) {
- output.WriteRawTag(144, 1);
- output.WriteInt32(Dummy18);
- }
- if (HasDummy19) {
- output.WriteRawTag(152, 1);
- output.WriteInt32(Dummy19);
- }
- if (HasDummy20) {
- output.WriteRawTag(160, 1);
- output.WriteInt32(Dummy20);
- }
- if (HasDummy21) {
- output.WriteRawTag(168, 1);
- output.WriteInt32(Dummy21);
- }
- if (HasDummy22) {
- output.WriteRawTag(176, 1);
- output.WriteInt32(Dummy22);
- }
- if (HasDummy23) {
- output.WriteRawTag(184, 1);
- output.WriteInt32(Dummy23);
- }
- if (HasDummy24) {
- output.WriteRawTag(192, 1);
- output.WriteInt32(Dummy24);
- }
- if (HasDummy25) {
- output.WriteRawTag(200, 1);
- output.WriteInt32(Dummy25);
- }
- if (HasDummy26) {
- output.WriteRawTag(208, 1);
- output.WriteInt32(Dummy26);
- }
- if (HasDummy27) {
- output.WriteRawTag(216, 1);
- output.WriteInt32(Dummy27);
- }
- if (HasDummy28) {
- output.WriteRawTag(224, 1);
- output.WriteInt32(Dummy28);
- }
- if (HasDummy29) {
- output.WriteRawTag(232, 1);
- output.WriteInt32(Dummy29);
- }
- if (HasDummy30) {
- output.WriteRawTag(240, 1);
- output.WriteInt32(Dummy30);
- }
- if (HasDummy31) {
- output.WriteRawTag(248, 1);
- output.WriteInt32(Dummy31);
- }
- if (HasDummy32) {
- output.WriteRawTag(128, 2);
- output.WriteInt32(Dummy32);
- }
- if (HasC) {
- output.WriteRawTag(136, 2);
- output.WriteInt32(C);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasA) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
- }
- if (HasDummy2) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy2);
- }
- if (HasB) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(B);
- }
- if (HasDummy4) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy4);
- }
- if (HasDummy5) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy5);
- }
- if (HasDummy6) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy6);
- }
- if (HasDummy7) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy7);
- }
- if (HasDummy8) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy8);
- }
- if (HasDummy9) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy9);
- }
- if (HasDummy10) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy10);
- }
- if (HasDummy11) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy11);
- }
- if (HasDummy12) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy12);
- }
- if (HasDummy13) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy13);
- }
- if (HasDummy14) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy14);
- }
- if (HasDummy15) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy15);
- }
- if (HasDummy16) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy16);
- }
- if (HasDummy17) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy17);
- }
- if (HasDummy18) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy18);
- }
- if (HasDummy19) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy19);
- }
- if (HasDummy20) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy20);
- }
- if (HasDummy21) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy21);
- }
- if (HasDummy22) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy22);
- }
- if (HasDummy23) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy23);
- }
- if (HasDummy24) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy24);
- }
- if (HasDummy25) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy25);
- }
- if (HasDummy26) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy26);
- }
- if (HasDummy27) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy27);
- }
- if (HasDummy28) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy28);
- }
- if (HasDummy29) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy29);
- }
- if (HasDummy30) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy30);
- }
- if (HasDummy31) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy31);
- }
- if (HasDummy32) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Dummy32);
- }
- if (HasC) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(C);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestRequired other) {
- if (other == null) {
- return;
- }
- if (other.HasA) {
- A = other.A;
- }
- if (other.HasDummy2) {
- Dummy2 = other.Dummy2;
- }
- if (other.HasB) {
- B = other.B;
- }
- if (other.HasDummy4) {
- Dummy4 = other.Dummy4;
- }
- if (other.HasDummy5) {
- Dummy5 = other.Dummy5;
- }
- if (other.HasDummy6) {
- Dummy6 = other.Dummy6;
- }
- if (other.HasDummy7) {
- Dummy7 = other.Dummy7;
- }
- if (other.HasDummy8) {
- Dummy8 = other.Dummy8;
- }
- if (other.HasDummy9) {
- Dummy9 = other.Dummy9;
- }
- if (other.HasDummy10) {
- Dummy10 = other.Dummy10;
- }
- if (other.HasDummy11) {
- Dummy11 = other.Dummy11;
- }
- if (other.HasDummy12) {
- Dummy12 = other.Dummy12;
- }
- if (other.HasDummy13) {
- Dummy13 = other.Dummy13;
- }
- if (other.HasDummy14) {
- Dummy14 = other.Dummy14;
- }
- if (other.HasDummy15) {
- Dummy15 = other.Dummy15;
- }
- if (other.HasDummy16) {
- Dummy16 = other.Dummy16;
- }
- if (other.HasDummy17) {
- Dummy17 = other.Dummy17;
- }
- if (other.HasDummy18) {
- Dummy18 = other.Dummy18;
- }
- if (other.HasDummy19) {
- Dummy19 = other.Dummy19;
- }
- if (other.HasDummy20) {
- Dummy20 = other.Dummy20;
- }
- if (other.HasDummy21) {
- Dummy21 = other.Dummy21;
- }
- if (other.HasDummy22) {
- Dummy22 = other.Dummy22;
- }
- if (other.HasDummy23) {
- Dummy23 = other.Dummy23;
- }
- if (other.HasDummy24) {
- Dummy24 = other.Dummy24;
- }
- if (other.HasDummy25) {
- Dummy25 = other.Dummy25;
- }
- if (other.HasDummy26) {
- Dummy26 = other.Dummy26;
- }
- if (other.HasDummy27) {
- Dummy27 = other.Dummy27;
- }
- if (other.HasDummy28) {
- Dummy28 = other.Dummy28;
- }
- if (other.HasDummy29) {
- Dummy29 = other.Dummy29;
- }
- if (other.HasDummy30) {
- Dummy30 = other.Dummy30;
- }
- if (other.HasDummy31) {
- Dummy31 = other.Dummy31;
- }
- if (other.HasDummy32) {
- Dummy32 = other.Dummy32;
- }
- if (other.HasC) {
- C = other.C;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- A = input.ReadInt32();
- break;
- }
- case 16: {
- Dummy2 = input.ReadInt32();
- break;
- }
- case 24: {
- B = input.ReadInt32();
- break;
- }
- case 32: {
- Dummy4 = input.ReadInt32();
- break;
- }
- case 40: {
- Dummy5 = input.ReadInt32();
- break;
- }
- case 48: {
- Dummy6 = input.ReadInt32();
- break;
- }
- case 56: {
- Dummy7 = input.ReadInt32();
- break;
- }
- case 64: {
- Dummy8 = input.ReadInt32();
- break;
- }
- case 72: {
- Dummy9 = input.ReadInt32();
- break;
- }
- case 80: {
- Dummy10 = input.ReadInt32();
- break;
- }
- case 88: {
- Dummy11 = input.ReadInt32();
- break;
- }
- case 96: {
- Dummy12 = input.ReadInt32();
- break;
- }
- case 104: {
- Dummy13 = input.ReadInt32();
- break;
- }
- case 112: {
- Dummy14 = input.ReadInt32();
- break;
- }
- case 120: {
- Dummy15 = input.ReadInt32();
- break;
- }
- case 128: {
- Dummy16 = input.ReadInt32();
- break;
- }
- case 136: {
- Dummy17 = input.ReadInt32();
- break;
- }
- case 144: {
- Dummy18 = input.ReadInt32();
- break;
- }
- case 152: {
- Dummy19 = input.ReadInt32();
- break;
- }
- case 160: {
- Dummy20 = input.ReadInt32();
- break;
- }
- case 168: {
- Dummy21 = input.ReadInt32();
- break;
- }
- case 176: {
- Dummy22 = input.ReadInt32();
- break;
- }
- case 184: {
- Dummy23 = input.ReadInt32();
- break;
- }
- case 192: {
- Dummy24 = input.ReadInt32();
- break;
- }
- case 200: {
- Dummy25 = input.ReadInt32();
- break;
- }
- case 208: {
- Dummy26 = input.ReadInt32();
- break;
- }
- case 216: {
- Dummy27 = input.ReadInt32();
- break;
- }
- case 224: {
- Dummy28 = input.ReadInt32();
- break;
- }
- case 232: {
- Dummy29 = input.ReadInt32();
- break;
- }
- case 240: {
- Dummy30 = input.ReadInt32();
- break;
- }
- case 248: {
- Dummy31 = input.ReadInt32();
- break;
- }
- case 256: {
- Dummy32 = input.ReadInt32();
- break;
- }
- case 264: {
- C = input.ReadInt32();
- break;
- }
- }
- }
- }
- #region Extensions
- /// <summary>Container for extensions for other messages declared in the TestRequired message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Extensions {
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestRequired> Single =
- 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));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestAllExtensions, global::Google.Protobuf.TestProtos.Proto2.TestRequired> Multi =
- 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));
- }
- #endregion
- }
- public sealed partial class TestRequiredForeign : pb::IMessage<TestRequiredForeign> {
- private static readonly pb::MessageParser<TestRequiredForeign> _parser = new pb::MessageParser<TestRequiredForeign>(() => new TestRequiredForeign());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestRequiredForeign> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[13]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRequiredForeign() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRequiredForeign(TestRequiredForeign other) : this() {
- _hasBits0 = other._hasBits0;
- optionalMessage_ = other.optionalMessage_ != null ? other.optionalMessage_.Clone() : null;
- repeatedMessage_ = other.repeatedMessage_.Clone();
- dummy_ = other.dummy_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRequiredForeign Clone() {
- return new TestRequiredForeign(this);
- }
- /// <summary>Field number for the "optional_message" field.</summary>
- public const int OptionalMessageFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.Proto2.TestRequired optionalMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestRequired OptionalMessage {
- get { return optionalMessage_; }
- set {
- optionalMessage_ = value;
- }
- }
- /// <summary>Field number for the "repeated_message" field.</summary>
- public const int RepeatedMessageFieldNumber = 2;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestRequired> _repeated_repeatedMessage_codec
- = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> repeatedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> RepeatedMessage {
- get { return repeatedMessage_; }
- }
- /// <summary>Field number for the "dummy" field.</summary>
- public const int DummyFieldNumber = 3;
- private readonly static int DummyDefaultValue = 0;
- private int dummy_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Dummy {
- get { if ((_hasBits0 & 1) != 0) { return dummy_; } else { return DummyDefaultValue; } }
- set {
- _hasBits0 |= 1;
- dummy_ = value;
- }
- }
- /// <summary>Gets whether the "dummy" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDummy {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "dummy" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDummy() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestRequiredForeign);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestRequiredForeign other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(OptionalMessage, other.OptionalMessage)) return false;
- if(!repeatedMessage_.Equals(other.repeatedMessage_)) return false;
- if (Dummy != other.Dummy) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (optionalMessage_ != null) hash ^= OptionalMessage.GetHashCode();
- hash ^= repeatedMessage_.GetHashCode();
- if (HasDummy) hash ^= Dummy.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (optionalMessage_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(OptionalMessage);
- }
- repeatedMessage_.WriteTo(output, _repeated_repeatedMessage_codec);
- if (HasDummy) {
- output.WriteRawTag(24);
- output.WriteInt32(Dummy);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (optionalMessage_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalMessage);
- }
- size += repeatedMessage_.CalculateSize(_repeated_repeatedMessage_codec);
- if (HasDummy) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Dummy);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestRequiredForeign other) {
- if (other == null) {
- return;
- }
- if (other.optionalMessage_ != null) {
- if (optionalMessage_ == null) {
- OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
- }
- OptionalMessage.MergeFrom(other.OptionalMessage);
- }
- repeatedMessage_.Add(other.repeatedMessage_);
- if (other.HasDummy) {
- Dummy = other.Dummy;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (optionalMessage_ == null) {
- OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
- }
- input.ReadMessage(OptionalMessage);
- break;
- }
- case 18: {
- repeatedMessage_.AddEntriesFrom(input, _repeated_repeatedMessage_codec);
- break;
- }
- case 24: {
- Dummy = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- public sealed partial class TestRequiredMessage : pb::IMessage<TestRequiredMessage> {
- private static readonly pb::MessageParser<TestRequiredMessage> _parser = new pb::MessageParser<TestRequiredMessage>(() => new TestRequiredMessage());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestRequiredMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[14]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRequiredMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRequiredMessage(TestRequiredMessage other) : this() {
- optionalMessage_ = other.optionalMessage_ != null ? other.optionalMessage_.Clone() : null;
- repeatedMessage_ = other.repeatedMessage_.Clone();
- requiredMessage_ = other.requiredMessage_ != null ? other.requiredMessage_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRequiredMessage Clone() {
- return new TestRequiredMessage(this);
- }
- /// <summary>Field number for the "optional_message" field.</summary>
- public const int OptionalMessageFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.Proto2.TestRequired optionalMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestRequired OptionalMessage {
- get { return optionalMessage_; }
- set {
- optionalMessage_ = value;
- }
- }
- /// <summary>Field number for the "repeated_message" field.</summary>
- public const int RepeatedMessageFieldNumber = 2;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestRequired> _repeated_repeatedMessage_codec
- = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestRequired.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> repeatedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestRequired> RepeatedMessage {
- get { return repeatedMessage_; }
- }
- /// <summary>Field number for the "required_message" field.</summary>
- public const int RequiredMessageFieldNumber = 3;
- private global::Google.Protobuf.TestProtos.Proto2.TestRequired requiredMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestRequired RequiredMessage {
- get { return requiredMessage_; }
- set {
- requiredMessage_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestRequiredMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestRequiredMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(OptionalMessage, other.OptionalMessage)) return false;
- if(!repeatedMessage_.Equals(other.repeatedMessage_)) return false;
- if (!object.Equals(RequiredMessage, other.RequiredMessage)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (optionalMessage_ != null) hash ^= OptionalMessage.GetHashCode();
- hash ^= repeatedMessage_.GetHashCode();
- if (requiredMessage_ != null) hash ^= RequiredMessage.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (optionalMessage_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(OptionalMessage);
- }
- repeatedMessage_.WriteTo(output, _repeated_repeatedMessage_codec);
- if (requiredMessage_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(RequiredMessage);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (optionalMessage_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalMessage);
- }
- size += repeatedMessage_.CalculateSize(_repeated_repeatedMessage_codec);
- if (requiredMessage_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequiredMessage);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestRequiredMessage other) {
- if (other == null) {
- return;
- }
- if (other.optionalMessage_ != null) {
- if (optionalMessage_ == null) {
- OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
- }
- OptionalMessage.MergeFrom(other.OptionalMessage);
- }
- repeatedMessage_.Add(other.repeatedMessage_);
- if (other.requiredMessage_ != null) {
- if (requiredMessage_ == null) {
- RequiredMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
- }
- RequiredMessage.MergeFrom(other.RequiredMessage);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (optionalMessage_ == null) {
- OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
- }
- input.ReadMessage(OptionalMessage);
- break;
- }
- case 18: {
- repeatedMessage_.AddEntriesFrom(input, _repeated_repeatedMessage_codec);
- break;
- }
- case 26: {
- if (requiredMessage_ == null) {
- RequiredMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequired();
- }
- input.ReadMessage(RequiredMessage);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Test that we can use NestedMessage from outside TestAllTypes.
- /// </summary>
- public sealed partial class TestForeignNested : pb::IMessage<TestForeignNested> {
- private static readonly pb::MessageParser<TestForeignNested> _parser = new pb::MessageParser<TestForeignNested>(() => new TestForeignNested());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestForeignNested> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[15]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestForeignNested() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestForeignNested(TestForeignNested other) : this() {
- foreignNested_ = other.foreignNested_ != null ? other.foreignNested_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestForeignNested Clone() {
- return new TestForeignNested(this);
- }
- /// <summary>Field number for the "foreign_nested" field.</summary>
- public const int ForeignNestedFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage foreignNested_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage ForeignNested {
- get { return foreignNested_; }
- set {
- foreignNested_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestForeignNested);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestForeignNested other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(ForeignNested, other.ForeignNested)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (foreignNested_ != null) hash ^= ForeignNested.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (foreignNested_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(ForeignNested);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (foreignNested_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(ForeignNested);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestForeignNested other) {
- if (other == null) {
- return;
- }
- if (other.foreignNested_ != null) {
- if (foreignNested_ == null) {
- ForeignNested = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
- }
- ForeignNested.MergeFrom(other.ForeignNested);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (foreignNested_ == null) {
- ForeignNested = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Types.NestedMessage();
- }
- input.ReadMessage(ForeignNested);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// TestEmptyMessage is used to test unknown field support.
- /// </summary>
- public sealed partial class TestEmptyMessage : pb::IMessage<TestEmptyMessage> {
- private static readonly pb::MessageParser<TestEmptyMessage> _parser = new pb::MessageParser<TestEmptyMessage>(() => new TestEmptyMessage());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestEmptyMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[16]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestEmptyMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestEmptyMessage(TestEmptyMessage other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestEmptyMessage Clone() {
- return new TestEmptyMessage(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestEmptyMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestEmptyMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestEmptyMessage other) {
- if (other == null) {
- return;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- }
- }
- }
- }
- /// <summary>
- /// Like above, but declare all field numbers as potential extensions. No
- /// actual extensions should ever be defined for this type.
- /// </summary>
- public sealed partial class TestEmptyMessageWithExtensions : pb::IExtendableMessage<TestEmptyMessageWithExtensions> {
- private static readonly pb::MessageParser<TestEmptyMessageWithExtensions> _parser = new pb::MessageParser<TestEmptyMessageWithExtensions>(() => new TestEmptyMessageWithExtensions());
- private pb::UnknownFieldSet _unknownFields;
- private pb::ExtensionSet<TestEmptyMessageWithExtensions> _extensions;
- private pb::ExtensionSet<TestEmptyMessageWithExtensions> _Extensions { get { return _extensions; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestEmptyMessageWithExtensions> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[17]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestEmptyMessageWithExtensions() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestEmptyMessageWithExtensions(TestEmptyMessageWithExtensions other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- _extensions = pb::ExtensionSet.Clone(other._extensions);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestEmptyMessageWithExtensions Clone() {
- return new TestEmptyMessageWithExtensions(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestEmptyMessageWithExtensions);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestEmptyMessageWithExtensions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!Equals(_extensions, other._extensions)) {
- return false;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_extensions != null) {
- hash ^= _extensions.GetHashCode();
- }
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (_extensions != null) {
- _extensions.WriteTo(output);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_extensions != null) {
- size += _extensions.CalculateSize();
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestEmptyMessageWithExtensions other) {
- if (other == null) {
- return;
- }
- pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- }
- break;
- }
- }
- }
- public TValue GetExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension) {
- return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
- }
- public void SetExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension, TValue value) {
- pb::ExtensionSet.Set(ref _extensions, extension, value);
- }
- public bool HasExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension) {
- return pb::ExtensionSet.Has(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::Extension<TestEmptyMessageWithExtensions, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::RepeatedExtension<TestEmptyMessageWithExtensions, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- }
- public sealed partial class TestMultipleExtensionRanges : pb::IExtendableMessage<TestMultipleExtensionRanges> {
- private static readonly pb::MessageParser<TestMultipleExtensionRanges> _parser = new pb::MessageParser<TestMultipleExtensionRanges>(() => new TestMultipleExtensionRanges());
- private pb::UnknownFieldSet _unknownFields;
- private pb::ExtensionSet<TestMultipleExtensionRanges> _extensions;
- private pb::ExtensionSet<TestMultipleExtensionRanges> _Extensions { get { return _extensions; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestMultipleExtensionRanges> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[18]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMultipleExtensionRanges() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMultipleExtensionRanges(TestMultipleExtensionRanges other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- _extensions = pb::ExtensionSet.Clone(other._extensions);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMultipleExtensionRanges Clone() {
- return new TestMultipleExtensionRanges(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestMultipleExtensionRanges);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestMultipleExtensionRanges other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!Equals(_extensions, other._extensions)) {
- return false;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_extensions != null) {
- hash ^= _extensions.GetHashCode();
- }
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (_extensions != null) {
- _extensions.WriteTo(output);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_extensions != null) {
- size += _extensions.CalculateSize();
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestMultipleExtensionRanges other) {
- if (other == null) {
- return;
- }
- pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- }
- break;
- }
- }
- }
- public TValue GetExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension) {
- return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
- }
- public void SetExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension, TValue value) {
- pb::ExtensionSet.Set(ref _extensions, extension, value);
- }
- public bool HasExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension) {
- return pb::ExtensionSet.Has(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::Extension<TestMultipleExtensionRanges, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::RepeatedExtension<TestMultipleExtensionRanges, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- }
- /// <summary>
- /// Test that really large tag numbers don't break anything.
- /// </summary>
- public sealed partial class TestReallyLargeTagNumber : pb::IMessage<TestReallyLargeTagNumber> {
- private static readonly pb::MessageParser<TestReallyLargeTagNumber> _parser = new pb::MessageParser<TestReallyLargeTagNumber>(() => new TestReallyLargeTagNumber());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestReallyLargeTagNumber> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[19]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestReallyLargeTagNumber() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestReallyLargeTagNumber(TestReallyLargeTagNumber other) : this() {
- _hasBits0 = other._hasBits0;
- a_ = other.a_;
- bb_ = other.bb_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestReallyLargeTagNumber Clone() {
- return new TestReallyLargeTagNumber(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 1;
- private readonly static int ADefaultValue = 0;
- private int a_;
- /// <summary>
- /// The largest possible tag number is 2^28 - 1, since the wire format uses
- /// three bits to communicate wire type.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int A {
- get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
- set {
- _hasBits0 |= 1;
- a_ = value;
- }
- }
- /// <summary>Gets whether the "a" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasA {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "a" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearA() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "bb" field.</summary>
- public const int BbFieldNumber = 268435455;
- private readonly static int BbDefaultValue = 0;
- private int bb_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Bb {
- get { if ((_hasBits0 & 2) != 0) { return bb_; } else { return BbDefaultValue; } }
- set {
- _hasBits0 |= 2;
- bb_ = value;
- }
- }
- /// <summary>Gets whether the "bb" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasBb {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// <summary>Clears the value of the "bb" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearBb() {
- _hasBits0 &= ~2;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestReallyLargeTagNumber);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestReallyLargeTagNumber other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- if (Bb != other.Bb) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasA) hash ^= A.GetHashCode();
- if (HasBb) hash ^= Bb.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasA) {
- output.WriteRawTag(8);
- output.WriteInt32(A);
- }
- if (HasBb) {
- output.WriteRawTag(248, 255, 255, 255, 7);
- output.WriteInt32(Bb);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasA) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
- }
- if (HasBb) {
- size += 5 + pb::CodedOutputStream.ComputeInt32Size(Bb);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestReallyLargeTagNumber other) {
- if (other == null) {
- return;
- }
- if (other.HasA) {
- A = other.A;
- }
- if (other.HasBb) {
- Bb = other.Bb;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- A = input.ReadInt32();
- break;
- }
- case 2147483640: {
- Bb = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- public sealed partial class TestRecursiveMessage : pb::IMessage<TestRecursiveMessage> {
- private static readonly pb::MessageParser<TestRecursiveMessage> _parser = new pb::MessageParser<TestRecursiveMessage>(() => new TestRecursiveMessage());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestRecursiveMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[20]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRecursiveMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRecursiveMessage(TestRecursiveMessage other) : this() {
- _hasBits0 = other._hasBits0;
- a_ = other.a_ != null ? other.a_.Clone() : null;
- i_ = other.i_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRecursiveMessage Clone() {
- return new TestRecursiveMessage(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage a_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage A {
- get { return a_; }
- set {
- a_ = value;
- }
- }
- /// <summary>Field number for the "i" field.</summary>
- public const int IFieldNumber = 2;
- private readonly static int IDefaultValue = 0;
- private int i_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int I {
- get { if ((_hasBits0 & 1) != 0) { return i_; } else { return IDefaultValue; } }
- set {
- _hasBits0 |= 1;
- i_ = value;
- }
- }
- /// <summary>Gets whether the "i" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasI {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "i" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearI() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestRecursiveMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestRecursiveMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(A, other.A)) return false;
- if (I != other.I) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (a_ != null) hash ^= A.GetHashCode();
- if (HasI) hash ^= I.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (a_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(A);
- }
- if (HasI) {
- output.WriteRawTag(16);
- output.WriteInt32(I);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (a_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(A);
- }
- if (HasI) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestRecursiveMessage other) {
- if (other == null) {
- return;
- }
- if (other.a_ != null) {
- if (a_ == null) {
- A = new global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage();
- }
- A.MergeFrom(other.A);
- }
- if (other.HasI) {
- I = other.I;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (a_ == null) {
- A = new global::Google.Protobuf.TestProtos.Proto2.TestRecursiveMessage();
- }
- input.ReadMessage(A);
- break;
- }
- case 16: {
- I = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Test that mutual recursion works.
- /// </summary>
- public sealed partial class TestMutualRecursionA : pb::IMessage<TestMutualRecursionA> {
- private static readonly pb::MessageParser<TestMutualRecursionA> _parser = new pb::MessageParser<TestMutualRecursionA>(() => new TestMutualRecursionA());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestMutualRecursionA> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[21]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMutualRecursionA() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMutualRecursionA(TestMutualRecursionA other) : this() {
- bb_ = other.bb_ != null ? other.bb_.Clone() : null;
- subGroup_ = other.HasSubGroup ? other.subGroup_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMutualRecursionA Clone() {
- return new TestMutualRecursionA(this);
- }
- /// <summary>Field number for the "bb" field.</summary>
- public const int BbFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB bb_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB Bb {
- get { return bb_; }
- set {
- bb_ = value;
- }
- }
- /// <summary>Field number for the "subgroup" field.</summary>
- public const int SubGroupFieldNumber = 2;
- private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup subGroup_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup SubGroup {
- get { return subGroup_; }
- set {
- subGroup_ = value;
- }
- }
- /// <summary>Gets whether the subgroup field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasSubGroup {
- get { return subGroup_ != null; }
- }
- /// <summary>Clears the value of the subgroup field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearSubGroup() {
- subGroup_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestMutualRecursionA);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestMutualRecursionA other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Bb, other.Bb)) return false;
- if (!object.Equals(SubGroup, other.SubGroup)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (bb_ != null) hash ^= Bb.GetHashCode();
- if (HasSubGroup) hash ^= SubGroup.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (bb_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Bb);
- }
- if (HasSubGroup) {
- output.WriteRawTag(19);
- output.WriteGroup(SubGroup);
- output.WriteRawTag(20);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (bb_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bb);
- }
- if (HasSubGroup) {
- size += 2 + pb::CodedOutputStream.ComputeGroupSize(SubGroup);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestMutualRecursionA other) {
- if (other == null) {
- return;
- }
- if (other.bb_ != null) {
- if (bb_ == null) {
- Bb = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
- }
- Bb.MergeFrom(other.Bb);
- }
- if (other.HasSubGroup) {
- if (!HasSubGroup) {
- SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup();
- }
- SubGroup.MergeFrom(other.SubGroup);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (bb_ == null) {
- Bb = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
- }
- input.ReadMessage(Bb);
- break;
- }
- case 19: {
- if (!HasSubGroup) {
- SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubGroup();
- }
- input.ReadGroup(SubGroup);
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestMutualRecursionA message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class SubMessage : pb::IMessage<SubMessage> {
- private static readonly pb::MessageParser<SubMessage> _parser = new pb::MessageParser<SubMessage>(() => new SubMessage());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<SubMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SubMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SubMessage(SubMessage other) : this() {
- b_ = other.b_ != null ? other.b_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SubMessage Clone() {
- return new SubMessage(this);
- }
- /// <summary>Field number for the "b" field.</summary>
- public const int BFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB b_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB B {
- get { return b_; }
- set {
- b_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as SubMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(SubMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(B, other.B)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (b_ != null) hash ^= B.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (b_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(B);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (b_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(B);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(SubMessage other) {
- if (other == null) {
- return;
- }
- if (other.b_ != null) {
- if (b_ == null) {
- B = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
- }
- B.MergeFrom(other.B);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (b_ == null) {
- B = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB();
- }
- input.ReadMessage(B);
- break;
- }
- }
- }
- }
- }
- public sealed partial class SubGroup : pb::IMessage<SubGroup> {
- private static readonly pb::MessageParser<SubGroup> _parser = new pb::MessageParser<SubGroup>(() => new SubGroup());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<SubGroup> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Descriptor.NestedTypes[1]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SubGroup() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SubGroup(SubGroup other) : this() {
- subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null;
- notInThisScc_ = other.notInThisScc_ != null ? other.notInThisScc_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SubGroup Clone() {
- return new SubGroup(this);
- }
- /// <summary>Field number for the "sub_message" field.</summary>
- public const int SubMessageFieldNumber = 3;
- private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage subMessage_;
- /// <summary>
- /// Needed because of bug in javatest
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage SubMessage {
- get { return subMessage_; }
- set {
- subMessage_ = value;
- }
- }
- /// <summary>Field number for the "not_in_this_scc" field.</summary>
- public const int NotInThisSccFieldNumber = 4;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes notInThisScc_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes NotInThisScc {
- get { return notInThisScc_; }
- set {
- notInThisScc_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as SubGroup);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(SubGroup other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(SubMessage, other.SubMessage)) return false;
- if (!object.Equals(NotInThisScc, other.NotInThisScc)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (subMessage_ != null) hash ^= SubMessage.GetHashCode();
- if (notInThisScc_ != null) hash ^= NotInThisScc.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (subMessage_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(SubMessage);
- }
- if (notInThisScc_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(NotInThisScc);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (subMessage_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage);
- }
- if (notInThisScc_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(NotInThisScc);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(SubGroup other) {
- if (other == null) {
- return;
- }
- if (other.subMessage_ != null) {
- if (subMessage_ == null) {
- SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage();
- }
- SubMessage.MergeFrom(other.SubMessage);
- }
- if (other.notInThisScc_ != null) {
- if (notInThisScc_ == null) {
- NotInThisScc = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- NotInThisScc.MergeFrom(other.NotInThisScc);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 20:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 26: {
- if (subMessage_ == null) {
- SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA.Types.SubMessage();
- }
- input.ReadMessage(SubMessage);
- break;
- }
- case 34: {
- if (notInThisScc_ == null) {
- NotInThisScc = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- input.ReadMessage(NotInThisScc);
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- public sealed partial class TestMutualRecursionB : pb::IMessage<TestMutualRecursionB> {
- private static readonly pb::MessageParser<TestMutualRecursionB> _parser = new pb::MessageParser<TestMutualRecursionB>(() => new TestMutualRecursionB());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestMutualRecursionB> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[22]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMutualRecursionB() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMutualRecursionB(TestMutualRecursionB other) : this() {
- _hasBits0 = other._hasBits0;
- a_ = other.a_ != null ? other.a_.Clone() : null;
- optionalInt32_ = other.optionalInt32_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestMutualRecursionB Clone() {
- return new TestMutualRecursionB(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA a_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA A {
- get { return a_; }
- set {
- a_ = value;
- }
- }
- /// <summary>Field number for the "optional_int32" field.</summary>
- public const int OptionalInt32FieldNumber = 2;
- private readonly static int OptionalInt32DefaultValue = 0;
- private int optionalInt32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int OptionalInt32 {
- get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
- set {
- _hasBits0 |= 1;
- optionalInt32_ = value;
- }
- }
- /// <summary>Gets whether the "optional_int32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalInt32 {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "optional_int32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalInt32() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestMutualRecursionB);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestMutualRecursionB other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(A, other.A)) return false;
- if (OptionalInt32 != other.OptionalInt32) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (a_ != null) hash ^= A.GetHashCode();
- if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (a_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(A);
- }
- if (HasOptionalInt32) {
- output.WriteRawTag(16);
- output.WriteInt32(OptionalInt32);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (a_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(A);
- }
- if (HasOptionalInt32) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestMutualRecursionB other) {
- if (other == null) {
- return;
- }
- if (other.a_ != null) {
- if (a_ == null) {
- A = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA();
- }
- A.MergeFrom(other.A);
- }
- if (other.HasOptionalInt32) {
- OptionalInt32 = other.OptionalInt32;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (a_ == null) {
- A = new global::Google.Protobuf.TestProtos.Proto2.TestMutualRecursionA();
- }
- input.ReadMessage(A);
- break;
- }
- case 16: {
- OptionalInt32 = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- public sealed partial class TestIsInitialized : pb::IMessage<TestIsInitialized> {
- private static readonly pb::MessageParser<TestIsInitialized> _parser = new pb::MessageParser<TestIsInitialized>(() => new TestIsInitialized());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestIsInitialized> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[23]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestIsInitialized() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestIsInitialized(TestIsInitialized other) : this() {
- subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestIsInitialized Clone() {
- return new TestIsInitialized(this);
- }
- /// <summary>Field number for the "sub_message" field.</summary>
- public const int SubMessageFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage subMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage SubMessage {
- get { return subMessage_; }
- set {
- subMessage_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestIsInitialized);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestIsInitialized other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(SubMessage, other.SubMessage)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (subMessage_ != null) hash ^= SubMessage.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (subMessage_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(SubMessage);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (subMessage_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestIsInitialized other) {
- if (other == null) {
- return;
- }
- if (other.subMessage_ != null) {
- if (subMessage_ == null) {
- SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage();
- }
- SubMessage.MergeFrom(other.SubMessage);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (subMessage_ == null) {
- SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage();
- }
- input.ReadMessage(SubMessage);
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestIsInitialized message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class SubMessage : pb::IMessage<SubMessage> {
- private static readonly pb::MessageParser<SubMessage> _parser = new pb::MessageParser<SubMessage>(() => new SubMessage());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<SubMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SubMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SubMessage(SubMessage other) : this() {
- subGroup_ = other.HasSubGroup ? other.subGroup_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SubMessage Clone() {
- return new SubMessage(this);
- }
- /// <summary>Field number for the "subgroup" field.</summary>
- public const int SubGroupFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup subGroup_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup SubGroup {
- get { return subGroup_; }
- set {
- subGroup_ = value;
- }
- }
- /// <summary>Gets whether the subgroup field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasSubGroup {
- get { return subGroup_ != null; }
- }
- /// <summary>Clears the value of the subgroup field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearSubGroup() {
- subGroup_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as SubMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(SubMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(SubGroup, other.SubGroup)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasSubGroup) hash ^= SubGroup.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasSubGroup) {
- output.WriteRawTag(11);
- output.WriteGroup(SubGroup);
- output.WriteRawTag(12);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasSubGroup) {
- size += 2 + pb::CodedOutputStream.ComputeGroupSize(SubGroup);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(SubMessage other) {
- if (other == null) {
- return;
- }
- if (other.HasSubGroup) {
- if (!HasSubGroup) {
- SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup();
- }
- SubGroup.MergeFrom(other.SubGroup);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 11: {
- if (!HasSubGroup) {
- SubGroup = new global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Types.SubGroup();
- }
- input.ReadGroup(SubGroup);
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the SubMessage message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class SubGroup : pb::IMessage<SubGroup> {
- private static readonly pb::MessageParser<SubGroup> _parser = new pb::MessageParser<SubGroup>(() => new SubGroup());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<SubGroup> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestIsInitialized.Types.SubMessage.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SubGroup() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SubGroup(SubGroup other) : this() {
- _hasBits0 = other._hasBits0;
- i_ = other.i_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SubGroup Clone() {
- return new SubGroup(this);
- }
- /// <summary>Field number for the "i" field.</summary>
- public const int IFieldNumber = 2;
- private readonly static int IDefaultValue = 0;
- private int i_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int I {
- get { if ((_hasBits0 & 1) != 0) { return i_; } else { return IDefaultValue; } }
- set {
- _hasBits0 |= 1;
- i_ = value;
- }
- }
- /// <summary>Gets whether the "i" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasI {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "i" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearI() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as SubGroup);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(SubGroup other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (I != other.I) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasI) hash ^= I.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasI) {
- output.WriteRawTag(16);
- output.WriteInt32(I);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasI) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(SubGroup other) {
- if (other == null) {
- return;
- }
- if (other.HasI) {
- I = other.I;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 12:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 16: {
- I = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- }
- #endregion
- }
- /// <summary>
- /// Test that groups have disjoint field numbers from their siblings and
- /// parents. This is NOT possible in proto1; only google.protobuf. When attempting
- /// to compile with proto1, this will emit an error; so we only include it
- /// in protobuf_unittest_proto.
- /// </summary>
- public sealed partial class TestDupFieldNumber : pb::IMessage<TestDupFieldNumber> {
- private static readonly pb::MessageParser<TestDupFieldNumber> _parser = new pb::MessageParser<TestDupFieldNumber>(() => new TestDupFieldNumber());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestDupFieldNumber> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[24]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestDupFieldNumber() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestDupFieldNumber(TestDupFieldNumber other) : this() {
- _hasBits0 = other._hasBits0;
- a_ = other.a_;
- foo_ = other.HasFoo ? other.foo_.Clone() : null;
- bar_ = other.HasBar ? other.bar_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestDupFieldNumber Clone() {
- return new TestDupFieldNumber(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 1;
- private readonly static int ADefaultValue = 0;
- private int a_;
- /// <summary>
- /// NO_PROTO1
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int A {
- get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
- set {
- _hasBits0 |= 1;
- a_ = value;
- }
- }
- /// <summary>Gets whether the "a" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasA {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "a" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearA() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "foo" field.</summary>
- public const int FooFieldNumber = 2;
- private global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo foo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo Foo {
- get { return foo_; }
- set {
- foo_ = value;
- }
- }
- /// <summary>Gets whether the foo field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFoo {
- get { return foo_ != null; }
- }
- /// <summary>Clears the value of the foo field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFoo() {
- foo_ = null;
- }
- /// <summary>Field number for the "bar" field.</summary>
- public const int BarFieldNumber = 3;
- private global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar bar_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar Bar {
- get { return bar_; }
- set {
- bar_ = value;
- }
- }
- /// <summary>Gets whether the bar field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasBar {
- get { return bar_ != null; }
- }
- /// <summary>Clears the value of the bar field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearBar() {
- bar_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestDupFieldNumber);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestDupFieldNumber other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- if (!object.Equals(Foo, other.Foo)) return false;
- if (!object.Equals(Bar, other.Bar)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasA) hash ^= A.GetHashCode();
- if (HasFoo) hash ^= Foo.GetHashCode();
- if (HasBar) hash ^= Bar.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasA) {
- output.WriteRawTag(8);
- output.WriteInt32(A);
- }
- if (HasFoo) {
- output.WriteRawTag(19);
- output.WriteGroup(Foo);
- output.WriteRawTag(20);
- }
- if (HasBar) {
- output.WriteRawTag(27);
- output.WriteGroup(Bar);
- output.WriteRawTag(28);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasA) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
- }
- if (HasFoo) {
- size += 2 + pb::CodedOutputStream.ComputeGroupSize(Foo);
- }
- if (HasBar) {
- size += 2 + pb::CodedOutputStream.ComputeGroupSize(Bar);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestDupFieldNumber other) {
- if (other == null) {
- return;
- }
- if (other.HasA) {
- A = other.A;
- }
- if (other.HasFoo) {
- if (!HasFoo) {
- Foo = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo();
- }
- Foo.MergeFrom(other.Foo);
- }
- if (other.HasBar) {
- if (!HasBar) {
- Bar = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar();
- }
- Bar.MergeFrom(other.Bar);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- A = input.ReadInt32();
- break;
- }
- case 19: {
- if (!HasFoo) {
- Foo = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Foo();
- }
- input.ReadGroup(Foo);
- break;
- }
- case 27: {
- if (!HasBar) {
- Bar = new global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Types.Bar();
- }
- input.ReadGroup(Bar);
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestDupFieldNumber message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class Foo : pb::IMessage<Foo> {
- private static readonly pb::MessageParser<Foo> _parser = new pb::MessageParser<Foo>(() => new Foo());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Foo> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Foo() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Foo(Foo other) : this() {
- _hasBits0 = other._hasBits0;
- a_ = other.a_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Foo Clone() {
- return new Foo(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 1;
- private readonly static int ADefaultValue = 0;
- private int a_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int A {
- get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
- set {
- _hasBits0 |= 1;
- a_ = value;
- }
- }
- /// <summary>Gets whether the "a" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasA {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "a" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearA() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Foo);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Foo other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasA) hash ^= A.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasA) {
- output.WriteRawTag(8);
- output.WriteInt32(A);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasA) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Foo other) {
- if (other == null) {
- return;
- }
- if (other.HasA) {
- A = other.A;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 20:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- A = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- public sealed partial class Bar : pb::IMessage<Bar> {
- private static readonly pb::MessageParser<Bar> _parser = new pb::MessageParser<Bar>(() => new Bar());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Bar> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestDupFieldNumber.Descriptor.NestedTypes[1]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Bar() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Bar(Bar other) : this() {
- _hasBits0 = other._hasBits0;
- a_ = other.a_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Bar Clone() {
- return new Bar(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 1;
- private readonly static int ADefaultValue = 0;
- private int a_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int A {
- get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
- set {
- _hasBits0 |= 1;
- a_ = value;
- }
- }
- /// <summary>Gets whether the "a" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasA {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "a" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearA() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Bar);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Bar other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasA) hash ^= A.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasA) {
- output.WriteRawTag(8);
- output.WriteInt32(A);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasA) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Bar other) {
- if (other == null) {
- return;
- }
- if (other.HasA) {
- A = other.A;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 28:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- A = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- /// <summary>
- /// Additional messages for testing lazy fields.
- /// </summary>
- public sealed partial class TestEagerMessage : pb::IMessage<TestEagerMessage> {
- private static readonly pb::MessageParser<TestEagerMessage> _parser = new pb::MessageParser<TestEagerMessage>(() => new TestEagerMessage());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestEagerMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[25]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestEagerMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestEagerMessage(TestEagerMessage other) : this() {
- subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestEagerMessage Clone() {
- return new TestEagerMessage(this);
- }
- /// <summary>Field number for the "sub_message" field.</summary>
- public const int SubMessageFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes SubMessage {
- get { return subMessage_; }
- set {
- subMessage_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestEagerMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestEagerMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(SubMessage, other.SubMessage)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (subMessage_ != null) hash ^= SubMessage.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (subMessage_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(SubMessage);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (subMessage_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestEagerMessage other) {
- if (other == null) {
- return;
- }
- if (other.subMessage_ != null) {
- if (subMessage_ == null) {
- SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- SubMessage.MergeFrom(other.SubMessage);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (subMessage_ == null) {
- SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- input.ReadMessage(SubMessage);
- break;
- }
- }
- }
- }
- }
- public sealed partial class TestLazyMessage : pb::IMessage<TestLazyMessage> {
- private static readonly pb::MessageParser<TestLazyMessage> _parser = new pb::MessageParser<TestLazyMessage>(() => new TestLazyMessage());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestLazyMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[26]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestLazyMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestLazyMessage(TestLazyMessage other) : this() {
- subMessage_ = other.subMessage_ != null ? other.subMessage_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestLazyMessage Clone() {
- return new TestLazyMessage(this);
- }
- /// <summary>Field number for the "sub_message" field.</summary>
- public const int SubMessageFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes SubMessage {
- get { return subMessage_; }
- set {
- subMessage_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestLazyMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestLazyMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(SubMessage, other.SubMessage)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (subMessage_ != null) hash ^= SubMessage.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (subMessage_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(SubMessage);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (subMessage_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubMessage);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestLazyMessage other) {
- if (other == null) {
- return;
- }
- if (other.subMessage_ != null) {
- if (subMessage_ == null) {
- SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- SubMessage.MergeFrom(other.SubMessage);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (subMessage_ == null) {
- SubMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- input.ReadMessage(SubMessage);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Needed for a Python test.
- /// </summary>
- public sealed partial class TestNestedMessageHasBits : pb::IMessage<TestNestedMessageHasBits> {
- private static readonly pb::MessageParser<TestNestedMessageHasBits> _parser = new pb::MessageParser<TestNestedMessageHasBits>(() => new TestNestedMessageHasBits());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestNestedMessageHasBits> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[27]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestNestedMessageHasBits() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestNestedMessageHasBits(TestNestedMessageHasBits other) : this() {
- optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestNestedMessageHasBits Clone() {
- return new TestNestedMessageHasBits(this);
- }
- /// <summary>Field number for the "optional_nested_message" field.</summary>
- public const int OptionalNestedMessageFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
- get { return optionalNestedMessage_; }
- set {
- optionalNestedMessage_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestNestedMessageHasBits);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestNestedMessageHasBits other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (optionalNestedMessage_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(OptionalNestedMessage);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (optionalNestedMessage_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestNestedMessageHasBits other) {
- if (other == null) {
- return;
- }
- if (other.optionalNestedMessage_ != null) {
- if (optionalNestedMessage_ == null) {
- OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage();
- }
- OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (optionalNestedMessage_ == null) {
- OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Types.NestedMessage();
- }
- input.ReadMessage(OptionalNestedMessage);
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestNestedMessageHasBits message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
- private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestNestedMessageHasBits.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage(NestedMessage other) : this() {
- nestedmessageRepeatedInt32_ = other.nestedmessageRepeatedInt32_.Clone();
- nestedmessageRepeatedForeignmessage_ = other.nestedmessageRepeatedForeignmessage_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage Clone() {
- return new NestedMessage(this);
- }
- /// <summary>Field number for the "nestedmessage_repeated_int32" field.</summary>
- public const int NestedmessageRepeatedInt32FieldNumber = 1;
- private static readonly pb::FieldCodec<int> _repeated_nestedmessageRepeatedInt32_codec
- = pb::FieldCodec.ForInt32(8);
- private readonly pbc::RepeatedField<int> nestedmessageRepeatedInt32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> NestedmessageRepeatedInt32 {
- get { return nestedmessageRepeatedInt32_; }
- }
- /// <summary>Field number for the "nestedmessage_repeated_foreignmessage" field.</summary>
- public const int NestedmessageRepeatedForeignmessageFieldNumber = 2;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> _repeated_nestedmessageRepeatedForeignmessage_codec
- = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> nestedmessageRepeatedForeignmessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> NestedmessageRepeatedForeignmessage {
- get { return nestedmessageRepeatedForeignmessage_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as NestedMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(NestedMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!nestedmessageRepeatedInt32_.Equals(other.nestedmessageRepeatedInt32_)) return false;
- if(!nestedmessageRepeatedForeignmessage_.Equals(other.nestedmessageRepeatedForeignmessage_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= nestedmessageRepeatedInt32_.GetHashCode();
- hash ^= nestedmessageRepeatedForeignmessage_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- nestedmessageRepeatedInt32_.WriteTo(output, _repeated_nestedmessageRepeatedInt32_codec);
- nestedmessageRepeatedForeignmessage_.WriteTo(output, _repeated_nestedmessageRepeatedForeignmessage_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += nestedmessageRepeatedInt32_.CalculateSize(_repeated_nestedmessageRepeatedInt32_codec);
- size += nestedmessageRepeatedForeignmessage_.CalculateSize(_repeated_nestedmessageRepeatedForeignmessage_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(NestedMessage other) {
- if (other == null) {
- return;
- }
- nestedmessageRepeatedInt32_.Add(other.nestedmessageRepeatedInt32_);
- nestedmessageRepeatedForeignmessage_.Add(other.nestedmessageRepeatedForeignmessage_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10:
- case 8: {
- nestedmessageRepeatedInt32_.AddEntriesFrom(input, _repeated_nestedmessageRepeatedInt32_codec);
- break;
- }
- case 18: {
- nestedmessageRepeatedForeignmessage_.AddEntriesFrom(input, _repeated_nestedmessageRepeatedForeignmessage_codec);
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- /// <summary>
- /// Test message with CamelCase field names. This violates Protocol Buffer
- /// standard style.
- /// </summary>
- public sealed partial class TestCamelCaseFieldNames : pb::IMessage<TestCamelCaseFieldNames> {
- private static readonly pb::MessageParser<TestCamelCaseFieldNames> _parser = new pb::MessageParser<TestCamelCaseFieldNames>(() => new TestCamelCaseFieldNames());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestCamelCaseFieldNames> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[28]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestCamelCaseFieldNames() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestCamelCaseFieldNames(TestCamelCaseFieldNames other) : this() {
- _hasBits0 = other._hasBits0;
- primitiveField_ = other.primitiveField_;
- stringField_ = other.stringField_;
- enumField_ = other.enumField_;
- messageField_ = other.messageField_ != null ? other.messageField_.Clone() : null;
- stringPieceField_ = other.stringPieceField_;
- cordField_ = other.cordField_;
- repeatedPrimitiveField_ = other.repeatedPrimitiveField_.Clone();
- repeatedStringField_ = other.repeatedStringField_.Clone();
- repeatedEnumField_ = other.repeatedEnumField_.Clone();
- repeatedMessageField_ = other.repeatedMessageField_.Clone();
- repeatedStringPieceField_ = other.repeatedStringPieceField_.Clone();
- repeatedCordField_ = other.repeatedCordField_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestCamelCaseFieldNames Clone() {
- return new TestCamelCaseFieldNames(this);
- }
- /// <summary>Field number for the "PrimitiveField" field.</summary>
- public const int PrimitiveFieldFieldNumber = 1;
- private readonly static int PrimitiveFieldDefaultValue = 0;
- private int primitiveField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int PrimitiveField {
- get { if ((_hasBits0 & 1) != 0) { return primitiveField_; } else { return PrimitiveFieldDefaultValue; } }
- set {
- _hasBits0 |= 1;
- primitiveField_ = value;
- }
- }
- /// <summary>Gets whether the "PrimitiveField" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasPrimitiveField {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "PrimitiveField" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearPrimitiveField() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "StringField" field.</summary>
- public const int StringFieldFieldNumber = 2;
- private readonly static string StringFieldDefaultValue = "";
- private string stringField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string StringField {
- get { return stringField_ ?? StringFieldDefaultValue; }
- set {
- stringField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "StringField" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasStringField {
- get { return stringField_ != null; }
- }
- /// <summary>Clears the value of the "StringField" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearStringField() {
- stringField_ = null;
- }
- /// <summary>Field number for the "EnumField" field.</summary>
- public const int EnumFieldFieldNumber = 3;
- private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumFieldDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
- private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum enumField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumField {
- get { if ((_hasBits0 & 2) != 0) { return enumField_; } else { return EnumFieldDefaultValue; } }
- set {
- _hasBits0 |= 2;
- enumField_ = value;
- }
- }
- /// <summary>Gets whether the "EnumField" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasEnumField {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// <summary>Clears the value of the "EnumField" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearEnumField() {
- _hasBits0 &= ~2;
- }
- /// <summary>Field number for the "MessageField" field.</summary>
- public const int MessageFieldFieldNumber = 4;
- private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage messageField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage MessageField {
- get { return messageField_; }
- set {
- messageField_ = value;
- }
- }
- /// <summary>Field number for the "StringPieceField" field.</summary>
- public const int StringPieceFieldFieldNumber = 5;
- private readonly static string StringPieceFieldDefaultValue = "";
- private string stringPieceField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string StringPieceField {
- get { return stringPieceField_ ?? StringPieceFieldDefaultValue; }
- set {
- stringPieceField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "StringPieceField" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasStringPieceField {
- get { return stringPieceField_ != null; }
- }
- /// <summary>Clears the value of the "StringPieceField" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearStringPieceField() {
- stringPieceField_ = null;
- }
- /// <summary>Field number for the "CordField" field.</summary>
- public const int CordFieldFieldNumber = 6;
- private readonly static string CordFieldDefaultValue = "";
- private string cordField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string CordField {
- get { return cordField_ ?? CordFieldDefaultValue; }
- set {
- cordField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "CordField" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasCordField {
- get { return cordField_ != null; }
- }
- /// <summary>Clears the value of the "CordField" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearCordField() {
- cordField_ = null;
- }
- /// <summary>Field number for the "RepeatedPrimitiveField" field.</summary>
- public const int RepeatedPrimitiveFieldFieldNumber = 7;
- private static readonly pb::FieldCodec<int> _repeated_repeatedPrimitiveField_codec
- = pb::FieldCodec.ForInt32(56);
- private readonly pbc::RepeatedField<int> repeatedPrimitiveField_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> RepeatedPrimitiveField {
- get { return repeatedPrimitiveField_; }
- }
- /// <summary>Field number for the "RepeatedStringField" field.</summary>
- public const int RepeatedStringFieldFieldNumber = 8;
- private static readonly pb::FieldCodec<string> _repeated_repeatedStringField_codec
- = pb::FieldCodec.ForString(66);
- private readonly pbc::RepeatedField<string> repeatedStringField_ = new pbc::RepeatedField<string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<string> RepeatedStringField {
- get { return repeatedStringField_; }
- }
- /// <summary>Field number for the "RepeatedEnumField" field.</summary>
- public const int RepeatedEnumFieldFieldNumber = 9;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_repeatedEnumField_codec
- = pb::FieldCodec.ForEnum(72, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> repeatedEnumField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> RepeatedEnumField {
- get { return repeatedEnumField_; }
- }
- /// <summary>Field number for the "RepeatedMessageField" field.</summary>
- public const int RepeatedMessageFieldFieldNumber = 10;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> _repeated_repeatedMessageField_codec
- = pb::FieldCodec.ForMessage(82, global::Google.Protobuf.TestProtos.Proto2.ForeignMessage.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> repeatedMessageField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignMessage> RepeatedMessageField {
- get { return repeatedMessageField_; }
- }
- /// <summary>Field number for the "RepeatedStringPieceField" field.</summary>
- public const int RepeatedStringPieceFieldFieldNumber = 11;
- private static readonly pb::FieldCodec<string> _repeated_repeatedStringPieceField_codec
- = pb::FieldCodec.ForString(90);
- private readonly pbc::RepeatedField<string> repeatedStringPieceField_ = new pbc::RepeatedField<string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<string> RepeatedStringPieceField {
- get { return repeatedStringPieceField_; }
- }
- /// <summary>Field number for the "RepeatedCordField" field.</summary>
- public const int RepeatedCordFieldFieldNumber = 12;
- private static readonly pb::FieldCodec<string> _repeated_repeatedCordField_codec
- = pb::FieldCodec.ForString(98);
- private readonly pbc::RepeatedField<string> repeatedCordField_ = new pbc::RepeatedField<string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<string> RepeatedCordField {
- get { return repeatedCordField_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestCamelCaseFieldNames);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestCamelCaseFieldNames other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (PrimitiveField != other.PrimitiveField) return false;
- if (StringField != other.StringField) return false;
- if (EnumField != other.EnumField) return false;
- if (!object.Equals(MessageField, other.MessageField)) return false;
- if (StringPieceField != other.StringPieceField) return false;
- if (CordField != other.CordField) return false;
- if(!repeatedPrimitiveField_.Equals(other.repeatedPrimitiveField_)) return false;
- if(!repeatedStringField_.Equals(other.repeatedStringField_)) return false;
- if(!repeatedEnumField_.Equals(other.repeatedEnumField_)) return false;
- if(!repeatedMessageField_.Equals(other.repeatedMessageField_)) return false;
- if(!repeatedStringPieceField_.Equals(other.repeatedStringPieceField_)) return false;
- if(!repeatedCordField_.Equals(other.repeatedCordField_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasPrimitiveField) hash ^= PrimitiveField.GetHashCode();
- if (HasStringField) hash ^= StringField.GetHashCode();
- if (HasEnumField) hash ^= EnumField.GetHashCode();
- if (messageField_ != null) hash ^= MessageField.GetHashCode();
- if (HasStringPieceField) hash ^= StringPieceField.GetHashCode();
- if (HasCordField) hash ^= CordField.GetHashCode();
- hash ^= repeatedPrimitiveField_.GetHashCode();
- hash ^= repeatedStringField_.GetHashCode();
- hash ^= repeatedEnumField_.GetHashCode();
- hash ^= repeatedMessageField_.GetHashCode();
- hash ^= repeatedStringPieceField_.GetHashCode();
- hash ^= repeatedCordField_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasPrimitiveField) {
- output.WriteRawTag(8);
- output.WriteInt32(PrimitiveField);
- }
- if (HasStringField) {
- output.WriteRawTag(18);
- output.WriteString(StringField);
- }
- if (HasEnumField) {
- output.WriteRawTag(24);
- output.WriteEnum((int) EnumField);
- }
- if (messageField_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(MessageField);
- }
- if (HasStringPieceField) {
- output.WriteRawTag(42);
- output.WriteString(StringPieceField);
- }
- if (HasCordField) {
- output.WriteRawTag(50);
- output.WriteString(CordField);
- }
- repeatedPrimitiveField_.WriteTo(output, _repeated_repeatedPrimitiveField_codec);
- repeatedStringField_.WriteTo(output, _repeated_repeatedStringField_codec);
- repeatedEnumField_.WriteTo(output, _repeated_repeatedEnumField_codec);
- repeatedMessageField_.WriteTo(output, _repeated_repeatedMessageField_codec);
- repeatedStringPieceField_.WriteTo(output, _repeated_repeatedStringPieceField_codec);
- repeatedCordField_.WriteTo(output, _repeated_repeatedCordField_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasPrimitiveField) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveField);
- }
- if (HasStringField) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(StringField);
- }
- if (HasEnumField) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumField);
- }
- if (messageField_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageField);
- }
- if (HasStringPieceField) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(StringPieceField);
- }
- if (HasCordField) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(CordField);
- }
- size += repeatedPrimitiveField_.CalculateSize(_repeated_repeatedPrimitiveField_codec);
- size += repeatedStringField_.CalculateSize(_repeated_repeatedStringField_codec);
- size += repeatedEnumField_.CalculateSize(_repeated_repeatedEnumField_codec);
- size += repeatedMessageField_.CalculateSize(_repeated_repeatedMessageField_codec);
- size += repeatedStringPieceField_.CalculateSize(_repeated_repeatedStringPieceField_codec);
- size += repeatedCordField_.CalculateSize(_repeated_repeatedCordField_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestCamelCaseFieldNames other) {
- if (other == null) {
- return;
- }
- if (other.HasPrimitiveField) {
- PrimitiveField = other.PrimitiveField;
- }
- if (other.HasStringField) {
- StringField = other.StringField;
- }
- if (other.HasEnumField) {
- EnumField = other.EnumField;
- }
- if (other.messageField_ != null) {
- if (messageField_ == null) {
- MessageField = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
- }
- MessageField.MergeFrom(other.MessageField);
- }
- if (other.HasStringPieceField) {
- StringPieceField = other.StringPieceField;
- }
- if (other.HasCordField) {
- CordField = other.CordField;
- }
- repeatedPrimitiveField_.Add(other.repeatedPrimitiveField_);
- repeatedStringField_.Add(other.repeatedStringField_);
- repeatedEnumField_.Add(other.repeatedEnumField_);
- repeatedMessageField_.Add(other.repeatedMessageField_);
- repeatedStringPieceField_.Add(other.repeatedStringPieceField_);
- repeatedCordField_.Add(other.repeatedCordField_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- PrimitiveField = input.ReadInt32();
- break;
- }
- case 18: {
- StringField = input.ReadString();
- break;
- }
- case 24: {
- EnumField = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
- break;
- }
- case 34: {
- if (messageField_ == null) {
- MessageField = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
- }
- input.ReadMessage(MessageField);
- break;
- }
- case 42: {
- StringPieceField = input.ReadString();
- break;
- }
- case 50: {
- CordField = input.ReadString();
- break;
- }
- case 58:
- case 56: {
- repeatedPrimitiveField_.AddEntriesFrom(input, _repeated_repeatedPrimitiveField_codec);
- break;
- }
- case 66: {
- repeatedStringField_.AddEntriesFrom(input, _repeated_repeatedStringField_codec);
- break;
- }
- case 74:
- case 72: {
- repeatedEnumField_.AddEntriesFrom(input, _repeated_repeatedEnumField_codec);
- break;
- }
- case 82: {
- repeatedMessageField_.AddEntriesFrom(input, _repeated_repeatedMessageField_codec);
- break;
- }
- case 90: {
- repeatedStringPieceField_.AddEntriesFrom(input, _repeated_repeatedStringPieceField_codec);
- break;
- }
- case 98: {
- repeatedCordField_.AddEntriesFrom(input, _repeated_repeatedCordField_codec);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// We list fields out of order, to ensure that we're using field number and not
- /// field index to determine serialization order.
- /// </summary>
- public sealed partial class TestFieldOrderings : pb::IExtendableMessage<TestFieldOrderings> {
- private static readonly pb::MessageParser<TestFieldOrderings> _parser = new pb::MessageParser<TestFieldOrderings>(() => new TestFieldOrderings());
- private pb::UnknownFieldSet _unknownFields;
- private pb::ExtensionSet<TestFieldOrderings> _extensions;
- private pb::ExtensionSet<TestFieldOrderings> _Extensions { get { return _extensions; } }
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestFieldOrderings> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[29]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestFieldOrderings() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestFieldOrderings(TestFieldOrderings other) : this() {
- _hasBits0 = other._hasBits0;
- myString_ = other.myString_;
- myInt_ = other.myInt_;
- myFloat_ = other.myFloat_;
- optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- _extensions = pb::ExtensionSet.Clone(other._extensions);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestFieldOrderings Clone() {
- return new TestFieldOrderings(this);
- }
- /// <summary>Field number for the "my_string" field.</summary>
- public const int MyStringFieldNumber = 11;
- private readonly static string MyStringDefaultValue = "";
- private string myString_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string MyString {
- get { return myString_ ?? MyStringDefaultValue; }
- set {
- myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "my_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasMyString {
- get { return myString_ != null; }
- }
- /// <summary>Clears the value of the "my_string" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearMyString() {
- myString_ = null;
- }
- /// <summary>Field number for the "my_int" field.</summary>
- public const int MyIntFieldNumber = 1;
- private readonly static long MyIntDefaultValue = 0L;
- private long myInt_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long MyInt {
- get { if ((_hasBits0 & 1) != 0) { return myInt_; } else { return MyIntDefaultValue; } }
- set {
- _hasBits0 |= 1;
- myInt_ = value;
- }
- }
- /// <summary>Gets whether the "my_int" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasMyInt {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "my_int" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearMyInt() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "my_float" field.</summary>
- public const int MyFloatFieldNumber = 101;
- private readonly static float MyFloatDefaultValue = 0F;
- private float myFloat_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float MyFloat {
- get { if ((_hasBits0 & 2) != 0) { return myFloat_; } else { return MyFloatDefaultValue; } }
- set {
- _hasBits0 |= 2;
- myFloat_ = value;
- }
- }
- /// <summary>Gets whether the "my_float" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasMyFloat {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// <summary>Clears the value of the "my_float" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearMyFloat() {
- _hasBits0 &= ~2;
- }
- /// <summary>Field number for the "optional_nested_message" field.</summary>
- public const int OptionalNestedMessageFieldNumber = 200;
- private global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage optionalNestedMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage OptionalNestedMessage {
- get { return optionalNestedMessage_; }
- set {
- optionalNestedMessage_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestFieldOrderings);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestFieldOrderings other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (MyString != other.MyString) return false;
- if (MyInt != other.MyInt) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MyFloat, other.MyFloat)) return false;
- if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
- if (!Equals(_extensions, other._extensions)) {
- return false;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasMyString) hash ^= MyString.GetHashCode();
- if (HasMyInt) hash ^= MyInt.GetHashCode();
- if (HasMyFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MyFloat);
- if (optionalNestedMessage_ != null) hash ^= OptionalNestedMessage.GetHashCode();
- if (_extensions != null) {
- hash ^= _extensions.GetHashCode();
- }
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasMyInt) {
- output.WriteRawTag(8);
- output.WriteInt64(MyInt);
- }
- if (HasMyString) {
- output.WriteRawTag(90);
- output.WriteString(MyString);
- }
- if (HasMyFloat) {
- output.WriteRawTag(173, 6);
- output.WriteFloat(MyFloat);
- }
- if (optionalNestedMessage_ != null) {
- output.WriteRawTag(194, 12);
- output.WriteMessage(OptionalNestedMessage);
- }
- if (_extensions != null) {
- _extensions.WriteTo(output);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasMyString) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
- }
- if (HasMyInt) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(MyInt);
- }
- if (HasMyFloat) {
- size += 2 + 4;
- }
- if (optionalNestedMessage_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptionalNestedMessage);
- }
- if (_extensions != null) {
- size += _extensions.CalculateSize();
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestFieldOrderings other) {
- if (other == null) {
- return;
- }
- if (other.HasMyString) {
- MyString = other.MyString;
- }
- if (other.HasMyInt) {
- MyInt = other.MyInt;
- }
- if (other.HasMyFloat) {
- MyFloat = other.MyFloat;
- }
- if (other.optionalNestedMessage_ != null) {
- if (optionalNestedMessage_ == null) {
- OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage();
- }
- OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
- }
- pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- }
- break;
- case 8: {
- MyInt = input.ReadInt64();
- break;
- }
- case 90: {
- MyString = input.ReadString();
- break;
- }
- case 813: {
- MyFloat = input.ReadFloat();
- break;
- }
- case 1602: {
- if (optionalNestedMessage_ == null) {
- OptionalNestedMessage = new global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Types.NestedMessage();
- }
- input.ReadMessage(OptionalNestedMessage);
- break;
- }
- }
- }
- }
- public TValue GetExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestFieldOrderings, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestFieldOrderings, TValue> extension) {
- return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
- }
- public void SetExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension, TValue value) {
- pb::ExtensionSet.Set(ref _extensions, extension, value);
- }
- public bool HasExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension) {
- return pb::ExtensionSet.Has(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::Extension<TestFieldOrderings, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::RepeatedExtension<TestFieldOrderings, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestFieldOrderings message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
- private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage(NestedMessage other) : this() {
- _hasBits0 = other._hasBits0;
- oo_ = other.oo_;
- bb_ = other.bb_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage Clone() {
- return new NestedMessage(this);
- }
- /// <summary>Field number for the "oo" field.</summary>
- public const int OoFieldNumber = 2;
- private readonly static long OoDefaultValue = 0L;
- private long oo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Oo {
- get { if ((_hasBits0 & 2) != 0) { return oo_; } else { return OoDefaultValue; } }
- set {
- _hasBits0 |= 2;
- oo_ = value;
- }
- }
- /// <summary>Gets whether the "oo" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOo {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// <summary>Clears the value of the "oo" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOo() {
- _hasBits0 &= ~2;
- }
- /// <summary>Field number for the "bb" field.</summary>
- public const int BbFieldNumber = 1;
- private readonly static int BbDefaultValue = 0;
- private int bb_;
- /// <summary>
- /// The field name "b" fails to compile in proto1 because it conflicts with
- /// a local variable named "b" in one of the generated methods. Doh.
- /// This file needs to compile in proto1 to test backwards-compatibility.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Bb {
- get { if ((_hasBits0 & 1) != 0) { return bb_; } else { return BbDefaultValue; } }
- set {
- _hasBits0 |= 1;
- bb_ = value;
- }
- }
- /// <summary>Gets whether the "bb" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasBb {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "bb" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearBb() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as NestedMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(NestedMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Oo != other.Oo) return false;
- if (Bb != other.Bb) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasOo) hash ^= Oo.GetHashCode();
- if (HasBb) hash ^= Bb.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasBb) {
- output.WriteRawTag(8);
- output.WriteInt32(Bb);
- }
- if (HasOo) {
- output.WriteRawTag(16);
- output.WriteInt64(Oo);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasOo) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Oo);
- }
- if (HasBb) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(NestedMessage other) {
- if (other == null) {
- return;
- }
- if (other.HasOo) {
- Oo = other.Oo;
- }
- if (other.HasBb) {
- Bb = other.Bb;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Bb = input.ReadInt32();
- break;
- }
- case 16: {
- Oo = input.ReadInt64();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- public sealed partial class TestExtensionOrderings1 : pb::IMessage<TestExtensionOrderings1> {
- private static readonly pb::MessageParser<TestExtensionOrderings1> _parser = new pb::MessageParser<TestExtensionOrderings1>(() => new TestExtensionOrderings1());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestExtensionOrderings1> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[30]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestExtensionOrderings1() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestExtensionOrderings1(TestExtensionOrderings1 other) : this() {
- myString_ = other.myString_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestExtensionOrderings1 Clone() {
- return new TestExtensionOrderings1(this);
- }
- /// <summary>Field number for the "my_string" field.</summary>
- public const int MyStringFieldNumber = 1;
- private readonly static string MyStringDefaultValue = "";
- private string myString_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string MyString {
- get { return myString_ ?? MyStringDefaultValue; }
- set {
- myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "my_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasMyString {
- get { return myString_ != null; }
- }
- /// <summary>Clears the value of the "my_string" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearMyString() {
- myString_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestExtensionOrderings1);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestExtensionOrderings1 other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (MyString != other.MyString) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasMyString) hash ^= MyString.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasMyString) {
- output.WriteRawTag(10);
- output.WriteString(MyString);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasMyString) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestExtensionOrderings1 other) {
- if (other == null) {
- return;
- }
- if (other.HasMyString) {
- MyString = other.MyString;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- MyString = input.ReadString();
- break;
- }
- }
- }
- }
- #region Extensions
- /// <summary>Container for extensions for other messages declared in the TestExtensionOrderings1 message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Extensions {
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings1> TestExtOrderings1 =
- 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));
- }
- #endregion
- }
- public sealed partial class TestExtensionOrderings2 : pb::IMessage<TestExtensionOrderings2> {
- private static readonly pb::MessageParser<TestExtensionOrderings2> _parser = new pb::MessageParser<TestExtensionOrderings2>(() => new TestExtensionOrderings2());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestExtensionOrderings2> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[31]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestExtensionOrderings2() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestExtensionOrderings2(TestExtensionOrderings2 other) : this() {
- myString_ = other.myString_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestExtensionOrderings2 Clone() {
- return new TestExtensionOrderings2(this);
- }
- /// <summary>Field number for the "my_string" field.</summary>
- public const int MyStringFieldNumber = 1;
- private readonly static string MyStringDefaultValue = "";
- private string myString_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string MyString {
- get { return myString_ ?? MyStringDefaultValue; }
- set {
- myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "my_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasMyString {
- get { return myString_ != null; }
- }
- /// <summary>Clears the value of the "my_string" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearMyString() {
- myString_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestExtensionOrderings2);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestExtensionOrderings2 other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (MyString != other.MyString) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasMyString) hash ^= MyString.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasMyString) {
- output.WriteRawTag(10);
- output.WriteString(MyString);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasMyString) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestExtensionOrderings2 other) {
- if (other == null) {
- return;
- }
- if (other.HasMyString) {
- MyString = other.MyString;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- MyString = input.ReadString();
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestExtensionOrderings2 message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class TestExtensionOrderings3 : pb::IMessage<TestExtensionOrderings3> {
- private static readonly pb::MessageParser<TestExtensionOrderings3> _parser = new pb::MessageParser<TestExtensionOrderings3>(() => new TestExtensionOrderings3());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestExtensionOrderings3> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestExtensionOrderings3() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestExtensionOrderings3(TestExtensionOrderings3 other) : this() {
- myString_ = other.myString_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestExtensionOrderings3 Clone() {
- return new TestExtensionOrderings3(this);
- }
- /// <summary>Field number for the "my_string" field.</summary>
- public const int MyStringFieldNumber = 1;
- private readonly static string MyStringDefaultValue = "";
- private string myString_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string MyString {
- get { return myString_ ?? MyStringDefaultValue; }
- set {
- myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "my_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasMyString {
- get { return myString_ != null; }
- }
- /// <summary>Clears the value of the "my_string" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearMyString() {
- myString_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestExtensionOrderings3);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestExtensionOrderings3 other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (MyString != other.MyString) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasMyString) hash ^= MyString.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasMyString) {
- output.WriteRawTag(10);
- output.WriteString(MyString);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasMyString) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestExtensionOrderings3 other) {
- if (other == null) {
- return;
- }
- if (other.HasMyString) {
- MyString = other.MyString;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- MyString = input.ReadString();
- break;
- }
- }
- }
- }
- #region Extensions
- /// <summary>Container for extensions for other messages declared in the TestExtensionOrderings3 message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Extensions {
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2.Types.TestExtensionOrderings3> TestExtOrderings3 =
- 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));
- }
- #endregion
- }
- }
- #endregion
- #region Extensions
- /// <summary>Container for extensions for other messages declared in the TestExtensionOrderings2 message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Extensions {
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestFieldOrderings, global::Google.Protobuf.TestProtos.Proto2.TestExtensionOrderings2> TestExtOrderings2 =
- 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));
- }
- #endregion
- }
- public sealed partial class TestExtremeDefaultValues : pb::IMessage<TestExtremeDefaultValues> {
- private static readonly pb::MessageParser<TestExtremeDefaultValues> _parser = new pb::MessageParser<TestExtremeDefaultValues>(() => new TestExtremeDefaultValues());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestExtremeDefaultValues> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[32]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestExtremeDefaultValues() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestExtremeDefaultValues(TestExtremeDefaultValues other) : this() {
- _hasBits0 = other._hasBits0;
- escapedBytes_ = other.escapedBytes_;
- largeUint32_ = other.largeUint32_;
- largeUint64_ = other.largeUint64_;
- smallInt32_ = other.smallInt32_;
- smallInt64_ = other.smallInt64_;
- reallySmallInt32_ = other.reallySmallInt32_;
- reallySmallInt64_ = other.reallySmallInt64_;
- utf8String_ = other.utf8String_;
- zeroFloat_ = other.zeroFloat_;
- oneFloat_ = other.oneFloat_;
- smallFloat_ = other.smallFloat_;
- negativeOneFloat_ = other.negativeOneFloat_;
- negativeFloat_ = other.negativeFloat_;
- largeFloat_ = other.largeFloat_;
- smallNegativeFloat_ = other.smallNegativeFloat_;
- infDouble_ = other.infDouble_;
- negInfDouble_ = other.negInfDouble_;
- nanDouble_ = other.nanDouble_;
- infFloat_ = other.infFloat_;
- negInfFloat_ = other.negInfFloat_;
- nanFloat_ = other.nanFloat_;
- cppTrigraph_ = other.cppTrigraph_;
- stringWithZero_ = other.stringWithZero_;
- bytesWithZero_ = other.bytesWithZero_;
- stringPieceWithZero_ = other.stringPieceWithZero_;
- cordWithZero_ = other.cordWithZero_;
- replacementString_ = other.replacementString_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestExtremeDefaultValues Clone() {
- return new TestExtremeDefaultValues(this);
- }
- /// <summary>Field number for the "escaped_bytes" field.</summary>
- public const int EscapedBytesFieldNumber = 1;
- private readonly static pb::ByteString EscapedBytesDefaultValue = pb::ByteString.FromBase64("AAEHCAwKDQkLXCci/g==");
- private pb::ByteString escapedBytes_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString EscapedBytes {
- get { return escapedBytes_ ?? EscapedBytesDefaultValue; }
- set {
- escapedBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "escaped_bytes" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasEscapedBytes {
- get { return escapedBytes_ != null; }
- }
- /// <summary>Clears the value of the "escaped_bytes" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearEscapedBytes() {
- escapedBytes_ = null;
- }
- /// <summary>Field number for the "large_uint32" field.</summary>
- public const int LargeUint32FieldNumber = 2;
- private readonly static uint LargeUint32DefaultValue = 4294967295;
- private uint largeUint32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint LargeUint32 {
- get { if ((_hasBits0 & 1) != 0) { return largeUint32_; } else { return LargeUint32DefaultValue; } }
- set {
- _hasBits0 |= 1;
- largeUint32_ = value;
- }
- }
- /// <summary>Gets whether the "large_uint32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasLargeUint32 {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "large_uint32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearLargeUint32() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "large_uint64" field.</summary>
- public const int LargeUint64FieldNumber = 3;
- private readonly static ulong LargeUint64DefaultValue = 18446744073709551615UL;
- private ulong largeUint64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ulong LargeUint64 {
- get { if ((_hasBits0 & 2) != 0) { return largeUint64_; } else { return LargeUint64DefaultValue; } }
- set {
- _hasBits0 |= 2;
- largeUint64_ = value;
- }
- }
- /// <summary>Gets whether the "large_uint64" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasLargeUint64 {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// <summary>Clears the value of the "large_uint64" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearLargeUint64() {
- _hasBits0 &= ~2;
- }
- /// <summary>Field number for the "small_int32" field.</summary>
- public const int SmallInt32FieldNumber = 4;
- private readonly static int SmallInt32DefaultValue = -2147483647;
- private int smallInt32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int SmallInt32 {
- get { if ((_hasBits0 & 4) != 0) { return smallInt32_; } else { return SmallInt32DefaultValue; } }
- set {
- _hasBits0 |= 4;
- smallInt32_ = value;
- }
- }
- /// <summary>Gets whether the "small_int32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasSmallInt32 {
- get { return (_hasBits0 & 4) != 0; }
- }
- /// <summary>Clears the value of the "small_int32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearSmallInt32() {
- _hasBits0 &= ~4;
- }
- /// <summary>Field number for the "small_int64" field.</summary>
- public const int SmallInt64FieldNumber = 5;
- private readonly static long SmallInt64DefaultValue = -9223372036854775807L;
- private long smallInt64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long SmallInt64 {
- get { if ((_hasBits0 & 8) != 0) { return smallInt64_; } else { return SmallInt64DefaultValue; } }
- set {
- _hasBits0 |= 8;
- smallInt64_ = value;
- }
- }
- /// <summary>Gets whether the "small_int64" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasSmallInt64 {
- get { return (_hasBits0 & 8) != 0; }
- }
- /// <summary>Clears the value of the "small_int64" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearSmallInt64() {
- _hasBits0 &= ~8;
- }
- /// <summary>Field number for the "really_small_int32" field.</summary>
- public const int ReallySmallInt32FieldNumber = 21;
- private readonly static int ReallySmallInt32DefaultValue = -2147483648;
- private int reallySmallInt32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int ReallySmallInt32 {
- get { if ((_hasBits0 & 131072) != 0) { return reallySmallInt32_; } else { return ReallySmallInt32DefaultValue; } }
- set {
- _hasBits0 |= 131072;
- reallySmallInt32_ = value;
- }
- }
- /// <summary>Gets whether the "really_small_int32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasReallySmallInt32 {
- get { return (_hasBits0 & 131072) != 0; }
- }
- /// <summary>Clears the value of the "really_small_int32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearReallySmallInt32() {
- _hasBits0 &= ~131072;
- }
- /// <summary>Field number for the "really_small_int64" field.</summary>
- public const int ReallySmallInt64FieldNumber = 22;
- private readonly static long ReallySmallInt64DefaultValue = -9223372036854775808L;
- private long reallySmallInt64_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long ReallySmallInt64 {
- get { if ((_hasBits0 & 262144) != 0) { return reallySmallInt64_; } else { return ReallySmallInt64DefaultValue; } }
- set {
- _hasBits0 |= 262144;
- reallySmallInt64_ = value;
- }
- }
- /// <summary>Gets whether the "really_small_int64" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasReallySmallInt64 {
- get { return (_hasBits0 & 262144) != 0; }
- }
- /// <summary>Clears the value of the "really_small_int64" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearReallySmallInt64() {
- _hasBits0 &= ~262144;
- }
- /// <summary>Field number for the "utf8_string" field.</summary>
- public const int Utf8StringFieldNumber = 6;
- private readonly static string Utf8StringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("4Yi0"), 0, 3);
- private string utf8String_;
- /// <summary>
- /// The default value here is UTF-8 for "\u1234". (We could also just type
- /// the UTF-8 text directly into this text file rather than escape it, but
- /// lots of people use editors that would be confused by this.)
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Utf8String {
- get { return utf8String_ ?? Utf8StringDefaultValue; }
- set {
- utf8String_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "utf8_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasUtf8String {
- get { return utf8String_ != null; }
- }
- /// <summary>Clears the value of the "utf8_string" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearUtf8String() {
- utf8String_ = null;
- }
- /// <summary>Field number for the "zero_float" field.</summary>
- public const int ZeroFloatFieldNumber = 7;
- private readonly static float ZeroFloatDefaultValue = 0F;
- private float zeroFloat_;
- /// <summary>
- /// Tests for single-precision floating-point values.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float ZeroFloat {
- get { if ((_hasBits0 & 16) != 0) { return zeroFloat_; } else { return ZeroFloatDefaultValue; } }
- set {
- _hasBits0 |= 16;
- zeroFloat_ = value;
- }
- }
- /// <summary>Gets whether the "zero_float" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasZeroFloat {
- get { return (_hasBits0 & 16) != 0; }
- }
- /// <summary>Clears the value of the "zero_float" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearZeroFloat() {
- _hasBits0 &= ~16;
- }
- /// <summary>Field number for the "one_float" field.</summary>
- public const int OneFloatFieldNumber = 8;
- private readonly static float OneFloatDefaultValue = 1F;
- private float oneFloat_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float OneFloat {
- get { if ((_hasBits0 & 32) != 0) { return oneFloat_; } else { return OneFloatDefaultValue; } }
- set {
- _hasBits0 |= 32;
- oneFloat_ = value;
- }
- }
- /// <summary>Gets whether the "one_float" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOneFloat {
- get { return (_hasBits0 & 32) != 0; }
- }
- /// <summary>Clears the value of the "one_float" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOneFloat() {
- _hasBits0 &= ~32;
- }
- /// <summary>Field number for the "small_float" field.</summary>
- public const int SmallFloatFieldNumber = 9;
- private readonly static float SmallFloatDefaultValue = 1.5F;
- private float smallFloat_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float SmallFloat {
- get { if ((_hasBits0 & 64) != 0) { return smallFloat_; } else { return SmallFloatDefaultValue; } }
- set {
- _hasBits0 |= 64;
- smallFloat_ = value;
- }
- }
- /// <summary>Gets whether the "small_float" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasSmallFloat {
- get { return (_hasBits0 & 64) != 0; }
- }
- /// <summary>Clears the value of the "small_float" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearSmallFloat() {
- _hasBits0 &= ~64;
- }
- /// <summary>Field number for the "negative_one_float" field.</summary>
- public const int NegativeOneFloatFieldNumber = 10;
- private readonly static float NegativeOneFloatDefaultValue = -1F;
- private float negativeOneFloat_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float NegativeOneFloat {
- get { if ((_hasBits0 & 128) != 0) { return negativeOneFloat_; } else { return NegativeOneFloatDefaultValue; } }
- set {
- _hasBits0 |= 128;
- negativeOneFloat_ = value;
- }
- }
- /// <summary>Gets whether the "negative_one_float" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasNegativeOneFloat {
- get { return (_hasBits0 & 128) != 0; }
- }
- /// <summary>Clears the value of the "negative_one_float" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearNegativeOneFloat() {
- _hasBits0 &= ~128;
- }
- /// <summary>Field number for the "negative_float" field.</summary>
- public const int NegativeFloatFieldNumber = 11;
- private readonly static float NegativeFloatDefaultValue = -1.5F;
- private float negativeFloat_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float NegativeFloat {
- get { if ((_hasBits0 & 256) != 0) { return negativeFloat_; } else { return NegativeFloatDefaultValue; } }
- set {
- _hasBits0 |= 256;
- negativeFloat_ = value;
- }
- }
- /// <summary>Gets whether the "negative_float" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasNegativeFloat {
- get { return (_hasBits0 & 256) != 0; }
- }
- /// <summary>Clears the value of the "negative_float" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearNegativeFloat() {
- _hasBits0 &= ~256;
- }
- /// <summary>Field number for the "large_float" field.</summary>
- public const int LargeFloatFieldNumber = 12;
- private readonly static float LargeFloatDefaultValue = 2e+08F;
- private float largeFloat_;
- /// <summary>
- /// Using exponents
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float LargeFloat {
- get { if ((_hasBits0 & 512) != 0) { return largeFloat_; } else { return LargeFloatDefaultValue; } }
- set {
- _hasBits0 |= 512;
- largeFloat_ = value;
- }
- }
- /// <summary>Gets whether the "large_float" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasLargeFloat {
- get { return (_hasBits0 & 512) != 0; }
- }
- /// <summary>Clears the value of the "large_float" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearLargeFloat() {
- _hasBits0 &= ~512;
- }
- /// <summary>Field number for the "small_negative_float" field.</summary>
- public const int SmallNegativeFloatFieldNumber = 13;
- private readonly static float SmallNegativeFloatDefaultValue = -8e-28F;
- private float smallNegativeFloat_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float SmallNegativeFloat {
- get { if ((_hasBits0 & 1024) != 0) { return smallNegativeFloat_; } else { return SmallNegativeFloatDefaultValue; } }
- set {
- _hasBits0 |= 1024;
- smallNegativeFloat_ = value;
- }
- }
- /// <summary>Gets whether the "small_negative_float" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasSmallNegativeFloat {
- get { return (_hasBits0 & 1024) != 0; }
- }
- /// <summary>Clears the value of the "small_negative_float" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearSmallNegativeFloat() {
- _hasBits0 &= ~1024;
- }
- /// <summary>Field number for the "inf_double" field.</summary>
- public const int InfDoubleFieldNumber = 14;
- private readonly static double InfDoubleDefaultValue = double.PositiveInfinity;
- private double infDouble_;
- /// <summary>
- /// Text for nonfinite floating-point values.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double InfDouble {
- get { if ((_hasBits0 & 2048) != 0) { return infDouble_; } else { return InfDoubleDefaultValue; } }
- set {
- _hasBits0 |= 2048;
- infDouble_ = value;
- }
- }
- /// <summary>Gets whether the "inf_double" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasInfDouble {
- get { return (_hasBits0 & 2048) != 0; }
- }
- /// <summary>Clears the value of the "inf_double" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearInfDouble() {
- _hasBits0 &= ~2048;
- }
- /// <summary>Field number for the "neg_inf_double" field.</summary>
- public const int NegInfDoubleFieldNumber = 15;
- private readonly static double NegInfDoubleDefaultValue = double.NegativeInfinity;
- private double negInfDouble_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double NegInfDouble {
- get { if ((_hasBits0 & 4096) != 0) { return negInfDouble_; } else { return NegInfDoubleDefaultValue; } }
- set {
- _hasBits0 |= 4096;
- negInfDouble_ = value;
- }
- }
- /// <summary>Gets whether the "neg_inf_double" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasNegInfDouble {
- get { return (_hasBits0 & 4096) != 0; }
- }
- /// <summary>Clears the value of the "neg_inf_double" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearNegInfDouble() {
- _hasBits0 &= ~4096;
- }
- /// <summary>Field number for the "nan_double" field.</summary>
- public const int NanDoubleFieldNumber = 16;
- private readonly static double NanDoubleDefaultValue = double.NaN;
- private double nanDouble_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double NanDouble {
- get { if ((_hasBits0 & 8192) != 0) { return nanDouble_; } else { return NanDoubleDefaultValue; } }
- set {
- _hasBits0 |= 8192;
- nanDouble_ = value;
- }
- }
- /// <summary>Gets whether the "nan_double" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasNanDouble {
- get { return (_hasBits0 & 8192) != 0; }
- }
- /// <summary>Clears the value of the "nan_double" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearNanDouble() {
- _hasBits0 &= ~8192;
- }
- /// <summary>Field number for the "inf_float" field.</summary>
- public const int InfFloatFieldNumber = 17;
- private readonly static float InfFloatDefaultValue = float.PositiveInfinity;
- private float infFloat_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float InfFloat {
- get { if ((_hasBits0 & 16384) != 0) { return infFloat_; } else { return InfFloatDefaultValue; } }
- set {
- _hasBits0 |= 16384;
- infFloat_ = value;
- }
- }
- /// <summary>Gets whether the "inf_float" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasInfFloat {
- get { return (_hasBits0 & 16384) != 0; }
- }
- /// <summary>Clears the value of the "inf_float" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearInfFloat() {
- _hasBits0 &= ~16384;
- }
- /// <summary>Field number for the "neg_inf_float" field.</summary>
- public const int NegInfFloatFieldNumber = 18;
- private readonly static float NegInfFloatDefaultValue = float.NegativeInfinity;
- private float negInfFloat_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float NegInfFloat {
- get { if ((_hasBits0 & 32768) != 0) { return negInfFloat_; } else { return NegInfFloatDefaultValue; } }
- set {
- _hasBits0 |= 32768;
- negInfFloat_ = value;
- }
- }
- /// <summary>Gets whether the "neg_inf_float" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasNegInfFloat {
- get { return (_hasBits0 & 32768) != 0; }
- }
- /// <summary>Clears the value of the "neg_inf_float" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearNegInfFloat() {
- _hasBits0 &= ~32768;
- }
- /// <summary>Field number for the "nan_float" field.</summary>
- public const int NanFloatFieldNumber = 19;
- private readonly static float NanFloatDefaultValue = float.NaN;
- private float nanFloat_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float NanFloat {
- get { if ((_hasBits0 & 65536) != 0) { return nanFloat_; } else { return NanFloatDefaultValue; } }
- set {
- _hasBits0 |= 65536;
- nanFloat_ = value;
- }
- }
- /// <summary>Gets whether the "nan_float" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasNanFloat {
- get { return (_hasBits0 & 65536) != 0; }
- }
- /// <summary>Clears the value of the "nan_float" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearNanFloat() {
- _hasBits0 &= ~65536;
- }
- /// <summary>Field number for the "cpp_trigraph" field.</summary>
- public const int CppTrigraphFieldNumber = 20;
- private readonly static string CppTrigraphDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("PyA/ID8/ID8/ID8/PyA/Py8gPz8t"), 0, 21);
- private string cppTrigraph_;
- /// <summary>
- /// Tests for C++ trigraphs.
- /// Trigraphs should be escaped in C++ generated files, but they should not be
- /// escaped for other languages.
- /// Note that in .proto file, "\?" is a valid way to escape ? in string
- /// literals.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string CppTrigraph {
- get { return cppTrigraph_ ?? CppTrigraphDefaultValue; }
- set {
- cppTrigraph_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "cpp_trigraph" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasCppTrigraph {
- get { return cppTrigraph_ != null; }
- }
- /// <summary>Clears the value of the "cpp_trigraph" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearCppTrigraph() {
- cppTrigraph_ = null;
- }
- /// <summary>Field number for the "string_with_zero" field.</summary>
- public const int StringWithZeroFieldNumber = 23;
- private readonly static string StringWithZeroDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("aGVsAGxv"), 0, 6);
- private string stringWithZero_;
- /// <summary>
- /// String defaults containing the character '\000'
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string StringWithZero {
- get { return stringWithZero_ ?? StringWithZeroDefaultValue; }
- set {
- stringWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "string_with_zero" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasStringWithZero {
- get { return stringWithZero_ != null; }
- }
- /// <summary>Clears the value of the "string_with_zero" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearStringWithZero() {
- stringWithZero_ = null;
- }
- /// <summary>Field number for the "bytes_with_zero" field.</summary>
- public const int BytesWithZeroFieldNumber = 24;
- private readonly static pb::ByteString BytesWithZeroDefaultValue = pb::ByteString.FromBase64("d29yAGxk");
- private pb::ByteString bytesWithZero_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString BytesWithZero {
- get { return bytesWithZero_ ?? BytesWithZeroDefaultValue; }
- set {
- bytesWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "bytes_with_zero" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasBytesWithZero {
- get { return bytesWithZero_ != null; }
- }
- /// <summary>Clears the value of the "bytes_with_zero" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearBytesWithZero() {
- bytesWithZero_ = null;
- }
- /// <summary>Field number for the "string_piece_with_zero" field.</summary>
- public const int StringPieceWithZeroFieldNumber = 25;
- private readonly static string StringPieceWithZeroDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("YWIAYw=="), 0, 4);
- private string stringPieceWithZero_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string StringPieceWithZero {
- get { return stringPieceWithZero_ ?? StringPieceWithZeroDefaultValue; }
- set {
- stringPieceWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "string_piece_with_zero" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasStringPieceWithZero {
- get { return stringPieceWithZero_ != null; }
- }
- /// <summary>Clears the value of the "string_piece_with_zero" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearStringPieceWithZero() {
- stringPieceWithZero_ = null;
- }
- /// <summary>Field number for the "cord_with_zero" field.</summary>
- public const int CordWithZeroFieldNumber = 26;
- private readonly static string CordWithZeroDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("MTIAMw=="), 0, 4);
- private string cordWithZero_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string CordWithZero {
- get { return cordWithZero_ ?? CordWithZeroDefaultValue; }
- set {
- cordWithZero_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "cord_with_zero" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasCordWithZero {
- get { return cordWithZero_ != null; }
- }
- /// <summary>Clears the value of the "cord_with_zero" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearCordWithZero() {
- cordWithZero_ = null;
- }
- /// <summary>Field number for the "replacement_string" field.</summary>
- public const int ReplacementStringFieldNumber = 27;
- private readonly static string ReplacementStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("JHt1bmtub3dufQ=="), 0, 10);
- private string replacementString_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string ReplacementString {
- get { return replacementString_ ?? ReplacementStringDefaultValue; }
- set {
- replacementString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "replacement_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasReplacementString {
- get { return replacementString_ != null; }
- }
- /// <summary>Clears the value of the "replacement_string" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearReplacementString() {
- replacementString_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestExtremeDefaultValues);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestExtremeDefaultValues other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (EscapedBytes != other.EscapedBytes) return false;
- if (LargeUint32 != other.LargeUint32) return false;
- if (LargeUint64 != other.LargeUint64) return false;
- if (SmallInt32 != other.SmallInt32) return false;
- if (SmallInt64 != other.SmallInt64) return false;
- if (ReallySmallInt32 != other.ReallySmallInt32) return false;
- if (ReallySmallInt64 != other.ReallySmallInt64) return false;
- if (Utf8String != other.Utf8String) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ZeroFloat, other.ZeroFloat)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OneFloat, other.OneFloat)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SmallFloat, other.SmallFloat)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NegativeOneFloat, other.NegativeOneFloat)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NegativeFloat, other.NegativeFloat)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LargeFloat, other.LargeFloat)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SmallNegativeFloat, other.SmallNegativeFloat)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(InfDouble, other.InfDouble)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NegInfDouble, other.NegInfDouble)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NanDouble, other.NanDouble)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(InfFloat, other.InfFloat)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NegInfFloat, other.NegInfFloat)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NanFloat, other.NanFloat)) return false;
- if (CppTrigraph != other.CppTrigraph) return false;
- if (StringWithZero != other.StringWithZero) return false;
- if (BytesWithZero != other.BytesWithZero) return false;
- if (StringPieceWithZero != other.StringPieceWithZero) return false;
- if (CordWithZero != other.CordWithZero) return false;
- if (ReplacementString != other.ReplacementString) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasEscapedBytes) hash ^= EscapedBytes.GetHashCode();
- if (HasLargeUint32) hash ^= LargeUint32.GetHashCode();
- if (HasLargeUint64) hash ^= LargeUint64.GetHashCode();
- if (HasSmallInt32) hash ^= SmallInt32.GetHashCode();
- if (HasSmallInt64) hash ^= SmallInt64.GetHashCode();
- if (HasReallySmallInt32) hash ^= ReallySmallInt32.GetHashCode();
- if (HasReallySmallInt64) hash ^= ReallySmallInt64.GetHashCode();
- if (HasUtf8String) hash ^= Utf8String.GetHashCode();
- if (HasZeroFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ZeroFloat);
- if (HasOneFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OneFloat);
- if (HasSmallFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SmallFloat);
- if (HasNegativeOneFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NegativeOneFloat);
- if (HasNegativeFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NegativeFloat);
- if (HasLargeFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LargeFloat);
- if (HasSmallNegativeFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SmallNegativeFloat);
- if (HasInfDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(InfDouble);
- if (HasNegInfDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NegInfDouble);
- if (HasNanDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NanDouble);
- if (HasInfFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(InfFloat);
- if (HasNegInfFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NegInfFloat);
- if (HasNanFloat) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NanFloat);
- if (HasCppTrigraph) hash ^= CppTrigraph.GetHashCode();
- if (HasStringWithZero) hash ^= StringWithZero.GetHashCode();
- if (HasBytesWithZero) hash ^= BytesWithZero.GetHashCode();
- if (HasStringPieceWithZero) hash ^= StringPieceWithZero.GetHashCode();
- if (HasCordWithZero) hash ^= CordWithZero.GetHashCode();
- if (HasReplacementString) hash ^= ReplacementString.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasEscapedBytes) {
- output.WriteRawTag(10);
- output.WriteBytes(EscapedBytes);
- }
- if (HasLargeUint32) {
- output.WriteRawTag(16);
- output.WriteUInt32(LargeUint32);
- }
- if (HasLargeUint64) {
- output.WriteRawTag(24);
- output.WriteUInt64(LargeUint64);
- }
- if (HasSmallInt32) {
- output.WriteRawTag(32);
- output.WriteInt32(SmallInt32);
- }
- if (HasSmallInt64) {
- output.WriteRawTag(40);
- output.WriteInt64(SmallInt64);
- }
- if (HasUtf8String) {
- output.WriteRawTag(50);
- output.WriteString(Utf8String);
- }
- if (HasZeroFloat) {
- output.WriteRawTag(61);
- output.WriteFloat(ZeroFloat);
- }
- if (HasOneFloat) {
- output.WriteRawTag(69);
- output.WriteFloat(OneFloat);
- }
- if (HasSmallFloat) {
- output.WriteRawTag(77);
- output.WriteFloat(SmallFloat);
- }
- if (HasNegativeOneFloat) {
- output.WriteRawTag(85);
- output.WriteFloat(NegativeOneFloat);
- }
- if (HasNegativeFloat) {
- output.WriteRawTag(93);
- output.WriteFloat(NegativeFloat);
- }
- if (HasLargeFloat) {
- output.WriteRawTag(101);
- output.WriteFloat(LargeFloat);
- }
- if (HasSmallNegativeFloat) {
- output.WriteRawTag(109);
- output.WriteFloat(SmallNegativeFloat);
- }
- if (HasInfDouble) {
- output.WriteRawTag(113);
- output.WriteDouble(InfDouble);
- }
- if (HasNegInfDouble) {
- output.WriteRawTag(121);
- output.WriteDouble(NegInfDouble);
- }
- if (HasNanDouble) {
- output.WriteRawTag(129, 1);
- output.WriteDouble(NanDouble);
- }
- if (HasInfFloat) {
- output.WriteRawTag(141, 1);
- output.WriteFloat(InfFloat);
- }
- if (HasNegInfFloat) {
- output.WriteRawTag(149, 1);
- output.WriteFloat(NegInfFloat);
- }
- if (HasNanFloat) {
- output.WriteRawTag(157, 1);
- output.WriteFloat(NanFloat);
- }
- if (HasCppTrigraph) {
- output.WriteRawTag(162, 1);
- output.WriteString(CppTrigraph);
- }
- if (HasReallySmallInt32) {
- output.WriteRawTag(168, 1);
- output.WriteInt32(ReallySmallInt32);
- }
- if (HasReallySmallInt64) {
- output.WriteRawTag(176, 1);
- output.WriteInt64(ReallySmallInt64);
- }
- if (HasStringWithZero) {
- output.WriteRawTag(186, 1);
- output.WriteString(StringWithZero);
- }
- if (HasBytesWithZero) {
- output.WriteRawTag(194, 1);
- output.WriteBytes(BytesWithZero);
- }
- if (HasStringPieceWithZero) {
- output.WriteRawTag(202, 1);
- output.WriteString(StringPieceWithZero);
- }
- if (HasCordWithZero) {
- output.WriteRawTag(210, 1);
- output.WriteString(CordWithZero);
- }
- if (HasReplacementString) {
- output.WriteRawTag(218, 1);
- output.WriteString(ReplacementString);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasEscapedBytes) {
- size += 1 + pb::CodedOutputStream.ComputeBytesSize(EscapedBytes);
- }
- if (HasLargeUint32) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LargeUint32);
- }
- if (HasLargeUint64) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LargeUint64);
- }
- if (HasSmallInt32) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(SmallInt32);
- }
- if (HasSmallInt64) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(SmallInt64);
- }
- if (HasReallySmallInt32) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(ReallySmallInt32);
- }
- if (HasReallySmallInt64) {
- size += 2 + pb::CodedOutputStream.ComputeInt64Size(ReallySmallInt64);
- }
- if (HasUtf8String) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Utf8String);
- }
- if (HasZeroFloat) {
- size += 1 + 4;
- }
- if (HasOneFloat) {
- size += 1 + 4;
- }
- if (HasSmallFloat) {
- size += 1 + 4;
- }
- if (HasNegativeOneFloat) {
- size += 1 + 4;
- }
- if (HasNegativeFloat) {
- size += 1 + 4;
- }
- if (HasLargeFloat) {
- size += 1 + 4;
- }
- if (HasSmallNegativeFloat) {
- size += 1 + 4;
- }
- if (HasInfDouble) {
- size += 1 + 8;
- }
- if (HasNegInfDouble) {
- size += 1 + 8;
- }
- if (HasNanDouble) {
- size += 2 + 8;
- }
- if (HasInfFloat) {
- size += 2 + 4;
- }
- if (HasNegInfFloat) {
- size += 2 + 4;
- }
- if (HasNanFloat) {
- size += 2 + 4;
- }
- if (HasCppTrigraph) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(CppTrigraph);
- }
- if (HasStringWithZero) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(StringWithZero);
- }
- if (HasBytesWithZero) {
- size += 2 + pb::CodedOutputStream.ComputeBytesSize(BytesWithZero);
- }
- if (HasStringPieceWithZero) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(StringPieceWithZero);
- }
- if (HasCordWithZero) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(CordWithZero);
- }
- if (HasReplacementString) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(ReplacementString);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestExtremeDefaultValues other) {
- if (other == null) {
- return;
- }
- if (other.HasEscapedBytes) {
- EscapedBytes = other.EscapedBytes;
- }
- if (other.HasLargeUint32) {
- LargeUint32 = other.LargeUint32;
- }
- if (other.HasLargeUint64) {
- LargeUint64 = other.LargeUint64;
- }
- if (other.HasSmallInt32) {
- SmallInt32 = other.SmallInt32;
- }
- if (other.HasSmallInt64) {
- SmallInt64 = other.SmallInt64;
- }
- if (other.HasReallySmallInt32) {
- ReallySmallInt32 = other.ReallySmallInt32;
- }
- if (other.HasReallySmallInt64) {
- ReallySmallInt64 = other.ReallySmallInt64;
- }
- if (other.HasUtf8String) {
- Utf8String = other.Utf8String;
- }
- if (other.HasZeroFloat) {
- ZeroFloat = other.ZeroFloat;
- }
- if (other.HasOneFloat) {
- OneFloat = other.OneFloat;
- }
- if (other.HasSmallFloat) {
- SmallFloat = other.SmallFloat;
- }
- if (other.HasNegativeOneFloat) {
- NegativeOneFloat = other.NegativeOneFloat;
- }
- if (other.HasNegativeFloat) {
- NegativeFloat = other.NegativeFloat;
- }
- if (other.HasLargeFloat) {
- LargeFloat = other.LargeFloat;
- }
- if (other.HasSmallNegativeFloat) {
- SmallNegativeFloat = other.SmallNegativeFloat;
- }
- if (other.HasInfDouble) {
- InfDouble = other.InfDouble;
- }
- if (other.HasNegInfDouble) {
- NegInfDouble = other.NegInfDouble;
- }
- if (other.HasNanDouble) {
- NanDouble = other.NanDouble;
- }
- if (other.HasInfFloat) {
- InfFloat = other.InfFloat;
- }
- if (other.HasNegInfFloat) {
- NegInfFloat = other.NegInfFloat;
- }
- if (other.HasNanFloat) {
- NanFloat = other.NanFloat;
- }
- if (other.HasCppTrigraph) {
- CppTrigraph = other.CppTrigraph;
- }
- if (other.HasStringWithZero) {
- StringWithZero = other.StringWithZero;
- }
- if (other.HasBytesWithZero) {
- BytesWithZero = other.BytesWithZero;
- }
- if (other.HasStringPieceWithZero) {
- StringPieceWithZero = other.StringPieceWithZero;
- }
- if (other.HasCordWithZero) {
- CordWithZero = other.CordWithZero;
- }
- if (other.HasReplacementString) {
- ReplacementString = other.ReplacementString;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- EscapedBytes = input.ReadBytes();
- break;
- }
- case 16: {
- LargeUint32 = input.ReadUInt32();
- break;
- }
- case 24: {
- LargeUint64 = input.ReadUInt64();
- break;
- }
- case 32: {
- SmallInt32 = input.ReadInt32();
- break;
- }
- case 40: {
- SmallInt64 = input.ReadInt64();
- break;
- }
- case 50: {
- Utf8String = input.ReadString();
- break;
- }
- case 61: {
- ZeroFloat = input.ReadFloat();
- break;
- }
- case 69: {
- OneFloat = input.ReadFloat();
- break;
- }
- case 77: {
- SmallFloat = input.ReadFloat();
- break;
- }
- case 85: {
- NegativeOneFloat = input.ReadFloat();
- break;
- }
- case 93: {
- NegativeFloat = input.ReadFloat();
- break;
- }
- case 101: {
- LargeFloat = input.ReadFloat();
- break;
- }
- case 109: {
- SmallNegativeFloat = input.ReadFloat();
- break;
- }
- case 113: {
- InfDouble = input.ReadDouble();
- break;
- }
- case 121: {
- NegInfDouble = input.ReadDouble();
- break;
- }
- case 129: {
- NanDouble = input.ReadDouble();
- break;
- }
- case 141: {
- InfFloat = input.ReadFloat();
- break;
- }
- case 149: {
- NegInfFloat = input.ReadFloat();
- break;
- }
- case 157: {
- NanFloat = input.ReadFloat();
- break;
- }
- case 162: {
- CppTrigraph = input.ReadString();
- break;
- }
- case 168: {
- ReallySmallInt32 = input.ReadInt32();
- break;
- }
- case 176: {
- ReallySmallInt64 = input.ReadInt64();
- break;
- }
- case 186: {
- StringWithZero = input.ReadString();
- break;
- }
- case 194: {
- BytesWithZero = input.ReadBytes();
- break;
- }
- case 202: {
- StringPieceWithZero = input.ReadString();
- break;
- }
- case 210: {
- CordWithZero = input.ReadString();
- break;
- }
- case 218: {
- ReplacementString = input.ReadString();
- break;
- }
- }
- }
- }
- }
- public sealed partial class SparseEnumMessage : pb::IMessage<SparseEnumMessage> {
- private static readonly pb::MessageParser<SparseEnumMessage> _parser = new pb::MessageParser<SparseEnumMessage>(() => new SparseEnumMessage());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<SparseEnumMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[33]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SparseEnumMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SparseEnumMessage(SparseEnumMessage other) : this() {
- _hasBits0 = other._hasBits0;
- sparseEnum_ = other.sparseEnum_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SparseEnumMessage Clone() {
- return new SparseEnumMessage(this);
- }
- /// <summary>Field number for the "sparse_enum" field.</summary>
- public const int SparseEnumFieldNumber = 1;
- private readonly static global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum SparseEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum.SparseA;
- private global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum sparseEnum_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum SparseEnum {
- get { if ((_hasBits0 & 1) != 0) { return sparseEnum_; } else { return SparseEnumDefaultValue; } }
- set {
- _hasBits0 |= 1;
- sparseEnum_ = value;
- }
- }
- /// <summary>Gets whether the "sparse_enum" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasSparseEnum {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "sparse_enum" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearSparseEnum() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as SparseEnumMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(SparseEnumMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (SparseEnum != other.SparseEnum) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasSparseEnum) hash ^= SparseEnum.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasSparseEnum) {
- output.WriteRawTag(8);
- output.WriteEnum((int) SparseEnum);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasSparseEnum) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SparseEnum);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(SparseEnumMessage other) {
- if (other == null) {
- return;
- }
- if (other.HasSparseEnum) {
- SparseEnum = other.SparseEnum;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- SparseEnum = (global::Google.Protobuf.TestProtos.Proto2.TestSparseEnum) input.ReadEnum();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Test String and Bytes: string is for valid UTF-8 strings
- /// </summary>
- public sealed partial class OneString : pb::IMessage<OneString> {
- private static readonly pb::MessageParser<OneString> _parser = new pb::MessageParser<OneString>(() => new OneString());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<OneString> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[34]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneString() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneString(OneString other) : this() {
- data_ = other.data_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneString Clone() {
- return new OneString(this);
- }
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private readonly static string DataDefaultValue = "";
- private string data_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Data {
- get { return data_ ?? DataDefaultValue; }
- set {
- data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "data" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasData {
- get { return data_ != null; }
- }
- /// <summary>Clears the value of the "data" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearData() {
- data_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as OneString);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(OneString other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasData) hash ^= Data.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasData) {
- output.WriteRawTag(10);
- output.WriteString(Data);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasData) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Data);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(OneString other) {
- if (other == null) {
- return;
- }
- if (other.HasData) {
- Data = other.Data;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- Data = input.ReadString();
- break;
- }
- }
- }
- }
- }
- public sealed partial class MoreString : pb::IMessage<MoreString> {
- private static readonly pb::MessageParser<MoreString> _parser = new pb::MessageParser<MoreString>(() => new MoreString());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<MoreString> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[35]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MoreString() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MoreString(MoreString other) : this() {
- data_ = other.data_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MoreString Clone() {
- return new MoreString(this);
- }
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private static readonly pb::FieldCodec<string> _repeated_data_codec
- = pb::FieldCodec.ForString(10);
- private readonly pbc::RepeatedField<string> data_ = new pbc::RepeatedField<string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<string> Data {
- get { return data_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as MoreString);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(MoreString other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!data_.Equals(other.data_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= data_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- data_.WriteTo(output, _repeated_data_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += data_.CalculateSize(_repeated_data_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(MoreString other) {
- if (other == null) {
- return;
- }
- data_.Add(other.data_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- data_.AddEntriesFrom(input, _repeated_data_codec);
- break;
- }
- }
- }
- }
- }
- public sealed partial class OneBytes : pb::IMessage<OneBytes> {
- private static readonly pb::MessageParser<OneBytes> _parser = new pb::MessageParser<OneBytes>(() => new OneBytes());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<OneBytes> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[36]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneBytes() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneBytes(OneBytes other) : this() {
- data_ = other.data_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneBytes Clone() {
- return new OneBytes(this);
- }
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private readonly static pb::ByteString DataDefaultValue = pb::ByteString.Empty;
- private pb::ByteString data_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString Data {
- get { return data_ ?? DataDefaultValue; }
- set {
- data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "data" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasData {
- get { return data_ != null; }
- }
- /// <summary>Clears the value of the "data" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearData() {
- data_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as OneBytes);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(OneBytes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasData) hash ^= Data.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasData) {
- output.WriteRawTag(10);
- output.WriteBytes(Data);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasData) {
- size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(OneBytes other) {
- if (other == null) {
- return;
- }
- if (other.HasData) {
- Data = other.Data;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- Data = input.ReadBytes();
- break;
- }
- }
- }
- }
- }
- public sealed partial class MoreBytes : pb::IMessage<MoreBytes> {
- private static readonly pb::MessageParser<MoreBytes> _parser = new pb::MessageParser<MoreBytes>(() => new MoreBytes());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<MoreBytes> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[37]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MoreBytes() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MoreBytes(MoreBytes other) : this() {
- data_ = other.data_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public MoreBytes Clone() {
- return new MoreBytes(this);
- }
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private static readonly pb::FieldCodec<pb::ByteString> _repeated_data_codec
- = pb::FieldCodec.ForBytes(10);
- private readonly pbc::RepeatedField<pb::ByteString> data_ = new pbc::RepeatedField<pb::ByteString>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<pb::ByteString> Data {
- get { return data_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as MoreBytes);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(MoreBytes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!data_.Equals(other.data_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= data_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- data_.WriteTo(output, _repeated_data_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += data_.CalculateSize(_repeated_data_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(MoreBytes other) {
- if (other == null) {
- return;
- }
- data_.Add(other.data_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- data_.AddEntriesFrom(input, _repeated_data_codec);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Test int32, uint32, int64, uint64, and bool are all compatible
- /// </summary>
- public sealed partial class Int32Message : pb::IMessage<Int32Message> {
- private static readonly pb::MessageParser<Int32Message> _parser = new pb::MessageParser<Int32Message>(() => new Int32Message());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Int32Message> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[38]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Int32Message() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Int32Message(Int32Message other) : this() {
- _hasBits0 = other._hasBits0;
- data_ = other.data_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Int32Message Clone() {
- return new Int32Message(this);
- }
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private readonly static int DataDefaultValue = 0;
- private int data_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Data {
- get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
- set {
- _hasBits0 |= 1;
- data_ = value;
- }
- }
- /// <summary>Gets whether the "data" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasData {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "data" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearData() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Int32Message);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Int32Message other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasData) hash ^= Data.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasData) {
- output.WriteRawTag(8);
- output.WriteInt32(Data);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasData) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Int32Message other) {
- if (other == null) {
- return;
- }
- if (other.HasData) {
- Data = other.Data;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Data = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- public sealed partial class Uint32Message : pb::IMessage<Uint32Message> {
- private static readonly pb::MessageParser<Uint32Message> _parser = new pb::MessageParser<Uint32Message>(() => new Uint32Message());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Uint32Message> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[39]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Uint32Message() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Uint32Message(Uint32Message other) : this() {
- _hasBits0 = other._hasBits0;
- data_ = other.data_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Uint32Message Clone() {
- return new Uint32Message(this);
- }
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private readonly static uint DataDefaultValue = 0;
- private uint data_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint Data {
- get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
- set {
- _hasBits0 |= 1;
- data_ = value;
- }
- }
- /// <summary>Gets whether the "data" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasData {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "data" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearData() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Uint32Message);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Uint32Message other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasData) hash ^= Data.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasData) {
- output.WriteRawTag(8);
- output.WriteUInt32(Data);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasData) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Data);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Uint32Message other) {
- if (other == null) {
- return;
- }
- if (other.HasData) {
- Data = other.Data;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Data = input.ReadUInt32();
- break;
- }
- }
- }
- }
- }
- public sealed partial class Int64Message : pb::IMessage<Int64Message> {
- private static readonly pb::MessageParser<Int64Message> _parser = new pb::MessageParser<Int64Message>(() => new Int64Message());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Int64Message> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[40]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Int64Message() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Int64Message(Int64Message other) : this() {
- _hasBits0 = other._hasBits0;
- data_ = other.data_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Int64Message Clone() {
- return new Int64Message(this);
- }
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private readonly static long DataDefaultValue = 0L;
- private long data_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Data {
- get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
- set {
- _hasBits0 |= 1;
- data_ = value;
- }
- }
- /// <summary>Gets whether the "data" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasData {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "data" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearData() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Int64Message);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Int64Message other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasData) hash ^= Data.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasData) {
- output.WriteRawTag(8);
- output.WriteInt64(Data);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasData) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Data);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Int64Message other) {
- if (other == null) {
- return;
- }
- if (other.HasData) {
- Data = other.Data;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Data = input.ReadInt64();
- break;
- }
- }
- }
- }
- }
- public sealed partial class Uint64Message : pb::IMessage<Uint64Message> {
- private static readonly pb::MessageParser<Uint64Message> _parser = new pb::MessageParser<Uint64Message>(() => new Uint64Message());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Uint64Message> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[41]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Uint64Message() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Uint64Message(Uint64Message other) : this() {
- _hasBits0 = other._hasBits0;
- data_ = other.data_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Uint64Message Clone() {
- return new Uint64Message(this);
- }
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private readonly static ulong DataDefaultValue = 0UL;
- private ulong data_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ulong Data {
- get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
- set {
- _hasBits0 |= 1;
- data_ = value;
- }
- }
- /// <summary>Gets whether the "data" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasData {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "data" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearData() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Uint64Message);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Uint64Message other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasData) hash ^= Data.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasData) {
- output.WriteRawTag(8);
- output.WriteUInt64(Data);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasData) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Data);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Uint64Message other) {
- if (other == null) {
- return;
- }
- if (other.HasData) {
- Data = other.Data;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Data = input.ReadUInt64();
- break;
- }
- }
- }
- }
- }
- public sealed partial class BoolMessage : pb::IMessage<BoolMessage> {
- private static readonly pb::MessageParser<BoolMessage> _parser = new pb::MessageParser<BoolMessage>(() => new BoolMessage());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<BoolMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[42]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BoolMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BoolMessage(BoolMessage other) : this() {
- _hasBits0 = other._hasBits0;
- data_ = other.data_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BoolMessage Clone() {
- return new BoolMessage(this);
- }
- /// <summary>Field number for the "data" field.</summary>
- public const int DataFieldNumber = 1;
- private readonly static bool DataDefaultValue = false;
- private bool data_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Data {
- get { if ((_hasBits0 & 1) != 0) { return data_; } else { return DataDefaultValue; } }
- set {
- _hasBits0 |= 1;
- data_ = value;
- }
- }
- /// <summary>Gets whether the "data" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasData {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "data" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearData() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as BoolMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(BoolMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasData) hash ^= Data.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasData) {
- output.WriteRawTag(8);
- output.WriteBool(Data);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasData) {
- size += 1 + 1;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(BoolMessage other) {
- if (other == null) {
- return;
- }
- if (other.HasData) {
- Data = other.Data;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Data = input.ReadBool();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Test oneofs.
- /// </summary>
- public sealed partial class TestOneof : pb::IMessage<TestOneof> {
- private static readonly pb::MessageParser<TestOneof> _parser = new pb::MessageParser<TestOneof>(() => new TestOneof());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestOneof> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[43]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestOneof() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestOneof(TestOneof other) : this() {
- switch (other.FooCase) {
- case FooOneofCase.FooInt:
- FooInt = other.FooInt;
- break;
- case FooOneofCase.FooString:
- FooString = other.FooString;
- break;
- case FooOneofCase.FooMessage:
- FooMessage = other.FooMessage.Clone();
- break;
- case FooOneofCase.FooGroup:
- FooGroup = other.FooGroup.Clone();
- break;
- }
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestOneof Clone() {
- return new TestOneof(this);
- }
- /// <summary>Field number for the "foo_int" field.</summary>
- public const int FooIntFieldNumber = 1;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int FooInt {
- get { return HasFooInt ? (int) foo_ : 0; }
- set {
- foo_ = value;
- fooCase_ = FooOneofCase.FooInt;
- }
- }
- /// <summary>Gets whether the "foo_int" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFooInt {
- get { return fooCase_ == FooOneofCase.FooInt; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "foo_int" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFooInt() {
- if (HasFooInt) {
- ClearFoo();
- }
- }
- /// <summary>Field number for the "foo_string" field.</summary>
- public const int FooStringFieldNumber = 2;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string FooString {
- get { return HasFooString ? (string) foo_ : ""; }
- set {
- foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- fooCase_ = FooOneofCase.FooString;
- }
- }
- /// <summary>Gets whether the "foo_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFooString {
- get { return fooCase_ == FooOneofCase.FooString; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "foo_string" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFooString() {
- if (HasFooString) {
- ClearFoo();
- }
- }
- /// <summary>Field number for the "foo_message" field.</summary>
- public const int FooMessageFieldNumber = 3;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes FooMessage {
- get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes) foo_ : null; }
- set {
- foo_ = value;
- fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage;
- }
- }
- /// <summary>Field number for the "foogroup" field.</summary>
- public const int FooGroupFieldNumber = 4;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup FooGroup {
- get { return HasFooGroup ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup) foo_ : null; }
- set {
- foo_ = value;
- fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooGroup;
- }
- }
- /// <summary>Gets whether the "foogroup" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFooGroup {
- get { return fooCase_ == FooOneofCase.FooGroup; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "foogroup" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFooGroup() {
- if (HasFooGroup) {
- ClearFoo();
- }
- }
- private object foo_;
- /// <summary>Enum of possible cases for the "foo" oneof.</summary>
- public enum FooOneofCase {
- None = 0,
- FooInt = 1,
- FooString = 2,
- FooMessage = 3,
- FooGroup = 4,
- }
- private FooOneofCase fooCase_ = FooOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooOneofCase FooCase {
- get { return fooCase_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFoo() {
- fooCase_ = FooOneofCase.None;
- foo_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestOneof);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestOneof other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (FooInt != other.FooInt) return false;
- if (FooString != other.FooString) return false;
- if (!object.Equals(FooMessage, other.FooMessage)) return false;
- if (!object.Equals(FooGroup, other.FooGroup)) return false;
- if (FooCase != other.FooCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasFooInt) hash ^= FooInt.GetHashCode();
- if (HasFooString) hash ^= FooString.GetHashCode();
- if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode();
- if (HasFooGroup) hash ^= FooGroup.GetHashCode();
- hash ^= (int) fooCase_;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasFooInt) {
- output.WriteRawTag(8);
- output.WriteInt32(FooInt);
- }
- if (HasFooString) {
- output.WriteRawTag(18);
- output.WriteString(FooString);
- }
- if (fooCase_ == FooOneofCase.FooMessage) {
- output.WriteRawTag(26);
- output.WriteMessage(FooMessage);
- }
- if (HasFooGroup) {
- output.WriteRawTag(35);
- output.WriteGroup(FooGroup);
- output.WriteRawTag(36);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasFooInt) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
- }
- if (HasFooString) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
- }
- if (fooCase_ == FooOneofCase.FooMessage) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
- }
- if (HasFooGroup) {
- size += 2 + pb::CodedOutputStream.ComputeGroupSize(FooGroup);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestOneof other) {
- if (other == null) {
- return;
- }
- switch (other.FooCase) {
- case FooOneofCase.FooInt:
- FooInt = other.FooInt;
- break;
- case FooOneofCase.FooString:
- FooString = other.FooString;
- break;
- case FooOneofCase.FooMessage:
- if (FooMessage == null) {
- FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- FooMessage.MergeFrom(other.FooMessage);
- break;
- case FooOneofCase.FooGroup:
- if (FooGroup == null) {
- FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup();
- }
- FooGroup.MergeFrom(other.FooGroup);
- break;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- FooInt = input.ReadInt32();
- break;
- }
- case 18: {
- FooString = input.ReadString();
- break;
- }
- case 26: {
- global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- if (fooCase_ == FooOneofCase.FooMessage) {
- subBuilder.MergeFrom(FooMessage);
- }
- input.ReadMessage(subBuilder);
- FooMessage = subBuilder;
- break;
- }
- case 35: {
- global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof.Types.FooGroup();
- if (HasFooGroup) {
- subBuilder.MergeFrom(FooGroup);
- }
- input.ReadGroup(subBuilder);
- FooGroup = subBuilder;
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestOneof message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class FooGroup : pb::IMessage<FooGroup> {
- private static readonly pb::MessageParser<FooGroup> _parser = new pb::MessageParser<FooGroup>(() => new FooGroup());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<FooGroup> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestOneof.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooGroup() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooGroup(FooGroup other) : this() {
- _hasBits0 = other._hasBits0;
- a_ = other.a_;
- b_ = other.b_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooGroup Clone() {
- return new FooGroup(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 5;
- private readonly static int ADefaultValue = 0;
- private int a_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int A {
- get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
- set {
- _hasBits0 |= 1;
- a_ = value;
- }
- }
- /// <summary>Gets whether the "a" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasA {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "a" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearA() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "b" field.</summary>
- public const int BFieldNumber = 6;
- private readonly static string BDefaultValue = "";
- private string b_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string B {
- get { return b_ ?? BDefaultValue; }
- set {
- b_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "b" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasB {
- get { return b_ != null; }
- }
- /// <summary>Clears the value of the "b" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearB() {
- b_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as FooGroup);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(FooGroup other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- if (B != other.B) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasA) hash ^= A.GetHashCode();
- if (HasB) hash ^= B.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasA) {
- output.WriteRawTag(40);
- output.WriteInt32(A);
- }
- if (HasB) {
- output.WriteRawTag(50);
- output.WriteString(B);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasA) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
- }
- if (HasB) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(B);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(FooGroup other) {
- if (other == null) {
- return;
- }
- if (other.HasA) {
- A = other.A;
- }
- if (other.HasB) {
- B = other.B;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 36:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 40: {
- A = input.ReadInt32();
- break;
- }
- case 50: {
- B = input.ReadString();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- public sealed partial class TestOneofBackwardsCompatible : pb::IMessage<TestOneofBackwardsCompatible> {
- private static readonly pb::MessageParser<TestOneofBackwardsCompatible> _parser = new pb::MessageParser<TestOneofBackwardsCompatible>(() => new TestOneofBackwardsCompatible());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestOneofBackwardsCompatible> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[44]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestOneofBackwardsCompatible() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestOneofBackwardsCompatible(TestOneofBackwardsCompatible other) : this() {
- _hasBits0 = other._hasBits0;
- fooInt_ = other.fooInt_;
- fooString_ = other.fooString_;
- fooMessage_ = other.fooMessage_ != null ? other.fooMessage_.Clone() : null;
- fooGroup_ = other.HasFooGroup ? other.fooGroup_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestOneofBackwardsCompatible Clone() {
- return new TestOneofBackwardsCompatible(this);
- }
- /// <summary>Field number for the "foo_int" field.</summary>
- public const int FooIntFieldNumber = 1;
- private readonly static int FooIntDefaultValue = 0;
- private int fooInt_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int FooInt {
- get { if ((_hasBits0 & 1) != 0) { return fooInt_; } else { return FooIntDefaultValue; } }
- set {
- _hasBits0 |= 1;
- fooInt_ = value;
- }
- }
- /// <summary>Gets whether the "foo_int" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFooInt {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "foo_int" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFooInt() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "foo_string" field.</summary>
- public const int FooStringFieldNumber = 2;
- private readonly static string FooStringDefaultValue = "";
- private string fooString_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string FooString {
- get { return fooString_ ?? FooStringDefaultValue; }
- set {
- fooString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "foo_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFooString {
- get { return fooString_ != null; }
- }
- /// <summary>Clears the value of the "foo_string" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFooString() {
- fooString_ = null;
- }
- /// <summary>Field number for the "foo_message" field.</summary>
- public const int FooMessageFieldNumber = 3;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes fooMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes FooMessage {
- get { return fooMessage_; }
- set {
- fooMessage_ = value;
- }
- }
- /// <summary>Field number for the "foogroup" field.</summary>
- public const int FooGroupFieldNumber = 4;
- private global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup fooGroup_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup FooGroup {
- get { return fooGroup_; }
- set {
- fooGroup_ = value;
- }
- }
- /// <summary>Gets whether the foogroup field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFooGroup {
- get { return fooGroup_ != null; }
- }
- /// <summary>Clears the value of the foogroup field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFooGroup() {
- fooGroup_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestOneofBackwardsCompatible);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestOneofBackwardsCompatible other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (FooInt != other.FooInt) return false;
- if (FooString != other.FooString) return false;
- if (!object.Equals(FooMessage, other.FooMessage)) return false;
- if (!object.Equals(FooGroup, other.FooGroup)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasFooInt) hash ^= FooInt.GetHashCode();
- if (HasFooString) hash ^= FooString.GetHashCode();
- if (fooMessage_ != null) hash ^= FooMessage.GetHashCode();
- if (HasFooGroup) hash ^= FooGroup.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasFooInt) {
- output.WriteRawTag(8);
- output.WriteInt32(FooInt);
- }
- if (HasFooString) {
- output.WriteRawTag(18);
- output.WriteString(FooString);
- }
- if (fooMessage_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(FooMessage);
- }
- if (HasFooGroup) {
- output.WriteRawTag(35);
- output.WriteGroup(FooGroup);
- output.WriteRawTag(36);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasFooInt) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
- }
- if (HasFooString) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
- }
- if (fooMessage_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
- }
- if (HasFooGroup) {
- size += 2 + pb::CodedOutputStream.ComputeGroupSize(FooGroup);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestOneofBackwardsCompatible other) {
- if (other == null) {
- return;
- }
- if (other.HasFooInt) {
- FooInt = other.FooInt;
- }
- if (other.HasFooString) {
- FooString = other.FooString;
- }
- if (other.fooMessage_ != null) {
- if (fooMessage_ == null) {
- FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- FooMessage.MergeFrom(other.FooMessage);
- }
- if (other.HasFooGroup) {
- if (!HasFooGroup) {
- FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup();
- }
- FooGroup.MergeFrom(other.FooGroup);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- FooInt = input.ReadInt32();
- break;
- }
- case 18: {
- FooString = input.ReadString();
- break;
- }
- case 26: {
- if (fooMessage_ == null) {
- FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- input.ReadMessage(FooMessage);
- break;
- }
- case 35: {
- if (!HasFooGroup) {
- FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Types.FooGroup();
- }
- input.ReadGroup(FooGroup);
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestOneofBackwardsCompatible message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class FooGroup : pb::IMessage<FooGroup> {
- private static readonly pb::MessageParser<FooGroup> _parser = new pb::MessageParser<FooGroup>(() => new FooGroup());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<FooGroup> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestOneofBackwardsCompatible.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooGroup() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooGroup(FooGroup other) : this() {
- _hasBits0 = other._hasBits0;
- a_ = other.a_;
- b_ = other.b_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooGroup Clone() {
- return new FooGroup(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 5;
- private readonly static int ADefaultValue = 0;
- private int a_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int A {
- get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
- set {
- _hasBits0 |= 1;
- a_ = value;
- }
- }
- /// <summary>Gets whether the "a" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasA {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "a" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearA() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "b" field.</summary>
- public const int BFieldNumber = 6;
- private readonly static string BDefaultValue = "";
- private string b_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string B {
- get { return b_ ?? BDefaultValue; }
- set {
- b_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "b" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasB {
- get { return b_ != null; }
- }
- /// <summary>Clears the value of the "b" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearB() {
- b_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as FooGroup);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(FooGroup other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- if (B != other.B) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasA) hash ^= A.GetHashCode();
- if (HasB) hash ^= B.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasA) {
- output.WriteRawTag(40);
- output.WriteInt32(A);
- }
- if (HasB) {
- output.WriteRawTag(50);
- output.WriteString(B);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasA) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
- }
- if (HasB) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(B);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(FooGroup other) {
- if (other == null) {
- return;
- }
- if (other.HasA) {
- A = other.A;
- }
- if (other.HasB) {
- B = other.B;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 36:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 40: {
- A = input.ReadInt32();
- break;
- }
- case 50: {
- B = input.ReadString();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- public sealed partial class TestOneof2 : pb::IMessage<TestOneof2> {
- private static readonly pb::MessageParser<TestOneof2> _parser = new pb::MessageParser<TestOneof2>(() => new TestOneof2());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestOneof2> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[45]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestOneof2() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestOneof2(TestOneof2 other) : this() {
- _hasBits0 = other._hasBits0;
- bazInt_ = other.bazInt_;
- bazString_ = other.bazString_;
- switch (other.FooCase) {
- case FooOneofCase.FooInt:
- FooInt = other.FooInt;
- break;
- case FooOneofCase.FooString:
- FooString = other.FooString;
- break;
- case FooOneofCase.FooCord:
- FooCord = other.FooCord;
- break;
- case FooOneofCase.FooStringPiece:
- FooStringPiece = other.FooStringPiece;
- break;
- case FooOneofCase.FooBytes:
- FooBytes = other.FooBytes;
- break;
- case FooOneofCase.FooEnum:
- FooEnum = other.FooEnum;
- break;
- case FooOneofCase.FooMessage:
- FooMessage = other.FooMessage.Clone();
- break;
- case FooOneofCase.FooGroup:
- FooGroup = other.FooGroup.Clone();
- break;
- case FooOneofCase.FooLazyMessage:
- FooLazyMessage = other.FooLazyMessage.Clone();
- break;
- }
- switch (other.BarCase) {
- case BarOneofCase.BarInt:
- BarInt = other.BarInt;
- break;
- case BarOneofCase.BarString:
- BarString = other.BarString;
- break;
- case BarOneofCase.BarCord:
- BarCord = other.BarCord;
- break;
- case BarOneofCase.BarStringPiece:
- BarStringPiece = other.BarStringPiece;
- break;
- case BarOneofCase.BarBytes:
- BarBytes = other.BarBytes;
- break;
- case BarOneofCase.BarEnum:
- BarEnum = other.BarEnum;
- break;
- }
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestOneof2 Clone() {
- return new TestOneof2(this);
- }
- /// <summary>Field number for the "foo_int" field.</summary>
- public const int FooIntFieldNumber = 1;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int FooInt {
- get { return HasFooInt ? (int) foo_ : 0; }
- set {
- foo_ = value;
- fooCase_ = FooOneofCase.FooInt;
- }
- }
- /// <summary>Gets whether the "foo_int" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFooInt {
- get { return fooCase_ == FooOneofCase.FooInt; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "foo_int" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFooInt() {
- if (HasFooInt) {
- ClearFoo();
- }
- }
- /// <summary>Field number for the "foo_string" field.</summary>
- public const int FooStringFieldNumber = 2;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string FooString {
- get { return HasFooString ? (string) foo_ : ""; }
- set {
- foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- fooCase_ = FooOneofCase.FooString;
- }
- }
- /// <summary>Gets whether the "foo_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFooString {
- get { return fooCase_ == FooOneofCase.FooString; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "foo_string" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFooString() {
- if (HasFooString) {
- ClearFoo();
- }
- }
- /// <summary>Field number for the "foo_cord" field.</summary>
- public const int FooCordFieldNumber = 3;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string FooCord {
- get { return HasFooCord ? (string) foo_ : ""; }
- set {
- foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- fooCase_ = FooOneofCase.FooCord;
- }
- }
- /// <summary>Gets whether the "foo_cord" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFooCord {
- get { return fooCase_ == FooOneofCase.FooCord; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "foo_cord" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFooCord() {
- if (HasFooCord) {
- ClearFoo();
- }
- }
- /// <summary>Field number for the "foo_string_piece" field.</summary>
- public const int FooStringPieceFieldNumber = 4;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string FooStringPiece {
- get { return HasFooStringPiece ? (string) foo_ : ""; }
- set {
- foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- fooCase_ = FooOneofCase.FooStringPiece;
- }
- }
- /// <summary>Gets whether the "foo_string_piece" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFooStringPiece {
- get { return fooCase_ == FooOneofCase.FooStringPiece; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "foo_string_piece" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFooStringPiece() {
- if (HasFooStringPiece) {
- ClearFoo();
- }
- }
- /// <summary>Field number for the "foo_bytes" field.</summary>
- public const int FooBytesFieldNumber = 5;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString FooBytes {
- get { return HasFooBytes ? (pb::ByteString) foo_ : pb::ByteString.Empty; }
- set {
- foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- fooCase_ = FooOneofCase.FooBytes;
- }
- }
- /// <summary>Gets whether the "foo_bytes" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFooBytes {
- get { return fooCase_ == FooOneofCase.FooBytes; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "foo_bytes" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFooBytes() {
- if (HasFooBytes) {
- ClearFoo();
- }
- }
- /// <summary>Field number for the "foo_enum" field.</summary>
- public const int FooEnumFieldNumber = 6;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum FooEnum {
- get { return HasFooEnum ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum) foo_ : global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum.Foo; }
- set {
- foo_ = value;
- fooCase_ = FooOneofCase.FooEnum;
- }
- }
- /// <summary>Gets whether the "foo_enum" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFooEnum {
- get { return fooCase_ == FooOneofCase.FooEnum; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "foo_enum" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFooEnum() {
- if (HasFooEnum) {
- ClearFoo();
- }
- }
- /// <summary>Field number for the "foo_message" field.</summary>
- public const int FooMessageFieldNumber = 7;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage FooMessage {
- get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage) foo_ : null; }
- set {
- foo_ = value;
- fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage;
- }
- }
- /// <summary>Field number for the "foogroup" field.</summary>
- public const int FooGroupFieldNumber = 8;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup FooGroup {
- get { return HasFooGroup ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup) foo_ : null; }
- set {
- foo_ = value;
- fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooGroup;
- }
- }
- /// <summary>Gets whether the "foogroup" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFooGroup {
- get { return fooCase_ == FooOneofCase.FooGroup; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "foogroup" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFooGroup() {
- if (HasFooGroup) {
- ClearFoo();
- }
- }
- /// <summary>Field number for the "foo_lazy_message" field.</summary>
- public const int FooLazyMessageFieldNumber = 11;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage FooLazyMessage {
- get { return fooCase_ == FooOneofCase.FooLazyMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage) foo_ : null; }
- set {
- foo_ = value;
- fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooLazyMessage;
- }
- }
- /// <summary>Field number for the "bar_int" field.</summary>
- public const int BarIntFieldNumber = 12;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int BarInt {
- get { return HasBarInt ? (int) bar_ : 5; }
- set {
- bar_ = value;
- barCase_ = BarOneofCase.BarInt;
- }
- }
- /// <summary>Gets whether the "bar_int" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasBarInt {
- get { return barCase_ == BarOneofCase.BarInt; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "bar_int" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearBarInt() {
- if (HasBarInt) {
- ClearBar();
- }
- }
- /// <summary>Field number for the "bar_string" field.</summary>
- public const int BarStringFieldNumber = 13;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string BarString {
- get { return HasBarString ? (string) bar_ : global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("U1RSSU5H"), 0, 6); }
- set {
- bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- barCase_ = BarOneofCase.BarString;
- }
- }
- /// <summary>Gets whether the "bar_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasBarString {
- get { return barCase_ == BarOneofCase.BarString; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "bar_string" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearBarString() {
- if (HasBarString) {
- ClearBar();
- }
- }
- /// <summary>Field number for the "bar_cord" field.</summary>
- public const int BarCordFieldNumber = 14;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string BarCord {
- get { return HasBarCord ? (string) bar_ : global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("Q09SRA=="), 0, 4); }
- set {
- bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- barCase_ = BarOneofCase.BarCord;
- }
- }
- /// <summary>Gets whether the "bar_cord" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasBarCord {
- get { return barCase_ == BarOneofCase.BarCord; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "bar_cord" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearBarCord() {
- if (HasBarCord) {
- ClearBar();
- }
- }
- /// <summary>Field number for the "bar_string_piece" field.</summary>
- public const int BarStringPieceFieldNumber = 15;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string BarStringPiece {
- get { return HasBarStringPiece ? (string) bar_ : global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("U1BJRUNF"), 0, 6); }
- set {
- bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- barCase_ = BarOneofCase.BarStringPiece;
- }
- }
- /// <summary>Gets whether the "bar_string_piece" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasBarStringPiece {
- get { return barCase_ == BarOneofCase.BarStringPiece; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "bar_string_piece" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearBarStringPiece() {
- if (HasBarStringPiece) {
- ClearBar();
- }
- }
- /// <summary>Field number for the "bar_bytes" field.</summary>
- public const int BarBytesFieldNumber = 16;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString BarBytes {
- get { return HasBarBytes ? (pb::ByteString) bar_ : pb::ByteString.FromBase64("QllURVM="); }
- set {
- bar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- barCase_ = BarOneofCase.BarBytes;
- }
- }
- /// <summary>Gets whether the "bar_bytes" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasBarBytes {
- get { return barCase_ == BarOneofCase.BarBytes; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "bar_bytes" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearBarBytes() {
- if (HasBarBytes) {
- ClearBar();
- }
- }
- /// <summary>Field number for the "bar_enum" field.</summary>
- public const int BarEnumFieldNumber = 17;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum BarEnum {
- get { return HasBarEnum ? (global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum) bar_ : global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum.Bar; }
- set {
- bar_ = value;
- barCase_ = BarOneofCase.BarEnum;
- }
- }
- /// <summary>Gets whether the "bar_enum" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasBarEnum {
- get { return barCase_ == BarOneofCase.BarEnum; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "bar_enum" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearBarEnum() {
- if (HasBarEnum) {
- ClearBar();
- }
- }
- /// <summary>Field number for the "baz_int" field.</summary>
- public const int BazIntFieldNumber = 18;
- private readonly static int BazIntDefaultValue = 0;
- private int bazInt_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int BazInt {
- get { if ((_hasBits0 & 1) != 0) { return bazInt_; } else { return BazIntDefaultValue; } }
- set {
- _hasBits0 |= 1;
- bazInt_ = value;
- }
- }
- /// <summary>Gets whether the "baz_int" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasBazInt {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "baz_int" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearBazInt() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "baz_string" field.</summary>
- public const int BazStringFieldNumber = 19;
- private readonly static string BazStringDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("QkFa"), 0, 3);
- private string bazString_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string BazString {
- get { return bazString_ ?? BazStringDefaultValue; }
- set {
- bazString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "baz_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasBazString {
- get { return bazString_ != null; }
- }
- /// <summary>Clears the value of the "baz_string" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearBazString() {
- bazString_ = null;
- }
- private object foo_;
- /// <summary>Enum of possible cases for the "foo" oneof.</summary>
- public enum FooOneofCase {
- None = 0,
- FooInt = 1,
- FooString = 2,
- FooCord = 3,
- FooStringPiece = 4,
- FooBytes = 5,
- FooEnum = 6,
- FooMessage = 7,
- FooGroup = 8,
- FooLazyMessage = 11,
- }
- private FooOneofCase fooCase_ = FooOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooOneofCase FooCase {
- get { return fooCase_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFoo() {
- fooCase_ = FooOneofCase.None;
- foo_ = null;
- }
- private object bar_;
- /// <summary>Enum of possible cases for the "bar" oneof.</summary>
- public enum BarOneofCase {
- None = 0,
- BarInt = 12,
- BarString = 13,
- BarCord = 14,
- BarStringPiece = 15,
- BarBytes = 16,
- BarEnum = 17,
- }
- private BarOneofCase barCase_ = BarOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BarOneofCase BarCase {
- get { return barCase_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearBar() {
- barCase_ = BarOneofCase.None;
- bar_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestOneof2);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestOneof2 other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (FooInt != other.FooInt) return false;
- if (FooString != other.FooString) return false;
- if (FooCord != other.FooCord) return false;
- if (FooStringPiece != other.FooStringPiece) return false;
- if (FooBytes != other.FooBytes) return false;
- if (FooEnum != other.FooEnum) return false;
- if (!object.Equals(FooMessage, other.FooMessage)) return false;
- if (!object.Equals(FooGroup, other.FooGroup)) return false;
- if (!object.Equals(FooLazyMessage, other.FooLazyMessage)) return false;
- if (BarInt != other.BarInt) return false;
- if (BarString != other.BarString) return false;
- if (BarCord != other.BarCord) return false;
- if (BarStringPiece != other.BarStringPiece) return false;
- if (BarBytes != other.BarBytes) return false;
- if (BarEnum != other.BarEnum) return false;
- if (BazInt != other.BazInt) return false;
- if (BazString != other.BazString) return false;
- if (FooCase != other.FooCase) return false;
- if (BarCase != other.BarCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasFooInt) hash ^= FooInt.GetHashCode();
- if (HasFooString) hash ^= FooString.GetHashCode();
- if (HasFooCord) hash ^= FooCord.GetHashCode();
- if (HasFooStringPiece) hash ^= FooStringPiece.GetHashCode();
- if (HasFooBytes) hash ^= FooBytes.GetHashCode();
- if (HasFooEnum) hash ^= FooEnum.GetHashCode();
- if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode();
- if (HasFooGroup) hash ^= FooGroup.GetHashCode();
- if (fooCase_ == FooOneofCase.FooLazyMessage) hash ^= FooLazyMessage.GetHashCode();
- if (HasBarInt) hash ^= BarInt.GetHashCode();
- if (HasBarString) hash ^= BarString.GetHashCode();
- if (HasBarCord) hash ^= BarCord.GetHashCode();
- if (HasBarStringPiece) hash ^= BarStringPiece.GetHashCode();
- if (HasBarBytes) hash ^= BarBytes.GetHashCode();
- if (HasBarEnum) hash ^= BarEnum.GetHashCode();
- if (HasBazInt) hash ^= BazInt.GetHashCode();
- if (HasBazString) hash ^= BazString.GetHashCode();
- hash ^= (int) fooCase_;
- hash ^= (int) barCase_;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasFooInt) {
- output.WriteRawTag(8);
- output.WriteInt32(FooInt);
- }
- if (HasFooString) {
- output.WriteRawTag(18);
- output.WriteString(FooString);
- }
- if (HasFooCord) {
- output.WriteRawTag(26);
- output.WriteString(FooCord);
- }
- if (HasFooStringPiece) {
- output.WriteRawTag(34);
- output.WriteString(FooStringPiece);
- }
- if (HasFooBytes) {
- output.WriteRawTag(42);
- output.WriteBytes(FooBytes);
- }
- if (HasFooEnum) {
- output.WriteRawTag(48);
- output.WriteEnum((int) FooEnum);
- }
- if (fooCase_ == FooOneofCase.FooMessage) {
- output.WriteRawTag(58);
- output.WriteMessage(FooMessage);
- }
- if (HasFooGroup) {
- output.WriteRawTag(67);
- output.WriteGroup(FooGroup);
- output.WriteRawTag(68);
- }
- if (fooCase_ == FooOneofCase.FooLazyMessage) {
- output.WriteRawTag(90);
- output.WriteMessage(FooLazyMessage);
- }
- if (HasBarInt) {
- output.WriteRawTag(96);
- output.WriteInt32(BarInt);
- }
- if (HasBarString) {
- output.WriteRawTag(106);
- output.WriteString(BarString);
- }
- if (HasBarCord) {
- output.WriteRawTag(114);
- output.WriteString(BarCord);
- }
- if (HasBarStringPiece) {
- output.WriteRawTag(122);
- output.WriteString(BarStringPiece);
- }
- if (HasBarBytes) {
- output.WriteRawTag(130, 1);
- output.WriteBytes(BarBytes);
- }
- if (HasBarEnum) {
- output.WriteRawTag(136, 1);
- output.WriteEnum((int) BarEnum);
- }
- if (HasBazInt) {
- output.WriteRawTag(144, 1);
- output.WriteInt32(BazInt);
- }
- if (HasBazString) {
- output.WriteRawTag(154, 1);
- output.WriteString(BazString);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasFooInt) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
- }
- if (HasFooString) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
- }
- if (HasFooCord) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(FooCord);
- }
- if (HasFooStringPiece) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(FooStringPiece);
- }
- if (HasFooBytes) {
- size += 1 + pb::CodedOutputStream.ComputeBytesSize(FooBytes);
- }
- if (HasFooEnum) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FooEnum);
- }
- if (fooCase_ == FooOneofCase.FooMessage) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
- }
- if (HasFooGroup) {
- size += 2 + pb::CodedOutputStream.ComputeGroupSize(FooGroup);
- }
- if (fooCase_ == FooOneofCase.FooLazyMessage) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooLazyMessage);
- }
- if (HasBarInt) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(BarInt);
- }
- if (HasBarString) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(BarString);
- }
- if (HasBarCord) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(BarCord);
- }
- if (HasBarStringPiece) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(BarStringPiece);
- }
- if (HasBarBytes) {
- size += 2 + pb::CodedOutputStream.ComputeBytesSize(BarBytes);
- }
- if (HasBarEnum) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) BarEnum);
- }
- if (HasBazInt) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(BazInt);
- }
- if (HasBazString) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(BazString);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestOneof2 other) {
- if (other == null) {
- return;
- }
- if (other.HasBazInt) {
- BazInt = other.BazInt;
- }
- if (other.HasBazString) {
- BazString = other.BazString;
- }
- switch (other.FooCase) {
- case FooOneofCase.FooInt:
- FooInt = other.FooInt;
- break;
- case FooOneofCase.FooString:
- FooString = other.FooString;
- break;
- case FooOneofCase.FooCord:
- FooCord = other.FooCord;
- break;
- case FooOneofCase.FooStringPiece:
- FooStringPiece = other.FooStringPiece;
- break;
- case FooOneofCase.FooBytes:
- FooBytes = other.FooBytes;
- break;
- case FooOneofCase.FooEnum:
- FooEnum = other.FooEnum;
- break;
- case FooOneofCase.FooMessage:
- if (FooMessage == null) {
- FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
- }
- FooMessage.MergeFrom(other.FooMessage);
- break;
- case FooOneofCase.FooGroup:
- if (FooGroup == null) {
- FooGroup = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup();
- }
- FooGroup.MergeFrom(other.FooGroup);
- break;
- case FooOneofCase.FooLazyMessage:
- if (FooLazyMessage == null) {
- FooLazyMessage = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
- }
- FooLazyMessage.MergeFrom(other.FooLazyMessage);
- break;
- }
- switch (other.BarCase) {
- case BarOneofCase.BarInt:
- BarInt = other.BarInt;
- break;
- case BarOneofCase.BarString:
- BarString = other.BarString;
- break;
- case BarOneofCase.BarCord:
- BarCord = other.BarCord;
- break;
- case BarOneofCase.BarStringPiece:
- BarStringPiece = other.BarStringPiece;
- break;
- case BarOneofCase.BarBytes:
- BarBytes = other.BarBytes;
- break;
- case BarOneofCase.BarEnum:
- BarEnum = other.BarEnum;
- break;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- FooInt = input.ReadInt32();
- break;
- }
- case 18: {
- FooString = input.ReadString();
- break;
- }
- case 26: {
- FooCord = input.ReadString();
- break;
- }
- case 34: {
- FooStringPiece = input.ReadString();
- break;
- }
- case 42: {
- FooBytes = input.ReadBytes();
- break;
- }
- case 48: {
- foo_ = input.ReadEnum();
- fooCase_ = FooOneofCase.FooEnum;
- break;
- }
- case 58: {
- global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
- if (fooCase_ == FooOneofCase.FooMessage) {
- subBuilder.MergeFrom(FooMessage);
- }
- input.ReadMessage(subBuilder);
- FooMessage = subBuilder;
- break;
- }
- case 67: {
- global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup();
- if (HasFooGroup) {
- subBuilder.MergeFrom(FooGroup);
- }
- input.ReadGroup(subBuilder);
- FooGroup = subBuilder;
- break;
- }
- case 90: {
- global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage();
- if (fooCase_ == FooOneofCase.FooLazyMessage) {
- subBuilder.MergeFrom(FooLazyMessage);
- }
- input.ReadMessage(subBuilder);
- FooLazyMessage = subBuilder;
- break;
- }
- case 96: {
- BarInt = input.ReadInt32();
- break;
- }
- case 106: {
- BarString = input.ReadString();
- break;
- }
- case 114: {
- BarCord = input.ReadString();
- break;
- }
- case 122: {
- BarStringPiece = input.ReadString();
- break;
- }
- case 130: {
- BarBytes = input.ReadBytes();
- break;
- }
- case 136: {
- bar_ = input.ReadEnum();
- barCase_ = BarOneofCase.BarEnum;
- break;
- }
- case 144: {
- BazInt = input.ReadInt32();
- break;
- }
- case 154: {
- BazString = input.ReadString();
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestOneof2 message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public enum NestedEnum {
- [pbr::OriginalName("FOO")] Foo = 1,
- [pbr::OriginalName("BAR")] Bar = 2,
- [pbr::OriginalName("BAZ")] Baz = 3,
- }
- public sealed partial class FooGroup : pb::IMessage<FooGroup> {
- private static readonly pb::MessageParser<FooGroup> _parser = new pb::MessageParser<FooGroup>(() => new FooGroup());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<FooGroup> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooGroup() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooGroup(FooGroup other) : this() {
- _hasBits0 = other._hasBits0;
- a_ = other.a_;
- b_ = other.b_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooGroup Clone() {
- return new FooGroup(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 9;
- private readonly static int ADefaultValue = 0;
- private int a_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int A {
- get { if ((_hasBits0 & 1) != 0) { return a_; } else { return ADefaultValue; } }
- set {
- _hasBits0 |= 1;
- a_ = value;
- }
- }
- /// <summary>Gets whether the "a" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasA {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "a" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearA() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "b" field.</summary>
- public const int BFieldNumber = 10;
- private readonly static string BDefaultValue = "";
- private string b_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string B {
- get { return b_ ?? BDefaultValue; }
- set {
- b_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "b" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasB {
- get { return b_ != null; }
- }
- /// <summary>Clears the value of the "b" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearB() {
- b_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as FooGroup);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(FooGroup other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- if (B != other.B) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasA) hash ^= A.GetHashCode();
- if (HasB) hash ^= B.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasA) {
- output.WriteRawTag(72);
- output.WriteInt32(A);
- }
- if (HasB) {
- output.WriteRawTag(82);
- output.WriteString(B);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasA) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
- }
- if (HasB) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(B);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(FooGroup other) {
- if (other == null) {
- return;
- }
- if (other.HasA) {
- A = other.A;
- }
- if (other.HasB) {
- B = other.B;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 68:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 72: {
- A = input.ReadInt32();
- break;
- }
- case 82: {
- B = input.ReadString();
- break;
- }
- }
- }
- }
- }
- public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
- private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Descriptor.NestedTypes[1]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage(NestedMessage other) : this() {
- _hasBits0 = other._hasBits0;
- quxInt_ = other.quxInt_;
- corgeInt_ = other.corgeInt_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage Clone() {
- return new NestedMessage(this);
- }
- /// <summary>Field number for the "qux_int" field.</summary>
- public const int QuxIntFieldNumber = 1;
- private readonly static long QuxIntDefaultValue = 0L;
- private long quxInt_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long QuxInt {
- get { if ((_hasBits0 & 1) != 0) { return quxInt_; } else { return QuxIntDefaultValue; } }
- set {
- _hasBits0 |= 1;
- quxInt_ = value;
- }
- }
- /// <summary>Gets whether the "qux_int" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasQuxInt {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "qux_int" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearQuxInt() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "corge_int" field.</summary>
- public const int CorgeIntFieldNumber = 2;
- private static readonly pb::FieldCodec<int> _repeated_corgeInt_codec
- = pb::FieldCodec.ForInt32(16);
- private readonly pbc::RepeatedField<int> corgeInt_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> CorgeInt {
- get { return corgeInt_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as NestedMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(NestedMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (QuxInt != other.QuxInt) return false;
- if(!corgeInt_.Equals(other.corgeInt_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasQuxInt) hash ^= QuxInt.GetHashCode();
- hash ^= corgeInt_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasQuxInt) {
- output.WriteRawTag(8);
- output.WriteInt64(QuxInt);
- }
- corgeInt_.WriteTo(output, _repeated_corgeInt_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasQuxInt) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(QuxInt);
- }
- size += corgeInt_.CalculateSize(_repeated_corgeInt_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(NestedMessage other) {
- if (other == null) {
- return;
- }
- if (other.HasQuxInt) {
- QuxInt = other.QuxInt;
- }
- corgeInt_.Add(other.corgeInt_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- QuxInt = input.ReadInt64();
- break;
- }
- case 18:
- case 16: {
- corgeInt_.AddEntriesFrom(input, _repeated_corgeInt_codec);
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- public sealed partial class TestRequiredOneof : pb::IMessage<TestRequiredOneof> {
- private static readonly pb::MessageParser<TestRequiredOneof> _parser = new pb::MessageParser<TestRequiredOneof>(() => new TestRequiredOneof());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestRequiredOneof> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[46]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRequiredOneof() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRequiredOneof(TestRequiredOneof other) : this() {
- switch (other.FooCase) {
- case FooOneofCase.FooInt:
- FooInt = other.FooInt;
- break;
- case FooOneofCase.FooString:
- FooString = other.FooString;
- break;
- case FooOneofCase.FooMessage:
- FooMessage = other.FooMessage.Clone();
- break;
- }
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRequiredOneof Clone() {
- return new TestRequiredOneof(this);
- }
- /// <summary>Field number for the "foo_int" field.</summary>
- public const int FooIntFieldNumber = 1;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int FooInt {
- get { return HasFooInt ? (int) foo_ : 0; }
- set {
- foo_ = value;
- fooCase_ = FooOneofCase.FooInt;
- }
- }
- /// <summary>Gets whether the "foo_int" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFooInt {
- get { return fooCase_ == FooOneofCase.FooInt; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "foo_int" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFooInt() {
- if (HasFooInt) {
- ClearFoo();
- }
- }
- /// <summary>Field number for the "foo_string" field.</summary>
- public const int FooStringFieldNumber = 2;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string FooString {
- get { return HasFooString ? (string) foo_ : ""; }
- set {
- foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- fooCase_ = FooOneofCase.FooString;
- }
- }
- /// <summary>Gets whether the "foo_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFooString {
- get { return fooCase_ == FooOneofCase.FooString; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "foo_string" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFooString() {
- if (HasFooString) {
- ClearFoo();
- }
- }
- /// <summary>Field number for the "foo_message" field.</summary>
- public const int FooMessageFieldNumber = 3;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage FooMessage {
- get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage) foo_ : null; }
- set {
- foo_ = value;
- fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage;
- }
- }
- private object foo_;
- /// <summary>Enum of possible cases for the "foo" oneof.</summary>
- public enum FooOneofCase {
- None = 0,
- FooInt = 1,
- FooString = 2,
- FooMessage = 3,
- }
- private FooOneofCase fooCase_ = FooOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooOneofCase FooCase {
- get { return fooCase_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFoo() {
- fooCase_ = FooOneofCase.None;
- foo_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestRequiredOneof);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestRequiredOneof other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (FooInt != other.FooInt) return false;
- if (FooString != other.FooString) return false;
- if (!object.Equals(FooMessage, other.FooMessage)) return false;
- if (FooCase != other.FooCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasFooInt) hash ^= FooInt.GetHashCode();
- if (HasFooString) hash ^= FooString.GetHashCode();
- if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode();
- hash ^= (int) fooCase_;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasFooInt) {
- output.WriteRawTag(8);
- output.WriteInt32(FooInt);
- }
- if (HasFooString) {
- output.WriteRawTag(18);
- output.WriteString(FooString);
- }
- if (fooCase_ == FooOneofCase.FooMessage) {
- output.WriteRawTag(26);
- output.WriteMessage(FooMessage);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasFooInt) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
- }
- if (HasFooString) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
- }
- if (fooCase_ == FooOneofCase.FooMessage) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestRequiredOneof other) {
- if (other == null) {
- return;
- }
- switch (other.FooCase) {
- case FooOneofCase.FooInt:
- FooInt = other.FooInt;
- break;
- case FooOneofCase.FooString:
- FooString = other.FooString;
- break;
- case FooOneofCase.FooMessage:
- if (FooMessage == null) {
- FooMessage = new global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage();
- }
- FooMessage.MergeFrom(other.FooMessage);
- break;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- FooInt = input.ReadInt32();
- break;
- }
- case 18: {
- FooString = input.ReadString();
- break;
- }
- case 26: {
- global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Types.NestedMessage();
- if (fooCase_ == FooOneofCase.FooMessage) {
- subBuilder.MergeFrom(FooMessage);
- }
- input.ReadMessage(subBuilder);
- FooMessage = subBuilder;
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestRequiredOneof message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
- private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestRequiredOneof.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage(NestedMessage other) : this() {
- _hasBits0 = other._hasBits0;
- requiredDouble_ = other.requiredDouble_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage Clone() {
- return new NestedMessage(this);
- }
- /// <summary>Field number for the "required_double" field.</summary>
- public const int RequiredDoubleFieldNumber = 1;
- private readonly static double RequiredDoubleDefaultValue = 0D;
- private double requiredDouble_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double RequiredDouble {
- get { if ((_hasBits0 & 1) != 0) { return requiredDouble_; } else { return RequiredDoubleDefaultValue; } }
- set {
- _hasBits0 |= 1;
- requiredDouble_ = value;
- }
- }
- /// <summary>Gets whether the "required_double" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasRequiredDouble {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "required_double" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearRequiredDouble() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as NestedMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(NestedMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RequiredDouble, other.RequiredDouble)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasRequiredDouble) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RequiredDouble);
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasRequiredDouble) {
- output.WriteRawTag(9);
- output.WriteDouble(RequiredDouble);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasRequiredDouble) {
- size += 1 + 8;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(NestedMessage other) {
- if (other == null) {
- return;
- }
- if (other.HasRequiredDouble) {
- RequiredDouble = other.RequiredDouble;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 9: {
- RequiredDouble = input.ReadDouble();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- public sealed partial class TestRequiredMap : pb::IMessage<TestRequiredMap> {
- private static readonly pb::MessageParser<TestRequiredMap> _parser = new pb::MessageParser<TestRequiredMap>(() => new TestRequiredMap());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestRequiredMap> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[47]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRequiredMap() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRequiredMap(TestRequiredMap other) : this() {
- foo_ = other.foo_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRequiredMap Clone() {
- return new TestRequiredMap(this);
- }
- /// <summary>Field number for the "foo" field.</summary>
- public const int FooFieldNumber = 1;
- private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage>.Codec _map_foo_codec
- = 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);
- 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>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<int, global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Types.NestedMessage> Foo {
- get { return foo_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestRequiredMap);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestRequiredMap other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!Foo.Equals(other.Foo)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= Foo.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- foo_.WriteTo(output, _map_foo_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += foo_.CalculateSize(_map_foo_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestRequiredMap other) {
- if (other == null) {
- return;
- }
- foo_.Add(other.foo_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- foo_.AddEntriesFrom(input, _map_foo_codec);
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestRequiredMap message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
- private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestRequiredMap.Descriptor.NestedTypes[1]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage(NestedMessage other) : this() {
- _hasBits0 = other._hasBits0;
- requiredInt32_ = other.requiredInt32_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public NestedMessage Clone() {
- return new NestedMessage(this);
- }
- /// <summary>Field number for the "required_int32" field.</summary>
- public const int RequiredInt32FieldNumber = 1;
- private readonly static int RequiredInt32DefaultValue = 0;
- private int requiredInt32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int RequiredInt32 {
- get { if ((_hasBits0 & 1) != 0) { return requiredInt32_; } else { return RequiredInt32DefaultValue; } }
- set {
- _hasBits0 |= 1;
- requiredInt32_ = value;
- }
- }
- /// <summary>Gets whether the "required_int32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasRequiredInt32 {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "required_int32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearRequiredInt32() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as NestedMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(NestedMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (RequiredInt32 != other.RequiredInt32) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasRequiredInt32) hash ^= RequiredInt32.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasRequiredInt32) {
- output.WriteRawTag(8);
- output.WriteInt32(RequiredInt32);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasRequiredInt32) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(RequiredInt32);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(NestedMessage other) {
- if (other == null) {
- return;
- }
- if (other.HasRequiredInt32) {
- RequiredInt32 = other.RequiredInt32;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- RequiredInt32 = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- public sealed partial class TestPackedTypes : pb::IMessage<TestPackedTypes> {
- private static readonly pb::MessageParser<TestPackedTypes> _parser = new pb::MessageParser<TestPackedTypes>(() => new TestPackedTypes());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestPackedTypes> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[48]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestPackedTypes() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestPackedTypes(TestPackedTypes other) : this() {
- packedInt32_ = other.packedInt32_.Clone();
- packedInt64_ = other.packedInt64_.Clone();
- packedUint32_ = other.packedUint32_.Clone();
- packedUint64_ = other.packedUint64_.Clone();
- packedSint32_ = other.packedSint32_.Clone();
- packedSint64_ = other.packedSint64_.Clone();
- packedFixed32_ = other.packedFixed32_.Clone();
- packedFixed64_ = other.packedFixed64_.Clone();
- packedSfixed32_ = other.packedSfixed32_.Clone();
- packedSfixed64_ = other.packedSfixed64_.Clone();
- packedFloat_ = other.packedFloat_.Clone();
- packedDouble_ = other.packedDouble_.Clone();
- packedBool_ = other.packedBool_.Clone();
- packedEnum_ = other.packedEnum_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestPackedTypes Clone() {
- return new TestPackedTypes(this);
- }
- /// <summary>Field number for the "packed_int32" field.</summary>
- public const int PackedInt32FieldNumber = 90;
- private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec
- = pb::FieldCodec.ForInt32(722);
- private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> PackedInt32 {
- get { return packedInt32_; }
- }
- /// <summary>Field number for the "packed_int64" field.</summary>
- public const int PackedInt64FieldNumber = 91;
- private static readonly pb::FieldCodec<long> _repeated_packedInt64_codec
- = pb::FieldCodec.ForInt64(730);
- private readonly pbc::RepeatedField<long> packedInt64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> PackedInt64 {
- get { return packedInt64_; }
- }
- /// <summary>Field number for the "packed_uint32" field.</summary>
- public const int PackedUint32FieldNumber = 92;
- private static readonly pb::FieldCodec<uint> _repeated_packedUint32_codec
- = pb::FieldCodec.ForUInt32(738);
- private readonly pbc::RepeatedField<uint> packedUint32_ = new pbc::RepeatedField<uint>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<uint> PackedUint32 {
- get { return packedUint32_; }
- }
- /// <summary>Field number for the "packed_uint64" field.</summary>
- public const int PackedUint64FieldNumber = 93;
- private static readonly pb::FieldCodec<ulong> _repeated_packedUint64_codec
- = pb::FieldCodec.ForUInt64(746);
- private readonly pbc::RepeatedField<ulong> packedUint64_ = new pbc::RepeatedField<ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong> PackedUint64 {
- get { return packedUint64_; }
- }
- /// <summary>Field number for the "packed_sint32" field.</summary>
- public const int PackedSint32FieldNumber = 94;
- private static readonly pb::FieldCodec<int> _repeated_packedSint32_codec
- = pb::FieldCodec.ForSInt32(754);
- private readonly pbc::RepeatedField<int> packedSint32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> PackedSint32 {
- get { return packedSint32_; }
- }
- /// <summary>Field number for the "packed_sint64" field.</summary>
- public const int PackedSint64FieldNumber = 95;
- private static readonly pb::FieldCodec<long> _repeated_packedSint64_codec
- = pb::FieldCodec.ForSInt64(762);
- private readonly pbc::RepeatedField<long> packedSint64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> PackedSint64 {
- get { return packedSint64_; }
- }
- /// <summary>Field number for the "packed_fixed32" field.</summary>
- public const int PackedFixed32FieldNumber = 96;
- private static readonly pb::FieldCodec<uint> _repeated_packedFixed32_codec
- = pb::FieldCodec.ForFixed32(770);
- private readonly pbc::RepeatedField<uint> packedFixed32_ = new pbc::RepeatedField<uint>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<uint> PackedFixed32 {
- get { return packedFixed32_; }
- }
- /// <summary>Field number for the "packed_fixed64" field.</summary>
- public const int PackedFixed64FieldNumber = 97;
- private static readonly pb::FieldCodec<ulong> _repeated_packedFixed64_codec
- = pb::FieldCodec.ForFixed64(778);
- private readonly pbc::RepeatedField<ulong> packedFixed64_ = new pbc::RepeatedField<ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong> PackedFixed64 {
- get { return packedFixed64_; }
- }
- /// <summary>Field number for the "packed_sfixed32" field.</summary>
- public const int PackedSfixed32FieldNumber = 98;
- private static readonly pb::FieldCodec<int> _repeated_packedSfixed32_codec
- = pb::FieldCodec.ForSFixed32(786);
- private readonly pbc::RepeatedField<int> packedSfixed32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> PackedSfixed32 {
- get { return packedSfixed32_; }
- }
- /// <summary>Field number for the "packed_sfixed64" field.</summary>
- public const int PackedSfixed64FieldNumber = 99;
- private static readonly pb::FieldCodec<long> _repeated_packedSfixed64_codec
- = pb::FieldCodec.ForSFixed64(794);
- private readonly pbc::RepeatedField<long> packedSfixed64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> PackedSfixed64 {
- get { return packedSfixed64_; }
- }
- /// <summary>Field number for the "packed_float" field.</summary>
- public const int PackedFloatFieldNumber = 100;
- private static readonly pb::FieldCodec<float> _repeated_packedFloat_codec
- = pb::FieldCodec.ForFloat(802);
- private readonly pbc::RepeatedField<float> packedFloat_ = new pbc::RepeatedField<float>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<float> PackedFloat {
- get { return packedFloat_; }
- }
- /// <summary>Field number for the "packed_double" field.</summary>
- public const int PackedDoubleFieldNumber = 101;
- private static readonly pb::FieldCodec<double> _repeated_packedDouble_codec
- = pb::FieldCodec.ForDouble(810);
- private readonly pbc::RepeatedField<double> packedDouble_ = new pbc::RepeatedField<double>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<double> PackedDouble {
- get { return packedDouble_; }
- }
- /// <summary>Field number for the "packed_bool" field.</summary>
- public const int PackedBoolFieldNumber = 102;
- private static readonly pb::FieldCodec<bool> _repeated_packedBool_codec
- = pb::FieldCodec.ForBool(818);
- private readonly pbc::RepeatedField<bool> packedBool_ = new pbc::RepeatedField<bool>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<bool> PackedBool {
- get { return packedBool_; }
- }
- /// <summary>Field number for the "packed_enum" field.</summary>
- public const int PackedEnumFieldNumber = 103;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_packedEnum_codec
- = pb::FieldCodec.ForEnum(826, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> packedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> PackedEnum {
- get { return packedEnum_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestPackedTypes);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestPackedTypes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!packedInt32_.Equals(other.packedInt32_)) return false;
- if(!packedInt64_.Equals(other.packedInt64_)) return false;
- if(!packedUint32_.Equals(other.packedUint32_)) return false;
- if(!packedUint64_.Equals(other.packedUint64_)) return false;
- if(!packedSint32_.Equals(other.packedSint32_)) return false;
- if(!packedSint64_.Equals(other.packedSint64_)) return false;
- if(!packedFixed32_.Equals(other.packedFixed32_)) return false;
- if(!packedFixed64_.Equals(other.packedFixed64_)) return false;
- if(!packedSfixed32_.Equals(other.packedSfixed32_)) return false;
- if(!packedSfixed64_.Equals(other.packedSfixed64_)) return false;
- if(!packedFloat_.Equals(other.packedFloat_)) return false;
- if(!packedDouble_.Equals(other.packedDouble_)) return false;
- if(!packedBool_.Equals(other.packedBool_)) return false;
- if(!packedEnum_.Equals(other.packedEnum_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= packedInt32_.GetHashCode();
- hash ^= packedInt64_.GetHashCode();
- hash ^= packedUint32_.GetHashCode();
- hash ^= packedUint64_.GetHashCode();
- hash ^= packedSint32_.GetHashCode();
- hash ^= packedSint64_.GetHashCode();
- hash ^= packedFixed32_.GetHashCode();
- hash ^= packedFixed64_.GetHashCode();
- hash ^= packedSfixed32_.GetHashCode();
- hash ^= packedSfixed64_.GetHashCode();
- hash ^= packedFloat_.GetHashCode();
- hash ^= packedDouble_.GetHashCode();
- hash ^= packedBool_.GetHashCode();
- hash ^= packedEnum_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- packedInt32_.WriteTo(output, _repeated_packedInt32_codec);
- packedInt64_.WriteTo(output, _repeated_packedInt64_codec);
- packedUint32_.WriteTo(output, _repeated_packedUint32_codec);
- packedUint64_.WriteTo(output, _repeated_packedUint64_codec);
- packedSint32_.WriteTo(output, _repeated_packedSint32_codec);
- packedSint64_.WriteTo(output, _repeated_packedSint64_codec);
- packedFixed32_.WriteTo(output, _repeated_packedFixed32_codec);
- packedFixed64_.WriteTo(output, _repeated_packedFixed64_codec);
- packedSfixed32_.WriteTo(output, _repeated_packedSfixed32_codec);
- packedSfixed64_.WriteTo(output, _repeated_packedSfixed64_codec);
- packedFloat_.WriteTo(output, _repeated_packedFloat_codec);
- packedDouble_.WriteTo(output, _repeated_packedDouble_codec);
- packedBool_.WriteTo(output, _repeated_packedBool_codec);
- packedEnum_.WriteTo(output, _repeated_packedEnum_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += packedInt32_.CalculateSize(_repeated_packedInt32_codec);
- size += packedInt64_.CalculateSize(_repeated_packedInt64_codec);
- size += packedUint32_.CalculateSize(_repeated_packedUint32_codec);
- size += packedUint64_.CalculateSize(_repeated_packedUint64_codec);
- size += packedSint32_.CalculateSize(_repeated_packedSint32_codec);
- size += packedSint64_.CalculateSize(_repeated_packedSint64_codec);
- size += packedFixed32_.CalculateSize(_repeated_packedFixed32_codec);
- size += packedFixed64_.CalculateSize(_repeated_packedFixed64_codec);
- size += packedSfixed32_.CalculateSize(_repeated_packedSfixed32_codec);
- size += packedSfixed64_.CalculateSize(_repeated_packedSfixed64_codec);
- size += packedFloat_.CalculateSize(_repeated_packedFloat_codec);
- size += packedDouble_.CalculateSize(_repeated_packedDouble_codec);
- size += packedBool_.CalculateSize(_repeated_packedBool_codec);
- size += packedEnum_.CalculateSize(_repeated_packedEnum_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestPackedTypes other) {
- if (other == null) {
- return;
- }
- packedInt32_.Add(other.packedInt32_);
- packedInt64_.Add(other.packedInt64_);
- packedUint32_.Add(other.packedUint32_);
- packedUint64_.Add(other.packedUint64_);
- packedSint32_.Add(other.packedSint32_);
- packedSint64_.Add(other.packedSint64_);
- packedFixed32_.Add(other.packedFixed32_);
- packedFixed64_.Add(other.packedFixed64_);
- packedSfixed32_.Add(other.packedSfixed32_);
- packedSfixed64_.Add(other.packedSfixed64_);
- packedFloat_.Add(other.packedFloat_);
- packedDouble_.Add(other.packedDouble_);
- packedBool_.Add(other.packedBool_);
- packedEnum_.Add(other.packedEnum_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 722:
- case 720: {
- packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec);
- break;
- }
- case 730:
- case 728: {
- packedInt64_.AddEntriesFrom(input, _repeated_packedInt64_codec);
- break;
- }
- case 738:
- case 736: {
- packedUint32_.AddEntriesFrom(input, _repeated_packedUint32_codec);
- break;
- }
- case 746:
- case 744: {
- packedUint64_.AddEntriesFrom(input, _repeated_packedUint64_codec);
- break;
- }
- case 754:
- case 752: {
- packedSint32_.AddEntriesFrom(input, _repeated_packedSint32_codec);
- break;
- }
- case 762:
- case 760: {
- packedSint64_.AddEntriesFrom(input, _repeated_packedSint64_codec);
- break;
- }
- case 770:
- case 773: {
- packedFixed32_.AddEntriesFrom(input, _repeated_packedFixed32_codec);
- break;
- }
- case 778:
- case 777: {
- packedFixed64_.AddEntriesFrom(input, _repeated_packedFixed64_codec);
- break;
- }
- case 786:
- case 789: {
- packedSfixed32_.AddEntriesFrom(input, _repeated_packedSfixed32_codec);
- break;
- }
- case 794:
- case 793: {
- packedSfixed64_.AddEntriesFrom(input, _repeated_packedSfixed64_codec);
- break;
- }
- case 802:
- case 805: {
- packedFloat_.AddEntriesFrom(input, _repeated_packedFloat_codec);
- break;
- }
- case 810:
- case 809: {
- packedDouble_.AddEntriesFrom(input, _repeated_packedDouble_codec);
- break;
- }
- case 818:
- case 816: {
- packedBool_.AddEntriesFrom(input, _repeated_packedBool_codec);
- break;
- }
- case 826:
- case 824: {
- packedEnum_.AddEntriesFrom(input, _repeated_packedEnum_codec);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// A message with the same fields as TestPackedTypes, but without packing. Used
- /// to test packed <-> unpacked wire compatibility.
- /// </summary>
- public sealed partial class TestUnpackedTypes : pb::IMessage<TestUnpackedTypes> {
- private static readonly pb::MessageParser<TestUnpackedTypes> _parser = new pb::MessageParser<TestUnpackedTypes>(() => new TestUnpackedTypes());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestUnpackedTypes> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[49]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestUnpackedTypes() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestUnpackedTypes(TestUnpackedTypes other) : this() {
- unpackedInt32_ = other.unpackedInt32_.Clone();
- unpackedInt64_ = other.unpackedInt64_.Clone();
- unpackedUint32_ = other.unpackedUint32_.Clone();
- unpackedUint64_ = other.unpackedUint64_.Clone();
- unpackedSint32_ = other.unpackedSint32_.Clone();
- unpackedSint64_ = other.unpackedSint64_.Clone();
- unpackedFixed32_ = other.unpackedFixed32_.Clone();
- unpackedFixed64_ = other.unpackedFixed64_.Clone();
- unpackedSfixed32_ = other.unpackedSfixed32_.Clone();
- unpackedSfixed64_ = other.unpackedSfixed64_.Clone();
- unpackedFloat_ = other.unpackedFloat_.Clone();
- unpackedDouble_ = other.unpackedDouble_.Clone();
- unpackedBool_ = other.unpackedBool_.Clone();
- unpackedEnum_ = other.unpackedEnum_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestUnpackedTypes Clone() {
- return new TestUnpackedTypes(this);
- }
- /// <summary>Field number for the "unpacked_int32" field.</summary>
- public const int UnpackedInt32FieldNumber = 90;
- private static readonly pb::FieldCodec<int> _repeated_unpackedInt32_codec
- = pb::FieldCodec.ForInt32(720);
- private readonly pbc::RepeatedField<int> unpackedInt32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> UnpackedInt32 {
- get { return unpackedInt32_; }
- }
- /// <summary>Field number for the "unpacked_int64" field.</summary>
- public const int UnpackedInt64FieldNumber = 91;
- private static readonly pb::FieldCodec<long> _repeated_unpackedInt64_codec
- = pb::FieldCodec.ForInt64(728);
- private readonly pbc::RepeatedField<long> unpackedInt64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> UnpackedInt64 {
- get { return unpackedInt64_; }
- }
- /// <summary>Field number for the "unpacked_uint32" field.</summary>
- public const int UnpackedUint32FieldNumber = 92;
- private static readonly pb::FieldCodec<uint> _repeated_unpackedUint32_codec
- = pb::FieldCodec.ForUInt32(736);
- private readonly pbc::RepeatedField<uint> unpackedUint32_ = new pbc::RepeatedField<uint>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<uint> UnpackedUint32 {
- get { return unpackedUint32_; }
- }
- /// <summary>Field number for the "unpacked_uint64" field.</summary>
- public const int UnpackedUint64FieldNumber = 93;
- private static readonly pb::FieldCodec<ulong> _repeated_unpackedUint64_codec
- = pb::FieldCodec.ForUInt64(744);
- private readonly pbc::RepeatedField<ulong> unpackedUint64_ = new pbc::RepeatedField<ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong> UnpackedUint64 {
- get { return unpackedUint64_; }
- }
- /// <summary>Field number for the "unpacked_sint32" field.</summary>
- public const int UnpackedSint32FieldNumber = 94;
- private static readonly pb::FieldCodec<int> _repeated_unpackedSint32_codec
- = pb::FieldCodec.ForSInt32(752);
- private readonly pbc::RepeatedField<int> unpackedSint32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> UnpackedSint32 {
- get { return unpackedSint32_; }
- }
- /// <summary>Field number for the "unpacked_sint64" field.</summary>
- public const int UnpackedSint64FieldNumber = 95;
- private static readonly pb::FieldCodec<long> _repeated_unpackedSint64_codec
- = pb::FieldCodec.ForSInt64(760);
- private readonly pbc::RepeatedField<long> unpackedSint64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> UnpackedSint64 {
- get { return unpackedSint64_; }
- }
- /// <summary>Field number for the "unpacked_fixed32" field.</summary>
- public const int UnpackedFixed32FieldNumber = 96;
- private static readonly pb::FieldCodec<uint> _repeated_unpackedFixed32_codec
- = pb::FieldCodec.ForFixed32(773);
- private readonly pbc::RepeatedField<uint> unpackedFixed32_ = new pbc::RepeatedField<uint>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<uint> UnpackedFixed32 {
- get { return unpackedFixed32_; }
- }
- /// <summary>Field number for the "unpacked_fixed64" field.</summary>
- public const int UnpackedFixed64FieldNumber = 97;
- private static readonly pb::FieldCodec<ulong> _repeated_unpackedFixed64_codec
- = pb::FieldCodec.ForFixed64(777);
- private readonly pbc::RepeatedField<ulong> unpackedFixed64_ = new pbc::RepeatedField<ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong> UnpackedFixed64 {
- get { return unpackedFixed64_; }
- }
- /// <summary>Field number for the "unpacked_sfixed32" field.</summary>
- public const int UnpackedSfixed32FieldNumber = 98;
- private static readonly pb::FieldCodec<int> _repeated_unpackedSfixed32_codec
- = pb::FieldCodec.ForSFixed32(789);
- private readonly pbc::RepeatedField<int> unpackedSfixed32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> UnpackedSfixed32 {
- get { return unpackedSfixed32_; }
- }
- /// <summary>Field number for the "unpacked_sfixed64" field.</summary>
- public const int UnpackedSfixed64FieldNumber = 99;
- private static readonly pb::FieldCodec<long> _repeated_unpackedSfixed64_codec
- = pb::FieldCodec.ForSFixed64(793);
- private readonly pbc::RepeatedField<long> unpackedSfixed64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> UnpackedSfixed64 {
- get { return unpackedSfixed64_; }
- }
- /// <summary>Field number for the "unpacked_float" field.</summary>
- public const int UnpackedFloatFieldNumber = 100;
- private static readonly pb::FieldCodec<float> _repeated_unpackedFloat_codec
- = pb::FieldCodec.ForFloat(805);
- private readonly pbc::RepeatedField<float> unpackedFloat_ = new pbc::RepeatedField<float>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<float> UnpackedFloat {
- get { return unpackedFloat_; }
- }
- /// <summary>Field number for the "unpacked_double" field.</summary>
- public const int UnpackedDoubleFieldNumber = 101;
- private static readonly pb::FieldCodec<double> _repeated_unpackedDouble_codec
- = pb::FieldCodec.ForDouble(809);
- private readonly pbc::RepeatedField<double> unpackedDouble_ = new pbc::RepeatedField<double>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<double> UnpackedDouble {
- get { return unpackedDouble_; }
- }
- /// <summary>Field number for the "unpacked_bool" field.</summary>
- public const int UnpackedBoolFieldNumber = 102;
- private static readonly pb::FieldCodec<bool> _repeated_unpackedBool_codec
- = pb::FieldCodec.ForBool(816);
- private readonly pbc::RepeatedField<bool> unpackedBool_ = new pbc::RepeatedField<bool>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<bool> UnpackedBool {
- get { return unpackedBool_; }
- }
- /// <summary>Field number for the "unpacked_enum" field.</summary>
- public const int UnpackedEnumFieldNumber = 103;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> _repeated_unpackedEnum_codec
- = pb::FieldCodec.ForEnum(824, x => (int) x, x => (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) x);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> unpackedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.ForeignEnum> UnpackedEnum {
- get { return unpackedEnum_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestUnpackedTypes);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestUnpackedTypes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!unpackedInt32_.Equals(other.unpackedInt32_)) return false;
- if(!unpackedInt64_.Equals(other.unpackedInt64_)) return false;
- if(!unpackedUint32_.Equals(other.unpackedUint32_)) return false;
- if(!unpackedUint64_.Equals(other.unpackedUint64_)) return false;
- if(!unpackedSint32_.Equals(other.unpackedSint32_)) return false;
- if(!unpackedSint64_.Equals(other.unpackedSint64_)) return false;
- if(!unpackedFixed32_.Equals(other.unpackedFixed32_)) return false;
- if(!unpackedFixed64_.Equals(other.unpackedFixed64_)) return false;
- if(!unpackedSfixed32_.Equals(other.unpackedSfixed32_)) return false;
- if(!unpackedSfixed64_.Equals(other.unpackedSfixed64_)) return false;
- if(!unpackedFloat_.Equals(other.unpackedFloat_)) return false;
- if(!unpackedDouble_.Equals(other.unpackedDouble_)) return false;
- if(!unpackedBool_.Equals(other.unpackedBool_)) return false;
- if(!unpackedEnum_.Equals(other.unpackedEnum_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= unpackedInt32_.GetHashCode();
- hash ^= unpackedInt64_.GetHashCode();
- hash ^= unpackedUint32_.GetHashCode();
- hash ^= unpackedUint64_.GetHashCode();
- hash ^= unpackedSint32_.GetHashCode();
- hash ^= unpackedSint64_.GetHashCode();
- hash ^= unpackedFixed32_.GetHashCode();
- hash ^= unpackedFixed64_.GetHashCode();
- hash ^= unpackedSfixed32_.GetHashCode();
- hash ^= unpackedSfixed64_.GetHashCode();
- hash ^= unpackedFloat_.GetHashCode();
- hash ^= unpackedDouble_.GetHashCode();
- hash ^= unpackedBool_.GetHashCode();
- hash ^= unpackedEnum_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- unpackedInt32_.WriteTo(output, _repeated_unpackedInt32_codec);
- unpackedInt64_.WriteTo(output, _repeated_unpackedInt64_codec);
- unpackedUint32_.WriteTo(output, _repeated_unpackedUint32_codec);
- unpackedUint64_.WriteTo(output, _repeated_unpackedUint64_codec);
- unpackedSint32_.WriteTo(output, _repeated_unpackedSint32_codec);
- unpackedSint64_.WriteTo(output, _repeated_unpackedSint64_codec);
- unpackedFixed32_.WriteTo(output, _repeated_unpackedFixed32_codec);
- unpackedFixed64_.WriteTo(output, _repeated_unpackedFixed64_codec);
- unpackedSfixed32_.WriteTo(output, _repeated_unpackedSfixed32_codec);
- unpackedSfixed64_.WriteTo(output, _repeated_unpackedSfixed64_codec);
- unpackedFloat_.WriteTo(output, _repeated_unpackedFloat_codec);
- unpackedDouble_.WriteTo(output, _repeated_unpackedDouble_codec);
- unpackedBool_.WriteTo(output, _repeated_unpackedBool_codec);
- unpackedEnum_.WriteTo(output, _repeated_unpackedEnum_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += unpackedInt32_.CalculateSize(_repeated_unpackedInt32_codec);
- size += unpackedInt64_.CalculateSize(_repeated_unpackedInt64_codec);
- size += unpackedUint32_.CalculateSize(_repeated_unpackedUint32_codec);
- size += unpackedUint64_.CalculateSize(_repeated_unpackedUint64_codec);
- size += unpackedSint32_.CalculateSize(_repeated_unpackedSint32_codec);
- size += unpackedSint64_.CalculateSize(_repeated_unpackedSint64_codec);
- size += unpackedFixed32_.CalculateSize(_repeated_unpackedFixed32_codec);
- size += unpackedFixed64_.CalculateSize(_repeated_unpackedFixed64_codec);
- size += unpackedSfixed32_.CalculateSize(_repeated_unpackedSfixed32_codec);
- size += unpackedSfixed64_.CalculateSize(_repeated_unpackedSfixed64_codec);
- size += unpackedFloat_.CalculateSize(_repeated_unpackedFloat_codec);
- size += unpackedDouble_.CalculateSize(_repeated_unpackedDouble_codec);
- size += unpackedBool_.CalculateSize(_repeated_unpackedBool_codec);
- size += unpackedEnum_.CalculateSize(_repeated_unpackedEnum_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestUnpackedTypes other) {
- if (other == null) {
- return;
- }
- unpackedInt32_.Add(other.unpackedInt32_);
- unpackedInt64_.Add(other.unpackedInt64_);
- unpackedUint32_.Add(other.unpackedUint32_);
- unpackedUint64_.Add(other.unpackedUint64_);
- unpackedSint32_.Add(other.unpackedSint32_);
- unpackedSint64_.Add(other.unpackedSint64_);
- unpackedFixed32_.Add(other.unpackedFixed32_);
- unpackedFixed64_.Add(other.unpackedFixed64_);
- unpackedSfixed32_.Add(other.unpackedSfixed32_);
- unpackedSfixed64_.Add(other.unpackedSfixed64_);
- unpackedFloat_.Add(other.unpackedFloat_);
- unpackedDouble_.Add(other.unpackedDouble_);
- unpackedBool_.Add(other.unpackedBool_);
- unpackedEnum_.Add(other.unpackedEnum_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 722:
- case 720: {
- unpackedInt32_.AddEntriesFrom(input, _repeated_unpackedInt32_codec);
- break;
- }
- case 730:
- case 728: {
- unpackedInt64_.AddEntriesFrom(input, _repeated_unpackedInt64_codec);
- break;
- }
- case 738:
- case 736: {
- unpackedUint32_.AddEntriesFrom(input, _repeated_unpackedUint32_codec);
- break;
- }
- case 746:
- case 744: {
- unpackedUint64_.AddEntriesFrom(input, _repeated_unpackedUint64_codec);
- break;
- }
- case 754:
- case 752: {
- unpackedSint32_.AddEntriesFrom(input, _repeated_unpackedSint32_codec);
- break;
- }
- case 762:
- case 760: {
- unpackedSint64_.AddEntriesFrom(input, _repeated_unpackedSint64_codec);
- break;
- }
- case 770:
- case 773: {
- unpackedFixed32_.AddEntriesFrom(input, _repeated_unpackedFixed32_codec);
- break;
- }
- case 778:
- case 777: {
- unpackedFixed64_.AddEntriesFrom(input, _repeated_unpackedFixed64_codec);
- break;
- }
- case 786:
- case 789: {
- unpackedSfixed32_.AddEntriesFrom(input, _repeated_unpackedSfixed32_codec);
- break;
- }
- case 794:
- case 793: {
- unpackedSfixed64_.AddEntriesFrom(input, _repeated_unpackedSfixed64_codec);
- break;
- }
- case 802:
- case 805: {
- unpackedFloat_.AddEntriesFrom(input, _repeated_unpackedFloat_codec);
- break;
- }
- case 810:
- case 809: {
- unpackedDouble_.AddEntriesFrom(input, _repeated_unpackedDouble_codec);
- break;
- }
- case 818:
- case 816: {
- unpackedBool_.AddEntriesFrom(input, _repeated_unpackedBool_codec);
- break;
- }
- case 826:
- case 824: {
- unpackedEnum_.AddEntriesFrom(input, _repeated_unpackedEnum_codec);
- break;
- }
- }
- }
- }
- }
- public sealed partial class TestPackedExtensions : pb::IExtendableMessage<TestPackedExtensions> {
- private static readonly pb::MessageParser<TestPackedExtensions> _parser = new pb::MessageParser<TestPackedExtensions>(() => new TestPackedExtensions());
- private pb::UnknownFieldSet _unknownFields;
- private pb::ExtensionSet<TestPackedExtensions> _extensions;
- private pb::ExtensionSet<TestPackedExtensions> _Extensions { get { return _extensions; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestPackedExtensions> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[50]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestPackedExtensions() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestPackedExtensions(TestPackedExtensions other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- _extensions = pb::ExtensionSet.Clone(other._extensions);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestPackedExtensions Clone() {
- return new TestPackedExtensions(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestPackedExtensions);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestPackedExtensions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!Equals(_extensions, other._extensions)) {
- return false;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_extensions != null) {
- hash ^= _extensions.GetHashCode();
- }
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (_extensions != null) {
- _extensions.WriteTo(output);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_extensions != null) {
- size += _extensions.CalculateSize();
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestPackedExtensions other) {
- if (other == null) {
- return;
- }
- pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- }
- break;
- }
- }
- }
- public TValue GetExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestPackedExtensions, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestPackedExtensions, TValue> extension) {
- return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
- }
- public void SetExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension, TValue value) {
- pb::ExtensionSet.Set(ref _extensions, extension, value);
- }
- public bool HasExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension) {
- return pb::ExtensionSet.Has(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::Extension<TestPackedExtensions, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::RepeatedExtension<TestPackedExtensions, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- }
- public sealed partial class TestUnpackedExtensions : pb::IExtendableMessage<TestUnpackedExtensions> {
- private static readonly pb::MessageParser<TestUnpackedExtensions> _parser = new pb::MessageParser<TestUnpackedExtensions>(() => new TestUnpackedExtensions());
- private pb::UnknownFieldSet _unknownFields;
- private pb::ExtensionSet<TestUnpackedExtensions> _extensions;
- private pb::ExtensionSet<TestUnpackedExtensions> _Extensions { get { return _extensions; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestUnpackedExtensions> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[51]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestUnpackedExtensions() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestUnpackedExtensions(TestUnpackedExtensions other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- _extensions = pb::ExtensionSet.Clone(other._extensions);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestUnpackedExtensions Clone() {
- return new TestUnpackedExtensions(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestUnpackedExtensions);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestUnpackedExtensions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!Equals(_extensions, other._extensions)) {
- return false;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_extensions != null) {
- hash ^= _extensions.GetHashCode();
- }
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (_extensions != null) {
- _extensions.WriteTo(output);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_extensions != null) {
- size += _extensions.CalculateSize();
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestUnpackedExtensions other) {
- if (other == null) {
- return;
- }
- pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- }
- break;
- }
- }
- }
- public TValue GetExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension) {
- return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
- }
- public void SetExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension, TValue value) {
- pb::ExtensionSet.Set(ref _extensions, extension, value);
- }
- public bool HasExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension) {
- return pb::ExtensionSet.Has(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::Extension<TestUnpackedExtensions, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::RepeatedExtension<TestUnpackedExtensions, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- }
- /// <summary>
- /// Used by ExtensionSetTest/DynamicExtensions. The test actually builds
- /// a set of extensions to TestAllExtensions dynamically, based on the fields
- /// of this message type.
- /// </summary>
- public sealed partial class TestDynamicExtensions : pb::IMessage<TestDynamicExtensions> {
- private static readonly pb::MessageParser<TestDynamicExtensions> _parser = new pb::MessageParser<TestDynamicExtensions>(() => new TestDynamicExtensions());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestDynamicExtensions> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[52]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestDynamicExtensions() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestDynamicExtensions(TestDynamicExtensions other) : this() {
- _hasBits0 = other._hasBits0;
- scalarExtension_ = other.scalarExtension_;
- enumExtension_ = other.enumExtension_;
- dynamicEnumExtension_ = other.dynamicEnumExtension_;
- messageExtension_ = other.messageExtension_ != null ? other.messageExtension_.Clone() : null;
- dynamicMessageExtension_ = other.dynamicMessageExtension_ != null ? other.dynamicMessageExtension_.Clone() : null;
- repeatedExtension_ = other.repeatedExtension_.Clone();
- packedExtension_ = other.packedExtension_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestDynamicExtensions Clone() {
- return new TestDynamicExtensions(this);
- }
- /// <summary>Field number for the "scalar_extension" field.</summary>
- public const int ScalarExtensionFieldNumber = 2000;
- private readonly static uint ScalarExtensionDefaultValue = 0;
- private uint scalarExtension_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint ScalarExtension {
- get { if ((_hasBits0 & 1) != 0) { return scalarExtension_; } else { return ScalarExtensionDefaultValue; } }
- set {
- _hasBits0 |= 1;
- scalarExtension_ = value;
- }
- }
- /// <summary>Gets whether the "scalar_extension" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasScalarExtension {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "scalar_extension" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearScalarExtension() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "enum_extension" field.</summary>
- public const int EnumExtensionFieldNumber = 2001;
- private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumExtensionDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
- private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum enumExtension_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum EnumExtension {
- get { if ((_hasBits0 & 2) != 0) { return enumExtension_; } else { return EnumExtensionDefaultValue; } }
- set {
- _hasBits0 |= 2;
- enumExtension_ = value;
- }
- }
- /// <summary>Gets whether the "enum_extension" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasEnumExtension {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// <summary>Clears the value of the "enum_extension" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearEnumExtension() {
- _hasBits0 &= ~2;
- }
- /// <summary>Field number for the "dynamic_enum_extension" field.</summary>
- public const int DynamicEnumExtensionFieldNumber = 2002;
- private readonly static global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtensionDefaultValue = global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType.DynamicFoo;
- private global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType dynamicEnumExtension_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtension {
- get { if ((_hasBits0 & 4) != 0) { return dynamicEnumExtension_; } else { return DynamicEnumExtensionDefaultValue; } }
- set {
- _hasBits0 |= 4;
- dynamicEnumExtension_ = value;
- }
- }
- /// <summary>Gets whether the "dynamic_enum_extension" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDynamicEnumExtension {
- get { return (_hasBits0 & 4) != 0; }
- }
- /// <summary>Clears the value of the "dynamic_enum_extension" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDynamicEnumExtension() {
- _hasBits0 &= ~4;
- }
- /// <summary>Field number for the "message_extension" field.</summary>
- public const int MessageExtensionFieldNumber = 2003;
- private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage messageExtension_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage MessageExtension {
- get { return messageExtension_; }
- set {
- messageExtension_ = value;
- }
- }
- /// <summary>Field number for the "dynamic_message_extension" field.</summary>
- public const int DynamicMessageExtensionFieldNumber = 2004;
- private global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType dynamicMessageExtension_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType DynamicMessageExtension {
- get { return dynamicMessageExtension_; }
- set {
- dynamicMessageExtension_ = value;
- }
- }
- /// <summary>Field number for the "repeated_extension" field.</summary>
- public const int RepeatedExtensionFieldNumber = 2005;
- private static readonly pb::FieldCodec<string> _repeated_repeatedExtension_codec
- = pb::FieldCodec.ForString(16042);
- private readonly pbc::RepeatedField<string> repeatedExtension_ = new pbc::RepeatedField<string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<string> RepeatedExtension {
- get { return repeatedExtension_; }
- }
- /// <summary>Field number for the "packed_extension" field.</summary>
- public const int PackedExtensionFieldNumber = 2006;
- private static readonly pb::FieldCodec<int> _repeated_packedExtension_codec
- = pb::FieldCodec.ForSInt32(16050);
- private readonly pbc::RepeatedField<int> packedExtension_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> PackedExtension {
- get { return packedExtension_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestDynamicExtensions);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestDynamicExtensions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (ScalarExtension != other.ScalarExtension) return false;
- if (EnumExtension != other.EnumExtension) return false;
- if (DynamicEnumExtension != other.DynamicEnumExtension) return false;
- if (!object.Equals(MessageExtension, other.MessageExtension)) return false;
- if (!object.Equals(DynamicMessageExtension, other.DynamicMessageExtension)) return false;
- if(!repeatedExtension_.Equals(other.repeatedExtension_)) return false;
- if(!packedExtension_.Equals(other.packedExtension_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasScalarExtension) hash ^= ScalarExtension.GetHashCode();
- if (HasEnumExtension) hash ^= EnumExtension.GetHashCode();
- if (HasDynamicEnumExtension) hash ^= DynamicEnumExtension.GetHashCode();
- if (messageExtension_ != null) hash ^= MessageExtension.GetHashCode();
- if (dynamicMessageExtension_ != null) hash ^= DynamicMessageExtension.GetHashCode();
- hash ^= repeatedExtension_.GetHashCode();
- hash ^= packedExtension_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasScalarExtension) {
- output.WriteRawTag(133, 125);
- output.WriteFixed32(ScalarExtension);
- }
- if (HasEnumExtension) {
- output.WriteRawTag(136, 125);
- output.WriteEnum((int) EnumExtension);
- }
- if (HasDynamicEnumExtension) {
- output.WriteRawTag(144, 125);
- output.WriteEnum((int) DynamicEnumExtension);
- }
- if (messageExtension_ != null) {
- output.WriteRawTag(154, 125);
- output.WriteMessage(MessageExtension);
- }
- if (dynamicMessageExtension_ != null) {
- output.WriteRawTag(162, 125);
- output.WriteMessage(DynamicMessageExtension);
- }
- repeatedExtension_.WriteTo(output, _repeated_repeatedExtension_codec);
- packedExtension_.WriteTo(output, _repeated_packedExtension_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasScalarExtension) {
- size += 2 + 4;
- }
- if (HasEnumExtension) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) EnumExtension);
- }
- if (HasDynamicEnumExtension) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DynamicEnumExtension);
- }
- if (messageExtension_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(MessageExtension);
- }
- if (dynamicMessageExtension_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(DynamicMessageExtension);
- }
- size += repeatedExtension_.CalculateSize(_repeated_repeatedExtension_codec);
- size += packedExtension_.CalculateSize(_repeated_packedExtension_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestDynamicExtensions other) {
- if (other == null) {
- return;
- }
- if (other.HasScalarExtension) {
- ScalarExtension = other.ScalarExtension;
- }
- if (other.HasEnumExtension) {
- EnumExtension = other.EnumExtension;
- }
- if (other.HasDynamicEnumExtension) {
- DynamicEnumExtension = other.DynamicEnumExtension;
- }
- if (other.messageExtension_ != null) {
- if (messageExtension_ == null) {
- MessageExtension = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
- }
- MessageExtension.MergeFrom(other.MessageExtension);
- }
- if (other.dynamicMessageExtension_ != null) {
- if (dynamicMessageExtension_ == null) {
- DynamicMessageExtension = new global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType();
- }
- DynamicMessageExtension.MergeFrom(other.DynamicMessageExtension);
- }
- repeatedExtension_.Add(other.repeatedExtension_);
- packedExtension_.Add(other.packedExtension_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 16005: {
- ScalarExtension = input.ReadFixed32();
- break;
- }
- case 16008: {
- EnumExtension = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
- break;
- }
- case 16016: {
- DynamicEnumExtension = (global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicEnumType) input.ReadEnum();
- break;
- }
- case 16026: {
- if (messageExtension_ == null) {
- MessageExtension = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
- }
- input.ReadMessage(MessageExtension);
- break;
- }
- case 16034: {
- if (dynamicMessageExtension_ == null) {
- DynamicMessageExtension = new global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Types.DynamicMessageType();
- }
- input.ReadMessage(DynamicMessageExtension);
- break;
- }
- case 16042: {
- repeatedExtension_.AddEntriesFrom(input, _repeated_repeatedExtension_codec);
- break;
- }
- case 16050:
- case 16048: {
- packedExtension_.AddEntriesFrom(input, _repeated_packedExtension_codec);
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestDynamicExtensions message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public enum DynamicEnumType {
- [pbr::OriginalName("DYNAMIC_FOO")] DynamicFoo = 2200,
- [pbr::OriginalName("DYNAMIC_BAR")] DynamicBar = 2201,
- [pbr::OriginalName("DYNAMIC_BAZ")] DynamicBaz = 2202,
- }
- public sealed partial class DynamicMessageType : pb::IMessage<DynamicMessageType> {
- private static readonly pb::MessageParser<DynamicMessageType> _parser = new pb::MessageParser<DynamicMessageType>(() => new DynamicMessageType());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<DynamicMessageType> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestDynamicExtensions.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DynamicMessageType() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DynamicMessageType(DynamicMessageType other) : this() {
- _hasBits0 = other._hasBits0;
- dynamicField_ = other.dynamicField_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DynamicMessageType Clone() {
- return new DynamicMessageType(this);
- }
- /// <summary>Field number for the "dynamic_field" field.</summary>
- public const int DynamicFieldFieldNumber = 2100;
- private readonly static int DynamicFieldDefaultValue = 0;
- private int dynamicField_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int DynamicField {
- get { if ((_hasBits0 & 1) != 0) { return dynamicField_; } else { return DynamicFieldDefaultValue; } }
- set {
- _hasBits0 |= 1;
- dynamicField_ = value;
- }
- }
- /// <summary>Gets whether the "dynamic_field" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasDynamicField {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "dynamic_field" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearDynamicField() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as DynamicMessageType);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(DynamicMessageType other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (DynamicField != other.DynamicField) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasDynamicField) hash ^= DynamicField.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasDynamicField) {
- output.WriteRawTag(160, 131, 1);
- output.WriteInt32(DynamicField);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasDynamicField) {
- size += 3 + pb::CodedOutputStream.ComputeInt32Size(DynamicField);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(DynamicMessageType other) {
- if (other == null) {
- return;
- }
- if (other.HasDynamicField) {
- DynamicField = other.DynamicField;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 16800: {
- DynamicField = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- public sealed partial class TestRepeatedScalarDifferentTagSizes : pb::IMessage<TestRepeatedScalarDifferentTagSizes> {
- private static readonly pb::MessageParser<TestRepeatedScalarDifferentTagSizes> _parser = new pb::MessageParser<TestRepeatedScalarDifferentTagSizes>(() => new TestRepeatedScalarDifferentTagSizes());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestRepeatedScalarDifferentTagSizes> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[53]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRepeatedScalarDifferentTagSizes() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRepeatedScalarDifferentTagSizes(TestRepeatedScalarDifferentTagSizes other) : this() {
- repeatedFixed32_ = other.repeatedFixed32_.Clone();
- repeatedInt32_ = other.repeatedInt32_.Clone();
- repeatedFixed64_ = other.repeatedFixed64_.Clone();
- repeatedInt64_ = other.repeatedInt64_.Clone();
- repeatedFloat_ = other.repeatedFloat_.Clone();
- repeatedUint64_ = other.repeatedUint64_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestRepeatedScalarDifferentTagSizes Clone() {
- return new TestRepeatedScalarDifferentTagSizes(this);
- }
- /// <summary>Field number for the "repeated_fixed32" field.</summary>
- public const int RepeatedFixed32FieldNumber = 12;
- private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
- = pb::FieldCodec.ForFixed32(101);
- private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
- /// <summary>
- /// Parsing repeated fixed size values used to fail. This message needs to be
- /// used in order to get a tag of the right size; all of the repeated fields
- /// in TestAllTypes didn't trigger the check.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<uint> RepeatedFixed32 {
- get { return repeatedFixed32_; }
- }
- /// <summary>Field number for the "repeated_int32" field.</summary>
- public const int RepeatedInt32FieldNumber = 13;
- private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
- = pb::FieldCodec.ForInt32(104);
- private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
- /// <summary>
- /// Check for a varint type, just for good measure.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> RepeatedInt32 {
- get { return repeatedInt32_; }
- }
- /// <summary>Field number for the "repeated_fixed64" field.</summary>
- public const int RepeatedFixed64FieldNumber = 2046;
- private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
- = pb::FieldCodec.ForFixed64(16369);
- private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
- /// <summary>
- /// These have two-byte tags.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong> RepeatedFixed64 {
- get { return repeatedFixed64_; }
- }
- /// <summary>Field number for the "repeated_int64" field.</summary>
- public const int RepeatedInt64FieldNumber = 2047;
- private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
- = pb::FieldCodec.ForInt64(16376);
- private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> RepeatedInt64 {
- get { return repeatedInt64_; }
- }
- /// <summary>Field number for the "repeated_float" field.</summary>
- public const int RepeatedFloatFieldNumber = 262142;
- private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
- = pb::FieldCodec.ForFloat(2097141);
- private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
- /// <summary>
- /// Three byte tags.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<float> RepeatedFloat {
- get { return repeatedFloat_; }
- }
- /// <summary>Field number for the "repeated_uint64" field.</summary>
- public const int RepeatedUint64FieldNumber = 262143;
- private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
- = pb::FieldCodec.ForUInt64(2097144);
- private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<ulong> RepeatedUint64 {
- get { return repeatedUint64_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestRepeatedScalarDifferentTagSizes);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestRepeatedScalarDifferentTagSizes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
- if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
- if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
- if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
- if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
- if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= repeatedFixed32_.GetHashCode();
- hash ^= repeatedInt32_.GetHashCode();
- hash ^= repeatedFixed64_.GetHashCode();
- hash ^= repeatedInt64_.GetHashCode();
- hash ^= repeatedFloat_.GetHashCode();
- hash ^= repeatedUint64_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
- repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
- repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
- repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
- repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
- repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
- size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
- size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
- size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
- size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
- size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestRepeatedScalarDifferentTagSizes other) {
- if (other == null) {
- return;
- }
- repeatedFixed32_.Add(other.repeatedFixed32_);
- repeatedInt32_.Add(other.repeatedInt32_);
- repeatedFixed64_.Add(other.repeatedFixed64_);
- repeatedInt64_.Add(other.repeatedInt64_);
- repeatedFloat_.Add(other.repeatedFloat_);
- repeatedUint64_.Add(other.repeatedUint64_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 98:
- case 101: {
- repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
- break;
- }
- case 106:
- case 104: {
- repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
- break;
- }
- case 16370:
- case 16369: {
- repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
- break;
- }
- case 16378:
- case 16376: {
- repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
- break;
- }
- case 2097138:
- case 2097141: {
- repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
- break;
- }
- case 2097146:
- case 2097144: {
- repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Test that if an optional or required message/group field appears multiple
- /// times in the input, they need to be merged.
- /// </summary>
- public sealed partial class TestParsingMerge : pb::IExtendableMessage<TestParsingMerge> {
- private static readonly pb::MessageParser<TestParsingMerge> _parser = new pb::MessageParser<TestParsingMerge>(() => new TestParsingMerge());
- private pb::UnknownFieldSet _unknownFields;
- private pb::ExtensionSet<TestParsingMerge> _extensions;
- private pb::ExtensionSet<TestParsingMerge> _Extensions { get { return _extensions; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestParsingMerge> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[54]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestParsingMerge() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestParsingMerge(TestParsingMerge other) : this() {
- requiredAllTypes_ = other.requiredAllTypes_ != null ? other.requiredAllTypes_.Clone() : null;
- optionalAllTypes_ = other.optionalAllTypes_ != null ? other.optionalAllTypes_.Clone() : null;
- repeatedAllTypes_ = other.repeatedAllTypes_.Clone();
- optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
- repeatedGroup_ = other.repeatedGroup_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- _extensions = pb::ExtensionSet.Clone(other._extensions);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestParsingMerge Clone() {
- return new TestParsingMerge(this);
- }
- /// <summary>Field number for the "required_all_types" field.</summary>
- public const int RequiredAllTypesFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes requiredAllTypes_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes RequiredAllTypes {
- get { return requiredAllTypes_; }
- set {
- requiredAllTypes_ = value;
- }
- }
- /// <summary>Field number for the "optional_all_types" field.</summary>
- public const int OptionalAllTypesFieldNumber = 2;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes optionalAllTypes_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes OptionalAllTypes {
- get { return optionalAllTypes_; }
- set {
- optionalAllTypes_ = value;
- }
- }
- /// <summary>Field number for the "repeated_all_types" field.</summary>
- public const int RepeatedAllTypesFieldNumber = 3;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_repeatedAllTypes_codec
- = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> repeatedAllTypes_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> RepeatedAllTypes {
- get { return repeatedAllTypes_; }
- }
- /// <summary>Field number for the "optionalgroup" field.</summary>
- public const int OptionalGroupFieldNumber = 10;
- private global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup optionalGroup_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup OptionalGroup {
- get { return optionalGroup_; }
- set {
- optionalGroup_ = value;
- }
- }
- /// <summary>Gets whether the optionalgroup field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalGroup {
- get { return optionalGroup_ != null; }
- }
- /// <summary>Clears the value of the optionalgroup field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalGroup() {
- optionalGroup_ = null;
- }
- /// <summary>Field number for the "repeatedgroup" field.</summary>
- public const int RepeatedGroupFieldNumber = 20;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup> _repeated_repeatedGroup_codec
- = pb::FieldCodec.ForGroup(163, 164, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup> repeatedGroup_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedGroup> RepeatedGroup {
- get { return repeatedGroup_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestParsingMerge);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestParsingMerge other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(RequiredAllTypes, other.RequiredAllTypes)) return false;
- if (!object.Equals(OptionalAllTypes, other.OptionalAllTypes)) return false;
- if(!repeatedAllTypes_.Equals(other.repeatedAllTypes_)) return false;
- if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
- if(!repeatedGroup_.Equals(other.repeatedGroup_)) return false;
- if (!Equals(_extensions, other._extensions)) {
- return false;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (requiredAllTypes_ != null) hash ^= RequiredAllTypes.GetHashCode();
- if (optionalAllTypes_ != null) hash ^= OptionalAllTypes.GetHashCode();
- hash ^= repeatedAllTypes_.GetHashCode();
- if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
- hash ^= repeatedGroup_.GetHashCode();
- if (_extensions != null) {
- hash ^= _extensions.GetHashCode();
- }
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (requiredAllTypes_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(RequiredAllTypes);
- }
- if (optionalAllTypes_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(OptionalAllTypes);
- }
- repeatedAllTypes_.WriteTo(output, _repeated_repeatedAllTypes_codec);
- if (HasOptionalGroup) {
- output.WriteRawTag(83);
- output.WriteGroup(OptionalGroup);
- output.WriteRawTag(84);
- }
- repeatedGroup_.WriteTo(output, _repeated_repeatedGroup_codec);
- if (_extensions != null) {
- _extensions.WriteTo(output);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (requiredAllTypes_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequiredAllTypes);
- }
- if (optionalAllTypes_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalAllTypes);
- }
- size += repeatedAllTypes_.CalculateSize(_repeated_repeatedAllTypes_codec);
- if (HasOptionalGroup) {
- size += 2 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
- }
- size += repeatedGroup_.CalculateSize(_repeated_repeatedGroup_codec);
- if (_extensions != null) {
- size += _extensions.CalculateSize();
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestParsingMerge other) {
- if (other == null) {
- return;
- }
- if (other.requiredAllTypes_ != null) {
- if (requiredAllTypes_ == null) {
- RequiredAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- RequiredAllTypes.MergeFrom(other.RequiredAllTypes);
- }
- if (other.optionalAllTypes_ != null) {
- if (optionalAllTypes_ == null) {
- OptionalAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- OptionalAllTypes.MergeFrom(other.OptionalAllTypes);
- }
- repeatedAllTypes_.Add(other.repeatedAllTypes_);
- if (other.HasOptionalGroup) {
- if (!HasOptionalGroup) {
- OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup();
- }
- OptionalGroup.MergeFrom(other.OptionalGroup);
- }
- repeatedGroup_.Add(other.repeatedGroup_);
- pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- }
- break;
- case 10: {
- if (requiredAllTypes_ == null) {
- RequiredAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- input.ReadMessage(RequiredAllTypes);
- break;
- }
- case 18: {
- if (optionalAllTypes_ == null) {
- OptionalAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- input.ReadMessage(OptionalAllTypes);
- break;
- }
- case 26: {
- repeatedAllTypes_.AddEntriesFrom(input, _repeated_repeatedAllTypes_codec);
- break;
- }
- case 83: {
- if (!HasOptionalGroup) {
- OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.OptionalGroup();
- }
- input.ReadGroup(OptionalGroup);
- break;
- }
- case 163: {
- repeatedGroup_.AddEntriesFrom(input, _repeated_repeatedGroup_codec);
- break;
- }
- }
- }
- }
- public TValue GetExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestParsingMerge, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestParsingMerge, TValue> extension) {
- return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
- }
- public void SetExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension, TValue value) {
- pb::ExtensionSet.Set(ref _extensions, extension, value);
- }
- public bool HasExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension) {
- return pb::ExtensionSet.Has(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::Extension<TestParsingMerge, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::RepeatedExtension<TestParsingMerge, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestParsingMerge message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- /// <summary>
- /// RepeatedFieldsGenerator defines matching field types as TestParsingMerge,
- /// except that all fields are repeated. In the tests, we will serialize the
- /// RepeatedFieldsGenerator to bytes, and parse the bytes to TestParsingMerge.
- /// Repeated fields in RepeatedFieldsGenerator are expected to be merged into
- /// the corresponding required/optional fields in TestParsingMerge.
- /// </summary>
- public sealed partial class RepeatedFieldsGenerator : pb::IMessage<RepeatedFieldsGenerator> {
- private static readonly pb::MessageParser<RepeatedFieldsGenerator> _parser = new pb::MessageParser<RepeatedFieldsGenerator>(() => new RepeatedFieldsGenerator());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<RepeatedFieldsGenerator> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RepeatedFieldsGenerator() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RepeatedFieldsGenerator(RepeatedFieldsGenerator other) : this() {
- field1_ = other.field1_.Clone();
- field2_ = other.field2_.Clone();
- field3_ = other.field3_.Clone();
- group1_ = other.group1_.Clone();
- group2_ = other.group2_.Clone();
- ext1_ = other.ext1_.Clone();
- ext2_ = other.ext2_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RepeatedFieldsGenerator Clone() {
- return new RepeatedFieldsGenerator(this);
- }
- /// <summary>Field number for the "field1" field.</summary>
- public const int Field1FieldNumber = 1;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_field1_codec
- = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> field1_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Field1 {
- get { return field1_; }
- }
- /// <summary>Field number for the "field2" field.</summary>
- public const int Field2FieldNumber = 2;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_field2_codec
- = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> field2_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Field2 {
- get { return field2_; }
- }
- /// <summary>Field number for the "field3" field.</summary>
- public const int Field3FieldNumber = 3;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_field3_codec
- = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> field3_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Field3 {
- get { return field3_; }
- }
- /// <summary>Field number for the "group1" field.</summary>
- public const int Group1FieldNumber = 10;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> _repeated_group1_codec
- = pb::FieldCodec.ForGroup(83, 84, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Parser);
- 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>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> Group1 {
- get { return group1_; }
- }
- /// <summary>Field number for the "group2" field.</summary>
- public const int Group2FieldNumber = 20;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> _repeated_group2_codec
- = pb::FieldCodec.ForGroup(163, 164, global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Parser);
- 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>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> Group2 {
- get { return group2_; }
- }
- /// <summary>Field number for the "ext1" field.</summary>
- public const int Ext1FieldNumber = 1000;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_ext1_codec
- = pb::FieldCodec.ForMessage(8002, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> ext1_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Ext1 {
- get { return ext1_; }
- }
- /// <summary>Field number for the "ext2" field.</summary>
- public const int Ext2FieldNumber = 1001;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> _repeated_ext2_codec
- = pb::FieldCodec.ForMessage(8010, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> ext2_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> Ext2 {
- get { return ext2_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as RepeatedFieldsGenerator);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(RepeatedFieldsGenerator other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!field1_.Equals(other.field1_)) return false;
- if(!field2_.Equals(other.field2_)) return false;
- if(!field3_.Equals(other.field3_)) return false;
- if(!group1_.Equals(other.group1_)) return false;
- if(!group2_.Equals(other.group2_)) return false;
- if(!ext1_.Equals(other.ext1_)) return false;
- if(!ext2_.Equals(other.ext2_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= field1_.GetHashCode();
- hash ^= field2_.GetHashCode();
- hash ^= field3_.GetHashCode();
- hash ^= group1_.GetHashCode();
- hash ^= group2_.GetHashCode();
- hash ^= ext1_.GetHashCode();
- hash ^= ext2_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- field1_.WriteTo(output, _repeated_field1_codec);
- field2_.WriteTo(output, _repeated_field2_codec);
- field3_.WriteTo(output, _repeated_field3_codec);
- group1_.WriteTo(output, _repeated_group1_codec);
- group2_.WriteTo(output, _repeated_group2_codec);
- ext1_.WriteTo(output, _repeated_ext1_codec);
- ext2_.WriteTo(output, _repeated_ext2_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += field1_.CalculateSize(_repeated_field1_codec);
- size += field2_.CalculateSize(_repeated_field2_codec);
- size += field3_.CalculateSize(_repeated_field3_codec);
- size += group1_.CalculateSize(_repeated_group1_codec);
- size += group2_.CalculateSize(_repeated_group2_codec);
- size += ext1_.CalculateSize(_repeated_ext1_codec);
- size += ext2_.CalculateSize(_repeated_ext2_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(RepeatedFieldsGenerator other) {
- if (other == null) {
- return;
- }
- field1_.Add(other.field1_);
- field2_.Add(other.field2_);
- field3_.Add(other.field3_);
- group1_.Add(other.group1_);
- group2_.Add(other.group2_);
- ext1_.Add(other.ext1_);
- ext2_.Add(other.ext2_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- field1_.AddEntriesFrom(input, _repeated_field1_codec);
- break;
- }
- case 18: {
- field2_.AddEntriesFrom(input, _repeated_field2_codec);
- break;
- }
- case 26: {
- field3_.AddEntriesFrom(input, _repeated_field3_codec);
- break;
- }
- case 83: {
- group1_.AddEntriesFrom(input, _repeated_group1_codec);
- break;
- }
- case 163: {
- group2_.AddEntriesFrom(input, _repeated_group2_codec);
- break;
- }
- case 8002: {
- ext1_.AddEntriesFrom(input, _repeated_ext1_codec);
- break;
- }
- case 8010: {
- ext2_.AddEntriesFrom(input, _repeated_ext2_codec);
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the RepeatedFieldsGenerator message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class Group1 : pb::IMessage<Group1> {
- private static readonly pb::MessageParser<Group1> _parser = new pb::MessageParser<Group1>(() => new Group1());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Group1> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Group1() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Group1(Group1 other) : this() {
- field1_ = other.field1_ != null ? other.field1_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Group1 Clone() {
- return new Group1(this);
- }
- /// <summary>Field number for the "field1" field.</summary>
- public const int Field1FieldNumber = 11;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes field1_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes Field1 {
- get { return field1_; }
- set {
- field1_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Group1);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Group1 other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Field1, other.Field1)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (field1_ != null) hash ^= Field1.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (field1_ != null) {
- output.WriteRawTag(90);
- output.WriteMessage(Field1);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (field1_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Field1);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Group1 other) {
- if (other == null) {
- return;
- }
- if (other.field1_ != null) {
- if (field1_ == null) {
- Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- Field1.MergeFrom(other.Field1);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 84:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 90: {
- if (field1_ == null) {
- Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- input.ReadMessage(Field1);
- break;
- }
- }
- }
- }
- }
- public sealed partial class Group2 : pb::IMessage<Group2> {
- private static readonly pb::MessageParser<Group2> _parser = new pb::MessageParser<Group2>(() => new Group2());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Group2> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Types.RepeatedFieldsGenerator.Descriptor.NestedTypes[1]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Group2() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Group2(Group2 other) : this() {
- field1_ = other.field1_ != null ? other.field1_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Group2 Clone() {
- return new Group2(this);
- }
- /// <summary>Field number for the "field1" field.</summary>
- public const int Field1FieldNumber = 21;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes field1_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes Field1 {
- get { return field1_; }
- set {
- field1_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Group2);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Group2 other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Field1, other.Field1)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (field1_ != null) hash ^= Field1.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (field1_ != null) {
- output.WriteRawTag(170, 1);
- output.WriteMessage(Field1);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (field1_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(Field1);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Group2 other) {
- if (other == null) {
- return;
- }
- if (other.field1_ != null) {
- if (field1_ == null) {
- Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- Field1.MergeFrom(other.Field1);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 164:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 170: {
- if (field1_ == null) {
- Field1 = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- input.ReadMessage(Field1);
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup> {
- private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Descriptor.NestedTypes[1]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup(OptionalGroup other) : this() {
- optionalGroupAllTypes_ = other.optionalGroupAllTypes_ != null ? other.optionalGroupAllTypes_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup Clone() {
- return new OptionalGroup(this);
- }
- /// <summary>Field number for the "optional_group_all_types" field.</summary>
- public const int OptionalGroupAllTypesFieldNumber = 11;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes optionalGroupAllTypes_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes OptionalGroupAllTypes {
- get { return optionalGroupAllTypes_; }
- set {
- optionalGroupAllTypes_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as OptionalGroup);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(OptionalGroup other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(OptionalGroupAllTypes, other.OptionalGroupAllTypes)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (optionalGroupAllTypes_ != null) hash ^= OptionalGroupAllTypes.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (optionalGroupAllTypes_ != null) {
- output.WriteRawTag(90);
- output.WriteMessage(OptionalGroupAllTypes);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (optionalGroupAllTypes_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptionalGroupAllTypes);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(OptionalGroup other) {
- if (other == null) {
- return;
- }
- if (other.optionalGroupAllTypes_ != null) {
- if (optionalGroupAllTypes_ == null) {
- OptionalGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- OptionalGroupAllTypes.MergeFrom(other.OptionalGroupAllTypes);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 84:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 90: {
- if (optionalGroupAllTypes_ == null) {
- OptionalGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- input.ReadMessage(OptionalGroupAllTypes);
- break;
- }
- }
- }
- }
- }
- public sealed partial class RepeatedGroup : pb::IMessage<RepeatedGroup> {
- private static readonly pb::MessageParser<RepeatedGroup> _parser = new pb::MessageParser<RepeatedGroup>(() => new RepeatedGroup());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<RepeatedGroup> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge.Descriptor.NestedTypes[2]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RepeatedGroup() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RepeatedGroup(RepeatedGroup other) : this() {
- repeatedGroupAllTypes_ = other.repeatedGroupAllTypes_ != null ? other.repeatedGroupAllTypes_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RepeatedGroup Clone() {
- return new RepeatedGroup(this);
- }
- /// <summary>Field number for the "repeated_group_all_types" field.</summary>
- public const int RepeatedGroupAllTypesFieldNumber = 21;
- private global::Google.Protobuf.TestProtos.Proto2.TestAllTypes repeatedGroupAllTypes_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes RepeatedGroupAllTypes {
- get { return repeatedGroupAllTypes_; }
- set {
- repeatedGroupAllTypes_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as RepeatedGroup);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(RepeatedGroup other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(RepeatedGroupAllTypes, other.RepeatedGroupAllTypes)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (repeatedGroupAllTypes_ != null) hash ^= RepeatedGroupAllTypes.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (repeatedGroupAllTypes_ != null) {
- output.WriteRawTag(170, 1);
- output.WriteMessage(RepeatedGroupAllTypes);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (repeatedGroupAllTypes_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(RepeatedGroupAllTypes);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(RepeatedGroup other) {
- if (other == null) {
- return;
- }
- if (other.repeatedGroupAllTypes_ != null) {
- if (repeatedGroupAllTypes_ == null) {
- RepeatedGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- RepeatedGroupAllTypes.MergeFrom(other.RepeatedGroupAllTypes);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 164:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 170: {
- if (repeatedGroupAllTypes_ == null) {
- RepeatedGroupAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- input.ReadMessage(RepeatedGroupAllTypes);
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- #region Extensions
- /// <summary>Container for extensions for other messages declared in the TestParsingMerge message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Extensions {
- public static readonly pb::Extension<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> OptionalExt =
- 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));
- public static readonly pb::RepeatedExtension<global::Google.Protobuf.TestProtos.Proto2.TestParsingMerge, global::Google.Protobuf.TestProtos.Proto2.TestAllTypes> RepeatedExt =
- 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));
- }
- #endregion
- }
- public sealed partial class TestCommentInjectionMessage : pb::IMessage<TestCommentInjectionMessage> {
- private static readonly pb::MessageParser<TestCommentInjectionMessage> _parser = new pb::MessageParser<TestCommentInjectionMessage>(() => new TestCommentInjectionMessage());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestCommentInjectionMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[55]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestCommentInjectionMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestCommentInjectionMessage(TestCommentInjectionMessage other) : this() {
- a_ = other.a_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestCommentInjectionMessage Clone() {
- return new TestCommentInjectionMessage(this);
- }
- /// <summary>Field number for the "a" field.</summary>
- public const int AFieldNumber = 1;
- private readonly static string ADefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("Ki8gPC0gTmVpdGhlciBzaG91bGQgdGhpcy4="), 0, 26);
- private string a_;
- /// <summary>
- /// */ <- This should not close the generated doc comment
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string A {
- get { return a_ ?? ADefaultValue; }
- set {
- a_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "a" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasA {
- get { return a_ != null; }
- }
- /// <summary>Clears the value of the "a" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearA() {
- a_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestCommentInjectionMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestCommentInjectionMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasA) hash ^= A.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasA) {
- output.WriteRawTag(10);
- output.WriteString(A);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasA) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(A);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestCommentInjectionMessage other) {
- if (other == null) {
- return;
- }
- if (other.HasA) {
- A = other.A;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- A = input.ReadString();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Test that RPC services work.
- /// </summary>
- public sealed partial class FooRequest : pb::IMessage<FooRequest> {
- private static readonly pb::MessageParser<FooRequest> _parser = new pb::MessageParser<FooRequest>(() => new FooRequest());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<FooRequest> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[56]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooRequest() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooRequest(FooRequest other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooRequest Clone() {
- return new FooRequest(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as FooRequest);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(FooRequest other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(FooRequest other) {
- if (other == null) {
- return;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- }
- }
- }
- }
- public sealed partial class FooResponse : pb::IMessage<FooResponse> {
- private static readonly pb::MessageParser<FooResponse> _parser = new pb::MessageParser<FooResponse>(() => new FooResponse());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<FooResponse> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[57]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooResponse() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooResponse(FooResponse other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooResponse Clone() {
- return new FooResponse(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as FooResponse);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(FooResponse other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(FooResponse other) {
- if (other == null) {
- return;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- }
- }
- }
- }
- public sealed partial class FooClientMessage : pb::IMessage<FooClientMessage> {
- private static readonly pb::MessageParser<FooClientMessage> _parser = new pb::MessageParser<FooClientMessage>(() => new FooClientMessage());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<FooClientMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[58]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooClientMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooClientMessage(FooClientMessage other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooClientMessage Clone() {
- return new FooClientMessage(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as FooClientMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(FooClientMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(FooClientMessage other) {
- if (other == null) {
- return;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- }
- }
- }
- }
- public sealed partial class FooServerMessage : pb::IMessage<FooServerMessage> {
- private static readonly pb::MessageParser<FooServerMessage> _parser = new pb::MessageParser<FooServerMessage>(() => new FooServerMessage());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<FooServerMessage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[59]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooServerMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooServerMessage(FooServerMessage other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FooServerMessage Clone() {
- return new FooServerMessage(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as FooServerMessage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(FooServerMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(FooServerMessage other) {
- if (other == null) {
- return;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- }
- }
- }
- }
- public sealed partial class BarRequest : pb::IMessage<BarRequest> {
- private static readonly pb::MessageParser<BarRequest> _parser = new pb::MessageParser<BarRequest>(() => new BarRequest());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<BarRequest> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[60]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BarRequest() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BarRequest(BarRequest other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BarRequest Clone() {
- return new BarRequest(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as BarRequest);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(BarRequest other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(BarRequest other) {
- if (other == null) {
- return;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- }
- }
- }
- }
- public sealed partial class BarResponse : pb::IMessage<BarResponse> {
- private static readonly pb::MessageParser<BarResponse> _parser = new pb::MessageParser<BarResponse>(() => new BarResponse());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<BarResponse> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[61]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BarResponse() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BarResponse(BarResponse other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BarResponse Clone() {
- return new BarResponse(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as BarResponse);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(BarResponse other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(BarResponse other) {
- if (other == null) {
- return;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- }
- }
- }
- }
- public sealed partial class TestJsonName : pb::IMessage<TestJsonName> {
- private static readonly pb::MessageParser<TestJsonName> _parser = new pb::MessageParser<TestJsonName>(() => new TestJsonName());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestJsonName> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[62]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestJsonName() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestJsonName(TestJsonName other) : this() {
- _hasBits0 = other._hasBits0;
- fieldName1_ = other.fieldName1_;
- fieldName2_ = other.fieldName2_;
- fieldName3_ = other.fieldName3_;
- FieldName4_ = other.FieldName4_;
- fIELDNAME5_ = other.fIELDNAME5_;
- fieldName6_ = other.fieldName6_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestJsonName Clone() {
- return new TestJsonName(this);
- }
- /// <summary>Field number for the "field_name1" field.</summary>
- public const int FieldName1FieldNumber = 1;
- private readonly static int FieldName1DefaultValue = 0;
- private int fieldName1_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int FieldName1 {
- get { if ((_hasBits0 & 1) != 0) { return fieldName1_; } else { return FieldName1DefaultValue; } }
- set {
- _hasBits0 |= 1;
- fieldName1_ = value;
- }
- }
- /// <summary>Gets whether the "field_name1" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFieldName1 {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "field_name1" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFieldName1() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "fieldName2" field.</summary>
- public const int FieldName2FieldNumber = 2;
- private readonly static int FieldName2DefaultValue = 0;
- private int fieldName2_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int FieldName2 {
- get { if ((_hasBits0 & 2) != 0) { return fieldName2_; } else { return FieldName2DefaultValue; } }
- set {
- _hasBits0 |= 2;
- fieldName2_ = value;
- }
- }
- /// <summary>Gets whether the "fieldName2" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFieldName2 {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// <summary>Clears the value of the "fieldName2" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFieldName2() {
- _hasBits0 &= ~2;
- }
- /// <summary>Field number for the "FieldName3" field.</summary>
- public const int FieldName3FieldNumber = 3;
- private readonly static int FieldName3DefaultValue = 0;
- private int fieldName3_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int FieldName3 {
- get { if ((_hasBits0 & 4) != 0) { return fieldName3_; } else { return FieldName3DefaultValue; } }
- set {
- _hasBits0 |= 4;
- fieldName3_ = value;
- }
- }
- /// <summary>Gets whether the "FieldName3" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFieldName3 {
- get { return (_hasBits0 & 4) != 0; }
- }
- /// <summary>Clears the value of the "FieldName3" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFieldName3() {
- _hasBits0 &= ~4;
- }
- /// <summary>Field number for the "_field_name4" field.</summary>
- public const int FieldName4FieldNumber = 4;
- private readonly static int FieldName4DefaultValue = 0;
- private int FieldName4_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int FieldName4 {
- get { if ((_hasBits0 & 8) != 0) { return FieldName4_; } else { return FieldName4DefaultValue; } }
- set {
- _hasBits0 |= 8;
- FieldName4_ = value;
- }
- }
- /// <summary>Gets whether the "_field_name4" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFieldName4 {
- get { return (_hasBits0 & 8) != 0; }
- }
- /// <summary>Clears the value of the "_field_name4" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFieldName4() {
- _hasBits0 &= ~8;
- }
- /// <summary>Field number for the "FIELD_NAME5" field.</summary>
- public const int FIELDNAME5FieldNumber = 5;
- private readonly static int FIELDNAME5DefaultValue = 0;
- private int fIELDNAME5_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int FIELDNAME5 {
- get { if ((_hasBits0 & 16) != 0) { return fIELDNAME5_; } else { return FIELDNAME5DefaultValue; } }
- set {
- _hasBits0 |= 16;
- fIELDNAME5_ = value;
- }
- }
- /// <summary>Gets whether the "FIELD_NAME5" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFIELDNAME5 {
- get { return (_hasBits0 & 16) != 0; }
- }
- /// <summary>Clears the value of the "FIELD_NAME5" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFIELDNAME5() {
- _hasBits0 &= ~16;
- }
- /// <summary>Field number for the "field_name6" field.</summary>
- public const int FieldName6FieldNumber = 6;
- private readonly static int FieldName6DefaultValue = 0;
- private int fieldName6_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int FieldName6 {
- get { if ((_hasBits0 & 32) != 0) { return fieldName6_; } else { return FieldName6DefaultValue; } }
- set {
- _hasBits0 |= 32;
- fieldName6_ = value;
- }
- }
- /// <summary>Gets whether the "field_name6" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFieldName6 {
- get { return (_hasBits0 & 32) != 0; }
- }
- /// <summary>Clears the value of the "field_name6" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFieldName6() {
- _hasBits0 &= ~32;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestJsonName);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestJsonName other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (FieldName1 != other.FieldName1) return false;
- if (FieldName2 != other.FieldName2) return false;
- if (FieldName3 != other.FieldName3) return false;
- if (FieldName4 != other.FieldName4) return false;
- if (FIELDNAME5 != other.FIELDNAME5) return false;
- if (FieldName6 != other.FieldName6) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasFieldName1) hash ^= FieldName1.GetHashCode();
- if (HasFieldName2) hash ^= FieldName2.GetHashCode();
- if (HasFieldName3) hash ^= FieldName3.GetHashCode();
- if (HasFieldName4) hash ^= FieldName4.GetHashCode();
- if (HasFIELDNAME5) hash ^= FIELDNAME5.GetHashCode();
- if (HasFieldName6) hash ^= FieldName6.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasFieldName1) {
- output.WriteRawTag(8);
- output.WriteInt32(FieldName1);
- }
- if (HasFieldName2) {
- output.WriteRawTag(16);
- output.WriteInt32(FieldName2);
- }
- if (HasFieldName3) {
- output.WriteRawTag(24);
- output.WriteInt32(FieldName3);
- }
- if (HasFieldName4) {
- output.WriteRawTag(32);
- output.WriteInt32(FieldName4);
- }
- if (HasFIELDNAME5) {
- output.WriteRawTag(40);
- output.WriteInt32(FIELDNAME5);
- }
- if (HasFieldName6) {
- output.WriteRawTag(48);
- output.WriteInt32(FieldName6);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasFieldName1) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName1);
- }
- if (HasFieldName2) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName2);
- }
- if (HasFieldName3) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName3);
- }
- if (HasFieldName4) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName4);
- }
- if (HasFIELDNAME5) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(FIELDNAME5);
- }
- if (HasFieldName6) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(FieldName6);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestJsonName other) {
- if (other == null) {
- return;
- }
- if (other.HasFieldName1) {
- FieldName1 = other.FieldName1;
- }
- if (other.HasFieldName2) {
- FieldName2 = other.FieldName2;
- }
- if (other.HasFieldName3) {
- FieldName3 = other.FieldName3;
- }
- if (other.HasFieldName4) {
- FieldName4 = other.FieldName4;
- }
- if (other.HasFIELDNAME5) {
- FIELDNAME5 = other.FIELDNAME5;
- }
- if (other.HasFieldName6) {
- FieldName6 = other.FieldName6;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- FieldName1 = input.ReadInt32();
- break;
- }
- case 16: {
- FieldName2 = input.ReadInt32();
- break;
- }
- case 24: {
- FieldName3 = input.ReadInt32();
- break;
- }
- case 32: {
- FieldName4 = input.ReadInt32();
- break;
- }
- case 40: {
- FIELDNAME5 = input.ReadInt32();
- break;
- }
- case 48: {
- FieldName6 = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- public sealed partial class TestHugeFieldNumbers : pb::IExtendableMessage<TestHugeFieldNumbers> {
- private static readonly pb::MessageParser<TestHugeFieldNumbers> _parser = new pb::MessageParser<TestHugeFieldNumbers>(() => new TestHugeFieldNumbers());
- private pb::UnknownFieldSet _unknownFields;
- private pb::ExtensionSet<TestHugeFieldNumbers> _extensions;
- private pb::ExtensionSet<TestHugeFieldNumbers> _Extensions { get { return _extensions; } }
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestHugeFieldNumbers> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[63]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestHugeFieldNumbers() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestHugeFieldNumbers(TestHugeFieldNumbers other) : this() {
- _hasBits0 = other._hasBits0;
- optionalInt32_ = other.optionalInt32_;
- fixed32_ = other.fixed32_;
- repeatedInt32_ = other.repeatedInt32_.Clone();
- packedInt32_ = other.packedInt32_.Clone();
- optionalEnum_ = other.optionalEnum_;
- optionalString_ = other.optionalString_;
- optionalBytes_ = other.optionalBytes_;
- optionalMessage_ = other.optionalMessage_ != null ? other.optionalMessage_.Clone() : null;
- optionalGroup_ = other.HasOptionalGroup ? other.optionalGroup_.Clone() : null;
- stringStringMap_ = other.stringStringMap_.Clone();
- switch (other.OneofFieldCase) {
- case OneofFieldOneofCase.OneofUint32:
- OneofUint32 = other.OneofUint32;
- break;
- case OneofFieldOneofCase.OneofTestAllTypes:
- OneofTestAllTypes = other.OneofTestAllTypes.Clone();
- break;
- case OneofFieldOneofCase.OneofString:
- OneofString = other.OneofString;
- break;
- case OneofFieldOneofCase.OneofBytes:
- OneofBytes = other.OneofBytes;
- break;
- }
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- _extensions = pb::ExtensionSet.Clone(other._extensions);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestHugeFieldNumbers Clone() {
- return new TestHugeFieldNumbers(this);
- }
- /// <summary>Field number for the "optional_int32" field.</summary>
- public const int OptionalInt32FieldNumber = 536870000;
- private readonly static int OptionalInt32DefaultValue = 0;
- private int optionalInt32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int OptionalInt32 {
- get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } }
- set {
- _hasBits0 |= 1;
- optionalInt32_ = value;
- }
- }
- /// <summary>Gets whether the "optional_int32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalInt32 {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "optional_int32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalInt32() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "fixed_32" field.</summary>
- public const int Fixed32FieldNumber = 536870001;
- private readonly static int Fixed32DefaultValue = 0;
- private int fixed32_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Fixed32 {
- get { if ((_hasBits0 & 2) != 0) { return fixed32_; } else { return Fixed32DefaultValue; } }
- set {
- _hasBits0 |= 2;
- fixed32_ = value;
- }
- }
- /// <summary>Gets whether the "fixed_32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasFixed32 {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// <summary>Clears the value of the "fixed_32" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearFixed32() {
- _hasBits0 &= ~2;
- }
- /// <summary>Field number for the "repeated_int32" field.</summary>
- public const int RepeatedInt32FieldNumber = 536870002;
- private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
- = pb::FieldCodec.ForInt32(4294960016);
- private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> RepeatedInt32 {
- get { return repeatedInt32_; }
- }
- /// <summary>Field number for the "packed_int32" field.</summary>
- public const int PackedInt32FieldNumber = 536870003;
- private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec
- = pb::FieldCodec.ForInt32(4294960026);
- private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> PackedInt32 {
- get { return packedInt32_; }
- }
- /// <summary>Field number for the "optional_enum" field.</summary>
- public const int OptionalEnumFieldNumber = 536870004;
- private readonly static global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalEnumDefaultValue = global::Google.Protobuf.TestProtos.Proto2.ForeignEnum.ForeignFoo;
- private global::Google.Protobuf.TestProtos.Proto2.ForeignEnum optionalEnum_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.ForeignEnum OptionalEnum {
- get { if ((_hasBits0 & 4) != 0) { return optionalEnum_; } else { return OptionalEnumDefaultValue; } }
- set {
- _hasBits0 |= 4;
- optionalEnum_ = value;
- }
- }
- /// <summary>Gets whether the "optional_enum" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalEnum {
- get { return (_hasBits0 & 4) != 0; }
- }
- /// <summary>Clears the value of the "optional_enum" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalEnum() {
- _hasBits0 &= ~4;
- }
- /// <summary>Field number for the "optional_string" field.</summary>
- public const int OptionalStringFieldNumber = 536870005;
- private readonly static string OptionalStringDefaultValue = "";
- private string optionalString_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string OptionalString {
- get { return optionalString_ ?? OptionalStringDefaultValue; }
- set {
- optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "optional_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalString {
- get { return optionalString_ != null; }
- }
- /// <summary>Clears the value of the "optional_string" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalString() {
- optionalString_ = null;
- }
- /// <summary>Field number for the "optional_bytes" field.</summary>
- public const int OptionalBytesFieldNumber = 536870006;
- private readonly static pb::ByteString OptionalBytesDefaultValue = pb::ByteString.Empty;
- private pb::ByteString optionalBytes_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString OptionalBytes {
- get { return optionalBytes_ ?? OptionalBytesDefaultValue; }
- set {
- optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Gets whether the "optional_bytes" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalBytes {
- get { return optionalBytes_ != null; }
- }
- /// <summary>Clears the value of the "optional_bytes" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalBytes() {
- optionalBytes_ = null;
- }
- /// <summary>Field number for the "optional_message" field.</summary>
- public const int OptionalMessageFieldNumber = 536870007;
- private global::Google.Protobuf.TestProtos.Proto2.ForeignMessage optionalMessage_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.ForeignMessage OptionalMessage {
- get { return optionalMessage_; }
- set {
- optionalMessage_ = value;
- }
- }
- /// <summary>Field number for the "optionalgroup" field.</summary>
- public const int OptionalGroupFieldNumber = 536870008;
- private global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup optionalGroup_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup OptionalGroup {
- get { return optionalGroup_; }
- set {
- optionalGroup_ = value;
- }
- }
- /// <summary>Gets whether the optionalgroup field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOptionalGroup {
- get { return optionalGroup_ != null; }
- }
- /// <summary>Clears the value of the optionalgroup field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOptionalGroup() {
- optionalGroup_ = null;
- }
- /// <summary>Field number for the "string_string_map" field.</summary>
- public const int StringStringMapFieldNumber = 536870010;
- private static readonly pbc::MapField<string, string>.Codec _map_stringStringMap_codec
- = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 4294960082);
- private readonly pbc::MapField<string, string> stringStringMap_ = new pbc::MapField<string, string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<string, string> StringStringMap {
- get { return stringStringMap_; }
- }
- /// <summary>Field number for the "oneof_uint32" field.</summary>
- public const int OneofUint32FieldNumber = 536870011;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint OneofUint32 {
- get { return HasOneofUint32 ? (uint) oneofField_ : 0; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
- }
- }
- /// <summary>Gets whether the "oneof_uint32" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOneofUint32 {
- get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "oneof_uint32" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOneofUint32() {
- if (HasOneofUint32) {
- ClearOneofField();
- }
- }
- /// <summary>Field number for the "oneof_test_all_types" field.</summary>
- public const int OneofTestAllTypesFieldNumber = 536870012;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.TestProtos.Proto2.TestAllTypes OneofTestAllTypes {
- get { return oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes ? (global::Google.Protobuf.TestProtos.Proto2.TestAllTypes) oneofField_ : null; }
- set {
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofTestAllTypes;
- }
- }
- /// <summary>Field number for the "oneof_string" field.</summary>
- public const int OneofStringFieldNumber = 536870013;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string OneofString {
- get { return HasOneofString ? (string) oneofField_ : ""; }
- set {
- oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- oneofFieldCase_ = OneofFieldOneofCase.OneofString;
- }
- }
- /// <summary>Gets whether the "oneof_string" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOneofString {
- get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "oneof_string" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOneofString() {
- if (HasOneofString) {
- ClearOneofField();
- }
- }
- /// <summary>Field number for the "oneof_bytes" field.</summary>
- public const int OneofBytesFieldNumber = 536870014;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString OneofBytes {
- get { return HasOneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
- set {
- oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
- }
- }
- /// <summary>Gets whether the "oneof_bytes" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasOneofBytes {
- get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes; }
- }
- /// <summary> Clears the value of the oneof if it's currently set to "oneof_bytes" </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOneofBytes() {
- if (HasOneofBytes) {
- ClearOneofField();
- }
- }
- private object oneofField_;
- /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
- public enum OneofFieldOneofCase {
- None = 0,
- OneofUint32 = 536870011,
- OneofTestAllTypes = 536870012,
- OneofString = 536870013,
- OneofBytes = 536870014,
- }
- private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OneofFieldOneofCase OneofFieldCase {
- get { return oneofFieldCase_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearOneofField() {
- oneofFieldCase_ = OneofFieldOneofCase.None;
- oneofField_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestHugeFieldNumbers);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestHugeFieldNumbers other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (OptionalInt32 != other.OptionalInt32) return false;
- if (Fixed32 != other.Fixed32) return false;
- if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
- if(!packedInt32_.Equals(other.packedInt32_)) return false;
- if (OptionalEnum != other.OptionalEnum) return false;
- if (OptionalString != other.OptionalString) return false;
- if (OptionalBytes != other.OptionalBytes) return false;
- if (!object.Equals(OptionalMessage, other.OptionalMessage)) return false;
- if (!object.Equals(OptionalGroup, other.OptionalGroup)) return false;
- if (!StringStringMap.Equals(other.StringStringMap)) return false;
- if (OneofUint32 != other.OneofUint32) return false;
- if (!object.Equals(OneofTestAllTypes, other.OneofTestAllTypes)) return false;
- if (OneofString != other.OneofString) return false;
- if (OneofBytes != other.OneofBytes) return false;
- if (OneofFieldCase != other.OneofFieldCase) return false;
- if (!Equals(_extensions, other._extensions)) {
- return false;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode();
- if (HasFixed32) hash ^= Fixed32.GetHashCode();
- hash ^= repeatedInt32_.GetHashCode();
- hash ^= packedInt32_.GetHashCode();
- if (HasOptionalEnum) hash ^= OptionalEnum.GetHashCode();
- if (HasOptionalString) hash ^= OptionalString.GetHashCode();
- if (HasOptionalBytes) hash ^= OptionalBytes.GetHashCode();
- if (optionalMessage_ != null) hash ^= OptionalMessage.GetHashCode();
- if (HasOptionalGroup) hash ^= OptionalGroup.GetHashCode();
- hash ^= StringStringMap.GetHashCode();
- if (HasOneofUint32) hash ^= OneofUint32.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) hash ^= OneofTestAllTypes.GetHashCode();
- if (HasOneofString) hash ^= OneofString.GetHashCode();
- if (HasOneofBytes) hash ^= OneofBytes.GetHashCode();
- hash ^= (int) oneofFieldCase_;
- if (_extensions != null) {
- hash ^= _extensions.GetHashCode();
- }
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasOptionalInt32) {
- output.WriteRawTag(128, 199, 255, 255, 15);
- output.WriteInt32(OptionalInt32);
- }
- if (HasFixed32) {
- output.WriteRawTag(136, 199, 255, 255, 15);
- output.WriteInt32(Fixed32);
- }
- repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
- packedInt32_.WriteTo(output, _repeated_packedInt32_codec);
- if (HasOptionalEnum) {
- output.WriteRawTag(160, 199, 255, 255, 15);
- output.WriteEnum((int) OptionalEnum);
- }
- if (HasOptionalString) {
- output.WriteRawTag(170, 199, 255, 255, 15);
- output.WriteString(OptionalString);
- }
- if (HasOptionalBytes) {
- output.WriteRawTag(178, 199, 255, 255, 15);
- output.WriteBytes(OptionalBytes);
- }
- if (optionalMessage_ != null) {
- output.WriteRawTag(186, 199, 255, 255, 15);
- output.WriteMessage(OptionalMessage);
- }
- if (HasOptionalGroup) {
- output.WriteRawTag(195, 199, 255, 255, 15);
- output.WriteGroup(OptionalGroup);
- output.WriteRawTag(196, 199, 255, 255, 15);
- }
- stringStringMap_.WriteTo(output, _map_stringStringMap_codec);
- if (HasOneofUint32) {
- output.WriteRawTag(216, 199, 255, 255, 15);
- output.WriteUInt32(OneofUint32);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) {
- output.WriteRawTag(226, 199, 255, 255, 15);
- output.WriteMessage(OneofTestAllTypes);
- }
- if (HasOneofString) {
- output.WriteRawTag(234, 199, 255, 255, 15);
- output.WriteString(OneofString);
- }
- if (HasOneofBytes) {
- output.WriteRawTag(242, 199, 255, 255, 15);
- output.WriteBytes(OneofBytes);
- }
- if (_extensions != null) {
- _extensions.WriteTo(output);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasOptionalInt32) {
- size += 5 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
- }
- if (HasFixed32) {
- size += 5 + pb::CodedOutputStream.ComputeInt32Size(Fixed32);
- }
- size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
- size += packedInt32_.CalculateSize(_repeated_packedInt32_codec);
- if (HasOptionalEnum) {
- size += 5 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalEnum);
- }
- if (HasOptionalString) {
- size += 5 + pb::CodedOutputStream.ComputeStringSize(OptionalString);
- }
- if (HasOptionalBytes) {
- size += 5 + pb::CodedOutputStream.ComputeBytesSize(OptionalBytes);
- }
- if (optionalMessage_ != null) {
- size += 5 + pb::CodedOutputStream.ComputeMessageSize(OptionalMessage);
- }
- if (HasOptionalGroup) {
- size += 10 + pb::CodedOutputStream.ComputeGroupSize(OptionalGroup);
- }
- size += stringStringMap_.CalculateSize(_map_stringStringMap_codec);
- if (HasOneofUint32) {
- size += 5 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) {
- size += 5 + pb::CodedOutputStream.ComputeMessageSize(OneofTestAllTypes);
- }
- if (HasOneofString) {
- size += 5 + pb::CodedOutputStream.ComputeStringSize(OneofString);
- }
- if (HasOneofBytes) {
- size += 5 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
- }
- if (_extensions != null) {
- size += _extensions.CalculateSize();
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestHugeFieldNumbers other) {
- if (other == null) {
- return;
- }
- if (other.HasOptionalInt32) {
- OptionalInt32 = other.OptionalInt32;
- }
- if (other.HasFixed32) {
- Fixed32 = other.Fixed32;
- }
- repeatedInt32_.Add(other.repeatedInt32_);
- packedInt32_.Add(other.packedInt32_);
- if (other.HasOptionalEnum) {
- OptionalEnum = other.OptionalEnum;
- }
- if (other.HasOptionalString) {
- OptionalString = other.OptionalString;
- }
- if (other.HasOptionalBytes) {
- OptionalBytes = other.OptionalBytes;
- }
- if (other.optionalMessage_ != null) {
- if (optionalMessage_ == null) {
- OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
- }
- OptionalMessage.MergeFrom(other.OptionalMessage);
- }
- if (other.HasOptionalGroup) {
- if (!HasOptionalGroup) {
- OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup();
- }
- OptionalGroup.MergeFrom(other.OptionalGroup);
- }
- stringStringMap_.Add(other.stringStringMap_);
- switch (other.OneofFieldCase) {
- case OneofFieldOneofCase.OneofUint32:
- OneofUint32 = other.OneofUint32;
- break;
- case OneofFieldOneofCase.OneofTestAllTypes:
- if (OneofTestAllTypes == null) {
- OneofTestAllTypes = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- }
- OneofTestAllTypes.MergeFrom(other.OneofTestAllTypes);
- break;
- case OneofFieldOneofCase.OneofString:
- OneofString = other.OneofString;
- break;
- case OneofFieldOneofCase.OneofBytes:
- OneofBytes = other.OneofBytes;
- break;
- }
- pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- }
- break;
- case 4294960000: {
- OptionalInt32 = input.ReadInt32();
- break;
- }
- case 4294960008: {
- Fixed32 = input.ReadInt32();
- break;
- }
- case 4294960018:
- case 4294960016: {
- repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
- break;
- }
- case 4294960026:
- case 4294960024: {
- packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec);
- break;
- }
- case 4294960032: {
- OptionalEnum = (global::Google.Protobuf.TestProtos.Proto2.ForeignEnum) input.ReadEnum();
- break;
- }
- case 4294960042: {
- OptionalString = input.ReadString();
- break;
- }
- case 4294960050: {
- OptionalBytes = input.ReadBytes();
- break;
- }
- case 4294960058: {
- if (optionalMessage_ == null) {
- OptionalMessage = new global::Google.Protobuf.TestProtos.Proto2.ForeignMessage();
- }
- input.ReadMessage(OptionalMessage);
- break;
- }
- case 4294960067: {
- if (!HasOptionalGroup) {
- OptionalGroup = new global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Types.OptionalGroup();
- }
- input.ReadGroup(OptionalGroup);
- break;
- }
- case 4294960082: {
- stringStringMap_.AddEntriesFrom(input, _map_stringStringMap_codec);
- break;
- }
- case 4294960088: {
- OneofUint32 = input.ReadUInt32();
- break;
- }
- case 4294960098: {
- global::Google.Protobuf.TestProtos.Proto2.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.Proto2.TestAllTypes();
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofTestAllTypes) {
- subBuilder.MergeFrom(OneofTestAllTypes);
- }
- input.ReadMessage(subBuilder);
- OneofTestAllTypes = subBuilder;
- break;
- }
- case 4294960106: {
- OneofString = input.ReadString();
- break;
- }
- case 4294960114: {
- OneofBytes = input.ReadBytes();
- break;
- }
- }
- }
- }
- public TValue GetExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension) {
- return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
- }
- public void SetExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension, TValue value) {
- pb::ExtensionSet.Set(ref _extensions, extension, value);
- }
- public bool HasExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension) {
- return pb::ExtensionSet.Has(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::Extension<TestHugeFieldNumbers, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::RepeatedExtension<TestHugeFieldNumbers, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- #region Nested types
- /// <summary>Container for nested types declared in the TestHugeFieldNumbers message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class OptionalGroup : pb::IMessage<OptionalGroup> {
- private static readonly pb::MessageParser<OptionalGroup> _parser = new pb::MessageParser<OptionalGroup>(() => new OptionalGroup());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<OptionalGroup> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup(OptionalGroup other) : this() {
- _hasBits0 = other._hasBits0;
- groupA_ = other.groupA_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OptionalGroup Clone() {
- return new OptionalGroup(this);
- }
- /// <summary>Field number for the "group_a" field.</summary>
- public const int GroupAFieldNumber = 536870009;
- private readonly static int GroupADefaultValue = 0;
- private int groupA_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int GroupA {
- get { if ((_hasBits0 & 1) != 0) { return groupA_; } else { return GroupADefaultValue; } }
- set {
- _hasBits0 |= 1;
- groupA_ = value;
- }
- }
- /// <summary>Gets whether the "group_a" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasGroupA {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "group_a" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearGroupA() {
- _hasBits0 &= ~1;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as OptionalGroup);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(OptionalGroup other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (GroupA != other.GroupA) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasGroupA) hash ^= GroupA.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasGroupA) {
- output.WriteRawTag(200, 199, 255, 255, 15);
- output.WriteInt32(GroupA);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasGroupA) {
- size += 5 + pb::CodedOutputStream.ComputeInt32Size(GroupA);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(OptionalGroup other) {
- if (other == null) {
- return;
- }
- if (other.HasGroupA) {
- GroupA = other.GroupA;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- case 4294960068:
- return;
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 4294960072: {
- GroupA = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- public sealed partial class TestExtensionInsideTable : pb::IExtendableMessage<TestExtensionInsideTable> {
- private static readonly pb::MessageParser<TestExtensionInsideTable> _parser = new pb::MessageParser<TestExtensionInsideTable>(() => new TestExtensionInsideTable());
- private pb::UnknownFieldSet _unknownFields;
- private pb::ExtensionSet<TestExtensionInsideTable> _extensions;
- private pb::ExtensionSet<TestExtensionInsideTable> _Extensions { get { return _extensions; } }
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<TestExtensionInsideTable> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.Proto2.UnittestReflection.Descriptor.MessageTypes[64]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestExtensionInsideTable() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestExtensionInsideTable(TestExtensionInsideTable other) : this() {
- _hasBits0 = other._hasBits0;
- field1_ = other.field1_;
- field2_ = other.field2_;
- field3_ = other.field3_;
- field4_ = other.field4_;
- field6_ = other.field6_;
- field7_ = other.field7_;
- field8_ = other.field8_;
- field9_ = other.field9_;
- field10_ = other.field10_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- _extensions = pb::ExtensionSet.Clone(other._extensions);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TestExtensionInsideTable Clone() {
- return new TestExtensionInsideTable(this);
- }
- /// <summary>Field number for the "field1" field.</summary>
- public const int Field1FieldNumber = 1;
- private readonly static int Field1DefaultValue = 0;
- private int field1_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Field1 {
- get { if ((_hasBits0 & 1) != 0) { return field1_; } else { return Field1DefaultValue; } }
- set {
- _hasBits0 |= 1;
- field1_ = value;
- }
- }
- /// <summary>Gets whether the "field1" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasField1 {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "field1" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearField1() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "field2" field.</summary>
- public const int Field2FieldNumber = 2;
- private readonly static int Field2DefaultValue = 0;
- private int field2_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Field2 {
- get { if ((_hasBits0 & 2) != 0) { return field2_; } else { return Field2DefaultValue; } }
- set {
- _hasBits0 |= 2;
- field2_ = value;
- }
- }
- /// <summary>Gets whether the "field2" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasField2 {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// <summary>Clears the value of the "field2" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearField2() {
- _hasBits0 &= ~2;
- }
- /// <summary>Field number for the "field3" field.</summary>
- public const int Field3FieldNumber = 3;
- private readonly static int Field3DefaultValue = 0;
- private int field3_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Field3 {
- get { if ((_hasBits0 & 4) != 0) { return field3_; } else { return Field3DefaultValue; } }
- set {
- _hasBits0 |= 4;
- field3_ = value;
- }
- }
- /// <summary>Gets whether the "field3" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasField3 {
- get { return (_hasBits0 & 4) != 0; }
- }
- /// <summary>Clears the value of the "field3" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearField3() {
- _hasBits0 &= ~4;
- }
- /// <summary>Field number for the "field4" field.</summary>
- public const int Field4FieldNumber = 4;
- private readonly static int Field4DefaultValue = 0;
- private int field4_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Field4 {
- get { if ((_hasBits0 & 8) != 0) { return field4_; } else { return Field4DefaultValue; } }
- set {
- _hasBits0 |= 8;
- field4_ = value;
- }
- }
- /// <summary>Gets whether the "field4" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasField4 {
- get { return (_hasBits0 & 8) != 0; }
- }
- /// <summary>Clears the value of the "field4" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearField4() {
- _hasBits0 &= ~8;
- }
- /// <summary>Field number for the "field6" field.</summary>
- public const int Field6FieldNumber = 6;
- private readonly static int Field6DefaultValue = 0;
- private int field6_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Field6 {
- get { if ((_hasBits0 & 16) != 0) { return field6_; } else { return Field6DefaultValue; } }
- set {
- _hasBits0 |= 16;
- field6_ = value;
- }
- }
- /// <summary>Gets whether the "field6" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasField6 {
- get { return (_hasBits0 & 16) != 0; }
- }
- /// <summary>Clears the value of the "field6" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearField6() {
- _hasBits0 &= ~16;
- }
- /// <summary>Field number for the "field7" field.</summary>
- public const int Field7FieldNumber = 7;
- private readonly static int Field7DefaultValue = 0;
- private int field7_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Field7 {
- get { if ((_hasBits0 & 32) != 0) { return field7_; } else { return Field7DefaultValue; } }
- set {
- _hasBits0 |= 32;
- field7_ = value;
- }
- }
- /// <summary>Gets whether the "field7" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasField7 {
- get { return (_hasBits0 & 32) != 0; }
- }
- /// <summary>Clears the value of the "field7" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearField7() {
- _hasBits0 &= ~32;
- }
- /// <summary>Field number for the "field8" field.</summary>
- public const int Field8FieldNumber = 8;
- private readonly static int Field8DefaultValue = 0;
- private int field8_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Field8 {
- get { if ((_hasBits0 & 64) != 0) { return field8_; } else { return Field8DefaultValue; } }
- set {
- _hasBits0 |= 64;
- field8_ = value;
- }
- }
- /// <summary>Gets whether the "field8" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasField8 {
- get { return (_hasBits0 & 64) != 0; }
- }
- /// <summary>Clears the value of the "field8" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearField8() {
- _hasBits0 &= ~64;
- }
- /// <summary>Field number for the "field9" field.</summary>
- public const int Field9FieldNumber = 9;
- private readonly static int Field9DefaultValue = 0;
- private int field9_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Field9 {
- get { if ((_hasBits0 & 128) != 0) { return field9_; } else { return Field9DefaultValue; } }
- set {
- _hasBits0 |= 128;
- field9_ = value;
- }
- }
- /// <summary>Gets whether the "field9" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasField9 {
- get { return (_hasBits0 & 128) != 0; }
- }
- /// <summary>Clears the value of the "field9" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearField9() {
- _hasBits0 &= ~128;
- }
- /// <summary>Field number for the "field10" field.</summary>
- public const int Field10FieldNumber = 10;
- private readonly static int Field10DefaultValue = 0;
- private int field10_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Field10 {
- get { if ((_hasBits0 & 256) != 0) { return field10_; } else { return Field10DefaultValue; } }
- set {
- _hasBits0 |= 256;
- field10_ = value;
- }
- }
- /// <summary>Gets whether the "field10" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasField10 {
- get { return (_hasBits0 & 256) != 0; }
- }
- /// <summary>Clears the value of the "field10" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearField10() {
- _hasBits0 &= ~256;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TestExtensionInsideTable);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TestExtensionInsideTable other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Field1 != other.Field1) return false;
- if (Field2 != other.Field2) return false;
- if (Field3 != other.Field3) return false;
- if (Field4 != other.Field4) return false;
- if (Field6 != other.Field6) return false;
- if (Field7 != other.Field7) return false;
- if (Field8 != other.Field8) return false;
- if (Field9 != other.Field9) return false;
- if (Field10 != other.Field10) return false;
- if (!Equals(_extensions, other._extensions)) {
- return false;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (HasField1) hash ^= Field1.GetHashCode();
- if (HasField2) hash ^= Field2.GetHashCode();
- if (HasField3) hash ^= Field3.GetHashCode();
- if (HasField4) hash ^= Field4.GetHashCode();
- if (HasField6) hash ^= Field6.GetHashCode();
- if (HasField7) hash ^= Field7.GetHashCode();
- if (HasField8) hash ^= Field8.GetHashCode();
- if (HasField9) hash ^= Field9.GetHashCode();
- if (HasField10) hash ^= Field10.GetHashCode();
- if (_extensions != null) {
- hash ^= _extensions.GetHashCode();
- }
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (HasField1) {
- output.WriteRawTag(8);
- output.WriteInt32(Field1);
- }
- if (HasField2) {
- output.WriteRawTag(16);
- output.WriteInt32(Field2);
- }
- if (HasField3) {
- output.WriteRawTag(24);
- output.WriteInt32(Field3);
- }
- if (HasField4) {
- output.WriteRawTag(32);
- output.WriteInt32(Field4);
- }
- if (HasField6) {
- output.WriteRawTag(48);
- output.WriteInt32(Field6);
- }
- if (HasField7) {
- output.WriteRawTag(56);
- output.WriteInt32(Field7);
- }
- if (HasField8) {
- output.WriteRawTag(64);
- output.WriteInt32(Field8);
- }
- if (HasField9) {
- output.WriteRawTag(72);
- output.WriteInt32(Field9);
- }
- if (HasField10) {
- output.WriteRawTag(80);
- output.WriteInt32(Field10);
- }
- if (_extensions != null) {
- _extensions.WriteTo(output);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (HasField1) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field1);
- }
- if (HasField2) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field2);
- }
- if (HasField3) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field3);
- }
- if (HasField4) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field4);
- }
- if (HasField6) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field6);
- }
- if (HasField7) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field7);
- }
- if (HasField8) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field8);
- }
- if (HasField9) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field9);
- }
- if (HasField10) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field10);
- }
- if (_extensions != null) {
- size += _extensions.CalculateSize();
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TestExtensionInsideTable other) {
- if (other == null) {
- return;
- }
- if (other.HasField1) {
- Field1 = other.Field1;
- }
- if (other.HasField2) {
- Field2 = other.Field2;
- }
- if (other.HasField3) {
- Field3 = other.Field3;
- }
- if (other.HasField4) {
- Field4 = other.Field4;
- }
- if (other.HasField6) {
- Field6 = other.Field6;
- }
- if (other.HasField7) {
- Field7 = other.Field7;
- }
- if (other.HasField8) {
- Field8 = other.Field8;
- }
- if (other.HasField9) {
- Field9 = other.Field9;
- }
- if (other.HasField10) {
- Field10 = other.Field10;
- }
- pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- }
- break;
- case 8: {
- Field1 = input.ReadInt32();
- break;
- }
- case 16: {
- Field2 = input.ReadInt32();
- break;
- }
- case 24: {
- Field3 = input.ReadInt32();
- break;
- }
- case 32: {
- Field4 = input.ReadInt32();
- break;
- }
- case 48: {
- Field6 = input.ReadInt32();
- break;
- }
- case 56: {
- Field7 = input.ReadInt32();
- break;
- }
- case 64: {
- Field8 = input.ReadInt32();
- break;
- }
- case 72: {
- Field9 = input.ReadInt32();
- break;
- }
- case 80: {
- Field10 = input.ReadInt32();
- break;
- }
- }
- }
- }
- public TValue GetExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension) {
- return pb::ExtensionSet.Get(ref _extensions, extension);
- }
- public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension) {
- return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
- }
- public void SetExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension, TValue value) {
- pb::ExtensionSet.Set(ref _extensions, extension, value);
- }
- public bool HasExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension) {
- return pb::ExtensionSet.Has(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::Extension<TestExtensionInsideTable, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- public void ClearExtension<TValue>(pb::RepeatedExtension<TestExtensionInsideTable, TValue> extension) {
- pb::ExtensionSet.Clear(ref _extensions, extension);
- }
- }
- #endregion
- }
- #endregion Designer generated code
|