UnittestProto3.cs 232 KB

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