UnittestProto3.cs 202 KB

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