UnittestProto3.cs 251 KB

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