UnittestProto3.cs 234 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/unittest_proto3.proto
  3. #pragma warning disable 1591, 0612, 3021
  4. #region Designer generated code
  5. using pb = global::Google.Protobuf;
  6. using pbc = global::Google.Protobuf.Collections;
  7. using pbd = global::Google.Protobuf.Descriptors;
  8. using scg = global::System.Collections.Generic;
  9. namespace Google.Protobuf.TestProtos {
  10. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11. public static partial class UnittestProto3 {
  12. #region Static variables
  13. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable;
  14. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable;
  15. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable;
  16. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable;
  17. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable;
  18. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestReservedFields__FieldAccessorTable;
  19. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable;
  20. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable;
  21. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable;
  22. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable;
  23. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable;
  24. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable;
  25. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable;
  26. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__FieldAccessorTable;
  27. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_SparseEnumMessage__FieldAccessorTable;
  28. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_OneString__FieldAccessorTable;
  29. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_MoreString__FieldAccessorTable;
  30. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_OneBytes__FieldAccessorTable;
  31. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_MoreBytes__FieldAccessorTable;
  32. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_Int32Message__FieldAccessorTable;
  33. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_Uint32Message__FieldAccessorTable;
  34. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_Int64Message__FieldAccessorTable;
  35. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_Uint64Message__FieldAccessorTable;
  36. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_BoolMessage__FieldAccessorTable;
  37. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestOneof__FieldAccessorTable;
  38. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable;
  39. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable;
  40. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable;
  41. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestCommentInjectionMessage__FieldAccessorTable;
  42. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooRequest__FieldAccessorTable;
  43. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooResponse__FieldAccessorTable;
  44. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooClientMessage__FieldAccessorTable;
  45. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooServerMessage__FieldAccessorTable;
  46. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_BarRequest__FieldAccessorTable;
  47. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_BarResponse__FieldAccessorTable;
  48. #endregion
  49. #region Descriptor
  50. public static pbd::FileDescriptor Descriptor {
  51. get { return descriptor; }
  52. }
  53. private static pbd::FileDescriptor descriptor;
  54. static UnittestProto3() {
  55. byte[] descriptorData = global::System.Convert.FromBase64String(
  56. string.Concat(
  57. "CiVnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfcHJvdG8zLnByb3RvEhFwcm90",
  58. "b2J1Zl91bml0dGVzdBosZ29vZ2xlL3Byb3RvYnVmL3VuaXR0ZXN0X2ltcG9y",
  59. "dF9wcm90bzMucHJvdG8i8A8KDFRlc3RBbGxUeXBlcxIUCgxzaW5nbGVfaW50",
  60. "MzIYASABKAUSFAoMc2luZ2xlX2ludDY0GAIgASgDEhUKDXNpbmdsZV91aW50",
  61. "MzIYAyABKA0SFQoNc2luZ2xlX3VpbnQ2NBgEIAEoBBIVCg1zaW5nbGVfc2lu",
  62. "dDMyGAUgASgREhUKDXNpbmdsZV9zaW50NjQYBiABKBISFgoOc2luZ2xlX2Zp",
  63. "eGVkMzIYByABKAcSFgoOc2luZ2xlX2ZpeGVkNjQYCCABKAYSFwoPc2luZ2xl",
  64. "X3NmaXhlZDMyGAkgASgPEhcKD3NpbmdsZV9zZml4ZWQ2NBgKIAEoEBIUCgxz",
  65. "aW5nbGVfZmxvYXQYCyABKAISFQoNc2luZ2xlX2RvdWJsZRgMIAEoARITCgtz",
  66. "aW5nbGVfYm9vbBgNIAEoCBIVCg1zaW5nbGVfc3RyaW5nGA4gASgJEhQKDHNp",
  67. "bmdsZV9ieXRlcxgPIAEoDBJMChVzaW5nbGVfbmVzdGVkX21lc3NhZ2UYEiAB",
  68. "KAsyLS5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVzdGVkTWVz",
  69. "c2FnZRJBChZzaW5nbGVfZm9yZWlnbl9tZXNzYWdlGBMgASgLMiEucHJvdG9i",
  70. "dWZfdW5pdHRlc3QuRm9yZWlnbk1lc3NhZ2USRgoVc2luZ2xlX2ltcG9ydF9t",
  71. "ZXNzYWdlGBQgASgLMicucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9y",
  72. "dE1lc3NhZ2USRgoSc2luZ2xlX25lc3RlZF9lbnVtGBUgASgOMioucHJvdG9i",
  73. "dWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW0SOwoTc2luZ2xl",
  74. "X2ZvcmVpZ25fZW51bRgWIAEoDjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVp",
  75. "Z25FbnVtEkAKEnNpbmdsZV9pbXBvcnRfZW51bRgXIAEoDjIkLnByb3RvYnVm",
  76. "X3VuaXR0ZXN0X2ltcG9ydC5JbXBvcnRFbnVtElMKHHNpbmdsZV9wdWJsaWNf",
  77. "aW1wb3J0X21lc3NhZ2UYGiABKAsyLS5wcm90b2J1Zl91bml0dGVzdF9pbXBv",
  78. "cnQuUHVibGljSW1wb3J0TWVzc2FnZRIWCg5yZXBlYXRlZF9pbnQzMhgfIAMo",
  79. "BRIWCg5yZXBlYXRlZF9pbnQ2NBggIAMoAxIXCg9yZXBlYXRlZF91aW50MzIY",
  80. "ISADKA0SFwoPcmVwZWF0ZWRfdWludDY0GCIgAygEEhcKD3JlcGVhdGVkX3Np",
  81. "bnQzMhgjIAMoERIXCg9yZXBlYXRlZF9zaW50NjQYJCADKBISGAoQcmVwZWF0",
  82. "ZWRfZml4ZWQzMhglIAMoBxIYChByZXBlYXRlZF9maXhlZDY0GCYgAygGEhkK",
  83. "EXJlcGVhdGVkX3NmaXhlZDMyGCcgAygPEhkKEXJlcGVhdGVkX3NmaXhlZDY0",
  84. "GCggAygQEhYKDnJlcGVhdGVkX2Zsb2F0GCkgAygCEhcKD3JlcGVhdGVkX2Rv",
  85. "dWJsZRgqIAMoARIVCg1yZXBlYXRlZF9ib29sGCsgAygIEhcKD3JlcGVhdGVk",
  86. "X3N0cmluZxgsIAMoCRIWCg5yZXBlYXRlZF9ieXRlcxgtIAMoDBJOChdyZXBl",
  87. "YXRlZF9uZXN0ZWRfbWVzc2FnZRgwIAMoCzItLnByb3RvYnVmX3VuaXR0ZXN0",
  88. "LlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlEkMKGHJlcGVhdGVkX2ZvcmVp",
  89. "Z25fbWVzc2FnZRgxIAMoCzIhLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25N",
  90. "ZXNzYWdlEkgKF3JlcGVhdGVkX2ltcG9ydF9tZXNzYWdlGDIgAygLMicucHJv",
  91. "dG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9ydE1lc3NhZ2USSAoUcmVwZWF0",
  92. "ZWRfbmVzdGVkX2VudW0YMyADKA4yKi5wcm90b2J1Zl91bml0dGVzdC5UZXN0",
  93. "QWxsVHlwZXMuTmVzdGVkRW51bRI9ChVyZXBlYXRlZF9mb3JlaWduX2VudW0Y",
  94. "NCADKA4yHi5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduRW51bRJCChRyZXBl",
  95. "YXRlZF9pbXBvcnRfZW51bRg1IAMoDjIkLnByb3RvYnVmX3VuaXR0ZXN0X2lt",
  96. "cG9ydC5JbXBvcnRFbnVtElUKHnJlcGVhdGVkX3B1YmxpY19pbXBvcnRfbWVz",
  97. "c2FnZRg2IAMoCzItLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydC5QdWJsaWNJ",
  98. "bXBvcnRNZXNzYWdlEhYKDG9uZW9mX3VpbnQzMhhvIAEoDUgAEk0KFG9uZW9m",
  99. "X25lc3RlZF9tZXNzYWdlGHAgASgLMi0ucHJvdG9idWZfdW5pdHRlc3QuVGVz",
  100. "dEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2VIABIWCgxvbmVvZl9zdHJpbmcYcSAB",
  101. "KAlIABIVCgtvbmVvZl9ieXRlcxhyIAEoDEgAGhsKDU5lc3RlZE1lc3NhZ2US",
  102. "CgoCYmIYASABKAUiVgoKTmVzdGVkRW51bRIbChdORVNURURfRU5VTV9VTlNQ",
  103. "RUNJRklFRBAAEgcKA0ZPTxABEgcKA0JBUhACEgcKA0JBWhADEhAKA05FRxD/",
  104. "//////////8BQg0KC29uZW9mX2ZpZWxkIrsBChJOZXN0ZWRUZXN0QWxsVHlw",
  105. "ZXMSNAoFY2hpbGQYASABKAsyJS5wcm90b2J1Zl91bml0dGVzdC5OZXN0ZWRU",
  106. "ZXN0QWxsVHlwZXMSMAoHcGF5bG9hZBgCIAEoCzIfLnByb3RvYnVmX3VuaXR0",
  107. "ZXN0LlRlc3RBbGxUeXBlcxI9Cg5yZXBlYXRlZF9jaGlsZBgDIAMoCzIlLnBy",
  108. "b3RvYnVmX3VuaXR0ZXN0Lk5lc3RlZFRlc3RBbGxUeXBlcyI0ChRUZXN0RGVw",
  109. "cmVjYXRlZEZpZWxkcxIcChBkZXByZWNhdGVkX2ludDMyGAEgASgFQgIYASIb",
  110. "Cg5Gb3JlaWduTWVzc2FnZRIJCgFjGAEgASgFIjAKElRlc3RSZXNlcnZlZEZp",
  111. "ZWxkc0oECAIQA0oECA8QEEoECAkQDFIDYmFyUgNiYXoiWgoRVGVzdEZvcmVp",
  112. "Z25OZXN0ZWQSRQoOZm9yZWlnbl9uZXN0ZWQYASABKAsyLS5wcm90b2J1Zl91",
  113. "bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZSI0ChhUZXN0UmVh",
  114. "bGx5TGFyZ2VUYWdOdW1iZXISCQoBYRgBIAEoBRINCgJiYhj///9/IAEoBSJV",
  115. "ChRUZXN0UmVjdXJzaXZlTWVzc2FnZRIyCgFhGAEgASgLMicucHJvdG9idWZf",
  116. "dW5pdHRlc3QuVGVzdFJlY3Vyc2l2ZU1lc3NhZ2USCQoBaRgCIAEoBSJLChRU",
  117. "ZXN0TXV0dWFsUmVjdXJzaW9uQRIzCgJiYhgBIAEoCzInLnByb3RvYnVmX3Vu",
  118. "aXR0ZXN0LlRlc3RNdXR1YWxSZWN1cnNpb25CImIKFFRlc3RNdXR1YWxSZWN1",
  119. "cnNpb25CEjIKAWEYASABKAsyJy5wcm90b2J1Zl91bml0dGVzdC5UZXN0TXV0",
  120. "dWFsUmVjdXJzaW9uQRIWCg5vcHRpb25hbF9pbnQzMhgCIAEoBSLrAgoXVGVz",
  121. "dENhbWVsQ2FzZUZpZWxkTmFtZXMSFgoOUHJpbWl0aXZlRmllbGQYASABKAUS",
  122. "EwoLU3RyaW5nRmllbGQYAiABKAkSMQoJRW51bUZpZWxkGAMgASgOMh4ucHJv",
  123. "dG9idWZfdW5pdHRlc3QuRm9yZWlnbkVudW0SNwoMTWVzc2FnZUZpZWxkGAQg",
  124. "ASgLMiEucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbk1lc3NhZ2USHgoWUmVw",
  125. "ZWF0ZWRQcmltaXRpdmVGaWVsZBgHIAMoBRIbChNSZXBlYXRlZFN0cmluZ0Zp",
  126. "ZWxkGAggAygJEjkKEVJlcGVhdGVkRW51bUZpZWxkGAkgAygOMh4ucHJvdG9i",
  127. "dWZfdW5pdHRlc3QuRm9yZWlnbkVudW0SPwoUUmVwZWF0ZWRNZXNzYWdlRmll",
  128. "bGQYCiADKAsyIS5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduTWVzc2FnZSLH",
  129. "AQoSVGVzdEZpZWxkT3JkZXJpbmdzEhEKCW15X3N0cmluZxgLIAEoCRIOCgZt",
  130. "eV9pbnQYASABKAMSEAoIbXlfZmxvYXQYZSABKAISUwoVc2luZ2xlX25lc3Rl",
  131. "ZF9tZXNzYWdlGMgBIAEoCzIzLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RGaWVs",
  132. "ZE9yZGVyaW5ncy5OZXN0ZWRNZXNzYWdlGicKDU5lc3RlZE1lc3NhZ2USCgoC",
  133. "b28YAiABKAMSCgoCYmIYASABKAUiSwoRU3BhcnNlRW51bU1lc3NhZ2USNgoL",
  134. "c3BhcnNlX2VudW0YASABKA4yIS5wcm90b2J1Zl91bml0dGVzdC5UZXN0U3Bh",
  135. "cnNlRW51bSIZCglPbmVTdHJpbmcSDAoEZGF0YRgBIAEoCSIaCgpNb3JlU3Ry",
  136. "aW5nEgwKBGRhdGEYASADKAkiGAoIT25lQnl0ZXMSDAoEZGF0YRgBIAEoDCIZ",
  137. "CglNb3JlQnl0ZXMSDAoEZGF0YRgBIAEoDCIcCgxJbnQzMk1lc3NhZ2USDAoE",
  138. "ZGF0YRgBIAEoBSIdCg1VaW50MzJNZXNzYWdlEgwKBGRhdGEYASABKA0iHAoM",
  139. "SW50NjRNZXNzYWdlEgwKBGRhdGEYASABKAMiHQoNVWludDY0TWVzc2FnZRIM",
  140. "CgRkYXRhGAEgASgEIhsKC0Jvb2xNZXNzYWdlEgwKBGRhdGEYASABKAgicwoJ",
  141. "VGVzdE9uZW9mEhEKB2Zvb19pbnQYASABKAVIABIUCgpmb29fc3RyaW5nGAIg",
  142. "ASgJSAASNgoLZm9vX21lc3NhZ2UYAyABKAsyHy5wcm90b2J1Zl91bml0dGVz",
  143. "dC5UZXN0QWxsVHlwZXNIAEIFCgNmb28iqgMKD1Rlc3RQYWNrZWRUeXBlcxIY",
  144. "CgxwYWNrZWRfaW50MzIYWiADKAVCAhABEhgKDHBhY2tlZF9pbnQ2NBhbIAMo",
  145. "A0ICEAESGQoNcGFja2VkX3VpbnQzMhhcIAMoDUICEAESGQoNcGFja2VkX3Vp",
  146. "bnQ2NBhdIAMoBEICEAESGQoNcGFja2VkX3NpbnQzMhheIAMoEUICEAESGQoN",
  147. "cGFja2VkX3NpbnQ2NBhfIAMoEkICEAESGgoOcGFja2VkX2ZpeGVkMzIYYCAD",
  148. "KAdCAhABEhoKDnBhY2tlZF9maXhlZDY0GGEgAygGQgIQARIbCg9wYWNrZWRf",
  149. "c2ZpeGVkMzIYYiADKA9CAhABEhsKD3BhY2tlZF9zZml4ZWQ2NBhjIAMoEEIC",
  150. "EAESGAoMcGFja2VkX2Zsb2F0GGQgAygCQgIQARIZCg1wYWNrZWRfZG91Ymxl",
  151. "GGUgAygBQgIQARIXCgtwYWNrZWRfYm9vbBhmIAMoCEICEAESNwoLcGFja2Vk",
  152. "X2VudW0YZyADKA4yHi5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduRW51bUIC",
  153. "EAEiyAMKEVRlc3RVbnBhY2tlZFR5cGVzEhoKDnVucGFja2VkX2ludDMyGFog",
  154. "AygFQgIQABIaCg51bnBhY2tlZF9pbnQ2NBhbIAMoA0ICEAASGwoPdW5wYWNr",
  155. "ZWRfdWludDMyGFwgAygNQgIQABIbCg91bnBhY2tlZF91aW50NjQYXSADKARC",
  156. "AhAAEhsKD3VucGFja2VkX3NpbnQzMhheIAMoEUICEAASGwoPdW5wYWNrZWRf",
  157. "c2ludDY0GF8gAygSQgIQABIcChB1bnBhY2tlZF9maXhlZDMyGGAgAygHQgIQ",
  158. "ABIcChB1bnBhY2tlZF9maXhlZDY0GGEgAygGQgIQABIdChF1bnBhY2tlZF9z",
  159. "Zml4ZWQzMhhiIAMoD0ICEAASHQoRdW5wYWNrZWRfc2ZpeGVkNjQYYyADKBBC",
  160. "AhAAEhoKDnVucGFja2VkX2Zsb2F0GGQgAygCQgIQABIbCg91bnBhY2tlZF9k",
  161. "b3VibGUYZSADKAFCAhAAEhkKDXVucGFja2VkX2Jvb2wYZiADKAhCAhAAEjkK",
  162. "DXVucGFja2VkX2VudW0YZyADKA4yHi5wcm90b2J1Zl91bml0dGVzdC5Gb3Jl",
  163. "aWduRW51bUICEAAiwAEKI1Rlc3RSZXBlYXRlZFNjYWxhckRpZmZlcmVudFRh",
  164. "Z1NpemVzEhgKEHJlcGVhdGVkX2ZpeGVkMzIYDCADKAcSFgoOcmVwZWF0ZWRf",
  165. "aW50MzIYDSADKAUSGQoQcmVwZWF0ZWRfZml4ZWQ2NBj+DyADKAYSFwoOcmVw",
  166. "ZWF0ZWRfaW50NjQY/w8gAygDEhgKDnJlcGVhdGVkX2Zsb2F0GP7/DyADKAIS",
  167. "GQoPcmVwZWF0ZWRfdWludDY0GP//DyADKAQiKAobVGVzdENvbW1lbnRJbmpl",
  168. "Y3Rpb25NZXNzYWdlEgkKAWEYASABKAkiDAoKRm9vUmVxdWVzdCINCgtGb29S",
  169. "ZXNwb25zZSISChBGb29DbGllbnRNZXNzYWdlIhIKEEZvb1NlcnZlck1lc3Nh",
  170. "Z2UiDAoKQmFyUmVxdWVzdCINCgtCYXJSZXNwb25zZSpZCgtGb3JlaWduRW51",
  171. "bRIXChNGT1JFSUdOX1VOU1BFQ0lGSUVEEAASDwoLRk9SRUlHTl9GT08QBBIP",
  172. "CgtGT1JFSUdOX0JBUhAFEg8KC0ZPUkVJR05fQkFaEAYqdQoUVGVzdEVudW1X",
  173. "aXRoRHVwVmFsdWUSKAokVEVTVF9FTlVNX1dJVEhfRFVQX1ZBTFVFX1VOU1BF",
  174. "Q0lGSUVEEAASCAoERk9PMRABEggKBEJBUjEQAhIHCgNCQVoQAxIICgRGT08y",
  175. "EAESCAoEQkFSMhACGgIQASqdAQoOVGVzdFNwYXJzZUVudW0SIAocVEVTVF9T",
  176. "UEFSU0VfRU5VTV9VTlNQRUNJRklFRBAAEgwKCFNQQVJTRV9BEHsSDgoIU1BB",
  177. "UlNFX0IQpucDEg8KCFNQQVJTRV9DELKxgAYSFQoIU1BBUlNFX0QQ8f//////",
  178. "////ARIVCghTUEFSU0VfRRC03vz///////8BEgwKCFNQQVJTRV9HEAIymQEK",
  179. "C1Rlc3RTZXJ2aWNlEkQKA0ZvbxIdLnByb3RvYnVmX3VuaXR0ZXN0LkZvb1Jl",
  180. "cXVlc3QaHi5wcm90b2J1Zl91bml0dGVzdC5Gb29SZXNwb25zZRJECgNCYXIS",
  181. "HS5wcm90b2J1Zl91bml0dGVzdC5CYXJSZXF1ZXN0Gh4ucHJvdG9idWZfdW5p",
  182. "dHRlc3QuQmFyUmVzcG9uc2VCOkINVW5pdHRlc3RQcm90b0gBgAEBiAEBkAEB",
  183. "+AEBqgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw=="));
  184. descriptor = pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
  185. new pbd::FileDescriptor[] {
  186. global::Google.Protobuf.TestProtos.UnittestImportProto3.Descriptor,
  187. });
  188. internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable =
  189. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestAllTypes), descriptor.MessageTypes[0],
  190. new string[] { "SingleInt32", "SingleInt64", "SingleUint32", "SingleUint64", "SingleSint32", "SingleSint64", "SingleFixed32", "SingleFixed64", "SingleSfixed32", "SingleSfixed64", "SingleFloat", "SingleDouble", "SingleBool", "SingleString", "SingleBytes", "SingleNestedMessage", "SingleForeignMessage", "SingleImportMessage", "SingleNestedEnum", "SingleForeignEnum", "SingleImportEnum", "SinglePublicImportMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedPublicImportMessage", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", }, new string[] { "OneofField", });
  191. internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable =
  192. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage), descriptor.MessageTypes[0].NestedTypes[0],
  193. new string[] { "Bb", }, new string[] { });
  194. internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable =
  195. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.NestedTestAllTypes), descriptor.MessageTypes[1],
  196. new string[] { "Child", "Payload", "RepeatedChild", }, new string[] { });
  197. internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable =
  198. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestDeprecatedFields), descriptor.MessageTypes[2],
  199. new string[] { "DeprecatedInt32", }, new string[] { });
  200. internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable =
  201. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.ForeignMessage), descriptor.MessageTypes[3],
  202. new string[] { "C", }, new string[] { });
  203. internal__static_protobuf_unittest_TestReservedFields__FieldAccessorTable =
  204. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestReservedFields), descriptor.MessageTypes[4],
  205. new string[] { }, new string[] { });
  206. internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable =
  207. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestForeignNested), descriptor.MessageTypes[5],
  208. new string[] { "ForeignNested", }, new string[] { });
  209. internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable =
  210. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestReallyLargeTagNumber), descriptor.MessageTypes[6],
  211. new string[] { "A", "Bb", }, new string[] { });
  212. internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable =
  213. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestRecursiveMessage), descriptor.MessageTypes[7],
  214. new string[] { "A", "I", }, new string[] { });
  215. internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable =
  216. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMutualRecursionA), descriptor.MessageTypes[8],
  217. new string[] { "Bb", }, new string[] { });
  218. internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable =
  219. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMutualRecursionB), descriptor.MessageTypes[9],
  220. new string[] { "A", "OptionalInt32", }, new string[] { });
  221. internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable =
  222. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestCamelCaseFieldNames), descriptor.MessageTypes[10],
  223. new string[] { "PrimitiveField", "StringField", "EnumField", "MessageField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", }, new string[] { });
  224. internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable =
  225. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestFieldOrderings), descriptor.MessageTypes[11],
  226. new string[] { "MyString", "MyInt", "MyFloat", "SingleNestedMessage", }, new string[] { });
  227. internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__FieldAccessorTable =
  228. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage), descriptor.MessageTypes[11].NestedTypes[0],
  229. new string[] { "Oo", "Bb", }, new string[] { });
  230. internal__static_protobuf_unittest_SparseEnumMessage__FieldAccessorTable =
  231. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.SparseEnumMessage), descriptor.MessageTypes[12],
  232. new string[] { "SparseEnum", }, new string[] { });
  233. internal__static_protobuf_unittest_OneString__FieldAccessorTable =
  234. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.OneString), descriptor.MessageTypes[13],
  235. new string[] { "Data", }, new string[] { });
  236. internal__static_protobuf_unittest_MoreString__FieldAccessorTable =
  237. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.MoreString), descriptor.MessageTypes[14],
  238. new string[] { "Data", }, new string[] { });
  239. internal__static_protobuf_unittest_OneBytes__FieldAccessorTable =
  240. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.OneBytes), descriptor.MessageTypes[15],
  241. new string[] { "Data", }, new string[] { });
  242. internal__static_protobuf_unittest_MoreBytes__FieldAccessorTable =
  243. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.MoreBytes), descriptor.MessageTypes[16],
  244. new string[] { "Data", }, new string[] { });
  245. internal__static_protobuf_unittest_Int32Message__FieldAccessorTable =
  246. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.Int32Message), descriptor.MessageTypes[17],
  247. new string[] { "Data", }, new string[] { });
  248. internal__static_protobuf_unittest_Uint32Message__FieldAccessorTable =
  249. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.Uint32Message), descriptor.MessageTypes[18],
  250. new string[] { "Data", }, new string[] { });
  251. internal__static_protobuf_unittest_Int64Message__FieldAccessorTable =
  252. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.Int64Message), descriptor.MessageTypes[19],
  253. new string[] { "Data", }, new string[] { });
  254. internal__static_protobuf_unittest_Uint64Message__FieldAccessorTable =
  255. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.Uint64Message), descriptor.MessageTypes[20],
  256. new string[] { "Data", }, new string[] { });
  257. internal__static_protobuf_unittest_BoolMessage__FieldAccessorTable =
  258. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.BoolMessage), descriptor.MessageTypes[21],
  259. new string[] { "Data", }, new string[] { });
  260. internal__static_protobuf_unittest_TestOneof__FieldAccessorTable =
  261. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestOneof), descriptor.MessageTypes[22],
  262. new string[] { "FooInt", "FooString", "FooMessage", }, new string[] { "Foo", });
  263. internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable =
  264. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestPackedTypes), descriptor.MessageTypes[23],
  265. new string[] { "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum", }, new string[] { });
  266. internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable =
  267. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestUnpackedTypes), descriptor.MessageTypes[24],
  268. new string[] { "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedEnum", }, new string[] { });
  269. internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable =
  270. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestRepeatedScalarDifferentTagSizes), descriptor.MessageTypes[25],
  271. new string[] { "RepeatedFixed32", "RepeatedInt32", "RepeatedFixed64", "RepeatedInt64", "RepeatedFloat", "RepeatedUint64", }, new string[] { });
  272. internal__static_protobuf_unittest_TestCommentInjectionMessage__FieldAccessorTable =
  273. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestCommentInjectionMessage), descriptor.MessageTypes[26],
  274. new string[] { "A", }, new string[] { });
  275. internal__static_protobuf_unittest_FooRequest__FieldAccessorTable =
  276. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.FooRequest), descriptor.MessageTypes[27],
  277. new string[] { }, new string[] { });
  278. internal__static_protobuf_unittest_FooResponse__FieldAccessorTable =
  279. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.FooResponse), descriptor.MessageTypes[28],
  280. new string[] { }, new string[] { });
  281. internal__static_protobuf_unittest_FooClientMessage__FieldAccessorTable =
  282. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.FooClientMessage), descriptor.MessageTypes[29],
  283. new string[] { }, new string[] { });
  284. internal__static_protobuf_unittest_FooServerMessage__FieldAccessorTable =
  285. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.FooServerMessage), descriptor.MessageTypes[30],
  286. new string[] { }, new string[] { });
  287. internal__static_protobuf_unittest_BarRequest__FieldAccessorTable =
  288. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.BarRequest), descriptor.MessageTypes[31],
  289. new string[] { }, new string[] { });
  290. internal__static_protobuf_unittest_BarResponse__FieldAccessorTable =
  291. new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.BarResponse), descriptor.MessageTypes[32],
  292. new string[] { }, new string[] { });
  293. }
  294. #endregion
  295. }
  296. #region Enums
  297. public enum ForeignEnum {
  298. FOREIGN_UNSPECIFIED = 0,
  299. FOREIGN_FOO = 4,
  300. FOREIGN_BAR = 5,
  301. FOREIGN_BAZ = 6,
  302. }
  303. public enum TestEnumWithDupValue {
  304. TEST_ENUM_WITH_DUP_VALUE_UNSPECIFIED = 0,
  305. FOO1 = 1,
  306. BAR1 = 2,
  307. BAZ = 3,
  308. FOO2 = 1,
  309. BAR2 = 2,
  310. }
  311. public enum TestSparseEnum {
  312. TEST_SPARSE_ENUM_UNSPECIFIED = 0,
  313. SPARSE_A = 123,
  314. SPARSE_B = 62374,
  315. SPARSE_C = 12589234,
  316. SPARSE_D = -15,
  317. SPARSE_E = -53452,
  318. SPARSE_G = 2,
  319. }
  320. #endregion
  321. #region Messages
  322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  323. public sealed partial class TestAllTypes : pb::IMessage<TestAllTypes> {
  324. private static readonly pb::MessageParser<TestAllTypes> _parser = new pb::MessageParser<TestAllTypes>(() => new TestAllTypes());
  325. public static pb::MessageParser<TestAllTypes> Parser { get { return _parser; } }
  326. private static readonly string[] _fieldNames = new string[] { "oneof_bytes", "oneof_nested_message", "oneof_string", "oneof_uint32", "repeated_bool", "repeated_bytes", "repeated_double", "repeated_fixed32", "repeated_fixed64", "repeated_float", "repeated_foreign_enum", "repeated_foreign_message", "repeated_import_enum", "repeated_import_message", "repeated_int32", "repeated_int64", "repeated_nested_enum", "repeated_nested_message", "repeated_public_import_message", "repeated_sfixed32", "repeated_sfixed64", "repeated_sint32", "repeated_sint64", "repeated_string", "repeated_uint32", "repeated_uint64", "single_bool", "single_bytes", "single_double", "single_fixed32", "single_fixed64", "single_float", "single_foreign_enum", "single_foreign_message", "single_import_enum", "single_import_message", "single_int32", "single_int64", "single_nested_enum", "single_nested_message", "single_public_import_message", "single_sfixed32", "single_sfixed64", "single_sint32", "single_sint64", "single_string", "single_uint32", "single_uint64" };
  327. private static readonly uint[] _fieldTags = new uint[] { 914, 898, 906, 888, 346, 362, 338, 298, 306, 330, 418, 394, 426, 402, 250, 258, 410, 386, 434, 314, 322, 282, 290, 354, 266, 274, 104, 122, 97, 61, 65, 93, 176, 154, 184, 162, 8, 16, 168, 146, 210, 77, 81, 40, 48, 114, 24, 32 };
  328. public static pbd::MessageDescriptor Descriptor {
  329. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[0]; }
  330. }
  331. public pb::FieldAccess.FieldAccessorTable Fields {
  332. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable; }
  333. }
  334. private bool _frozen = false;
  335. public bool IsFrozen { get { return _frozen; } }
  336. public TestAllTypes() {
  337. OnConstruction();
  338. }
  339. partial void OnConstruction();
  340. public TestAllTypes(TestAllTypes other) : this() {
  341. singleInt32_ = other.singleInt32_;
  342. singleInt64_ = other.singleInt64_;
  343. singleUint32_ = other.singleUint32_;
  344. singleUint64_ = other.singleUint64_;
  345. singleSint32_ = other.singleSint32_;
  346. singleSint64_ = other.singleSint64_;
  347. singleFixed32_ = other.singleFixed32_;
  348. singleFixed64_ = other.singleFixed64_;
  349. singleSfixed32_ = other.singleSfixed32_;
  350. singleSfixed64_ = other.singleSfixed64_;
  351. singleFloat_ = other.singleFloat_;
  352. singleDouble_ = other.singleDouble_;
  353. singleBool_ = other.singleBool_;
  354. singleString_ = other.singleString_;
  355. singleBytes_ = other.singleBytes_;
  356. SingleNestedMessage = other.singleNestedMessage_ != null ? other.SingleNestedMessage.Clone() : null;
  357. SingleForeignMessage = other.singleForeignMessage_ != null ? other.SingleForeignMessage.Clone() : null;
  358. SingleImportMessage = other.singleImportMessage_ != null ? other.SingleImportMessage.Clone() : null;
  359. singleNestedEnum_ = other.singleNestedEnum_;
  360. singleForeignEnum_ = other.singleForeignEnum_;
  361. singleImportEnum_ = other.singleImportEnum_;
  362. SinglePublicImportMessage = other.singlePublicImportMessage_ != null ? other.SinglePublicImportMessage.Clone() : null;
  363. repeatedInt32_ = other.repeatedInt32_.Clone();
  364. repeatedInt64_ = other.repeatedInt64_.Clone();
  365. repeatedUint32_ = other.repeatedUint32_.Clone();
  366. repeatedUint64_ = other.repeatedUint64_.Clone();
  367. repeatedSint32_ = other.repeatedSint32_.Clone();
  368. repeatedSint64_ = other.repeatedSint64_.Clone();
  369. repeatedFixed32_ = other.repeatedFixed32_.Clone();
  370. repeatedFixed64_ = other.repeatedFixed64_.Clone();
  371. repeatedSfixed32_ = other.repeatedSfixed32_.Clone();
  372. repeatedSfixed64_ = other.repeatedSfixed64_.Clone();
  373. repeatedFloat_ = other.repeatedFloat_.Clone();
  374. repeatedDouble_ = other.repeatedDouble_.Clone();
  375. repeatedBool_ = other.repeatedBool_.Clone();
  376. repeatedString_ = other.repeatedString_.Clone();
  377. repeatedBytes_ = other.repeatedBytes_.Clone();
  378. repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone();
  379. repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone();
  380. repeatedImportMessage_ = other.repeatedImportMessage_.Clone();
  381. repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone();
  382. repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone();
  383. repeatedImportEnum_ = other.repeatedImportEnum_.Clone();
  384. repeatedPublicImportMessage_ = other.repeatedPublicImportMessage_.Clone();
  385. switch (other.OneofFieldCase) {
  386. case OneofFieldOneofCase.OneofUint32:
  387. OneofUint32 = other.OneofUint32;
  388. break;
  389. case OneofFieldOneofCase.OneofNestedMessage:
  390. OneofNestedMessage = other.OneofNestedMessage.Clone();
  391. break;
  392. case OneofFieldOneofCase.OneofString:
  393. OneofString = other.OneofString;
  394. break;
  395. case OneofFieldOneofCase.OneofBytes:
  396. OneofBytes = other.OneofBytes;
  397. break;
  398. }
  399. }
  400. public TestAllTypes Clone() {
  401. return new TestAllTypes(this);
  402. }
  403. public void Freeze() {
  404. if (IsFrozen) {
  405. return;
  406. }
  407. _frozen = true;
  408. if (singleNestedMessage_ != null) SingleNestedMessage.Freeze();
  409. if (singleForeignMessage_ != null) SingleForeignMessage.Freeze();
  410. if (singleImportMessage_ != null) SingleImportMessage.Freeze();
  411. if (singlePublicImportMessage_ != null) SinglePublicImportMessage.Freeze();
  412. repeatedInt32_.Freeze();
  413. repeatedInt64_.Freeze();
  414. repeatedUint32_.Freeze();
  415. repeatedUint64_.Freeze();
  416. repeatedSint32_.Freeze();
  417. repeatedSint64_.Freeze();
  418. repeatedFixed32_.Freeze();
  419. repeatedFixed64_.Freeze();
  420. repeatedSfixed32_.Freeze();
  421. repeatedSfixed64_.Freeze();
  422. repeatedFloat_.Freeze();
  423. repeatedDouble_.Freeze();
  424. repeatedBool_.Freeze();
  425. repeatedString_.Freeze();
  426. repeatedBytes_.Freeze();
  427. repeatedNestedMessage_.Freeze();
  428. repeatedForeignMessage_.Freeze();
  429. repeatedImportMessage_.Freeze();
  430. repeatedNestedEnum_.Freeze();
  431. repeatedForeignEnum_.Freeze();
  432. repeatedImportEnum_.Freeze();
  433. repeatedPublicImportMessage_.Freeze();
  434. if (oneofField_ is IFreezable) ((IFreezable) oneofField_).Freeze();
  435. }
  436. public const int SingleInt32FieldNumber = 1;
  437. private int singleInt32_;
  438. public int SingleInt32 {
  439. get { return singleInt32_; }
  440. set {
  441. pb::Freezable.CheckMutable(this);
  442. singleInt32_ = value;
  443. }
  444. }
  445. public const int SingleInt64FieldNumber = 2;
  446. private long singleInt64_;
  447. public long SingleInt64 {
  448. get { return singleInt64_; }
  449. set {
  450. pb::Freezable.CheckMutable(this);
  451. singleInt64_ = value;
  452. }
  453. }
  454. public const int SingleUint32FieldNumber = 3;
  455. private uint singleUint32_;
  456. public uint SingleUint32 {
  457. get { return singleUint32_; }
  458. set {
  459. pb::Freezable.CheckMutable(this);
  460. singleUint32_ = value;
  461. }
  462. }
  463. public const int SingleUint64FieldNumber = 4;
  464. private ulong singleUint64_;
  465. public ulong SingleUint64 {
  466. get { return singleUint64_; }
  467. set {
  468. pb::Freezable.CheckMutable(this);
  469. singleUint64_ = value;
  470. }
  471. }
  472. public const int SingleSint32FieldNumber = 5;
  473. private int singleSint32_;
  474. public int SingleSint32 {
  475. get { return singleSint32_; }
  476. set {
  477. pb::Freezable.CheckMutable(this);
  478. singleSint32_ = value;
  479. }
  480. }
  481. public const int SingleSint64FieldNumber = 6;
  482. private long singleSint64_;
  483. public long SingleSint64 {
  484. get { return singleSint64_; }
  485. set {
  486. pb::Freezable.CheckMutable(this);
  487. singleSint64_ = value;
  488. }
  489. }
  490. public const int SingleFixed32FieldNumber = 7;
  491. private uint singleFixed32_;
  492. public uint SingleFixed32 {
  493. get { return singleFixed32_; }
  494. set {
  495. pb::Freezable.CheckMutable(this);
  496. singleFixed32_ = value;
  497. }
  498. }
  499. public const int SingleFixed64FieldNumber = 8;
  500. private ulong singleFixed64_;
  501. public ulong SingleFixed64 {
  502. get { return singleFixed64_; }
  503. set {
  504. pb::Freezable.CheckMutable(this);
  505. singleFixed64_ = value;
  506. }
  507. }
  508. public const int SingleSfixed32FieldNumber = 9;
  509. private int singleSfixed32_;
  510. public int SingleSfixed32 {
  511. get { return singleSfixed32_; }
  512. set {
  513. pb::Freezable.CheckMutable(this);
  514. singleSfixed32_ = value;
  515. }
  516. }
  517. public const int SingleSfixed64FieldNumber = 10;
  518. private long singleSfixed64_;
  519. public long SingleSfixed64 {
  520. get { return singleSfixed64_; }
  521. set {
  522. pb::Freezable.CheckMutable(this);
  523. singleSfixed64_ = value;
  524. }
  525. }
  526. public const int SingleFloatFieldNumber = 11;
  527. private float singleFloat_;
  528. public float SingleFloat {
  529. get { return singleFloat_; }
  530. set {
  531. pb::Freezable.CheckMutable(this);
  532. singleFloat_ = value;
  533. }
  534. }
  535. public const int SingleDoubleFieldNumber = 12;
  536. private double singleDouble_;
  537. public double SingleDouble {
  538. get { return singleDouble_; }
  539. set {
  540. pb::Freezable.CheckMutable(this);
  541. singleDouble_ = value;
  542. }
  543. }
  544. public const int SingleBoolFieldNumber = 13;
  545. private bool singleBool_;
  546. public bool SingleBool {
  547. get { return singleBool_; }
  548. set {
  549. pb::Freezable.CheckMutable(this);
  550. singleBool_ = value;
  551. }
  552. }
  553. public const int SingleStringFieldNumber = 14;
  554. private string singleString_ = "";
  555. public string SingleString {
  556. get { return singleString_; }
  557. set {
  558. pb::Freezable.CheckMutable(this);
  559. singleString_ = value ?? "";
  560. }
  561. }
  562. public const int SingleBytesFieldNumber = 15;
  563. private pb::ByteString singleBytes_ = pb::ByteString.Empty;
  564. public pb::ByteString SingleBytes {
  565. get { return singleBytes_; }
  566. set {
  567. pb::Freezable.CheckMutable(this);
  568. singleBytes_ = value ?? pb::ByteString.Empty;
  569. }
  570. }
  571. public const int SingleNestedMessageFieldNumber = 18;
  572. private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage singleNestedMessage_;
  573. public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage SingleNestedMessage {
  574. get { return singleNestedMessage_; }
  575. set {
  576. pb::Freezable.CheckMutable(this);
  577. singleNestedMessage_ = value;
  578. }
  579. }
  580. public const int SingleForeignMessageFieldNumber = 19;
  581. private global::Google.Protobuf.TestProtos.ForeignMessage singleForeignMessage_;
  582. public global::Google.Protobuf.TestProtos.ForeignMessage SingleForeignMessage {
  583. get { return singleForeignMessage_; }
  584. set {
  585. pb::Freezable.CheckMutable(this);
  586. singleForeignMessage_ = value;
  587. }
  588. }
  589. public const int SingleImportMessageFieldNumber = 20;
  590. private global::Google.Protobuf.TestProtos.ImportMessage singleImportMessage_;
  591. public global::Google.Protobuf.TestProtos.ImportMessage SingleImportMessage {
  592. get { return singleImportMessage_; }
  593. set {
  594. pb::Freezable.CheckMutable(this);
  595. singleImportMessage_ = value;
  596. }
  597. }
  598. public const int SingleNestedEnumFieldNumber = 21;
  599. private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum singleNestedEnum_ = global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED;
  600. public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum SingleNestedEnum {
  601. get { return singleNestedEnum_; }
  602. set {
  603. pb::Freezable.CheckMutable(this);
  604. singleNestedEnum_ = value;
  605. }
  606. }
  607. public const int SingleForeignEnumFieldNumber = 22;
  608. private global::Google.Protobuf.TestProtos.ForeignEnum singleForeignEnum_ = global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED;
  609. public global::Google.Protobuf.TestProtos.ForeignEnum SingleForeignEnum {
  610. get { return singleForeignEnum_; }
  611. set {
  612. pb::Freezable.CheckMutable(this);
  613. singleForeignEnum_ = value;
  614. }
  615. }
  616. public const int SingleImportEnumFieldNumber = 23;
  617. private global::Google.Protobuf.TestProtos.ImportEnum singleImportEnum_ = global::Google.Protobuf.TestProtos.ImportEnum.IMPORT_ENUM_UNSPECIFIED;
  618. public global::Google.Protobuf.TestProtos.ImportEnum SingleImportEnum {
  619. get { return singleImportEnum_; }
  620. set {
  621. pb::Freezable.CheckMutable(this);
  622. singleImportEnum_ = value;
  623. }
  624. }
  625. public const int SinglePublicImportMessageFieldNumber = 26;
  626. private global::Google.Protobuf.TestProtos.PublicImportMessage singlePublicImportMessage_;
  627. public global::Google.Protobuf.TestProtos.PublicImportMessage SinglePublicImportMessage {
  628. get { return singlePublicImportMessage_; }
  629. set {
  630. pb::Freezable.CheckMutable(this);
  631. singlePublicImportMessage_ = value;
  632. }
  633. }
  634. public const int RepeatedInt32FieldNumber = 31;
  635. private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
  636. = pb::FieldCodec.ForInt32(250);
  637. private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
  638. public pbc::RepeatedField<int> RepeatedInt32 {
  639. get { return repeatedInt32_; }
  640. }
  641. public const int RepeatedInt64FieldNumber = 32;
  642. private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
  643. = pb::FieldCodec.ForInt64(258);
  644. private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
  645. public pbc::RepeatedField<long> RepeatedInt64 {
  646. get { return repeatedInt64_; }
  647. }
  648. public const int RepeatedUint32FieldNumber = 33;
  649. private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec
  650. = pb::FieldCodec.ForUInt32(266);
  651. private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>();
  652. public pbc::RepeatedField<uint> RepeatedUint32 {
  653. get { return repeatedUint32_; }
  654. }
  655. public const int RepeatedUint64FieldNumber = 34;
  656. private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
  657. = pb::FieldCodec.ForUInt64(274);
  658. private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
  659. public pbc::RepeatedField<ulong> RepeatedUint64 {
  660. get { return repeatedUint64_; }
  661. }
  662. public const int RepeatedSint32FieldNumber = 35;
  663. private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec
  664. = pb::FieldCodec.ForSInt32(282);
  665. private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>();
  666. public pbc::RepeatedField<int> RepeatedSint32 {
  667. get { return repeatedSint32_; }
  668. }
  669. public const int RepeatedSint64FieldNumber = 36;
  670. private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec
  671. = pb::FieldCodec.ForSInt64(290);
  672. private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::RepeatedField<long>();
  673. public pbc::RepeatedField<long> RepeatedSint64 {
  674. get { return repeatedSint64_; }
  675. }
  676. public const int RepeatedFixed32FieldNumber = 37;
  677. private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
  678. = pb::FieldCodec.ForFixed32(298);
  679. private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
  680. public pbc::RepeatedField<uint> RepeatedFixed32 {
  681. get { return repeatedFixed32_; }
  682. }
  683. public const int RepeatedFixed64FieldNumber = 38;
  684. private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
  685. = pb::FieldCodec.ForFixed64(306);
  686. private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
  687. public pbc::RepeatedField<ulong> RepeatedFixed64 {
  688. get { return repeatedFixed64_; }
  689. }
  690. public const int RepeatedSfixed32FieldNumber = 39;
  691. private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec
  692. = pb::FieldCodec.ForSFixed32(314);
  693. private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::RepeatedField<int>();
  694. public pbc::RepeatedField<int> RepeatedSfixed32 {
  695. get { return repeatedSfixed32_; }
  696. }
  697. public const int RepeatedSfixed64FieldNumber = 40;
  698. private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_codec
  699. = pb::FieldCodec.ForSFixed64(322);
  700. private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::RepeatedField<long>();
  701. public pbc::RepeatedField<long> RepeatedSfixed64 {
  702. get { return repeatedSfixed64_; }
  703. }
  704. public const int RepeatedFloatFieldNumber = 41;
  705. private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
  706. = pb::FieldCodec.ForFloat(330);
  707. private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
  708. public pbc::RepeatedField<float> RepeatedFloat {
  709. get { return repeatedFloat_; }
  710. }
  711. public const int RepeatedDoubleFieldNumber = 42;
  712. private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_codec
  713. = pb::FieldCodec.ForDouble(338);
  714. private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::RepeatedField<double>();
  715. public pbc::RepeatedField<double> RepeatedDouble {
  716. get { return repeatedDouble_; }
  717. }
  718. public const int RepeatedBoolFieldNumber = 43;
  719. private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec
  720. = pb::FieldCodec.ForBool(346);
  721. private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedField<bool>();
  722. public pbc::RepeatedField<bool> RepeatedBool {
  723. get { return repeatedBool_; }
  724. }
  725. public const int RepeatedStringFieldNumber = 44;
  726. private static readonly pb::FieldCodec<string> _repeated_repeatedString_codec
  727. = pb::FieldCodec.ForString(354);
  728. private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::RepeatedField<string>();
  729. public pbc::RepeatedField<string> RepeatedString {
  730. get { return repeatedString_; }
  731. }
  732. public const int RepeatedBytesFieldNumber = 45;
  733. private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytes_codec
  734. = pb::FieldCodec.ForBytes(362);
  735. private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc::RepeatedField<pb::ByteString>();
  736. public pbc::RepeatedField<pb::ByteString> RepeatedBytes {
  737. get { return repeatedBytes_; }
  738. }
  739. public const int RepeatedNestedMessageFieldNumber = 48;
  740. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage> _repeated_repeatedNestedMessage_codec
  741. = pb::FieldCodec.ForMessage(386, global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage.Parser);
  742. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage>();
  743. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessage {
  744. get { return repeatedNestedMessage_; }
  745. }
  746. public const int RepeatedForeignMessageFieldNumber = 49;
  747. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignMessage> _repeated_repeatedForeignMessage_codec
  748. = pb::FieldCodec.ForMessage(394, global::Google.Protobuf.TestProtos.ForeignMessage.Parser);
  749. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage> repeatedForeignMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage>();
  750. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage> RepeatedForeignMessage {
  751. get { return repeatedForeignMessage_; }
  752. }
  753. public const int RepeatedImportMessageFieldNumber = 50;
  754. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ImportMessage> _repeated_repeatedImportMessage_codec
  755. = pb::FieldCodec.ForMessage(402, global::Google.Protobuf.TestProtos.ImportMessage.Parser);
  756. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportMessage> repeatedImportMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportMessage>();
  757. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportMessage> RepeatedImportMessage {
  758. get { return repeatedImportMessage_; }
  759. }
  760. public const int RepeatedNestedEnumFieldNumber = 51;
  761. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum> _repeated_repeatedNestedEnum_codec
  762. = pb::FieldCodec.ForEnum(410, x => (int) x, x => (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) x);private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum>();
  763. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnum {
  764. get { return repeatedNestedEnum_; }
  765. }
  766. public const int RepeatedForeignEnumFieldNumber = 52;
  767. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_repeatedForeignEnum_codec
  768. = pb::FieldCodec.ForEnum(418, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x);private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum>();
  769. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> RepeatedForeignEnum {
  770. get { return repeatedForeignEnum_; }
  771. }
  772. public const int RepeatedImportEnumFieldNumber = 53;
  773. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ImportEnum> _repeated_repeatedImportEnum_codec
  774. = pb::FieldCodec.ForEnum(426, x => (int) x, x => (global::Google.Protobuf.TestProtos.ImportEnum) x);private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportEnum> repeatedImportEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportEnum>();
  775. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportEnum> RepeatedImportEnum {
  776. get { return repeatedImportEnum_; }
  777. }
  778. public const int RepeatedPublicImportMessageFieldNumber = 54;
  779. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.PublicImportMessage> _repeated_repeatedPublicImportMessage_codec
  780. = pb::FieldCodec.ForMessage(434, global::Google.Protobuf.TestProtos.PublicImportMessage.Parser);
  781. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.PublicImportMessage> repeatedPublicImportMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.PublicImportMessage>();
  782. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.PublicImportMessage> RepeatedPublicImportMessage {
  783. get { return repeatedPublicImportMessage_; }
  784. }
  785. public const int OneofUint32FieldNumber = 111;
  786. public uint OneofUint32 {
  787. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32 ? (uint) oneofField_ : 0; }
  788. set {
  789. pb::Freezable.CheckMutable(this);
  790. oneofField_ = value;
  791. oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
  792. }
  793. }
  794. public const int OneofNestedMessageFieldNumber = 112;
  795. public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage OneofNestedMessage {
  796. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage) oneofField_ : null; }
  797. set {
  798. pb::Freezable.CheckMutable(this);
  799. oneofField_ = value;
  800. oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofNestedMessage;
  801. }
  802. }
  803. public const int OneofStringFieldNumber = 113;
  804. public string OneofString {
  805. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string) oneofField_ : ""; }
  806. set {
  807. pb::Freezable.CheckMutable(this);
  808. oneofField_ = value ?? "";
  809. oneofFieldCase_ = OneofFieldOneofCase.OneofString;
  810. }
  811. }
  812. public const int OneofBytesFieldNumber = 114;
  813. public pb::ByteString OneofBytes {
  814. get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
  815. set {
  816. pb::Freezable.CheckMutable(this);
  817. oneofField_ = value ?? pb::ByteString.Empty;
  818. oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
  819. }
  820. }
  821. private object oneofField_;
  822. public enum OneofFieldOneofCase {
  823. None = 0,
  824. OneofUint32 = 111,
  825. OneofNestedMessage = 112,
  826. OneofString = 113,
  827. OneofBytes = 114,
  828. }
  829. private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
  830. public OneofFieldOneofCase OneofFieldCase {
  831. get { return oneofFieldCase_; }
  832. }
  833. public void ClearOneofField() {
  834. pb::Freezable.CheckMutable(this);
  835. oneofFieldCase_ = OneofFieldOneofCase.None;
  836. oneofField_ = null;
  837. }
  838. public override bool Equals(object other) {
  839. return Equals(other as TestAllTypes);
  840. }
  841. public bool Equals(TestAllTypes other) {
  842. if (ReferenceEquals(other, null)) {
  843. return false;
  844. }
  845. if (ReferenceEquals(other, this)) {
  846. return true;
  847. }
  848. if (SingleInt32 != other.SingleInt32) return false;
  849. if (SingleInt64 != other.SingleInt64) return false;
  850. if (SingleUint32 != other.SingleUint32) return false;
  851. if (SingleUint64 != other.SingleUint64) return false;
  852. if (SingleSint32 != other.SingleSint32) return false;
  853. if (SingleSint64 != other.SingleSint64) return false;
  854. if (SingleFixed32 != other.SingleFixed32) return false;
  855. if (SingleFixed64 != other.SingleFixed64) return false;
  856. if (SingleSfixed32 != other.SingleSfixed32) return false;
  857. if (SingleSfixed64 != other.SingleSfixed64) return false;
  858. if (SingleFloat != other.SingleFloat) return false;
  859. if (SingleDouble != other.SingleDouble) return false;
  860. if (SingleBool != other.SingleBool) return false;
  861. if (SingleString != other.SingleString) return false;
  862. if (SingleBytes != other.SingleBytes) return false;
  863. if (!object.Equals(SingleNestedMessage, other.SingleNestedMessage)) return false;
  864. if (!object.Equals(SingleForeignMessage, other.SingleForeignMessage)) return false;
  865. if (!object.Equals(SingleImportMessage, other.SingleImportMessage)) return false;
  866. if (SingleNestedEnum != other.SingleNestedEnum) return false;
  867. if (SingleForeignEnum != other.SingleForeignEnum) return false;
  868. if (SingleImportEnum != other.SingleImportEnum) return false;
  869. if (!object.Equals(SinglePublicImportMessage, other.SinglePublicImportMessage)) return false;
  870. if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
  871. if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
  872. if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false;
  873. if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
  874. if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false;
  875. if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false;
  876. if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
  877. if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
  878. if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false;
  879. if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false;
  880. if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
  881. if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false;
  882. if(!repeatedBool_.Equals(other.repeatedBool_)) return false;
  883. if(!repeatedString_.Equals(other.repeatedString_)) return false;
  884. if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false;
  885. if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false;
  886. if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false;
  887. if(!repeatedImportMessage_.Equals(other.repeatedImportMessage_)) return false;
  888. if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false;
  889. if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false;
  890. if(!repeatedImportEnum_.Equals(other.repeatedImportEnum_)) return false;
  891. if(!repeatedPublicImportMessage_.Equals(other.repeatedPublicImportMessage_)) return false;
  892. if (OneofUint32 != other.OneofUint32) return false;
  893. if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false;
  894. if (OneofString != other.OneofString) return false;
  895. if (OneofBytes != other.OneofBytes) return false;
  896. return true;
  897. }
  898. public override int GetHashCode() {
  899. int hash = 1;
  900. if (SingleInt32 != 0) hash ^= SingleInt32.GetHashCode();
  901. if (SingleInt64 != 0L) hash ^= SingleInt64.GetHashCode();
  902. if (SingleUint32 != 0) hash ^= SingleUint32.GetHashCode();
  903. if (SingleUint64 != 0UL) hash ^= SingleUint64.GetHashCode();
  904. if (SingleSint32 != 0) hash ^= SingleSint32.GetHashCode();
  905. if (SingleSint64 != 0L) hash ^= SingleSint64.GetHashCode();
  906. if (SingleFixed32 != 0) hash ^= SingleFixed32.GetHashCode();
  907. if (SingleFixed64 != 0UL) hash ^= SingleFixed64.GetHashCode();
  908. if (SingleSfixed32 != 0) hash ^= SingleSfixed32.GetHashCode();
  909. if (SingleSfixed64 != 0L) hash ^= SingleSfixed64.GetHashCode();
  910. if (SingleFloat != 0F) hash ^= SingleFloat.GetHashCode();
  911. if (SingleDouble != 0D) hash ^= SingleDouble.GetHashCode();
  912. if (SingleBool != false) hash ^= SingleBool.GetHashCode();
  913. if (SingleString.Length != 0) hash ^= SingleString.GetHashCode();
  914. if (SingleBytes.Length != 0) hash ^= SingleBytes.GetHashCode();
  915. if (singleNestedMessage_ != null) hash ^= SingleNestedMessage.GetHashCode();
  916. if (singleForeignMessage_ != null) hash ^= SingleForeignMessage.GetHashCode();
  917. if (singleImportMessage_ != null) hash ^= SingleImportMessage.GetHashCode();
  918. if (SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED) hash ^= SingleNestedEnum.GetHashCode();
  919. if (SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) hash ^= SingleForeignEnum.GetHashCode();
  920. if (SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnum.IMPORT_ENUM_UNSPECIFIED) hash ^= SingleImportEnum.GetHashCode();
  921. if (singlePublicImportMessage_ != null) hash ^= SinglePublicImportMessage.GetHashCode();
  922. hash ^= repeatedInt32_.GetHashCode();
  923. hash ^= repeatedInt64_.GetHashCode();
  924. hash ^= repeatedUint32_.GetHashCode();
  925. hash ^= repeatedUint64_.GetHashCode();
  926. hash ^= repeatedSint32_.GetHashCode();
  927. hash ^= repeatedSint64_.GetHashCode();
  928. hash ^= repeatedFixed32_.GetHashCode();
  929. hash ^= repeatedFixed64_.GetHashCode();
  930. hash ^= repeatedSfixed32_.GetHashCode();
  931. hash ^= repeatedSfixed64_.GetHashCode();
  932. hash ^= repeatedFloat_.GetHashCode();
  933. hash ^= repeatedDouble_.GetHashCode();
  934. hash ^= repeatedBool_.GetHashCode();
  935. hash ^= repeatedString_.GetHashCode();
  936. hash ^= repeatedBytes_.GetHashCode();
  937. hash ^= repeatedNestedMessage_.GetHashCode();
  938. hash ^= repeatedForeignMessage_.GetHashCode();
  939. hash ^= repeatedImportMessage_.GetHashCode();
  940. hash ^= repeatedNestedEnum_.GetHashCode();
  941. hash ^= repeatedForeignEnum_.GetHashCode();
  942. hash ^= repeatedImportEnum_.GetHashCode();
  943. hash ^= repeatedPublicImportMessage_.GetHashCode();
  944. if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) hash ^= OneofUint32.GetHashCode();
  945. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode();
  946. if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) hash ^= OneofString.GetHashCode();
  947. if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) hash ^= OneofBytes.GetHashCode();
  948. return hash;
  949. }
  950. public override string ToString() {
  951. return pb::JsonFormatter.Default.Format(this);
  952. }
  953. public void WriteTo(pb::CodedOutputStream output) {
  954. if (SingleInt32 != 0) {
  955. output.WriteRawTag(8);
  956. output.WriteInt32(SingleInt32);
  957. }
  958. if (SingleInt64 != 0L) {
  959. output.WriteRawTag(16);
  960. output.WriteInt64(SingleInt64);
  961. }
  962. if (SingleUint32 != 0) {
  963. output.WriteRawTag(24);
  964. output.WriteUInt32(SingleUint32);
  965. }
  966. if (SingleUint64 != 0UL) {
  967. output.WriteRawTag(32);
  968. output.WriteUInt64(SingleUint64);
  969. }
  970. if (SingleSint32 != 0) {
  971. output.WriteRawTag(40);
  972. output.WriteSInt32(SingleSint32);
  973. }
  974. if (SingleSint64 != 0L) {
  975. output.WriteRawTag(48);
  976. output.WriteSInt64(SingleSint64);
  977. }
  978. if (SingleFixed32 != 0) {
  979. output.WriteRawTag(61);
  980. output.WriteFixed32(SingleFixed32);
  981. }
  982. if (SingleFixed64 != 0UL) {
  983. output.WriteRawTag(65);
  984. output.WriteFixed64(SingleFixed64);
  985. }
  986. if (SingleSfixed32 != 0) {
  987. output.WriteRawTag(77);
  988. output.WriteSFixed32(SingleSfixed32);
  989. }
  990. if (SingleSfixed64 != 0L) {
  991. output.WriteRawTag(81);
  992. output.WriteSFixed64(SingleSfixed64);
  993. }
  994. if (SingleFloat != 0F) {
  995. output.WriteRawTag(93);
  996. output.WriteFloat(SingleFloat);
  997. }
  998. if (SingleDouble != 0D) {
  999. output.WriteRawTag(97);
  1000. output.WriteDouble(SingleDouble);
  1001. }
  1002. if (SingleBool != false) {
  1003. output.WriteRawTag(104);
  1004. output.WriteBool(SingleBool);
  1005. }
  1006. if (SingleString.Length != 0) {
  1007. output.WriteRawTag(114);
  1008. output.WriteString(SingleString);
  1009. }
  1010. if (SingleBytes.Length != 0) {
  1011. output.WriteRawTag(122);
  1012. output.WriteBytes(SingleBytes);
  1013. }
  1014. if (singleNestedMessage_ != null) {
  1015. output.WriteRawTag(146, 1);
  1016. output.WriteMessage(SingleNestedMessage);
  1017. }
  1018. if (singleForeignMessage_ != null) {
  1019. output.WriteRawTag(154, 1);
  1020. output.WriteMessage(SingleForeignMessage);
  1021. }
  1022. if (singleImportMessage_ != null) {
  1023. output.WriteRawTag(162, 1);
  1024. output.WriteMessage(SingleImportMessage);
  1025. }
  1026. if (SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED) {
  1027. output.WriteRawTag(168, 1);
  1028. output.WriteEnum((int) SingleNestedEnum);
  1029. }
  1030. if (SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) {
  1031. output.WriteRawTag(176, 1);
  1032. output.WriteEnum((int) SingleForeignEnum);
  1033. }
  1034. if (SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnum.IMPORT_ENUM_UNSPECIFIED) {
  1035. output.WriteRawTag(184, 1);
  1036. output.WriteEnum((int) SingleImportEnum);
  1037. }
  1038. if (singlePublicImportMessage_ != null) {
  1039. output.WriteRawTag(210, 1);
  1040. output.WriteMessage(SinglePublicImportMessage);
  1041. }
  1042. repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
  1043. repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
  1044. repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec);
  1045. repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
  1046. repeatedSint32_.WriteTo(output, _repeated_repeatedSint32_codec);
  1047. repeatedSint64_.WriteTo(output, _repeated_repeatedSint64_codec);
  1048. repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
  1049. repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
  1050. repeatedSfixed32_.WriteTo(output, _repeated_repeatedSfixed32_codec);
  1051. repeatedSfixed64_.WriteTo(output, _repeated_repeatedSfixed64_codec);
  1052. repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
  1053. repeatedDouble_.WriteTo(output, _repeated_repeatedDouble_codec);
  1054. repeatedBool_.WriteTo(output, _repeated_repeatedBool_codec);
  1055. repeatedString_.WriteTo(output, _repeated_repeatedString_codec);
  1056. repeatedBytes_.WriteTo(output, _repeated_repeatedBytes_codec);
  1057. repeatedNestedMessage_.WriteTo(output, _repeated_repeatedNestedMessage_codec);
  1058. repeatedForeignMessage_.WriteTo(output, _repeated_repeatedForeignMessage_codec);
  1059. repeatedImportMessage_.WriteTo(output, _repeated_repeatedImportMessage_codec);
  1060. repeatedNestedEnum_.WriteTo(output, _repeated_repeatedNestedEnum_codec);
  1061. repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec);
  1062. repeatedImportEnum_.WriteTo(output, _repeated_repeatedImportEnum_codec);
  1063. repeatedPublicImportMessage_.WriteTo(output, _repeated_repeatedPublicImportMessage_codec);
  1064. if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) {
  1065. output.WriteRawTag(248, 6);
  1066. output.WriteUInt32(OneofUint32);
  1067. }
  1068. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
  1069. output.WriteRawTag(130, 7);
  1070. output.WriteMessage(OneofNestedMessage);
  1071. }
  1072. if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) {
  1073. output.WriteRawTag(138, 7);
  1074. output.WriteString(OneofString);
  1075. }
  1076. if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) {
  1077. output.WriteRawTag(146, 7);
  1078. output.WriteBytes(OneofBytes);
  1079. }
  1080. }
  1081. public int CalculateSize() {
  1082. int size = 0;
  1083. if (SingleInt32 != 0) {
  1084. size += 1 + pb::CodedOutputStream.ComputeInt32Size(SingleInt32);
  1085. }
  1086. if (SingleInt64 != 0L) {
  1087. size += 1 + pb::CodedOutputStream.ComputeInt64Size(SingleInt64);
  1088. }
  1089. if (SingleUint32 != 0) {
  1090. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SingleUint32);
  1091. }
  1092. if (SingleUint64 != 0UL) {
  1093. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SingleUint64);
  1094. }
  1095. if (SingleSint32 != 0) {
  1096. size += 1 + pb::CodedOutputStream.ComputeSInt32Size(SingleSint32);
  1097. }
  1098. if (SingleSint64 != 0L) {
  1099. size += 1 + pb::CodedOutputStream.ComputeSInt64Size(SingleSint64);
  1100. }
  1101. if (SingleFixed32 != 0) {
  1102. size += 1 + 4;
  1103. }
  1104. if (SingleFixed64 != 0UL) {
  1105. size += 1 + 8;
  1106. }
  1107. if (SingleSfixed32 != 0) {
  1108. size += 1 + 4;
  1109. }
  1110. if (SingleSfixed64 != 0L) {
  1111. size += 1 + 8;
  1112. }
  1113. if (SingleFloat != 0F) {
  1114. size += 1 + 4;
  1115. }
  1116. if (SingleDouble != 0D) {
  1117. size += 1 + 8;
  1118. }
  1119. if (SingleBool != false) {
  1120. size += 1 + 1;
  1121. }
  1122. if (SingleString.Length != 0) {
  1123. size += 1 + pb::CodedOutputStream.ComputeStringSize(SingleString);
  1124. }
  1125. if (SingleBytes.Length != 0) {
  1126. size += 1 + pb::CodedOutputStream.ComputeBytesSize(SingleBytes);
  1127. }
  1128. if (singleNestedMessage_ != null) {
  1129. size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleNestedMessage);
  1130. }
  1131. if (singleForeignMessage_ != null) {
  1132. size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleForeignMessage);
  1133. }
  1134. if (singleImportMessage_ != null) {
  1135. size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleImportMessage);
  1136. }
  1137. if (SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED) {
  1138. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleNestedEnum);
  1139. }
  1140. if (SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) {
  1141. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleForeignEnum);
  1142. }
  1143. if (SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnum.IMPORT_ENUM_UNSPECIFIED) {
  1144. size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleImportEnum);
  1145. }
  1146. if (singlePublicImportMessage_ != null) {
  1147. size += 2 + pb::CodedOutputStream.ComputeMessageSize(SinglePublicImportMessage);
  1148. }
  1149. size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
  1150. size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
  1151. size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec);
  1152. size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
  1153. size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec);
  1154. size += repeatedSint64_.CalculateSize(_repeated_repeatedSint64_codec);
  1155. size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
  1156. size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
  1157. size += repeatedSfixed32_.CalculateSize(_repeated_repeatedSfixed32_codec);
  1158. size += repeatedSfixed64_.CalculateSize(_repeated_repeatedSfixed64_codec);
  1159. size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
  1160. size += repeatedDouble_.CalculateSize(_repeated_repeatedDouble_codec);
  1161. size += repeatedBool_.CalculateSize(_repeated_repeatedBool_codec);
  1162. size += repeatedString_.CalculateSize(_repeated_repeatedString_codec);
  1163. size += repeatedBytes_.CalculateSize(_repeated_repeatedBytes_codec);
  1164. size += repeatedNestedMessage_.CalculateSize(_repeated_repeatedNestedMessage_codec);
  1165. size += repeatedForeignMessage_.CalculateSize(_repeated_repeatedForeignMessage_codec);
  1166. size += repeatedImportMessage_.CalculateSize(_repeated_repeatedImportMessage_codec);
  1167. size += repeatedNestedEnum_.CalculateSize(_repeated_repeatedNestedEnum_codec);
  1168. size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec);
  1169. size += repeatedImportEnum_.CalculateSize(_repeated_repeatedImportEnum_codec);
  1170. size += repeatedPublicImportMessage_.CalculateSize(_repeated_repeatedPublicImportMessage_codec);
  1171. if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) {
  1172. size += 2 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
  1173. }
  1174. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
  1175. size += 2 + pb::CodedOutputStream.ComputeMessageSize(OneofNestedMessage);
  1176. }
  1177. if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) {
  1178. size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString);
  1179. }
  1180. if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) {
  1181. size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
  1182. }
  1183. return size;
  1184. }
  1185. public void MergeFrom(TestAllTypes other) {
  1186. if (other == null) {
  1187. return;
  1188. }
  1189. if (other.SingleInt32 != 0) {
  1190. SingleInt32 = other.SingleInt32;
  1191. }
  1192. if (other.SingleInt64 != 0L) {
  1193. SingleInt64 = other.SingleInt64;
  1194. }
  1195. if (other.SingleUint32 != 0) {
  1196. SingleUint32 = other.SingleUint32;
  1197. }
  1198. if (other.SingleUint64 != 0UL) {
  1199. SingleUint64 = other.SingleUint64;
  1200. }
  1201. if (other.SingleSint32 != 0) {
  1202. SingleSint32 = other.SingleSint32;
  1203. }
  1204. if (other.SingleSint64 != 0L) {
  1205. SingleSint64 = other.SingleSint64;
  1206. }
  1207. if (other.SingleFixed32 != 0) {
  1208. SingleFixed32 = other.SingleFixed32;
  1209. }
  1210. if (other.SingleFixed64 != 0UL) {
  1211. SingleFixed64 = other.SingleFixed64;
  1212. }
  1213. if (other.SingleSfixed32 != 0) {
  1214. SingleSfixed32 = other.SingleSfixed32;
  1215. }
  1216. if (other.SingleSfixed64 != 0L) {
  1217. SingleSfixed64 = other.SingleSfixed64;
  1218. }
  1219. if (other.SingleFloat != 0F) {
  1220. SingleFloat = other.SingleFloat;
  1221. }
  1222. if (other.SingleDouble != 0D) {
  1223. SingleDouble = other.SingleDouble;
  1224. }
  1225. if (other.SingleBool != false) {
  1226. SingleBool = other.SingleBool;
  1227. }
  1228. if (other.SingleString.Length != 0) {
  1229. SingleString = other.SingleString;
  1230. }
  1231. if (other.SingleBytes.Length != 0) {
  1232. SingleBytes = other.SingleBytes;
  1233. }
  1234. if (other.singleNestedMessage_ != null) {
  1235. if (singleNestedMessage_ == null) {
  1236. singleNestedMessage_ = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
  1237. }
  1238. SingleNestedMessage.MergeFrom(other.SingleNestedMessage);
  1239. }
  1240. if (other.singleForeignMessage_ != null) {
  1241. if (singleForeignMessage_ == null) {
  1242. singleForeignMessage_ = new global::Google.Protobuf.TestProtos.ForeignMessage();
  1243. }
  1244. SingleForeignMessage.MergeFrom(other.SingleForeignMessage);
  1245. }
  1246. if (other.singleImportMessage_ != null) {
  1247. if (singleImportMessage_ == null) {
  1248. singleImportMessage_ = new global::Google.Protobuf.TestProtos.ImportMessage();
  1249. }
  1250. SingleImportMessage.MergeFrom(other.SingleImportMessage);
  1251. }
  1252. if (other.SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED) {
  1253. SingleNestedEnum = other.SingleNestedEnum;
  1254. }
  1255. if (other.SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) {
  1256. SingleForeignEnum = other.SingleForeignEnum;
  1257. }
  1258. if (other.SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnum.IMPORT_ENUM_UNSPECIFIED) {
  1259. SingleImportEnum = other.SingleImportEnum;
  1260. }
  1261. if (other.singlePublicImportMessage_ != null) {
  1262. if (singlePublicImportMessage_ == null) {
  1263. singlePublicImportMessage_ = new global::Google.Protobuf.TestProtos.PublicImportMessage();
  1264. }
  1265. SinglePublicImportMessage.MergeFrom(other.SinglePublicImportMessage);
  1266. }
  1267. repeatedInt32_.Add(other.repeatedInt32_);
  1268. repeatedInt64_.Add(other.repeatedInt64_);
  1269. repeatedUint32_.Add(other.repeatedUint32_);
  1270. repeatedUint64_.Add(other.repeatedUint64_);
  1271. repeatedSint32_.Add(other.repeatedSint32_);
  1272. repeatedSint64_.Add(other.repeatedSint64_);
  1273. repeatedFixed32_.Add(other.repeatedFixed32_);
  1274. repeatedFixed64_.Add(other.repeatedFixed64_);
  1275. repeatedSfixed32_.Add(other.repeatedSfixed32_);
  1276. repeatedSfixed64_.Add(other.repeatedSfixed64_);
  1277. repeatedFloat_.Add(other.repeatedFloat_);
  1278. repeatedDouble_.Add(other.repeatedDouble_);
  1279. repeatedBool_.Add(other.repeatedBool_);
  1280. repeatedString_.Add(other.repeatedString_);
  1281. repeatedBytes_.Add(other.repeatedBytes_);
  1282. repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
  1283. repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
  1284. repeatedImportMessage_.Add(other.repeatedImportMessage_);
  1285. repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
  1286. repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
  1287. repeatedImportEnum_.Add(other.repeatedImportEnum_);
  1288. repeatedPublicImportMessage_.Add(other.repeatedPublicImportMessage_);
  1289. switch (other.OneofFieldCase) {
  1290. case OneofFieldOneofCase.OneofUint32:
  1291. OneofUint32 = other.OneofUint32;
  1292. break;
  1293. case OneofFieldOneofCase.OneofNestedMessage:
  1294. OneofNestedMessage = other.OneofNestedMessage;
  1295. break;
  1296. case OneofFieldOneofCase.OneofString:
  1297. OneofString = other.OneofString;
  1298. break;
  1299. case OneofFieldOneofCase.OneofBytes:
  1300. OneofBytes = other.OneofBytes;
  1301. break;
  1302. }
  1303. }
  1304. public void MergeFrom(pb::CodedInputStream input) {
  1305. uint tag;
  1306. while (input.ReadTag(out tag)) {
  1307. switch(tag) {
  1308. case 0:
  1309. throw pb::InvalidProtocolBufferException.InvalidTag();
  1310. default:
  1311. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1312. return;
  1313. }
  1314. break;
  1315. case 8: {
  1316. SingleInt32 = input.ReadInt32();
  1317. break;
  1318. }
  1319. case 16: {
  1320. SingleInt64 = input.ReadInt64();
  1321. break;
  1322. }
  1323. case 24: {
  1324. SingleUint32 = input.ReadUInt32();
  1325. break;
  1326. }
  1327. case 32: {
  1328. SingleUint64 = input.ReadUInt64();
  1329. break;
  1330. }
  1331. case 40: {
  1332. SingleSint32 = input.ReadSInt32();
  1333. break;
  1334. }
  1335. case 48: {
  1336. SingleSint64 = input.ReadSInt64();
  1337. break;
  1338. }
  1339. case 61: {
  1340. SingleFixed32 = input.ReadFixed32();
  1341. break;
  1342. }
  1343. case 65: {
  1344. SingleFixed64 = input.ReadFixed64();
  1345. break;
  1346. }
  1347. case 77: {
  1348. SingleSfixed32 = input.ReadSFixed32();
  1349. break;
  1350. }
  1351. case 81: {
  1352. SingleSfixed64 = input.ReadSFixed64();
  1353. break;
  1354. }
  1355. case 93: {
  1356. SingleFloat = input.ReadFloat();
  1357. break;
  1358. }
  1359. case 97: {
  1360. SingleDouble = input.ReadDouble();
  1361. break;
  1362. }
  1363. case 104: {
  1364. SingleBool = input.ReadBool();
  1365. break;
  1366. }
  1367. case 114: {
  1368. SingleString = input.ReadString();
  1369. break;
  1370. }
  1371. case 122: {
  1372. SingleBytes = input.ReadBytes();
  1373. break;
  1374. }
  1375. case 146: {
  1376. if (singleNestedMessage_ == null) {
  1377. singleNestedMessage_ = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
  1378. }
  1379. input.ReadMessage(singleNestedMessage_);
  1380. break;
  1381. }
  1382. case 154: {
  1383. if (singleForeignMessage_ == null) {
  1384. singleForeignMessage_ = new global::Google.Protobuf.TestProtos.ForeignMessage();
  1385. }
  1386. input.ReadMessage(singleForeignMessage_);
  1387. break;
  1388. }
  1389. case 162: {
  1390. if (singleImportMessage_ == null) {
  1391. singleImportMessage_ = new global::Google.Protobuf.TestProtos.ImportMessage();
  1392. }
  1393. input.ReadMessage(singleImportMessage_);
  1394. break;
  1395. }
  1396. case 168: {
  1397. singleNestedEnum_ = (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) input.ReadEnum();
  1398. break;
  1399. }
  1400. case 176: {
  1401. singleForeignEnum_ = (global::Google.Protobuf.TestProtos.ForeignEnum) input.ReadEnum();
  1402. break;
  1403. }
  1404. case 184: {
  1405. singleImportEnum_ = (global::Google.Protobuf.TestProtos.ImportEnum) input.ReadEnum();
  1406. break;
  1407. }
  1408. case 210: {
  1409. if (singlePublicImportMessage_ == null) {
  1410. singlePublicImportMessage_ = new global::Google.Protobuf.TestProtos.PublicImportMessage();
  1411. }
  1412. input.ReadMessage(singlePublicImportMessage_);
  1413. break;
  1414. }
  1415. case 250:
  1416. case 248: {
  1417. repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
  1418. break;
  1419. }
  1420. case 258:
  1421. case 256: {
  1422. repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
  1423. break;
  1424. }
  1425. case 266:
  1426. case 264: {
  1427. repeatedUint32_.AddEntriesFrom(input, _repeated_repeatedUint32_codec);
  1428. break;
  1429. }
  1430. case 274:
  1431. case 272: {
  1432. repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
  1433. break;
  1434. }
  1435. case 282:
  1436. case 280: {
  1437. repeatedSint32_.AddEntriesFrom(input, _repeated_repeatedSint32_codec);
  1438. break;
  1439. }
  1440. case 290:
  1441. case 288: {
  1442. repeatedSint64_.AddEntriesFrom(input, _repeated_repeatedSint64_codec);
  1443. break;
  1444. }
  1445. case 298:
  1446. case 301: {
  1447. repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
  1448. break;
  1449. }
  1450. case 306:
  1451. case 305: {
  1452. repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
  1453. break;
  1454. }
  1455. case 314:
  1456. case 317: {
  1457. repeatedSfixed32_.AddEntriesFrom(input, _repeated_repeatedSfixed32_codec);
  1458. break;
  1459. }
  1460. case 322:
  1461. case 321: {
  1462. repeatedSfixed64_.AddEntriesFrom(input, _repeated_repeatedSfixed64_codec);
  1463. break;
  1464. }
  1465. case 330:
  1466. case 333: {
  1467. repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
  1468. break;
  1469. }
  1470. case 338:
  1471. case 337: {
  1472. repeatedDouble_.AddEntriesFrom(input, _repeated_repeatedDouble_codec);
  1473. break;
  1474. }
  1475. case 346:
  1476. case 344: {
  1477. repeatedBool_.AddEntriesFrom(input, _repeated_repeatedBool_codec);
  1478. break;
  1479. }
  1480. case 354: {
  1481. repeatedString_.AddEntriesFrom(input, _repeated_repeatedString_codec);
  1482. break;
  1483. }
  1484. case 362: {
  1485. repeatedBytes_.AddEntriesFrom(input, _repeated_repeatedBytes_codec);
  1486. break;
  1487. }
  1488. case 386: {
  1489. repeatedNestedMessage_.AddEntriesFrom(input, _repeated_repeatedNestedMessage_codec);
  1490. break;
  1491. }
  1492. case 394: {
  1493. repeatedForeignMessage_.AddEntriesFrom(input, _repeated_repeatedForeignMessage_codec);
  1494. break;
  1495. }
  1496. case 402: {
  1497. repeatedImportMessage_.AddEntriesFrom(input, _repeated_repeatedImportMessage_codec);
  1498. break;
  1499. }
  1500. case 410:
  1501. case 408: {
  1502. repeatedNestedEnum_.AddEntriesFrom(input, _repeated_repeatedNestedEnum_codec);
  1503. break;
  1504. }
  1505. case 418:
  1506. case 416: {
  1507. repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec);
  1508. break;
  1509. }
  1510. case 426:
  1511. case 424: {
  1512. repeatedImportEnum_.AddEntriesFrom(input, _repeated_repeatedImportEnum_codec);
  1513. break;
  1514. }
  1515. case 434: {
  1516. repeatedPublicImportMessage_.AddEntriesFrom(input, _repeated_repeatedPublicImportMessage_codec);
  1517. break;
  1518. }
  1519. case 888: {
  1520. OneofUint32 = input.ReadUInt32();
  1521. break;
  1522. }
  1523. case 898: {
  1524. global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
  1525. if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
  1526. subBuilder.MergeFrom(OneofNestedMessage);
  1527. }
  1528. input.ReadMessage(subBuilder);
  1529. OneofNestedMessage = subBuilder;
  1530. break;
  1531. }
  1532. case 906: {
  1533. OneofString = input.ReadString();
  1534. break;
  1535. }
  1536. case 914: {
  1537. OneofBytes = input.ReadBytes();
  1538. break;
  1539. }
  1540. }
  1541. }
  1542. }
  1543. #region Nested types
  1544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1545. public static partial class Types {
  1546. public enum NestedEnum {
  1547. NESTED_ENUM_UNSPECIFIED = 0,
  1548. FOO = 1,
  1549. BAR = 2,
  1550. BAZ = 3,
  1551. NEG = -1,
  1552. }
  1553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1554. public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
  1555. private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
  1556. public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
  1557. private static readonly string[] _fieldNames = new string[] { "bb" };
  1558. private static readonly uint[] _fieldTags = new uint[] { 8 };
  1559. public static pbd::MessageDescriptor Descriptor {
  1560. get { return global::Google.Protobuf.TestProtos.TestAllTypes.Descriptor.NestedTypes[0]; }
  1561. }
  1562. public pb::FieldAccess.FieldAccessorTable Fields {
  1563. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable; }
  1564. }
  1565. private bool _frozen = false;
  1566. public bool IsFrozen { get { return _frozen; } }
  1567. public NestedMessage() {
  1568. OnConstruction();
  1569. }
  1570. partial void OnConstruction();
  1571. public NestedMessage(NestedMessage other) : this() {
  1572. bb_ = other.bb_;
  1573. }
  1574. public NestedMessage Clone() {
  1575. return new NestedMessage(this);
  1576. }
  1577. public void Freeze() {
  1578. if (IsFrozen) {
  1579. return;
  1580. }
  1581. _frozen = true;
  1582. }
  1583. public const int BbFieldNumber = 1;
  1584. private int bb_;
  1585. public int Bb {
  1586. get { return bb_; }
  1587. set {
  1588. pb::Freezable.CheckMutable(this);
  1589. bb_ = value;
  1590. }
  1591. }
  1592. public override bool Equals(object other) {
  1593. return Equals(other as NestedMessage);
  1594. }
  1595. public bool Equals(NestedMessage other) {
  1596. if (ReferenceEquals(other, null)) {
  1597. return false;
  1598. }
  1599. if (ReferenceEquals(other, this)) {
  1600. return true;
  1601. }
  1602. if (Bb != other.Bb) return false;
  1603. return true;
  1604. }
  1605. public override int GetHashCode() {
  1606. int hash = 1;
  1607. if (Bb != 0) hash ^= Bb.GetHashCode();
  1608. return hash;
  1609. }
  1610. public override string ToString() {
  1611. return pb::JsonFormatter.Default.Format(this);
  1612. }
  1613. public void WriteTo(pb::CodedOutputStream output) {
  1614. if (Bb != 0) {
  1615. output.WriteRawTag(8);
  1616. output.WriteInt32(Bb);
  1617. }
  1618. }
  1619. public int CalculateSize() {
  1620. int size = 0;
  1621. if (Bb != 0) {
  1622. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb);
  1623. }
  1624. return size;
  1625. }
  1626. public void MergeFrom(NestedMessage other) {
  1627. if (other == null) {
  1628. return;
  1629. }
  1630. if (other.Bb != 0) {
  1631. Bb = other.Bb;
  1632. }
  1633. }
  1634. public void MergeFrom(pb::CodedInputStream input) {
  1635. uint tag;
  1636. while (input.ReadTag(out tag)) {
  1637. switch(tag) {
  1638. case 0:
  1639. throw pb::InvalidProtocolBufferException.InvalidTag();
  1640. default:
  1641. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1642. return;
  1643. }
  1644. break;
  1645. case 8: {
  1646. Bb = input.ReadInt32();
  1647. break;
  1648. }
  1649. }
  1650. }
  1651. }
  1652. }
  1653. }
  1654. #endregion
  1655. }
  1656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1657. public sealed partial class NestedTestAllTypes : pb::IMessage<NestedTestAllTypes> {
  1658. private static readonly pb::MessageParser<NestedTestAllTypes> _parser = new pb::MessageParser<NestedTestAllTypes>(() => new NestedTestAllTypes());
  1659. public static pb::MessageParser<NestedTestAllTypes> Parser { get { return _parser; } }
  1660. private static readonly string[] _fieldNames = new string[] { "child", "payload", "repeated_child" };
  1661. private static readonly uint[] _fieldTags = new uint[] { 10, 18, 26 };
  1662. public static pbd::MessageDescriptor Descriptor {
  1663. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[1]; }
  1664. }
  1665. public pb::FieldAccess.FieldAccessorTable Fields {
  1666. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable; }
  1667. }
  1668. private bool _frozen = false;
  1669. public bool IsFrozen { get { return _frozen; } }
  1670. public NestedTestAllTypes() {
  1671. OnConstruction();
  1672. }
  1673. partial void OnConstruction();
  1674. public NestedTestAllTypes(NestedTestAllTypes other) : this() {
  1675. Child = other.child_ != null ? other.Child.Clone() : null;
  1676. Payload = other.payload_ != null ? other.Payload.Clone() : null;
  1677. repeatedChild_ = other.repeatedChild_.Clone();
  1678. }
  1679. public NestedTestAllTypes Clone() {
  1680. return new NestedTestAllTypes(this);
  1681. }
  1682. public void Freeze() {
  1683. if (IsFrozen) {
  1684. return;
  1685. }
  1686. _frozen = true;
  1687. if (child_ != null) Child.Freeze();
  1688. if (payload_ != null) Payload.Freeze();
  1689. repeatedChild_.Freeze();
  1690. }
  1691. public const int ChildFieldNumber = 1;
  1692. private global::Google.Protobuf.TestProtos.NestedTestAllTypes child_;
  1693. public global::Google.Protobuf.TestProtos.NestedTestAllTypes Child {
  1694. get { return child_; }
  1695. set {
  1696. pb::Freezable.CheckMutable(this);
  1697. child_ = value;
  1698. }
  1699. }
  1700. public const int PayloadFieldNumber = 2;
  1701. private global::Google.Protobuf.TestProtos.TestAllTypes payload_;
  1702. public global::Google.Protobuf.TestProtos.TestAllTypes Payload {
  1703. get { return payload_; }
  1704. set {
  1705. pb::Freezable.CheckMutable(this);
  1706. payload_ = value;
  1707. }
  1708. }
  1709. public const int RepeatedChildFieldNumber = 3;
  1710. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.NestedTestAllTypes> _repeated_repeatedChild_codec
  1711. = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.NestedTestAllTypes.Parser);
  1712. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.NestedTestAllTypes> repeatedChild_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.NestedTestAllTypes>();
  1713. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.NestedTestAllTypes> RepeatedChild {
  1714. get { return repeatedChild_; }
  1715. }
  1716. public override bool Equals(object other) {
  1717. return Equals(other as NestedTestAllTypes);
  1718. }
  1719. public bool Equals(NestedTestAllTypes other) {
  1720. if (ReferenceEquals(other, null)) {
  1721. return false;
  1722. }
  1723. if (ReferenceEquals(other, this)) {
  1724. return true;
  1725. }
  1726. if (!object.Equals(Child, other.Child)) return false;
  1727. if (!object.Equals(Payload, other.Payload)) return false;
  1728. if(!repeatedChild_.Equals(other.repeatedChild_)) return false;
  1729. return true;
  1730. }
  1731. public override int GetHashCode() {
  1732. int hash = 1;
  1733. if (child_ != null) hash ^= Child.GetHashCode();
  1734. if (payload_ != null) hash ^= Payload.GetHashCode();
  1735. hash ^= repeatedChild_.GetHashCode();
  1736. return hash;
  1737. }
  1738. public override string ToString() {
  1739. return pb::JsonFormatter.Default.Format(this);
  1740. }
  1741. public void WriteTo(pb::CodedOutputStream output) {
  1742. if (child_ != null) {
  1743. output.WriteRawTag(10);
  1744. output.WriteMessage(Child);
  1745. }
  1746. if (payload_ != null) {
  1747. output.WriteRawTag(18);
  1748. output.WriteMessage(Payload);
  1749. }
  1750. repeatedChild_.WriteTo(output, _repeated_repeatedChild_codec);
  1751. }
  1752. public int CalculateSize() {
  1753. int size = 0;
  1754. if (child_ != null) {
  1755. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Child);
  1756. }
  1757. if (payload_ != null) {
  1758. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
  1759. }
  1760. size += repeatedChild_.CalculateSize(_repeated_repeatedChild_codec);
  1761. return size;
  1762. }
  1763. public void MergeFrom(NestedTestAllTypes other) {
  1764. if (other == null) {
  1765. return;
  1766. }
  1767. if (other.child_ != null) {
  1768. if (child_ == null) {
  1769. child_ = new global::Google.Protobuf.TestProtos.NestedTestAllTypes();
  1770. }
  1771. Child.MergeFrom(other.Child);
  1772. }
  1773. if (other.payload_ != null) {
  1774. if (payload_ == null) {
  1775. payload_ = new global::Google.Protobuf.TestProtos.TestAllTypes();
  1776. }
  1777. Payload.MergeFrom(other.Payload);
  1778. }
  1779. repeatedChild_.Add(other.repeatedChild_);
  1780. }
  1781. public void MergeFrom(pb::CodedInputStream input) {
  1782. uint tag;
  1783. while (input.ReadTag(out tag)) {
  1784. switch(tag) {
  1785. case 0:
  1786. throw pb::InvalidProtocolBufferException.InvalidTag();
  1787. default:
  1788. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1789. return;
  1790. }
  1791. break;
  1792. case 10: {
  1793. if (child_ == null) {
  1794. child_ = new global::Google.Protobuf.TestProtos.NestedTestAllTypes();
  1795. }
  1796. input.ReadMessage(child_);
  1797. break;
  1798. }
  1799. case 18: {
  1800. if (payload_ == null) {
  1801. payload_ = new global::Google.Protobuf.TestProtos.TestAllTypes();
  1802. }
  1803. input.ReadMessage(payload_);
  1804. break;
  1805. }
  1806. case 26: {
  1807. repeatedChild_.AddEntriesFrom(input, _repeated_repeatedChild_codec);
  1808. break;
  1809. }
  1810. }
  1811. }
  1812. }
  1813. }
  1814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1815. public sealed partial class TestDeprecatedFields : pb::IMessage<TestDeprecatedFields> {
  1816. private static readonly pb::MessageParser<TestDeprecatedFields> _parser = new pb::MessageParser<TestDeprecatedFields>(() => new TestDeprecatedFields());
  1817. public static pb::MessageParser<TestDeprecatedFields> Parser { get { return _parser; } }
  1818. private static readonly string[] _fieldNames = new string[] { "deprecated_int32" };
  1819. private static readonly uint[] _fieldTags = new uint[] { 8 };
  1820. public static pbd::MessageDescriptor Descriptor {
  1821. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[2]; }
  1822. }
  1823. public pb::FieldAccess.FieldAccessorTable Fields {
  1824. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable; }
  1825. }
  1826. private bool _frozen = false;
  1827. public bool IsFrozen { get { return _frozen; } }
  1828. public TestDeprecatedFields() {
  1829. OnConstruction();
  1830. }
  1831. partial void OnConstruction();
  1832. public TestDeprecatedFields(TestDeprecatedFields other) : this() {
  1833. deprecatedInt32_ = other.deprecatedInt32_;
  1834. }
  1835. public TestDeprecatedFields Clone() {
  1836. return new TestDeprecatedFields(this);
  1837. }
  1838. public void Freeze() {
  1839. if (IsFrozen) {
  1840. return;
  1841. }
  1842. _frozen = true;
  1843. }
  1844. public const int DeprecatedInt32FieldNumber = 1;
  1845. private int deprecatedInt32_;
  1846. [global::System.ObsoleteAttribute()]
  1847. public int DeprecatedInt32 {
  1848. get { return deprecatedInt32_; }
  1849. set {
  1850. pb::Freezable.CheckMutable(this);
  1851. deprecatedInt32_ = value;
  1852. }
  1853. }
  1854. public override bool Equals(object other) {
  1855. return Equals(other as TestDeprecatedFields);
  1856. }
  1857. public bool Equals(TestDeprecatedFields other) {
  1858. if (ReferenceEquals(other, null)) {
  1859. return false;
  1860. }
  1861. if (ReferenceEquals(other, this)) {
  1862. return true;
  1863. }
  1864. if (DeprecatedInt32 != other.DeprecatedInt32) return false;
  1865. return true;
  1866. }
  1867. public override int GetHashCode() {
  1868. int hash = 1;
  1869. if (DeprecatedInt32 != 0) hash ^= DeprecatedInt32.GetHashCode();
  1870. return hash;
  1871. }
  1872. public override string ToString() {
  1873. return pb::JsonFormatter.Default.Format(this);
  1874. }
  1875. public void WriteTo(pb::CodedOutputStream output) {
  1876. if (DeprecatedInt32 != 0) {
  1877. output.WriteRawTag(8);
  1878. output.WriteInt32(DeprecatedInt32);
  1879. }
  1880. }
  1881. public int CalculateSize() {
  1882. int size = 0;
  1883. if (DeprecatedInt32 != 0) {
  1884. size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeprecatedInt32);
  1885. }
  1886. return size;
  1887. }
  1888. public void MergeFrom(TestDeprecatedFields other) {
  1889. if (other == null) {
  1890. return;
  1891. }
  1892. if (other.DeprecatedInt32 != 0) {
  1893. DeprecatedInt32 = other.DeprecatedInt32;
  1894. }
  1895. }
  1896. public void MergeFrom(pb::CodedInputStream input) {
  1897. uint tag;
  1898. while (input.ReadTag(out tag)) {
  1899. switch(tag) {
  1900. case 0:
  1901. throw pb::InvalidProtocolBufferException.InvalidTag();
  1902. default:
  1903. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1904. return;
  1905. }
  1906. break;
  1907. case 8: {
  1908. DeprecatedInt32 = input.ReadInt32();
  1909. break;
  1910. }
  1911. }
  1912. }
  1913. }
  1914. }
  1915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1916. public sealed partial class ForeignMessage : pb::IMessage<ForeignMessage> {
  1917. private static readonly pb::MessageParser<ForeignMessage> _parser = new pb::MessageParser<ForeignMessage>(() => new ForeignMessage());
  1918. public static pb::MessageParser<ForeignMessage> Parser { get { return _parser; } }
  1919. private static readonly string[] _fieldNames = new string[] { "c" };
  1920. private static readonly uint[] _fieldTags = new uint[] { 8 };
  1921. public static pbd::MessageDescriptor Descriptor {
  1922. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[3]; }
  1923. }
  1924. public pb::FieldAccess.FieldAccessorTable Fields {
  1925. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; }
  1926. }
  1927. private bool _frozen = false;
  1928. public bool IsFrozen { get { return _frozen; } }
  1929. public ForeignMessage() {
  1930. OnConstruction();
  1931. }
  1932. partial void OnConstruction();
  1933. public ForeignMessage(ForeignMessage other) : this() {
  1934. c_ = other.c_;
  1935. }
  1936. public ForeignMessage Clone() {
  1937. return new ForeignMessage(this);
  1938. }
  1939. public void Freeze() {
  1940. if (IsFrozen) {
  1941. return;
  1942. }
  1943. _frozen = true;
  1944. }
  1945. public const int CFieldNumber = 1;
  1946. private int c_;
  1947. public int C {
  1948. get { return c_; }
  1949. set {
  1950. pb::Freezable.CheckMutable(this);
  1951. c_ = value;
  1952. }
  1953. }
  1954. public override bool Equals(object other) {
  1955. return Equals(other as ForeignMessage);
  1956. }
  1957. public bool Equals(ForeignMessage other) {
  1958. if (ReferenceEquals(other, null)) {
  1959. return false;
  1960. }
  1961. if (ReferenceEquals(other, this)) {
  1962. return true;
  1963. }
  1964. if (C != other.C) return false;
  1965. return true;
  1966. }
  1967. public override int GetHashCode() {
  1968. int hash = 1;
  1969. if (C != 0) hash ^= C.GetHashCode();
  1970. return hash;
  1971. }
  1972. public override string ToString() {
  1973. return pb::JsonFormatter.Default.Format(this);
  1974. }
  1975. public void WriteTo(pb::CodedOutputStream output) {
  1976. if (C != 0) {
  1977. output.WriteRawTag(8);
  1978. output.WriteInt32(C);
  1979. }
  1980. }
  1981. public int CalculateSize() {
  1982. int size = 0;
  1983. if (C != 0) {
  1984. size += 1 + pb::CodedOutputStream.ComputeInt32Size(C);
  1985. }
  1986. return size;
  1987. }
  1988. public void MergeFrom(ForeignMessage other) {
  1989. if (other == null) {
  1990. return;
  1991. }
  1992. if (other.C != 0) {
  1993. C = other.C;
  1994. }
  1995. }
  1996. public void MergeFrom(pb::CodedInputStream input) {
  1997. uint tag;
  1998. while (input.ReadTag(out tag)) {
  1999. switch(tag) {
  2000. case 0:
  2001. throw pb::InvalidProtocolBufferException.InvalidTag();
  2002. default:
  2003. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2004. return;
  2005. }
  2006. break;
  2007. case 8: {
  2008. C = input.ReadInt32();
  2009. break;
  2010. }
  2011. }
  2012. }
  2013. }
  2014. }
  2015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2016. public sealed partial class TestReservedFields : pb::IMessage<TestReservedFields> {
  2017. private static readonly pb::MessageParser<TestReservedFields> _parser = new pb::MessageParser<TestReservedFields>(() => new TestReservedFields());
  2018. public static pb::MessageParser<TestReservedFields> Parser { get { return _parser; } }
  2019. private static readonly string[] _fieldNames = new string[] { };
  2020. private static readonly uint[] _fieldTags = new uint[] { };
  2021. public static pbd::MessageDescriptor Descriptor {
  2022. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[4]; }
  2023. }
  2024. public pb::FieldAccess.FieldAccessorTable Fields {
  2025. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestReservedFields__FieldAccessorTable; }
  2026. }
  2027. private bool _frozen = false;
  2028. public bool IsFrozen { get { return _frozen; } }
  2029. public TestReservedFields() {
  2030. OnConstruction();
  2031. }
  2032. partial void OnConstruction();
  2033. public TestReservedFields(TestReservedFields other) : this() {
  2034. }
  2035. public TestReservedFields Clone() {
  2036. return new TestReservedFields(this);
  2037. }
  2038. public void Freeze() {
  2039. if (IsFrozen) {
  2040. return;
  2041. }
  2042. _frozen = true;
  2043. }
  2044. public override bool Equals(object other) {
  2045. return Equals(other as TestReservedFields);
  2046. }
  2047. public bool Equals(TestReservedFields other) {
  2048. if (ReferenceEquals(other, null)) {
  2049. return false;
  2050. }
  2051. if (ReferenceEquals(other, this)) {
  2052. return true;
  2053. }
  2054. return true;
  2055. }
  2056. public override int GetHashCode() {
  2057. int hash = 1;
  2058. return hash;
  2059. }
  2060. public override string ToString() {
  2061. return pb::JsonFormatter.Default.Format(this);
  2062. }
  2063. public void WriteTo(pb::CodedOutputStream output) {
  2064. }
  2065. public int CalculateSize() {
  2066. int size = 0;
  2067. return size;
  2068. }
  2069. public void MergeFrom(TestReservedFields other) {
  2070. if (other == null) {
  2071. return;
  2072. }
  2073. }
  2074. public void MergeFrom(pb::CodedInputStream input) {
  2075. uint tag;
  2076. while (input.ReadTag(out tag)) {
  2077. switch(tag) {
  2078. case 0:
  2079. throw pb::InvalidProtocolBufferException.InvalidTag();
  2080. default:
  2081. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2082. return;
  2083. }
  2084. break;
  2085. }
  2086. }
  2087. }
  2088. }
  2089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2090. public sealed partial class TestForeignNested : pb::IMessage<TestForeignNested> {
  2091. private static readonly pb::MessageParser<TestForeignNested> _parser = new pb::MessageParser<TestForeignNested>(() => new TestForeignNested());
  2092. public static pb::MessageParser<TestForeignNested> Parser { get { return _parser; } }
  2093. private static readonly string[] _fieldNames = new string[] { "foreign_nested" };
  2094. private static readonly uint[] _fieldTags = new uint[] { 10 };
  2095. public static pbd::MessageDescriptor Descriptor {
  2096. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[5]; }
  2097. }
  2098. public pb::FieldAccess.FieldAccessorTable Fields {
  2099. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; }
  2100. }
  2101. private bool _frozen = false;
  2102. public bool IsFrozen { get { return _frozen; } }
  2103. public TestForeignNested() {
  2104. OnConstruction();
  2105. }
  2106. partial void OnConstruction();
  2107. public TestForeignNested(TestForeignNested other) : this() {
  2108. ForeignNested = other.foreignNested_ != null ? other.ForeignNested.Clone() : null;
  2109. }
  2110. public TestForeignNested Clone() {
  2111. return new TestForeignNested(this);
  2112. }
  2113. public void Freeze() {
  2114. if (IsFrozen) {
  2115. return;
  2116. }
  2117. _frozen = true;
  2118. if (foreignNested_ != null) ForeignNested.Freeze();
  2119. }
  2120. public const int ForeignNestedFieldNumber = 1;
  2121. private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage foreignNested_;
  2122. public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
  2123. get { return foreignNested_; }
  2124. set {
  2125. pb::Freezable.CheckMutable(this);
  2126. foreignNested_ = value;
  2127. }
  2128. }
  2129. public override bool Equals(object other) {
  2130. return Equals(other as TestForeignNested);
  2131. }
  2132. public bool Equals(TestForeignNested other) {
  2133. if (ReferenceEquals(other, null)) {
  2134. return false;
  2135. }
  2136. if (ReferenceEquals(other, this)) {
  2137. return true;
  2138. }
  2139. if (!object.Equals(ForeignNested, other.ForeignNested)) return false;
  2140. return true;
  2141. }
  2142. public override int GetHashCode() {
  2143. int hash = 1;
  2144. if (foreignNested_ != null) hash ^= ForeignNested.GetHashCode();
  2145. return hash;
  2146. }
  2147. public override string ToString() {
  2148. return pb::JsonFormatter.Default.Format(this);
  2149. }
  2150. public void WriteTo(pb::CodedOutputStream output) {
  2151. if (foreignNested_ != null) {
  2152. output.WriteRawTag(10);
  2153. output.WriteMessage(ForeignNested);
  2154. }
  2155. }
  2156. public int CalculateSize() {
  2157. int size = 0;
  2158. if (foreignNested_ != null) {
  2159. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ForeignNested);
  2160. }
  2161. return size;
  2162. }
  2163. public void MergeFrom(TestForeignNested other) {
  2164. if (other == null) {
  2165. return;
  2166. }
  2167. if (other.foreignNested_ != null) {
  2168. if (foreignNested_ == null) {
  2169. foreignNested_ = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
  2170. }
  2171. ForeignNested.MergeFrom(other.ForeignNested);
  2172. }
  2173. }
  2174. public void MergeFrom(pb::CodedInputStream input) {
  2175. uint tag;
  2176. while (input.ReadTag(out tag)) {
  2177. switch(tag) {
  2178. case 0:
  2179. throw pb::InvalidProtocolBufferException.InvalidTag();
  2180. default:
  2181. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2182. return;
  2183. }
  2184. break;
  2185. case 10: {
  2186. if (foreignNested_ == null) {
  2187. foreignNested_ = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
  2188. }
  2189. input.ReadMessage(foreignNested_);
  2190. break;
  2191. }
  2192. }
  2193. }
  2194. }
  2195. }
  2196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2197. public sealed partial class TestReallyLargeTagNumber : pb::IMessage<TestReallyLargeTagNumber> {
  2198. private static readonly pb::MessageParser<TestReallyLargeTagNumber> _parser = new pb::MessageParser<TestReallyLargeTagNumber>(() => new TestReallyLargeTagNumber());
  2199. public static pb::MessageParser<TestReallyLargeTagNumber> Parser { get { return _parser; } }
  2200. private static readonly string[] _fieldNames = new string[] { "a", "bb" };
  2201. private static readonly uint[] _fieldTags = new uint[] { 8, 2147483640 };
  2202. public static pbd::MessageDescriptor Descriptor {
  2203. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[6]; }
  2204. }
  2205. public pb::FieldAccess.FieldAccessorTable Fields {
  2206. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; }
  2207. }
  2208. private bool _frozen = false;
  2209. public bool IsFrozen { get { return _frozen; } }
  2210. public TestReallyLargeTagNumber() {
  2211. OnConstruction();
  2212. }
  2213. partial void OnConstruction();
  2214. public TestReallyLargeTagNumber(TestReallyLargeTagNumber other) : this() {
  2215. a_ = other.a_;
  2216. bb_ = other.bb_;
  2217. }
  2218. public TestReallyLargeTagNumber Clone() {
  2219. return new TestReallyLargeTagNumber(this);
  2220. }
  2221. public void Freeze() {
  2222. if (IsFrozen) {
  2223. return;
  2224. }
  2225. _frozen = true;
  2226. }
  2227. public const int AFieldNumber = 1;
  2228. private int a_;
  2229. public int A {
  2230. get { return a_; }
  2231. set {
  2232. pb::Freezable.CheckMutable(this);
  2233. a_ = value;
  2234. }
  2235. }
  2236. public const int BbFieldNumber = 268435455;
  2237. private int bb_;
  2238. public int Bb {
  2239. get { return bb_; }
  2240. set {
  2241. pb::Freezable.CheckMutable(this);
  2242. bb_ = value;
  2243. }
  2244. }
  2245. public override bool Equals(object other) {
  2246. return Equals(other as TestReallyLargeTagNumber);
  2247. }
  2248. public bool Equals(TestReallyLargeTagNumber other) {
  2249. if (ReferenceEquals(other, null)) {
  2250. return false;
  2251. }
  2252. if (ReferenceEquals(other, this)) {
  2253. return true;
  2254. }
  2255. if (A != other.A) return false;
  2256. if (Bb != other.Bb) return false;
  2257. return true;
  2258. }
  2259. public override int GetHashCode() {
  2260. int hash = 1;
  2261. if (A != 0) hash ^= A.GetHashCode();
  2262. if (Bb != 0) hash ^= Bb.GetHashCode();
  2263. return hash;
  2264. }
  2265. public override string ToString() {
  2266. return pb::JsonFormatter.Default.Format(this);
  2267. }
  2268. public void WriteTo(pb::CodedOutputStream output) {
  2269. if (A != 0) {
  2270. output.WriteRawTag(8);
  2271. output.WriteInt32(A);
  2272. }
  2273. if (Bb != 0) {
  2274. output.WriteRawTag(248, 255, 255, 255, 7);
  2275. output.WriteInt32(Bb);
  2276. }
  2277. }
  2278. public int CalculateSize() {
  2279. int size = 0;
  2280. if (A != 0) {
  2281. size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
  2282. }
  2283. if (Bb != 0) {
  2284. size += 5 + pb::CodedOutputStream.ComputeInt32Size(Bb);
  2285. }
  2286. return size;
  2287. }
  2288. public void MergeFrom(TestReallyLargeTagNumber other) {
  2289. if (other == null) {
  2290. return;
  2291. }
  2292. if (other.A != 0) {
  2293. A = other.A;
  2294. }
  2295. if (other.Bb != 0) {
  2296. Bb = other.Bb;
  2297. }
  2298. }
  2299. public void MergeFrom(pb::CodedInputStream input) {
  2300. uint tag;
  2301. while (input.ReadTag(out tag)) {
  2302. switch(tag) {
  2303. case 0:
  2304. throw pb::InvalidProtocolBufferException.InvalidTag();
  2305. default:
  2306. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2307. return;
  2308. }
  2309. break;
  2310. case 8: {
  2311. A = input.ReadInt32();
  2312. break;
  2313. }
  2314. case 2147483640: {
  2315. Bb = input.ReadInt32();
  2316. break;
  2317. }
  2318. }
  2319. }
  2320. }
  2321. }
  2322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2323. public sealed partial class TestRecursiveMessage : pb::IMessage<TestRecursiveMessage> {
  2324. private static readonly pb::MessageParser<TestRecursiveMessage> _parser = new pb::MessageParser<TestRecursiveMessage>(() => new TestRecursiveMessage());
  2325. public static pb::MessageParser<TestRecursiveMessage> Parser { get { return _parser; } }
  2326. private static readonly string[] _fieldNames = new string[] { "a", "i" };
  2327. private static readonly uint[] _fieldTags = new uint[] { 10, 16 };
  2328. public static pbd::MessageDescriptor Descriptor {
  2329. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[7]; }
  2330. }
  2331. public pb::FieldAccess.FieldAccessorTable Fields {
  2332. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; }
  2333. }
  2334. private bool _frozen = false;
  2335. public bool IsFrozen { get { return _frozen; } }
  2336. public TestRecursiveMessage() {
  2337. OnConstruction();
  2338. }
  2339. partial void OnConstruction();
  2340. public TestRecursiveMessage(TestRecursiveMessage other) : this() {
  2341. A = other.a_ != null ? other.A.Clone() : null;
  2342. i_ = other.i_;
  2343. }
  2344. public TestRecursiveMessage Clone() {
  2345. return new TestRecursiveMessage(this);
  2346. }
  2347. public void Freeze() {
  2348. if (IsFrozen) {
  2349. return;
  2350. }
  2351. _frozen = true;
  2352. if (a_ != null) A.Freeze();
  2353. }
  2354. public const int AFieldNumber = 1;
  2355. private global::Google.Protobuf.TestProtos.TestRecursiveMessage a_;
  2356. public global::Google.Protobuf.TestProtos.TestRecursiveMessage A {
  2357. get { return a_; }
  2358. set {
  2359. pb::Freezable.CheckMutable(this);
  2360. a_ = value;
  2361. }
  2362. }
  2363. public const int IFieldNumber = 2;
  2364. private int i_;
  2365. public int I {
  2366. get { return i_; }
  2367. set {
  2368. pb::Freezable.CheckMutable(this);
  2369. i_ = value;
  2370. }
  2371. }
  2372. public override bool Equals(object other) {
  2373. return Equals(other as TestRecursiveMessage);
  2374. }
  2375. public bool Equals(TestRecursiveMessage other) {
  2376. if (ReferenceEquals(other, null)) {
  2377. return false;
  2378. }
  2379. if (ReferenceEquals(other, this)) {
  2380. return true;
  2381. }
  2382. if (!object.Equals(A, other.A)) return false;
  2383. if (I != other.I) return false;
  2384. return true;
  2385. }
  2386. public override int GetHashCode() {
  2387. int hash = 1;
  2388. if (a_ != null) hash ^= A.GetHashCode();
  2389. if (I != 0) hash ^= I.GetHashCode();
  2390. return hash;
  2391. }
  2392. public override string ToString() {
  2393. return pb::JsonFormatter.Default.Format(this);
  2394. }
  2395. public void WriteTo(pb::CodedOutputStream output) {
  2396. if (a_ != null) {
  2397. output.WriteRawTag(10);
  2398. output.WriteMessage(A);
  2399. }
  2400. if (I != 0) {
  2401. output.WriteRawTag(16);
  2402. output.WriteInt32(I);
  2403. }
  2404. }
  2405. public int CalculateSize() {
  2406. int size = 0;
  2407. if (a_ != null) {
  2408. size += 1 + pb::CodedOutputStream.ComputeMessageSize(A);
  2409. }
  2410. if (I != 0) {
  2411. size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
  2412. }
  2413. return size;
  2414. }
  2415. public void MergeFrom(TestRecursiveMessage other) {
  2416. if (other == null) {
  2417. return;
  2418. }
  2419. if (other.a_ != null) {
  2420. if (a_ == null) {
  2421. a_ = new global::Google.Protobuf.TestProtos.TestRecursiveMessage();
  2422. }
  2423. A.MergeFrom(other.A);
  2424. }
  2425. if (other.I != 0) {
  2426. I = other.I;
  2427. }
  2428. }
  2429. public void MergeFrom(pb::CodedInputStream input) {
  2430. uint tag;
  2431. while (input.ReadTag(out tag)) {
  2432. switch(tag) {
  2433. case 0:
  2434. throw pb::InvalidProtocolBufferException.InvalidTag();
  2435. default:
  2436. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2437. return;
  2438. }
  2439. break;
  2440. case 10: {
  2441. if (a_ == null) {
  2442. a_ = new global::Google.Protobuf.TestProtos.TestRecursiveMessage();
  2443. }
  2444. input.ReadMessage(a_);
  2445. break;
  2446. }
  2447. case 16: {
  2448. I = input.ReadInt32();
  2449. break;
  2450. }
  2451. }
  2452. }
  2453. }
  2454. }
  2455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2456. public sealed partial class TestMutualRecursionA : pb::IMessage<TestMutualRecursionA> {
  2457. private static readonly pb::MessageParser<TestMutualRecursionA> _parser = new pb::MessageParser<TestMutualRecursionA>(() => new TestMutualRecursionA());
  2458. public static pb::MessageParser<TestMutualRecursionA> Parser { get { return _parser; } }
  2459. private static readonly string[] _fieldNames = new string[] { "bb" };
  2460. private static readonly uint[] _fieldTags = new uint[] { 10 };
  2461. public static pbd::MessageDescriptor Descriptor {
  2462. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[8]; }
  2463. }
  2464. public pb::FieldAccess.FieldAccessorTable Fields {
  2465. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; }
  2466. }
  2467. private bool _frozen = false;
  2468. public bool IsFrozen { get { return _frozen; } }
  2469. public TestMutualRecursionA() {
  2470. OnConstruction();
  2471. }
  2472. partial void OnConstruction();
  2473. public TestMutualRecursionA(TestMutualRecursionA other) : this() {
  2474. Bb = other.bb_ != null ? other.Bb.Clone() : null;
  2475. }
  2476. public TestMutualRecursionA Clone() {
  2477. return new TestMutualRecursionA(this);
  2478. }
  2479. public void Freeze() {
  2480. if (IsFrozen) {
  2481. return;
  2482. }
  2483. _frozen = true;
  2484. if (bb_ != null) Bb.Freeze();
  2485. }
  2486. public const int BbFieldNumber = 1;
  2487. private global::Google.Protobuf.TestProtos.TestMutualRecursionB bb_;
  2488. public global::Google.Protobuf.TestProtos.TestMutualRecursionB Bb {
  2489. get { return bb_; }
  2490. set {
  2491. pb::Freezable.CheckMutable(this);
  2492. bb_ = value;
  2493. }
  2494. }
  2495. public override bool Equals(object other) {
  2496. return Equals(other as TestMutualRecursionA);
  2497. }
  2498. public bool Equals(TestMutualRecursionA other) {
  2499. if (ReferenceEquals(other, null)) {
  2500. return false;
  2501. }
  2502. if (ReferenceEquals(other, this)) {
  2503. return true;
  2504. }
  2505. if (!object.Equals(Bb, other.Bb)) return false;
  2506. return true;
  2507. }
  2508. public override int GetHashCode() {
  2509. int hash = 1;
  2510. if (bb_ != null) hash ^= Bb.GetHashCode();
  2511. return hash;
  2512. }
  2513. public override string ToString() {
  2514. return pb::JsonFormatter.Default.Format(this);
  2515. }
  2516. public void WriteTo(pb::CodedOutputStream output) {
  2517. if (bb_ != null) {
  2518. output.WriteRawTag(10);
  2519. output.WriteMessage(Bb);
  2520. }
  2521. }
  2522. public int CalculateSize() {
  2523. int size = 0;
  2524. if (bb_ != null) {
  2525. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bb);
  2526. }
  2527. return size;
  2528. }
  2529. public void MergeFrom(TestMutualRecursionA other) {
  2530. if (other == null) {
  2531. return;
  2532. }
  2533. if (other.bb_ != null) {
  2534. if (bb_ == null) {
  2535. bb_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionB();
  2536. }
  2537. Bb.MergeFrom(other.Bb);
  2538. }
  2539. }
  2540. public void MergeFrom(pb::CodedInputStream input) {
  2541. uint tag;
  2542. while (input.ReadTag(out tag)) {
  2543. switch(tag) {
  2544. case 0:
  2545. throw pb::InvalidProtocolBufferException.InvalidTag();
  2546. default:
  2547. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2548. return;
  2549. }
  2550. break;
  2551. case 10: {
  2552. if (bb_ == null) {
  2553. bb_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionB();
  2554. }
  2555. input.ReadMessage(bb_);
  2556. break;
  2557. }
  2558. }
  2559. }
  2560. }
  2561. }
  2562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2563. public sealed partial class TestMutualRecursionB : pb::IMessage<TestMutualRecursionB> {
  2564. private static readonly pb::MessageParser<TestMutualRecursionB> _parser = new pb::MessageParser<TestMutualRecursionB>(() => new TestMutualRecursionB());
  2565. public static pb::MessageParser<TestMutualRecursionB> Parser { get { return _parser; } }
  2566. private static readonly string[] _fieldNames = new string[] { "a", "optional_int32" };
  2567. private static readonly uint[] _fieldTags = new uint[] { 10, 16 };
  2568. public static pbd::MessageDescriptor Descriptor {
  2569. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[9]; }
  2570. }
  2571. public pb::FieldAccess.FieldAccessorTable Fields {
  2572. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; }
  2573. }
  2574. private bool _frozen = false;
  2575. public bool IsFrozen { get { return _frozen; } }
  2576. public TestMutualRecursionB() {
  2577. OnConstruction();
  2578. }
  2579. partial void OnConstruction();
  2580. public TestMutualRecursionB(TestMutualRecursionB other) : this() {
  2581. A = other.a_ != null ? other.A.Clone() : null;
  2582. optionalInt32_ = other.optionalInt32_;
  2583. }
  2584. public TestMutualRecursionB Clone() {
  2585. return new TestMutualRecursionB(this);
  2586. }
  2587. public void Freeze() {
  2588. if (IsFrozen) {
  2589. return;
  2590. }
  2591. _frozen = true;
  2592. if (a_ != null) A.Freeze();
  2593. }
  2594. public const int AFieldNumber = 1;
  2595. private global::Google.Protobuf.TestProtos.TestMutualRecursionA a_;
  2596. public global::Google.Protobuf.TestProtos.TestMutualRecursionA A {
  2597. get { return a_; }
  2598. set {
  2599. pb::Freezable.CheckMutable(this);
  2600. a_ = value;
  2601. }
  2602. }
  2603. public const int OptionalInt32FieldNumber = 2;
  2604. private int optionalInt32_;
  2605. public int OptionalInt32 {
  2606. get { return optionalInt32_; }
  2607. set {
  2608. pb::Freezable.CheckMutable(this);
  2609. optionalInt32_ = value;
  2610. }
  2611. }
  2612. public override bool Equals(object other) {
  2613. return Equals(other as TestMutualRecursionB);
  2614. }
  2615. public bool Equals(TestMutualRecursionB other) {
  2616. if (ReferenceEquals(other, null)) {
  2617. return false;
  2618. }
  2619. if (ReferenceEquals(other, this)) {
  2620. return true;
  2621. }
  2622. if (!object.Equals(A, other.A)) return false;
  2623. if (OptionalInt32 != other.OptionalInt32) return false;
  2624. return true;
  2625. }
  2626. public override int GetHashCode() {
  2627. int hash = 1;
  2628. if (a_ != null) hash ^= A.GetHashCode();
  2629. if (OptionalInt32 != 0) hash ^= OptionalInt32.GetHashCode();
  2630. return hash;
  2631. }
  2632. public override string ToString() {
  2633. return pb::JsonFormatter.Default.Format(this);
  2634. }
  2635. public void WriteTo(pb::CodedOutputStream output) {
  2636. if (a_ != null) {
  2637. output.WriteRawTag(10);
  2638. output.WriteMessage(A);
  2639. }
  2640. if (OptionalInt32 != 0) {
  2641. output.WriteRawTag(16);
  2642. output.WriteInt32(OptionalInt32);
  2643. }
  2644. }
  2645. public int CalculateSize() {
  2646. int size = 0;
  2647. if (a_ != null) {
  2648. size += 1 + pb::CodedOutputStream.ComputeMessageSize(A);
  2649. }
  2650. if (OptionalInt32 != 0) {
  2651. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
  2652. }
  2653. return size;
  2654. }
  2655. public void MergeFrom(TestMutualRecursionB other) {
  2656. if (other == null) {
  2657. return;
  2658. }
  2659. if (other.a_ != null) {
  2660. if (a_ == null) {
  2661. a_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionA();
  2662. }
  2663. A.MergeFrom(other.A);
  2664. }
  2665. if (other.OptionalInt32 != 0) {
  2666. OptionalInt32 = other.OptionalInt32;
  2667. }
  2668. }
  2669. public void MergeFrom(pb::CodedInputStream input) {
  2670. uint tag;
  2671. while (input.ReadTag(out tag)) {
  2672. switch(tag) {
  2673. case 0:
  2674. throw pb::InvalidProtocolBufferException.InvalidTag();
  2675. default:
  2676. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2677. return;
  2678. }
  2679. break;
  2680. case 10: {
  2681. if (a_ == null) {
  2682. a_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionA();
  2683. }
  2684. input.ReadMessage(a_);
  2685. break;
  2686. }
  2687. case 16: {
  2688. OptionalInt32 = input.ReadInt32();
  2689. break;
  2690. }
  2691. }
  2692. }
  2693. }
  2694. }
  2695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2696. public sealed partial class TestCamelCaseFieldNames : pb::IMessage<TestCamelCaseFieldNames> {
  2697. private static readonly pb::MessageParser<TestCamelCaseFieldNames> _parser = new pb::MessageParser<TestCamelCaseFieldNames>(() => new TestCamelCaseFieldNames());
  2698. public static pb::MessageParser<TestCamelCaseFieldNames> Parser { get { return _parser; } }
  2699. private static readonly string[] _fieldNames = new string[] { "EnumField", "MessageField", "PrimitiveField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedPrimitiveField", "RepeatedStringField", "StringField" };
  2700. private static readonly uint[] _fieldTags = new uint[] { 24, 34, 8, 74, 82, 58, 66, 18 };
  2701. public static pbd::MessageDescriptor Descriptor {
  2702. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[10]; }
  2703. }
  2704. public pb::FieldAccess.FieldAccessorTable Fields {
  2705. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; }
  2706. }
  2707. private bool _frozen = false;
  2708. public bool IsFrozen { get { return _frozen; } }
  2709. public TestCamelCaseFieldNames() {
  2710. OnConstruction();
  2711. }
  2712. partial void OnConstruction();
  2713. public TestCamelCaseFieldNames(TestCamelCaseFieldNames other) : this() {
  2714. primitiveField_ = other.primitiveField_;
  2715. stringField_ = other.stringField_;
  2716. enumField_ = other.enumField_;
  2717. MessageField = other.messageField_ != null ? other.MessageField.Clone() : null;
  2718. repeatedPrimitiveField_ = other.repeatedPrimitiveField_.Clone();
  2719. repeatedStringField_ = other.repeatedStringField_.Clone();
  2720. repeatedEnumField_ = other.repeatedEnumField_.Clone();
  2721. repeatedMessageField_ = other.repeatedMessageField_.Clone();
  2722. }
  2723. public TestCamelCaseFieldNames Clone() {
  2724. return new TestCamelCaseFieldNames(this);
  2725. }
  2726. public void Freeze() {
  2727. if (IsFrozen) {
  2728. return;
  2729. }
  2730. _frozen = true;
  2731. if (messageField_ != null) MessageField.Freeze();
  2732. repeatedPrimitiveField_.Freeze();
  2733. repeatedStringField_.Freeze();
  2734. repeatedEnumField_.Freeze();
  2735. repeatedMessageField_.Freeze();
  2736. }
  2737. public const int PrimitiveFieldFieldNumber = 1;
  2738. private int primitiveField_;
  2739. public int PrimitiveField {
  2740. get { return primitiveField_; }
  2741. set {
  2742. pb::Freezable.CheckMutable(this);
  2743. primitiveField_ = value;
  2744. }
  2745. }
  2746. public const int StringFieldFieldNumber = 2;
  2747. private string stringField_ = "";
  2748. public string StringField {
  2749. get { return stringField_; }
  2750. set {
  2751. pb::Freezable.CheckMutable(this);
  2752. stringField_ = value ?? "";
  2753. }
  2754. }
  2755. public const int EnumFieldFieldNumber = 3;
  2756. private global::Google.Protobuf.TestProtos.ForeignEnum enumField_ = global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED;
  2757. public global::Google.Protobuf.TestProtos.ForeignEnum EnumField {
  2758. get { return enumField_; }
  2759. set {
  2760. pb::Freezable.CheckMutable(this);
  2761. enumField_ = value;
  2762. }
  2763. }
  2764. public const int MessageFieldFieldNumber = 4;
  2765. private global::Google.Protobuf.TestProtos.ForeignMessage messageField_;
  2766. public global::Google.Protobuf.TestProtos.ForeignMessage MessageField {
  2767. get { return messageField_; }
  2768. set {
  2769. pb::Freezable.CheckMutable(this);
  2770. messageField_ = value;
  2771. }
  2772. }
  2773. public const int RepeatedPrimitiveFieldFieldNumber = 7;
  2774. private static readonly pb::FieldCodec<int> _repeated_repeatedPrimitiveField_codec
  2775. = pb::FieldCodec.ForInt32(58);
  2776. private readonly pbc::RepeatedField<int> repeatedPrimitiveField_ = new pbc::RepeatedField<int>();
  2777. public pbc::RepeatedField<int> RepeatedPrimitiveField {
  2778. get { return repeatedPrimitiveField_; }
  2779. }
  2780. public const int RepeatedStringFieldFieldNumber = 8;
  2781. private static readonly pb::FieldCodec<string> _repeated_repeatedStringField_codec
  2782. = pb::FieldCodec.ForString(66);
  2783. private readonly pbc::RepeatedField<string> repeatedStringField_ = new pbc::RepeatedField<string>();
  2784. public pbc::RepeatedField<string> RepeatedStringField {
  2785. get { return repeatedStringField_; }
  2786. }
  2787. public const int RepeatedEnumFieldFieldNumber = 9;
  2788. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_repeatedEnumField_codec
  2789. = pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x);private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> repeatedEnumField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum>();
  2790. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> RepeatedEnumField {
  2791. get { return repeatedEnumField_; }
  2792. }
  2793. public const int RepeatedMessageFieldFieldNumber = 10;
  2794. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignMessage> _repeated_repeatedMessageField_codec
  2795. = pb::FieldCodec.ForMessage(82, global::Google.Protobuf.TestProtos.ForeignMessage.Parser);
  2796. private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage> repeatedMessageField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage>();
  2797. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage> RepeatedMessageField {
  2798. get { return repeatedMessageField_; }
  2799. }
  2800. public override bool Equals(object other) {
  2801. return Equals(other as TestCamelCaseFieldNames);
  2802. }
  2803. public bool Equals(TestCamelCaseFieldNames other) {
  2804. if (ReferenceEquals(other, null)) {
  2805. return false;
  2806. }
  2807. if (ReferenceEquals(other, this)) {
  2808. return true;
  2809. }
  2810. if (PrimitiveField != other.PrimitiveField) return false;
  2811. if (StringField != other.StringField) return false;
  2812. if (EnumField != other.EnumField) return false;
  2813. if (!object.Equals(MessageField, other.MessageField)) return false;
  2814. if(!repeatedPrimitiveField_.Equals(other.repeatedPrimitiveField_)) return false;
  2815. if(!repeatedStringField_.Equals(other.repeatedStringField_)) return false;
  2816. if(!repeatedEnumField_.Equals(other.repeatedEnumField_)) return false;
  2817. if(!repeatedMessageField_.Equals(other.repeatedMessageField_)) return false;
  2818. return true;
  2819. }
  2820. public override int GetHashCode() {
  2821. int hash = 1;
  2822. if (PrimitiveField != 0) hash ^= PrimitiveField.GetHashCode();
  2823. if (StringField.Length != 0) hash ^= StringField.GetHashCode();
  2824. if (EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) hash ^= EnumField.GetHashCode();
  2825. if (messageField_ != null) hash ^= MessageField.GetHashCode();
  2826. hash ^= repeatedPrimitiveField_.GetHashCode();
  2827. hash ^= repeatedStringField_.GetHashCode();
  2828. hash ^= repeatedEnumField_.GetHashCode();
  2829. hash ^= repeatedMessageField_.GetHashCode();
  2830. return hash;
  2831. }
  2832. public override string ToString() {
  2833. return pb::JsonFormatter.Default.Format(this);
  2834. }
  2835. public void WriteTo(pb::CodedOutputStream output) {
  2836. if (PrimitiveField != 0) {
  2837. output.WriteRawTag(8);
  2838. output.WriteInt32(PrimitiveField);
  2839. }
  2840. if (StringField.Length != 0) {
  2841. output.WriteRawTag(18);
  2842. output.WriteString(StringField);
  2843. }
  2844. if (EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) {
  2845. output.WriteRawTag(24);
  2846. output.WriteEnum((int) EnumField);
  2847. }
  2848. if (messageField_ != null) {
  2849. output.WriteRawTag(34);
  2850. output.WriteMessage(MessageField);
  2851. }
  2852. repeatedPrimitiveField_.WriteTo(output, _repeated_repeatedPrimitiveField_codec);
  2853. repeatedStringField_.WriteTo(output, _repeated_repeatedStringField_codec);
  2854. repeatedEnumField_.WriteTo(output, _repeated_repeatedEnumField_codec);
  2855. repeatedMessageField_.WriteTo(output, _repeated_repeatedMessageField_codec);
  2856. }
  2857. public int CalculateSize() {
  2858. int size = 0;
  2859. if (PrimitiveField != 0) {
  2860. size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveField);
  2861. }
  2862. if (StringField.Length != 0) {
  2863. size += 1 + pb::CodedOutputStream.ComputeStringSize(StringField);
  2864. }
  2865. if (EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) {
  2866. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumField);
  2867. }
  2868. if (messageField_ != null) {
  2869. size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageField);
  2870. }
  2871. size += repeatedPrimitiveField_.CalculateSize(_repeated_repeatedPrimitiveField_codec);
  2872. size += repeatedStringField_.CalculateSize(_repeated_repeatedStringField_codec);
  2873. size += repeatedEnumField_.CalculateSize(_repeated_repeatedEnumField_codec);
  2874. size += repeatedMessageField_.CalculateSize(_repeated_repeatedMessageField_codec);
  2875. return size;
  2876. }
  2877. public void MergeFrom(TestCamelCaseFieldNames other) {
  2878. if (other == null) {
  2879. return;
  2880. }
  2881. if (other.PrimitiveField != 0) {
  2882. PrimitiveField = other.PrimitiveField;
  2883. }
  2884. if (other.StringField.Length != 0) {
  2885. StringField = other.StringField;
  2886. }
  2887. if (other.EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) {
  2888. EnumField = other.EnumField;
  2889. }
  2890. if (other.messageField_ != null) {
  2891. if (messageField_ == null) {
  2892. messageField_ = new global::Google.Protobuf.TestProtos.ForeignMessage();
  2893. }
  2894. MessageField.MergeFrom(other.MessageField);
  2895. }
  2896. repeatedPrimitiveField_.Add(other.repeatedPrimitiveField_);
  2897. repeatedStringField_.Add(other.repeatedStringField_);
  2898. repeatedEnumField_.Add(other.repeatedEnumField_);
  2899. repeatedMessageField_.Add(other.repeatedMessageField_);
  2900. }
  2901. public void MergeFrom(pb::CodedInputStream input) {
  2902. uint tag;
  2903. while (input.ReadTag(out tag)) {
  2904. switch(tag) {
  2905. case 0:
  2906. throw pb::InvalidProtocolBufferException.InvalidTag();
  2907. default:
  2908. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2909. return;
  2910. }
  2911. break;
  2912. case 8: {
  2913. PrimitiveField = input.ReadInt32();
  2914. break;
  2915. }
  2916. case 18: {
  2917. StringField = input.ReadString();
  2918. break;
  2919. }
  2920. case 24: {
  2921. enumField_ = (global::Google.Protobuf.TestProtos.ForeignEnum) input.ReadEnum();
  2922. break;
  2923. }
  2924. case 34: {
  2925. if (messageField_ == null) {
  2926. messageField_ = new global::Google.Protobuf.TestProtos.ForeignMessage();
  2927. }
  2928. input.ReadMessage(messageField_);
  2929. break;
  2930. }
  2931. case 58:
  2932. case 56: {
  2933. repeatedPrimitiveField_.AddEntriesFrom(input, _repeated_repeatedPrimitiveField_codec);
  2934. break;
  2935. }
  2936. case 66: {
  2937. repeatedStringField_.AddEntriesFrom(input, _repeated_repeatedStringField_codec);
  2938. break;
  2939. }
  2940. case 74:
  2941. case 72: {
  2942. repeatedEnumField_.AddEntriesFrom(input, _repeated_repeatedEnumField_codec);
  2943. break;
  2944. }
  2945. case 82: {
  2946. repeatedMessageField_.AddEntriesFrom(input, _repeated_repeatedMessageField_codec);
  2947. break;
  2948. }
  2949. }
  2950. }
  2951. }
  2952. }
  2953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2954. public sealed partial class TestFieldOrderings : pb::IMessage<TestFieldOrderings> {
  2955. private static readonly pb::MessageParser<TestFieldOrderings> _parser = new pb::MessageParser<TestFieldOrderings>(() => new TestFieldOrderings());
  2956. public static pb::MessageParser<TestFieldOrderings> Parser { get { return _parser; } }
  2957. private static readonly string[] _fieldNames = new string[] { "my_float", "my_int", "my_string", "single_nested_message" };
  2958. private static readonly uint[] _fieldTags = new uint[] { 813, 8, 90, 1602 };
  2959. public static pbd::MessageDescriptor Descriptor {
  2960. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[11]; }
  2961. }
  2962. public pb::FieldAccess.FieldAccessorTable Fields {
  2963. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; }
  2964. }
  2965. private bool _frozen = false;
  2966. public bool IsFrozen { get { return _frozen; } }
  2967. public TestFieldOrderings() {
  2968. OnConstruction();
  2969. }
  2970. partial void OnConstruction();
  2971. public TestFieldOrderings(TestFieldOrderings other) : this() {
  2972. myString_ = other.myString_;
  2973. myInt_ = other.myInt_;
  2974. myFloat_ = other.myFloat_;
  2975. SingleNestedMessage = other.singleNestedMessage_ != null ? other.SingleNestedMessage.Clone() : null;
  2976. }
  2977. public TestFieldOrderings Clone() {
  2978. return new TestFieldOrderings(this);
  2979. }
  2980. public void Freeze() {
  2981. if (IsFrozen) {
  2982. return;
  2983. }
  2984. _frozen = true;
  2985. if (singleNestedMessage_ != null) SingleNestedMessage.Freeze();
  2986. }
  2987. public const int MyStringFieldNumber = 11;
  2988. private string myString_ = "";
  2989. public string MyString {
  2990. get { return myString_; }
  2991. set {
  2992. pb::Freezable.CheckMutable(this);
  2993. myString_ = value ?? "";
  2994. }
  2995. }
  2996. public const int MyIntFieldNumber = 1;
  2997. private long myInt_;
  2998. public long MyInt {
  2999. get { return myInt_; }
  3000. set {
  3001. pb::Freezable.CheckMutable(this);
  3002. myInt_ = value;
  3003. }
  3004. }
  3005. public const int MyFloatFieldNumber = 101;
  3006. private float myFloat_;
  3007. public float MyFloat {
  3008. get { return myFloat_; }
  3009. set {
  3010. pb::Freezable.CheckMutable(this);
  3011. myFloat_ = value;
  3012. }
  3013. }
  3014. public const int SingleNestedMessageFieldNumber = 200;
  3015. private global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage singleNestedMessage_;
  3016. public global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage SingleNestedMessage {
  3017. get { return singleNestedMessage_; }
  3018. set {
  3019. pb::Freezable.CheckMutable(this);
  3020. singleNestedMessage_ = value;
  3021. }
  3022. }
  3023. public override bool Equals(object other) {
  3024. return Equals(other as TestFieldOrderings);
  3025. }
  3026. public bool Equals(TestFieldOrderings other) {
  3027. if (ReferenceEquals(other, null)) {
  3028. return false;
  3029. }
  3030. if (ReferenceEquals(other, this)) {
  3031. return true;
  3032. }
  3033. if (MyString != other.MyString) return false;
  3034. if (MyInt != other.MyInt) return false;
  3035. if (MyFloat != other.MyFloat) return false;
  3036. if (!object.Equals(SingleNestedMessage, other.SingleNestedMessage)) return false;
  3037. return true;
  3038. }
  3039. public override int GetHashCode() {
  3040. int hash = 1;
  3041. if (MyString.Length != 0) hash ^= MyString.GetHashCode();
  3042. if (MyInt != 0L) hash ^= MyInt.GetHashCode();
  3043. if (MyFloat != 0F) hash ^= MyFloat.GetHashCode();
  3044. if (singleNestedMessage_ != null) hash ^= SingleNestedMessage.GetHashCode();
  3045. return hash;
  3046. }
  3047. public override string ToString() {
  3048. return pb::JsonFormatter.Default.Format(this);
  3049. }
  3050. public void WriteTo(pb::CodedOutputStream output) {
  3051. if (MyInt != 0L) {
  3052. output.WriteRawTag(8);
  3053. output.WriteInt64(MyInt);
  3054. }
  3055. if (MyString.Length != 0) {
  3056. output.WriteRawTag(90);
  3057. output.WriteString(MyString);
  3058. }
  3059. if (MyFloat != 0F) {
  3060. output.WriteRawTag(173, 6);
  3061. output.WriteFloat(MyFloat);
  3062. }
  3063. if (singleNestedMessage_ != null) {
  3064. output.WriteRawTag(194, 12);
  3065. output.WriteMessage(SingleNestedMessage);
  3066. }
  3067. }
  3068. public int CalculateSize() {
  3069. int size = 0;
  3070. if (MyString.Length != 0) {
  3071. size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
  3072. }
  3073. if (MyInt != 0L) {
  3074. size += 1 + pb::CodedOutputStream.ComputeInt64Size(MyInt);
  3075. }
  3076. if (MyFloat != 0F) {
  3077. size += 2 + 4;
  3078. }
  3079. if (singleNestedMessage_ != null) {
  3080. size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleNestedMessage);
  3081. }
  3082. return size;
  3083. }
  3084. public void MergeFrom(TestFieldOrderings other) {
  3085. if (other == null) {
  3086. return;
  3087. }
  3088. if (other.MyString.Length != 0) {
  3089. MyString = other.MyString;
  3090. }
  3091. if (other.MyInt != 0L) {
  3092. MyInt = other.MyInt;
  3093. }
  3094. if (other.MyFloat != 0F) {
  3095. MyFloat = other.MyFloat;
  3096. }
  3097. if (other.singleNestedMessage_ != null) {
  3098. if (singleNestedMessage_ == null) {
  3099. singleNestedMessage_ = new global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage();
  3100. }
  3101. SingleNestedMessage.MergeFrom(other.SingleNestedMessage);
  3102. }
  3103. }
  3104. public void MergeFrom(pb::CodedInputStream input) {
  3105. uint tag;
  3106. while (input.ReadTag(out tag)) {
  3107. switch(tag) {
  3108. case 0:
  3109. throw pb::InvalidProtocolBufferException.InvalidTag();
  3110. default:
  3111. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3112. return;
  3113. }
  3114. break;
  3115. case 8: {
  3116. MyInt = input.ReadInt64();
  3117. break;
  3118. }
  3119. case 90: {
  3120. MyString = input.ReadString();
  3121. break;
  3122. }
  3123. case 813: {
  3124. MyFloat = input.ReadFloat();
  3125. break;
  3126. }
  3127. case 1602: {
  3128. if (singleNestedMessage_ == null) {
  3129. singleNestedMessage_ = new global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage();
  3130. }
  3131. input.ReadMessage(singleNestedMessage_);
  3132. break;
  3133. }
  3134. }
  3135. }
  3136. }
  3137. #region Nested types
  3138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3139. public static partial class Types {
  3140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3141. public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
  3142. private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
  3143. public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
  3144. private static readonly string[] _fieldNames = new string[] { "bb", "oo" };
  3145. private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
  3146. public static pbd::MessageDescriptor Descriptor {
  3147. get { return global::Google.Protobuf.TestProtos.TestFieldOrderings.Descriptor.NestedTypes[0]; }
  3148. }
  3149. public pb::FieldAccess.FieldAccessorTable Fields {
  3150. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__FieldAccessorTable; }
  3151. }
  3152. private bool _frozen = false;
  3153. public bool IsFrozen { get { return _frozen; } }
  3154. public NestedMessage() {
  3155. OnConstruction();
  3156. }
  3157. partial void OnConstruction();
  3158. public NestedMessage(NestedMessage other) : this() {
  3159. oo_ = other.oo_;
  3160. bb_ = other.bb_;
  3161. }
  3162. public NestedMessage Clone() {
  3163. return new NestedMessage(this);
  3164. }
  3165. public void Freeze() {
  3166. if (IsFrozen) {
  3167. return;
  3168. }
  3169. _frozen = true;
  3170. }
  3171. public const int OoFieldNumber = 2;
  3172. private long oo_;
  3173. public long Oo {
  3174. get { return oo_; }
  3175. set {
  3176. pb::Freezable.CheckMutable(this);
  3177. oo_ = value;
  3178. }
  3179. }
  3180. public const int BbFieldNumber = 1;
  3181. private int bb_;
  3182. public int Bb {
  3183. get { return bb_; }
  3184. set {
  3185. pb::Freezable.CheckMutable(this);
  3186. bb_ = value;
  3187. }
  3188. }
  3189. public override bool Equals(object other) {
  3190. return Equals(other as NestedMessage);
  3191. }
  3192. public bool Equals(NestedMessage other) {
  3193. if (ReferenceEquals(other, null)) {
  3194. return false;
  3195. }
  3196. if (ReferenceEquals(other, this)) {
  3197. return true;
  3198. }
  3199. if (Oo != other.Oo) return false;
  3200. if (Bb != other.Bb) return false;
  3201. return true;
  3202. }
  3203. public override int GetHashCode() {
  3204. int hash = 1;
  3205. if (Oo != 0L) hash ^= Oo.GetHashCode();
  3206. if (Bb != 0) hash ^= Bb.GetHashCode();
  3207. return hash;
  3208. }
  3209. public override string ToString() {
  3210. return pb::JsonFormatter.Default.Format(this);
  3211. }
  3212. public void WriteTo(pb::CodedOutputStream output) {
  3213. if (Bb != 0) {
  3214. output.WriteRawTag(8);
  3215. output.WriteInt32(Bb);
  3216. }
  3217. if (Oo != 0L) {
  3218. output.WriteRawTag(16);
  3219. output.WriteInt64(Oo);
  3220. }
  3221. }
  3222. public int CalculateSize() {
  3223. int size = 0;
  3224. if (Oo != 0L) {
  3225. size += 1 + pb::CodedOutputStream.ComputeInt64Size(Oo);
  3226. }
  3227. if (Bb != 0) {
  3228. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb);
  3229. }
  3230. return size;
  3231. }
  3232. public void MergeFrom(NestedMessage other) {
  3233. if (other == null) {
  3234. return;
  3235. }
  3236. if (other.Oo != 0L) {
  3237. Oo = other.Oo;
  3238. }
  3239. if (other.Bb != 0) {
  3240. Bb = other.Bb;
  3241. }
  3242. }
  3243. public void MergeFrom(pb::CodedInputStream input) {
  3244. uint tag;
  3245. while (input.ReadTag(out tag)) {
  3246. switch(tag) {
  3247. case 0:
  3248. throw pb::InvalidProtocolBufferException.InvalidTag();
  3249. default:
  3250. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3251. return;
  3252. }
  3253. break;
  3254. case 8: {
  3255. Bb = input.ReadInt32();
  3256. break;
  3257. }
  3258. case 16: {
  3259. Oo = input.ReadInt64();
  3260. break;
  3261. }
  3262. }
  3263. }
  3264. }
  3265. }
  3266. }
  3267. #endregion
  3268. }
  3269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3270. public sealed partial class SparseEnumMessage : pb::IMessage<SparseEnumMessage> {
  3271. private static readonly pb::MessageParser<SparseEnumMessage> _parser = new pb::MessageParser<SparseEnumMessage>(() => new SparseEnumMessage());
  3272. public static pb::MessageParser<SparseEnumMessage> Parser { get { return _parser; } }
  3273. private static readonly string[] _fieldNames = new string[] { "sparse_enum" };
  3274. private static readonly uint[] _fieldTags = new uint[] { 8 };
  3275. public static pbd::MessageDescriptor Descriptor {
  3276. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[12]; }
  3277. }
  3278. public pb::FieldAccess.FieldAccessorTable Fields {
  3279. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_SparseEnumMessage__FieldAccessorTable; }
  3280. }
  3281. private bool _frozen = false;
  3282. public bool IsFrozen { get { return _frozen; } }
  3283. public SparseEnumMessage() {
  3284. OnConstruction();
  3285. }
  3286. partial void OnConstruction();
  3287. public SparseEnumMessage(SparseEnumMessage other) : this() {
  3288. sparseEnum_ = other.sparseEnum_;
  3289. }
  3290. public SparseEnumMessage Clone() {
  3291. return new SparseEnumMessage(this);
  3292. }
  3293. public void Freeze() {
  3294. if (IsFrozen) {
  3295. return;
  3296. }
  3297. _frozen = true;
  3298. }
  3299. public const int SparseEnumFieldNumber = 1;
  3300. private global::Google.Protobuf.TestProtos.TestSparseEnum sparseEnum_ = global::Google.Protobuf.TestProtos.TestSparseEnum.TEST_SPARSE_ENUM_UNSPECIFIED;
  3301. public global::Google.Protobuf.TestProtos.TestSparseEnum SparseEnum {
  3302. get { return sparseEnum_; }
  3303. set {
  3304. pb::Freezable.CheckMutable(this);
  3305. sparseEnum_ = value;
  3306. }
  3307. }
  3308. public override bool Equals(object other) {
  3309. return Equals(other as SparseEnumMessage);
  3310. }
  3311. public bool Equals(SparseEnumMessage other) {
  3312. if (ReferenceEquals(other, null)) {
  3313. return false;
  3314. }
  3315. if (ReferenceEquals(other, this)) {
  3316. return true;
  3317. }
  3318. if (SparseEnum != other.SparseEnum) return false;
  3319. return true;
  3320. }
  3321. public override int GetHashCode() {
  3322. int hash = 1;
  3323. if (SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.TEST_SPARSE_ENUM_UNSPECIFIED) hash ^= SparseEnum.GetHashCode();
  3324. return hash;
  3325. }
  3326. public override string ToString() {
  3327. return pb::JsonFormatter.Default.Format(this);
  3328. }
  3329. public void WriteTo(pb::CodedOutputStream output) {
  3330. if (SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.TEST_SPARSE_ENUM_UNSPECIFIED) {
  3331. output.WriteRawTag(8);
  3332. output.WriteEnum((int) SparseEnum);
  3333. }
  3334. }
  3335. public int CalculateSize() {
  3336. int size = 0;
  3337. if (SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.TEST_SPARSE_ENUM_UNSPECIFIED) {
  3338. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SparseEnum);
  3339. }
  3340. return size;
  3341. }
  3342. public void MergeFrom(SparseEnumMessage other) {
  3343. if (other == null) {
  3344. return;
  3345. }
  3346. if (other.SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.TEST_SPARSE_ENUM_UNSPECIFIED) {
  3347. SparseEnum = other.SparseEnum;
  3348. }
  3349. }
  3350. public void MergeFrom(pb::CodedInputStream input) {
  3351. uint tag;
  3352. while (input.ReadTag(out tag)) {
  3353. switch(tag) {
  3354. case 0:
  3355. throw pb::InvalidProtocolBufferException.InvalidTag();
  3356. default:
  3357. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3358. return;
  3359. }
  3360. break;
  3361. case 8: {
  3362. sparseEnum_ = (global::Google.Protobuf.TestProtos.TestSparseEnum) input.ReadEnum();
  3363. break;
  3364. }
  3365. }
  3366. }
  3367. }
  3368. }
  3369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3370. public sealed partial class OneString : pb::IMessage<OneString> {
  3371. private static readonly pb::MessageParser<OneString> _parser = new pb::MessageParser<OneString>(() => new OneString());
  3372. public static pb::MessageParser<OneString> Parser { get { return _parser; } }
  3373. private static readonly string[] _fieldNames = new string[] { "data" };
  3374. private static readonly uint[] _fieldTags = new uint[] { 10 };
  3375. public static pbd::MessageDescriptor Descriptor {
  3376. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[13]; }
  3377. }
  3378. public pb::FieldAccess.FieldAccessorTable Fields {
  3379. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_OneString__FieldAccessorTable; }
  3380. }
  3381. private bool _frozen = false;
  3382. public bool IsFrozen { get { return _frozen; } }
  3383. public OneString() {
  3384. OnConstruction();
  3385. }
  3386. partial void OnConstruction();
  3387. public OneString(OneString other) : this() {
  3388. data_ = other.data_;
  3389. }
  3390. public OneString Clone() {
  3391. return new OneString(this);
  3392. }
  3393. public void Freeze() {
  3394. if (IsFrozen) {
  3395. return;
  3396. }
  3397. _frozen = true;
  3398. }
  3399. public const int DataFieldNumber = 1;
  3400. private string data_ = "";
  3401. public string Data {
  3402. get { return data_; }
  3403. set {
  3404. pb::Freezable.CheckMutable(this);
  3405. data_ = value ?? "";
  3406. }
  3407. }
  3408. public override bool Equals(object other) {
  3409. return Equals(other as OneString);
  3410. }
  3411. public bool Equals(OneString other) {
  3412. if (ReferenceEquals(other, null)) {
  3413. return false;
  3414. }
  3415. if (ReferenceEquals(other, this)) {
  3416. return true;
  3417. }
  3418. if (Data != other.Data) return false;
  3419. return true;
  3420. }
  3421. public override int GetHashCode() {
  3422. int hash = 1;
  3423. if (Data.Length != 0) hash ^= Data.GetHashCode();
  3424. return hash;
  3425. }
  3426. public override string ToString() {
  3427. return pb::JsonFormatter.Default.Format(this);
  3428. }
  3429. public void WriteTo(pb::CodedOutputStream output) {
  3430. if (Data.Length != 0) {
  3431. output.WriteRawTag(10);
  3432. output.WriteString(Data);
  3433. }
  3434. }
  3435. public int CalculateSize() {
  3436. int size = 0;
  3437. if (Data.Length != 0) {
  3438. size += 1 + pb::CodedOutputStream.ComputeStringSize(Data);
  3439. }
  3440. return size;
  3441. }
  3442. public void MergeFrom(OneString other) {
  3443. if (other == null) {
  3444. return;
  3445. }
  3446. if (other.Data.Length != 0) {
  3447. Data = other.Data;
  3448. }
  3449. }
  3450. public void MergeFrom(pb::CodedInputStream input) {
  3451. uint tag;
  3452. while (input.ReadTag(out tag)) {
  3453. switch(tag) {
  3454. case 0:
  3455. throw pb::InvalidProtocolBufferException.InvalidTag();
  3456. default:
  3457. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3458. return;
  3459. }
  3460. break;
  3461. case 10: {
  3462. Data = input.ReadString();
  3463. break;
  3464. }
  3465. }
  3466. }
  3467. }
  3468. }
  3469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3470. public sealed partial class MoreString : pb::IMessage<MoreString> {
  3471. private static readonly pb::MessageParser<MoreString> _parser = new pb::MessageParser<MoreString>(() => new MoreString());
  3472. public static pb::MessageParser<MoreString> Parser { get { return _parser; } }
  3473. private static readonly string[] _fieldNames = new string[] { "data" };
  3474. private static readonly uint[] _fieldTags = new uint[] { 10 };
  3475. public static pbd::MessageDescriptor Descriptor {
  3476. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[14]; }
  3477. }
  3478. public pb::FieldAccess.FieldAccessorTable Fields {
  3479. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_MoreString__FieldAccessorTable; }
  3480. }
  3481. private bool _frozen = false;
  3482. public bool IsFrozen { get { return _frozen; } }
  3483. public MoreString() {
  3484. OnConstruction();
  3485. }
  3486. partial void OnConstruction();
  3487. public MoreString(MoreString other) : this() {
  3488. data_ = other.data_.Clone();
  3489. }
  3490. public MoreString Clone() {
  3491. return new MoreString(this);
  3492. }
  3493. public void Freeze() {
  3494. if (IsFrozen) {
  3495. return;
  3496. }
  3497. _frozen = true;
  3498. data_.Freeze();
  3499. }
  3500. public const int DataFieldNumber = 1;
  3501. private static readonly pb::FieldCodec<string> _repeated_data_codec
  3502. = pb::FieldCodec.ForString(10);
  3503. private readonly pbc::RepeatedField<string> data_ = new pbc::RepeatedField<string>();
  3504. public pbc::RepeatedField<string> Data {
  3505. get { return data_; }
  3506. }
  3507. public override bool Equals(object other) {
  3508. return Equals(other as MoreString);
  3509. }
  3510. public bool Equals(MoreString other) {
  3511. if (ReferenceEquals(other, null)) {
  3512. return false;
  3513. }
  3514. if (ReferenceEquals(other, this)) {
  3515. return true;
  3516. }
  3517. if(!data_.Equals(other.data_)) return false;
  3518. return true;
  3519. }
  3520. public override int GetHashCode() {
  3521. int hash = 1;
  3522. hash ^= data_.GetHashCode();
  3523. return hash;
  3524. }
  3525. public override string ToString() {
  3526. return pb::JsonFormatter.Default.Format(this);
  3527. }
  3528. public void WriteTo(pb::CodedOutputStream output) {
  3529. data_.WriteTo(output, _repeated_data_codec);
  3530. }
  3531. public int CalculateSize() {
  3532. int size = 0;
  3533. size += data_.CalculateSize(_repeated_data_codec);
  3534. return size;
  3535. }
  3536. public void MergeFrom(MoreString other) {
  3537. if (other == null) {
  3538. return;
  3539. }
  3540. data_.Add(other.data_);
  3541. }
  3542. public void MergeFrom(pb::CodedInputStream input) {
  3543. uint tag;
  3544. while (input.ReadTag(out tag)) {
  3545. switch(tag) {
  3546. case 0:
  3547. throw pb::InvalidProtocolBufferException.InvalidTag();
  3548. default:
  3549. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3550. return;
  3551. }
  3552. break;
  3553. case 10: {
  3554. data_.AddEntriesFrom(input, _repeated_data_codec);
  3555. break;
  3556. }
  3557. }
  3558. }
  3559. }
  3560. }
  3561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3562. public sealed partial class OneBytes : pb::IMessage<OneBytes> {
  3563. private static readonly pb::MessageParser<OneBytes> _parser = new pb::MessageParser<OneBytes>(() => new OneBytes());
  3564. public static pb::MessageParser<OneBytes> Parser { get { return _parser; } }
  3565. private static readonly string[] _fieldNames = new string[] { "data" };
  3566. private static readonly uint[] _fieldTags = new uint[] { 10 };
  3567. public static pbd::MessageDescriptor Descriptor {
  3568. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[15]; }
  3569. }
  3570. public pb::FieldAccess.FieldAccessorTable Fields {
  3571. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_OneBytes__FieldAccessorTable; }
  3572. }
  3573. private bool _frozen = false;
  3574. public bool IsFrozen { get { return _frozen; } }
  3575. public OneBytes() {
  3576. OnConstruction();
  3577. }
  3578. partial void OnConstruction();
  3579. public OneBytes(OneBytes other) : this() {
  3580. data_ = other.data_;
  3581. }
  3582. public OneBytes Clone() {
  3583. return new OneBytes(this);
  3584. }
  3585. public void Freeze() {
  3586. if (IsFrozen) {
  3587. return;
  3588. }
  3589. _frozen = true;
  3590. }
  3591. public const int DataFieldNumber = 1;
  3592. private pb::ByteString data_ = pb::ByteString.Empty;
  3593. public pb::ByteString Data {
  3594. get { return data_; }
  3595. set {
  3596. pb::Freezable.CheckMutable(this);
  3597. data_ = value ?? pb::ByteString.Empty;
  3598. }
  3599. }
  3600. public override bool Equals(object other) {
  3601. return Equals(other as OneBytes);
  3602. }
  3603. public bool Equals(OneBytes other) {
  3604. if (ReferenceEquals(other, null)) {
  3605. return false;
  3606. }
  3607. if (ReferenceEquals(other, this)) {
  3608. return true;
  3609. }
  3610. if (Data != other.Data) return false;
  3611. return true;
  3612. }
  3613. public override int GetHashCode() {
  3614. int hash = 1;
  3615. if (Data.Length != 0) hash ^= Data.GetHashCode();
  3616. return hash;
  3617. }
  3618. public override string ToString() {
  3619. return pb::JsonFormatter.Default.Format(this);
  3620. }
  3621. public void WriteTo(pb::CodedOutputStream output) {
  3622. if (Data.Length != 0) {
  3623. output.WriteRawTag(10);
  3624. output.WriteBytes(Data);
  3625. }
  3626. }
  3627. public int CalculateSize() {
  3628. int size = 0;
  3629. if (Data.Length != 0) {
  3630. size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data);
  3631. }
  3632. return size;
  3633. }
  3634. public void MergeFrom(OneBytes other) {
  3635. if (other == null) {
  3636. return;
  3637. }
  3638. if (other.Data.Length != 0) {
  3639. Data = other.Data;
  3640. }
  3641. }
  3642. public void MergeFrom(pb::CodedInputStream input) {
  3643. uint tag;
  3644. while (input.ReadTag(out tag)) {
  3645. switch(tag) {
  3646. case 0:
  3647. throw pb::InvalidProtocolBufferException.InvalidTag();
  3648. default:
  3649. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3650. return;
  3651. }
  3652. break;
  3653. case 10: {
  3654. Data = input.ReadBytes();
  3655. break;
  3656. }
  3657. }
  3658. }
  3659. }
  3660. }
  3661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3662. public sealed partial class MoreBytes : pb::IMessage<MoreBytes> {
  3663. private static readonly pb::MessageParser<MoreBytes> _parser = new pb::MessageParser<MoreBytes>(() => new MoreBytes());
  3664. public static pb::MessageParser<MoreBytes> Parser { get { return _parser; } }
  3665. private static readonly string[] _fieldNames = new string[] { "data" };
  3666. private static readonly uint[] _fieldTags = new uint[] { 10 };
  3667. public static pbd::MessageDescriptor Descriptor {
  3668. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[16]; }
  3669. }
  3670. public pb::FieldAccess.FieldAccessorTable Fields {
  3671. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_MoreBytes__FieldAccessorTable; }
  3672. }
  3673. private bool _frozen = false;
  3674. public bool IsFrozen { get { return _frozen; } }
  3675. public MoreBytes() {
  3676. OnConstruction();
  3677. }
  3678. partial void OnConstruction();
  3679. public MoreBytes(MoreBytes other) : this() {
  3680. data_ = other.data_;
  3681. }
  3682. public MoreBytes Clone() {
  3683. return new MoreBytes(this);
  3684. }
  3685. public void Freeze() {
  3686. if (IsFrozen) {
  3687. return;
  3688. }
  3689. _frozen = true;
  3690. }
  3691. public const int DataFieldNumber = 1;
  3692. private pb::ByteString data_ = pb::ByteString.Empty;
  3693. public pb::ByteString Data {
  3694. get { return data_; }
  3695. set {
  3696. pb::Freezable.CheckMutable(this);
  3697. data_ = value ?? pb::ByteString.Empty;
  3698. }
  3699. }
  3700. public override bool Equals(object other) {
  3701. return Equals(other as MoreBytes);
  3702. }
  3703. public bool Equals(MoreBytes other) {
  3704. if (ReferenceEquals(other, null)) {
  3705. return false;
  3706. }
  3707. if (ReferenceEquals(other, this)) {
  3708. return true;
  3709. }
  3710. if (Data != other.Data) return false;
  3711. return true;
  3712. }
  3713. public override int GetHashCode() {
  3714. int hash = 1;
  3715. if (Data.Length != 0) hash ^= Data.GetHashCode();
  3716. return hash;
  3717. }
  3718. public override string ToString() {
  3719. return pb::JsonFormatter.Default.Format(this);
  3720. }
  3721. public void WriteTo(pb::CodedOutputStream output) {
  3722. if (Data.Length != 0) {
  3723. output.WriteRawTag(10);
  3724. output.WriteBytes(Data);
  3725. }
  3726. }
  3727. public int CalculateSize() {
  3728. int size = 0;
  3729. if (Data.Length != 0) {
  3730. size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data);
  3731. }
  3732. return size;
  3733. }
  3734. public void MergeFrom(MoreBytes other) {
  3735. if (other == null) {
  3736. return;
  3737. }
  3738. if (other.Data.Length != 0) {
  3739. Data = other.Data;
  3740. }
  3741. }
  3742. public void MergeFrom(pb::CodedInputStream input) {
  3743. uint tag;
  3744. while (input.ReadTag(out tag)) {
  3745. switch(tag) {
  3746. case 0:
  3747. throw pb::InvalidProtocolBufferException.InvalidTag();
  3748. default:
  3749. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3750. return;
  3751. }
  3752. break;
  3753. case 10: {
  3754. Data = input.ReadBytes();
  3755. break;
  3756. }
  3757. }
  3758. }
  3759. }
  3760. }
  3761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3762. public sealed partial class Int32Message : pb::IMessage<Int32Message> {
  3763. private static readonly pb::MessageParser<Int32Message> _parser = new pb::MessageParser<Int32Message>(() => new Int32Message());
  3764. public static pb::MessageParser<Int32Message> Parser { get { return _parser; } }
  3765. private static readonly string[] _fieldNames = new string[] { "data" };
  3766. private static readonly uint[] _fieldTags = new uint[] { 8 };
  3767. public static pbd::MessageDescriptor Descriptor {
  3768. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[17]; }
  3769. }
  3770. public pb::FieldAccess.FieldAccessorTable Fields {
  3771. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_Int32Message__FieldAccessorTable; }
  3772. }
  3773. private bool _frozen = false;
  3774. public bool IsFrozen { get { return _frozen; } }
  3775. public Int32Message() {
  3776. OnConstruction();
  3777. }
  3778. partial void OnConstruction();
  3779. public Int32Message(Int32Message other) : this() {
  3780. data_ = other.data_;
  3781. }
  3782. public Int32Message Clone() {
  3783. return new Int32Message(this);
  3784. }
  3785. public void Freeze() {
  3786. if (IsFrozen) {
  3787. return;
  3788. }
  3789. _frozen = true;
  3790. }
  3791. public const int DataFieldNumber = 1;
  3792. private int data_;
  3793. public int Data {
  3794. get { return data_; }
  3795. set {
  3796. pb::Freezable.CheckMutable(this);
  3797. data_ = value;
  3798. }
  3799. }
  3800. public override bool Equals(object other) {
  3801. return Equals(other as Int32Message);
  3802. }
  3803. public bool Equals(Int32Message other) {
  3804. if (ReferenceEquals(other, null)) {
  3805. return false;
  3806. }
  3807. if (ReferenceEquals(other, this)) {
  3808. return true;
  3809. }
  3810. if (Data != other.Data) return false;
  3811. return true;
  3812. }
  3813. public override int GetHashCode() {
  3814. int hash = 1;
  3815. if (Data != 0) hash ^= Data.GetHashCode();
  3816. return hash;
  3817. }
  3818. public override string ToString() {
  3819. return pb::JsonFormatter.Default.Format(this);
  3820. }
  3821. public void WriteTo(pb::CodedOutputStream output) {
  3822. if (Data != 0) {
  3823. output.WriteRawTag(8);
  3824. output.WriteInt32(Data);
  3825. }
  3826. }
  3827. public int CalculateSize() {
  3828. int size = 0;
  3829. if (Data != 0) {
  3830. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data);
  3831. }
  3832. return size;
  3833. }
  3834. public void MergeFrom(Int32Message other) {
  3835. if (other == null) {
  3836. return;
  3837. }
  3838. if (other.Data != 0) {
  3839. Data = other.Data;
  3840. }
  3841. }
  3842. public void MergeFrom(pb::CodedInputStream input) {
  3843. uint tag;
  3844. while (input.ReadTag(out tag)) {
  3845. switch(tag) {
  3846. case 0:
  3847. throw pb::InvalidProtocolBufferException.InvalidTag();
  3848. default:
  3849. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3850. return;
  3851. }
  3852. break;
  3853. case 8: {
  3854. Data = input.ReadInt32();
  3855. break;
  3856. }
  3857. }
  3858. }
  3859. }
  3860. }
  3861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3862. public sealed partial class Uint32Message : pb::IMessage<Uint32Message> {
  3863. private static readonly pb::MessageParser<Uint32Message> _parser = new pb::MessageParser<Uint32Message>(() => new Uint32Message());
  3864. public static pb::MessageParser<Uint32Message> Parser { get { return _parser; } }
  3865. private static readonly string[] _fieldNames = new string[] { "data" };
  3866. private static readonly uint[] _fieldTags = new uint[] { 8 };
  3867. public static pbd::MessageDescriptor Descriptor {
  3868. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[18]; }
  3869. }
  3870. public pb::FieldAccess.FieldAccessorTable Fields {
  3871. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_Uint32Message__FieldAccessorTable; }
  3872. }
  3873. private bool _frozen = false;
  3874. public bool IsFrozen { get { return _frozen; } }
  3875. public Uint32Message() {
  3876. OnConstruction();
  3877. }
  3878. partial void OnConstruction();
  3879. public Uint32Message(Uint32Message other) : this() {
  3880. data_ = other.data_;
  3881. }
  3882. public Uint32Message Clone() {
  3883. return new Uint32Message(this);
  3884. }
  3885. public void Freeze() {
  3886. if (IsFrozen) {
  3887. return;
  3888. }
  3889. _frozen = true;
  3890. }
  3891. public const int DataFieldNumber = 1;
  3892. private uint data_;
  3893. public uint Data {
  3894. get { return data_; }
  3895. set {
  3896. pb::Freezable.CheckMutable(this);
  3897. data_ = value;
  3898. }
  3899. }
  3900. public override bool Equals(object other) {
  3901. return Equals(other as Uint32Message);
  3902. }
  3903. public bool Equals(Uint32Message other) {
  3904. if (ReferenceEquals(other, null)) {
  3905. return false;
  3906. }
  3907. if (ReferenceEquals(other, this)) {
  3908. return true;
  3909. }
  3910. if (Data != other.Data) return false;
  3911. return true;
  3912. }
  3913. public override int GetHashCode() {
  3914. int hash = 1;
  3915. if (Data != 0) hash ^= Data.GetHashCode();
  3916. return hash;
  3917. }
  3918. public override string ToString() {
  3919. return pb::JsonFormatter.Default.Format(this);
  3920. }
  3921. public void WriteTo(pb::CodedOutputStream output) {
  3922. if (Data != 0) {
  3923. output.WriteRawTag(8);
  3924. output.WriteUInt32(Data);
  3925. }
  3926. }
  3927. public int CalculateSize() {
  3928. int size = 0;
  3929. if (Data != 0) {
  3930. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Data);
  3931. }
  3932. return size;
  3933. }
  3934. public void MergeFrom(Uint32Message other) {
  3935. if (other == null) {
  3936. return;
  3937. }
  3938. if (other.Data != 0) {
  3939. Data = other.Data;
  3940. }
  3941. }
  3942. public void MergeFrom(pb::CodedInputStream input) {
  3943. uint tag;
  3944. while (input.ReadTag(out tag)) {
  3945. switch(tag) {
  3946. case 0:
  3947. throw pb::InvalidProtocolBufferException.InvalidTag();
  3948. default:
  3949. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3950. return;
  3951. }
  3952. break;
  3953. case 8: {
  3954. Data = input.ReadUInt32();
  3955. break;
  3956. }
  3957. }
  3958. }
  3959. }
  3960. }
  3961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3962. public sealed partial class Int64Message : pb::IMessage<Int64Message> {
  3963. private static readonly pb::MessageParser<Int64Message> _parser = new pb::MessageParser<Int64Message>(() => new Int64Message());
  3964. public static pb::MessageParser<Int64Message> Parser { get { return _parser; } }
  3965. private static readonly string[] _fieldNames = new string[] { "data" };
  3966. private static readonly uint[] _fieldTags = new uint[] { 8 };
  3967. public static pbd::MessageDescriptor Descriptor {
  3968. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[19]; }
  3969. }
  3970. public pb::FieldAccess.FieldAccessorTable Fields {
  3971. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_Int64Message__FieldAccessorTable; }
  3972. }
  3973. private bool _frozen = false;
  3974. public bool IsFrozen { get { return _frozen; } }
  3975. public Int64Message() {
  3976. OnConstruction();
  3977. }
  3978. partial void OnConstruction();
  3979. public Int64Message(Int64Message other) : this() {
  3980. data_ = other.data_;
  3981. }
  3982. public Int64Message Clone() {
  3983. return new Int64Message(this);
  3984. }
  3985. public void Freeze() {
  3986. if (IsFrozen) {
  3987. return;
  3988. }
  3989. _frozen = true;
  3990. }
  3991. public const int DataFieldNumber = 1;
  3992. private long data_;
  3993. public long Data {
  3994. get { return data_; }
  3995. set {
  3996. pb::Freezable.CheckMutable(this);
  3997. data_ = value;
  3998. }
  3999. }
  4000. public override bool Equals(object other) {
  4001. return Equals(other as Int64Message);
  4002. }
  4003. public bool Equals(Int64Message other) {
  4004. if (ReferenceEquals(other, null)) {
  4005. return false;
  4006. }
  4007. if (ReferenceEquals(other, this)) {
  4008. return true;
  4009. }
  4010. if (Data != other.Data) return false;
  4011. return true;
  4012. }
  4013. public override int GetHashCode() {
  4014. int hash = 1;
  4015. if (Data != 0L) hash ^= Data.GetHashCode();
  4016. return hash;
  4017. }
  4018. public override string ToString() {
  4019. return pb::JsonFormatter.Default.Format(this);
  4020. }
  4021. public void WriteTo(pb::CodedOutputStream output) {
  4022. if (Data != 0L) {
  4023. output.WriteRawTag(8);
  4024. output.WriteInt64(Data);
  4025. }
  4026. }
  4027. public int CalculateSize() {
  4028. int size = 0;
  4029. if (Data != 0L) {
  4030. size += 1 + pb::CodedOutputStream.ComputeInt64Size(Data);
  4031. }
  4032. return size;
  4033. }
  4034. public void MergeFrom(Int64Message other) {
  4035. if (other == null) {
  4036. return;
  4037. }
  4038. if (other.Data != 0L) {
  4039. Data = other.Data;
  4040. }
  4041. }
  4042. public void MergeFrom(pb::CodedInputStream input) {
  4043. uint tag;
  4044. while (input.ReadTag(out tag)) {
  4045. switch(tag) {
  4046. case 0:
  4047. throw pb::InvalidProtocolBufferException.InvalidTag();
  4048. default:
  4049. if (pb::WireFormat.IsEndGroupTag(tag)) {
  4050. return;
  4051. }
  4052. break;
  4053. case 8: {
  4054. Data = input.ReadInt64();
  4055. break;
  4056. }
  4057. }
  4058. }
  4059. }
  4060. }
  4061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4062. public sealed partial class Uint64Message : pb::IMessage<Uint64Message> {
  4063. private static readonly pb::MessageParser<Uint64Message> _parser = new pb::MessageParser<Uint64Message>(() => new Uint64Message());
  4064. public static pb::MessageParser<Uint64Message> Parser { get { return _parser; } }
  4065. private static readonly string[] _fieldNames = new string[] { "data" };
  4066. private static readonly uint[] _fieldTags = new uint[] { 8 };
  4067. public static pbd::MessageDescriptor Descriptor {
  4068. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[20]; }
  4069. }
  4070. public pb::FieldAccess.FieldAccessorTable Fields {
  4071. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_Uint64Message__FieldAccessorTable; }
  4072. }
  4073. private bool _frozen = false;
  4074. public bool IsFrozen { get { return _frozen; } }
  4075. public Uint64Message() {
  4076. OnConstruction();
  4077. }
  4078. partial void OnConstruction();
  4079. public Uint64Message(Uint64Message other) : this() {
  4080. data_ = other.data_;
  4081. }
  4082. public Uint64Message Clone() {
  4083. return new Uint64Message(this);
  4084. }
  4085. public void Freeze() {
  4086. if (IsFrozen) {
  4087. return;
  4088. }
  4089. _frozen = true;
  4090. }
  4091. public const int DataFieldNumber = 1;
  4092. private ulong data_;
  4093. public ulong Data {
  4094. get { return data_; }
  4095. set {
  4096. pb::Freezable.CheckMutable(this);
  4097. data_ = value;
  4098. }
  4099. }
  4100. public override bool Equals(object other) {
  4101. return Equals(other as Uint64Message);
  4102. }
  4103. public bool Equals(Uint64Message other) {
  4104. if (ReferenceEquals(other, null)) {
  4105. return false;
  4106. }
  4107. if (ReferenceEquals(other, this)) {
  4108. return true;
  4109. }
  4110. if (Data != other.Data) return false;
  4111. return true;
  4112. }
  4113. public override int GetHashCode() {
  4114. int hash = 1;
  4115. if (Data != 0UL) hash ^= Data.GetHashCode();
  4116. return hash;
  4117. }
  4118. public override string ToString() {
  4119. return pb::JsonFormatter.Default.Format(this);
  4120. }
  4121. public void WriteTo(pb::CodedOutputStream output) {
  4122. if (Data != 0UL) {
  4123. output.WriteRawTag(8);
  4124. output.WriteUInt64(Data);
  4125. }
  4126. }
  4127. public int CalculateSize() {
  4128. int size = 0;
  4129. if (Data != 0UL) {
  4130. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Data);
  4131. }
  4132. return size;
  4133. }
  4134. public void MergeFrom(Uint64Message other) {
  4135. if (other == null) {
  4136. return;
  4137. }
  4138. if (other.Data != 0UL) {
  4139. Data = other.Data;
  4140. }
  4141. }
  4142. public void MergeFrom(pb::CodedInputStream input) {
  4143. uint tag;
  4144. while (input.ReadTag(out tag)) {
  4145. switch(tag) {
  4146. case 0:
  4147. throw pb::InvalidProtocolBufferException.InvalidTag();
  4148. default:
  4149. if (pb::WireFormat.IsEndGroupTag(tag)) {
  4150. return;
  4151. }
  4152. break;
  4153. case 8: {
  4154. Data = input.ReadUInt64();
  4155. break;
  4156. }
  4157. }
  4158. }
  4159. }
  4160. }
  4161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4162. public sealed partial class BoolMessage : pb::IMessage<BoolMessage> {
  4163. private static readonly pb::MessageParser<BoolMessage> _parser = new pb::MessageParser<BoolMessage>(() => new BoolMessage());
  4164. public static pb::MessageParser<BoolMessage> Parser { get { return _parser; } }
  4165. private static readonly string[] _fieldNames = new string[] { "data" };
  4166. private static readonly uint[] _fieldTags = new uint[] { 8 };
  4167. public static pbd::MessageDescriptor Descriptor {
  4168. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[21]; }
  4169. }
  4170. public pb::FieldAccess.FieldAccessorTable Fields {
  4171. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_BoolMessage__FieldAccessorTable; }
  4172. }
  4173. private bool _frozen = false;
  4174. public bool IsFrozen { get { return _frozen; } }
  4175. public BoolMessage() {
  4176. OnConstruction();
  4177. }
  4178. partial void OnConstruction();
  4179. public BoolMessage(BoolMessage other) : this() {
  4180. data_ = other.data_;
  4181. }
  4182. public BoolMessage Clone() {
  4183. return new BoolMessage(this);
  4184. }
  4185. public void Freeze() {
  4186. if (IsFrozen) {
  4187. return;
  4188. }
  4189. _frozen = true;
  4190. }
  4191. public const int DataFieldNumber = 1;
  4192. private bool data_;
  4193. public bool Data {
  4194. get { return data_; }
  4195. set {
  4196. pb::Freezable.CheckMutable(this);
  4197. data_ = value;
  4198. }
  4199. }
  4200. public override bool Equals(object other) {
  4201. return Equals(other as BoolMessage);
  4202. }
  4203. public bool Equals(BoolMessage other) {
  4204. if (ReferenceEquals(other, null)) {
  4205. return false;
  4206. }
  4207. if (ReferenceEquals(other, this)) {
  4208. return true;
  4209. }
  4210. if (Data != other.Data) return false;
  4211. return true;
  4212. }
  4213. public override int GetHashCode() {
  4214. int hash = 1;
  4215. if (Data != false) hash ^= Data.GetHashCode();
  4216. return hash;
  4217. }
  4218. public override string ToString() {
  4219. return pb::JsonFormatter.Default.Format(this);
  4220. }
  4221. public void WriteTo(pb::CodedOutputStream output) {
  4222. if (Data != false) {
  4223. output.WriteRawTag(8);
  4224. output.WriteBool(Data);
  4225. }
  4226. }
  4227. public int CalculateSize() {
  4228. int size = 0;
  4229. if (Data != false) {
  4230. size += 1 + 1;
  4231. }
  4232. return size;
  4233. }
  4234. public void MergeFrom(BoolMessage other) {
  4235. if (other == null) {
  4236. return;
  4237. }
  4238. if (other.Data != false) {
  4239. Data = other.Data;
  4240. }
  4241. }
  4242. public void MergeFrom(pb::CodedInputStream input) {
  4243. uint tag;
  4244. while (input.ReadTag(out tag)) {
  4245. switch(tag) {
  4246. case 0:
  4247. throw pb::InvalidProtocolBufferException.InvalidTag();
  4248. default:
  4249. if (pb::WireFormat.IsEndGroupTag(tag)) {
  4250. return;
  4251. }
  4252. break;
  4253. case 8: {
  4254. Data = input.ReadBool();
  4255. break;
  4256. }
  4257. }
  4258. }
  4259. }
  4260. }
  4261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4262. public sealed partial class TestOneof : pb::IMessage<TestOneof> {
  4263. private static readonly pb::MessageParser<TestOneof> _parser = new pb::MessageParser<TestOneof>(() => new TestOneof());
  4264. public static pb::MessageParser<TestOneof> Parser { get { return _parser; } }
  4265. private static readonly string[] _fieldNames = new string[] { "foo_int", "foo_message", "foo_string" };
  4266. private static readonly uint[] _fieldTags = new uint[] { 8, 26, 18 };
  4267. public static pbd::MessageDescriptor Descriptor {
  4268. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[22]; }
  4269. }
  4270. public pb::FieldAccess.FieldAccessorTable Fields {
  4271. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestOneof__FieldAccessorTable; }
  4272. }
  4273. private bool _frozen = false;
  4274. public bool IsFrozen { get { return _frozen; } }
  4275. public TestOneof() {
  4276. OnConstruction();
  4277. }
  4278. partial void OnConstruction();
  4279. public TestOneof(TestOneof other) : this() {
  4280. switch (other.FooCase) {
  4281. case FooOneofCase.FooInt:
  4282. FooInt = other.FooInt;
  4283. break;
  4284. case FooOneofCase.FooString:
  4285. FooString = other.FooString;
  4286. break;
  4287. case FooOneofCase.FooMessage:
  4288. FooMessage = other.FooMessage.Clone();
  4289. break;
  4290. }
  4291. }
  4292. public TestOneof Clone() {
  4293. return new TestOneof(this);
  4294. }
  4295. public void Freeze() {
  4296. if (IsFrozen) {
  4297. return;
  4298. }
  4299. _frozen = true;
  4300. if (foo_ is IFreezable) ((IFreezable) foo_).Freeze();
  4301. }
  4302. public const int FooIntFieldNumber = 1;
  4303. public int FooInt {
  4304. get { return fooCase_ == FooOneofCase.FooInt ? (int) foo_ : 0; }
  4305. set {
  4306. pb::Freezable.CheckMutable(this);
  4307. foo_ = value;
  4308. fooCase_ = FooOneofCase.FooInt;
  4309. }
  4310. }
  4311. public const int FooStringFieldNumber = 2;
  4312. public string FooString {
  4313. get { return fooCase_ == FooOneofCase.FooString ? (string) foo_ : ""; }
  4314. set {
  4315. pb::Freezable.CheckMutable(this);
  4316. foo_ = value ?? "";
  4317. fooCase_ = FooOneofCase.FooString;
  4318. }
  4319. }
  4320. public const int FooMessageFieldNumber = 3;
  4321. public global::Google.Protobuf.TestProtos.TestAllTypes FooMessage {
  4322. get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.TestAllTypes) foo_ : null; }
  4323. set {
  4324. pb::Freezable.CheckMutable(this);
  4325. foo_ = value;
  4326. fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage;
  4327. }
  4328. }
  4329. private object foo_;
  4330. public enum FooOneofCase {
  4331. None = 0,
  4332. FooInt = 1,
  4333. FooString = 2,
  4334. FooMessage = 3,
  4335. }
  4336. private FooOneofCase fooCase_ = FooOneofCase.None;
  4337. public FooOneofCase FooCase {
  4338. get { return fooCase_; }
  4339. }
  4340. public void ClearFoo() {
  4341. pb::Freezable.CheckMutable(this);
  4342. fooCase_ = FooOneofCase.None;
  4343. foo_ = null;
  4344. }
  4345. public override bool Equals(object other) {
  4346. return Equals(other as TestOneof);
  4347. }
  4348. public bool Equals(TestOneof other) {
  4349. if (ReferenceEquals(other, null)) {
  4350. return false;
  4351. }
  4352. if (ReferenceEquals(other, this)) {
  4353. return true;
  4354. }
  4355. if (FooInt != other.FooInt) return false;
  4356. if (FooString != other.FooString) return false;
  4357. if (!object.Equals(FooMessage, other.FooMessage)) return false;
  4358. return true;
  4359. }
  4360. public override int GetHashCode() {
  4361. int hash = 1;
  4362. if (fooCase_ == FooOneofCase.FooInt) hash ^= FooInt.GetHashCode();
  4363. if (fooCase_ == FooOneofCase.FooString) hash ^= FooString.GetHashCode();
  4364. if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode();
  4365. return hash;
  4366. }
  4367. public override string ToString() {
  4368. return pb::JsonFormatter.Default.Format(this);
  4369. }
  4370. public void WriteTo(pb::CodedOutputStream output) {
  4371. if (fooCase_ == FooOneofCase.FooInt) {
  4372. output.WriteRawTag(8);
  4373. output.WriteInt32(FooInt);
  4374. }
  4375. if (fooCase_ == FooOneofCase.FooString) {
  4376. output.WriteRawTag(18);
  4377. output.WriteString(FooString);
  4378. }
  4379. if (fooCase_ == FooOneofCase.FooMessage) {
  4380. output.WriteRawTag(26);
  4381. output.WriteMessage(FooMessage);
  4382. }
  4383. }
  4384. public int CalculateSize() {
  4385. int size = 0;
  4386. if (fooCase_ == FooOneofCase.FooInt) {
  4387. size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
  4388. }
  4389. if (fooCase_ == FooOneofCase.FooString) {
  4390. size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
  4391. }
  4392. if (fooCase_ == FooOneofCase.FooMessage) {
  4393. size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
  4394. }
  4395. return size;
  4396. }
  4397. public void MergeFrom(TestOneof other) {
  4398. if (other == null) {
  4399. return;
  4400. }
  4401. switch (other.FooCase) {
  4402. case FooOneofCase.FooInt:
  4403. FooInt = other.FooInt;
  4404. break;
  4405. case FooOneofCase.FooString:
  4406. FooString = other.FooString;
  4407. break;
  4408. case FooOneofCase.FooMessage:
  4409. FooMessage = other.FooMessage;
  4410. break;
  4411. }
  4412. }
  4413. public void MergeFrom(pb::CodedInputStream input) {
  4414. uint tag;
  4415. while (input.ReadTag(out tag)) {
  4416. switch(tag) {
  4417. case 0:
  4418. throw pb::InvalidProtocolBufferException.InvalidTag();
  4419. default:
  4420. if (pb::WireFormat.IsEndGroupTag(tag)) {
  4421. return;
  4422. }
  4423. break;
  4424. case 8: {
  4425. FooInt = input.ReadInt32();
  4426. break;
  4427. }
  4428. case 18: {
  4429. FooString = input.ReadString();
  4430. break;
  4431. }
  4432. case 26: {
  4433. global::Google.Protobuf.TestProtos.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.TestAllTypes();
  4434. if (fooCase_ == FooOneofCase.FooMessage) {
  4435. subBuilder.MergeFrom(FooMessage);
  4436. }
  4437. input.ReadMessage(subBuilder);
  4438. FooMessage = subBuilder;
  4439. break;
  4440. }
  4441. }
  4442. }
  4443. }
  4444. }
  4445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4446. public sealed partial class TestPackedTypes : pb::IMessage<TestPackedTypes> {
  4447. private static readonly pb::MessageParser<TestPackedTypes> _parser = new pb::MessageParser<TestPackedTypes>(() => new TestPackedTypes());
  4448. public static pb::MessageParser<TestPackedTypes> Parser { get { return _parser; } }
  4449. private static readonly string[] _fieldNames = new string[] { "packed_bool", "packed_double", "packed_enum", "packed_fixed32", "packed_fixed64", "packed_float", "packed_int32", "packed_int64", "packed_sfixed32", "packed_sfixed64", "packed_sint32", "packed_sint64", "packed_uint32", "packed_uint64" };
  4450. private static readonly uint[] _fieldTags = new uint[] { 818, 810, 826, 770, 778, 802, 722, 730, 786, 794, 754, 762, 738, 746 };
  4451. public static pbd::MessageDescriptor Descriptor {
  4452. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[23]; }
  4453. }
  4454. public pb::FieldAccess.FieldAccessorTable Fields {
  4455. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable; }
  4456. }
  4457. private bool _frozen = false;
  4458. public bool IsFrozen { get { return _frozen; } }
  4459. public TestPackedTypes() {
  4460. OnConstruction();
  4461. }
  4462. partial void OnConstruction();
  4463. public TestPackedTypes(TestPackedTypes other) : this() {
  4464. packedInt32_ = other.packedInt32_.Clone();
  4465. packedInt64_ = other.packedInt64_.Clone();
  4466. packedUint32_ = other.packedUint32_.Clone();
  4467. packedUint64_ = other.packedUint64_.Clone();
  4468. packedSint32_ = other.packedSint32_.Clone();
  4469. packedSint64_ = other.packedSint64_.Clone();
  4470. packedFixed32_ = other.packedFixed32_.Clone();
  4471. packedFixed64_ = other.packedFixed64_.Clone();
  4472. packedSfixed32_ = other.packedSfixed32_.Clone();
  4473. packedSfixed64_ = other.packedSfixed64_.Clone();
  4474. packedFloat_ = other.packedFloat_.Clone();
  4475. packedDouble_ = other.packedDouble_.Clone();
  4476. packedBool_ = other.packedBool_.Clone();
  4477. packedEnum_ = other.packedEnum_.Clone();
  4478. }
  4479. public TestPackedTypes Clone() {
  4480. return new TestPackedTypes(this);
  4481. }
  4482. public void Freeze() {
  4483. if (IsFrozen) {
  4484. return;
  4485. }
  4486. _frozen = true;
  4487. packedInt32_.Freeze();
  4488. packedInt64_.Freeze();
  4489. packedUint32_.Freeze();
  4490. packedUint64_.Freeze();
  4491. packedSint32_.Freeze();
  4492. packedSint64_.Freeze();
  4493. packedFixed32_.Freeze();
  4494. packedFixed64_.Freeze();
  4495. packedSfixed32_.Freeze();
  4496. packedSfixed64_.Freeze();
  4497. packedFloat_.Freeze();
  4498. packedDouble_.Freeze();
  4499. packedBool_.Freeze();
  4500. packedEnum_.Freeze();
  4501. }
  4502. public const int PackedInt32FieldNumber = 90;
  4503. private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec
  4504. = pb::FieldCodec.ForInt32(722);
  4505. private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>();
  4506. public pbc::RepeatedField<int> PackedInt32 {
  4507. get { return packedInt32_; }
  4508. }
  4509. public const int PackedInt64FieldNumber = 91;
  4510. private static readonly pb::FieldCodec<long> _repeated_packedInt64_codec
  4511. = pb::FieldCodec.ForInt64(730);
  4512. private readonly pbc::RepeatedField<long> packedInt64_ = new pbc::RepeatedField<long>();
  4513. public pbc::RepeatedField<long> PackedInt64 {
  4514. get { return packedInt64_; }
  4515. }
  4516. public const int PackedUint32FieldNumber = 92;
  4517. private static readonly pb::FieldCodec<uint> _repeated_packedUint32_codec
  4518. = pb::FieldCodec.ForUInt32(738);
  4519. private readonly pbc::RepeatedField<uint> packedUint32_ = new pbc::RepeatedField<uint>();
  4520. public pbc::RepeatedField<uint> PackedUint32 {
  4521. get { return packedUint32_; }
  4522. }
  4523. public const int PackedUint64FieldNumber = 93;
  4524. private static readonly pb::FieldCodec<ulong> _repeated_packedUint64_codec
  4525. = pb::FieldCodec.ForUInt64(746);
  4526. private readonly pbc::RepeatedField<ulong> packedUint64_ = new pbc::RepeatedField<ulong>();
  4527. public pbc::RepeatedField<ulong> PackedUint64 {
  4528. get { return packedUint64_; }
  4529. }
  4530. public const int PackedSint32FieldNumber = 94;
  4531. private static readonly pb::FieldCodec<int> _repeated_packedSint32_codec
  4532. = pb::FieldCodec.ForSInt32(754);
  4533. private readonly pbc::RepeatedField<int> packedSint32_ = new pbc::RepeatedField<int>();
  4534. public pbc::RepeatedField<int> PackedSint32 {
  4535. get { return packedSint32_; }
  4536. }
  4537. public const int PackedSint64FieldNumber = 95;
  4538. private static readonly pb::FieldCodec<long> _repeated_packedSint64_codec
  4539. = pb::FieldCodec.ForSInt64(762);
  4540. private readonly pbc::RepeatedField<long> packedSint64_ = new pbc::RepeatedField<long>();
  4541. public pbc::RepeatedField<long> PackedSint64 {
  4542. get { return packedSint64_; }
  4543. }
  4544. public const int PackedFixed32FieldNumber = 96;
  4545. private static readonly pb::FieldCodec<uint> _repeated_packedFixed32_codec
  4546. = pb::FieldCodec.ForFixed32(770);
  4547. private readonly pbc::RepeatedField<uint> packedFixed32_ = new pbc::RepeatedField<uint>();
  4548. public pbc::RepeatedField<uint> PackedFixed32 {
  4549. get { return packedFixed32_; }
  4550. }
  4551. public const int PackedFixed64FieldNumber = 97;
  4552. private static readonly pb::FieldCodec<ulong> _repeated_packedFixed64_codec
  4553. = pb::FieldCodec.ForFixed64(778);
  4554. private readonly pbc::RepeatedField<ulong> packedFixed64_ = new pbc::RepeatedField<ulong>();
  4555. public pbc::RepeatedField<ulong> PackedFixed64 {
  4556. get { return packedFixed64_; }
  4557. }
  4558. public const int PackedSfixed32FieldNumber = 98;
  4559. private static readonly pb::FieldCodec<int> _repeated_packedSfixed32_codec
  4560. = pb::FieldCodec.ForSFixed32(786);
  4561. private readonly pbc::RepeatedField<int> packedSfixed32_ = new pbc::RepeatedField<int>();
  4562. public pbc::RepeatedField<int> PackedSfixed32 {
  4563. get { return packedSfixed32_; }
  4564. }
  4565. public const int PackedSfixed64FieldNumber = 99;
  4566. private static readonly pb::FieldCodec<long> _repeated_packedSfixed64_codec
  4567. = pb::FieldCodec.ForSFixed64(794);
  4568. private readonly pbc::RepeatedField<long> packedSfixed64_ = new pbc::RepeatedField<long>();
  4569. public pbc::RepeatedField<long> PackedSfixed64 {
  4570. get { return packedSfixed64_; }
  4571. }
  4572. public const int PackedFloatFieldNumber = 100;
  4573. private static readonly pb::FieldCodec<float> _repeated_packedFloat_codec
  4574. = pb::FieldCodec.ForFloat(802);
  4575. private readonly pbc::RepeatedField<float> packedFloat_ = new pbc::RepeatedField<float>();
  4576. public pbc::RepeatedField<float> PackedFloat {
  4577. get { return packedFloat_; }
  4578. }
  4579. public const int PackedDoubleFieldNumber = 101;
  4580. private static readonly pb::FieldCodec<double> _repeated_packedDouble_codec
  4581. = pb::FieldCodec.ForDouble(810);
  4582. private readonly pbc::RepeatedField<double> packedDouble_ = new pbc::RepeatedField<double>();
  4583. public pbc::RepeatedField<double> PackedDouble {
  4584. get { return packedDouble_; }
  4585. }
  4586. public const int PackedBoolFieldNumber = 102;
  4587. private static readonly pb::FieldCodec<bool> _repeated_packedBool_codec
  4588. = pb::FieldCodec.ForBool(818);
  4589. private readonly pbc::RepeatedField<bool> packedBool_ = new pbc::RepeatedField<bool>();
  4590. public pbc::RepeatedField<bool> PackedBool {
  4591. get { return packedBool_; }
  4592. }
  4593. public const int PackedEnumFieldNumber = 103;
  4594. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_packedEnum_codec
  4595. = pb::FieldCodec.ForEnum(826, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x);private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> packedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum>();
  4596. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> PackedEnum {
  4597. get { return packedEnum_; }
  4598. }
  4599. public override bool Equals(object other) {
  4600. return Equals(other as TestPackedTypes);
  4601. }
  4602. public bool Equals(TestPackedTypes other) {
  4603. if (ReferenceEquals(other, null)) {
  4604. return false;
  4605. }
  4606. if (ReferenceEquals(other, this)) {
  4607. return true;
  4608. }
  4609. if(!packedInt32_.Equals(other.packedInt32_)) return false;
  4610. if(!packedInt64_.Equals(other.packedInt64_)) return false;
  4611. if(!packedUint32_.Equals(other.packedUint32_)) return false;
  4612. if(!packedUint64_.Equals(other.packedUint64_)) return false;
  4613. if(!packedSint32_.Equals(other.packedSint32_)) return false;
  4614. if(!packedSint64_.Equals(other.packedSint64_)) return false;
  4615. if(!packedFixed32_.Equals(other.packedFixed32_)) return false;
  4616. if(!packedFixed64_.Equals(other.packedFixed64_)) return false;
  4617. if(!packedSfixed32_.Equals(other.packedSfixed32_)) return false;
  4618. if(!packedSfixed64_.Equals(other.packedSfixed64_)) return false;
  4619. if(!packedFloat_.Equals(other.packedFloat_)) return false;
  4620. if(!packedDouble_.Equals(other.packedDouble_)) return false;
  4621. if(!packedBool_.Equals(other.packedBool_)) return false;
  4622. if(!packedEnum_.Equals(other.packedEnum_)) return false;
  4623. return true;
  4624. }
  4625. public override int GetHashCode() {
  4626. int hash = 1;
  4627. hash ^= packedInt32_.GetHashCode();
  4628. hash ^= packedInt64_.GetHashCode();
  4629. hash ^= packedUint32_.GetHashCode();
  4630. hash ^= packedUint64_.GetHashCode();
  4631. hash ^= packedSint32_.GetHashCode();
  4632. hash ^= packedSint64_.GetHashCode();
  4633. hash ^= packedFixed32_.GetHashCode();
  4634. hash ^= packedFixed64_.GetHashCode();
  4635. hash ^= packedSfixed32_.GetHashCode();
  4636. hash ^= packedSfixed64_.GetHashCode();
  4637. hash ^= packedFloat_.GetHashCode();
  4638. hash ^= packedDouble_.GetHashCode();
  4639. hash ^= packedBool_.GetHashCode();
  4640. hash ^= packedEnum_.GetHashCode();
  4641. return hash;
  4642. }
  4643. public override string ToString() {
  4644. return pb::JsonFormatter.Default.Format(this);
  4645. }
  4646. public void WriteTo(pb::CodedOutputStream output) {
  4647. packedInt32_.WriteTo(output, _repeated_packedInt32_codec);
  4648. packedInt64_.WriteTo(output, _repeated_packedInt64_codec);
  4649. packedUint32_.WriteTo(output, _repeated_packedUint32_codec);
  4650. packedUint64_.WriteTo(output, _repeated_packedUint64_codec);
  4651. packedSint32_.WriteTo(output, _repeated_packedSint32_codec);
  4652. packedSint64_.WriteTo(output, _repeated_packedSint64_codec);
  4653. packedFixed32_.WriteTo(output, _repeated_packedFixed32_codec);
  4654. packedFixed64_.WriteTo(output, _repeated_packedFixed64_codec);
  4655. packedSfixed32_.WriteTo(output, _repeated_packedSfixed32_codec);
  4656. packedSfixed64_.WriteTo(output, _repeated_packedSfixed64_codec);
  4657. packedFloat_.WriteTo(output, _repeated_packedFloat_codec);
  4658. packedDouble_.WriteTo(output, _repeated_packedDouble_codec);
  4659. packedBool_.WriteTo(output, _repeated_packedBool_codec);
  4660. packedEnum_.WriteTo(output, _repeated_packedEnum_codec);
  4661. }
  4662. public int CalculateSize() {
  4663. int size = 0;
  4664. size += packedInt32_.CalculateSize(_repeated_packedInt32_codec);
  4665. size += packedInt64_.CalculateSize(_repeated_packedInt64_codec);
  4666. size += packedUint32_.CalculateSize(_repeated_packedUint32_codec);
  4667. size += packedUint64_.CalculateSize(_repeated_packedUint64_codec);
  4668. size += packedSint32_.CalculateSize(_repeated_packedSint32_codec);
  4669. size += packedSint64_.CalculateSize(_repeated_packedSint64_codec);
  4670. size += packedFixed32_.CalculateSize(_repeated_packedFixed32_codec);
  4671. size += packedFixed64_.CalculateSize(_repeated_packedFixed64_codec);
  4672. size += packedSfixed32_.CalculateSize(_repeated_packedSfixed32_codec);
  4673. size += packedSfixed64_.CalculateSize(_repeated_packedSfixed64_codec);
  4674. size += packedFloat_.CalculateSize(_repeated_packedFloat_codec);
  4675. size += packedDouble_.CalculateSize(_repeated_packedDouble_codec);
  4676. size += packedBool_.CalculateSize(_repeated_packedBool_codec);
  4677. size += packedEnum_.CalculateSize(_repeated_packedEnum_codec);
  4678. return size;
  4679. }
  4680. public void MergeFrom(TestPackedTypes other) {
  4681. if (other == null) {
  4682. return;
  4683. }
  4684. packedInt32_.Add(other.packedInt32_);
  4685. packedInt64_.Add(other.packedInt64_);
  4686. packedUint32_.Add(other.packedUint32_);
  4687. packedUint64_.Add(other.packedUint64_);
  4688. packedSint32_.Add(other.packedSint32_);
  4689. packedSint64_.Add(other.packedSint64_);
  4690. packedFixed32_.Add(other.packedFixed32_);
  4691. packedFixed64_.Add(other.packedFixed64_);
  4692. packedSfixed32_.Add(other.packedSfixed32_);
  4693. packedSfixed64_.Add(other.packedSfixed64_);
  4694. packedFloat_.Add(other.packedFloat_);
  4695. packedDouble_.Add(other.packedDouble_);
  4696. packedBool_.Add(other.packedBool_);
  4697. packedEnum_.Add(other.packedEnum_);
  4698. }
  4699. public void MergeFrom(pb::CodedInputStream input) {
  4700. uint tag;
  4701. while (input.ReadTag(out tag)) {
  4702. switch(tag) {
  4703. case 0:
  4704. throw pb::InvalidProtocolBufferException.InvalidTag();
  4705. default:
  4706. if (pb::WireFormat.IsEndGroupTag(tag)) {
  4707. return;
  4708. }
  4709. break;
  4710. case 722:
  4711. case 720: {
  4712. packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec);
  4713. break;
  4714. }
  4715. case 730:
  4716. case 728: {
  4717. packedInt64_.AddEntriesFrom(input, _repeated_packedInt64_codec);
  4718. break;
  4719. }
  4720. case 738:
  4721. case 736: {
  4722. packedUint32_.AddEntriesFrom(input, _repeated_packedUint32_codec);
  4723. break;
  4724. }
  4725. case 746:
  4726. case 744: {
  4727. packedUint64_.AddEntriesFrom(input, _repeated_packedUint64_codec);
  4728. break;
  4729. }
  4730. case 754:
  4731. case 752: {
  4732. packedSint32_.AddEntriesFrom(input, _repeated_packedSint32_codec);
  4733. break;
  4734. }
  4735. case 762:
  4736. case 760: {
  4737. packedSint64_.AddEntriesFrom(input, _repeated_packedSint64_codec);
  4738. break;
  4739. }
  4740. case 770:
  4741. case 773: {
  4742. packedFixed32_.AddEntriesFrom(input, _repeated_packedFixed32_codec);
  4743. break;
  4744. }
  4745. case 778:
  4746. case 777: {
  4747. packedFixed64_.AddEntriesFrom(input, _repeated_packedFixed64_codec);
  4748. break;
  4749. }
  4750. case 786:
  4751. case 789: {
  4752. packedSfixed32_.AddEntriesFrom(input, _repeated_packedSfixed32_codec);
  4753. break;
  4754. }
  4755. case 794:
  4756. case 793: {
  4757. packedSfixed64_.AddEntriesFrom(input, _repeated_packedSfixed64_codec);
  4758. break;
  4759. }
  4760. case 802:
  4761. case 805: {
  4762. packedFloat_.AddEntriesFrom(input, _repeated_packedFloat_codec);
  4763. break;
  4764. }
  4765. case 810:
  4766. case 809: {
  4767. packedDouble_.AddEntriesFrom(input, _repeated_packedDouble_codec);
  4768. break;
  4769. }
  4770. case 818:
  4771. case 816: {
  4772. packedBool_.AddEntriesFrom(input, _repeated_packedBool_codec);
  4773. break;
  4774. }
  4775. case 826:
  4776. case 824: {
  4777. packedEnum_.AddEntriesFrom(input, _repeated_packedEnum_codec);
  4778. break;
  4779. }
  4780. }
  4781. }
  4782. }
  4783. }
  4784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4785. public sealed partial class TestUnpackedTypes : pb::IMessage<TestUnpackedTypes> {
  4786. private static readonly pb::MessageParser<TestUnpackedTypes> _parser = new pb::MessageParser<TestUnpackedTypes>(() => new TestUnpackedTypes());
  4787. public static pb::MessageParser<TestUnpackedTypes> Parser { get { return _parser; } }
  4788. private static readonly string[] _fieldNames = new string[] { "unpacked_bool", "unpacked_double", "unpacked_enum", "unpacked_fixed32", "unpacked_fixed64", "unpacked_float", "unpacked_int32", "unpacked_int64", "unpacked_sfixed32", "unpacked_sfixed64", "unpacked_sint32", "unpacked_sint64", "unpacked_uint32", "unpacked_uint64" };
  4789. private static readonly uint[] _fieldTags = new uint[] { 816, 809, 824, 773, 777, 805, 720, 728, 789, 793, 752, 760, 736, 744 };
  4790. public static pbd::MessageDescriptor Descriptor {
  4791. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[24]; }
  4792. }
  4793. public pb::FieldAccess.FieldAccessorTable Fields {
  4794. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable; }
  4795. }
  4796. private bool _frozen = false;
  4797. public bool IsFrozen { get { return _frozen; } }
  4798. public TestUnpackedTypes() {
  4799. OnConstruction();
  4800. }
  4801. partial void OnConstruction();
  4802. public TestUnpackedTypes(TestUnpackedTypes other) : this() {
  4803. unpackedInt32_ = other.unpackedInt32_.Clone();
  4804. unpackedInt64_ = other.unpackedInt64_.Clone();
  4805. unpackedUint32_ = other.unpackedUint32_.Clone();
  4806. unpackedUint64_ = other.unpackedUint64_.Clone();
  4807. unpackedSint32_ = other.unpackedSint32_.Clone();
  4808. unpackedSint64_ = other.unpackedSint64_.Clone();
  4809. unpackedFixed32_ = other.unpackedFixed32_.Clone();
  4810. unpackedFixed64_ = other.unpackedFixed64_.Clone();
  4811. unpackedSfixed32_ = other.unpackedSfixed32_.Clone();
  4812. unpackedSfixed64_ = other.unpackedSfixed64_.Clone();
  4813. unpackedFloat_ = other.unpackedFloat_.Clone();
  4814. unpackedDouble_ = other.unpackedDouble_.Clone();
  4815. unpackedBool_ = other.unpackedBool_.Clone();
  4816. unpackedEnum_ = other.unpackedEnum_.Clone();
  4817. }
  4818. public TestUnpackedTypes Clone() {
  4819. return new TestUnpackedTypes(this);
  4820. }
  4821. public void Freeze() {
  4822. if (IsFrozen) {
  4823. return;
  4824. }
  4825. _frozen = true;
  4826. unpackedInt32_.Freeze();
  4827. unpackedInt64_.Freeze();
  4828. unpackedUint32_.Freeze();
  4829. unpackedUint64_.Freeze();
  4830. unpackedSint32_.Freeze();
  4831. unpackedSint64_.Freeze();
  4832. unpackedFixed32_.Freeze();
  4833. unpackedFixed64_.Freeze();
  4834. unpackedSfixed32_.Freeze();
  4835. unpackedSfixed64_.Freeze();
  4836. unpackedFloat_.Freeze();
  4837. unpackedDouble_.Freeze();
  4838. unpackedBool_.Freeze();
  4839. unpackedEnum_.Freeze();
  4840. }
  4841. public const int UnpackedInt32FieldNumber = 90;
  4842. private static readonly pb::FieldCodec<int> _repeated_unpackedInt32_codec
  4843. = pb::FieldCodec.ForInt32(720);
  4844. private readonly pbc::RepeatedField<int> unpackedInt32_ = new pbc::RepeatedField<int>();
  4845. public pbc::RepeatedField<int> UnpackedInt32 {
  4846. get { return unpackedInt32_; }
  4847. }
  4848. public const int UnpackedInt64FieldNumber = 91;
  4849. private static readonly pb::FieldCodec<long> _repeated_unpackedInt64_codec
  4850. = pb::FieldCodec.ForInt64(728);
  4851. private readonly pbc::RepeatedField<long> unpackedInt64_ = new pbc::RepeatedField<long>();
  4852. public pbc::RepeatedField<long> UnpackedInt64 {
  4853. get { return unpackedInt64_; }
  4854. }
  4855. public const int UnpackedUint32FieldNumber = 92;
  4856. private static readonly pb::FieldCodec<uint> _repeated_unpackedUint32_codec
  4857. = pb::FieldCodec.ForUInt32(736);
  4858. private readonly pbc::RepeatedField<uint> unpackedUint32_ = new pbc::RepeatedField<uint>();
  4859. public pbc::RepeatedField<uint> UnpackedUint32 {
  4860. get { return unpackedUint32_; }
  4861. }
  4862. public const int UnpackedUint64FieldNumber = 93;
  4863. private static readonly pb::FieldCodec<ulong> _repeated_unpackedUint64_codec
  4864. = pb::FieldCodec.ForUInt64(744);
  4865. private readonly pbc::RepeatedField<ulong> unpackedUint64_ = new pbc::RepeatedField<ulong>();
  4866. public pbc::RepeatedField<ulong> UnpackedUint64 {
  4867. get { return unpackedUint64_; }
  4868. }
  4869. public const int UnpackedSint32FieldNumber = 94;
  4870. private static readonly pb::FieldCodec<int> _repeated_unpackedSint32_codec
  4871. = pb::FieldCodec.ForSInt32(752);
  4872. private readonly pbc::RepeatedField<int> unpackedSint32_ = new pbc::RepeatedField<int>();
  4873. public pbc::RepeatedField<int> UnpackedSint32 {
  4874. get { return unpackedSint32_; }
  4875. }
  4876. public const int UnpackedSint64FieldNumber = 95;
  4877. private static readonly pb::FieldCodec<long> _repeated_unpackedSint64_codec
  4878. = pb::FieldCodec.ForSInt64(760);
  4879. private readonly pbc::RepeatedField<long> unpackedSint64_ = new pbc::RepeatedField<long>();
  4880. public pbc::RepeatedField<long> UnpackedSint64 {
  4881. get { return unpackedSint64_; }
  4882. }
  4883. public const int UnpackedFixed32FieldNumber = 96;
  4884. private static readonly pb::FieldCodec<uint> _repeated_unpackedFixed32_codec
  4885. = pb::FieldCodec.ForFixed32(773);
  4886. private readonly pbc::RepeatedField<uint> unpackedFixed32_ = new pbc::RepeatedField<uint>();
  4887. public pbc::RepeatedField<uint> UnpackedFixed32 {
  4888. get { return unpackedFixed32_; }
  4889. }
  4890. public const int UnpackedFixed64FieldNumber = 97;
  4891. private static readonly pb::FieldCodec<ulong> _repeated_unpackedFixed64_codec
  4892. = pb::FieldCodec.ForFixed64(777);
  4893. private readonly pbc::RepeatedField<ulong> unpackedFixed64_ = new pbc::RepeatedField<ulong>();
  4894. public pbc::RepeatedField<ulong> UnpackedFixed64 {
  4895. get { return unpackedFixed64_; }
  4896. }
  4897. public const int UnpackedSfixed32FieldNumber = 98;
  4898. private static readonly pb::FieldCodec<int> _repeated_unpackedSfixed32_codec
  4899. = pb::FieldCodec.ForSFixed32(789);
  4900. private readonly pbc::RepeatedField<int> unpackedSfixed32_ = new pbc::RepeatedField<int>();
  4901. public pbc::RepeatedField<int> UnpackedSfixed32 {
  4902. get { return unpackedSfixed32_; }
  4903. }
  4904. public const int UnpackedSfixed64FieldNumber = 99;
  4905. private static readonly pb::FieldCodec<long> _repeated_unpackedSfixed64_codec
  4906. = pb::FieldCodec.ForSFixed64(793);
  4907. private readonly pbc::RepeatedField<long> unpackedSfixed64_ = new pbc::RepeatedField<long>();
  4908. public pbc::RepeatedField<long> UnpackedSfixed64 {
  4909. get { return unpackedSfixed64_; }
  4910. }
  4911. public const int UnpackedFloatFieldNumber = 100;
  4912. private static readonly pb::FieldCodec<float> _repeated_unpackedFloat_codec
  4913. = pb::FieldCodec.ForFloat(805);
  4914. private readonly pbc::RepeatedField<float> unpackedFloat_ = new pbc::RepeatedField<float>();
  4915. public pbc::RepeatedField<float> UnpackedFloat {
  4916. get { return unpackedFloat_; }
  4917. }
  4918. public const int UnpackedDoubleFieldNumber = 101;
  4919. private static readonly pb::FieldCodec<double> _repeated_unpackedDouble_codec
  4920. = pb::FieldCodec.ForDouble(809);
  4921. private readonly pbc::RepeatedField<double> unpackedDouble_ = new pbc::RepeatedField<double>();
  4922. public pbc::RepeatedField<double> UnpackedDouble {
  4923. get { return unpackedDouble_; }
  4924. }
  4925. public const int UnpackedBoolFieldNumber = 102;
  4926. private static readonly pb::FieldCodec<bool> _repeated_unpackedBool_codec
  4927. = pb::FieldCodec.ForBool(816);
  4928. private readonly pbc::RepeatedField<bool> unpackedBool_ = new pbc::RepeatedField<bool>();
  4929. public pbc::RepeatedField<bool> UnpackedBool {
  4930. get { return unpackedBool_; }
  4931. }
  4932. public const int UnpackedEnumFieldNumber = 103;
  4933. private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_unpackedEnum_codec
  4934. = pb::FieldCodec.ForEnum(824, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x);private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> unpackedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum>();
  4935. public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> UnpackedEnum {
  4936. get { return unpackedEnum_; }
  4937. }
  4938. public override bool Equals(object other) {
  4939. return Equals(other as TestUnpackedTypes);
  4940. }
  4941. public bool Equals(TestUnpackedTypes other) {
  4942. if (ReferenceEquals(other, null)) {
  4943. return false;
  4944. }
  4945. if (ReferenceEquals(other, this)) {
  4946. return true;
  4947. }
  4948. if(!unpackedInt32_.Equals(other.unpackedInt32_)) return false;
  4949. if(!unpackedInt64_.Equals(other.unpackedInt64_)) return false;
  4950. if(!unpackedUint32_.Equals(other.unpackedUint32_)) return false;
  4951. if(!unpackedUint64_.Equals(other.unpackedUint64_)) return false;
  4952. if(!unpackedSint32_.Equals(other.unpackedSint32_)) return false;
  4953. if(!unpackedSint64_.Equals(other.unpackedSint64_)) return false;
  4954. if(!unpackedFixed32_.Equals(other.unpackedFixed32_)) return false;
  4955. if(!unpackedFixed64_.Equals(other.unpackedFixed64_)) return false;
  4956. if(!unpackedSfixed32_.Equals(other.unpackedSfixed32_)) return false;
  4957. if(!unpackedSfixed64_.Equals(other.unpackedSfixed64_)) return false;
  4958. if(!unpackedFloat_.Equals(other.unpackedFloat_)) return false;
  4959. if(!unpackedDouble_.Equals(other.unpackedDouble_)) return false;
  4960. if(!unpackedBool_.Equals(other.unpackedBool_)) return false;
  4961. if(!unpackedEnum_.Equals(other.unpackedEnum_)) return false;
  4962. return true;
  4963. }
  4964. public override int GetHashCode() {
  4965. int hash = 1;
  4966. hash ^= unpackedInt32_.GetHashCode();
  4967. hash ^= unpackedInt64_.GetHashCode();
  4968. hash ^= unpackedUint32_.GetHashCode();
  4969. hash ^= unpackedUint64_.GetHashCode();
  4970. hash ^= unpackedSint32_.GetHashCode();
  4971. hash ^= unpackedSint64_.GetHashCode();
  4972. hash ^= unpackedFixed32_.GetHashCode();
  4973. hash ^= unpackedFixed64_.GetHashCode();
  4974. hash ^= unpackedSfixed32_.GetHashCode();
  4975. hash ^= unpackedSfixed64_.GetHashCode();
  4976. hash ^= unpackedFloat_.GetHashCode();
  4977. hash ^= unpackedDouble_.GetHashCode();
  4978. hash ^= unpackedBool_.GetHashCode();
  4979. hash ^= unpackedEnum_.GetHashCode();
  4980. return hash;
  4981. }
  4982. public override string ToString() {
  4983. return pb::JsonFormatter.Default.Format(this);
  4984. }
  4985. public void WriteTo(pb::CodedOutputStream output) {
  4986. unpackedInt32_.WriteTo(output, _repeated_unpackedInt32_codec);
  4987. unpackedInt64_.WriteTo(output, _repeated_unpackedInt64_codec);
  4988. unpackedUint32_.WriteTo(output, _repeated_unpackedUint32_codec);
  4989. unpackedUint64_.WriteTo(output, _repeated_unpackedUint64_codec);
  4990. unpackedSint32_.WriteTo(output, _repeated_unpackedSint32_codec);
  4991. unpackedSint64_.WriteTo(output, _repeated_unpackedSint64_codec);
  4992. unpackedFixed32_.WriteTo(output, _repeated_unpackedFixed32_codec);
  4993. unpackedFixed64_.WriteTo(output, _repeated_unpackedFixed64_codec);
  4994. unpackedSfixed32_.WriteTo(output, _repeated_unpackedSfixed32_codec);
  4995. unpackedSfixed64_.WriteTo(output, _repeated_unpackedSfixed64_codec);
  4996. unpackedFloat_.WriteTo(output, _repeated_unpackedFloat_codec);
  4997. unpackedDouble_.WriteTo(output, _repeated_unpackedDouble_codec);
  4998. unpackedBool_.WriteTo(output, _repeated_unpackedBool_codec);
  4999. unpackedEnum_.WriteTo(output, _repeated_unpackedEnum_codec);
  5000. }
  5001. public int CalculateSize() {
  5002. int size = 0;
  5003. size += unpackedInt32_.CalculateSize(_repeated_unpackedInt32_codec);
  5004. size += unpackedInt64_.CalculateSize(_repeated_unpackedInt64_codec);
  5005. size += unpackedUint32_.CalculateSize(_repeated_unpackedUint32_codec);
  5006. size += unpackedUint64_.CalculateSize(_repeated_unpackedUint64_codec);
  5007. size += unpackedSint32_.CalculateSize(_repeated_unpackedSint32_codec);
  5008. size += unpackedSint64_.CalculateSize(_repeated_unpackedSint64_codec);
  5009. size += unpackedFixed32_.CalculateSize(_repeated_unpackedFixed32_codec);
  5010. size += unpackedFixed64_.CalculateSize(_repeated_unpackedFixed64_codec);
  5011. size += unpackedSfixed32_.CalculateSize(_repeated_unpackedSfixed32_codec);
  5012. size += unpackedSfixed64_.CalculateSize(_repeated_unpackedSfixed64_codec);
  5013. size += unpackedFloat_.CalculateSize(_repeated_unpackedFloat_codec);
  5014. size += unpackedDouble_.CalculateSize(_repeated_unpackedDouble_codec);
  5015. size += unpackedBool_.CalculateSize(_repeated_unpackedBool_codec);
  5016. size += unpackedEnum_.CalculateSize(_repeated_unpackedEnum_codec);
  5017. return size;
  5018. }
  5019. public void MergeFrom(TestUnpackedTypes other) {
  5020. if (other == null) {
  5021. return;
  5022. }
  5023. unpackedInt32_.Add(other.unpackedInt32_);
  5024. unpackedInt64_.Add(other.unpackedInt64_);
  5025. unpackedUint32_.Add(other.unpackedUint32_);
  5026. unpackedUint64_.Add(other.unpackedUint64_);
  5027. unpackedSint32_.Add(other.unpackedSint32_);
  5028. unpackedSint64_.Add(other.unpackedSint64_);
  5029. unpackedFixed32_.Add(other.unpackedFixed32_);
  5030. unpackedFixed64_.Add(other.unpackedFixed64_);
  5031. unpackedSfixed32_.Add(other.unpackedSfixed32_);
  5032. unpackedSfixed64_.Add(other.unpackedSfixed64_);
  5033. unpackedFloat_.Add(other.unpackedFloat_);
  5034. unpackedDouble_.Add(other.unpackedDouble_);
  5035. unpackedBool_.Add(other.unpackedBool_);
  5036. unpackedEnum_.Add(other.unpackedEnum_);
  5037. }
  5038. public void MergeFrom(pb::CodedInputStream input) {
  5039. uint tag;
  5040. while (input.ReadTag(out tag)) {
  5041. switch(tag) {
  5042. case 0:
  5043. throw pb::InvalidProtocolBufferException.InvalidTag();
  5044. default:
  5045. if (pb::WireFormat.IsEndGroupTag(tag)) {
  5046. return;
  5047. }
  5048. break;
  5049. case 722:
  5050. case 720: {
  5051. unpackedInt32_.AddEntriesFrom(input, _repeated_unpackedInt32_codec);
  5052. break;
  5053. }
  5054. case 730:
  5055. case 728: {
  5056. unpackedInt64_.AddEntriesFrom(input, _repeated_unpackedInt64_codec);
  5057. break;
  5058. }
  5059. case 738:
  5060. case 736: {
  5061. unpackedUint32_.AddEntriesFrom(input, _repeated_unpackedUint32_codec);
  5062. break;
  5063. }
  5064. case 746:
  5065. case 744: {
  5066. unpackedUint64_.AddEntriesFrom(input, _repeated_unpackedUint64_codec);
  5067. break;
  5068. }
  5069. case 754:
  5070. case 752: {
  5071. unpackedSint32_.AddEntriesFrom(input, _repeated_unpackedSint32_codec);
  5072. break;
  5073. }
  5074. case 762:
  5075. case 760: {
  5076. unpackedSint64_.AddEntriesFrom(input, _repeated_unpackedSint64_codec);
  5077. break;
  5078. }
  5079. case 770:
  5080. case 773: {
  5081. unpackedFixed32_.AddEntriesFrom(input, _repeated_unpackedFixed32_codec);
  5082. break;
  5083. }
  5084. case 778:
  5085. case 777: {
  5086. unpackedFixed64_.AddEntriesFrom(input, _repeated_unpackedFixed64_codec);
  5087. break;
  5088. }
  5089. case 786:
  5090. case 789: {
  5091. unpackedSfixed32_.AddEntriesFrom(input, _repeated_unpackedSfixed32_codec);
  5092. break;
  5093. }
  5094. case 794:
  5095. case 793: {
  5096. unpackedSfixed64_.AddEntriesFrom(input, _repeated_unpackedSfixed64_codec);
  5097. break;
  5098. }
  5099. case 802:
  5100. case 805: {
  5101. unpackedFloat_.AddEntriesFrom(input, _repeated_unpackedFloat_codec);
  5102. break;
  5103. }
  5104. case 810:
  5105. case 809: {
  5106. unpackedDouble_.AddEntriesFrom(input, _repeated_unpackedDouble_codec);
  5107. break;
  5108. }
  5109. case 818:
  5110. case 816: {
  5111. unpackedBool_.AddEntriesFrom(input, _repeated_unpackedBool_codec);
  5112. break;
  5113. }
  5114. case 826:
  5115. case 824: {
  5116. unpackedEnum_.AddEntriesFrom(input, _repeated_unpackedEnum_codec);
  5117. break;
  5118. }
  5119. }
  5120. }
  5121. }
  5122. }
  5123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5124. public sealed partial class TestRepeatedScalarDifferentTagSizes : pb::IMessage<TestRepeatedScalarDifferentTagSizes> {
  5125. private static readonly pb::MessageParser<TestRepeatedScalarDifferentTagSizes> _parser = new pb::MessageParser<TestRepeatedScalarDifferentTagSizes>(() => new TestRepeatedScalarDifferentTagSizes());
  5126. public static pb::MessageParser<TestRepeatedScalarDifferentTagSizes> Parser { get { return _parser; } }
  5127. private static readonly string[] _fieldNames = new string[] { "repeated_fixed32", "repeated_fixed64", "repeated_float", "repeated_int32", "repeated_int64", "repeated_uint64" };
  5128. private static readonly uint[] _fieldTags = new uint[] { 98, 16370, 2097138, 106, 16378, 2097146 };
  5129. public static pbd::MessageDescriptor Descriptor {
  5130. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[25]; }
  5131. }
  5132. public pb::FieldAccess.FieldAccessorTable Fields {
  5133. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable; }
  5134. }
  5135. private bool _frozen = false;
  5136. public bool IsFrozen { get { return _frozen; } }
  5137. public TestRepeatedScalarDifferentTagSizes() {
  5138. OnConstruction();
  5139. }
  5140. partial void OnConstruction();
  5141. public TestRepeatedScalarDifferentTagSizes(TestRepeatedScalarDifferentTagSizes other) : this() {
  5142. repeatedFixed32_ = other.repeatedFixed32_.Clone();
  5143. repeatedInt32_ = other.repeatedInt32_.Clone();
  5144. repeatedFixed64_ = other.repeatedFixed64_.Clone();
  5145. repeatedInt64_ = other.repeatedInt64_.Clone();
  5146. repeatedFloat_ = other.repeatedFloat_.Clone();
  5147. repeatedUint64_ = other.repeatedUint64_.Clone();
  5148. }
  5149. public TestRepeatedScalarDifferentTagSizes Clone() {
  5150. return new TestRepeatedScalarDifferentTagSizes(this);
  5151. }
  5152. public void Freeze() {
  5153. if (IsFrozen) {
  5154. return;
  5155. }
  5156. _frozen = true;
  5157. repeatedFixed32_.Freeze();
  5158. repeatedInt32_.Freeze();
  5159. repeatedFixed64_.Freeze();
  5160. repeatedInt64_.Freeze();
  5161. repeatedFloat_.Freeze();
  5162. repeatedUint64_.Freeze();
  5163. }
  5164. public const int RepeatedFixed32FieldNumber = 12;
  5165. private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
  5166. = pb::FieldCodec.ForFixed32(98);
  5167. private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
  5168. public pbc::RepeatedField<uint> RepeatedFixed32 {
  5169. get { return repeatedFixed32_; }
  5170. }
  5171. public const int RepeatedInt32FieldNumber = 13;
  5172. private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
  5173. = pb::FieldCodec.ForInt32(106);
  5174. private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
  5175. public pbc::RepeatedField<int> RepeatedInt32 {
  5176. get { return repeatedInt32_; }
  5177. }
  5178. public const int RepeatedFixed64FieldNumber = 2046;
  5179. private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
  5180. = pb::FieldCodec.ForFixed64(16370);
  5181. private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
  5182. public pbc::RepeatedField<ulong> RepeatedFixed64 {
  5183. get { return repeatedFixed64_; }
  5184. }
  5185. public const int RepeatedInt64FieldNumber = 2047;
  5186. private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
  5187. = pb::FieldCodec.ForInt64(16378);
  5188. private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
  5189. public pbc::RepeatedField<long> RepeatedInt64 {
  5190. get { return repeatedInt64_; }
  5191. }
  5192. public const int RepeatedFloatFieldNumber = 262142;
  5193. private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
  5194. = pb::FieldCodec.ForFloat(2097138);
  5195. private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
  5196. public pbc::RepeatedField<float> RepeatedFloat {
  5197. get { return repeatedFloat_; }
  5198. }
  5199. public const int RepeatedUint64FieldNumber = 262143;
  5200. private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
  5201. = pb::FieldCodec.ForUInt64(2097146);
  5202. private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
  5203. public pbc::RepeatedField<ulong> RepeatedUint64 {
  5204. get { return repeatedUint64_; }
  5205. }
  5206. public override bool Equals(object other) {
  5207. return Equals(other as TestRepeatedScalarDifferentTagSizes);
  5208. }
  5209. public bool Equals(TestRepeatedScalarDifferentTagSizes other) {
  5210. if (ReferenceEquals(other, null)) {
  5211. return false;
  5212. }
  5213. if (ReferenceEquals(other, this)) {
  5214. return true;
  5215. }
  5216. if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
  5217. if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
  5218. if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
  5219. if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
  5220. if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
  5221. if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
  5222. return true;
  5223. }
  5224. public override int GetHashCode() {
  5225. int hash = 1;
  5226. hash ^= repeatedFixed32_.GetHashCode();
  5227. hash ^= repeatedInt32_.GetHashCode();
  5228. hash ^= repeatedFixed64_.GetHashCode();
  5229. hash ^= repeatedInt64_.GetHashCode();
  5230. hash ^= repeatedFloat_.GetHashCode();
  5231. hash ^= repeatedUint64_.GetHashCode();
  5232. return hash;
  5233. }
  5234. public override string ToString() {
  5235. return pb::JsonFormatter.Default.Format(this);
  5236. }
  5237. public void WriteTo(pb::CodedOutputStream output) {
  5238. repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
  5239. repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
  5240. repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
  5241. repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
  5242. repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
  5243. repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
  5244. }
  5245. public int CalculateSize() {
  5246. int size = 0;
  5247. size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
  5248. size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
  5249. size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
  5250. size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
  5251. size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
  5252. size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
  5253. return size;
  5254. }
  5255. public void MergeFrom(TestRepeatedScalarDifferentTagSizes other) {
  5256. if (other == null) {
  5257. return;
  5258. }
  5259. repeatedFixed32_.Add(other.repeatedFixed32_);
  5260. repeatedInt32_.Add(other.repeatedInt32_);
  5261. repeatedFixed64_.Add(other.repeatedFixed64_);
  5262. repeatedInt64_.Add(other.repeatedInt64_);
  5263. repeatedFloat_.Add(other.repeatedFloat_);
  5264. repeatedUint64_.Add(other.repeatedUint64_);
  5265. }
  5266. public void MergeFrom(pb::CodedInputStream input) {
  5267. uint tag;
  5268. while (input.ReadTag(out tag)) {
  5269. switch(tag) {
  5270. case 0:
  5271. throw pb::InvalidProtocolBufferException.InvalidTag();
  5272. default:
  5273. if (pb::WireFormat.IsEndGroupTag(tag)) {
  5274. return;
  5275. }
  5276. break;
  5277. case 98:
  5278. case 101: {
  5279. repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
  5280. break;
  5281. }
  5282. case 106:
  5283. case 104: {
  5284. repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
  5285. break;
  5286. }
  5287. case 16370:
  5288. case 16369: {
  5289. repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
  5290. break;
  5291. }
  5292. case 16378:
  5293. case 16376: {
  5294. repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
  5295. break;
  5296. }
  5297. case 2097138:
  5298. case 2097141: {
  5299. repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
  5300. break;
  5301. }
  5302. case 2097146:
  5303. case 2097144: {
  5304. repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
  5305. break;
  5306. }
  5307. }
  5308. }
  5309. }
  5310. }
  5311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5312. public sealed partial class TestCommentInjectionMessage : pb::IMessage<TestCommentInjectionMessage> {
  5313. private static readonly pb::MessageParser<TestCommentInjectionMessage> _parser = new pb::MessageParser<TestCommentInjectionMessage>(() => new TestCommentInjectionMessage());
  5314. public static pb::MessageParser<TestCommentInjectionMessage> Parser { get { return _parser; } }
  5315. private static readonly string[] _fieldNames = new string[] { "a" };
  5316. private static readonly uint[] _fieldTags = new uint[] { 10 };
  5317. public static pbd::MessageDescriptor Descriptor {
  5318. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[26]; }
  5319. }
  5320. public pb::FieldAccess.FieldAccessorTable Fields {
  5321. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestCommentInjectionMessage__FieldAccessorTable; }
  5322. }
  5323. private bool _frozen = false;
  5324. public bool IsFrozen { get { return _frozen; } }
  5325. public TestCommentInjectionMessage() {
  5326. OnConstruction();
  5327. }
  5328. partial void OnConstruction();
  5329. public TestCommentInjectionMessage(TestCommentInjectionMessage other) : this() {
  5330. a_ = other.a_;
  5331. }
  5332. public TestCommentInjectionMessage Clone() {
  5333. return new TestCommentInjectionMessage(this);
  5334. }
  5335. public void Freeze() {
  5336. if (IsFrozen) {
  5337. return;
  5338. }
  5339. _frozen = true;
  5340. }
  5341. public const int AFieldNumber = 1;
  5342. private string a_ = "";
  5343. public string A {
  5344. get { return a_; }
  5345. set {
  5346. pb::Freezable.CheckMutable(this);
  5347. a_ = value ?? "";
  5348. }
  5349. }
  5350. public override bool Equals(object other) {
  5351. return Equals(other as TestCommentInjectionMessage);
  5352. }
  5353. public bool Equals(TestCommentInjectionMessage other) {
  5354. if (ReferenceEquals(other, null)) {
  5355. return false;
  5356. }
  5357. if (ReferenceEquals(other, this)) {
  5358. return true;
  5359. }
  5360. if (A != other.A) return false;
  5361. return true;
  5362. }
  5363. public override int GetHashCode() {
  5364. int hash = 1;
  5365. if (A.Length != 0) hash ^= A.GetHashCode();
  5366. return hash;
  5367. }
  5368. public override string ToString() {
  5369. return pb::JsonFormatter.Default.Format(this);
  5370. }
  5371. public void WriteTo(pb::CodedOutputStream output) {
  5372. if (A.Length != 0) {
  5373. output.WriteRawTag(10);
  5374. output.WriteString(A);
  5375. }
  5376. }
  5377. public int CalculateSize() {
  5378. int size = 0;
  5379. if (A.Length != 0) {
  5380. size += 1 + pb::CodedOutputStream.ComputeStringSize(A);
  5381. }
  5382. return size;
  5383. }
  5384. public void MergeFrom(TestCommentInjectionMessage other) {
  5385. if (other == null) {
  5386. return;
  5387. }
  5388. if (other.A.Length != 0) {
  5389. A = other.A;
  5390. }
  5391. }
  5392. public void MergeFrom(pb::CodedInputStream input) {
  5393. uint tag;
  5394. while (input.ReadTag(out tag)) {
  5395. switch(tag) {
  5396. case 0:
  5397. throw pb::InvalidProtocolBufferException.InvalidTag();
  5398. default:
  5399. if (pb::WireFormat.IsEndGroupTag(tag)) {
  5400. return;
  5401. }
  5402. break;
  5403. case 10: {
  5404. A = input.ReadString();
  5405. break;
  5406. }
  5407. }
  5408. }
  5409. }
  5410. }
  5411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5412. public sealed partial class FooRequest : pb::IMessage<FooRequest> {
  5413. private static readonly pb::MessageParser<FooRequest> _parser = new pb::MessageParser<FooRequest>(() => new FooRequest());
  5414. public static pb::MessageParser<FooRequest> Parser { get { return _parser; } }
  5415. private static readonly string[] _fieldNames = new string[] { };
  5416. private static readonly uint[] _fieldTags = new uint[] { };
  5417. public static pbd::MessageDescriptor Descriptor {
  5418. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[27]; }
  5419. }
  5420. public pb::FieldAccess.FieldAccessorTable Fields {
  5421. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; }
  5422. }
  5423. private bool _frozen = false;
  5424. public bool IsFrozen { get { return _frozen; } }
  5425. public FooRequest() {
  5426. OnConstruction();
  5427. }
  5428. partial void OnConstruction();
  5429. public FooRequest(FooRequest other) : this() {
  5430. }
  5431. public FooRequest Clone() {
  5432. return new FooRequest(this);
  5433. }
  5434. public void Freeze() {
  5435. if (IsFrozen) {
  5436. return;
  5437. }
  5438. _frozen = true;
  5439. }
  5440. public override bool Equals(object other) {
  5441. return Equals(other as FooRequest);
  5442. }
  5443. public bool Equals(FooRequest other) {
  5444. if (ReferenceEquals(other, null)) {
  5445. return false;
  5446. }
  5447. if (ReferenceEquals(other, this)) {
  5448. return true;
  5449. }
  5450. return true;
  5451. }
  5452. public override int GetHashCode() {
  5453. int hash = 1;
  5454. return hash;
  5455. }
  5456. public override string ToString() {
  5457. return pb::JsonFormatter.Default.Format(this);
  5458. }
  5459. public void WriteTo(pb::CodedOutputStream output) {
  5460. }
  5461. public int CalculateSize() {
  5462. int size = 0;
  5463. return size;
  5464. }
  5465. public void MergeFrom(FooRequest other) {
  5466. if (other == null) {
  5467. return;
  5468. }
  5469. }
  5470. public void MergeFrom(pb::CodedInputStream input) {
  5471. uint tag;
  5472. while (input.ReadTag(out tag)) {
  5473. switch(tag) {
  5474. case 0:
  5475. throw pb::InvalidProtocolBufferException.InvalidTag();
  5476. default:
  5477. if (pb::WireFormat.IsEndGroupTag(tag)) {
  5478. return;
  5479. }
  5480. break;
  5481. }
  5482. }
  5483. }
  5484. }
  5485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5486. public sealed partial class FooResponse : pb::IMessage<FooResponse> {
  5487. private static readonly pb::MessageParser<FooResponse> _parser = new pb::MessageParser<FooResponse>(() => new FooResponse());
  5488. public static pb::MessageParser<FooResponse> Parser { get { return _parser; } }
  5489. private static readonly string[] _fieldNames = new string[] { };
  5490. private static readonly uint[] _fieldTags = new uint[] { };
  5491. public static pbd::MessageDescriptor Descriptor {
  5492. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[28]; }
  5493. }
  5494. public pb::FieldAccess.FieldAccessorTable Fields {
  5495. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; }
  5496. }
  5497. private bool _frozen = false;
  5498. public bool IsFrozen { get { return _frozen; } }
  5499. public FooResponse() {
  5500. OnConstruction();
  5501. }
  5502. partial void OnConstruction();
  5503. public FooResponse(FooResponse other) : this() {
  5504. }
  5505. public FooResponse Clone() {
  5506. return new FooResponse(this);
  5507. }
  5508. public void Freeze() {
  5509. if (IsFrozen) {
  5510. return;
  5511. }
  5512. _frozen = true;
  5513. }
  5514. public override bool Equals(object other) {
  5515. return Equals(other as FooResponse);
  5516. }
  5517. public bool Equals(FooResponse other) {
  5518. if (ReferenceEquals(other, null)) {
  5519. return false;
  5520. }
  5521. if (ReferenceEquals(other, this)) {
  5522. return true;
  5523. }
  5524. return true;
  5525. }
  5526. public override int GetHashCode() {
  5527. int hash = 1;
  5528. return hash;
  5529. }
  5530. public override string ToString() {
  5531. return pb::JsonFormatter.Default.Format(this);
  5532. }
  5533. public void WriteTo(pb::CodedOutputStream output) {
  5534. }
  5535. public int CalculateSize() {
  5536. int size = 0;
  5537. return size;
  5538. }
  5539. public void MergeFrom(FooResponse other) {
  5540. if (other == null) {
  5541. return;
  5542. }
  5543. }
  5544. public void MergeFrom(pb::CodedInputStream input) {
  5545. uint tag;
  5546. while (input.ReadTag(out tag)) {
  5547. switch(tag) {
  5548. case 0:
  5549. throw pb::InvalidProtocolBufferException.InvalidTag();
  5550. default:
  5551. if (pb::WireFormat.IsEndGroupTag(tag)) {
  5552. return;
  5553. }
  5554. break;
  5555. }
  5556. }
  5557. }
  5558. }
  5559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5560. public sealed partial class FooClientMessage : pb::IMessage<FooClientMessage> {
  5561. private static readonly pb::MessageParser<FooClientMessage> _parser = new pb::MessageParser<FooClientMessage>(() => new FooClientMessage());
  5562. public static pb::MessageParser<FooClientMessage> Parser { get { return _parser; } }
  5563. private static readonly string[] _fieldNames = new string[] { };
  5564. private static readonly uint[] _fieldTags = new uint[] { };
  5565. public static pbd::MessageDescriptor Descriptor {
  5566. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[29]; }
  5567. }
  5568. public pb::FieldAccess.FieldAccessorTable Fields {
  5569. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_FooClientMessage__FieldAccessorTable; }
  5570. }
  5571. private bool _frozen = false;
  5572. public bool IsFrozen { get { return _frozen; } }
  5573. public FooClientMessage() {
  5574. OnConstruction();
  5575. }
  5576. partial void OnConstruction();
  5577. public FooClientMessage(FooClientMessage other) : this() {
  5578. }
  5579. public FooClientMessage Clone() {
  5580. return new FooClientMessage(this);
  5581. }
  5582. public void Freeze() {
  5583. if (IsFrozen) {
  5584. return;
  5585. }
  5586. _frozen = true;
  5587. }
  5588. public override bool Equals(object other) {
  5589. return Equals(other as FooClientMessage);
  5590. }
  5591. public bool Equals(FooClientMessage other) {
  5592. if (ReferenceEquals(other, null)) {
  5593. return false;
  5594. }
  5595. if (ReferenceEquals(other, this)) {
  5596. return true;
  5597. }
  5598. return true;
  5599. }
  5600. public override int GetHashCode() {
  5601. int hash = 1;
  5602. return hash;
  5603. }
  5604. public override string ToString() {
  5605. return pb::JsonFormatter.Default.Format(this);
  5606. }
  5607. public void WriteTo(pb::CodedOutputStream output) {
  5608. }
  5609. public int CalculateSize() {
  5610. int size = 0;
  5611. return size;
  5612. }
  5613. public void MergeFrom(FooClientMessage other) {
  5614. if (other == null) {
  5615. return;
  5616. }
  5617. }
  5618. public void MergeFrom(pb::CodedInputStream input) {
  5619. uint tag;
  5620. while (input.ReadTag(out tag)) {
  5621. switch(tag) {
  5622. case 0:
  5623. throw pb::InvalidProtocolBufferException.InvalidTag();
  5624. default:
  5625. if (pb::WireFormat.IsEndGroupTag(tag)) {
  5626. return;
  5627. }
  5628. break;
  5629. }
  5630. }
  5631. }
  5632. }
  5633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5634. public sealed partial class FooServerMessage : pb::IMessage<FooServerMessage> {
  5635. private static readonly pb::MessageParser<FooServerMessage> _parser = new pb::MessageParser<FooServerMessage>(() => new FooServerMessage());
  5636. public static pb::MessageParser<FooServerMessage> Parser { get { return _parser; } }
  5637. private static readonly string[] _fieldNames = new string[] { };
  5638. private static readonly uint[] _fieldTags = new uint[] { };
  5639. public static pbd::MessageDescriptor Descriptor {
  5640. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[30]; }
  5641. }
  5642. public pb::FieldAccess.FieldAccessorTable Fields {
  5643. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_FooServerMessage__FieldAccessorTable; }
  5644. }
  5645. private bool _frozen = false;
  5646. public bool IsFrozen { get { return _frozen; } }
  5647. public FooServerMessage() {
  5648. OnConstruction();
  5649. }
  5650. partial void OnConstruction();
  5651. public FooServerMessage(FooServerMessage other) : this() {
  5652. }
  5653. public FooServerMessage Clone() {
  5654. return new FooServerMessage(this);
  5655. }
  5656. public void Freeze() {
  5657. if (IsFrozen) {
  5658. return;
  5659. }
  5660. _frozen = true;
  5661. }
  5662. public override bool Equals(object other) {
  5663. return Equals(other as FooServerMessage);
  5664. }
  5665. public bool Equals(FooServerMessage other) {
  5666. if (ReferenceEquals(other, null)) {
  5667. return false;
  5668. }
  5669. if (ReferenceEquals(other, this)) {
  5670. return true;
  5671. }
  5672. return true;
  5673. }
  5674. public override int GetHashCode() {
  5675. int hash = 1;
  5676. return hash;
  5677. }
  5678. public override string ToString() {
  5679. return pb::JsonFormatter.Default.Format(this);
  5680. }
  5681. public void WriteTo(pb::CodedOutputStream output) {
  5682. }
  5683. public int CalculateSize() {
  5684. int size = 0;
  5685. return size;
  5686. }
  5687. public void MergeFrom(FooServerMessage other) {
  5688. if (other == null) {
  5689. return;
  5690. }
  5691. }
  5692. public void MergeFrom(pb::CodedInputStream input) {
  5693. uint tag;
  5694. while (input.ReadTag(out tag)) {
  5695. switch(tag) {
  5696. case 0:
  5697. throw pb::InvalidProtocolBufferException.InvalidTag();
  5698. default:
  5699. if (pb::WireFormat.IsEndGroupTag(tag)) {
  5700. return;
  5701. }
  5702. break;
  5703. }
  5704. }
  5705. }
  5706. }
  5707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5708. public sealed partial class BarRequest : pb::IMessage<BarRequest> {
  5709. private static readonly pb::MessageParser<BarRequest> _parser = new pb::MessageParser<BarRequest>(() => new BarRequest());
  5710. public static pb::MessageParser<BarRequest> Parser { get { return _parser; } }
  5711. private static readonly string[] _fieldNames = new string[] { };
  5712. private static readonly uint[] _fieldTags = new uint[] { };
  5713. public static pbd::MessageDescriptor Descriptor {
  5714. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[31]; }
  5715. }
  5716. public pb::FieldAccess.FieldAccessorTable Fields {
  5717. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; }
  5718. }
  5719. private bool _frozen = false;
  5720. public bool IsFrozen { get { return _frozen; } }
  5721. public BarRequest() {
  5722. OnConstruction();
  5723. }
  5724. partial void OnConstruction();
  5725. public BarRequest(BarRequest other) : this() {
  5726. }
  5727. public BarRequest Clone() {
  5728. return new BarRequest(this);
  5729. }
  5730. public void Freeze() {
  5731. if (IsFrozen) {
  5732. return;
  5733. }
  5734. _frozen = true;
  5735. }
  5736. public override bool Equals(object other) {
  5737. return Equals(other as BarRequest);
  5738. }
  5739. public bool Equals(BarRequest other) {
  5740. if (ReferenceEquals(other, null)) {
  5741. return false;
  5742. }
  5743. if (ReferenceEquals(other, this)) {
  5744. return true;
  5745. }
  5746. return true;
  5747. }
  5748. public override int GetHashCode() {
  5749. int hash = 1;
  5750. return hash;
  5751. }
  5752. public override string ToString() {
  5753. return pb::JsonFormatter.Default.Format(this);
  5754. }
  5755. public void WriteTo(pb::CodedOutputStream output) {
  5756. }
  5757. public int CalculateSize() {
  5758. int size = 0;
  5759. return size;
  5760. }
  5761. public void MergeFrom(BarRequest other) {
  5762. if (other == null) {
  5763. return;
  5764. }
  5765. }
  5766. public void MergeFrom(pb::CodedInputStream input) {
  5767. uint tag;
  5768. while (input.ReadTag(out tag)) {
  5769. switch(tag) {
  5770. case 0:
  5771. throw pb::InvalidProtocolBufferException.InvalidTag();
  5772. default:
  5773. if (pb::WireFormat.IsEndGroupTag(tag)) {
  5774. return;
  5775. }
  5776. break;
  5777. }
  5778. }
  5779. }
  5780. }
  5781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5782. public sealed partial class BarResponse : pb::IMessage<BarResponse> {
  5783. private static readonly pb::MessageParser<BarResponse> _parser = new pb::MessageParser<BarResponse>(() => new BarResponse());
  5784. public static pb::MessageParser<BarResponse> Parser { get { return _parser; } }
  5785. private static readonly string[] _fieldNames = new string[] { };
  5786. private static readonly uint[] _fieldTags = new uint[] { };
  5787. public static pbd::MessageDescriptor Descriptor {
  5788. get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[32]; }
  5789. }
  5790. public pb::FieldAccess.FieldAccessorTable Fields {
  5791. get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; }
  5792. }
  5793. private bool _frozen = false;
  5794. public bool IsFrozen { get { return _frozen; } }
  5795. public BarResponse() {
  5796. OnConstruction();
  5797. }
  5798. partial void OnConstruction();
  5799. public BarResponse(BarResponse other) : this() {
  5800. }
  5801. public BarResponse Clone() {
  5802. return new BarResponse(this);
  5803. }
  5804. public void Freeze() {
  5805. if (IsFrozen) {
  5806. return;
  5807. }
  5808. _frozen = true;
  5809. }
  5810. public override bool Equals(object other) {
  5811. return Equals(other as BarResponse);
  5812. }
  5813. public bool Equals(BarResponse other) {
  5814. if (ReferenceEquals(other, null)) {
  5815. return false;
  5816. }
  5817. if (ReferenceEquals(other, this)) {
  5818. return true;
  5819. }
  5820. return true;
  5821. }
  5822. public override int GetHashCode() {
  5823. int hash = 1;
  5824. return hash;
  5825. }
  5826. public override string ToString() {
  5827. return pb::JsonFormatter.Default.Format(this);
  5828. }
  5829. public void WriteTo(pb::CodedOutputStream output) {
  5830. }
  5831. public int CalculateSize() {
  5832. int size = 0;
  5833. return size;
  5834. }
  5835. public void MergeFrom(BarResponse other) {
  5836. if (other == null) {
  5837. return;
  5838. }
  5839. }
  5840. public void MergeFrom(pb::CodedInputStream input) {
  5841. uint tag;
  5842. while (input.ReadTag(out tag)) {
  5843. switch(tag) {
  5844. case 0:
  5845. throw pb::InvalidProtocolBufferException.InvalidTag();
  5846. default:
  5847. if (pb::WireFormat.IsEndGroupTag(tag)) {
  5848. return;
  5849. }
  5850. break;
  5851. }
  5852. }
  5853. }
  5854. }
  5855. #endregion
  5856. }
  5857. #endregion Designer generated code