123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/protobuf/unittest_proto3.proto
- #pragma warning disable 1591, 0612, 3021
- #region Designer generated code
- using pb = global::Google.Protobuf;
- using pbc = global::Google.Protobuf.Collections;
- using pbd = global::Google.Protobuf.Descriptors;
- using scg = global::System.Collections.Generic;
- namespace Google.Protobuf.TestProtos {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class UnittestProto3 {
- #region Static variables
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestReservedFields__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_SparseEnumMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_OneString__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_MoreString__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_OneBytes__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_MoreBytes__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_Int32Message__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_Uint32Message__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_Int64Message__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_Uint64Message__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_BoolMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestOneof__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestCommentInjectionMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooRequest__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooResponse__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooClientMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooServerMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_BarRequest__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_BarResponse__FieldAccessorTable;
- #endregion
- #region Descriptor
- public static pbd::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbd::FileDescriptor descriptor;
- static UnittestProto3() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "CiVnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfcHJvdG8zLnByb3RvEhFwcm90",
- "b2J1Zl91bml0dGVzdBosZ29vZ2xlL3Byb3RvYnVmL3VuaXR0ZXN0X2ltcG9y",
- "dF9wcm90bzMucHJvdG8i8A8KDFRlc3RBbGxUeXBlcxIUCgxzaW5nbGVfaW50",
- "MzIYASABKAUSFAoMc2luZ2xlX2ludDY0GAIgASgDEhUKDXNpbmdsZV91aW50",
- "MzIYAyABKA0SFQoNc2luZ2xlX3VpbnQ2NBgEIAEoBBIVCg1zaW5nbGVfc2lu",
- "dDMyGAUgASgREhUKDXNpbmdsZV9zaW50NjQYBiABKBISFgoOc2luZ2xlX2Zp",
- "eGVkMzIYByABKAcSFgoOc2luZ2xlX2ZpeGVkNjQYCCABKAYSFwoPc2luZ2xl",
- "X3NmaXhlZDMyGAkgASgPEhcKD3NpbmdsZV9zZml4ZWQ2NBgKIAEoEBIUCgxz",
- "aW5nbGVfZmxvYXQYCyABKAISFQoNc2luZ2xlX2RvdWJsZRgMIAEoARITCgtz",
- "aW5nbGVfYm9vbBgNIAEoCBIVCg1zaW5nbGVfc3RyaW5nGA4gASgJEhQKDHNp",
- "bmdsZV9ieXRlcxgPIAEoDBJMChVzaW5nbGVfbmVzdGVkX21lc3NhZ2UYEiAB",
- "KAsyLS5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVzdGVkTWVz",
- "c2FnZRJBChZzaW5nbGVfZm9yZWlnbl9tZXNzYWdlGBMgASgLMiEucHJvdG9i",
- "dWZfdW5pdHRlc3QuRm9yZWlnbk1lc3NhZ2USRgoVc2luZ2xlX2ltcG9ydF9t",
- "ZXNzYWdlGBQgASgLMicucHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9y",
- "dE1lc3NhZ2USRgoSc2luZ2xlX25lc3RlZF9lbnVtGBUgASgOMioucHJvdG9i",
- "dWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzLk5lc3RlZEVudW0SOwoTc2luZ2xl",
- "X2ZvcmVpZ25fZW51bRgWIAEoDjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVp",
- "Z25FbnVtEkAKEnNpbmdsZV9pbXBvcnRfZW51bRgXIAEoDjIkLnByb3RvYnVm",
- "X3VuaXR0ZXN0X2ltcG9ydC5JbXBvcnRFbnVtElMKHHNpbmdsZV9wdWJsaWNf",
- "aW1wb3J0X21lc3NhZ2UYGiABKAsyLS5wcm90b2J1Zl91bml0dGVzdF9pbXBv",
- "cnQuUHVibGljSW1wb3J0TWVzc2FnZRIWCg5yZXBlYXRlZF9pbnQzMhgfIAMo",
- "BRIWCg5yZXBlYXRlZF9pbnQ2NBggIAMoAxIXCg9yZXBlYXRlZF91aW50MzIY",
- "ISADKA0SFwoPcmVwZWF0ZWRfdWludDY0GCIgAygEEhcKD3JlcGVhdGVkX3Np",
- "bnQzMhgjIAMoERIXCg9yZXBlYXRlZF9zaW50NjQYJCADKBISGAoQcmVwZWF0",
- "ZWRfZml4ZWQzMhglIAMoBxIYChByZXBlYXRlZF9maXhlZDY0GCYgAygGEhkK",
- "EXJlcGVhdGVkX3NmaXhlZDMyGCcgAygPEhkKEXJlcGVhdGVkX3NmaXhlZDY0",
- "GCggAygQEhYKDnJlcGVhdGVkX2Zsb2F0GCkgAygCEhcKD3JlcGVhdGVkX2Rv",
- "dWJsZRgqIAMoARIVCg1yZXBlYXRlZF9ib29sGCsgAygIEhcKD3JlcGVhdGVk",
- "X3N0cmluZxgsIAMoCRIWCg5yZXBlYXRlZF9ieXRlcxgtIAMoDBJOChdyZXBl",
- "YXRlZF9uZXN0ZWRfbWVzc2FnZRgwIAMoCzItLnByb3RvYnVmX3VuaXR0ZXN0",
- "LlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlEkMKGHJlcGVhdGVkX2ZvcmVp",
- "Z25fbWVzc2FnZRgxIAMoCzIhLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25N",
- "ZXNzYWdlEkgKF3JlcGVhdGVkX2ltcG9ydF9tZXNzYWdlGDIgAygLMicucHJv",
- "dG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9ydE1lc3NhZ2USSAoUcmVwZWF0",
- "ZWRfbmVzdGVkX2VudW0YMyADKA4yKi5wcm90b2J1Zl91bml0dGVzdC5UZXN0",
- "QWxsVHlwZXMuTmVzdGVkRW51bRI9ChVyZXBlYXRlZF9mb3JlaWduX2VudW0Y",
- "NCADKA4yHi5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduRW51bRJCChRyZXBl",
- "YXRlZF9pbXBvcnRfZW51bRg1IAMoDjIkLnByb3RvYnVmX3VuaXR0ZXN0X2lt",
- "cG9ydC5JbXBvcnRFbnVtElUKHnJlcGVhdGVkX3B1YmxpY19pbXBvcnRfbWVz",
- "c2FnZRg2IAMoCzItLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydC5QdWJsaWNJ",
- "bXBvcnRNZXNzYWdlEhYKDG9uZW9mX3VpbnQzMhhvIAEoDUgAEk0KFG9uZW9m",
- "X25lc3RlZF9tZXNzYWdlGHAgASgLMi0ucHJvdG9idWZfdW5pdHRlc3QuVGVz",
- "dEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2VIABIWCgxvbmVvZl9zdHJpbmcYcSAB",
- "KAlIABIVCgtvbmVvZl9ieXRlcxhyIAEoDEgAGhsKDU5lc3RlZE1lc3NhZ2US",
- "CgoCYmIYASABKAUiVgoKTmVzdGVkRW51bRIbChdORVNURURfRU5VTV9VTlNQ",
- "RUNJRklFRBAAEgcKA0ZPTxABEgcKA0JBUhACEgcKA0JBWhADEhAKA05FRxD/",
- "//////////8BQg0KC29uZW9mX2ZpZWxkIrsBChJOZXN0ZWRUZXN0QWxsVHlw",
- "ZXMSNAoFY2hpbGQYASABKAsyJS5wcm90b2J1Zl91bml0dGVzdC5OZXN0ZWRU",
- "ZXN0QWxsVHlwZXMSMAoHcGF5bG9hZBgCIAEoCzIfLnByb3RvYnVmX3VuaXR0",
- "ZXN0LlRlc3RBbGxUeXBlcxI9Cg5yZXBlYXRlZF9jaGlsZBgDIAMoCzIlLnBy",
- "b3RvYnVmX3VuaXR0ZXN0Lk5lc3RlZFRlc3RBbGxUeXBlcyI0ChRUZXN0RGVw",
- "cmVjYXRlZEZpZWxkcxIcChBkZXByZWNhdGVkX2ludDMyGAEgASgFQgIYASIb",
- "Cg5Gb3JlaWduTWVzc2FnZRIJCgFjGAEgASgFIjAKElRlc3RSZXNlcnZlZEZp",
- "ZWxkc0oECAIQA0oECA8QEEoECAkQDFIDYmFyUgNiYXoiWgoRVGVzdEZvcmVp",
- "Z25OZXN0ZWQSRQoOZm9yZWlnbl9uZXN0ZWQYASABKAsyLS5wcm90b2J1Zl91",
- "bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZSI0ChhUZXN0UmVh",
- "bGx5TGFyZ2VUYWdOdW1iZXISCQoBYRgBIAEoBRINCgJiYhj///9/IAEoBSJV",
- "ChRUZXN0UmVjdXJzaXZlTWVzc2FnZRIyCgFhGAEgASgLMicucHJvdG9idWZf",
- "dW5pdHRlc3QuVGVzdFJlY3Vyc2l2ZU1lc3NhZ2USCQoBaRgCIAEoBSJLChRU",
- "ZXN0TXV0dWFsUmVjdXJzaW9uQRIzCgJiYhgBIAEoCzInLnByb3RvYnVmX3Vu",
- "aXR0ZXN0LlRlc3RNdXR1YWxSZWN1cnNpb25CImIKFFRlc3RNdXR1YWxSZWN1",
- "cnNpb25CEjIKAWEYASABKAsyJy5wcm90b2J1Zl91bml0dGVzdC5UZXN0TXV0",
- "dWFsUmVjdXJzaW9uQRIWCg5vcHRpb25hbF9pbnQzMhgCIAEoBSLrAgoXVGVz",
- "dENhbWVsQ2FzZUZpZWxkTmFtZXMSFgoOUHJpbWl0aXZlRmllbGQYASABKAUS",
- "EwoLU3RyaW5nRmllbGQYAiABKAkSMQoJRW51bUZpZWxkGAMgASgOMh4ucHJv",
- "dG9idWZfdW5pdHRlc3QuRm9yZWlnbkVudW0SNwoMTWVzc2FnZUZpZWxkGAQg",
- "ASgLMiEucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbk1lc3NhZ2USHgoWUmVw",
- "ZWF0ZWRQcmltaXRpdmVGaWVsZBgHIAMoBRIbChNSZXBlYXRlZFN0cmluZ0Zp",
- "ZWxkGAggAygJEjkKEVJlcGVhdGVkRW51bUZpZWxkGAkgAygOMh4ucHJvdG9i",
- "dWZfdW5pdHRlc3QuRm9yZWlnbkVudW0SPwoUUmVwZWF0ZWRNZXNzYWdlRmll",
- "bGQYCiADKAsyIS5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduTWVzc2FnZSLH",
- "AQoSVGVzdEZpZWxkT3JkZXJpbmdzEhEKCW15X3N0cmluZxgLIAEoCRIOCgZt",
- "eV9pbnQYASABKAMSEAoIbXlfZmxvYXQYZSABKAISUwoVc2luZ2xlX25lc3Rl",
- "ZF9tZXNzYWdlGMgBIAEoCzIzLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RGaWVs",
- "ZE9yZGVyaW5ncy5OZXN0ZWRNZXNzYWdlGicKDU5lc3RlZE1lc3NhZ2USCgoC",
- "b28YAiABKAMSCgoCYmIYASABKAUiSwoRU3BhcnNlRW51bU1lc3NhZ2USNgoL",
- "c3BhcnNlX2VudW0YASABKA4yIS5wcm90b2J1Zl91bml0dGVzdC5UZXN0U3Bh",
- "cnNlRW51bSIZCglPbmVTdHJpbmcSDAoEZGF0YRgBIAEoCSIaCgpNb3JlU3Ry",
- "aW5nEgwKBGRhdGEYASADKAkiGAoIT25lQnl0ZXMSDAoEZGF0YRgBIAEoDCIZ",
- "CglNb3JlQnl0ZXMSDAoEZGF0YRgBIAEoDCIcCgxJbnQzMk1lc3NhZ2USDAoE",
- "ZGF0YRgBIAEoBSIdCg1VaW50MzJNZXNzYWdlEgwKBGRhdGEYASABKA0iHAoM",
- "SW50NjRNZXNzYWdlEgwKBGRhdGEYASABKAMiHQoNVWludDY0TWVzc2FnZRIM",
- "CgRkYXRhGAEgASgEIhsKC0Jvb2xNZXNzYWdlEgwKBGRhdGEYASABKAgicwoJ",
- "VGVzdE9uZW9mEhEKB2Zvb19pbnQYASABKAVIABIUCgpmb29fc3RyaW5nGAIg",
- "ASgJSAASNgoLZm9vX21lc3NhZ2UYAyABKAsyHy5wcm90b2J1Zl91bml0dGVz",
- "dC5UZXN0QWxsVHlwZXNIAEIFCgNmb28iqgMKD1Rlc3RQYWNrZWRUeXBlcxIY",
- "CgxwYWNrZWRfaW50MzIYWiADKAVCAhABEhgKDHBhY2tlZF9pbnQ2NBhbIAMo",
- "A0ICEAESGQoNcGFja2VkX3VpbnQzMhhcIAMoDUICEAESGQoNcGFja2VkX3Vp",
- "bnQ2NBhdIAMoBEICEAESGQoNcGFja2VkX3NpbnQzMhheIAMoEUICEAESGQoN",
- "cGFja2VkX3NpbnQ2NBhfIAMoEkICEAESGgoOcGFja2VkX2ZpeGVkMzIYYCAD",
- "KAdCAhABEhoKDnBhY2tlZF9maXhlZDY0GGEgAygGQgIQARIbCg9wYWNrZWRf",
- "c2ZpeGVkMzIYYiADKA9CAhABEhsKD3BhY2tlZF9zZml4ZWQ2NBhjIAMoEEIC",
- "EAESGAoMcGFja2VkX2Zsb2F0GGQgAygCQgIQARIZCg1wYWNrZWRfZG91Ymxl",
- "GGUgAygBQgIQARIXCgtwYWNrZWRfYm9vbBhmIAMoCEICEAESNwoLcGFja2Vk",
- "X2VudW0YZyADKA4yHi5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduRW51bUIC",
- "EAEiyAMKEVRlc3RVbnBhY2tlZFR5cGVzEhoKDnVucGFja2VkX2ludDMyGFog",
- "AygFQgIQABIaCg51bnBhY2tlZF9pbnQ2NBhbIAMoA0ICEAASGwoPdW5wYWNr",
- "ZWRfdWludDMyGFwgAygNQgIQABIbCg91bnBhY2tlZF91aW50NjQYXSADKARC",
- "AhAAEhsKD3VucGFja2VkX3NpbnQzMhheIAMoEUICEAASGwoPdW5wYWNrZWRf",
- "c2ludDY0GF8gAygSQgIQABIcChB1bnBhY2tlZF9maXhlZDMyGGAgAygHQgIQ",
- "ABIcChB1bnBhY2tlZF9maXhlZDY0GGEgAygGQgIQABIdChF1bnBhY2tlZF9z",
- "Zml4ZWQzMhhiIAMoD0ICEAASHQoRdW5wYWNrZWRfc2ZpeGVkNjQYYyADKBBC",
- "AhAAEhoKDnVucGFja2VkX2Zsb2F0GGQgAygCQgIQABIbCg91bnBhY2tlZF9k",
- "b3VibGUYZSADKAFCAhAAEhkKDXVucGFja2VkX2Jvb2wYZiADKAhCAhAAEjkK",
- "DXVucGFja2VkX2VudW0YZyADKA4yHi5wcm90b2J1Zl91bml0dGVzdC5Gb3Jl",
- "aWduRW51bUICEAAiwAEKI1Rlc3RSZXBlYXRlZFNjYWxhckRpZmZlcmVudFRh",
- "Z1NpemVzEhgKEHJlcGVhdGVkX2ZpeGVkMzIYDCADKAcSFgoOcmVwZWF0ZWRf",
- "aW50MzIYDSADKAUSGQoQcmVwZWF0ZWRfZml4ZWQ2NBj+DyADKAYSFwoOcmVw",
- "ZWF0ZWRfaW50NjQY/w8gAygDEhgKDnJlcGVhdGVkX2Zsb2F0GP7/DyADKAIS",
- "GQoPcmVwZWF0ZWRfdWludDY0GP//DyADKAQiKAobVGVzdENvbW1lbnRJbmpl",
- "Y3Rpb25NZXNzYWdlEgkKAWEYASABKAkiDAoKRm9vUmVxdWVzdCINCgtGb29S",
- "ZXNwb25zZSISChBGb29DbGllbnRNZXNzYWdlIhIKEEZvb1NlcnZlck1lc3Nh",
- "Z2UiDAoKQmFyUmVxdWVzdCINCgtCYXJSZXNwb25zZSpZCgtGb3JlaWduRW51",
- "bRIXChNGT1JFSUdOX1VOU1BFQ0lGSUVEEAASDwoLRk9SRUlHTl9GT08QBBIP",
- "CgtGT1JFSUdOX0JBUhAFEg8KC0ZPUkVJR05fQkFaEAYqdQoUVGVzdEVudW1X",
- "aXRoRHVwVmFsdWUSKAokVEVTVF9FTlVNX1dJVEhfRFVQX1ZBTFVFX1VOU1BF",
- "Q0lGSUVEEAASCAoERk9PMRABEggKBEJBUjEQAhIHCgNCQVoQAxIICgRGT08y",
- "EAESCAoEQkFSMhACGgIQASqdAQoOVGVzdFNwYXJzZUVudW0SIAocVEVTVF9T",
- "UEFSU0VfRU5VTV9VTlNQRUNJRklFRBAAEgwKCFNQQVJTRV9BEHsSDgoIU1BB",
- "UlNFX0IQpucDEg8KCFNQQVJTRV9DELKxgAYSFQoIU1BBUlNFX0QQ8f//////",
- "////ARIVCghTUEFSU0VfRRC03vz///////8BEgwKCFNQQVJTRV9HEAIymQEK",
- "C1Rlc3RTZXJ2aWNlEkQKA0ZvbxIdLnByb3RvYnVmX3VuaXR0ZXN0LkZvb1Jl",
- "cXVlc3QaHi5wcm90b2J1Zl91bml0dGVzdC5Gb29SZXNwb25zZRJECgNCYXIS",
- "HS5wcm90b2J1Zl91bml0dGVzdC5CYXJSZXF1ZXN0Gh4ucHJvdG9idWZfdW5p",
- "dHRlc3QuQmFyUmVzcG9uc2VCOkINVW5pdHRlc3RQcm90b0gBgAEBiAEBkAEB",
- "+AEBqgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw=="));
- descriptor = pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
- new pbd::FileDescriptor[] {
- global::Google.Protobuf.TestProtos.UnittestImportProto3.Descriptor,
- });
- internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestAllTypes), descriptor.MessageTypes[0],
- new string[] { "SingleInt32", "SingleInt64", "SingleUint32", "SingleUint64", "SingleSint32", "SingleSint64", "SingleFixed32", "SingleFixed64", "SingleSfixed32", "SingleSfixed64", "SingleFloat", "SingleDouble", "SingleBool", "SingleString", "SingleBytes", "SingleNestedMessage", "SingleForeignMessage", "SingleImportMessage", "SingleNestedEnum", "SingleForeignEnum", "SingleImportEnum", "SinglePublicImportMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedPublicImportMessage", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", }, new string[] { "OneofField", });
- internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage), descriptor.MessageTypes[0].NestedTypes[0],
- new string[] { "Bb", }, new string[] { });
- internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.NestedTestAllTypes), descriptor.MessageTypes[1],
- new string[] { "Child", "Payload", "RepeatedChild", }, new string[] { });
- internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestDeprecatedFields), descriptor.MessageTypes[2],
- new string[] { "DeprecatedInt32", }, new string[] { });
- internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.ForeignMessage), descriptor.MessageTypes[3],
- new string[] { "C", }, new string[] { });
- internal__static_protobuf_unittest_TestReservedFields__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestReservedFields), descriptor.MessageTypes[4],
- new string[] { }, new string[] { });
- internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestForeignNested), descriptor.MessageTypes[5],
- new string[] { "ForeignNested", }, new string[] { });
- internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestReallyLargeTagNumber), descriptor.MessageTypes[6],
- new string[] { "A", "Bb", }, new string[] { });
- internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestRecursiveMessage), descriptor.MessageTypes[7],
- new string[] { "A", "I", }, new string[] { });
- internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMutualRecursionA), descriptor.MessageTypes[8],
- new string[] { "Bb", }, new string[] { });
- internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestMutualRecursionB), descriptor.MessageTypes[9],
- new string[] { "A", "OptionalInt32", }, new string[] { });
- internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestCamelCaseFieldNames), descriptor.MessageTypes[10],
- new string[] { "PrimitiveField", "StringField", "EnumField", "MessageField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", }, new string[] { });
- internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestFieldOrderings), descriptor.MessageTypes[11],
- new string[] { "MyString", "MyInt", "MyFloat", "SingleNestedMessage", }, new string[] { });
- internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage), descriptor.MessageTypes[11].NestedTypes[0],
- new string[] { "Oo", "Bb", }, new string[] { });
- internal__static_protobuf_unittest_SparseEnumMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.SparseEnumMessage), descriptor.MessageTypes[12],
- new string[] { "SparseEnum", }, new string[] { });
- internal__static_protobuf_unittest_OneString__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.OneString), descriptor.MessageTypes[13],
- new string[] { "Data", }, new string[] { });
- internal__static_protobuf_unittest_MoreString__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.MoreString), descriptor.MessageTypes[14],
- new string[] { "Data", }, new string[] { });
- internal__static_protobuf_unittest_OneBytes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.OneBytes), descriptor.MessageTypes[15],
- new string[] { "Data", }, new string[] { });
- internal__static_protobuf_unittest_MoreBytes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.MoreBytes), descriptor.MessageTypes[16],
- new string[] { "Data", }, new string[] { });
- internal__static_protobuf_unittest_Int32Message__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.Int32Message), descriptor.MessageTypes[17],
- new string[] { "Data", }, new string[] { });
- internal__static_protobuf_unittest_Uint32Message__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.Uint32Message), descriptor.MessageTypes[18],
- new string[] { "Data", }, new string[] { });
- internal__static_protobuf_unittest_Int64Message__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.Int64Message), descriptor.MessageTypes[19],
- new string[] { "Data", }, new string[] { });
- internal__static_protobuf_unittest_Uint64Message__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.Uint64Message), descriptor.MessageTypes[20],
- new string[] { "Data", }, new string[] { });
- internal__static_protobuf_unittest_BoolMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.BoolMessage), descriptor.MessageTypes[21],
- new string[] { "Data", }, new string[] { });
- internal__static_protobuf_unittest_TestOneof__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestOneof), descriptor.MessageTypes[22],
- new string[] { "FooInt", "FooString", "FooMessage", }, new string[] { "Foo", });
- internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestPackedTypes), descriptor.MessageTypes[23],
- new string[] { "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum", }, new string[] { });
- internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestUnpackedTypes), descriptor.MessageTypes[24],
- new string[] { "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedEnum", }, new string[] { });
- internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestRepeatedScalarDifferentTagSizes), descriptor.MessageTypes[25],
- new string[] { "RepeatedFixed32", "RepeatedInt32", "RepeatedFixed64", "RepeatedInt64", "RepeatedFloat", "RepeatedUint64", }, new string[] { });
- internal__static_protobuf_unittest_TestCommentInjectionMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.TestCommentInjectionMessage), descriptor.MessageTypes[26],
- new string[] { "A", }, new string[] { });
- internal__static_protobuf_unittest_FooRequest__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.FooRequest), descriptor.MessageTypes[27],
- new string[] { }, new string[] { });
- internal__static_protobuf_unittest_FooResponse__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.FooResponse), descriptor.MessageTypes[28],
- new string[] { }, new string[] { });
- internal__static_protobuf_unittest_FooClientMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.FooClientMessage), descriptor.MessageTypes[29],
- new string[] { }, new string[] { });
- internal__static_protobuf_unittest_FooServerMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.FooServerMessage), descriptor.MessageTypes[30],
- new string[] { }, new string[] { });
- internal__static_protobuf_unittest_BarRequest__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.BarRequest), descriptor.MessageTypes[31],
- new string[] { }, new string[] { });
- internal__static_protobuf_unittest_BarResponse__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::Google.Protobuf.TestProtos.BarResponse), descriptor.MessageTypes[32],
- new string[] { }, new string[] { });
- }
- #endregion
- }
- #region Enums
- public enum ForeignEnum {
- FOREIGN_UNSPECIFIED = 0,
- FOREIGN_FOO = 4,
- FOREIGN_BAR = 5,
- FOREIGN_BAZ = 6,
- }
- public enum TestEnumWithDupValue {
- TEST_ENUM_WITH_DUP_VALUE_UNSPECIFIED = 0,
- FOO1 = 1,
- BAR1 = 2,
- BAZ = 3,
- FOO2 = 1,
- BAR2 = 2,
- }
- public enum TestSparseEnum {
- TEST_SPARSE_ENUM_UNSPECIFIED = 0,
- SPARSE_A = 123,
- SPARSE_B = 62374,
- SPARSE_C = 12589234,
- SPARSE_D = -15,
- SPARSE_E = -53452,
- SPARSE_G = 2,
- }
- #endregion
- #region Messages
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestAllTypes : pb::IMessage<TestAllTypes> {
- private static readonly pb::MessageParser<TestAllTypes> _parser = new pb::MessageParser<TestAllTypes>(() => new TestAllTypes());
- public static pb::MessageParser<TestAllTypes> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "oneof_bytes", "oneof_nested_message", "oneof_string", "oneof_uint32", "repeated_bool", "repeated_bytes", "repeated_double", "repeated_fixed32", "repeated_fixed64", "repeated_float", "repeated_foreign_enum", "repeated_foreign_message", "repeated_import_enum", "repeated_import_message", "repeated_int32", "repeated_int64", "repeated_nested_enum", "repeated_nested_message", "repeated_public_import_message", "repeated_sfixed32", "repeated_sfixed64", "repeated_sint32", "repeated_sint64", "repeated_string", "repeated_uint32", "repeated_uint64", "single_bool", "single_bytes", "single_double", "single_fixed32", "single_fixed64", "single_float", "single_foreign_enum", "single_foreign_message", "single_import_enum", "single_import_message", "single_int32", "single_int64", "single_nested_enum", "single_nested_message", "single_public_import_message", "single_sfixed32", "single_sfixed64", "single_sint32", "single_sint64", "single_string", "single_uint32", "single_uint64" };
- private static readonly uint[] _fieldTags = new uint[] { 914, 898, 906, 888, 346, 362, 338, 298, 306, 330, 418, 394, 426, 402, 250, 258, 410, 386, 434, 314, 322, 282, 290, 354, 266, 274, 104, 122, 97, 61, 65, 93, 176, 154, 184, 162, 8, 16, 168, 146, 210, 77, 81, 40, 48, 114, 24, 32 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[0]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public TestAllTypes() {
- OnConstruction();
- }
- partial void OnConstruction();
- public TestAllTypes(TestAllTypes other) : this() {
- singleInt32_ = other.singleInt32_;
- singleInt64_ = other.singleInt64_;
- singleUint32_ = other.singleUint32_;
- singleUint64_ = other.singleUint64_;
- singleSint32_ = other.singleSint32_;
- singleSint64_ = other.singleSint64_;
- singleFixed32_ = other.singleFixed32_;
- singleFixed64_ = other.singleFixed64_;
- singleSfixed32_ = other.singleSfixed32_;
- singleSfixed64_ = other.singleSfixed64_;
- singleFloat_ = other.singleFloat_;
- singleDouble_ = other.singleDouble_;
- singleBool_ = other.singleBool_;
- singleString_ = other.singleString_;
- singleBytes_ = other.singleBytes_;
- SingleNestedMessage = other.singleNestedMessage_ != null ? other.SingleNestedMessage.Clone() : null;
- SingleForeignMessage = other.singleForeignMessage_ != null ? other.SingleForeignMessage.Clone() : null;
- SingleImportMessage = other.singleImportMessage_ != null ? other.SingleImportMessage.Clone() : null;
- singleNestedEnum_ = other.singleNestedEnum_;
- singleForeignEnum_ = other.singleForeignEnum_;
- singleImportEnum_ = other.singleImportEnum_;
- SinglePublicImportMessage = other.singlePublicImportMessage_ != null ? other.SinglePublicImportMessage.Clone() : null;
- repeatedInt32_ = other.repeatedInt32_.Clone();
- repeatedInt64_ = other.repeatedInt64_.Clone();
- repeatedUint32_ = other.repeatedUint32_.Clone();
- repeatedUint64_ = other.repeatedUint64_.Clone();
- repeatedSint32_ = other.repeatedSint32_.Clone();
- repeatedSint64_ = other.repeatedSint64_.Clone();
- repeatedFixed32_ = other.repeatedFixed32_.Clone();
- repeatedFixed64_ = other.repeatedFixed64_.Clone();
- repeatedSfixed32_ = other.repeatedSfixed32_.Clone();
- repeatedSfixed64_ = other.repeatedSfixed64_.Clone();
- repeatedFloat_ = other.repeatedFloat_.Clone();
- repeatedDouble_ = other.repeatedDouble_.Clone();
- repeatedBool_ = other.repeatedBool_.Clone();
- repeatedString_ = other.repeatedString_.Clone();
- repeatedBytes_ = other.repeatedBytes_.Clone();
- repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone();
- repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone();
- repeatedImportMessage_ = other.repeatedImportMessage_.Clone();
- repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone();
- repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone();
- repeatedImportEnum_ = other.repeatedImportEnum_.Clone();
- repeatedPublicImportMessage_ = other.repeatedPublicImportMessage_.Clone();
- switch (other.OneofFieldCase) {
- case OneofFieldOneofCase.OneofUint32:
- OneofUint32 = other.OneofUint32;
- break;
- case OneofFieldOneofCase.OneofNestedMessage:
- OneofNestedMessage = other.OneofNestedMessage.Clone();
- break;
- case OneofFieldOneofCase.OneofString:
- OneofString = other.OneofString;
- break;
- case OneofFieldOneofCase.OneofBytes:
- OneofBytes = other.OneofBytes;
- break;
- }
- }
- public TestAllTypes Clone() {
- return new TestAllTypes(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- if (singleNestedMessage_ != null) SingleNestedMessage.Freeze();
- if (singleForeignMessage_ != null) SingleForeignMessage.Freeze();
- if (singleImportMessage_ != null) SingleImportMessage.Freeze();
- if (singlePublicImportMessage_ != null) SinglePublicImportMessage.Freeze();
- repeatedInt32_.Freeze();
- repeatedInt64_.Freeze();
- repeatedUint32_.Freeze();
- repeatedUint64_.Freeze();
- repeatedSint32_.Freeze();
- repeatedSint64_.Freeze();
- repeatedFixed32_.Freeze();
- repeatedFixed64_.Freeze();
- repeatedSfixed32_.Freeze();
- repeatedSfixed64_.Freeze();
- repeatedFloat_.Freeze();
- repeatedDouble_.Freeze();
- repeatedBool_.Freeze();
- repeatedString_.Freeze();
- repeatedBytes_.Freeze();
- repeatedNestedMessage_.Freeze();
- repeatedForeignMessage_.Freeze();
- repeatedImportMessage_.Freeze();
- repeatedNestedEnum_.Freeze();
- repeatedForeignEnum_.Freeze();
- repeatedImportEnum_.Freeze();
- repeatedPublicImportMessage_.Freeze();
- if (oneofField_ is IFreezable) ((IFreezable) oneofField_).Freeze();
- }
- public const int SingleInt32FieldNumber = 1;
- private int singleInt32_;
- public int SingleInt32 {
- get { return singleInt32_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleInt32_ = value;
- }
- }
- public const int SingleInt64FieldNumber = 2;
- private long singleInt64_;
- public long SingleInt64 {
- get { return singleInt64_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleInt64_ = value;
- }
- }
- public const int SingleUint32FieldNumber = 3;
- private uint singleUint32_;
- public uint SingleUint32 {
- get { return singleUint32_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleUint32_ = value;
- }
- }
- public const int SingleUint64FieldNumber = 4;
- private ulong singleUint64_;
- public ulong SingleUint64 {
- get { return singleUint64_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleUint64_ = value;
- }
- }
- public const int SingleSint32FieldNumber = 5;
- private int singleSint32_;
- public int SingleSint32 {
- get { return singleSint32_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleSint32_ = value;
- }
- }
- public const int SingleSint64FieldNumber = 6;
- private long singleSint64_;
- public long SingleSint64 {
- get { return singleSint64_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleSint64_ = value;
- }
- }
- public const int SingleFixed32FieldNumber = 7;
- private uint singleFixed32_;
- public uint SingleFixed32 {
- get { return singleFixed32_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleFixed32_ = value;
- }
- }
- public const int SingleFixed64FieldNumber = 8;
- private ulong singleFixed64_;
- public ulong SingleFixed64 {
- get { return singleFixed64_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleFixed64_ = value;
- }
- }
- public const int SingleSfixed32FieldNumber = 9;
- private int singleSfixed32_;
- public int SingleSfixed32 {
- get { return singleSfixed32_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleSfixed32_ = value;
- }
- }
- public const int SingleSfixed64FieldNumber = 10;
- private long singleSfixed64_;
- public long SingleSfixed64 {
- get { return singleSfixed64_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleSfixed64_ = value;
- }
- }
- public const int SingleFloatFieldNumber = 11;
- private float singleFloat_;
- public float SingleFloat {
- get { return singleFloat_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleFloat_ = value;
- }
- }
- public const int SingleDoubleFieldNumber = 12;
- private double singleDouble_;
- public double SingleDouble {
- get { return singleDouble_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleDouble_ = value;
- }
- }
- public const int SingleBoolFieldNumber = 13;
- private bool singleBool_;
- public bool SingleBool {
- get { return singleBool_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleBool_ = value;
- }
- }
- public const int SingleStringFieldNumber = 14;
- private string singleString_ = "";
- public string SingleString {
- get { return singleString_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleString_ = value ?? "";
- }
- }
- public const int SingleBytesFieldNumber = 15;
- private pb::ByteString singleBytes_ = pb::ByteString.Empty;
- public pb::ByteString SingleBytes {
- get { return singleBytes_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleBytes_ = value ?? pb::ByteString.Empty;
- }
- }
- public const int SingleNestedMessageFieldNumber = 18;
- private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage singleNestedMessage_;
- public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage SingleNestedMessage {
- get { return singleNestedMessage_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleNestedMessage_ = value;
- }
- }
- public const int SingleForeignMessageFieldNumber = 19;
- private global::Google.Protobuf.TestProtos.ForeignMessage singleForeignMessage_;
- public global::Google.Protobuf.TestProtos.ForeignMessage SingleForeignMessage {
- get { return singleForeignMessage_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleForeignMessage_ = value;
- }
- }
- public const int SingleImportMessageFieldNumber = 20;
- private global::Google.Protobuf.TestProtos.ImportMessage singleImportMessage_;
- public global::Google.Protobuf.TestProtos.ImportMessage SingleImportMessage {
- get { return singleImportMessage_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleImportMessage_ = value;
- }
- }
- public const int SingleNestedEnumFieldNumber = 21;
- private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum singleNestedEnum_ = global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED;
- public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum SingleNestedEnum {
- get { return singleNestedEnum_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleNestedEnum_ = value;
- }
- }
- public const int SingleForeignEnumFieldNumber = 22;
- private global::Google.Protobuf.TestProtos.ForeignEnum singleForeignEnum_ = global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED;
- public global::Google.Protobuf.TestProtos.ForeignEnum SingleForeignEnum {
- get { return singleForeignEnum_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleForeignEnum_ = value;
- }
- }
- public const int SingleImportEnumFieldNumber = 23;
- private global::Google.Protobuf.TestProtos.ImportEnum singleImportEnum_ = global::Google.Protobuf.TestProtos.ImportEnum.IMPORT_ENUM_UNSPECIFIED;
- public global::Google.Protobuf.TestProtos.ImportEnum SingleImportEnum {
- get { return singleImportEnum_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleImportEnum_ = value;
- }
- }
- public const int SinglePublicImportMessageFieldNumber = 26;
- private global::Google.Protobuf.TestProtos.PublicImportMessage singlePublicImportMessage_;
- public global::Google.Protobuf.TestProtos.PublicImportMessage SinglePublicImportMessage {
- get { return singlePublicImportMessage_; }
- set {
- pb::Freezable.CheckMutable(this);
- singlePublicImportMessage_ = value;
- }
- }
- public const int RepeatedInt32FieldNumber = 31;
- private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
- = pb::FieldCodec.ForInt32(250);
- private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
- public pbc::RepeatedField<int> RepeatedInt32 {
- get { return repeatedInt32_; }
- }
- public const int RepeatedInt64FieldNumber = 32;
- private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
- = pb::FieldCodec.ForInt64(258);
- private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
- public pbc::RepeatedField<long> RepeatedInt64 {
- get { return repeatedInt64_; }
- }
- public const int RepeatedUint32FieldNumber = 33;
- private static readonly pb::FieldCodec<uint> _repeated_repeatedUint32_codec
- = pb::FieldCodec.ForUInt32(266);
- private readonly pbc::RepeatedField<uint> repeatedUint32_ = new pbc::RepeatedField<uint>();
- public pbc::RepeatedField<uint> RepeatedUint32 {
- get { return repeatedUint32_; }
- }
- public const int RepeatedUint64FieldNumber = 34;
- private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
- = pb::FieldCodec.ForUInt64(274);
- private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
- public pbc::RepeatedField<ulong> RepeatedUint64 {
- get { return repeatedUint64_; }
- }
- public const int RepeatedSint32FieldNumber = 35;
- private static readonly pb::FieldCodec<int> _repeated_repeatedSint32_codec
- = pb::FieldCodec.ForSInt32(282);
- private readonly pbc::RepeatedField<int> repeatedSint32_ = new pbc::RepeatedField<int>();
- public pbc::RepeatedField<int> RepeatedSint32 {
- get { return repeatedSint32_; }
- }
- public const int RepeatedSint64FieldNumber = 36;
- private static readonly pb::FieldCodec<long> _repeated_repeatedSint64_codec
- = pb::FieldCodec.ForSInt64(290);
- private readonly pbc::RepeatedField<long> repeatedSint64_ = new pbc::RepeatedField<long>();
- public pbc::RepeatedField<long> RepeatedSint64 {
- get { return repeatedSint64_; }
- }
- public const int RepeatedFixed32FieldNumber = 37;
- private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
- = pb::FieldCodec.ForFixed32(298);
- private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
- public pbc::RepeatedField<uint> RepeatedFixed32 {
- get { return repeatedFixed32_; }
- }
- public const int RepeatedFixed64FieldNumber = 38;
- private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
- = pb::FieldCodec.ForFixed64(306);
- private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
- public pbc::RepeatedField<ulong> RepeatedFixed64 {
- get { return repeatedFixed64_; }
- }
- public const int RepeatedSfixed32FieldNumber = 39;
- private static readonly pb::FieldCodec<int> _repeated_repeatedSfixed32_codec
- = pb::FieldCodec.ForSFixed32(314);
- private readonly pbc::RepeatedField<int> repeatedSfixed32_ = new pbc::RepeatedField<int>();
- public pbc::RepeatedField<int> RepeatedSfixed32 {
- get { return repeatedSfixed32_; }
- }
- public const int RepeatedSfixed64FieldNumber = 40;
- private static readonly pb::FieldCodec<long> _repeated_repeatedSfixed64_codec
- = pb::FieldCodec.ForSFixed64(322);
- private readonly pbc::RepeatedField<long> repeatedSfixed64_ = new pbc::RepeatedField<long>();
- public pbc::RepeatedField<long> RepeatedSfixed64 {
- get { return repeatedSfixed64_; }
- }
- public const int RepeatedFloatFieldNumber = 41;
- private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
- = pb::FieldCodec.ForFloat(330);
- private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
- public pbc::RepeatedField<float> RepeatedFloat {
- get { return repeatedFloat_; }
- }
- public const int RepeatedDoubleFieldNumber = 42;
- private static readonly pb::FieldCodec<double> _repeated_repeatedDouble_codec
- = pb::FieldCodec.ForDouble(338);
- private readonly pbc::RepeatedField<double> repeatedDouble_ = new pbc::RepeatedField<double>();
- public pbc::RepeatedField<double> RepeatedDouble {
- get { return repeatedDouble_; }
- }
- public const int RepeatedBoolFieldNumber = 43;
- private static readonly pb::FieldCodec<bool> _repeated_repeatedBool_codec
- = pb::FieldCodec.ForBool(346);
- private readonly pbc::RepeatedField<bool> repeatedBool_ = new pbc::RepeatedField<bool>();
- public pbc::RepeatedField<bool> RepeatedBool {
- get { return repeatedBool_; }
- }
- public const int RepeatedStringFieldNumber = 44;
- private static readonly pb::FieldCodec<string> _repeated_repeatedString_codec
- = pb::FieldCodec.ForString(354);
- private readonly pbc::RepeatedField<string> repeatedString_ = new pbc::RepeatedField<string>();
- public pbc::RepeatedField<string> RepeatedString {
- get { return repeatedString_; }
- }
- public const int RepeatedBytesFieldNumber = 45;
- private static readonly pb::FieldCodec<pb::ByteString> _repeated_repeatedBytes_codec
- = pb::FieldCodec.ForBytes(362);
- private readonly pbc::RepeatedField<pb::ByteString> repeatedBytes_ = new pbc::RepeatedField<pb::ByteString>();
- public pbc::RepeatedField<pb::ByteString> RepeatedBytes {
- get { return repeatedBytes_; }
- }
- public const int RepeatedNestedMessageFieldNumber = 48;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage> _repeated_repeatedNestedMessage_codec
- = pb::FieldCodec.ForMessage(386, global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage>();
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessage {
- get { return repeatedNestedMessage_; }
- }
- public const int RepeatedForeignMessageFieldNumber = 49;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignMessage> _repeated_repeatedForeignMessage_codec
- = pb::FieldCodec.ForMessage(394, global::Google.Protobuf.TestProtos.ForeignMessage.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage> repeatedForeignMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage>();
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage> RepeatedForeignMessage {
- get { return repeatedForeignMessage_; }
- }
- public const int RepeatedImportMessageFieldNumber = 50;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ImportMessage> _repeated_repeatedImportMessage_codec
- = pb::FieldCodec.ForMessage(402, global::Google.Protobuf.TestProtos.ImportMessage.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportMessage> repeatedImportMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportMessage>();
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportMessage> RepeatedImportMessage {
- get { return repeatedImportMessage_; }
- }
- public const int RepeatedNestedEnumFieldNumber = 51;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum> _repeated_repeatedNestedEnum_codec
- = pb::FieldCodec.ForEnum(410, x => (int) x, x => (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) x);private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum>();
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnum {
- get { return repeatedNestedEnum_; }
- }
- public const int RepeatedForeignEnumFieldNumber = 52;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_repeatedForeignEnum_codec
- = pb::FieldCodec.ForEnum(418, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x);private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum>();
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> RepeatedForeignEnum {
- get { return repeatedForeignEnum_; }
- }
- public const int RepeatedImportEnumFieldNumber = 53;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ImportEnum> _repeated_repeatedImportEnum_codec
- = pb::FieldCodec.ForEnum(426, x => (int) x, x => (global::Google.Protobuf.TestProtos.ImportEnum) x);private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportEnum> repeatedImportEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportEnum>();
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ImportEnum> RepeatedImportEnum {
- get { return repeatedImportEnum_; }
- }
- public const int RepeatedPublicImportMessageFieldNumber = 54;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.PublicImportMessage> _repeated_repeatedPublicImportMessage_codec
- = pb::FieldCodec.ForMessage(434, global::Google.Protobuf.TestProtos.PublicImportMessage.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.PublicImportMessage> repeatedPublicImportMessage_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.PublicImportMessage>();
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.PublicImportMessage> RepeatedPublicImportMessage {
- get { return repeatedPublicImportMessage_; }
- }
- public const int OneofUint32FieldNumber = 111;
- public uint OneofUint32 {
- get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32 ? (uint) oneofField_ : 0; }
- set {
- pb::Freezable.CheckMutable(this);
- oneofField_ = value;
- oneofFieldCase_ = OneofFieldOneofCase.OneofUint32;
- }
- }
- public const int OneofNestedMessageFieldNumber = 112;
- public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage OneofNestedMessage {
- get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage) oneofField_ : null; }
- set {
- pb::Freezable.CheckMutable(this);
- oneofField_ = value;
- oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.OneofNestedMessage;
- }
- }
- public const int OneofStringFieldNumber = 113;
- public string OneofString {
- get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string) oneofField_ : ""; }
- set {
- pb::Freezable.CheckMutable(this);
- oneofField_ = value ?? "";
- oneofFieldCase_ = OneofFieldOneofCase.OneofString;
- }
- }
- public const int OneofBytesFieldNumber = 114;
- public pb::ByteString OneofBytes {
- get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
- set {
- pb::Freezable.CheckMutable(this);
- oneofField_ = value ?? pb::ByteString.Empty;
- oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
- }
- }
- private object oneofField_;
- public enum OneofFieldOneofCase {
- None = 0,
- OneofUint32 = 111,
- OneofNestedMessage = 112,
- OneofString = 113,
- OneofBytes = 114,
- }
- private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
- public OneofFieldOneofCase OneofFieldCase {
- get { return oneofFieldCase_; }
- }
- public void ClearOneofField() {
- pb::Freezable.CheckMutable(this);
- oneofFieldCase_ = OneofFieldOneofCase.None;
- oneofField_ = null;
- }
- public override bool Equals(object other) {
- return Equals(other as TestAllTypes);
- }
- public bool Equals(TestAllTypes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (SingleInt32 != other.SingleInt32) return false;
- if (SingleInt64 != other.SingleInt64) return false;
- if (SingleUint32 != other.SingleUint32) return false;
- if (SingleUint64 != other.SingleUint64) return false;
- if (SingleSint32 != other.SingleSint32) return false;
- if (SingleSint64 != other.SingleSint64) return false;
- if (SingleFixed32 != other.SingleFixed32) return false;
- if (SingleFixed64 != other.SingleFixed64) return false;
- if (SingleSfixed32 != other.SingleSfixed32) return false;
- if (SingleSfixed64 != other.SingleSfixed64) return false;
- if (SingleFloat != other.SingleFloat) return false;
- if (SingleDouble != other.SingleDouble) return false;
- if (SingleBool != other.SingleBool) return false;
- if (SingleString != other.SingleString) return false;
- if (SingleBytes != other.SingleBytes) return false;
- if (!object.Equals(SingleNestedMessage, other.SingleNestedMessage)) return false;
- if (!object.Equals(SingleForeignMessage, other.SingleForeignMessage)) return false;
- if (!object.Equals(SingleImportMessage, other.SingleImportMessage)) return false;
- if (SingleNestedEnum != other.SingleNestedEnum) return false;
- if (SingleForeignEnum != other.SingleForeignEnum) return false;
- if (SingleImportEnum != other.SingleImportEnum) return false;
- if (!object.Equals(SinglePublicImportMessage, other.SinglePublicImportMessage)) return false;
- if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
- if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
- if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false;
- if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
- if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false;
- if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false;
- if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
- if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
- if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false;
- if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false;
- if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
- if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false;
- if(!repeatedBool_.Equals(other.repeatedBool_)) return false;
- if(!repeatedString_.Equals(other.repeatedString_)) return false;
- if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false;
- if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false;
- if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false;
- if(!repeatedImportMessage_.Equals(other.repeatedImportMessage_)) return false;
- if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false;
- if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false;
- if(!repeatedImportEnum_.Equals(other.repeatedImportEnum_)) return false;
- if(!repeatedPublicImportMessage_.Equals(other.repeatedPublicImportMessage_)) return false;
- if (OneofUint32 != other.OneofUint32) return false;
- if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false;
- if (OneofString != other.OneofString) return false;
- if (OneofBytes != other.OneofBytes) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (SingleInt32 != 0) hash ^= SingleInt32.GetHashCode();
- if (SingleInt64 != 0L) hash ^= SingleInt64.GetHashCode();
- if (SingleUint32 != 0) hash ^= SingleUint32.GetHashCode();
- if (SingleUint64 != 0UL) hash ^= SingleUint64.GetHashCode();
- if (SingleSint32 != 0) hash ^= SingleSint32.GetHashCode();
- if (SingleSint64 != 0L) hash ^= SingleSint64.GetHashCode();
- if (SingleFixed32 != 0) hash ^= SingleFixed32.GetHashCode();
- if (SingleFixed64 != 0UL) hash ^= SingleFixed64.GetHashCode();
- if (SingleSfixed32 != 0) hash ^= SingleSfixed32.GetHashCode();
- if (SingleSfixed64 != 0L) hash ^= SingleSfixed64.GetHashCode();
- if (SingleFloat != 0F) hash ^= SingleFloat.GetHashCode();
- if (SingleDouble != 0D) hash ^= SingleDouble.GetHashCode();
- if (SingleBool != false) hash ^= SingleBool.GetHashCode();
- if (SingleString.Length != 0) hash ^= SingleString.GetHashCode();
- if (SingleBytes.Length != 0) hash ^= SingleBytes.GetHashCode();
- if (singleNestedMessage_ != null) hash ^= SingleNestedMessage.GetHashCode();
- if (singleForeignMessage_ != null) hash ^= SingleForeignMessage.GetHashCode();
- if (singleImportMessage_ != null) hash ^= SingleImportMessage.GetHashCode();
- if (SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED) hash ^= SingleNestedEnum.GetHashCode();
- if (SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) hash ^= SingleForeignEnum.GetHashCode();
- if (SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnum.IMPORT_ENUM_UNSPECIFIED) hash ^= SingleImportEnum.GetHashCode();
- if (singlePublicImportMessage_ != null) hash ^= SinglePublicImportMessage.GetHashCode();
- hash ^= repeatedInt32_.GetHashCode();
- hash ^= repeatedInt64_.GetHashCode();
- hash ^= repeatedUint32_.GetHashCode();
- hash ^= repeatedUint64_.GetHashCode();
- hash ^= repeatedSint32_.GetHashCode();
- hash ^= repeatedSint64_.GetHashCode();
- hash ^= repeatedFixed32_.GetHashCode();
- hash ^= repeatedFixed64_.GetHashCode();
- hash ^= repeatedSfixed32_.GetHashCode();
- hash ^= repeatedSfixed64_.GetHashCode();
- hash ^= repeatedFloat_.GetHashCode();
- hash ^= repeatedDouble_.GetHashCode();
- hash ^= repeatedBool_.GetHashCode();
- hash ^= repeatedString_.GetHashCode();
- hash ^= repeatedBytes_.GetHashCode();
- hash ^= repeatedNestedMessage_.GetHashCode();
- hash ^= repeatedForeignMessage_.GetHashCode();
- hash ^= repeatedImportMessage_.GetHashCode();
- hash ^= repeatedNestedEnum_.GetHashCode();
- hash ^= repeatedForeignEnum_.GetHashCode();
- hash ^= repeatedImportEnum_.GetHashCode();
- hash ^= repeatedPublicImportMessage_.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) hash ^= OneofUint32.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) hash ^= OneofString.GetHashCode();
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) hash ^= OneofBytes.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (SingleInt32 != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(SingleInt32);
- }
- if (SingleInt64 != 0L) {
- output.WriteRawTag(16);
- output.WriteInt64(SingleInt64);
- }
- if (SingleUint32 != 0) {
- output.WriteRawTag(24);
- output.WriteUInt32(SingleUint32);
- }
- if (SingleUint64 != 0UL) {
- output.WriteRawTag(32);
- output.WriteUInt64(SingleUint64);
- }
- if (SingleSint32 != 0) {
- output.WriteRawTag(40);
- output.WriteSInt32(SingleSint32);
- }
- if (SingleSint64 != 0L) {
- output.WriteRawTag(48);
- output.WriteSInt64(SingleSint64);
- }
- if (SingleFixed32 != 0) {
- output.WriteRawTag(61);
- output.WriteFixed32(SingleFixed32);
- }
- if (SingleFixed64 != 0UL) {
- output.WriteRawTag(65);
- output.WriteFixed64(SingleFixed64);
- }
- if (SingleSfixed32 != 0) {
- output.WriteRawTag(77);
- output.WriteSFixed32(SingleSfixed32);
- }
- if (SingleSfixed64 != 0L) {
- output.WriteRawTag(81);
- output.WriteSFixed64(SingleSfixed64);
- }
- if (SingleFloat != 0F) {
- output.WriteRawTag(93);
- output.WriteFloat(SingleFloat);
- }
- if (SingleDouble != 0D) {
- output.WriteRawTag(97);
- output.WriteDouble(SingleDouble);
- }
- if (SingleBool != false) {
- output.WriteRawTag(104);
- output.WriteBool(SingleBool);
- }
- if (SingleString.Length != 0) {
- output.WriteRawTag(114);
- output.WriteString(SingleString);
- }
- if (SingleBytes.Length != 0) {
- output.WriteRawTag(122);
- output.WriteBytes(SingleBytes);
- }
- if (singleNestedMessage_ != null) {
- output.WriteRawTag(146, 1);
- output.WriteMessage(SingleNestedMessage);
- }
- if (singleForeignMessage_ != null) {
- output.WriteRawTag(154, 1);
- output.WriteMessage(SingleForeignMessage);
- }
- if (singleImportMessage_ != null) {
- output.WriteRawTag(162, 1);
- output.WriteMessage(SingleImportMessage);
- }
- if (SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED) {
- output.WriteRawTag(168, 1);
- output.WriteEnum((int) SingleNestedEnum);
- }
- if (SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) {
- output.WriteRawTag(176, 1);
- output.WriteEnum((int) SingleForeignEnum);
- }
- if (SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnum.IMPORT_ENUM_UNSPECIFIED) {
- output.WriteRawTag(184, 1);
- output.WriteEnum((int) SingleImportEnum);
- }
- if (singlePublicImportMessage_ != null) {
- output.WriteRawTag(210, 1);
- output.WriteMessage(SinglePublicImportMessage);
- }
- repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
- repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
- repeatedUint32_.WriteTo(output, _repeated_repeatedUint32_codec);
- repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
- repeatedSint32_.WriteTo(output, _repeated_repeatedSint32_codec);
- repeatedSint64_.WriteTo(output, _repeated_repeatedSint64_codec);
- repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
- repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
- repeatedSfixed32_.WriteTo(output, _repeated_repeatedSfixed32_codec);
- repeatedSfixed64_.WriteTo(output, _repeated_repeatedSfixed64_codec);
- repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
- repeatedDouble_.WriteTo(output, _repeated_repeatedDouble_codec);
- repeatedBool_.WriteTo(output, _repeated_repeatedBool_codec);
- repeatedString_.WriteTo(output, _repeated_repeatedString_codec);
- repeatedBytes_.WriteTo(output, _repeated_repeatedBytes_codec);
- repeatedNestedMessage_.WriteTo(output, _repeated_repeatedNestedMessage_codec);
- repeatedForeignMessage_.WriteTo(output, _repeated_repeatedForeignMessage_codec);
- repeatedImportMessage_.WriteTo(output, _repeated_repeatedImportMessage_codec);
- repeatedNestedEnum_.WriteTo(output, _repeated_repeatedNestedEnum_codec);
- repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec);
- repeatedImportEnum_.WriteTo(output, _repeated_repeatedImportEnum_codec);
- repeatedPublicImportMessage_.WriteTo(output, _repeated_repeatedPublicImportMessage_codec);
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) {
- output.WriteRawTag(248, 6);
- output.WriteUInt32(OneofUint32);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
- output.WriteRawTag(130, 7);
- output.WriteMessage(OneofNestedMessage);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) {
- output.WriteRawTag(138, 7);
- output.WriteString(OneofString);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) {
- output.WriteRawTag(146, 7);
- output.WriteBytes(OneofBytes);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (SingleInt32 != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(SingleInt32);
- }
- if (SingleInt64 != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(SingleInt64);
- }
- if (SingleUint32 != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SingleUint32);
- }
- if (SingleUint64 != 0UL) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SingleUint64);
- }
- if (SingleSint32 != 0) {
- size += 1 + pb::CodedOutputStream.ComputeSInt32Size(SingleSint32);
- }
- if (SingleSint64 != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeSInt64Size(SingleSint64);
- }
- if (SingleFixed32 != 0) {
- size += 1 + 4;
- }
- if (SingleFixed64 != 0UL) {
- size += 1 + 8;
- }
- if (SingleSfixed32 != 0) {
- size += 1 + 4;
- }
- if (SingleSfixed64 != 0L) {
- size += 1 + 8;
- }
- if (SingleFloat != 0F) {
- size += 1 + 4;
- }
- if (SingleDouble != 0D) {
- size += 1 + 8;
- }
- if (SingleBool != false) {
- size += 1 + 1;
- }
- if (SingleString.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(SingleString);
- }
- if (SingleBytes.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeBytesSize(SingleBytes);
- }
- if (singleNestedMessage_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleNestedMessage);
- }
- if (singleForeignMessage_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleForeignMessage);
- }
- if (singleImportMessage_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleImportMessage);
- }
- if (SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleNestedEnum);
- }
- if (SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleForeignEnum);
- }
- if (SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnum.IMPORT_ENUM_UNSPECIFIED) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SingleImportEnum);
- }
- if (singlePublicImportMessage_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(SinglePublicImportMessage);
- }
- size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
- size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
- size += repeatedUint32_.CalculateSize(_repeated_repeatedUint32_codec);
- size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
- size += repeatedSint32_.CalculateSize(_repeated_repeatedSint32_codec);
- size += repeatedSint64_.CalculateSize(_repeated_repeatedSint64_codec);
- size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
- size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
- size += repeatedSfixed32_.CalculateSize(_repeated_repeatedSfixed32_codec);
- size += repeatedSfixed64_.CalculateSize(_repeated_repeatedSfixed64_codec);
- size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
- size += repeatedDouble_.CalculateSize(_repeated_repeatedDouble_codec);
- size += repeatedBool_.CalculateSize(_repeated_repeatedBool_codec);
- size += repeatedString_.CalculateSize(_repeated_repeatedString_codec);
- size += repeatedBytes_.CalculateSize(_repeated_repeatedBytes_codec);
- size += repeatedNestedMessage_.CalculateSize(_repeated_repeatedNestedMessage_codec);
- size += repeatedForeignMessage_.CalculateSize(_repeated_repeatedForeignMessage_codec);
- size += repeatedImportMessage_.CalculateSize(_repeated_repeatedImportMessage_codec);
- size += repeatedNestedEnum_.CalculateSize(_repeated_repeatedNestedEnum_codec);
- size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec);
- size += repeatedImportEnum_.CalculateSize(_repeated_repeatedImportEnum_codec);
- size += repeatedPublicImportMessage_.CalculateSize(_repeated_repeatedPublicImportMessage_codec);
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofUint32) {
- size += 2 + pb::CodedOutputStream.ComputeUInt32Size(OneofUint32);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(OneofNestedMessage);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(OneofString);
- }
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) {
- size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
- }
- return size;
- }
- public void MergeFrom(TestAllTypes other) {
- if (other == null) {
- return;
- }
- if (other.SingleInt32 != 0) {
- SingleInt32 = other.SingleInt32;
- }
- if (other.SingleInt64 != 0L) {
- SingleInt64 = other.SingleInt64;
- }
- if (other.SingleUint32 != 0) {
- SingleUint32 = other.SingleUint32;
- }
- if (other.SingleUint64 != 0UL) {
- SingleUint64 = other.SingleUint64;
- }
- if (other.SingleSint32 != 0) {
- SingleSint32 = other.SingleSint32;
- }
- if (other.SingleSint64 != 0L) {
- SingleSint64 = other.SingleSint64;
- }
- if (other.SingleFixed32 != 0) {
- SingleFixed32 = other.SingleFixed32;
- }
- if (other.SingleFixed64 != 0UL) {
- SingleFixed64 = other.SingleFixed64;
- }
- if (other.SingleSfixed32 != 0) {
- SingleSfixed32 = other.SingleSfixed32;
- }
- if (other.SingleSfixed64 != 0L) {
- SingleSfixed64 = other.SingleSfixed64;
- }
- if (other.SingleFloat != 0F) {
- SingleFloat = other.SingleFloat;
- }
- if (other.SingleDouble != 0D) {
- SingleDouble = other.SingleDouble;
- }
- if (other.SingleBool != false) {
- SingleBool = other.SingleBool;
- }
- if (other.SingleString.Length != 0) {
- SingleString = other.SingleString;
- }
- if (other.SingleBytes.Length != 0) {
- SingleBytes = other.SingleBytes;
- }
- if (other.singleNestedMessage_ != null) {
- if (singleNestedMessage_ == null) {
- singleNestedMessage_ = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
- }
- SingleNestedMessage.MergeFrom(other.SingleNestedMessage);
- }
- if (other.singleForeignMessage_ != null) {
- if (singleForeignMessage_ == null) {
- singleForeignMessage_ = new global::Google.Protobuf.TestProtos.ForeignMessage();
- }
- SingleForeignMessage.MergeFrom(other.SingleForeignMessage);
- }
- if (other.singleImportMessage_ != null) {
- if (singleImportMessage_ == null) {
- singleImportMessage_ = new global::Google.Protobuf.TestProtos.ImportMessage();
- }
- SingleImportMessage.MergeFrom(other.SingleImportMessage);
- }
- if (other.SingleNestedEnum != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED) {
- SingleNestedEnum = other.SingleNestedEnum;
- }
- if (other.SingleForeignEnum != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) {
- SingleForeignEnum = other.SingleForeignEnum;
- }
- if (other.SingleImportEnum != global::Google.Protobuf.TestProtos.ImportEnum.IMPORT_ENUM_UNSPECIFIED) {
- SingleImportEnum = other.SingleImportEnum;
- }
- if (other.singlePublicImportMessage_ != null) {
- if (singlePublicImportMessage_ == null) {
- singlePublicImportMessage_ = new global::Google.Protobuf.TestProtos.PublicImportMessage();
- }
- SinglePublicImportMessage.MergeFrom(other.SinglePublicImportMessage);
- }
- repeatedInt32_.Add(other.repeatedInt32_);
- repeatedInt64_.Add(other.repeatedInt64_);
- repeatedUint32_.Add(other.repeatedUint32_);
- repeatedUint64_.Add(other.repeatedUint64_);
- repeatedSint32_.Add(other.repeatedSint32_);
- repeatedSint64_.Add(other.repeatedSint64_);
- repeatedFixed32_.Add(other.repeatedFixed32_);
- repeatedFixed64_.Add(other.repeatedFixed64_);
- repeatedSfixed32_.Add(other.repeatedSfixed32_);
- repeatedSfixed64_.Add(other.repeatedSfixed64_);
- repeatedFloat_.Add(other.repeatedFloat_);
- repeatedDouble_.Add(other.repeatedDouble_);
- repeatedBool_.Add(other.repeatedBool_);
- repeatedString_.Add(other.repeatedString_);
- repeatedBytes_.Add(other.repeatedBytes_);
- repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
- repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
- repeatedImportMessage_.Add(other.repeatedImportMessage_);
- repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
- repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
- repeatedImportEnum_.Add(other.repeatedImportEnum_);
- repeatedPublicImportMessage_.Add(other.repeatedPublicImportMessage_);
- switch (other.OneofFieldCase) {
- case OneofFieldOneofCase.OneofUint32:
- OneofUint32 = other.OneofUint32;
- break;
- case OneofFieldOneofCase.OneofNestedMessage:
- OneofNestedMessage = other.OneofNestedMessage;
- break;
- case OneofFieldOneofCase.OneofString:
- OneofString = other.OneofString;
- break;
- case OneofFieldOneofCase.OneofBytes:
- OneofBytes = other.OneofBytes;
- break;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- SingleInt32 = input.ReadInt32();
- break;
- }
- case 16: {
- SingleInt64 = input.ReadInt64();
- break;
- }
- case 24: {
- SingleUint32 = input.ReadUInt32();
- break;
- }
- case 32: {
- SingleUint64 = input.ReadUInt64();
- break;
- }
- case 40: {
- SingleSint32 = input.ReadSInt32();
- break;
- }
- case 48: {
- SingleSint64 = input.ReadSInt64();
- break;
- }
- case 61: {
- SingleFixed32 = input.ReadFixed32();
- break;
- }
- case 65: {
- SingleFixed64 = input.ReadFixed64();
- break;
- }
- case 77: {
- SingleSfixed32 = input.ReadSFixed32();
- break;
- }
- case 81: {
- SingleSfixed64 = input.ReadSFixed64();
- break;
- }
- case 93: {
- SingleFloat = input.ReadFloat();
- break;
- }
- case 97: {
- SingleDouble = input.ReadDouble();
- break;
- }
- case 104: {
- SingleBool = input.ReadBool();
- break;
- }
- case 114: {
- SingleString = input.ReadString();
- break;
- }
- case 122: {
- SingleBytes = input.ReadBytes();
- break;
- }
- case 146: {
- if (singleNestedMessage_ == null) {
- singleNestedMessage_ = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
- }
- input.ReadMessage(singleNestedMessage_);
- break;
- }
- case 154: {
- if (singleForeignMessage_ == null) {
- singleForeignMessage_ = new global::Google.Protobuf.TestProtos.ForeignMessage();
- }
- input.ReadMessage(singleForeignMessage_);
- break;
- }
- case 162: {
- if (singleImportMessage_ == null) {
- singleImportMessage_ = new global::Google.Protobuf.TestProtos.ImportMessage();
- }
- input.ReadMessage(singleImportMessage_);
- break;
- }
- case 168: {
- singleNestedEnum_ = (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) input.ReadEnum();
- break;
- }
- case 176: {
- singleForeignEnum_ = (global::Google.Protobuf.TestProtos.ForeignEnum) input.ReadEnum();
- break;
- }
- case 184: {
- singleImportEnum_ = (global::Google.Protobuf.TestProtos.ImportEnum) input.ReadEnum();
- break;
- }
- case 210: {
- if (singlePublicImportMessage_ == null) {
- singlePublicImportMessage_ = new global::Google.Protobuf.TestProtos.PublicImportMessage();
- }
- input.ReadMessage(singlePublicImportMessage_);
- break;
- }
- case 250:
- case 248: {
- repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
- break;
- }
- case 258:
- case 256: {
- repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
- break;
- }
- case 266:
- case 264: {
- repeatedUint32_.AddEntriesFrom(input, _repeated_repeatedUint32_codec);
- break;
- }
- case 274:
- case 272: {
- repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
- break;
- }
- case 282:
- case 280: {
- repeatedSint32_.AddEntriesFrom(input, _repeated_repeatedSint32_codec);
- break;
- }
- case 290:
- case 288: {
- repeatedSint64_.AddEntriesFrom(input, _repeated_repeatedSint64_codec);
- break;
- }
- case 298:
- case 301: {
- repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
- break;
- }
- case 306:
- case 305: {
- repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
- break;
- }
- case 314:
- case 317: {
- repeatedSfixed32_.AddEntriesFrom(input, _repeated_repeatedSfixed32_codec);
- break;
- }
- case 322:
- case 321: {
- repeatedSfixed64_.AddEntriesFrom(input, _repeated_repeatedSfixed64_codec);
- break;
- }
- case 330:
- case 333: {
- repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
- break;
- }
- case 338:
- case 337: {
- repeatedDouble_.AddEntriesFrom(input, _repeated_repeatedDouble_codec);
- break;
- }
- case 346:
- case 344: {
- repeatedBool_.AddEntriesFrom(input, _repeated_repeatedBool_codec);
- break;
- }
- case 354: {
- repeatedString_.AddEntriesFrom(input, _repeated_repeatedString_codec);
- break;
- }
- case 362: {
- repeatedBytes_.AddEntriesFrom(input, _repeated_repeatedBytes_codec);
- break;
- }
- case 386: {
- repeatedNestedMessage_.AddEntriesFrom(input, _repeated_repeatedNestedMessage_codec);
- break;
- }
- case 394: {
- repeatedForeignMessage_.AddEntriesFrom(input, _repeated_repeatedForeignMessage_codec);
- break;
- }
- case 402: {
- repeatedImportMessage_.AddEntriesFrom(input, _repeated_repeatedImportMessage_codec);
- break;
- }
- case 410:
- case 408: {
- repeatedNestedEnum_.AddEntriesFrom(input, _repeated_repeatedNestedEnum_codec);
- break;
- }
- case 418:
- case 416: {
- repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec);
- break;
- }
- case 426:
- case 424: {
- repeatedImportEnum_.AddEntriesFrom(input, _repeated_repeatedImportEnum_codec);
- break;
- }
- case 434: {
- repeatedPublicImportMessage_.AddEntriesFrom(input, _repeated_repeatedPublicImportMessage_codec);
- break;
- }
- case 888: {
- OneofUint32 = input.ReadUInt32();
- break;
- }
- case 898: {
- global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage subBuilder = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
- if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) {
- subBuilder.MergeFrom(OneofNestedMessage);
- }
- input.ReadMessage(subBuilder);
- OneofNestedMessage = subBuilder;
- break;
- }
- case 906: {
- OneofString = input.ReadString();
- break;
- }
- case 914: {
- OneofBytes = input.ReadBytes();
- break;
- }
- }
- }
- }
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- public enum NestedEnum {
- NESTED_ENUM_UNSPECIFIED = 0,
- FOO = 1,
- BAR = 2,
- BAZ = 3,
- NEG = -1,
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
- private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
- public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "bb" };
- private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestAllTypes.Descriptor.NestedTypes[0]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public NestedMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- public NestedMessage(NestedMessage other) : this() {
- bb_ = other.bb_;
- }
- public NestedMessage Clone() {
- return new NestedMessage(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public const int BbFieldNumber = 1;
- private int bb_;
- public int Bb {
- get { return bb_; }
- set {
- pb::Freezable.CheckMutable(this);
- bb_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as NestedMessage);
- }
- public bool Equals(NestedMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Bb != other.Bb) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Bb != 0) hash ^= Bb.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Bb != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Bb);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Bb != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb);
- }
- return size;
- }
- public void MergeFrom(NestedMessage other) {
- if (other == null) {
- return;
- }
- if (other.Bb != 0) {
- Bb = other.Bb;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Bb = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class NestedTestAllTypes : pb::IMessage<NestedTestAllTypes> {
- private static readonly pb::MessageParser<NestedTestAllTypes> _parser = new pb::MessageParser<NestedTestAllTypes>(() => new NestedTestAllTypes());
- public static pb::MessageParser<NestedTestAllTypes> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "child", "payload", "repeated_child" };
- private static readonly uint[] _fieldTags = new uint[] { 10, 18, 26 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[1]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public NestedTestAllTypes() {
- OnConstruction();
- }
- partial void OnConstruction();
- public NestedTestAllTypes(NestedTestAllTypes other) : this() {
- Child = other.child_ != null ? other.Child.Clone() : null;
- Payload = other.payload_ != null ? other.Payload.Clone() : null;
- repeatedChild_ = other.repeatedChild_.Clone();
- }
- public NestedTestAllTypes Clone() {
- return new NestedTestAllTypes(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- if (child_ != null) Child.Freeze();
- if (payload_ != null) Payload.Freeze();
- repeatedChild_.Freeze();
- }
- public const int ChildFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.NestedTestAllTypes child_;
- public global::Google.Protobuf.TestProtos.NestedTestAllTypes Child {
- get { return child_; }
- set {
- pb::Freezable.CheckMutable(this);
- child_ = value;
- }
- }
- public const int PayloadFieldNumber = 2;
- private global::Google.Protobuf.TestProtos.TestAllTypes payload_;
- public global::Google.Protobuf.TestProtos.TestAllTypes Payload {
- get { return payload_; }
- set {
- pb::Freezable.CheckMutable(this);
- payload_ = value;
- }
- }
- public const int RepeatedChildFieldNumber = 3;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.NestedTestAllTypes> _repeated_repeatedChild_codec
- = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.NestedTestAllTypes.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.NestedTestAllTypes> repeatedChild_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.NestedTestAllTypes>();
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.NestedTestAllTypes> RepeatedChild {
- get { return repeatedChild_; }
- }
- public override bool Equals(object other) {
- return Equals(other as NestedTestAllTypes);
- }
- public bool Equals(NestedTestAllTypes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Child, other.Child)) return false;
- if (!object.Equals(Payload, other.Payload)) return false;
- if(!repeatedChild_.Equals(other.repeatedChild_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (child_ != null) hash ^= Child.GetHashCode();
- if (payload_ != null) hash ^= Payload.GetHashCode();
- hash ^= repeatedChild_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (child_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Child);
- }
- if (payload_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Payload);
- }
- repeatedChild_.WriteTo(output, _repeated_repeatedChild_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (child_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Child);
- }
- if (payload_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
- }
- size += repeatedChild_.CalculateSize(_repeated_repeatedChild_codec);
- return size;
- }
- public void MergeFrom(NestedTestAllTypes other) {
- if (other == null) {
- return;
- }
- if (other.child_ != null) {
- if (child_ == null) {
- child_ = new global::Google.Protobuf.TestProtos.NestedTestAllTypes();
- }
- Child.MergeFrom(other.Child);
- }
- if (other.payload_ != null) {
- if (payload_ == null) {
- payload_ = new global::Google.Protobuf.TestProtos.TestAllTypes();
- }
- Payload.MergeFrom(other.Payload);
- }
- repeatedChild_.Add(other.repeatedChild_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 10: {
- if (child_ == null) {
- child_ = new global::Google.Protobuf.TestProtos.NestedTestAllTypes();
- }
- input.ReadMessage(child_);
- break;
- }
- case 18: {
- if (payload_ == null) {
- payload_ = new global::Google.Protobuf.TestProtos.TestAllTypes();
- }
- input.ReadMessage(payload_);
- break;
- }
- case 26: {
- repeatedChild_.AddEntriesFrom(input, _repeated_repeatedChild_codec);
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestDeprecatedFields : pb::IMessage<TestDeprecatedFields> {
- private static readonly pb::MessageParser<TestDeprecatedFields> _parser = new pb::MessageParser<TestDeprecatedFields>(() => new TestDeprecatedFields());
- public static pb::MessageParser<TestDeprecatedFields> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "deprecated_int32" };
- private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[2]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public TestDeprecatedFields() {
- OnConstruction();
- }
- partial void OnConstruction();
- public TestDeprecatedFields(TestDeprecatedFields other) : this() {
- deprecatedInt32_ = other.deprecatedInt32_;
- }
- public TestDeprecatedFields Clone() {
- return new TestDeprecatedFields(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public const int DeprecatedInt32FieldNumber = 1;
- private int deprecatedInt32_;
- [global::System.ObsoleteAttribute()]
- public int DeprecatedInt32 {
- get { return deprecatedInt32_; }
- set {
- pb::Freezable.CheckMutable(this);
- deprecatedInt32_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as TestDeprecatedFields);
- }
- public bool Equals(TestDeprecatedFields other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (DeprecatedInt32 != other.DeprecatedInt32) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (DeprecatedInt32 != 0) hash ^= DeprecatedInt32.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (DeprecatedInt32 != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(DeprecatedInt32);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (DeprecatedInt32 != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeprecatedInt32);
- }
- return size;
- }
- public void MergeFrom(TestDeprecatedFields other) {
- if (other == null) {
- return;
- }
- if (other.DeprecatedInt32 != 0) {
- DeprecatedInt32 = other.DeprecatedInt32;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- DeprecatedInt32 = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class ForeignMessage : pb::IMessage<ForeignMessage> {
- private static readonly pb::MessageParser<ForeignMessage> _parser = new pb::MessageParser<ForeignMessage>(() => new ForeignMessage());
- public static pb::MessageParser<ForeignMessage> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "c" };
- private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[3]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public ForeignMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- public ForeignMessage(ForeignMessage other) : this() {
- c_ = other.c_;
- }
- public ForeignMessage Clone() {
- return new ForeignMessage(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public const int CFieldNumber = 1;
- private int c_;
- public int C {
- get { return c_; }
- set {
- pb::Freezable.CheckMutable(this);
- c_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as ForeignMessage);
- }
- public bool Equals(ForeignMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (C != other.C) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (C != 0) hash ^= C.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (C != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(C);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (C != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(C);
- }
- return size;
- }
- public void MergeFrom(ForeignMessage other) {
- if (other == null) {
- return;
- }
- if (other.C != 0) {
- C = other.C;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- C = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestReservedFields : pb::IMessage<TestReservedFields> {
- private static readonly pb::MessageParser<TestReservedFields> _parser = new pb::MessageParser<TestReservedFields>(() => new TestReservedFields());
- public static pb::MessageParser<TestReservedFields> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { };
- private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[4]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestReservedFields__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public TestReservedFields() {
- OnConstruction();
- }
- partial void OnConstruction();
- public TestReservedFields(TestReservedFields other) : this() {
- }
- public TestReservedFields Clone() {
- return new TestReservedFields(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public override bool Equals(object other) {
- return Equals(other as TestReservedFields);
- }
- public bool Equals(TestReservedFields other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- }
- public int CalculateSize() {
- int size = 0;
- return size;
- }
- public void MergeFrom(TestReservedFields other) {
- if (other == null) {
- return;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestForeignNested : pb::IMessage<TestForeignNested> {
- private static readonly pb::MessageParser<TestForeignNested> _parser = new pb::MessageParser<TestForeignNested>(() => new TestForeignNested());
- public static pb::MessageParser<TestForeignNested> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "foreign_nested" };
- private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[5]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public TestForeignNested() {
- OnConstruction();
- }
- partial void OnConstruction();
- public TestForeignNested(TestForeignNested other) : this() {
- ForeignNested = other.foreignNested_ != null ? other.ForeignNested.Clone() : null;
- }
- public TestForeignNested Clone() {
- return new TestForeignNested(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- if (foreignNested_ != null) ForeignNested.Freeze();
- }
- public const int ForeignNestedFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage foreignNested_;
- public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
- get { return foreignNested_; }
- set {
- pb::Freezable.CheckMutable(this);
- foreignNested_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as TestForeignNested);
- }
- public bool Equals(TestForeignNested other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(ForeignNested, other.ForeignNested)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (foreignNested_ != null) hash ^= ForeignNested.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (foreignNested_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(ForeignNested);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (foreignNested_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(ForeignNested);
- }
- return size;
- }
- public void MergeFrom(TestForeignNested other) {
- if (other == null) {
- return;
- }
- if (other.foreignNested_ != null) {
- if (foreignNested_ == null) {
- foreignNested_ = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
- }
- ForeignNested.MergeFrom(other.ForeignNested);
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 10: {
- if (foreignNested_ == null) {
- foreignNested_ = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
- }
- input.ReadMessage(foreignNested_);
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestReallyLargeTagNumber : pb::IMessage<TestReallyLargeTagNumber> {
- private static readonly pb::MessageParser<TestReallyLargeTagNumber> _parser = new pb::MessageParser<TestReallyLargeTagNumber>(() => new TestReallyLargeTagNumber());
- public static pb::MessageParser<TestReallyLargeTagNumber> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "a", "bb" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 2147483640 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[6]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public TestReallyLargeTagNumber() {
- OnConstruction();
- }
- partial void OnConstruction();
- public TestReallyLargeTagNumber(TestReallyLargeTagNumber other) : this() {
- a_ = other.a_;
- bb_ = other.bb_;
- }
- public TestReallyLargeTagNumber Clone() {
- return new TestReallyLargeTagNumber(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public const int AFieldNumber = 1;
- private int a_;
- public int A {
- get { return a_; }
- set {
- pb::Freezable.CheckMutable(this);
- a_ = value;
- }
- }
- public const int BbFieldNumber = 268435455;
- private int bb_;
- public int Bb {
- get { return bb_; }
- set {
- pb::Freezable.CheckMutable(this);
- bb_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as TestReallyLargeTagNumber);
- }
- public bool Equals(TestReallyLargeTagNumber other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- if (Bb != other.Bb) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (A != 0) hash ^= A.GetHashCode();
- if (Bb != 0) hash ^= Bb.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (A != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(A);
- }
- if (Bb != 0) {
- output.WriteRawTag(248, 255, 255, 255, 7);
- output.WriteInt32(Bb);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (A != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(A);
- }
- if (Bb != 0) {
- size += 5 + pb::CodedOutputStream.ComputeInt32Size(Bb);
- }
- return size;
- }
- public void MergeFrom(TestReallyLargeTagNumber other) {
- if (other == null) {
- return;
- }
- if (other.A != 0) {
- A = other.A;
- }
- if (other.Bb != 0) {
- Bb = other.Bb;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- A = input.ReadInt32();
- break;
- }
- case 2147483640: {
- Bb = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestRecursiveMessage : pb::IMessage<TestRecursiveMessage> {
- private static readonly pb::MessageParser<TestRecursiveMessage> _parser = new pb::MessageParser<TestRecursiveMessage>(() => new TestRecursiveMessage());
- public static pb::MessageParser<TestRecursiveMessage> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "a", "i" };
- private static readonly uint[] _fieldTags = new uint[] { 10, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[7]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public TestRecursiveMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- public TestRecursiveMessage(TestRecursiveMessage other) : this() {
- A = other.a_ != null ? other.A.Clone() : null;
- i_ = other.i_;
- }
- public TestRecursiveMessage Clone() {
- return new TestRecursiveMessage(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- if (a_ != null) A.Freeze();
- }
- public const int AFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.TestRecursiveMessage a_;
- public global::Google.Protobuf.TestProtos.TestRecursiveMessage A {
- get { return a_; }
- set {
- pb::Freezable.CheckMutable(this);
- a_ = value;
- }
- }
- public const int IFieldNumber = 2;
- private int i_;
- public int I {
- get { return i_; }
- set {
- pb::Freezable.CheckMutable(this);
- i_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as TestRecursiveMessage);
- }
- public bool Equals(TestRecursiveMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(A, other.A)) return false;
- if (I != other.I) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (a_ != null) hash ^= A.GetHashCode();
- if (I != 0) hash ^= I.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (a_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(A);
- }
- if (I != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(I);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (a_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(A);
- }
- if (I != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(I);
- }
- return size;
- }
- public void MergeFrom(TestRecursiveMessage other) {
- if (other == null) {
- return;
- }
- if (other.a_ != null) {
- if (a_ == null) {
- a_ = new global::Google.Protobuf.TestProtos.TestRecursiveMessage();
- }
- A.MergeFrom(other.A);
- }
- if (other.I != 0) {
- I = other.I;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 10: {
- if (a_ == null) {
- a_ = new global::Google.Protobuf.TestProtos.TestRecursiveMessage();
- }
- input.ReadMessage(a_);
- break;
- }
- case 16: {
- I = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestMutualRecursionA : pb::IMessage<TestMutualRecursionA> {
- private static readonly pb::MessageParser<TestMutualRecursionA> _parser = new pb::MessageParser<TestMutualRecursionA>(() => new TestMutualRecursionA());
- public static pb::MessageParser<TestMutualRecursionA> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "bb" };
- private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[8]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public TestMutualRecursionA() {
- OnConstruction();
- }
- partial void OnConstruction();
- public TestMutualRecursionA(TestMutualRecursionA other) : this() {
- Bb = other.bb_ != null ? other.Bb.Clone() : null;
- }
- public TestMutualRecursionA Clone() {
- return new TestMutualRecursionA(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- if (bb_ != null) Bb.Freeze();
- }
- public const int BbFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.TestMutualRecursionB bb_;
- public global::Google.Protobuf.TestProtos.TestMutualRecursionB Bb {
- get { return bb_; }
- set {
- pb::Freezable.CheckMutable(this);
- bb_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as TestMutualRecursionA);
- }
- public bool Equals(TestMutualRecursionA other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Bb, other.Bb)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (bb_ != null) hash ^= Bb.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (bb_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Bb);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (bb_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bb);
- }
- return size;
- }
- public void MergeFrom(TestMutualRecursionA other) {
- if (other == null) {
- return;
- }
- if (other.bb_ != null) {
- if (bb_ == null) {
- bb_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionB();
- }
- Bb.MergeFrom(other.Bb);
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 10: {
- if (bb_ == null) {
- bb_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionB();
- }
- input.ReadMessage(bb_);
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestMutualRecursionB : pb::IMessage<TestMutualRecursionB> {
- private static readonly pb::MessageParser<TestMutualRecursionB> _parser = new pb::MessageParser<TestMutualRecursionB>(() => new TestMutualRecursionB());
- public static pb::MessageParser<TestMutualRecursionB> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "a", "optional_int32" };
- private static readonly uint[] _fieldTags = new uint[] { 10, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[9]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public TestMutualRecursionB() {
- OnConstruction();
- }
- partial void OnConstruction();
- public TestMutualRecursionB(TestMutualRecursionB other) : this() {
- A = other.a_ != null ? other.A.Clone() : null;
- optionalInt32_ = other.optionalInt32_;
- }
- public TestMutualRecursionB Clone() {
- return new TestMutualRecursionB(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- if (a_ != null) A.Freeze();
- }
- public const int AFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.TestMutualRecursionA a_;
- public global::Google.Protobuf.TestProtos.TestMutualRecursionA A {
- get { return a_; }
- set {
- pb::Freezable.CheckMutable(this);
- a_ = value;
- }
- }
- public const int OptionalInt32FieldNumber = 2;
- private int optionalInt32_;
- public int OptionalInt32 {
- get { return optionalInt32_; }
- set {
- pb::Freezable.CheckMutable(this);
- optionalInt32_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as TestMutualRecursionB);
- }
- public bool Equals(TestMutualRecursionB other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(A, other.A)) return false;
- if (OptionalInt32 != other.OptionalInt32) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (a_ != null) hash ^= A.GetHashCode();
- if (OptionalInt32 != 0) hash ^= OptionalInt32.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (a_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(A);
- }
- if (OptionalInt32 != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(OptionalInt32);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (a_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(A);
- }
- if (OptionalInt32 != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32);
- }
- return size;
- }
- public void MergeFrom(TestMutualRecursionB other) {
- if (other == null) {
- return;
- }
- if (other.a_ != null) {
- if (a_ == null) {
- a_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionA();
- }
- A.MergeFrom(other.A);
- }
- if (other.OptionalInt32 != 0) {
- OptionalInt32 = other.OptionalInt32;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 10: {
- if (a_ == null) {
- a_ = new global::Google.Protobuf.TestProtos.TestMutualRecursionA();
- }
- input.ReadMessage(a_);
- break;
- }
- case 16: {
- OptionalInt32 = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestCamelCaseFieldNames : pb::IMessage<TestCamelCaseFieldNames> {
- private static readonly pb::MessageParser<TestCamelCaseFieldNames> _parser = new pb::MessageParser<TestCamelCaseFieldNames>(() => new TestCamelCaseFieldNames());
- public static pb::MessageParser<TestCamelCaseFieldNames> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "EnumField", "MessageField", "PrimitiveField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedPrimitiveField", "RepeatedStringField", "StringField" };
- private static readonly uint[] _fieldTags = new uint[] { 24, 34, 8, 74, 82, 58, 66, 18 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[10]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public TestCamelCaseFieldNames() {
- OnConstruction();
- }
- partial void OnConstruction();
- public TestCamelCaseFieldNames(TestCamelCaseFieldNames other) : this() {
- primitiveField_ = other.primitiveField_;
- stringField_ = other.stringField_;
- enumField_ = other.enumField_;
- MessageField = other.messageField_ != null ? other.MessageField.Clone() : null;
- repeatedPrimitiveField_ = other.repeatedPrimitiveField_.Clone();
- repeatedStringField_ = other.repeatedStringField_.Clone();
- repeatedEnumField_ = other.repeatedEnumField_.Clone();
- repeatedMessageField_ = other.repeatedMessageField_.Clone();
- }
- public TestCamelCaseFieldNames Clone() {
- return new TestCamelCaseFieldNames(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- if (messageField_ != null) MessageField.Freeze();
- repeatedPrimitiveField_.Freeze();
- repeatedStringField_.Freeze();
- repeatedEnumField_.Freeze();
- repeatedMessageField_.Freeze();
- }
- public const int PrimitiveFieldFieldNumber = 1;
- private int primitiveField_;
- public int PrimitiveField {
- get { return primitiveField_; }
- set {
- pb::Freezable.CheckMutable(this);
- primitiveField_ = value;
- }
- }
- public const int StringFieldFieldNumber = 2;
- private string stringField_ = "";
- public string StringField {
- get { return stringField_; }
- set {
- pb::Freezable.CheckMutable(this);
- stringField_ = value ?? "";
- }
- }
- public const int EnumFieldFieldNumber = 3;
- private global::Google.Protobuf.TestProtos.ForeignEnum enumField_ = global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED;
- public global::Google.Protobuf.TestProtos.ForeignEnum EnumField {
- get { return enumField_; }
- set {
- pb::Freezable.CheckMutable(this);
- enumField_ = value;
- }
- }
- public const int MessageFieldFieldNumber = 4;
- private global::Google.Protobuf.TestProtos.ForeignMessage messageField_;
- public global::Google.Protobuf.TestProtos.ForeignMessage MessageField {
- get { return messageField_; }
- set {
- pb::Freezable.CheckMutable(this);
- messageField_ = value;
- }
- }
- public const int RepeatedPrimitiveFieldFieldNumber = 7;
- private static readonly pb::FieldCodec<int> _repeated_repeatedPrimitiveField_codec
- = pb::FieldCodec.ForInt32(58);
- private readonly pbc::RepeatedField<int> repeatedPrimitiveField_ = new pbc::RepeatedField<int>();
- public pbc::RepeatedField<int> RepeatedPrimitiveField {
- get { return repeatedPrimitiveField_; }
- }
- public const int RepeatedStringFieldFieldNumber = 8;
- private static readonly pb::FieldCodec<string> _repeated_repeatedStringField_codec
- = pb::FieldCodec.ForString(66);
- private readonly pbc::RepeatedField<string> repeatedStringField_ = new pbc::RepeatedField<string>();
- public pbc::RepeatedField<string> RepeatedStringField {
- get { return repeatedStringField_; }
- }
- public const int RepeatedEnumFieldFieldNumber = 9;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_repeatedEnumField_codec
- = pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x);private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> repeatedEnumField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum>();
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> RepeatedEnumField {
- get { return repeatedEnumField_; }
- }
- public const int RepeatedMessageFieldFieldNumber = 10;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignMessage> _repeated_repeatedMessageField_codec
- = pb::FieldCodec.ForMessage(82, global::Google.Protobuf.TestProtos.ForeignMessage.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage> repeatedMessageField_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage>();
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignMessage> RepeatedMessageField {
- get { return repeatedMessageField_; }
- }
- public override bool Equals(object other) {
- return Equals(other as TestCamelCaseFieldNames);
- }
- public bool Equals(TestCamelCaseFieldNames other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (PrimitiveField != other.PrimitiveField) return false;
- if (StringField != other.StringField) return false;
- if (EnumField != other.EnumField) return false;
- if (!object.Equals(MessageField, other.MessageField)) return false;
- if(!repeatedPrimitiveField_.Equals(other.repeatedPrimitiveField_)) return false;
- if(!repeatedStringField_.Equals(other.repeatedStringField_)) return false;
- if(!repeatedEnumField_.Equals(other.repeatedEnumField_)) return false;
- if(!repeatedMessageField_.Equals(other.repeatedMessageField_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (PrimitiveField != 0) hash ^= PrimitiveField.GetHashCode();
- if (StringField.Length != 0) hash ^= StringField.GetHashCode();
- if (EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) hash ^= EnumField.GetHashCode();
- if (messageField_ != null) hash ^= MessageField.GetHashCode();
- hash ^= repeatedPrimitiveField_.GetHashCode();
- hash ^= repeatedStringField_.GetHashCode();
- hash ^= repeatedEnumField_.GetHashCode();
- hash ^= repeatedMessageField_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (PrimitiveField != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(PrimitiveField);
- }
- if (StringField.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(StringField);
- }
- if (EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) {
- output.WriteRawTag(24);
- output.WriteEnum((int) EnumField);
- }
- if (messageField_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(MessageField);
- }
- repeatedPrimitiveField_.WriteTo(output, _repeated_repeatedPrimitiveField_codec);
- repeatedStringField_.WriteTo(output, _repeated_repeatedStringField_codec);
- repeatedEnumField_.WriteTo(output, _repeated_repeatedEnumField_codec);
- repeatedMessageField_.WriteTo(output, _repeated_repeatedMessageField_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (PrimitiveField != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveField);
- }
- if (StringField.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(StringField);
- }
- if (EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumField);
- }
- if (messageField_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageField);
- }
- size += repeatedPrimitiveField_.CalculateSize(_repeated_repeatedPrimitiveField_codec);
- size += repeatedStringField_.CalculateSize(_repeated_repeatedStringField_codec);
- size += repeatedEnumField_.CalculateSize(_repeated_repeatedEnumField_codec);
- size += repeatedMessageField_.CalculateSize(_repeated_repeatedMessageField_codec);
- return size;
- }
- public void MergeFrom(TestCamelCaseFieldNames other) {
- if (other == null) {
- return;
- }
- if (other.PrimitiveField != 0) {
- PrimitiveField = other.PrimitiveField;
- }
- if (other.StringField.Length != 0) {
- StringField = other.StringField;
- }
- if (other.EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) {
- EnumField = other.EnumField;
- }
- if (other.messageField_ != null) {
- if (messageField_ == null) {
- messageField_ = new global::Google.Protobuf.TestProtos.ForeignMessage();
- }
- MessageField.MergeFrom(other.MessageField);
- }
- repeatedPrimitiveField_.Add(other.repeatedPrimitiveField_);
- repeatedStringField_.Add(other.repeatedStringField_);
- repeatedEnumField_.Add(other.repeatedEnumField_);
- repeatedMessageField_.Add(other.repeatedMessageField_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- PrimitiveField = input.ReadInt32();
- break;
- }
- case 18: {
- StringField = input.ReadString();
- break;
- }
- case 24: {
- enumField_ = (global::Google.Protobuf.TestProtos.ForeignEnum) input.ReadEnum();
- break;
- }
- case 34: {
- if (messageField_ == null) {
- messageField_ = new global::Google.Protobuf.TestProtos.ForeignMessage();
- }
- input.ReadMessage(messageField_);
- break;
- }
- case 58:
- case 56: {
- repeatedPrimitiveField_.AddEntriesFrom(input, _repeated_repeatedPrimitiveField_codec);
- break;
- }
- case 66: {
- repeatedStringField_.AddEntriesFrom(input, _repeated_repeatedStringField_codec);
- break;
- }
- case 74:
- case 72: {
- repeatedEnumField_.AddEntriesFrom(input, _repeated_repeatedEnumField_codec);
- break;
- }
- case 82: {
- repeatedMessageField_.AddEntriesFrom(input, _repeated_repeatedMessageField_codec);
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestFieldOrderings : pb::IMessage<TestFieldOrderings> {
- private static readonly pb::MessageParser<TestFieldOrderings> _parser = new pb::MessageParser<TestFieldOrderings>(() => new TestFieldOrderings());
- public static pb::MessageParser<TestFieldOrderings> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "my_float", "my_int", "my_string", "single_nested_message" };
- private static readonly uint[] _fieldTags = new uint[] { 813, 8, 90, 1602 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[11]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public TestFieldOrderings() {
- OnConstruction();
- }
- partial void OnConstruction();
- public TestFieldOrderings(TestFieldOrderings other) : this() {
- myString_ = other.myString_;
- myInt_ = other.myInt_;
- myFloat_ = other.myFloat_;
- SingleNestedMessage = other.singleNestedMessage_ != null ? other.SingleNestedMessage.Clone() : null;
- }
- public TestFieldOrderings Clone() {
- return new TestFieldOrderings(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- if (singleNestedMessage_ != null) SingleNestedMessage.Freeze();
- }
- public const int MyStringFieldNumber = 11;
- private string myString_ = "";
- public string MyString {
- get { return myString_; }
- set {
- pb::Freezable.CheckMutable(this);
- myString_ = value ?? "";
- }
- }
- public const int MyIntFieldNumber = 1;
- private long myInt_;
- public long MyInt {
- get { return myInt_; }
- set {
- pb::Freezable.CheckMutable(this);
- myInt_ = value;
- }
- }
- public const int MyFloatFieldNumber = 101;
- private float myFloat_;
- public float MyFloat {
- get { return myFloat_; }
- set {
- pb::Freezable.CheckMutable(this);
- myFloat_ = value;
- }
- }
- public const int SingleNestedMessageFieldNumber = 200;
- private global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage singleNestedMessage_;
- public global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage SingleNestedMessage {
- get { return singleNestedMessage_; }
- set {
- pb::Freezable.CheckMutable(this);
- singleNestedMessage_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as TestFieldOrderings);
- }
- public bool Equals(TestFieldOrderings other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (MyString != other.MyString) return false;
- if (MyInt != other.MyInt) return false;
- if (MyFloat != other.MyFloat) return false;
- if (!object.Equals(SingleNestedMessage, other.SingleNestedMessage)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (MyString.Length != 0) hash ^= MyString.GetHashCode();
- if (MyInt != 0L) hash ^= MyInt.GetHashCode();
- if (MyFloat != 0F) hash ^= MyFloat.GetHashCode();
- if (singleNestedMessage_ != null) hash ^= SingleNestedMessage.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (MyInt != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(MyInt);
- }
- if (MyString.Length != 0) {
- output.WriteRawTag(90);
- output.WriteString(MyString);
- }
- if (MyFloat != 0F) {
- output.WriteRawTag(173, 6);
- output.WriteFloat(MyFloat);
- }
- if (singleNestedMessage_ != null) {
- output.WriteRawTag(194, 12);
- output.WriteMessage(SingleNestedMessage);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (MyString.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(MyString);
- }
- if (MyInt != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(MyInt);
- }
- if (MyFloat != 0F) {
- size += 2 + 4;
- }
- if (singleNestedMessage_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(SingleNestedMessage);
- }
- return size;
- }
- public void MergeFrom(TestFieldOrderings other) {
- if (other == null) {
- return;
- }
- if (other.MyString.Length != 0) {
- MyString = other.MyString;
- }
- if (other.MyInt != 0L) {
- MyInt = other.MyInt;
- }
- if (other.MyFloat != 0F) {
- MyFloat = other.MyFloat;
- }
- if (other.singleNestedMessage_ != null) {
- if (singleNestedMessage_ == null) {
- singleNestedMessage_ = new global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage();
- }
- SingleNestedMessage.MergeFrom(other.SingleNestedMessage);
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- MyInt = input.ReadInt64();
- break;
- }
- case 90: {
- MyString = input.ReadString();
- break;
- }
- case 813: {
- MyFloat = input.ReadFloat();
- break;
- }
- case 1602: {
- if (singleNestedMessage_ == null) {
- singleNestedMessage_ = new global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage();
- }
- input.ReadMessage(singleNestedMessage_);
- break;
- }
- }
- }
- }
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class NestedMessage : pb::IMessage<NestedMessage> {
- private static readonly pb::MessageParser<NestedMessage> _parser = new pb::MessageParser<NestedMessage>(() => new NestedMessage());
- public static pb::MessageParser<NestedMessage> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "bb", "oo" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.TestFieldOrderings.Descriptor.NestedTypes[0]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public NestedMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- public NestedMessage(NestedMessage other) : this() {
- oo_ = other.oo_;
- bb_ = other.bb_;
- }
- public NestedMessage Clone() {
- return new NestedMessage(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public const int OoFieldNumber = 2;
- private long oo_;
- public long Oo {
- get { return oo_; }
- set {
- pb::Freezable.CheckMutable(this);
- oo_ = value;
- }
- }
- public const int BbFieldNumber = 1;
- private int bb_;
- public int Bb {
- get { return bb_; }
- set {
- pb::Freezable.CheckMutable(this);
- bb_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as NestedMessage);
- }
- public bool Equals(NestedMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Oo != other.Oo) return false;
- if (Bb != other.Bb) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Oo != 0L) hash ^= Oo.GetHashCode();
- if (Bb != 0) hash ^= Bb.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Bb != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Bb);
- }
- if (Oo != 0L) {
- output.WriteRawTag(16);
- output.WriteInt64(Oo);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Oo != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Oo);
- }
- if (Bb != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bb);
- }
- return size;
- }
- public void MergeFrom(NestedMessage other) {
- if (other == null) {
- return;
- }
- if (other.Oo != 0L) {
- Oo = other.Oo;
- }
- if (other.Bb != 0) {
- Bb = other.Bb;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Bb = input.ReadInt32();
- break;
- }
- case 16: {
- Oo = input.ReadInt64();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class SparseEnumMessage : pb::IMessage<SparseEnumMessage> {
- private static readonly pb::MessageParser<SparseEnumMessage> _parser = new pb::MessageParser<SparseEnumMessage>(() => new SparseEnumMessage());
- public static pb::MessageParser<SparseEnumMessage> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "sparse_enum" };
- private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[12]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_SparseEnumMessage__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public SparseEnumMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- public SparseEnumMessage(SparseEnumMessage other) : this() {
- sparseEnum_ = other.sparseEnum_;
- }
- public SparseEnumMessage Clone() {
- return new SparseEnumMessage(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public const int SparseEnumFieldNumber = 1;
- private global::Google.Protobuf.TestProtos.TestSparseEnum sparseEnum_ = global::Google.Protobuf.TestProtos.TestSparseEnum.TEST_SPARSE_ENUM_UNSPECIFIED;
- public global::Google.Protobuf.TestProtos.TestSparseEnum SparseEnum {
- get { return sparseEnum_; }
- set {
- pb::Freezable.CheckMutable(this);
- sparseEnum_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as SparseEnumMessage);
- }
- public bool Equals(SparseEnumMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (SparseEnum != other.SparseEnum) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.TEST_SPARSE_ENUM_UNSPECIFIED) hash ^= SparseEnum.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.TEST_SPARSE_ENUM_UNSPECIFIED) {
- output.WriteRawTag(8);
- output.WriteEnum((int) SparseEnum);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.TEST_SPARSE_ENUM_UNSPECIFIED) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SparseEnum);
- }
- return size;
- }
- public void MergeFrom(SparseEnumMessage other) {
- if (other == null) {
- return;
- }
- if (other.SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.TEST_SPARSE_ENUM_UNSPECIFIED) {
- SparseEnum = other.SparseEnum;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- sparseEnum_ = (global::Google.Protobuf.TestProtos.TestSparseEnum) input.ReadEnum();
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class OneString : pb::IMessage<OneString> {
- private static readonly pb::MessageParser<OneString> _parser = new pb::MessageParser<OneString>(() => new OneString());
- public static pb::MessageParser<OneString> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "data" };
- private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[13]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_OneString__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public OneString() {
- OnConstruction();
- }
- partial void OnConstruction();
- public OneString(OneString other) : this() {
- data_ = other.data_;
- }
- public OneString Clone() {
- return new OneString(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public const int DataFieldNumber = 1;
- private string data_ = "";
- public string Data {
- get { return data_; }
- set {
- pb::Freezable.CheckMutable(this);
- data_ = value ?? "";
- }
- }
- public override bool Equals(object other) {
- return Equals(other as OneString);
- }
- public bool Equals(OneString other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Data.Length != 0) hash ^= Data.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Data.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Data);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Data.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Data);
- }
- return size;
- }
- public void MergeFrom(OneString other) {
- if (other == null) {
- return;
- }
- if (other.Data.Length != 0) {
- Data = other.Data;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 10: {
- Data = input.ReadString();
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MoreString : pb::IMessage<MoreString> {
- private static readonly pb::MessageParser<MoreString> _parser = new pb::MessageParser<MoreString>(() => new MoreString());
- public static pb::MessageParser<MoreString> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "data" };
- private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[14]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_MoreString__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public MoreString() {
- OnConstruction();
- }
- partial void OnConstruction();
- public MoreString(MoreString other) : this() {
- data_ = other.data_.Clone();
- }
- public MoreString Clone() {
- return new MoreString(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- data_.Freeze();
- }
- public const int DataFieldNumber = 1;
- private static readonly pb::FieldCodec<string> _repeated_data_codec
- = pb::FieldCodec.ForString(10);
- private readonly pbc::RepeatedField<string> data_ = new pbc::RepeatedField<string>();
- public pbc::RepeatedField<string> Data {
- get { return data_; }
- }
- public override bool Equals(object other) {
- return Equals(other as MoreString);
- }
- public bool Equals(MoreString other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!data_.Equals(other.data_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- hash ^= data_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- data_.WriteTo(output, _repeated_data_codec);
- }
- public int CalculateSize() {
- int size = 0;
- size += data_.CalculateSize(_repeated_data_codec);
- return size;
- }
- public void MergeFrom(MoreString other) {
- if (other == null) {
- return;
- }
- data_.Add(other.data_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 10: {
- data_.AddEntriesFrom(input, _repeated_data_codec);
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class OneBytes : pb::IMessage<OneBytes> {
- private static readonly pb::MessageParser<OneBytes> _parser = new pb::MessageParser<OneBytes>(() => new OneBytes());
- public static pb::MessageParser<OneBytes> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "data" };
- private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[15]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_OneBytes__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public OneBytes() {
- OnConstruction();
- }
- partial void OnConstruction();
- public OneBytes(OneBytes other) : this() {
- data_ = other.data_;
- }
- public OneBytes Clone() {
- return new OneBytes(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public const int DataFieldNumber = 1;
- private pb::ByteString data_ = pb::ByteString.Empty;
- public pb::ByteString Data {
- get { return data_; }
- set {
- pb::Freezable.CheckMutable(this);
- data_ = value ?? pb::ByteString.Empty;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as OneBytes);
- }
- public bool Equals(OneBytes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Data.Length != 0) hash ^= Data.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Data.Length != 0) {
- output.WriteRawTag(10);
- output.WriteBytes(Data);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Data.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data);
- }
- return size;
- }
- public void MergeFrom(OneBytes other) {
- if (other == null) {
- return;
- }
- if (other.Data.Length != 0) {
- Data = other.Data;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 10: {
- Data = input.ReadBytes();
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MoreBytes : pb::IMessage<MoreBytes> {
- private static readonly pb::MessageParser<MoreBytes> _parser = new pb::MessageParser<MoreBytes>(() => new MoreBytes());
- public static pb::MessageParser<MoreBytes> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "data" };
- private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[16]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_MoreBytes__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public MoreBytes() {
- OnConstruction();
- }
- partial void OnConstruction();
- public MoreBytes(MoreBytes other) : this() {
- data_ = other.data_;
- }
- public MoreBytes Clone() {
- return new MoreBytes(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public const int DataFieldNumber = 1;
- private pb::ByteString data_ = pb::ByteString.Empty;
- public pb::ByteString Data {
- get { return data_; }
- set {
- pb::Freezable.CheckMutable(this);
- data_ = value ?? pb::ByteString.Empty;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as MoreBytes);
- }
- public bool Equals(MoreBytes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Data.Length != 0) hash ^= Data.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Data.Length != 0) {
- output.WriteRawTag(10);
- output.WriteBytes(Data);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Data.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data);
- }
- return size;
- }
- public void MergeFrom(MoreBytes other) {
- if (other == null) {
- return;
- }
- if (other.Data.Length != 0) {
- Data = other.Data;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 10: {
- Data = input.ReadBytes();
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Int32Message : pb::IMessage<Int32Message> {
- private static readonly pb::MessageParser<Int32Message> _parser = new pb::MessageParser<Int32Message>(() => new Int32Message());
- public static pb::MessageParser<Int32Message> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "data" };
- private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[17]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_Int32Message__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public Int32Message() {
- OnConstruction();
- }
- partial void OnConstruction();
- public Int32Message(Int32Message other) : this() {
- data_ = other.data_;
- }
- public Int32Message Clone() {
- return new Int32Message(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public const int DataFieldNumber = 1;
- private int data_;
- public int Data {
- get { return data_; }
- set {
- pb::Freezable.CheckMutable(this);
- data_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as Int32Message);
- }
- public bool Equals(Int32Message other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Data != 0) hash ^= Data.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Data != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Data);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Data != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data);
- }
- return size;
- }
- public void MergeFrom(Int32Message other) {
- if (other == null) {
- return;
- }
- if (other.Data != 0) {
- Data = other.Data;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Data = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Uint32Message : pb::IMessage<Uint32Message> {
- private static readonly pb::MessageParser<Uint32Message> _parser = new pb::MessageParser<Uint32Message>(() => new Uint32Message());
- public static pb::MessageParser<Uint32Message> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "data" };
- private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[18]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_Uint32Message__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public Uint32Message() {
- OnConstruction();
- }
- partial void OnConstruction();
- public Uint32Message(Uint32Message other) : this() {
- data_ = other.data_;
- }
- public Uint32Message Clone() {
- return new Uint32Message(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public const int DataFieldNumber = 1;
- private uint data_;
- public uint Data {
- get { return data_; }
- set {
- pb::Freezable.CheckMutable(this);
- data_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as Uint32Message);
- }
- public bool Equals(Uint32Message other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Data != 0) hash ^= Data.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Data != 0) {
- output.WriteRawTag(8);
- output.WriteUInt32(Data);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Data != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Data);
- }
- return size;
- }
- public void MergeFrom(Uint32Message other) {
- if (other == null) {
- return;
- }
- if (other.Data != 0) {
- Data = other.Data;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Data = input.ReadUInt32();
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Int64Message : pb::IMessage<Int64Message> {
- private static readonly pb::MessageParser<Int64Message> _parser = new pb::MessageParser<Int64Message>(() => new Int64Message());
- public static pb::MessageParser<Int64Message> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "data" };
- private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[19]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_Int64Message__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public Int64Message() {
- OnConstruction();
- }
- partial void OnConstruction();
- public Int64Message(Int64Message other) : this() {
- data_ = other.data_;
- }
- public Int64Message Clone() {
- return new Int64Message(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public const int DataFieldNumber = 1;
- private long data_;
- public long Data {
- get { return data_; }
- set {
- pb::Freezable.CheckMutable(this);
- data_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as Int64Message);
- }
- public bool Equals(Int64Message other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Data != 0L) hash ^= Data.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Data != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(Data);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Data != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Data);
- }
- return size;
- }
- public void MergeFrom(Int64Message other) {
- if (other == null) {
- return;
- }
- if (other.Data != 0L) {
- Data = other.Data;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Data = input.ReadInt64();
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Uint64Message : pb::IMessage<Uint64Message> {
- private static readonly pb::MessageParser<Uint64Message> _parser = new pb::MessageParser<Uint64Message>(() => new Uint64Message());
- public static pb::MessageParser<Uint64Message> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "data" };
- private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[20]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_Uint64Message__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public Uint64Message() {
- OnConstruction();
- }
- partial void OnConstruction();
- public Uint64Message(Uint64Message other) : this() {
- data_ = other.data_;
- }
- public Uint64Message Clone() {
- return new Uint64Message(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public const int DataFieldNumber = 1;
- private ulong data_;
- public ulong Data {
- get { return data_; }
- set {
- pb::Freezable.CheckMutable(this);
- data_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as Uint64Message);
- }
- public bool Equals(Uint64Message other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Data != 0UL) hash ^= Data.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Data != 0UL) {
- output.WriteRawTag(8);
- output.WriteUInt64(Data);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Data != 0UL) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Data);
- }
- return size;
- }
- public void MergeFrom(Uint64Message other) {
- if (other == null) {
- return;
- }
- if (other.Data != 0UL) {
- Data = other.Data;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Data = input.ReadUInt64();
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class BoolMessage : pb::IMessage<BoolMessage> {
- private static readonly pb::MessageParser<BoolMessage> _parser = new pb::MessageParser<BoolMessage>(() => new BoolMessage());
- public static pb::MessageParser<BoolMessage> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "data" };
- private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[21]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_BoolMessage__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public BoolMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- public BoolMessage(BoolMessage other) : this() {
- data_ = other.data_;
- }
- public BoolMessage Clone() {
- return new BoolMessage(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public const int DataFieldNumber = 1;
- private bool data_;
- public bool Data {
- get { return data_; }
- set {
- pb::Freezable.CheckMutable(this);
- data_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as BoolMessage);
- }
- public bool Equals(BoolMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Data != other.Data) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Data != false) hash ^= Data.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Data != false) {
- output.WriteRawTag(8);
- output.WriteBool(Data);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Data != false) {
- size += 1 + 1;
- }
- return size;
- }
- public void MergeFrom(BoolMessage other) {
- if (other == null) {
- return;
- }
- if (other.Data != false) {
- Data = other.Data;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Data = input.ReadBool();
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestOneof : pb::IMessage<TestOneof> {
- private static readonly pb::MessageParser<TestOneof> _parser = new pb::MessageParser<TestOneof>(() => new TestOneof());
- public static pb::MessageParser<TestOneof> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "foo_int", "foo_message", "foo_string" };
- private static readonly uint[] _fieldTags = new uint[] { 8, 26, 18 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[22]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestOneof__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public TestOneof() {
- OnConstruction();
- }
- partial void OnConstruction();
- public TestOneof(TestOneof other) : this() {
- switch (other.FooCase) {
- case FooOneofCase.FooInt:
- FooInt = other.FooInt;
- break;
- case FooOneofCase.FooString:
- FooString = other.FooString;
- break;
- case FooOneofCase.FooMessage:
- FooMessage = other.FooMessage.Clone();
- break;
- }
- }
- public TestOneof Clone() {
- return new TestOneof(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- if (foo_ is IFreezable) ((IFreezable) foo_).Freeze();
- }
- public const int FooIntFieldNumber = 1;
- public int FooInt {
- get { return fooCase_ == FooOneofCase.FooInt ? (int) foo_ : 0; }
- set {
- pb::Freezable.CheckMutable(this);
- foo_ = value;
- fooCase_ = FooOneofCase.FooInt;
- }
- }
- public const int FooStringFieldNumber = 2;
- public string FooString {
- get { return fooCase_ == FooOneofCase.FooString ? (string) foo_ : ""; }
- set {
- pb::Freezable.CheckMutable(this);
- foo_ = value ?? "";
- fooCase_ = FooOneofCase.FooString;
- }
- }
- public const int FooMessageFieldNumber = 3;
- public global::Google.Protobuf.TestProtos.TestAllTypes FooMessage {
- get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.TestAllTypes) foo_ : null; }
- set {
- pb::Freezable.CheckMutable(this);
- foo_ = value;
- fooCase_ = value == null ? FooOneofCase.None : FooOneofCase.FooMessage;
- }
- }
- private object foo_;
- public enum FooOneofCase {
- None = 0,
- FooInt = 1,
- FooString = 2,
- FooMessage = 3,
- }
- private FooOneofCase fooCase_ = FooOneofCase.None;
- public FooOneofCase FooCase {
- get { return fooCase_; }
- }
- public void ClearFoo() {
- pb::Freezable.CheckMutable(this);
- fooCase_ = FooOneofCase.None;
- foo_ = null;
- }
- public override bool Equals(object other) {
- return Equals(other as TestOneof);
- }
- public bool Equals(TestOneof other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (FooInt != other.FooInt) return false;
- if (FooString != other.FooString) return false;
- if (!object.Equals(FooMessage, other.FooMessage)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (fooCase_ == FooOneofCase.FooInt) hash ^= FooInt.GetHashCode();
- if (fooCase_ == FooOneofCase.FooString) hash ^= FooString.GetHashCode();
- if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (fooCase_ == FooOneofCase.FooInt) {
- output.WriteRawTag(8);
- output.WriteInt32(FooInt);
- }
- if (fooCase_ == FooOneofCase.FooString) {
- output.WriteRawTag(18);
- output.WriteString(FooString);
- }
- if (fooCase_ == FooOneofCase.FooMessage) {
- output.WriteRawTag(26);
- output.WriteMessage(FooMessage);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (fooCase_ == FooOneofCase.FooInt) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(FooInt);
- }
- if (fooCase_ == FooOneofCase.FooString) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(FooString);
- }
- if (fooCase_ == FooOneofCase.FooMessage) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(FooMessage);
- }
- return size;
- }
- public void MergeFrom(TestOneof other) {
- if (other == null) {
- return;
- }
- switch (other.FooCase) {
- case FooOneofCase.FooInt:
- FooInt = other.FooInt;
- break;
- case FooOneofCase.FooString:
- FooString = other.FooString;
- break;
- case FooOneofCase.FooMessage:
- FooMessage = other.FooMessage;
- break;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- FooInt = input.ReadInt32();
- break;
- }
- case 18: {
- FooString = input.ReadString();
- break;
- }
- case 26: {
- global::Google.Protobuf.TestProtos.TestAllTypes subBuilder = new global::Google.Protobuf.TestProtos.TestAllTypes();
- if (fooCase_ == FooOneofCase.FooMessage) {
- subBuilder.MergeFrom(FooMessage);
- }
- input.ReadMessage(subBuilder);
- FooMessage = subBuilder;
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestPackedTypes : pb::IMessage<TestPackedTypes> {
- private static readonly pb::MessageParser<TestPackedTypes> _parser = new pb::MessageParser<TestPackedTypes>(() => new TestPackedTypes());
- public static pb::MessageParser<TestPackedTypes> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "packed_bool", "packed_double", "packed_enum", "packed_fixed32", "packed_fixed64", "packed_float", "packed_int32", "packed_int64", "packed_sfixed32", "packed_sfixed64", "packed_sint32", "packed_sint64", "packed_uint32", "packed_uint64" };
- private static readonly uint[] _fieldTags = new uint[] { 818, 810, 826, 770, 778, 802, 722, 730, 786, 794, 754, 762, 738, 746 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[23]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public TestPackedTypes() {
- OnConstruction();
- }
- partial void OnConstruction();
- public TestPackedTypes(TestPackedTypes other) : this() {
- packedInt32_ = other.packedInt32_.Clone();
- packedInt64_ = other.packedInt64_.Clone();
- packedUint32_ = other.packedUint32_.Clone();
- packedUint64_ = other.packedUint64_.Clone();
- packedSint32_ = other.packedSint32_.Clone();
- packedSint64_ = other.packedSint64_.Clone();
- packedFixed32_ = other.packedFixed32_.Clone();
- packedFixed64_ = other.packedFixed64_.Clone();
- packedSfixed32_ = other.packedSfixed32_.Clone();
- packedSfixed64_ = other.packedSfixed64_.Clone();
- packedFloat_ = other.packedFloat_.Clone();
- packedDouble_ = other.packedDouble_.Clone();
- packedBool_ = other.packedBool_.Clone();
- packedEnum_ = other.packedEnum_.Clone();
- }
- public TestPackedTypes Clone() {
- return new TestPackedTypes(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- packedInt32_.Freeze();
- packedInt64_.Freeze();
- packedUint32_.Freeze();
- packedUint64_.Freeze();
- packedSint32_.Freeze();
- packedSint64_.Freeze();
- packedFixed32_.Freeze();
- packedFixed64_.Freeze();
- packedSfixed32_.Freeze();
- packedSfixed64_.Freeze();
- packedFloat_.Freeze();
- packedDouble_.Freeze();
- packedBool_.Freeze();
- packedEnum_.Freeze();
- }
- public const int PackedInt32FieldNumber = 90;
- private static readonly pb::FieldCodec<int> _repeated_packedInt32_codec
- = pb::FieldCodec.ForInt32(722);
- private readonly pbc::RepeatedField<int> packedInt32_ = new pbc::RepeatedField<int>();
- public pbc::RepeatedField<int> PackedInt32 {
- get { return packedInt32_; }
- }
- public const int PackedInt64FieldNumber = 91;
- private static readonly pb::FieldCodec<long> _repeated_packedInt64_codec
- = pb::FieldCodec.ForInt64(730);
- private readonly pbc::RepeatedField<long> packedInt64_ = new pbc::RepeatedField<long>();
- public pbc::RepeatedField<long> PackedInt64 {
- get { return packedInt64_; }
- }
- public const int PackedUint32FieldNumber = 92;
- private static readonly pb::FieldCodec<uint> _repeated_packedUint32_codec
- = pb::FieldCodec.ForUInt32(738);
- private readonly pbc::RepeatedField<uint> packedUint32_ = new pbc::RepeatedField<uint>();
- public pbc::RepeatedField<uint> PackedUint32 {
- get { return packedUint32_; }
- }
- public const int PackedUint64FieldNumber = 93;
- private static readonly pb::FieldCodec<ulong> _repeated_packedUint64_codec
- = pb::FieldCodec.ForUInt64(746);
- private readonly pbc::RepeatedField<ulong> packedUint64_ = new pbc::RepeatedField<ulong>();
- public pbc::RepeatedField<ulong> PackedUint64 {
- get { return packedUint64_; }
- }
- public const int PackedSint32FieldNumber = 94;
- private static readonly pb::FieldCodec<int> _repeated_packedSint32_codec
- = pb::FieldCodec.ForSInt32(754);
- private readonly pbc::RepeatedField<int> packedSint32_ = new pbc::RepeatedField<int>();
- public pbc::RepeatedField<int> PackedSint32 {
- get { return packedSint32_; }
- }
- public const int PackedSint64FieldNumber = 95;
- private static readonly pb::FieldCodec<long> _repeated_packedSint64_codec
- = pb::FieldCodec.ForSInt64(762);
- private readonly pbc::RepeatedField<long> packedSint64_ = new pbc::RepeatedField<long>();
- public pbc::RepeatedField<long> PackedSint64 {
- get { return packedSint64_; }
- }
- public const int PackedFixed32FieldNumber = 96;
- private static readonly pb::FieldCodec<uint> _repeated_packedFixed32_codec
- = pb::FieldCodec.ForFixed32(770);
- private readonly pbc::RepeatedField<uint> packedFixed32_ = new pbc::RepeatedField<uint>();
- public pbc::RepeatedField<uint> PackedFixed32 {
- get { return packedFixed32_; }
- }
- public const int PackedFixed64FieldNumber = 97;
- private static readonly pb::FieldCodec<ulong> _repeated_packedFixed64_codec
- = pb::FieldCodec.ForFixed64(778);
- private readonly pbc::RepeatedField<ulong> packedFixed64_ = new pbc::RepeatedField<ulong>();
- public pbc::RepeatedField<ulong> PackedFixed64 {
- get { return packedFixed64_; }
- }
- public const int PackedSfixed32FieldNumber = 98;
- private static readonly pb::FieldCodec<int> _repeated_packedSfixed32_codec
- = pb::FieldCodec.ForSFixed32(786);
- private readonly pbc::RepeatedField<int> packedSfixed32_ = new pbc::RepeatedField<int>();
- public pbc::RepeatedField<int> PackedSfixed32 {
- get { return packedSfixed32_; }
- }
- public const int PackedSfixed64FieldNumber = 99;
- private static readonly pb::FieldCodec<long> _repeated_packedSfixed64_codec
- = pb::FieldCodec.ForSFixed64(794);
- private readonly pbc::RepeatedField<long> packedSfixed64_ = new pbc::RepeatedField<long>();
- public pbc::RepeatedField<long> PackedSfixed64 {
- get { return packedSfixed64_; }
- }
- public const int PackedFloatFieldNumber = 100;
- private static readonly pb::FieldCodec<float> _repeated_packedFloat_codec
- = pb::FieldCodec.ForFloat(802);
- private readonly pbc::RepeatedField<float> packedFloat_ = new pbc::RepeatedField<float>();
- public pbc::RepeatedField<float> PackedFloat {
- get { return packedFloat_; }
- }
- public const int PackedDoubleFieldNumber = 101;
- private static readonly pb::FieldCodec<double> _repeated_packedDouble_codec
- = pb::FieldCodec.ForDouble(810);
- private readonly pbc::RepeatedField<double> packedDouble_ = new pbc::RepeatedField<double>();
- public pbc::RepeatedField<double> PackedDouble {
- get { return packedDouble_; }
- }
- public const int PackedBoolFieldNumber = 102;
- private static readonly pb::FieldCodec<bool> _repeated_packedBool_codec
- = pb::FieldCodec.ForBool(818);
- private readonly pbc::RepeatedField<bool> packedBool_ = new pbc::RepeatedField<bool>();
- public pbc::RepeatedField<bool> PackedBool {
- get { return packedBool_; }
- }
- public const int PackedEnumFieldNumber = 103;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_packedEnum_codec
- = pb::FieldCodec.ForEnum(826, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x);private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> packedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum>();
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> PackedEnum {
- get { return packedEnum_; }
- }
- public override bool Equals(object other) {
- return Equals(other as TestPackedTypes);
- }
- public bool Equals(TestPackedTypes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!packedInt32_.Equals(other.packedInt32_)) return false;
- if(!packedInt64_.Equals(other.packedInt64_)) return false;
- if(!packedUint32_.Equals(other.packedUint32_)) return false;
- if(!packedUint64_.Equals(other.packedUint64_)) return false;
- if(!packedSint32_.Equals(other.packedSint32_)) return false;
- if(!packedSint64_.Equals(other.packedSint64_)) return false;
- if(!packedFixed32_.Equals(other.packedFixed32_)) return false;
- if(!packedFixed64_.Equals(other.packedFixed64_)) return false;
- if(!packedSfixed32_.Equals(other.packedSfixed32_)) return false;
- if(!packedSfixed64_.Equals(other.packedSfixed64_)) return false;
- if(!packedFloat_.Equals(other.packedFloat_)) return false;
- if(!packedDouble_.Equals(other.packedDouble_)) return false;
- if(!packedBool_.Equals(other.packedBool_)) return false;
- if(!packedEnum_.Equals(other.packedEnum_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- hash ^= packedInt32_.GetHashCode();
- hash ^= packedInt64_.GetHashCode();
- hash ^= packedUint32_.GetHashCode();
- hash ^= packedUint64_.GetHashCode();
- hash ^= packedSint32_.GetHashCode();
- hash ^= packedSint64_.GetHashCode();
- hash ^= packedFixed32_.GetHashCode();
- hash ^= packedFixed64_.GetHashCode();
- hash ^= packedSfixed32_.GetHashCode();
- hash ^= packedSfixed64_.GetHashCode();
- hash ^= packedFloat_.GetHashCode();
- hash ^= packedDouble_.GetHashCode();
- hash ^= packedBool_.GetHashCode();
- hash ^= packedEnum_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- packedInt32_.WriteTo(output, _repeated_packedInt32_codec);
- packedInt64_.WriteTo(output, _repeated_packedInt64_codec);
- packedUint32_.WriteTo(output, _repeated_packedUint32_codec);
- packedUint64_.WriteTo(output, _repeated_packedUint64_codec);
- packedSint32_.WriteTo(output, _repeated_packedSint32_codec);
- packedSint64_.WriteTo(output, _repeated_packedSint64_codec);
- packedFixed32_.WriteTo(output, _repeated_packedFixed32_codec);
- packedFixed64_.WriteTo(output, _repeated_packedFixed64_codec);
- packedSfixed32_.WriteTo(output, _repeated_packedSfixed32_codec);
- packedSfixed64_.WriteTo(output, _repeated_packedSfixed64_codec);
- packedFloat_.WriteTo(output, _repeated_packedFloat_codec);
- packedDouble_.WriteTo(output, _repeated_packedDouble_codec);
- packedBool_.WriteTo(output, _repeated_packedBool_codec);
- packedEnum_.WriteTo(output, _repeated_packedEnum_codec);
- }
- public int CalculateSize() {
- int size = 0;
- size += packedInt32_.CalculateSize(_repeated_packedInt32_codec);
- size += packedInt64_.CalculateSize(_repeated_packedInt64_codec);
- size += packedUint32_.CalculateSize(_repeated_packedUint32_codec);
- size += packedUint64_.CalculateSize(_repeated_packedUint64_codec);
- size += packedSint32_.CalculateSize(_repeated_packedSint32_codec);
- size += packedSint64_.CalculateSize(_repeated_packedSint64_codec);
- size += packedFixed32_.CalculateSize(_repeated_packedFixed32_codec);
- size += packedFixed64_.CalculateSize(_repeated_packedFixed64_codec);
- size += packedSfixed32_.CalculateSize(_repeated_packedSfixed32_codec);
- size += packedSfixed64_.CalculateSize(_repeated_packedSfixed64_codec);
- size += packedFloat_.CalculateSize(_repeated_packedFloat_codec);
- size += packedDouble_.CalculateSize(_repeated_packedDouble_codec);
- size += packedBool_.CalculateSize(_repeated_packedBool_codec);
- size += packedEnum_.CalculateSize(_repeated_packedEnum_codec);
- return size;
- }
- public void MergeFrom(TestPackedTypes other) {
- if (other == null) {
- return;
- }
- packedInt32_.Add(other.packedInt32_);
- packedInt64_.Add(other.packedInt64_);
- packedUint32_.Add(other.packedUint32_);
- packedUint64_.Add(other.packedUint64_);
- packedSint32_.Add(other.packedSint32_);
- packedSint64_.Add(other.packedSint64_);
- packedFixed32_.Add(other.packedFixed32_);
- packedFixed64_.Add(other.packedFixed64_);
- packedSfixed32_.Add(other.packedSfixed32_);
- packedSfixed64_.Add(other.packedSfixed64_);
- packedFloat_.Add(other.packedFloat_);
- packedDouble_.Add(other.packedDouble_);
- packedBool_.Add(other.packedBool_);
- packedEnum_.Add(other.packedEnum_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 722:
- case 720: {
- packedInt32_.AddEntriesFrom(input, _repeated_packedInt32_codec);
- break;
- }
- case 730:
- case 728: {
- packedInt64_.AddEntriesFrom(input, _repeated_packedInt64_codec);
- break;
- }
- case 738:
- case 736: {
- packedUint32_.AddEntriesFrom(input, _repeated_packedUint32_codec);
- break;
- }
- case 746:
- case 744: {
- packedUint64_.AddEntriesFrom(input, _repeated_packedUint64_codec);
- break;
- }
- case 754:
- case 752: {
- packedSint32_.AddEntriesFrom(input, _repeated_packedSint32_codec);
- break;
- }
- case 762:
- case 760: {
- packedSint64_.AddEntriesFrom(input, _repeated_packedSint64_codec);
- break;
- }
- case 770:
- case 773: {
- packedFixed32_.AddEntriesFrom(input, _repeated_packedFixed32_codec);
- break;
- }
- case 778:
- case 777: {
- packedFixed64_.AddEntriesFrom(input, _repeated_packedFixed64_codec);
- break;
- }
- case 786:
- case 789: {
- packedSfixed32_.AddEntriesFrom(input, _repeated_packedSfixed32_codec);
- break;
- }
- case 794:
- case 793: {
- packedSfixed64_.AddEntriesFrom(input, _repeated_packedSfixed64_codec);
- break;
- }
- case 802:
- case 805: {
- packedFloat_.AddEntriesFrom(input, _repeated_packedFloat_codec);
- break;
- }
- case 810:
- case 809: {
- packedDouble_.AddEntriesFrom(input, _repeated_packedDouble_codec);
- break;
- }
- case 818:
- case 816: {
- packedBool_.AddEntriesFrom(input, _repeated_packedBool_codec);
- break;
- }
- case 826:
- case 824: {
- packedEnum_.AddEntriesFrom(input, _repeated_packedEnum_codec);
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestUnpackedTypes : pb::IMessage<TestUnpackedTypes> {
- private static readonly pb::MessageParser<TestUnpackedTypes> _parser = new pb::MessageParser<TestUnpackedTypes>(() => new TestUnpackedTypes());
- public static pb::MessageParser<TestUnpackedTypes> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "unpacked_bool", "unpacked_double", "unpacked_enum", "unpacked_fixed32", "unpacked_fixed64", "unpacked_float", "unpacked_int32", "unpacked_int64", "unpacked_sfixed32", "unpacked_sfixed64", "unpacked_sint32", "unpacked_sint64", "unpacked_uint32", "unpacked_uint64" };
- private static readonly uint[] _fieldTags = new uint[] { 816, 809, 824, 773, 777, 805, 720, 728, 789, 793, 752, 760, 736, 744 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[24]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public TestUnpackedTypes() {
- OnConstruction();
- }
- partial void OnConstruction();
- public TestUnpackedTypes(TestUnpackedTypes other) : this() {
- unpackedInt32_ = other.unpackedInt32_.Clone();
- unpackedInt64_ = other.unpackedInt64_.Clone();
- unpackedUint32_ = other.unpackedUint32_.Clone();
- unpackedUint64_ = other.unpackedUint64_.Clone();
- unpackedSint32_ = other.unpackedSint32_.Clone();
- unpackedSint64_ = other.unpackedSint64_.Clone();
- unpackedFixed32_ = other.unpackedFixed32_.Clone();
- unpackedFixed64_ = other.unpackedFixed64_.Clone();
- unpackedSfixed32_ = other.unpackedSfixed32_.Clone();
- unpackedSfixed64_ = other.unpackedSfixed64_.Clone();
- unpackedFloat_ = other.unpackedFloat_.Clone();
- unpackedDouble_ = other.unpackedDouble_.Clone();
- unpackedBool_ = other.unpackedBool_.Clone();
- unpackedEnum_ = other.unpackedEnum_.Clone();
- }
- public TestUnpackedTypes Clone() {
- return new TestUnpackedTypes(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- unpackedInt32_.Freeze();
- unpackedInt64_.Freeze();
- unpackedUint32_.Freeze();
- unpackedUint64_.Freeze();
- unpackedSint32_.Freeze();
- unpackedSint64_.Freeze();
- unpackedFixed32_.Freeze();
- unpackedFixed64_.Freeze();
- unpackedSfixed32_.Freeze();
- unpackedSfixed64_.Freeze();
- unpackedFloat_.Freeze();
- unpackedDouble_.Freeze();
- unpackedBool_.Freeze();
- unpackedEnum_.Freeze();
- }
- public const int UnpackedInt32FieldNumber = 90;
- private static readonly pb::FieldCodec<int> _repeated_unpackedInt32_codec
- = pb::FieldCodec.ForInt32(720);
- private readonly pbc::RepeatedField<int> unpackedInt32_ = new pbc::RepeatedField<int>();
- public pbc::RepeatedField<int> UnpackedInt32 {
- get { return unpackedInt32_; }
- }
- public const int UnpackedInt64FieldNumber = 91;
- private static readonly pb::FieldCodec<long> _repeated_unpackedInt64_codec
- = pb::FieldCodec.ForInt64(728);
- private readonly pbc::RepeatedField<long> unpackedInt64_ = new pbc::RepeatedField<long>();
- public pbc::RepeatedField<long> UnpackedInt64 {
- get { return unpackedInt64_; }
- }
- public const int UnpackedUint32FieldNumber = 92;
- private static readonly pb::FieldCodec<uint> _repeated_unpackedUint32_codec
- = pb::FieldCodec.ForUInt32(736);
- private readonly pbc::RepeatedField<uint> unpackedUint32_ = new pbc::RepeatedField<uint>();
- public pbc::RepeatedField<uint> UnpackedUint32 {
- get { return unpackedUint32_; }
- }
- public const int UnpackedUint64FieldNumber = 93;
- private static readonly pb::FieldCodec<ulong> _repeated_unpackedUint64_codec
- = pb::FieldCodec.ForUInt64(744);
- private readonly pbc::RepeatedField<ulong> unpackedUint64_ = new pbc::RepeatedField<ulong>();
- public pbc::RepeatedField<ulong> UnpackedUint64 {
- get { return unpackedUint64_; }
- }
- public const int UnpackedSint32FieldNumber = 94;
- private static readonly pb::FieldCodec<int> _repeated_unpackedSint32_codec
- = pb::FieldCodec.ForSInt32(752);
- private readonly pbc::RepeatedField<int> unpackedSint32_ = new pbc::RepeatedField<int>();
- public pbc::RepeatedField<int> UnpackedSint32 {
- get { return unpackedSint32_; }
- }
- public const int UnpackedSint64FieldNumber = 95;
- private static readonly pb::FieldCodec<long> _repeated_unpackedSint64_codec
- = pb::FieldCodec.ForSInt64(760);
- private readonly pbc::RepeatedField<long> unpackedSint64_ = new pbc::RepeatedField<long>();
- public pbc::RepeatedField<long> UnpackedSint64 {
- get { return unpackedSint64_; }
- }
- public const int UnpackedFixed32FieldNumber = 96;
- private static readonly pb::FieldCodec<uint> _repeated_unpackedFixed32_codec
- = pb::FieldCodec.ForFixed32(773);
- private readonly pbc::RepeatedField<uint> unpackedFixed32_ = new pbc::RepeatedField<uint>();
- public pbc::RepeatedField<uint> UnpackedFixed32 {
- get { return unpackedFixed32_; }
- }
- public const int UnpackedFixed64FieldNumber = 97;
- private static readonly pb::FieldCodec<ulong> _repeated_unpackedFixed64_codec
- = pb::FieldCodec.ForFixed64(777);
- private readonly pbc::RepeatedField<ulong> unpackedFixed64_ = new pbc::RepeatedField<ulong>();
- public pbc::RepeatedField<ulong> UnpackedFixed64 {
- get { return unpackedFixed64_; }
- }
- public const int UnpackedSfixed32FieldNumber = 98;
- private static readonly pb::FieldCodec<int> _repeated_unpackedSfixed32_codec
- = pb::FieldCodec.ForSFixed32(789);
- private readonly pbc::RepeatedField<int> unpackedSfixed32_ = new pbc::RepeatedField<int>();
- public pbc::RepeatedField<int> UnpackedSfixed32 {
- get { return unpackedSfixed32_; }
- }
- public const int UnpackedSfixed64FieldNumber = 99;
- private static readonly pb::FieldCodec<long> _repeated_unpackedSfixed64_codec
- = pb::FieldCodec.ForSFixed64(793);
- private readonly pbc::RepeatedField<long> unpackedSfixed64_ = new pbc::RepeatedField<long>();
- public pbc::RepeatedField<long> UnpackedSfixed64 {
- get { return unpackedSfixed64_; }
- }
- public const int UnpackedFloatFieldNumber = 100;
- private static readonly pb::FieldCodec<float> _repeated_unpackedFloat_codec
- = pb::FieldCodec.ForFloat(805);
- private readonly pbc::RepeatedField<float> unpackedFloat_ = new pbc::RepeatedField<float>();
- public pbc::RepeatedField<float> UnpackedFloat {
- get { return unpackedFloat_; }
- }
- public const int UnpackedDoubleFieldNumber = 101;
- private static readonly pb::FieldCodec<double> _repeated_unpackedDouble_codec
- = pb::FieldCodec.ForDouble(809);
- private readonly pbc::RepeatedField<double> unpackedDouble_ = new pbc::RepeatedField<double>();
- public pbc::RepeatedField<double> UnpackedDouble {
- get { return unpackedDouble_; }
- }
- public const int UnpackedBoolFieldNumber = 102;
- private static readonly pb::FieldCodec<bool> _repeated_unpackedBool_codec
- = pb::FieldCodec.ForBool(816);
- private readonly pbc::RepeatedField<bool> unpackedBool_ = new pbc::RepeatedField<bool>();
- public pbc::RepeatedField<bool> UnpackedBool {
- get { return unpackedBool_; }
- }
- public const int UnpackedEnumFieldNumber = 103;
- private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_unpackedEnum_codec
- = pb::FieldCodec.ForEnum(824, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x);private readonly pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> unpackedEnum_ = new pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum>();
- public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> UnpackedEnum {
- get { return unpackedEnum_; }
- }
- public override bool Equals(object other) {
- return Equals(other as TestUnpackedTypes);
- }
- public bool Equals(TestUnpackedTypes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!unpackedInt32_.Equals(other.unpackedInt32_)) return false;
- if(!unpackedInt64_.Equals(other.unpackedInt64_)) return false;
- if(!unpackedUint32_.Equals(other.unpackedUint32_)) return false;
- if(!unpackedUint64_.Equals(other.unpackedUint64_)) return false;
- if(!unpackedSint32_.Equals(other.unpackedSint32_)) return false;
- if(!unpackedSint64_.Equals(other.unpackedSint64_)) return false;
- if(!unpackedFixed32_.Equals(other.unpackedFixed32_)) return false;
- if(!unpackedFixed64_.Equals(other.unpackedFixed64_)) return false;
- if(!unpackedSfixed32_.Equals(other.unpackedSfixed32_)) return false;
- if(!unpackedSfixed64_.Equals(other.unpackedSfixed64_)) return false;
- if(!unpackedFloat_.Equals(other.unpackedFloat_)) return false;
- if(!unpackedDouble_.Equals(other.unpackedDouble_)) return false;
- if(!unpackedBool_.Equals(other.unpackedBool_)) return false;
- if(!unpackedEnum_.Equals(other.unpackedEnum_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- hash ^= unpackedInt32_.GetHashCode();
- hash ^= unpackedInt64_.GetHashCode();
- hash ^= unpackedUint32_.GetHashCode();
- hash ^= unpackedUint64_.GetHashCode();
- hash ^= unpackedSint32_.GetHashCode();
- hash ^= unpackedSint64_.GetHashCode();
- hash ^= unpackedFixed32_.GetHashCode();
- hash ^= unpackedFixed64_.GetHashCode();
- hash ^= unpackedSfixed32_.GetHashCode();
- hash ^= unpackedSfixed64_.GetHashCode();
- hash ^= unpackedFloat_.GetHashCode();
- hash ^= unpackedDouble_.GetHashCode();
- hash ^= unpackedBool_.GetHashCode();
- hash ^= unpackedEnum_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- unpackedInt32_.WriteTo(output, _repeated_unpackedInt32_codec);
- unpackedInt64_.WriteTo(output, _repeated_unpackedInt64_codec);
- unpackedUint32_.WriteTo(output, _repeated_unpackedUint32_codec);
- unpackedUint64_.WriteTo(output, _repeated_unpackedUint64_codec);
- unpackedSint32_.WriteTo(output, _repeated_unpackedSint32_codec);
- unpackedSint64_.WriteTo(output, _repeated_unpackedSint64_codec);
- unpackedFixed32_.WriteTo(output, _repeated_unpackedFixed32_codec);
- unpackedFixed64_.WriteTo(output, _repeated_unpackedFixed64_codec);
- unpackedSfixed32_.WriteTo(output, _repeated_unpackedSfixed32_codec);
- unpackedSfixed64_.WriteTo(output, _repeated_unpackedSfixed64_codec);
- unpackedFloat_.WriteTo(output, _repeated_unpackedFloat_codec);
- unpackedDouble_.WriteTo(output, _repeated_unpackedDouble_codec);
- unpackedBool_.WriteTo(output, _repeated_unpackedBool_codec);
- unpackedEnum_.WriteTo(output, _repeated_unpackedEnum_codec);
- }
- public int CalculateSize() {
- int size = 0;
- size += unpackedInt32_.CalculateSize(_repeated_unpackedInt32_codec);
- size += unpackedInt64_.CalculateSize(_repeated_unpackedInt64_codec);
- size += unpackedUint32_.CalculateSize(_repeated_unpackedUint32_codec);
- size += unpackedUint64_.CalculateSize(_repeated_unpackedUint64_codec);
- size += unpackedSint32_.CalculateSize(_repeated_unpackedSint32_codec);
- size += unpackedSint64_.CalculateSize(_repeated_unpackedSint64_codec);
- size += unpackedFixed32_.CalculateSize(_repeated_unpackedFixed32_codec);
- size += unpackedFixed64_.CalculateSize(_repeated_unpackedFixed64_codec);
- size += unpackedSfixed32_.CalculateSize(_repeated_unpackedSfixed32_codec);
- size += unpackedSfixed64_.CalculateSize(_repeated_unpackedSfixed64_codec);
- size += unpackedFloat_.CalculateSize(_repeated_unpackedFloat_codec);
- size += unpackedDouble_.CalculateSize(_repeated_unpackedDouble_codec);
- size += unpackedBool_.CalculateSize(_repeated_unpackedBool_codec);
- size += unpackedEnum_.CalculateSize(_repeated_unpackedEnum_codec);
- return size;
- }
- public void MergeFrom(TestUnpackedTypes other) {
- if (other == null) {
- return;
- }
- unpackedInt32_.Add(other.unpackedInt32_);
- unpackedInt64_.Add(other.unpackedInt64_);
- unpackedUint32_.Add(other.unpackedUint32_);
- unpackedUint64_.Add(other.unpackedUint64_);
- unpackedSint32_.Add(other.unpackedSint32_);
- unpackedSint64_.Add(other.unpackedSint64_);
- unpackedFixed32_.Add(other.unpackedFixed32_);
- unpackedFixed64_.Add(other.unpackedFixed64_);
- unpackedSfixed32_.Add(other.unpackedSfixed32_);
- unpackedSfixed64_.Add(other.unpackedSfixed64_);
- unpackedFloat_.Add(other.unpackedFloat_);
- unpackedDouble_.Add(other.unpackedDouble_);
- unpackedBool_.Add(other.unpackedBool_);
- unpackedEnum_.Add(other.unpackedEnum_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 722:
- case 720: {
- unpackedInt32_.AddEntriesFrom(input, _repeated_unpackedInt32_codec);
- break;
- }
- case 730:
- case 728: {
- unpackedInt64_.AddEntriesFrom(input, _repeated_unpackedInt64_codec);
- break;
- }
- case 738:
- case 736: {
- unpackedUint32_.AddEntriesFrom(input, _repeated_unpackedUint32_codec);
- break;
- }
- case 746:
- case 744: {
- unpackedUint64_.AddEntriesFrom(input, _repeated_unpackedUint64_codec);
- break;
- }
- case 754:
- case 752: {
- unpackedSint32_.AddEntriesFrom(input, _repeated_unpackedSint32_codec);
- break;
- }
- case 762:
- case 760: {
- unpackedSint64_.AddEntriesFrom(input, _repeated_unpackedSint64_codec);
- break;
- }
- case 770:
- case 773: {
- unpackedFixed32_.AddEntriesFrom(input, _repeated_unpackedFixed32_codec);
- break;
- }
- case 778:
- case 777: {
- unpackedFixed64_.AddEntriesFrom(input, _repeated_unpackedFixed64_codec);
- break;
- }
- case 786:
- case 789: {
- unpackedSfixed32_.AddEntriesFrom(input, _repeated_unpackedSfixed32_codec);
- break;
- }
- case 794:
- case 793: {
- unpackedSfixed64_.AddEntriesFrom(input, _repeated_unpackedSfixed64_codec);
- break;
- }
- case 802:
- case 805: {
- unpackedFloat_.AddEntriesFrom(input, _repeated_unpackedFloat_codec);
- break;
- }
- case 810:
- case 809: {
- unpackedDouble_.AddEntriesFrom(input, _repeated_unpackedDouble_codec);
- break;
- }
- case 818:
- case 816: {
- unpackedBool_.AddEntriesFrom(input, _repeated_unpackedBool_codec);
- break;
- }
- case 826:
- case 824: {
- unpackedEnum_.AddEntriesFrom(input, _repeated_unpackedEnum_codec);
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestRepeatedScalarDifferentTagSizes : pb::IMessage<TestRepeatedScalarDifferentTagSizes> {
- private static readonly pb::MessageParser<TestRepeatedScalarDifferentTagSizes> _parser = new pb::MessageParser<TestRepeatedScalarDifferentTagSizes>(() => new TestRepeatedScalarDifferentTagSizes());
- public static pb::MessageParser<TestRepeatedScalarDifferentTagSizes> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "repeated_fixed32", "repeated_fixed64", "repeated_float", "repeated_int32", "repeated_int64", "repeated_uint64" };
- private static readonly uint[] _fieldTags = new uint[] { 98, 16370, 2097138, 106, 16378, 2097146 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[25]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public TestRepeatedScalarDifferentTagSizes() {
- OnConstruction();
- }
- partial void OnConstruction();
- public TestRepeatedScalarDifferentTagSizes(TestRepeatedScalarDifferentTagSizes other) : this() {
- repeatedFixed32_ = other.repeatedFixed32_.Clone();
- repeatedInt32_ = other.repeatedInt32_.Clone();
- repeatedFixed64_ = other.repeatedFixed64_.Clone();
- repeatedInt64_ = other.repeatedInt64_.Clone();
- repeatedFloat_ = other.repeatedFloat_.Clone();
- repeatedUint64_ = other.repeatedUint64_.Clone();
- }
- public TestRepeatedScalarDifferentTagSizes Clone() {
- return new TestRepeatedScalarDifferentTagSizes(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- repeatedFixed32_.Freeze();
- repeatedInt32_.Freeze();
- repeatedFixed64_.Freeze();
- repeatedInt64_.Freeze();
- repeatedFloat_.Freeze();
- repeatedUint64_.Freeze();
- }
- public const int RepeatedFixed32FieldNumber = 12;
- private static readonly pb::FieldCodec<uint> _repeated_repeatedFixed32_codec
- = pb::FieldCodec.ForFixed32(98);
- private readonly pbc::RepeatedField<uint> repeatedFixed32_ = new pbc::RepeatedField<uint>();
- public pbc::RepeatedField<uint> RepeatedFixed32 {
- get { return repeatedFixed32_; }
- }
- public const int RepeatedInt32FieldNumber = 13;
- private static readonly pb::FieldCodec<int> _repeated_repeatedInt32_codec
- = pb::FieldCodec.ForInt32(106);
- private readonly pbc::RepeatedField<int> repeatedInt32_ = new pbc::RepeatedField<int>();
- public pbc::RepeatedField<int> RepeatedInt32 {
- get { return repeatedInt32_; }
- }
- public const int RepeatedFixed64FieldNumber = 2046;
- private static readonly pb::FieldCodec<ulong> _repeated_repeatedFixed64_codec
- = pb::FieldCodec.ForFixed64(16370);
- private readonly pbc::RepeatedField<ulong> repeatedFixed64_ = new pbc::RepeatedField<ulong>();
- public pbc::RepeatedField<ulong> RepeatedFixed64 {
- get { return repeatedFixed64_; }
- }
- public const int RepeatedInt64FieldNumber = 2047;
- private static readonly pb::FieldCodec<long> _repeated_repeatedInt64_codec
- = pb::FieldCodec.ForInt64(16378);
- private readonly pbc::RepeatedField<long> repeatedInt64_ = new pbc::RepeatedField<long>();
- public pbc::RepeatedField<long> RepeatedInt64 {
- get { return repeatedInt64_; }
- }
- public const int RepeatedFloatFieldNumber = 262142;
- private static readonly pb::FieldCodec<float> _repeated_repeatedFloat_codec
- = pb::FieldCodec.ForFloat(2097138);
- private readonly pbc::RepeatedField<float> repeatedFloat_ = new pbc::RepeatedField<float>();
- public pbc::RepeatedField<float> RepeatedFloat {
- get { return repeatedFloat_; }
- }
- public const int RepeatedUint64FieldNumber = 262143;
- private static readonly pb::FieldCodec<ulong> _repeated_repeatedUint64_codec
- = pb::FieldCodec.ForUInt64(2097146);
- private readonly pbc::RepeatedField<ulong> repeatedUint64_ = new pbc::RepeatedField<ulong>();
- public pbc::RepeatedField<ulong> RepeatedUint64 {
- get { return repeatedUint64_; }
- }
- public override bool Equals(object other) {
- return Equals(other as TestRepeatedScalarDifferentTagSizes);
- }
- public bool Equals(TestRepeatedScalarDifferentTagSizes other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
- if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
- if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
- if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
- if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
- if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- hash ^= repeatedFixed32_.GetHashCode();
- hash ^= repeatedInt32_.GetHashCode();
- hash ^= repeatedFixed64_.GetHashCode();
- hash ^= repeatedInt64_.GetHashCode();
- hash ^= repeatedFloat_.GetHashCode();
- hash ^= repeatedUint64_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- repeatedFixed32_.WriteTo(output, _repeated_repeatedFixed32_codec);
- repeatedInt32_.WriteTo(output, _repeated_repeatedInt32_codec);
- repeatedFixed64_.WriteTo(output, _repeated_repeatedFixed64_codec);
- repeatedInt64_.WriteTo(output, _repeated_repeatedInt64_codec);
- repeatedFloat_.WriteTo(output, _repeated_repeatedFloat_codec);
- repeatedUint64_.WriteTo(output, _repeated_repeatedUint64_codec);
- }
- public int CalculateSize() {
- int size = 0;
- size += repeatedFixed32_.CalculateSize(_repeated_repeatedFixed32_codec);
- size += repeatedInt32_.CalculateSize(_repeated_repeatedInt32_codec);
- size += repeatedFixed64_.CalculateSize(_repeated_repeatedFixed64_codec);
- size += repeatedInt64_.CalculateSize(_repeated_repeatedInt64_codec);
- size += repeatedFloat_.CalculateSize(_repeated_repeatedFloat_codec);
- size += repeatedUint64_.CalculateSize(_repeated_repeatedUint64_codec);
- return size;
- }
- public void MergeFrom(TestRepeatedScalarDifferentTagSizes other) {
- if (other == null) {
- return;
- }
- repeatedFixed32_.Add(other.repeatedFixed32_);
- repeatedInt32_.Add(other.repeatedInt32_);
- repeatedFixed64_.Add(other.repeatedFixed64_);
- repeatedInt64_.Add(other.repeatedInt64_);
- repeatedFloat_.Add(other.repeatedFloat_);
- repeatedUint64_.Add(other.repeatedUint64_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 98:
- case 101: {
- repeatedFixed32_.AddEntriesFrom(input, _repeated_repeatedFixed32_codec);
- break;
- }
- case 106:
- case 104: {
- repeatedInt32_.AddEntriesFrom(input, _repeated_repeatedInt32_codec);
- break;
- }
- case 16370:
- case 16369: {
- repeatedFixed64_.AddEntriesFrom(input, _repeated_repeatedFixed64_codec);
- break;
- }
- case 16378:
- case 16376: {
- repeatedInt64_.AddEntriesFrom(input, _repeated_repeatedInt64_codec);
- break;
- }
- case 2097138:
- case 2097141: {
- repeatedFloat_.AddEntriesFrom(input, _repeated_repeatedFloat_codec);
- break;
- }
- case 2097146:
- case 2097144: {
- repeatedUint64_.AddEntriesFrom(input, _repeated_repeatedUint64_codec);
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestCommentInjectionMessage : pb::IMessage<TestCommentInjectionMessage> {
- private static readonly pb::MessageParser<TestCommentInjectionMessage> _parser = new pb::MessageParser<TestCommentInjectionMessage>(() => new TestCommentInjectionMessage());
- public static pb::MessageParser<TestCommentInjectionMessage> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "a" };
- private static readonly uint[] _fieldTags = new uint[] { 10 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[26]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestCommentInjectionMessage__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public TestCommentInjectionMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- public TestCommentInjectionMessage(TestCommentInjectionMessage other) : this() {
- a_ = other.a_;
- }
- public TestCommentInjectionMessage Clone() {
- return new TestCommentInjectionMessage(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public const int AFieldNumber = 1;
- private string a_ = "";
- public string A {
- get { return a_; }
- set {
- pb::Freezable.CheckMutable(this);
- a_ = value ?? "";
- }
- }
- public override bool Equals(object other) {
- return Equals(other as TestCommentInjectionMessage);
- }
- public bool Equals(TestCommentInjectionMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (A != other.A) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (A.Length != 0) hash ^= A.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (A.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(A);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (A.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(A);
- }
- return size;
- }
- public void MergeFrom(TestCommentInjectionMessage other) {
- if (other == null) {
- return;
- }
- if (other.A.Length != 0) {
- A = other.A;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 10: {
- A = input.ReadString();
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class FooRequest : pb::IMessage<FooRequest> {
- private static readonly pb::MessageParser<FooRequest> _parser = new pb::MessageParser<FooRequest>(() => new FooRequest());
- public static pb::MessageParser<FooRequest> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { };
- private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[27]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public FooRequest() {
- OnConstruction();
- }
- partial void OnConstruction();
- public FooRequest(FooRequest other) : this() {
- }
- public FooRequest Clone() {
- return new FooRequest(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public override bool Equals(object other) {
- return Equals(other as FooRequest);
- }
- public bool Equals(FooRequest other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- }
- public int CalculateSize() {
- int size = 0;
- return size;
- }
- public void MergeFrom(FooRequest other) {
- if (other == null) {
- return;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class FooResponse : pb::IMessage<FooResponse> {
- private static readonly pb::MessageParser<FooResponse> _parser = new pb::MessageParser<FooResponse>(() => new FooResponse());
- public static pb::MessageParser<FooResponse> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { };
- private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[28]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public FooResponse() {
- OnConstruction();
- }
- partial void OnConstruction();
- public FooResponse(FooResponse other) : this() {
- }
- public FooResponse Clone() {
- return new FooResponse(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public override bool Equals(object other) {
- return Equals(other as FooResponse);
- }
- public bool Equals(FooResponse other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- }
- public int CalculateSize() {
- int size = 0;
- return size;
- }
- public void MergeFrom(FooResponse other) {
- if (other == null) {
- return;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class FooClientMessage : pb::IMessage<FooClientMessage> {
- private static readonly pb::MessageParser<FooClientMessage> _parser = new pb::MessageParser<FooClientMessage>(() => new FooClientMessage());
- public static pb::MessageParser<FooClientMessage> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { };
- private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[29]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_FooClientMessage__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public FooClientMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- public FooClientMessage(FooClientMessage other) : this() {
- }
- public FooClientMessage Clone() {
- return new FooClientMessage(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public override bool Equals(object other) {
- return Equals(other as FooClientMessage);
- }
- public bool Equals(FooClientMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- }
- public int CalculateSize() {
- int size = 0;
- return size;
- }
- public void MergeFrom(FooClientMessage other) {
- if (other == null) {
- return;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class FooServerMessage : pb::IMessage<FooServerMessage> {
- private static readonly pb::MessageParser<FooServerMessage> _parser = new pb::MessageParser<FooServerMessage>(() => new FooServerMessage());
- public static pb::MessageParser<FooServerMessage> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { };
- private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[30]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_FooServerMessage__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public FooServerMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- public FooServerMessage(FooServerMessage other) : this() {
- }
- public FooServerMessage Clone() {
- return new FooServerMessage(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public override bool Equals(object other) {
- return Equals(other as FooServerMessage);
- }
- public bool Equals(FooServerMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- }
- public int CalculateSize() {
- int size = 0;
- return size;
- }
- public void MergeFrom(FooServerMessage other) {
- if (other == null) {
- return;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class BarRequest : pb::IMessage<BarRequest> {
- private static readonly pb::MessageParser<BarRequest> _parser = new pb::MessageParser<BarRequest>(() => new BarRequest());
- public static pb::MessageParser<BarRequest> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { };
- private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[31]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public BarRequest() {
- OnConstruction();
- }
- partial void OnConstruction();
- public BarRequest(BarRequest other) : this() {
- }
- public BarRequest Clone() {
- return new BarRequest(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public override bool Equals(object other) {
- return Equals(other as BarRequest);
- }
- public bool Equals(BarRequest other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- }
- public int CalculateSize() {
- int size = 0;
- return size;
- }
- public void MergeFrom(BarRequest other) {
- if (other == null) {
- return;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class BarResponse : pb::IMessage<BarResponse> {
- private static readonly pb::MessageParser<BarResponse> _parser = new pb::MessageParser<BarResponse>(() => new BarResponse());
- public static pb::MessageParser<BarResponse> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { };
- private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.Descriptor.MessageTypes[32]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public BarResponse() {
- OnConstruction();
- }
- partial void OnConstruction();
- public BarResponse(BarResponse other) : this() {
- }
- public BarResponse Clone() {
- return new BarResponse(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public override bool Equals(object other) {
- return Equals(other as BarResponse);
- }
- public bool Equals(BarResponse other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- }
- public int CalculateSize() {
- int size = 0;
- return size;
- }
- public void MergeFrom(BarResponse other) {
- if (other == null) {
- return;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- }
- }
- }
- }
- #endregion
- }
- #endregion Designer generated code
|