UnittestProto3.cs 288 KB

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