123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516 |
- // Manual changes:
- // - Search and replace of RepeatedFieldsGenerator.Group to RepeatedFieldsGenerator.Types.Group
- //
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/protobuf/unittest.proto
- #pragma warning disable 1591, 0612, 3021
- #region Designer generated code
- using pb = global::Google.ProtocolBuffers;
- using pbc = global::Google.ProtocolBuffers.Collections;
- using pbd = global::Google.ProtocolBuffers.Descriptors;
- using scg = global::System.Collections.Generic;
- namespace Google.ProtocolBuffers.TestProtos {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Unittest {
- #region Extension registration
- public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalInt32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalInt64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalUint32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalUint64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalSint32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalSint64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalFixed32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalFixed64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalSfixed32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalSfixed64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalFloatExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalDoubleExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalBoolExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalStringExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalBytesExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalGroupExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalNestedMessageExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalForeignMessageExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalImportMessageExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalNestedEnumExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalForeignEnumExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalImportEnumExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalStringPieceExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalCordExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalPublicImportMessageExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalLazyMessageExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedInt32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedInt64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedUint32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedUint64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedSint32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedSint64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedFixed32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedFixed64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedSfixed32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedSfixed64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedFloatExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedDoubleExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedBoolExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedStringExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedBytesExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedGroupExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedNestedMessageExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedForeignMessageExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedImportMessageExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedNestedEnumExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedForeignEnumExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedImportEnumExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedStringPieceExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedCordExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedLazyMessageExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultInt32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultInt64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultUint32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultUint64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultSint32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultSint64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultFixed32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultFixed64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultSfixed32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultSfixed64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultFloatExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultDoubleExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultBoolExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultStringExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultBytesExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultNestedEnumExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultForeignEnumExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultImportEnumExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultStringPieceExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultCordExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OneofUint32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OneofNestedMessageExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OneofStringExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.OneofBytesExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.MyExtensionString);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.MyExtensionInt);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedInt32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedInt64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedUint32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedUint64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedSint32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedSint64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedFixed32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedFixed64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedSfixed32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedSfixed64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedFloatExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedDoubleExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedBoolExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.PackedEnumExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedInt32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedInt64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedUint32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedUint64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedSint32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedSint64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedFixed32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedFixed64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedSfixed32Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedSfixed64Extension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedFloatExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedDoubleExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedBoolExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedEnumExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Test);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.NestedStringExtension);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.TestRequired.Single);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.TestRequired.Multi);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.OptionalExt);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.RepeatedExt);
- }
- #endregion
- #region Extensions
- public const int OptionalInt32ExtensionFieldNumber = 1;
- public static pb::GeneratedExtensionBase<int> OptionalInt32Extension;
- public const int OptionalInt64ExtensionFieldNumber = 2;
- public static pb::GeneratedExtensionBase<long> OptionalInt64Extension;
- public const int OptionalUint32ExtensionFieldNumber = 3;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<uint> OptionalUint32Extension;
- public const int OptionalUint64ExtensionFieldNumber = 4;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<ulong> OptionalUint64Extension;
- public const int OptionalSint32ExtensionFieldNumber = 5;
- public static pb::GeneratedExtensionBase<int> OptionalSint32Extension;
- public const int OptionalSint64ExtensionFieldNumber = 6;
- public static pb::GeneratedExtensionBase<long> OptionalSint64Extension;
- public const int OptionalFixed32ExtensionFieldNumber = 7;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<uint> OptionalFixed32Extension;
- public const int OptionalFixed64ExtensionFieldNumber = 8;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<ulong> OptionalFixed64Extension;
- public const int OptionalSfixed32ExtensionFieldNumber = 9;
- public static pb::GeneratedExtensionBase<int> OptionalSfixed32Extension;
- public const int OptionalSfixed64ExtensionFieldNumber = 10;
- public static pb::GeneratedExtensionBase<long> OptionalSfixed64Extension;
- public const int OptionalFloatExtensionFieldNumber = 11;
- public static pb::GeneratedExtensionBase<float> OptionalFloatExtension;
- public const int OptionalDoubleExtensionFieldNumber = 12;
- public static pb::GeneratedExtensionBase<double> OptionalDoubleExtension;
- public const int OptionalBoolExtensionFieldNumber = 13;
- public static pb::GeneratedExtensionBase<bool> OptionalBoolExtension;
- public const int OptionalStringExtensionFieldNumber = 14;
- public static pb::GeneratedExtensionBase<string> OptionalStringExtension;
- public const int OptionalBytesExtensionFieldNumber = 15;
- public static pb::GeneratedExtensionBase<pb::ByteString> OptionalBytesExtension;
- public const int OptionalGroupExtensionFieldNumber = 16;
- public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension> OptionalGroupExtension;
- public const int OptionalNestedMessageExtensionFieldNumber = 18;
- public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> OptionalNestedMessageExtension;
- public const int OptionalForeignMessageExtensionFieldNumber = 19;
- public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> OptionalForeignMessageExtension;
- public const int OptionalImportMessageExtensionFieldNumber = 20;
- public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportMessage> OptionalImportMessageExtension;
- public const int OptionalNestedEnumExtensionFieldNumber = 21;
- public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> OptionalNestedEnumExtension;
- public const int OptionalForeignEnumExtensionFieldNumber = 22;
- public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> OptionalForeignEnumExtension;
- public const int OptionalImportEnumExtensionFieldNumber = 23;
- public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportEnum> OptionalImportEnumExtension;
- public const int OptionalStringPieceExtensionFieldNumber = 24;
- public static pb::GeneratedExtensionBase<string> OptionalStringPieceExtension;
- public const int OptionalCordExtensionFieldNumber = 25;
- public static pb::GeneratedExtensionBase<string> OptionalCordExtension;
- public const int OptionalPublicImportMessageExtensionFieldNumber = 26;
- public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.PublicImportMessage> OptionalPublicImportMessageExtension;
- public const int OptionalLazyMessageExtensionFieldNumber = 27;
- public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> OptionalLazyMessageExtension;
- public const int RepeatedInt32ExtensionFieldNumber = 31;
- public static pb::GeneratedExtensionBase<scg::IList<int>> RepeatedInt32Extension;
- public const int RepeatedInt64ExtensionFieldNumber = 32;
- public static pb::GeneratedExtensionBase<scg::IList<long>> RepeatedInt64Extension;
- public const int RepeatedUint32ExtensionFieldNumber = 33;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedUint32Extension;
- public const int RepeatedUint64ExtensionFieldNumber = 34;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedUint64Extension;
- public const int RepeatedSint32ExtensionFieldNumber = 35;
- public static pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSint32Extension;
- public const int RepeatedSint64ExtensionFieldNumber = 36;
- public static pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSint64Extension;
- public const int RepeatedFixed32ExtensionFieldNumber = 37;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedFixed32Extension;
- public const int RepeatedFixed64ExtensionFieldNumber = 38;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedFixed64Extension;
- public const int RepeatedSfixed32ExtensionFieldNumber = 39;
- public static pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSfixed32Extension;
- public const int RepeatedSfixed64ExtensionFieldNumber = 40;
- public static pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSfixed64Extension;
- public const int RepeatedFloatExtensionFieldNumber = 41;
- public static pb::GeneratedExtensionBase<scg::IList<float>> RepeatedFloatExtension;
- public const int RepeatedDoubleExtensionFieldNumber = 42;
- public static pb::GeneratedExtensionBase<scg::IList<double>> RepeatedDoubleExtension;
- public const int RepeatedBoolExtensionFieldNumber = 43;
- public static pb::GeneratedExtensionBase<scg::IList<bool>> RepeatedBoolExtension;
- public const int RepeatedStringExtensionFieldNumber = 44;
- public static pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringExtension;
- public const int RepeatedBytesExtensionFieldNumber = 45;
- public static pb::GeneratedExtensionBase<scg::IList<pb::ByteString>> RepeatedBytesExtension;
- public const int RepeatedGroupExtensionFieldNumber = 46;
- public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension>> RepeatedGroupExtension;
- public const int RepeatedNestedMessageExtensionFieldNumber = 48;
- public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>> RepeatedNestedMessageExtension;
- public const int RepeatedForeignMessageExtensionFieldNumber = 49;
- public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>> RepeatedForeignMessageExtension;
- public const int RepeatedImportMessageExtensionFieldNumber = 50;
- public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage>> RepeatedImportMessageExtension;
- public const int RepeatedNestedEnumExtensionFieldNumber = 51;
- public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>> RepeatedNestedEnumExtension;
- public const int RepeatedForeignEnumExtensionFieldNumber = 52;
- public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>> RepeatedForeignEnumExtension;
- public const int RepeatedImportEnumExtensionFieldNumber = 53;
- public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum>> RepeatedImportEnumExtension;
- public const int RepeatedStringPieceExtensionFieldNumber = 54;
- public static pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringPieceExtension;
- public const int RepeatedCordExtensionFieldNumber = 55;
- public static pb::GeneratedExtensionBase<scg::IList<string>> RepeatedCordExtension;
- public const int RepeatedLazyMessageExtensionFieldNumber = 57;
- public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>> RepeatedLazyMessageExtension;
- public const int DefaultInt32ExtensionFieldNumber = 61;
- public static pb::GeneratedExtensionBase<int> DefaultInt32Extension;
- public const int DefaultInt64ExtensionFieldNumber = 62;
- public static pb::GeneratedExtensionBase<long> DefaultInt64Extension;
- public const int DefaultUint32ExtensionFieldNumber = 63;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<uint> DefaultUint32Extension;
- public const int DefaultUint64ExtensionFieldNumber = 64;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<ulong> DefaultUint64Extension;
- public const int DefaultSint32ExtensionFieldNumber = 65;
- public static pb::GeneratedExtensionBase<int> DefaultSint32Extension;
- public const int DefaultSint64ExtensionFieldNumber = 66;
- public static pb::GeneratedExtensionBase<long> DefaultSint64Extension;
- public const int DefaultFixed32ExtensionFieldNumber = 67;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<uint> DefaultFixed32Extension;
- public const int DefaultFixed64ExtensionFieldNumber = 68;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<ulong> DefaultFixed64Extension;
- public const int DefaultSfixed32ExtensionFieldNumber = 69;
- public static pb::GeneratedExtensionBase<int> DefaultSfixed32Extension;
- public const int DefaultSfixed64ExtensionFieldNumber = 70;
- public static pb::GeneratedExtensionBase<long> DefaultSfixed64Extension;
- public const int DefaultFloatExtensionFieldNumber = 71;
- public static pb::GeneratedExtensionBase<float> DefaultFloatExtension;
- public const int DefaultDoubleExtensionFieldNumber = 72;
- public static pb::GeneratedExtensionBase<double> DefaultDoubleExtension;
- public const int DefaultBoolExtensionFieldNumber = 73;
- public static pb::GeneratedExtensionBase<bool> DefaultBoolExtension;
- public const int DefaultStringExtensionFieldNumber = 74;
- public static pb::GeneratedExtensionBase<string> DefaultStringExtension;
- public const int DefaultBytesExtensionFieldNumber = 75;
- public static pb::GeneratedExtensionBase<pb::ByteString> DefaultBytesExtension;
- public const int DefaultNestedEnumExtensionFieldNumber = 81;
- public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> DefaultNestedEnumExtension;
- public const int DefaultForeignEnumExtensionFieldNumber = 82;
- public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> DefaultForeignEnumExtension;
- public const int DefaultImportEnumExtensionFieldNumber = 83;
- public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportEnum> DefaultImportEnumExtension;
- public const int DefaultStringPieceExtensionFieldNumber = 84;
- public static pb::GeneratedExtensionBase<string> DefaultStringPieceExtension;
- public const int DefaultCordExtensionFieldNumber = 85;
- public static pb::GeneratedExtensionBase<string> DefaultCordExtension;
- public const int OneofUint32ExtensionFieldNumber = 111;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<uint> OneofUint32Extension;
- public const int OneofNestedMessageExtensionFieldNumber = 112;
- public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> OneofNestedMessageExtension;
- public const int OneofStringExtensionFieldNumber = 113;
- public static pb::GeneratedExtensionBase<string> OneofStringExtension;
- public const int OneofBytesExtensionFieldNumber = 114;
- public static pb::GeneratedExtensionBase<pb::ByteString> OneofBytesExtension;
- public const int MyExtensionStringFieldNumber = 50;
- public static pb::GeneratedExtensionBase<string> MyExtensionString;
- public const int MyExtensionIntFieldNumber = 5;
- public static pb::GeneratedExtensionBase<int> MyExtensionInt;
- public const int PackedInt32ExtensionFieldNumber = 90;
- public static pb::GeneratedExtensionBase<scg::IList<int>> PackedInt32Extension;
- public const int PackedInt64ExtensionFieldNumber = 91;
- public static pb::GeneratedExtensionBase<scg::IList<long>> PackedInt64Extension;
- public const int PackedUint32ExtensionFieldNumber = 92;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<scg::IList<uint>> PackedUint32Extension;
- public const int PackedUint64ExtensionFieldNumber = 93;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<scg::IList<ulong>> PackedUint64Extension;
- public const int PackedSint32ExtensionFieldNumber = 94;
- public static pb::GeneratedExtensionBase<scg::IList<int>> PackedSint32Extension;
- public const int PackedSint64ExtensionFieldNumber = 95;
- public static pb::GeneratedExtensionBase<scg::IList<long>> PackedSint64Extension;
- public const int PackedFixed32ExtensionFieldNumber = 96;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<scg::IList<uint>> PackedFixed32Extension;
- public const int PackedFixed64ExtensionFieldNumber = 97;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<scg::IList<ulong>> PackedFixed64Extension;
- public const int PackedSfixed32ExtensionFieldNumber = 98;
- public static pb::GeneratedExtensionBase<scg::IList<int>> PackedSfixed32Extension;
- public const int PackedSfixed64ExtensionFieldNumber = 99;
- public static pb::GeneratedExtensionBase<scg::IList<long>> PackedSfixed64Extension;
- public const int PackedFloatExtensionFieldNumber = 100;
- public static pb::GeneratedExtensionBase<scg::IList<float>> PackedFloatExtension;
- public const int PackedDoubleExtensionFieldNumber = 101;
- public static pb::GeneratedExtensionBase<scg::IList<double>> PackedDoubleExtension;
- public const int PackedBoolExtensionFieldNumber = 102;
- public static pb::GeneratedExtensionBase<scg::IList<bool>> PackedBoolExtension;
- public const int PackedEnumExtensionFieldNumber = 103;
- public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>> PackedEnumExtension;
- public const int UnpackedInt32ExtensionFieldNumber = 90;
- public static pb::GeneratedExtensionBase<scg::IList<int>> UnpackedInt32Extension;
- public const int UnpackedInt64ExtensionFieldNumber = 91;
- public static pb::GeneratedExtensionBase<scg::IList<long>> UnpackedInt64Extension;
- public const int UnpackedUint32ExtensionFieldNumber = 92;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<scg::IList<uint>> UnpackedUint32Extension;
- public const int UnpackedUint64ExtensionFieldNumber = 93;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<scg::IList<ulong>> UnpackedUint64Extension;
- public const int UnpackedSint32ExtensionFieldNumber = 94;
- public static pb::GeneratedExtensionBase<scg::IList<int>> UnpackedSint32Extension;
- public const int UnpackedSint64ExtensionFieldNumber = 95;
- public static pb::GeneratedExtensionBase<scg::IList<long>> UnpackedSint64Extension;
- public const int UnpackedFixed32ExtensionFieldNumber = 96;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<scg::IList<uint>> UnpackedFixed32Extension;
- public const int UnpackedFixed64ExtensionFieldNumber = 97;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionBase<scg::IList<ulong>> UnpackedFixed64Extension;
- public const int UnpackedSfixed32ExtensionFieldNumber = 98;
- public static pb::GeneratedExtensionBase<scg::IList<int>> UnpackedSfixed32Extension;
- public const int UnpackedSfixed64ExtensionFieldNumber = 99;
- public static pb::GeneratedExtensionBase<scg::IList<long>> UnpackedSfixed64Extension;
- public const int UnpackedFloatExtensionFieldNumber = 100;
- public static pb::GeneratedExtensionBase<scg::IList<float>> UnpackedFloatExtension;
- public const int UnpackedDoubleExtensionFieldNumber = 101;
- public static pb::GeneratedExtensionBase<scg::IList<double>> UnpackedDoubleExtension;
- public const int UnpackedBoolExtensionFieldNumber = 102;
- public static pb::GeneratedExtensionBase<scg::IList<bool>> UnpackedBoolExtension;
- public const int UnpackedEnumExtensionFieldNumber = 103;
- public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>> UnpackedEnumExtension;
- #endregion
- #region Static variables
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder> internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder> internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder> internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_NestedTestAllTypes__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes, global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.Builder> internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDeprecatedFields__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields, global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.Builder> internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_ForeignMessage__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder> internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllExtensions__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder> internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Builder> internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Builder> internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedExtension__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedExtension, global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Builder> internal__static_protobuf_unittest_TestNestedExtension__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequired__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequired, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder> internal__static_protobuf_unittest_TestRequired__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequiredForeign__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder> internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestForeignNested__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder> internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessage__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder> internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder> internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestMultipleExtensionRanges__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges, global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.Builder> internal__static_protobuf_unittest_TestMultipleExtensionRanges__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder> internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder> internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder> internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder> internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder> internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder> internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder> internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestEagerMessage__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEagerMessage, global::Google.ProtocolBuffers.TestProtos.TestEagerMessage.Builder> internal__static_protobuf_unittest_TestEagerMessage__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestLazyMessage__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestLazyMessage, global::Google.ProtocolBuffers.TestProtos.TestLazyMessage.Builder> internal__static_protobuf_unittest_TestLazyMessage__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder> internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder> internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestFieldOrderings__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder> internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder> internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_SparseEnumMessage__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.SparseEnumMessage, global::Google.ProtocolBuffers.TestProtos.SparseEnumMessage.Builder> internal__static_protobuf_unittest_SparseEnumMessage__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_OneString__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OneString, global::Google.ProtocolBuffers.TestProtos.OneString.Builder> internal__static_protobuf_unittest_OneString__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_MoreString__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.MoreString, global::Google.ProtocolBuffers.TestProtos.MoreString.Builder> internal__static_protobuf_unittest_MoreString__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_OneBytes__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OneBytes, global::Google.ProtocolBuffers.TestProtos.OneBytes.Builder> internal__static_protobuf_unittest_OneBytes__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_MoreBytes__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.MoreBytes, global::Google.ProtocolBuffers.TestProtos.MoreBytes.Builder> internal__static_protobuf_unittest_MoreBytes__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_Int32Message__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.Int32Message, global::Google.ProtocolBuffers.TestProtos.Int32Message.Builder> internal__static_protobuf_unittest_Int32Message__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_Uint32Message__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.Uint32Message, global::Google.ProtocolBuffers.TestProtos.Uint32Message.Builder> internal__static_protobuf_unittest_Uint32Message__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_Int64Message__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.Int64Message, global::Google.ProtocolBuffers.TestProtos.Int64Message.Builder> internal__static_protobuf_unittest_Int64Message__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_Uint64Message__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.Uint64Message, global::Google.ProtocolBuffers.TestProtos.Uint64Message.Builder> internal__static_protobuf_unittest_Uint64Message__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_BoolMessage__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BoolMessage, global::Google.ProtocolBuffers.TestProtos.BoolMessage.Builder> internal__static_protobuf_unittest_BoolMessage__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestOneof__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof, global::Google.ProtocolBuffers.TestProtos.TestOneof.Builder> internal__static_protobuf_unittest_TestOneof__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestOneof_FooGroup__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup, global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.Builder> internal__static_protobuf_unittest_TestOneof_FooGroup__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestOneofBackwardsCompatible__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible, global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Builder> internal__static_protobuf_unittest_TestOneofBackwardsCompatible__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup, global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.Builder> internal__static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestOneof2__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof2, global::Google.ProtocolBuffers.TestProtos.TestOneof2.Builder> internal__static_protobuf_unittest_TestOneof2__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestOneof2_FooGroup__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup, global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.Builder> internal__static_protobuf_unittest_TestOneof2_FooGroup__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestOneof2_NestedMessage__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestOneof2_NestedMessage__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequiredOneof__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof, global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Builder> internal__static_protobuf_unittest_TestRequiredOneof__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequiredOneof_NestedMessage__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestRequiredOneof_NestedMessage__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestPackedTypes__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestPackedTypes, global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.Builder> internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestUnpackedTypes__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes, global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.Builder> internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestPackedExtensions__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.Builder> internal__static_protobuf_unittest_TestPackedExtensions__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestUnpackedExtensions__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions, global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.Builder> internal__static_protobuf_unittest_TestUnpackedExtensions__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDynamicExtensions__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions, global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Builder> internal__static_protobuf_unittest_TestDynamicExtensions__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType, global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Builder> internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes, global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.Builder> internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestParsingMerge__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Builder> internal__static_protobuf_unittest_TestParsingMerge__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Builder> internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Builder> internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Builder> internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestParsingMerge_OptionalGroup__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.Builder> internal__static_protobuf_unittest_TestParsingMerge_OptionalGroup__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestParsingMerge_RepeatedGroup__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup.Builder> internal__static_protobuf_unittest_TestParsingMerge_RepeatedGroup__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestCommentInjectionMessage__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCommentInjectionMessage, global::Google.ProtocolBuffers.TestProtos.TestCommentInjectionMessage.Builder> internal__static_protobuf_unittest_TestCommentInjectionMessage__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_FooRequest__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooRequest, global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder> internal__static_protobuf_unittest_FooRequest__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_FooResponse__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder> internal__static_protobuf_unittest_FooResponse__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_FooClientMessage__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooClientMessage, global::Google.ProtocolBuffers.TestProtos.FooClientMessage.Builder> internal__static_protobuf_unittest_FooClientMessage__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_FooServerMessage__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooServerMessage, global::Google.ProtocolBuffers.TestProtos.FooServerMessage.Builder> internal__static_protobuf_unittest_FooServerMessage__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_BarRequest__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarRequest, global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder> internal__static_protobuf_unittest_BarRequest__FieldAccessorTable;
- internal static pbd::MessageDescriptor internal__static_protobuf_unittest_BarResponse__Descriptor;
- internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder> internal__static_protobuf_unittest_BarResponse__FieldAccessorTable;
- #endregion
- #region Descriptor
- public static pbd::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbd::FileDescriptor descriptor;
- static Unittest() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Ch5nb29nbGUvcHJvdG9idWYvdW5pdHRlc3QucHJvdG8SEXByb3RvYnVmX3Vu",
- "aXR0ZXN0GiVnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0LnByb3Rv",
- "Iu0YCgxUZXN0QWxsVHlwZXMSFgoOb3B0aW9uYWxfaW50MzIYASABKAUSFgoO",
- "b3B0aW9uYWxfaW50NjQYAiABKAMSFwoPb3B0aW9uYWxfdWludDMyGAMgASgN",
- "EhcKD29wdGlvbmFsX3VpbnQ2NBgEIAEoBBIXCg9vcHRpb25hbF9zaW50MzIY",
- "BSABKBESFwoPb3B0aW9uYWxfc2ludDY0GAYgASgSEhgKEG9wdGlvbmFsX2Zp",
- "eGVkMzIYByABKAcSGAoQb3B0aW9uYWxfZml4ZWQ2NBgIIAEoBhIZChFvcHRp",
- "b25hbF9zZml4ZWQzMhgJIAEoDxIZChFvcHRpb25hbF9zZml4ZWQ2NBgKIAEo",
- "EBIWCg5vcHRpb25hbF9mbG9hdBgLIAEoAhIXCg9vcHRpb25hbF9kb3VibGUY",
- "DCABKAESFQoNb3B0aW9uYWxfYm9vbBgNIAEoCBIXCg9vcHRpb25hbF9zdHJp",
- "bmcYDiABKAkSFgoOb3B0aW9uYWxfYnl0ZXMYDyABKAwSRAoNb3B0aW9uYWxn",
- "cm91cBgQIAEoCjItLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5P",
- "cHRpb25hbEdyb3VwEk4KF29wdGlvbmFsX25lc3RlZF9tZXNzYWdlGBIgASgL",
- "Mi0ucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzLk5lc3RlZE1lc3Nh",
- "Z2USQwoYb3B0aW9uYWxfZm9yZWlnbl9tZXNzYWdlGBMgASgLMiEucHJvdG9i",
- "dWZfdW5pdHRlc3QuRm9yZWlnbk1lc3NhZ2USSAoXb3B0aW9uYWxfaW1wb3J0",
- "X21lc3NhZ2UYFCABKAsyJy5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnQuSW1w",
- "b3J0TWVzc2FnZRJIChRvcHRpb25hbF9uZXN0ZWRfZW51bRgVIAEoDjIqLnBy",
- "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRFbnVtEj0KFW9w",
- "dGlvbmFsX2ZvcmVpZ25fZW51bRgWIAEoDjIeLnByb3RvYnVmX3VuaXR0ZXN0",
- "LkZvcmVpZ25FbnVtEkIKFG9wdGlvbmFsX2ltcG9ydF9lbnVtGBcgASgOMiQu",
- "cHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9ydEVudW0SIQoVb3B0aW9u",
- "YWxfc3RyaW5nX3BpZWNlGBggASgJQgIIAhIZCg1vcHRpb25hbF9jb3JkGBkg",
- "ASgJQgIIARJVCh5vcHRpb25hbF9wdWJsaWNfaW1wb3J0X21lc3NhZ2UYGiAB",
- "KAsyLS5wcm90b2J1Zl91bml0dGVzdF9pbXBvcnQuUHVibGljSW1wb3J0TWVz",
- "c2FnZRJQChVvcHRpb25hbF9sYXp5X21lc3NhZ2UYGyABKAsyLS5wcm90b2J1",
- "Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVzdGVkTWVzc2FnZUICKAESFgoO",
- "cmVwZWF0ZWRfaW50MzIYHyADKAUSFgoOcmVwZWF0ZWRfaW50NjQYICADKAMS",
- "FwoPcmVwZWF0ZWRfdWludDMyGCEgAygNEhcKD3JlcGVhdGVkX3VpbnQ2NBgi",
- "IAMoBBIXCg9yZXBlYXRlZF9zaW50MzIYIyADKBESFwoPcmVwZWF0ZWRfc2lu",
- "dDY0GCQgAygSEhgKEHJlcGVhdGVkX2ZpeGVkMzIYJSADKAcSGAoQcmVwZWF0",
- "ZWRfZml4ZWQ2NBgmIAMoBhIZChFyZXBlYXRlZF9zZml4ZWQzMhgnIAMoDxIZ",
- "ChFyZXBlYXRlZF9zZml4ZWQ2NBgoIAMoEBIWCg5yZXBlYXRlZF9mbG9hdBgp",
- "IAMoAhIXCg9yZXBlYXRlZF9kb3VibGUYKiADKAESFQoNcmVwZWF0ZWRfYm9v",
- "bBgrIAMoCBIXCg9yZXBlYXRlZF9zdHJpbmcYLCADKAkSFgoOcmVwZWF0ZWRf",
- "Ynl0ZXMYLSADKAwSRAoNcmVwZWF0ZWRncm91cBguIAMoCjItLnByb3RvYnVm",
- "X3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5SZXBlYXRlZEdyb3VwEk4KF3JlcGVh",
- "dGVkX25lc3RlZF9tZXNzYWdlGDAgAygLMi0ucHJvdG9idWZfdW5pdHRlc3Qu",
- "VGVzdEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2USQwoYcmVwZWF0ZWRfZm9yZWln",
- "bl9tZXNzYWdlGDEgAygLMiEucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbk1l",
- "c3NhZ2USSAoXcmVwZWF0ZWRfaW1wb3J0X21lc3NhZ2UYMiADKAsyJy5wcm90",
- "b2J1Zl91bml0dGVzdF9pbXBvcnQuSW1wb3J0TWVzc2FnZRJIChRyZXBlYXRl",
- "ZF9uZXN0ZWRfZW51bRgzIAMoDjIqLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB",
- "bGxUeXBlcy5OZXN0ZWRFbnVtEj0KFXJlcGVhdGVkX2ZvcmVpZ25fZW51bRg0",
- "IAMoDjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25FbnVtEkIKFHJlcGVh",
- "dGVkX2ltcG9ydF9lbnVtGDUgAygOMiQucHJvdG9idWZfdW5pdHRlc3RfaW1w",
- "b3J0LkltcG9ydEVudW0SIQoVcmVwZWF0ZWRfc3RyaW5nX3BpZWNlGDYgAygJ",
- "QgIIAhIZCg1yZXBlYXRlZF9jb3JkGDcgAygJQgIIARJQChVyZXBlYXRlZF9s",
- "YXp5X21lc3NhZ2UYOSADKAsyLS5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxs",
- "VHlwZXMuTmVzdGVkTWVzc2FnZUICKAESGQoNZGVmYXVsdF9pbnQzMhg9IAEo",
- "BToCNDESGQoNZGVmYXVsdF9pbnQ2NBg+IAEoAzoCNDISGgoOZGVmYXVsdF91",
- "aW50MzIYPyABKA06AjQzEhoKDmRlZmF1bHRfdWludDY0GEAgASgEOgI0NBIb",
- "Cg5kZWZhdWx0X3NpbnQzMhhBIAEoEToDLTQ1EhoKDmRlZmF1bHRfc2ludDY0",
- "GEIgASgSOgI0NhIbCg9kZWZhdWx0X2ZpeGVkMzIYQyABKAc6AjQ3EhsKD2Rl",
- "ZmF1bHRfZml4ZWQ2NBhEIAEoBjoCNDgSHAoQZGVmYXVsdF9zZml4ZWQzMhhF",
- "IAEoDzoCNDkSHQoQZGVmYXVsdF9zZml4ZWQ2NBhGIAEoEDoDLTUwEhsKDWRl",
- "ZmF1bHRfZmxvYXQYRyABKAI6BDUxLjUSHQoOZGVmYXVsdF9kb3VibGUYSCAB",
- "KAE6BTUyMDAwEhoKDGRlZmF1bHRfYm9vbBhJIAEoCDoEdHJ1ZRIdCg5kZWZh",
- "dWx0X3N0cmluZxhKIAEoCToFaGVsbG8SHAoNZGVmYXVsdF9ieXRlcxhLIAEo",
- "DDoFd29ybGQSTAoTZGVmYXVsdF9uZXN0ZWRfZW51bRhRIAEoDjIqLnByb3Rv",
- "YnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRFbnVtOgNCQVISSQoU",
- "ZGVmYXVsdF9mb3JlaWduX2VudW0YUiABKA4yHi5wcm90b2J1Zl91bml0dGVz",
- "dC5Gb3JlaWduRW51bToLRk9SRUlHTl9CQVISTQoTZGVmYXVsdF9pbXBvcnRf",
- "ZW51bRhTIAEoDjIkLnByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydC5JbXBvcnRF",
- "bnVtOgpJTVBPUlRfQkFSEiUKFGRlZmF1bHRfc3RyaW5nX3BpZWNlGFQgASgJ",
- "OgNhYmNCAggCEh0KDGRlZmF1bHRfY29yZBhVIAEoCToDMTIzQgIIARIWCgxv",
- "bmVvZl91aW50MzIYbyABKA1IABJNChRvbmVvZl9uZXN0ZWRfbWVzc2FnZRhw",
- "IAEoCzItLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRN",
- "ZXNzYWdlSAASFgoMb25lb2Zfc3RyaW5nGHEgASgJSAASFQoLb25lb2ZfYnl0",
- "ZXMYciABKAxIABobCg1OZXN0ZWRNZXNzYWdlEgoKAmJiGAEgASgFGhoKDU9w",
- "dGlvbmFsR3JvdXASCQoBYRgRIAEoBRoaCg1SZXBlYXRlZEdyb3VwEgkKAWEY",
- "LyABKAUiOQoKTmVzdGVkRW51bRIHCgNGT08QARIHCgNCQVIQAhIHCgNCQVoQ",
- "AxIQCgNORUcQ////////////AUINCgtvbmVvZl9maWVsZCJ8ChJOZXN0ZWRU",
- "ZXN0QWxsVHlwZXMSNAoFY2hpbGQYASABKAsyJS5wcm90b2J1Zl91bml0dGVz",
- "dC5OZXN0ZWRUZXN0QWxsVHlwZXMSMAoHcGF5bG9hZBgCIAEoCzIfLnByb3Rv",
- "YnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcyI0ChRUZXN0RGVwcmVjYXRlZEZp",
- "ZWxkcxIcChBkZXByZWNhdGVkX2ludDMyGAEgASgFQgIYASIbCg5Gb3JlaWdu",
- "TWVzc2FnZRIJCgFjGAEgASgFIh0KEVRlc3RBbGxFeHRlbnNpb25zKggIARCA",
- "gICAAiIkChdPcHRpb25hbEdyb3VwX2V4dGVuc2lvbhIJCgFhGBEgASgFIiQK",
- "F1JlcGVhdGVkR3JvdXBfZXh0ZW5zaW9uEgkKAWEYLyABKAUimAEKE1Rlc3RO",
- "ZXN0ZWRFeHRlbnNpb24yOQoEdGVzdBIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
- "c3RBbGxFeHRlbnNpb25zGOoHIAEoCToEdGVzdDJGChduZXN0ZWRfc3RyaW5n",
- "X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNp",
- "b25zGOsHIAEoCSLVBQoMVGVzdFJlcXVpcmVkEgkKAWEYASACKAUSDgoGZHVt",
- "bXkyGAIgASgFEgkKAWIYAyACKAUSDgoGZHVtbXk0GAQgASgFEg4KBmR1bW15",
- "NRgFIAEoBRIOCgZkdW1teTYYBiABKAUSDgoGZHVtbXk3GAcgASgFEg4KBmR1",
- "bW15OBgIIAEoBRIOCgZkdW1teTkYCSABKAUSDwoHZHVtbXkxMBgKIAEoBRIP",
- "CgdkdW1teTExGAsgASgFEg8KB2R1bW15MTIYDCABKAUSDwoHZHVtbXkxMxgN",
- "IAEoBRIPCgdkdW1teTE0GA4gASgFEg8KB2R1bW15MTUYDyABKAUSDwoHZHVt",
- "bXkxNhgQIAEoBRIPCgdkdW1teTE3GBEgASgFEg8KB2R1bW15MTgYEiABKAUS",
- "DwoHZHVtbXkxORgTIAEoBRIPCgdkdW1teTIwGBQgASgFEg8KB2R1bW15MjEY",
- "FSABKAUSDwoHZHVtbXkyMhgWIAEoBRIPCgdkdW1teTIzGBcgASgFEg8KB2R1",
- "bW15MjQYGCABKAUSDwoHZHVtbXkyNRgZIAEoBRIPCgdkdW1teTI2GBogASgF",
- "Eg8KB2R1bW15MjcYGyABKAUSDwoHZHVtbXkyOBgcIAEoBRIPCgdkdW1teTI5",
- "GB0gASgFEg8KB2R1bW15MzAYHiABKAUSDwoHZHVtbXkzMRgfIAEoBRIPCgdk",
- "dW1teTMyGCAgASgFEgkKAWMYISACKAUyVgoGc2luZ2xlEiQucHJvdG9idWZf",
- "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMY6AcgASgLMh8ucHJvdG9idWZf",
- "dW5pdHRlc3QuVGVzdFJlcXVpcmVkMlUKBW11bHRpEiQucHJvdG9idWZfdW5p",
- "dHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMY6QcgAygLMh8ucHJvdG9idWZfdW5p",
- "dHRlc3QuVGVzdFJlcXVpcmVkIpoBChNUZXN0UmVxdWlyZWRGb3JlaWduEjkK",
- "EG9wdGlvbmFsX21lc3NhZ2UYASABKAsyHy5wcm90b2J1Zl91bml0dGVzdC5U",
- "ZXN0UmVxdWlyZWQSOQoQcmVwZWF0ZWRfbWVzc2FnZRgCIAMoCzIfLnByb3Rv",
- "YnVmX3VuaXR0ZXN0LlRlc3RSZXF1aXJlZBINCgVkdW1teRgDIAEoBSJaChFU",
- "ZXN0Rm9yZWlnbk5lc3RlZBJFCg5mb3JlaWduX25lc3RlZBgBIAEoCzItLnBy",
- "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlIhIK",
- "EFRlc3RFbXB0eU1lc3NhZ2UiKgoeVGVzdEVtcHR5TWVzc2FnZVdpdGhFeHRl",
- "bnNpb25zKggIARCAgICAAiI3ChtUZXN0TXVsdGlwbGVFeHRlbnNpb25SYW5n",
- "ZXMqBAgqECsqBgivIBCUISoKCICABBCAgICAAiI0ChhUZXN0UmVhbGx5TGFy",
- "Z2VUYWdOdW1iZXISCQoBYRgBIAEoBRINCgJiYhj///9/IAEoBSJVChRUZXN0",
- "UmVjdXJzaXZlTWVzc2FnZRIyCgFhGAEgASgLMicucHJvdG9idWZfdW5pdHRl",
- "c3QuVGVzdFJlY3Vyc2l2ZU1lc3NhZ2USCQoBaRgCIAEoBSJLChRUZXN0TXV0",
- "dWFsUmVjdXJzaW9uQRIzCgJiYhgBIAEoCzInLnByb3RvYnVmX3VuaXR0ZXN0",
- "LlRlc3RNdXR1YWxSZWN1cnNpb25CImIKFFRlc3RNdXR1YWxSZWN1cnNpb25C",
- "EjIKAWEYASABKAsyJy5wcm90b2J1Zl91bml0dGVzdC5UZXN0TXV0dWFsUmVj",
- "dXJzaW9uQRIWCg5vcHRpb25hbF9pbnQzMhgCIAEoBSKzAQoSVGVzdER1cEZp",
- "ZWxkTnVtYmVyEgkKAWEYASABKAUSNgoDZm9vGAIgASgKMikucHJvdG9idWZf",
- "dW5pdHRlc3QuVGVzdER1cEZpZWxkTnVtYmVyLkZvbxI2CgNiYXIYAyABKAoy",
- "KS5wcm90b2J1Zl91bml0dGVzdC5UZXN0RHVwRmllbGROdW1iZXIuQmFyGhAK",
- "A0ZvbxIJCgFhGAEgASgFGhAKA0JhchIJCgFhGAEgASgFIkwKEFRlc3RFYWdl",
- "ck1lc3NhZ2USOAoLc3ViX21lc3NhZ2UYASABKAsyHy5wcm90b2J1Zl91bml0",
- "dGVzdC5UZXN0QWxsVHlwZXNCAigAIksKD1Rlc3RMYXp5TWVzc2FnZRI4Cgtz",
- "dWJfbWVzc2FnZRgBIAEoCzIfLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxU",
- "eXBlc0ICKAEigAIKGFRlc3ROZXN0ZWRNZXNzYWdlSGFzQml0cxJaChdvcHRp",
- "b25hbF9uZXN0ZWRfbWVzc2FnZRgBIAEoCzI5LnByb3RvYnVmX3VuaXR0ZXN0",
- "LlRlc3ROZXN0ZWRNZXNzYWdlSGFzQml0cy5OZXN0ZWRNZXNzYWdlGocBCg1O",
- "ZXN0ZWRNZXNzYWdlEiQKHG5lc3RlZG1lc3NhZ2VfcmVwZWF0ZWRfaW50MzIY",
- "ASADKAUSUAolbmVzdGVkbWVzc2FnZV9yZXBlYXRlZF9mb3JlaWdubWVzc2Fn",
- "ZRgCIAMoCzIhLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25NZXNzYWdlIuUD",
- "ChdUZXN0Q2FtZWxDYXNlRmllbGROYW1lcxIWCg5QcmltaXRpdmVGaWVsZBgB",
- "IAEoBRITCgtTdHJpbmdGaWVsZBgCIAEoCRIxCglFbnVtRmllbGQYAyABKA4y",
- "Hi5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduRW51bRI3CgxNZXNzYWdlRmll",
- "bGQYBCABKAsyIS5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduTWVzc2FnZRIc",
- "ChBTdHJpbmdQaWVjZUZpZWxkGAUgASgJQgIIAhIVCglDb3JkRmllbGQYBiAB",
- "KAlCAggBEh4KFlJlcGVhdGVkUHJpbWl0aXZlRmllbGQYByADKAUSGwoTUmVw",
- "ZWF0ZWRTdHJpbmdGaWVsZBgIIAMoCRI5ChFSZXBlYXRlZEVudW1GaWVsZBgJ",
- "IAMoDjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25FbnVtEj8KFFJlcGVh",
- "dGVkTWVzc2FnZUZpZWxkGAogAygLMiEucHJvdG9idWZfdW5pdHRlc3QuRm9y",
- "ZWlnbk1lc3NhZ2USJAoYUmVwZWF0ZWRTdHJpbmdQaWVjZUZpZWxkGAsgAygJ",
- "QgIIAhIdChFSZXBlYXRlZENvcmRGaWVsZBgMIAMoCUICCAEi1QEKElRlc3RG",
- "aWVsZE9yZGVyaW5ncxIRCglteV9zdHJpbmcYCyABKAkSDgoGbXlfaW50GAEg",
- "ASgDEhAKCG15X2Zsb2F0GGUgASgCElUKF29wdGlvbmFsX25lc3RlZF9tZXNz",
- "YWdlGMgBIAEoCzIzLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RGaWVsZE9yZGVy",
- "aW5ncy5OZXN0ZWRNZXNzYWdlGicKDU5lc3RlZE1lc3NhZ2USCgoCb28YAiAB",
- "KAMSCgoCYmIYASABKAUqBAgCEAsqBAgMEGUitgcKGFRlc3RFeHRyZW1lRGVm",
- "YXVsdFZhbHVlcxI/Cg1lc2NhcGVkX2J5dGVzGAEgASgMOihcMDAwXDAwMVww",
- "MDdcMDEwXDAxNFxuXHJcdFwwMTNcXFwnXCJcMzc2EiAKDGxhcmdlX3VpbnQz",
- "MhgCIAEoDToKNDI5NDk2NzI5NRIqCgxsYXJnZV91aW50NjQYAyABKAQ6FDE4",
- "NDQ2NzQ0MDczNzA5NTUxNjE1EiAKC3NtYWxsX2ludDMyGAQgASgFOgstMjE0",
- "NzQ4MzY0NxIpCgtzbWFsbF9pbnQ2NBgFIAEoAzoULTkyMjMzNzIwMzY4NTQ3",
- "NzU4MDcSJwoScmVhbGx5X3NtYWxsX2ludDMyGBUgASgFOgstMjE0NzQ4MzY0",
- "OBIwChJyZWFsbHlfc21hbGxfaW50NjQYFiABKAM6FC05MjIzMzcyMDM2ODU0",
- "Nzc1ODA4EhgKC3V0Zjhfc3RyaW5nGAYgASgJOgPhiLQSFQoKemVyb19mbG9h",
- "dBgHIAEoAjoBMBIUCglvbmVfZmxvYXQYCCABKAI6ATESGAoLc21hbGxfZmxv",
- "YXQYCSABKAI6AzEuNRIeChJuZWdhdGl2ZV9vbmVfZmxvYXQYCiABKAI6Ai0x",
- "EhwKDm5lZ2F0aXZlX2Zsb2F0GAsgASgCOgQtMS41EhoKC2xhcmdlX2Zsb2F0",
- "GAwgASgCOgUyZSswOBIkChRzbWFsbF9uZWdhdGl2ZV9mbG9hdBgNIAEoAjoG",
- "LThlLTI4EhcKCmluZl9kb3VibGUYDiABKAE6A2luZhIcCg5uZWdfaW5mX2Rv",
- "dWJsZRgPIAEoAToELWluZhIXCgpuYW5fZG91YmxlGBAgASgBOgNuYW4SFgoJ",
- "aW5mX2Zsb2F0GBEgASgCOgNpbmYSGwoNbmVnX2luZl9mbG9hdBgSIAEoAjoE",
- "LWluZhIWCgluYW5fZmxvYXQYEyABKAI6A25hbhIrCgxjcHBfdHJpZ3JhcGgY",
- "FCABKAk6FT8gPyA/PyA/PyA/Pz8gPz8vID8/LRIgChBzdHJpbmdfd2l0aF96",
- "ZXJvGBcgASgJOgZoZWwAbG8SIgoPYnl0ZXNfd2l0aF96ZXJvGBggASgMOgl3",
- "b3JcMDAwbGQSKAoWc3RyaW5nX3BpZWNlX3dpdGhfemVybxgZIAEoCToEYWIA",
- "Y0ICCAISIAoOY29yZF93aXRoX3plcm8YGiABKAk6BDEyADNCAggBEiYKEnJl",
- "cGxhY2VtZW50X3N0cmluZxgbIAEoCToKJHt1bmtub3dufSJLChFTcGFyc2VF",
- "bnVtTWVzc2FnZRI2CgtzcGFyc2VfZW51bRgBIAEoDjIhLnByb3RvYnVmX3Vu",
- "aXR0ZXN0LlRlc3RTcGFyc2VFbnVtIhkKCU9uZVN0cmluZxIMCgRkYXRhGAEg",
- "ASgJIhoKCk1vcmVTdHJpbmcSDAoEZGF0YRgBIAMoCSIYCghPbmVCeXRlcxIM",
- "CgRkYXRhGAEgASgMIhkKCU1vcmVCeXRlcxIMCgRkYXRhGAEgAygMIhwKDElu",
- "dDMyTWVzc2FnZRIMCgRkYXRhGAEgASgFIh0KDVVpbnQzMk1lc3NhZ2USDAoE",
- "ZGF0YRgBIAEoDSIcCgxJbnQ2NE1lc3NhZ2USDAoEZGF0YRgBIAEoAyIdCg1V",
- "aW50NjRNZXNzYWdlEgwKBGRhdGEYASABKAQiGwoLQm9vbE1lc3NhZ2USDAoE",
- "ZGF0YRgBIAEoCCLQAQoJVGVzdE9uZW9mEhEKB2Zvb19pbnQYASABKAVIABIU",
- "Cgpmb29fc3RyaW5nGAIgASgJSAASNgoLZm9vX21lc3NhZ2UYAyABKAsyHy5w",
- "cm90b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXNIABI5Cghmb29ncm91cBgE",
- "IAEoCjIlLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RPbmVvZi5Gb29Hcm91cEgA",
- "GiAKCEZvb0dyb3VwEgkKAWEYBSABKAUSCQoBYhgGIAEoCUIFCgNmb28i5wEK",
- "HFRlc3RPbmVvZkJhY2t3YXJkc0NvbXBhdGlibGUSDwoHZm9vX2ludBgBIAEo",
- "BRISCgpmb29fc3RyaW5nGAIgASgJEjQKC2Zvb19tZXNzYWdlGAMgASgLMh8u",
- "cHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzEkoKCGZvb2dyb3VwGAQg",
- "ASgKMjgucHJvdG9idWZfdW5pdHRlc3QuVGVzdE9uZW9mQmFja3dhcmRzQ29t",
- "cGF0aWJsZS5Gb29Hcm91cBogCghGb29Hcm91cBIJCgFhGAUgASgFEgkKAWIY",
- "BiABKAkingYKClRlc3RPbmVvZjISEQoHZm9vX2ludBgBIAEoBUgAEhQKCmZv",
- "b19zdHJpbmcYAiABKAlIABIWCghmb29fY29yZBgDIAEoCUICCAFIABIeChBm",
- "b29fc3RyaW5nX3BpZWNlGAQgASgJQgIIAkgAEhMKCWZvb19ieXRlcxgFIAEo",
- "DEgAEjwKCGZvb19lbnVtGAYgASgOMigucHJvdG9idWZfdW5pdHRlc3QuVGVz",
- "dE9uZW9mMi5OZXN0ZWRFbnVtSAASQgoLZm9vX21lc3NhZ2UYByABKAsyKy5w",
- "cm90b2J1Zl91bml0dGVzdC5UZXN0T25lb2YyLk5lc3RlZE1lc3NhZ2VIABI6",
- "Cghmb29ncm91cBgIIAEoCjImLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RPbmVv",
- "ZjIuRm9vR3JvdXBIABJLChBmb29fbGF6eV9tZXNzYWdlGAsgASgLMisucHJv",
- "dG9idWZfdW5pdHRlc3QuVGVzdE9uZW9mMi5OZXN0ZWRNZXNzYWdlQgIoAUgA",
- "EhQKB2Jhcl9pbnQYDCABKAU6ATVIARIcCgpiYXJfc3RyaW5nGA0gASgJOgZT",
- "VFJJTkdIARIcCghiYXJfY29yZBgOIAEoCToEQ09SREICCAFIARImChBiYXJf",
- "c3RyaW5nX3BpZWNlGA8gASgJOgZTUElFQ0VCAggCSAESGgoJYmFyX2J5dGVz",
- "GBAgASgMOgVCWVRFU0gBEkEKCGJhcl9lbnVtGBEgASgOMigucHJvdG9idWZf",
- "dW5pdHRlc3QuVGVzdE9uZW9mMi5OZXN0ZWRFbnVtOgNCQVJIARIPCgdiYXpf",
- "aW50GBIgASgFEhcKCmJhel9zdHJpbmcYEyABKAk6A0JBWhogCghGb29Hcm91",
- "cBIJCgFhGAkgASgFEgkKAWIYCiABKAkaMwoNTmVzdGVkTWVzc2FnZRIPCgdx",
- "dXhfaW50GAEgASgDEhEKCWNvcmdlX2ludBgCIAMoBSInCgpOZXN0ZWRFbnVt",
- "EgcKA0ZPTxABEgcKA0JBUhACEgcKA0JBWhADQgUKA2Zvb0IFCgNiYXIiuAEK",
- "EVRlc3RSZXF1aXJlZE9uZW9mEhEKB2Zvb19pbnQYASABKAVIABIUCgpmb29f",
- "c3RyaW5nGAIgASgJSAASSQoLZm9vX21lc3NhZ2UYAyABKAsyMi5wcm90b2J1",
- "Zl91bml0dGVzdC5UZXN0UmVxdWlyZWRPbmVvZi5OZXN0ZWRNZXNzYWdlSAAa",
- "KAoNTmVzdGVkTWVzc2FnZRIXCg9yZXF1aXJlZF9kb3VibGUYASACKAFCBQoD",
- "Zm9vIqoDCg9UZXN0UGFja2VkVHlwZXMSGAoMcGFja2VkX2ludDMyGFogAygF",
- "QgIQARIYCgxwYWNrZWRfaW50NjQYWyADKANCAhABEhkKDXBhY2tlZF91aW50",
- "MzIYXCADKA1CAhABEhkKDXBhY2tlZF91aW50NjQYXSADKARCAhABEhkKDXBh",
- "Y2tlZF9zaW50MzIYXiADKBFCAhABEhkKDXBhY2tlZF9zaW50NjQYXyADKBJC",
- "AhABEhoKDnBhY2tlZF9maXhlZDMyGGAgAygHQgIQARIaCg5wYWNrZWRfZml4",
- "ZWQ2NBhhIAMoBkICEAESGwoPcGFja2VkX3NmaXhlZDMyGGIgAygPQgIQARIb",
- "Cg9wYWNrZWRfc2ZpeGVkNjQYYyADKBBCAhABEhgKDHBhY2tlZF9mbG9hdBhk",
- "IAMoAkICEAESGQoNcGFja2VkX2RvdWJsZRhlIAMoAUICEAESFwoLcGFja2Vk",
- "X2Jvb2wYZiADKAhCAhABEjcKC3BhY2tlZF9lbnVtGGcgAygOMh4ucHJvdG9i",
- "dWZfdW5pdHRlc3QuRm9yZWlnbkVudW1CAhABIsgDChFUZXN0VW5wYWNrZWRU",
- "eXBlcxIaCg51bnBhY2tlZF9pbnQzMhhaIAMoBUICEAASGgoOdW5wYWNrZWRf",
- "aW50NjQYWyADKANCAhAAEhsKD3VucGFja2VkX3VpbnQzMhhcIAMoDUICEAAS",
- "GwoPdW5wYWNrZWRfdWludDY0GF0gAygEQgIQABIbCg91bnBhY2tlZF9zaW50",
- "MzIYXiADKBFCAhAAEhsKD3VucGFja2VkX3NpbnQ2NBhfIAMoEkICEAASHAoQ",
- "dW5wYWNrZWRfZml4ZWQzMhhgIAMoB0ICEAASHAoQdW5wYWNrZWRfZml4ZWQ2",
- "NBhhIAMoBkICEAASHQoRdW5wYWNrZWRfc2ZpeGVkMzIYYiADKA9CAhAAEh0K",
- "EXVucGFja2VkX3NmaXhlZDY0GGMgAygQQgIQABIaCg51bnBhY2tlZF9mbG9h",
- "dBhkIAMoAkICEAASGwoPdW5wYWNrZWRfZG91YmxlGGUgAygBQgIQABIZCg11",
- "bnBhY2tlZF9ib29sGGYgAygIQgIQABI5Cg11bnBhY2tlZF9lbnVtGGcgAygO",
- "Mh4ucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbkVudW1CAhAAIiAKFFRlc3RQ",
- "YWNrZWRFeHRlbnNpb25zKggIARCAgICAAiIiChZUZXN0VW5wYWNrZWRFeHRl",
- "bnNpb25zKggIARCAgICAAiKZBAoVVGVzdER5bmFtaWNFeHRlbnNpb25zEhkK",
- "EHNjYWxhcl9leHRlbnNpb24Y0A8gASgHEjcKDmVudW1fZXh0ZW5zaW9uGNEP",
- "IAEoDjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25FbnVtElkKFmR5bmFt",
- "aWNfZW51bV9leHRlbnNpb24Y0g8gASgOMjgucHJvdG9idWZfdW5pdHRlc3Qu",
- "VGVzdER5bmFtaWNFeHRlbnNpb25zLkR5bmFtaWNFbnVtVHlwZRI9ChFtZXNz",
- "YWdlX2V4dGVuc2lvbhjTDyABKAsyIS5wcm90b2J1Zl91bml0dGVzdC5Gb3Jl",
- "aWduTWVzc2FnZRJfChlkeW5hbWljX21lc3NhZ2VfZXh0ZW5zaW9uGNQPIAEo",
- "CzI7LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3REeW5hbWljRXh0ZW5zaW9ucy5E",
- "eW5hbWljTWVzc2FnZVR5cGUSGwoScmVwZWF0ZWRfZXh0ZW5zaW9uGNUPIAMo",
- "CRIdChBwYWNrZWRfZXh0ZW5zaW9uGNYPIAMoEUICEAEaLAoSRHluYW1pY01l",
- "c3NhZ2VUeXBlEhYKDWR5bmFtaWNfZmllbGQYtBAgASgFIkcKD0R5bmFtaWNF",
- "bnVtVHlwZRIQCgtEWU5BTUlDX0ZPTxCYERIQCgtEWU5BTUlDX0JBUhCZERIQ",
- "CgtEWU5BTUlDX0JBWhCaESLAAQojVGVzdFJlcGVhdGVkU2NhbGFyRGlmZmVy",
- "ZW50VGFnU2l6ZXMSGAoQcmVwZWF0ZWRfZml4ZWQzMhgMIAMoBxIWCg5yZXBl",
- "YXRlZF9pbnQzMhgNIAMoBRIZChByZXBlYXRlZF9maXhlZDY0GP4PIAMoBhIX",
- "Cg5yZXBlYXRlZF9pbnQ2NBj/DyADKAMSGAoOcmVwZWF0ZWRfZmxvYXQY/v8P",
- "IAMoAhIZCg9yZXBlYXRlZF91aW50NjQY//8PIAMoBCL3CQoQVGVzdFBhcnNp",
- "bmdNZXJnZRI7ChJyZXF1aXJlZF9hbGxfdHlwZXMYASACKAsyHy5wcm90b2J1",
- "Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMSOwoSb3B0aW9uYWxfYWxsX3R5cGVz",
- "GAIgASgLMh8ucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzEjsKEnJl",
- "cGVhdGVkX2FsbF90eXBlcxgDIAMoCzIfLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
- "c3RBbGxUeXBlcxJICg1vcHRpb25hbGdyb3VwGAogASgKMjEucHJvdG9idWZf",
- "dW5pdHRlc3QuVGVzdFBhcnNpbmdNZXJnZS5PcHRpb25hbEdyb3VwEkgKDXJl",
- "cGVhdGVkZ3JvdXAYFCADKAoyMS5wcm90b2J1Zl91bml0dGVzdC5UZXN0UGFy",
- "c2luZ01lcmdlLlJlcGVhdGVkR3JvdXAaqgQKF1JlcGVhdGVkRmllbGRzR2Vu",
- "ZXJhdG9yEi8KBmZpZWxkMRgBIAMoCzIfLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
- "c3RBbGxUeXBlcxIvCgZmaWVsZDIYAiADKAsyHy5wcm90b2J1Zl91bml0dGVz",
- "dC5UZXN0QWxsVHlwZXMSLwoGZmllbGQzGAMgAygLMh8ucHJvdG9idWZfdW5p",
- "dHRlc3QuVGVzdEFsbFR5cGVzElIKBmdyb3VwMRgKIAMoCjJCLnByb3RvYnVm",
- "X3VuaXR0ZXN0LlRlc3RQYXJzaW5nTWVyZ2UuUmVwZWF0ZWRGaWVsZHNHZW5l",
- "cmF0b3IuR3JvdXAxElIKBmdyb3VwMhgUIAMoCjJCLnByb3RvYnVmX3VuaXR0",
- "ZXN0LlRlc3RQYXJzaW5nTWVyZ2UuUmVwZWF0ZWRGaWVsZHNHZW5lcmF0b3Iu",
- "R3JvdXAyEi4KBGV4dDEY6AcgAygLMh8ucHJvdG9idWZfdW5pdHRlc3QuVGVz",
- "dEFsbFR5cGVzEi4KBGV4dDIY6QcgAygLMh8ucHJvdG9idWZfdW5pdHRlc3Qu",
- "VGVzdEFsbFR5cGVzGjkKBkdyb3VwMRIvCgZmaWVsZDEYCyABKAsyHy5wcm90",
- "b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMaOQoGR3JvdXAyEi8KBmZpZWxk",
- "MRgVIAEoCzIfLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcxpSCg1P",
- "cHRpb25hbEdyb3VwEkEKGG9wdGlvbmFsX2dyb3VwX2FsbF90eXBlcxgLIAEo",
- "CzIfLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcxpSCg1SZXBlYXRl",
- "ZEdyb3VwEkEKGHJlcGVhdGVkX2dyb3VwX2FsbF90eXBlcxgVIAEoCzIfLnBy",
- "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcyoJCOgHEICAgIACMlsKDG9w",
- "dGlvbmFsX2V4dBIjLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RQYXJzaW5nTWVy",
- "Z2UY6AcgASgLMh8ucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVzMlsK",
- "DHJlcGVhdGVkX2V4dBIjLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RQYXJzaW5n",
- "TWVyZ2UY6QcgAygLMh8ucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVz",
- "IkQKG1Rlc3RDb21tZW50SW5qZWN0aW9uTWVzc2FnZRIlCgFhGAEgASgJOhoq",
- "LyA8LSBOZWl0aGVyIHNob3VsZCB0aGlzLiIMCgpGb29SZXF1ZXN0Ig0KC0Zv",
- "b1Jlc3BvbnNlIhIKEEZvb0NsaWVudE1lc3NhZ2UiEgoQRm9vU2VydmVyTWVz",
- "c2FnZSIMCgpCYXJSZXF1ZXN0Ig0KC0JhclJlc3BvbnNlKkAKC0ZvcmVpZ25F",
- "bnVtEg8KC0ZPUkVJR05fRk9PEAQSDwoLRk9SRUlHTl9CQVIQBRIPCgtGT1JF",
- "SUdOX0JBWhAGKksKFFRlc3RFbnVtV2l0aER1cFZhbHVlEggKBEZPTzEQARII",
- "CgRCQVIxEAISBwoDQkFaEAMSCAoERk9PMhABEggKBEJBUjIQAhoCEAEqiQEK",
- "DlRlc3RTcGFyc2VFbnVtEgwKCFNQQVJTRV9BEHsSDgoIU1BBUlNFX0IQpucD",
- "Eg8KCFNQQVJTRV9DELKxgAYSFQoIU1BBUlNFX0QQ8f//////////ARIVCghT",
- "UEFSU0VfRRC03vz///////8BEgwKCFNQQVJTRV9GEAASDAoIU1BBUlNFX0cQ",
- "AjKZAQoLVGVzdFNlcnZpY2USRAoDRm9vEh0ucHJvdG9idWZfdW5pdHRlc3Qu",
- "Rm9vUmVxdWVzdBoeLnByb3RvYnVmX3VuaXR0ZXN0LkZvb1Jlc3BvbnNlEkQK",
- "A0JhchIdLnByb3RvYnVmX3VuaXR0ZXN0LkJhclJlcXVlc3QaHi5wcm90b2J1",
- "Zl91bml0dGVzdC5CYXJSZXNwb25zZTpGChhvcHRpb25hbF9pbnQzMl9leHRl",
- "bnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgB",
- "IAEoBTpGChhvcHRpb25hbF9pbnQ2NF9leHRlbnNpb24SJC5wcm90b2J1Zl91",
- "bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgCIAEoAzpHChlvcHRpb25hbF91",
- "aW50MzJfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4",
- "dGVuc2lvbnMYAyABKA06RwoZb3B0aW9uYWxfdWludDY0X2V4dGVuc2lvbhIk",
- "LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGAQgASgEOkcK",
- "GW9wdGlvbmFsX3NpbnQzMl9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVz",
- "dC5UZXN0QWxsRXh0ZW5zaW9ucxgFIAEoETpHChlvcHRpb25hbF9zaW50NjRf",
- "ZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lv",
- "bnMYBiABKBI6SAoab3B0aW9uYWxfZml4ZWQzMl9leHRlbnNpb24SJC5wcm90",
- "b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgHIAEoBzpIChpvcHRp",
- "b25hbF9maXhlZDY0X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
- "c3RBbGxFeHRlbnNpb25zGAggASgGOkkKG29wdGlvbmFsX3NmaXhlZDMyX2V4",
- "dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25z",
- "GAkgASgPOkkKG29wdGlvbmFsX3NmaXhlZDY0X2V4dGVuc2lvbhIkLnByb3Rv",
- "YnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGAogASgQOkYKGG9wdGlv",
- "bmFsX2Zsb2F0X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB",
- "bGxFeHRlbnNpb25zGAsgASgCOkcKGW9wdGlvbmFsX2RvdWJsZV9leHRlbnNp",
- "b24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgMIAEo",
- "ATpFChdvcHRpb25hbF9ib29sX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0",
- "ZXN0LlRlc3RBbGxFeHRlbnNpb25zGA0gASgIOkcKGW9wdGlvbmFsX3N0cmlu",
- "Z19leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5z",
- "aW9ucxgOIAEoCTpGChhvcHRpb25hbF9ieXRlc19leHRlbnNpb24SJC5wcm90",
- "b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgPIAEoDDpxChdvcHRp",
- "b25hbGdyb3VwX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB",
- "bGxFeHRlbnNpb25zGBAgASgKMioucHJvdG9idWZfdW5pdHRlc3QuT3B0aW9u",
- "YWxHcm91cF9leHRlbnNpb246fgohb3B0aW9uYWxfbmVzdGVkX21lc3NhZ2Vf",
- "ZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lv",
- "bnMYEiABKAsyLS5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsVHlwZXMuTmVz",
- "dGVkTWVzc2FnZTpzCiJvcHRpb25hbF9mb3JlaWduX21lc3NhZ2VfZXh0ZW5z",
- "aW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYEyAB",
- "KAsyIS5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduTWVzc2FnZTp4CiFvcHRp",
- "b25hbF9pbXBvcnRfbWVzc2FnZV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0",
- "dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxgUIAEoCzInLnByb3RvYnVmX3VuaXR0",
- "ZXN0X2ltcG9ydC5JbXBvcnRNZXNzYWdlOngKHm9wdGlvbmFsX25lc3RlZF9l",
- "bnVtX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRl",
- "bnNpb25zGBUgASgOMioucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5cGVz",
- "Lk5lc3RlZEVudW06bQofb3B0aW9uYWxfZm9yZWlnbl9lbnVtX2V4dGVuc2lv",
- "bhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGBYgASgO",
- "Mh4ucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbkVudW06cgoeb3B0aW9uYWxf",
- "aW1wb3J0X2VudW1fZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVz",
- "dEFsbEV4dGVuc2lvbnMYFyABKA4yJC5wcm90b2J1Zl91bml0dGVzdF9pbXBv",
- "cnQuSW1wb3J0RW51bTpRCh9vcHRpb25hbF9zdHJpbmdfcGllY2VfZXh0ZW5z",
- "aW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYGCAB",
- "KAlCAggCOkkKF29wdGlvbmFsX2NvcmRfZXh0ZW5zaW9uEiQucHJvdG9idWZf",
- "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYGSABKAlCAggBOoUBCihvcHRp",
- "b25hbF9wdWJsaWNfaW1wb3J0X21lc3NhZ2VfZXh0ZW5zaW9uEiQucHJvdG9i",
- "dWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYGiABKAsyLS5wcm90b2J1",
- "Zl91bml0dGVzdF9pbXBvcnQuUHVibGljSW1wb3J0TWVzc2FnZTqAAQofb3B0",
- "aW9uYWxfbGF6eV9tZXNzYWdlX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0",
- "ZXN0LlRlc3RBbGxFeHRlbnNpb25zGBsgASgLMi0ucHJvdG9idWZfdW5pdHRl",
- "c3QuVGVzdEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2VCAigBOkYKGHJlcGVhdGVk",
- "X2ludDMyX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxF",
- "eHRlbnNpb25zGB8gAygFOkYKGHJlcGVhdGVkX2ludDY0X2V4dGVuc2lvbhIk",
- "LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGCAgAygDOkcK",
- "GXJlcGVhdGVkX3VpbnQzMl9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVz",
- "dC5UZXN0QWxsRXh0ZW5zaW9ucxghIAMoDTpHChlyZXBlYXRlZF91aW50NjRf",
- "ZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lv",
- "bnMYIiADKAQ6RwoZcmVwZWF0ZWRfc2ludDMyX2V4dGVuc2lvbhIkLnByb3Rv",
- "YnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGCMgAygROkcKGXJlcGVh",
- "dGVkX3NpbnQ2NF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0",
- "QWxsRXh0ZW5zaW9ucxgkIAMoEjpIChpyZXBlYXRlZF9maXhlZDMyX2V4dGVu",
- "c2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGCUg",
- "AygHOkgKGnJlcGVhdGVkX2ZpeGVkNjRfZXh0ZW5zaW9uEiQucHJvdG9idWZf",
- "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYJiADKAY6SQobcmVwZWF0ZWRf",
- "c2ZpeGVkMzJfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFs",
- "bEV4dGVuc2lvbnMYJyADKA86SQobcmVwZWF0ZWRfc2ZpeGVkNjRfZXh0ZW5z",
- "aW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYKCAD",
- "KBA6RgoYcmVwZWF0ZWRfZmxvYXRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5p",
- "dHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYKSADKAI6RwoZcmVwZWF0ZWRfZG91",
- "YmxlX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRl",
- "bnNpb25zGCogAygBOkUKF3JlcGVhdGVkX2Jvb2xfZXh0ZW5zaW9uEiQucHJv",
- "dG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYKyADKAg6RwoZcmVw",
- "ZWF0ZWRfc3RyaW5nX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
- "c3RBbGxFeHRlbnNpb25zGCwgAygJOkYKGHJlcGVhdGVkX2J5dGVzX2V4dGVu",
- "c2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGC0g",
- "AygMOnEKF3JlcGVhdGVkZ3JvdXBfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5p",
- "dHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYLiADKAoyKi5wcm90b2J1Zl91bml0",
- "dGVzdC5SZXBlYXRlZEdyb3VwX2V4dGVuc2lvbjp+CiFyZXBlYXRlZF9uZXN0",
- "ZWRfbWVzc2FnZV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0",
- "QWxsRXh0ZW5zaW9ucxgwIAMoCzItLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB",
- "bGxUeXBlcy5OZXN0ZWRNZXNzYWdlOnMKInJlcGVhdGVkX2ZvcmVpZ25fbWVz",
- "c2FnZV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0",
- "ZW5zaW9ucxgxIAMoCzIhLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25NZXNz",
- "YWdlOngKIXJlcGVhdGVkX2ltcG9ydF9tZXNzYWdlX2V4dGVuc2lvbhIkLnBy",
- "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGDIgAygLMicucHJv",
- "dG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9ydE1lc3NhZ2U6eAoecmVwZWF0",
- "ZWRfbmVzdGVkX2VudW1fZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3Qu",
- "VGVzdEFsbEV4dGVuc2lvbnMYMyADKA4yKi5wcm90b2J1Zl91bml0dGVzdC5U",
- "ZXN0QWxsVHlwZXMuTmVzdGVkRW51bTptCh9yZXBlYXRlZF9mb3JlaWduX2Vu",
- "dW1fZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVu",
- "c2lvbnMYNCADKA4yHi5wcm90b2J1Zl91bml0dGVzdC5Gb3JlaWduRW51bTpy",
- "Ch5yZXBlYXRlZF9pbXBvcnRfZW51bV9leHRlbnNpb24SJC5wcm90b2J1Zl91",
- "bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxg1IAMoDjIkLnByb3RvYnVmX3Vu",
- "aXR0ZXN0X2ltcG9ydC5JbXBvcnRFbnVtOlEKH3JlcGVhdGVkX3N0cmluZ19w",
- "aWVjZV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0",
- "ZW5zaW9ucxg2IAMoCUICCAI6SQoXcmVwZWF0ZWRfY29yZF9leHRlbnNpb24S",
- "JC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxg3IAMoCUIC",
- "CAE6gAEKH3JlcGVhdGVkX2xhenlfbWVzc2FnZV9leHRlbnNpb24SJC5wcm90",
- "b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxg5IAMoCzItLnByb3Rv",
- "YnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdlQgIoATpJ",
- "ChdkZWZhdWx0X2ludDMyX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0",
- "LlRlc3RBbGxFeHRlbnNpb25zGD0gASgFOgI0MTpJChdkZWZhdWx0X2ludDY0",
- "X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNp",
- "b25zGD4gASgDOgI0MjpKChhkZWZhdWx0X3VpbnQzMl9leHRlbnNpb24SJC5w",
- "cm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxg/IAEoDToCNDM6",
- "SgoYZGVmYXVsdF91aW50NjRfZXh0ZW5zaW9uEiQucHJvdG9idWZfdW5pdHRl",
- "c3QuVGVzdEFsbEV4dGVuc2lvbnMYQCABKAQ6AjQ0OksKGGRlZmF1bHRfc2lu",
- "dDMyX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRl",
- "bnNpb25zGEEgASgROgMtNDU6SgoYZGVmYXVsdF9zaW50NjRfZXh0ZW5zaW9u",
- "EiQucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYQiABKBI6",
- "AjQ2OksKGWRlZmF1bHRfZml4ZWQzMl9leHRlbnNpb24SJC5wcm90b2J1Zl91",
- "bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhDIAEoBzoCNDc6SwoZZGVmYXVs",
- "dF9maXhlZDY0X2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RB",
- "bGxFeHRlbnNpb25zGEQgASgGOgI0ODpMChpkZWZhdWx0X3NmaXhlZDMyX2V4",
- "dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25z",
- "GEUgASgPOgI0OTpNChpkZWZhdWx0X3NmaXhlZDY0X2V4dGVuc2lvbhIkLnBy",
- "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGEYgASgQOgMtNTA6",
- "SwoXZGVmYXVsdF9mbG9hdF9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVz",
- "dC5UZXN0QWxsRXh0ZW5zaW9ucxhHIAEoAjoENTEuNTpNChhkZWZhdWx0X2Rv",
- "dWJsZV9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0",
- "ZW5zaW9ucxhIIAEoAToFNTIwMDA6SgoWZGVmYXVsdF9ib29sX2V4dGVuc2lv",
- "bhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGEkgASgI",
- "OgR0cnVlOk0KGGRlZmF1bHRfc3RyaW5nX2V4dGVuc2lvbhIkLnByb3RvYnVm",
- "X3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGEogASgJOgVoZWxsbzpMChdk",
- "ZWZhdWx0X2J5dGVzX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
- "c3RBbGxFeHRlbnNpb25zGEsgASgMOgV3b3JsZDp8Ch1kZWZhdWx0X25lc3Rl",
- "ZF9lbnVtX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxF",
- "eHRlbnNpb25zGFEgASgOMioucHJvdG9idWZfdW5pdHRlc3QuVGVzdEFsbFR5",
- "cGVzLk5lc3RlZEVudW06A0JBUjp5Ch5kZWZhdWx0X2ZvcmVpZ25fZW51bV9l",
- "eHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9u",
- "cxhSIAEoDjIeLnByb3RvYnVmX3VuaXR0ZXN0LkZvcmVpZ25FbnVtOgtGT1JF",
- "SUdOX0JBUjp9Ch1kZWZhdWx0X2ltcG9ydF9lbnVtX2V4dGVuc2lvbhIkLnBy",
- "b3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxFeHRlbnNpb25zGFMgASgOMiQucHJv",
- "dG9idWZfdW5pdHRlc3RfaW1wb3J0LkltcG9ydEVudW06CklNUE9SVF9CQVI6",
- "VQoeZGVmYXVsdF9zdHJpbmdfcGllY2VfZXh0ZW5zaW9uEiQucHJvdG9idWZf",
- "dW5pdHRlc3QuVGVzdEFsbEV4dGVuc2lvbnMYVCABKAk6A2FiY0ICCAI6TQoW",
- "ZGVmYXVsdF9jb3JkX2V4dGVuc2lvbhIkLnByb3RvYnVmX3VuaXR0ZXN0LlRl",
- "c3RBbGxFeHRlbnNpb25zGFUgASgJOgMxMjNCAggBOkQKFm9uZW9mX3VpbnQz",
- "Ml9leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5z",
- "aW9ucxhvIAEoDTp7Ch5vbmVvZl9uZXN0ZWRfbWVzc2FnZV9leHRlbnNpb24S",
- "JC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhwIAEoCzIt",
- "LnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RBbGxUeXBlcy5OZXN0ZWRNZXNzYWdl",
- "OkQKFm9uZW9mX3N0cmluZ19leHRlbnNpb24SJC5wcm90b2J1Zl91bml0dGVz",
- "dC5UZXN0QWxsRXh0ZW5zaW9ucxhxIAEoCTpDChVvbmVvZl9ieXRlc19leHRl",
- "bnNpb24SJC5wcm90b2J1Zl91bml0dGVzdC5UZXN0QWxsRXh0ZW5zaW9ucxhy",
- "IAEoDDpCChNteV9leHRlbnNpb25fc3RyaW5nEiUucHJvdG9idWZfdW5pdHRl",
- "c3QuVGVzdEZpZWxkT3JkZXJpbmdzGDIgASgJOj8KEG15X2V4dGVuc2lvbl9p",
- "bnQSJS5wcm90b2J1Zl91bml0dGVzdC5UZXN0RmllbGRPcmRlcmluZ3MYBSAB",
- "KAU6SwoWcGFja2VkX2ludDMyX2V4dGVuc2lvbhInLnByb3RvYnVmX3VuaXR0",
- "ZXN0LlRlc3RQYWNrZWRFeHRlbnNpb25zGFogAygFQgIQATpLChZwYWNrZWRf",
- "aW50NjRfZXh0ZW5zaW9uEicucHJvdG9idWZfdW5pdHRlc3QuVGVzdFBhY2tl",
- "ZEV4dGVuc2lvbnMYWyADKANCAhABOkwKF3BhY2tlZF91aW50MzJfZXh0ZW5z",
- "aW9uEicucHJvdG9idWZfdW5pdHRlc3QuVGVzdFBhY2tlZEV4dGVuc2lvbnMY",
- "XCADKA1CAhABOkwKF3BhY2tlZF91aW50NjRfZXh0ZW5zaW9uEicucHJvdG9i",
- "dWZfdW5pdHRlc3QuVGVzdFBhY2tlZEV4dGVuc2lvbnMYXSADKARCAhABOkwK",
- "F3BhY2tlZF9zaW50MzJfZXh0ZW5zaW9uEicucHJvdG9idWZfdW5pdHRlc3Qu",
- "VGVzdFBhY2tlZEV4dGVuc2lvbnMYXiADKBFCAhABOkwKF3BhY2tlZF9zaW50",
- "NjRfZXh0ZW5zaW9uEicucHJvdG9idWZfdW5pdHRlc3QuVGVzdFBhY2tlZEV4",
- "dGVuc2lvbnMYXyADKBJCAhABOk0KGHBhY2tlZF9maXhlZDMyX2V4dGVuc2lv",
- "bhInLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RQYWNrZWRFeHRlbnNpb25zGGAg",
- "AygHQgIQATpNChhwYWNrZWRfZml4ZWQ2NF9leHRlbnNpb24SJy5wcm90b2J1",
- "Zl91bml0dGVzdC5UZXN0UGFja2VkRXh0ZW5zaW9ucxhhIAMoBkICEAE6TgoZ",
- "cGFja2VkX3NmaXhlZDMyX2V4dGVuc2lvbhInLnByb3RvYnVmX3VuaXR0ZXN0",
- "LlRlc3RQYWNrZWRFeHRlbnNpb25zGGIgAygPQgIQATpOChlwYWNrZWRfc2Zp",
- "eGVkNjRfZXh0ZW5zaW9uEicucHJvdG9idWZfdW5pdHRlc3QuVGVzdFBhY2tl",
- "ZEV4dGVuc2lvbnMYYyADKBBCAhABOksKFnBhY2tlZF9mbG9hdF9leHRlbnNp",
- "b24SJy5wcm90b2J1Zl91bml0dGVzdC5UZXN0UGFja2VkRXh0ZW5zaW9ucxhk",
- "IAMoAkICEAE6TAoXcGFja2VkX2RvdWJsZV9leHRlbnNpb24SJy5wcm90b2J1",
- "Zl91bml0dGVzdC5UZXN0UGFja2VkRXh0ZW5zaW9ucxhlIAMoAUICEAE6SgoV",
- "cGFja2VkX2Jvb2xfZXh0ZW5zaW9uEicucHJvdG9idWZfdW5pdHRlc3QuVGVz",
- "dFBhY2tlZEV4dGVuc2lvbnMYZiADKAhCAhABOmoKFXBhY2tlZF9lbnVtX2V4",
- "dGVuc2lvbhInLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RQYWNrZWRFeHRlbnNp",
- "b25zGGcgAygOMh4ucHJvdG9idWZfdW5pdHRlc3QuRm9yZWlnbkVudW1CAhAB",
- "Ok8KGHVucGFja2VkX2ludDMyX2V4dGVuc2lvbhIpLnByb3RvYnVmX3VuaXR0",
- "ZXN0LlRlc3RVbnBhY2tlZEV4dGVuc2lvbnMYWiADKAVCAhAAOk8KGHVucGFj",
- "a2VkX2ludDY0X2V4dGVuc2lvbhIpLnByb3RvYnVmX3VuaXR0ZXN0LlRlc3RV",
- "bnBhY2tlZEV4dGVuc2lvbnMYWyADKANCAhAAOlAKGXVucGFja2VkX3VpbnQz",
- "Ml9leHRlbnNpb24SKS5wcm90b2J1Zl91bml0dGVzdC5UZXN0VW5wYWNrZWRF",
- "eHRlbnNpb25zGFwgAygNQgIQADpQChl1bnBhY2tlZF91aW50NjRfZXh0ZW5z",
- "aW9uEikucHJvdG9idWZfdW5pdHRlc3QuVGVzdFVucGFja2VkRXh0ZW5zaW9u",
- "cxhdIAMoBEICEAA6UAoZdW5wYWNrZWRfc2ludDMyX2V4dGVuc2lvbhIpLnBy",
- "b3RvYnVmX3VuaXR0ZXN0LlRlc3RVbnBhY2tlZEV4dGVuc2lvbnMYXiADKBFC",
- "AhAAOlAKGXVucGFja2VkX3NpbnQ2NF9leHRlbnNpb24SKS5wcm90b2J1Zl91",
- "bml0dGVzdC5UZXN0VW5wYWNrZWRFeHRlbnNpb25zGF8gAygSQgIQADpRChp1",
- "bnBhY2tlZF9maXhlZDMyX2V4dGVuc2lvbhIpLnByb3RvYnVmX3VuaXR0ZXN0",
- "LlRlc3RVbnBhY2tlZEV4dGVuc2lvbnMYYCADKAdCAhAAOlEKGnVucGFja2Vk",
- "X2ZpeGVkNjRfZXh0ZW5zaW9uEikucHJvdG9idWZfdW5pdHRlc3QuVGVzdFVu",
- "cGFja2VkRXh0ZW5zaW9ucxhhIAMoBkICEAA6UgobdW5wYWNrZWRfc2ZpeGVk",
- "MzJfZXh0ZW5zaW9uEikucHJvdG9idWZfdW5pdHRlc3QuVGVzdFVucGFja2Vk",
- "RXh0ZW5zaW9ucxhiIAMoD0ICEAA6UgobdW5wYWNrZWRfc2ZpeGVkNjRfZXh0",
- "ZW5zaW9uEikucHJvdG9idWZfdW5pdHRlc3QuVGVzdFVucGFja2VkRXh0ZW5z",
- "aW9ucxhjIAMoEEICEAA6TwoYdW5wYWNrZWRfZmxvYXRfZXh0ZW5zaW9uEiku",
- "cHJvdG9idWZfdW5pdHRlc3QuVGVzdFVucGFja2VkRXh0ZW5zaW9ucxhkIAMo",
- "AkICEAA6UAoZdW5wYWNrZWRfZG91YmxlX2V4dGVuc2lvbhIpLnByb3RvYnVm",
- "X3VuaXR0ZXN0LlRlc3RVbnBhY2tlZEV4dGVuc2lvbnMYZSADKAFCAhAAOk4K",
- "F3VucGFja2VkX2Jvb2xfZXh0ZW5zaW9uEikucHJvdG9idWZfdW5pdHRlc3Qu",
- "VGVzdFVucGFja2VkRXh0ZW5zaW9ucxhmIAMoCEICEAA6bgoXdW5wYWNrZWRf",
- "ZW51bV9leHRlbnNpb24SKS5wcm90b2J1Zl91bml0dGVzdC5UZXN0VW5wYWNr",
- "ZWRFeHRlbnNpb25zGGcgAygOMh4ucHJvdG9idWZfdW5pdHRlc3QuRm9yZWln",
- "bkVudW1CAhAAQkFCDVVuaXR0ZXN0UHJvdG9IAYABAYgBAZABAfgBAaoCIUdv",
- "b2dsZS5Qcm90b2NvbEJ1ZmZlcnMuVGVzdFByb3Rvcw=="));
- pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
- descriptor = root;
- internal__static_protobuf_unittest_TestAllTypes__Descriptor = Descriptor.MessageTypes[0];
- internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder>(internal__static_protobuf_unittest_TestAllTypes__Descriptor,
- new string[] { "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalGroup", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalImportMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalImportEnum", "OptionalStringPiece", "OptionalCord", "OptionalPublicImportMessage", "OptionalLazyMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedGroup", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedStringPiece", "RepeatedCord", "RepeatedLazyMessage", "DefaultInt32", "DefaultInt64", "DefaultUint32", "DefaultUint64", "DefaultSint32", "DefaultSint64", "DefaultFixed32", "DefaultFixed64", "DefaultSfixed32", "DefaultSfixed64", "DefaultFloat", "DefaultDouble", "DefaultBool", "DefaultString", "DefaultBytes", "DefaultNestedEnum", "DefaultForeignEnum", "DefaultImportEnum", "DefaultStringPiece", "DefaultCord", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", });
- internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[0];
- internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor,
- new string[] { "Bb", });
- internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[1];
- internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder>(internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor,
- new string[] { "A", });
- internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[2];
- internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder>(internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor,
- new string[] { "A", });
- internal__static_protobuf_unittest_NestedTestAllTypes__Descriptor = Descriptor.MessageTypes[1];
- internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes, global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.Builder>(internal__static_protobuf_unittest_NestedTestAllTypes__Descriptor,
- new string[] { "Child", "Payload", });
- internal__static_protobuf_unittest_TestDeprecatedFields__Descriptor = Descriptor.MessageTypes[2];
- internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields, global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.Builder>(internal__static_protobuf_unittest_TestDeprecatedFields__Descriptor,
- new string[] { "DeprecatedInt32", });
- internal__static_protobuf_unittest_ForeignMessage__Descriptor = Descriptor.MessageTypes[3];
- internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder>(internal__static_protobuf_unittest_ForeignMessage__Descriptor,
- new string[] { "C", });
- internal__static_protobuf_unittest_TestAllExtensions__Descriptor = Descriptor.MessageTypes[4];
- internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder>(internal__static_protobuf_unittest_TestAllExtensions__Descriptor,
- new string[] { });
- internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor = Descriptor.MessageTypes[5];
- internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Builder>(internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor,
- new string[] { "A", });
- internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor = Descriptor.MessageTypes[6];
- internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Builder>(internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor,
- new string[] { "A", });
- internal__static_protobuf_unittest_TestNestedExtension__Descriptor = Descriptor.MessageTypes[7];
- internal__static_protobuf_unittest_TestNestedExtension__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedExtension, global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Builder>(internal__static_protobuf_unittest_TestNestedExtension__Descriptor,
- new string[] { });
- global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Test = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Descriptor.Extensions[0]);
- global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.NestedStringExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Descriptor.Extensions[1]);
- internal__static_protobuf_unittest_TestRequired__Descriptor = Descriptor.MessageTypes[8];
- internal__static_protobuf_unittest_TestRequired__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequired, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder>(internal__static_protobuf_unittest_TestRequired__Descriptor,
- new string[] { "A", "Dummy2", "B", "Dummy4", "Dummy5", "Dummy6", "Dummy7", "Dummy8", "Dummy9", "Dummy10", "Dummy11", "Dummy12", "Dummy13", "Dummy14", "Dummy15", "Dummy16", "Dummy17", "Dummy18", "Dummy19", "Dummy20", "Dummy21", "Dummy22", "Dummy23", "Dummy24", "Dummy25", "Dummy26", "Dummy27", "Dummy28", "Dummy29", "Dummy30", "Dummy31", "Dummy32", "C", });
- global::Google.ProtocolBuffers.TestProtos.TestRequired.Single = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.TestRequired.Descriptor.Extensions[0]);
- global::Google.ProtocolBuffers.TestProtos.TestRequired.Multi = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.TestRequired.Descriptor.Extensions[1]);
- internal__static_protobuf_unittest_TestRequiredForeign__Descriptor = Descriptor.MessageTypes[9];
- internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder>(internal__static_protobuf_unittest_TestRequiredForeign__Descriptor,
- new string[] { "OptionalMessage", "RepeatedMessage", "Dummy", });
- internal__static_protobuf_unittest_TestForeignNested__Descriptor = Descriptor.MessageTypes[10];
- internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder>(internal__static_protobuf_unittest_TestForeignNested__Descriptor,
- new string[] { "ForeignNested", });
- internal__static_protobuf_unittest_TestEmptyMessage__Descriptor = Descriptor.MessageTypes[11];
- internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder>(internal__static_protobuf_unittest_TestEmptyMessage__Descriptor,
- new string[] { });
- internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor = Descriptor.MessageTypes[12];
- internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder>(internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor,
- new string[] { });
- internal__static_protobuf_unittest_TestMultipleExtensionRanges__Descriptor = Descriptor.MessageTypes[13];
- internal__static_protobuf_unittest_TestMultipleExtensionRanges__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges, global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.Builder>(internal__static_protobuf_unittest_TestMultipleExtensionRanges__Descriptor,
- new string[] { });
- internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor = Descriptor.MessageTypes[14];
- internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder>(internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor,
- new string[] { "A", "Bb", });
- internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor = Descriptor.MessageTypes[15];
- internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder>(internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor,
- new string[] { "A", "I", });
- internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor = Descriptor.MessageTypes[16];
- internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder>(internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor,
- new string[] { "Bb", });
- internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor = Descriptor.MessageTypes[17];
- internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder>(internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor,
- new string[] { "A", "OptionalInt32", });
- internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor = Descriptor.MessageTypes[18];
- internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor,
- new string[] { "A", "Foo", "Bar", });
- internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[0];
- internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor,
- new string[] { "A", });
- internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[1];
- internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor,
- new string[] { "A", });
- internal__static_protobuf_unittest_TestEagerMessage__Descriptor = Descriptor.MessageTypes[19];
- internal__static_protobuf_unittest_TestEagerMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEagerMessage, global::Google.ProtocolBuffers.TestProtos.TestEagerMessage.Builder>(internal__static_protobuf_unittest_TestEagerMessage__Descriptor,
- new string[] { "SubMessage", });
- internal__static_protobuf_unittest_TestLazyMessage__Descriptor = Descriptor.MessageTypes[20];
- internal__static_protobuf_unittest_TestLazyMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestLazyMessage, global::Google.ProtocolBuffers.TestProtos.TestLazyMessage.Builder>(internal__static_protobuf_unittest_TestLazyMessage__Descriptor,
- new string[] { "SubMessage", });
- internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor = Descriptor.MessageTypes[21];
- internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder>(internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor,
- new string[] { "OptionalNestedMessage", });
- internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor = internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor.NestedTypes[0];
- internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor,
- new string[] { "NestedmessageRepeatedInt32", "NestedmessageRepeatedForeignmessage", });
- internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor = Descriptor.MessageTypes[22];
- internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder>(internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor,
- new string[] { "PrimitiveField", "StringField", "EnumField", "MessageField", "StringPieceField", "CordField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedStringPieceField", "RepeatedCordField", });
- internal__static_protobuf_unittest_TestFieldOrderings__Descriptor = Descriptor.MessageTypes[23];
- internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder>(internal__static_protobuf_unittest_TestFieldOrderings__Descriptor,
- new string[] { "MyString", "MyInt", "MyFloat", "OptionalNestedMessage", });
- internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__Descriptor = internal__static_protobuf_unittest_TestFieldOrderings__Descriptor.NestedTypes[0];
- internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__Descriptor,
- new string[] { "Oo", "Bb", });
- internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor = Descriptor.MessageTypes[24];
- internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder>(internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor,
- new string[] { "EscapedBytes", "LargeUint32", "LargeUint64", "SmallInt32", "SmallInt64", "ReallySmallInt32", "ReallySmallInt64", "Utf8String", "ZeroFloat", "OneFloat", "SmallFloat", "NegativeOneFloat", "NegativeFloat", "LargeFloat", "SmallNegativeFloat", "InfDouble", "NegInfDouble", "NanDouble", "InfFloat", "NegInfFloat", "NanFloat", "CppTrigraph", "StringWithZero", "BytesWithZero", "StringPieceWithZero", "CordWithZero", "ReplacementString", });
- internal__static_protobuf_unittest_SparseEnumMessage__Descriptor = Descriptor.MessageTypes[25];
- internal__static_protobuf_unittest_SparseEnumMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.SparseEnumMessage, global::Google.ProtocolBuffers.TestProtos.SparseEnumMessage.Builder>(internal__static_protobuf_unittest_SparseEnumMessage__Descriptor,
- new string[] { "SparseEnum", });
- internal__static_protobuf_unittest_OneString__Descriptor = Descriptor.MessageTypes[26];
- internal__static_protobuf_unittest_OneString__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OneString, global::Google.ProtocolBuffers.TestProtos.OneString.Builder>(internal__static_protobuf_unittest_OneString__Descriptor,
- new string[] { "Data", });
- internal__static_protobuf_unittest_MoreString__Descriptor = Descriptor.MessageTypes[27];
- internal__static_protobuf_unittest_MoreString__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.MoreString, global::Google.ProtocolBuffers.TestProtos.MoreString.Builder>(internal__static_protobuf_unittest_MoreString__Descriptor,
- new string[] { "Data", });
- internal__static_protobuf_unittest_OneBytes__Descriptor = Descriptor.MessageTypes[28];
- internal__static_protobuf_unittest_OneBytes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OneBytes, global::Google.ProtocolBuffers.TestProtos.OneBytes.Builder>(internal__static_protobuf_unittest_OneBytes__Descriptor,
- new string[] { "Data", });
- internal__static_protobuf_unittest_MoreBytes__Descriptor = Descriptor.MessageTypes[29];
- internal__static_protobuf_unittest_MoreBytes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.MoreBytes, global::Google.ProtocolBuffers.TestProtos.MoreBytes.Builder>(internal__static_protobuf_unittest_MoreBytes__Descriptor,
- new string[] { "Data", });
- internal__static_protobuf_unittest_Int32Message__Descriptor = Descriptor.MessageTypes[30];
- internal__static_protobuf_unittest_Int32Message__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.Int32Message, global::Google.ProtocolBuffers.TestProtos.Int32Message.Builder>(internal__static_protobuf_unittest_Int32Message__Descriptor,
- new string[] { "Data", });
- internal__static_protobuf_unittest_Uint32Message__Descriptor = Descriptor.MessageTypes[31];
- internal__static_protobuf_unittest_Uint32Message__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.Uint32Message, global::Google.ProtocolBuffers.TestProtos.Uint32Message.Builder>(internal__static_protobuf_unittest_Uint32Message__Descriptor,
- new string[] { "Data", });
- internal__static_protobuf_unittest_Int64Message__Descriptor = Descriptor.MessageTypes[32];
- internal__static_protobuf_unittest_Int64Message__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.Int64Message, global::Google.ProtocolBuffers.TestProtos.Int64Message.Builder>(internal__static_protobuf_unittest_Int64Message__Descriptor,
- new string[] { "Data", });
- internal__static_protobuf_unittest_Uint64Message__Descriptor = Descriptor.MessageTypes[33];
- internal__static_protobuf_unittest_Uint64Message__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.Uint64Message, global::Google.ProtocolBuffers.TestProtos.Uint64Message.Builder>(internal__static_protobuf_unittest_Uint64Message__Descriptor,
- new string[] { "Data", });
- internal__static_protobuf_unittest_BoolMessage__Descriptor = Descriptor.MessageTypes[34];
- internal__static_protobuf_unittest_BoolMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BoolMessage, global::Google.ProtocolBuffers.TestProtos.BoolMessage.Builder>(internal__static_protobuf_unittest_BoolMessage__Descriptor,
- new string[] { "Data", });
- internal__static_protobuf_unittest_TestOneof__Descriptor = Descriptor.MessageTypes[35];
- internal__static_protobuf_unittest_TestOneof__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof, global::Google.ProtocolBuffers.TestProtos.TestOneof.Builder>(internal__static_protobuf_unittest_TestOneof__Descriptor,
- new string[] { "FooInt", "FooString", "FooMessage", "FooGroup", });
- internal__static_protobuf_unittest_TestOneof_FooGroup__Descriptor = internal__static_protobuf_unittest_TestOneof__Descriptor.NestedTypes[0];
- internal__static_protobuf_unittest_TestOneof_FooGroup__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup, global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.Builder>(internal__static_protobuf_unittest_TestOneof_FooGroup__Descriptor,
- new string[] { "A", "B", });
- internal__static_protobuf_unittest_TestOneofBackwardsCompatible__Descriptor = Descriptor.MessageTypes[36];
- internal__static_protobuf_unittest_TestOneofBackwardsCompatible__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible, global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Builder>(internal__static_protobuf_unittest_TestOneofBackwardsCompatible__Descriptor,
- new string[] { "FooInt", "FooString", "FooMessage", "FooGroup", });
- internal__static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup__Descriptor = internal__static_protobuf_unittest_TestOneofBackwardsCompatible__Descriptor.NestedTypes[0];
- internal__static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup, global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.Builder>(internal__static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup__Descriptor,
- new string[] { "A", "B", });
- internal__static_protobuf_unittest_TestOneof2__Descriptor = Descriptor.MessageTypes[37];
- internal__static_protobuf_unittest_TestOneof2__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof2, global::Google.ProtocolBuffers.TestProtos.TestOneof2.Builder>(internal__static_protobuf_unittest_TestOneof2__Descriptor,
- new string[] { "FooInt", "FooString", "FooCord", "FooStringPiece", "FooBytes", "FooEnum", "FooMessage", "FooGroup", "FooLazyMessage", "BarInt", "BarString", "BarCord", "BarStringPiece", "BarBytes", "BarEnum", "BazInt", "BazString", });
- internal__static_protobuf_unittest_TestOneof2_FooGroup__Descriptor = internal__static_protobuf_unittest_TestOneof2__Descriptor.NestedTypes[0];
- internal__static_protobuf_unittest_TestOneof2_FooGroup__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup, global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.Builder>(internal__static_protobuf_unittest_TestOneof2_FooGroup__Descriptor,
- new string[] { "A", "B", });
- internal__static_protobuf_unittest_TestOneof2_NestedMessage__Descriptor = internal__static_protobuf_unittest_TestOneof2__Descriptor.NestedTypes[1];
- internal__static_protobuf_unittest_TestOneof2_NestedMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestOneof2_NestedMessage__Descriptor,
- new string[] { "QuxInt", "CorgeInt", });
- internal__static_protobuf_unittest_TestRequiredOneof__Descriptor = Descriptor.MessageTypes[38];
- internal__static_protobuf_unittest_TestRequiredOneof__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof, global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Builder>(internal__static_protobuf_unittest_TestRequiredOneof__Descriptor,
- new string[] { "FooInt", "FooString", "FooMessage", });
- internal__static_protobuf_unittest_TestRequiredOneof_NestedMessage__Descriptor = internal__static_protobuf_unittest_TestRequiredOneof__Descriptor.NestedTypes[0];
- internal__static_protobuf_unittest_TestRequiredOneof_NestedMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestRequiredOneof_NestedMessage__Descriptor,
- new string[] { "RequiredDouble", });
- internal__static_protobuf_unittest_TestPackedTypes__Descriptor = Descriptor.MessageTypes[39];
- internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestPackedTypes, global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.Builder>(internal__static_protobuf_unittest_TestPackedTypes__Descriptor,
- new string[] { "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum", });
- internal__static_protobuf_unittest_TestUnpackedTypes__Descriptor = Descriptor.MessageTypes[40];
- internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes, global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.Builder>(internal__static_protobuf_unittest_TestUnpackedTypes__Descriptor,
- new string[] { "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedEnum", });
- internal__static_protobuf_unittest_TestPackedExtensions__Descriptor = Descriptor.MessageTypes[41];
- internal__static_protobuf_unittest_TestPackedExtensions__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.Builder>(internal__static_protobuf_unittest_TestPackedExtensions__Descriptor,
- new string[] { });
- internal__static_protobuf_unittest_TestUnpackedExtensions__Descriptor = Descriptor.MessageTypes[42];
- internal__static_protobuf_unittest_TestUnpackedExtensions__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions, global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.Builder>(internal__static_protobuf_unittest_TestUnpackedExtensions__Descriptor,
- new string[] { });
- internal__static_protobuf_unittest_TestDynamicExtensions__Descriptor = Descriptor.MessageTypes[43];
- internal__static_protobuf_unittest_TestDynamicExtensions__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions, global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Builder>(internal__static_protobuf_unittest_TestDynamicExtensions__Descriptor,
- new string[] { "ScalarExtension", "EnumExtension", "DynamicEnumExtension", "MessageExtension", "DynamicMessageExtension", "RepeatedExtension", "PackedExtension", });
- internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__Descriptor = internal__static_protobuf_unittest_TestDynamicExtensions__Descriptor.NestedTypes[0];
- internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType, global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Builder>(internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__Descriptor,
- new string[] { "DynamicField", });
- internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__Descriptor = Descriptor.MessageTypes[44];
- internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes, global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.Builder>(internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__Descriptor,
- new string[] { "RepeatedFixed32", "RepeatedInt32", "RepeatedFixed64", "RepeatedInt64", "RepeatedFloat", "RepeatedUint64", });
- internal__static_protobuf_unittest_TestParsingMerge__Descriptor = Descriptor.MessageTypes[45];
- internal__static_protobuf_unittest_TestParsingMerge__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Builder>(internal__static_protobuf_unittest_TestParsingMerge__Descriptor,
- new string[] { "RequiredAllTypes", "OptionalAllTypes", "RepeatedAllTypes", "OptionalGroup", "RepeatedGroup", });
- internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__Descriptor = internal__static_protobuf_unittest_TestParsingMerge__Descriptor.NestedTypes[0];
- internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Builder>(internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__Descriptor,
- new string[] { "Field1", "Field2", "Field3", "Group1", "Group2", "Ext1", "Ext2", });
- internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1__Descriptor = internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__Descriptor.NestedTypes[0];
- internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Builder>(internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1__Descriptor,
- new string[] { "Field1", });
- internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2__Descriptor = internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__Descriptor.NestedTypes[1];
- internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Builder>(internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2__Descriptor,
- new string[] { "Field1", });
- internal__static_protobuf_unittest_TestParsingMerge_OptionalGroup__Descriptor = internal__static_protobuf_unittest_TestParsingMerge__Descriptor.NestedTypes[1];
- internal__static_protobuf_unittest_TestParsingMerge_OptionalGroup__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.Builder>(internal__static_protobuf_unittest_TestParsingMerge_OptionalGroup__Descriptor,
- new string[] { "OptionalGroupAllTypes", });
- internal__static_protobuf_unittest_TestParsingMerge_RepeatedGroup__Descriptor = internal__static_protobuf_unittest_TestParsingMerge__Descriptor.NestedTypes[2];
- internal__static_protobuf_unittest_TestParsingMerge_RepeatedGroup__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup.Builder>(internal__static_protobuf_unittest_TestParsingMerge_RepeatedGroup__Descriptor,
- new string[] { "RepeatedGroupAllTypes", });
- global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.OptionalExt = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Descriptor.Extensions[0]);
- global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.RepeatedExt = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Descriptor.Extensions[1]);
- internal__static_protobuf_unittest_TestCommentInjectionMessage__Descriptor = Descriptor.MessageTypes[46];
- internal__static_protobuf_unittest_TestCommentInjectionMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCommentInjectionMessage, global::Google.ProtocolBuffers.TestProtos.TestCommentInjectionMessage.Builder>(internal__static_protobuf_unittest_TestCommentInjectionMessage__Descriptor,
- new string[] { "A", });
- internal__static_protobuf_unittest_FooRequest__Descriptor = Descriptor.MessageTypes[47];
- internal__static_protobuf_unittest_FooRequest__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooRequest, global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder>(internal__static_protobuf_unittest_FooRequest__Descriptor,
- new string[] { });
- internal__static_protobuf_unittest_FooResponse__Descriptor = Descriptor.MessageTypes[48];
- internal__static_protobuf_unittest_FooResponse__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder>(internal__static_protobuf_unittest_FooResponse__Descriptor,
- new string[] { });
- internal__static_protobuf_unittest_FooClientMessage__Descriptor = Descriptor.MessageTypes[49];
- internal__static_protobuf_unittest_FooClientMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooClientMessage, global::Google.ProtocolBuffers.TestProtos.FooClientMessage.Builder>(internal__static_protobuf_unittest_FooClientMessage__Descriptor,
- new string[] { });
- internal__static_protobuf_unittest_FooServerMessage__Descriptor = Descriptor.MessageTypes[50];
- internal__static_protobuf_unittest_FooServerMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooServerMessage, global::Google.ProtocolBuffers.TestProtos.FooServerMessage.Builder>(internal__static_protobuf_unittest_FooServerMessage__Descriptor,
- new string[] { });
- internal__static_protobuf_unittest_BarRequest__Descriptor = Descriptor.MessageTypes[51];
- internal__static_protobuf_unittest_BarRequest__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarRequest, global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder>(internal__static_protobuf_unittest_BarRequest__Descriptor,
- new string[] { });
- internal__static_protobuf_unittest_BarResponse__Descriptor = Descriptor.MessageTypes[52];
- internal__static_protobuf_unittest_BarResponse__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder>(internal__static_protobuf_unittest_BarResponse__Descriptor,
- new string[] { });
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalInt32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[0]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalInt64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[1]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalUint32Extension = pb::GeneratedSingleExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[2]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalUint64Extension = pb::GeneratedSingleExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[3]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalSint32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[4]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalSint64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[5]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalFixed32Extension = pb::GeneratedSingleExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[6]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalFixed64Extension = pb::GeneratedSingleExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[7]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalSfixed32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[8]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalSfixed64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[9]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalFloatExtension = pb::GeneratedSingleExtension<float>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[10]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalDoubleExtension = pb::GeneratedSingleExtension<double>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[11]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalBoolExtension = pb::GeneratedSingleExtension<bool>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[12]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalStringExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[13]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalBytesExtension = pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[14]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalGroupExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[15]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalNestedMessageExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[16]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalForeignMessageExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[17]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalImportMessageExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[18]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalNestedEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[19]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalForeignEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[20]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalImportEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[21]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalStringPieceExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[22]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalCordExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[23]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalPublicImportMessageExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.PublicImportMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[24]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OptionalLazyMessageExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[25]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedInt32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[26]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedInt64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[27]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedUint32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[28]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedUint64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[29]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedSint32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[30]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedSint64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[31]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedFixed32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[32]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedFixed64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[33]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedSfixed32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[34]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedSfixed64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[35]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedFloatExtension = pb::GeneratedRepeatExtension<float>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[36]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedDoubleExtension = pb::GeneratedRepeatExtension<double>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[37]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedBoolExtension = pb::GeneratedRepeatExtension<bool>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[38]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedStringExtension = pb::GeneratedRepeatExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[39]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedBytesExtension = pb::GeneratedRepeatExtension<pb::ByteString>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[40]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedGroupExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[41]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedNestedMessageExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[42]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedForeignMessageExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[43]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedImportMessageExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[44]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedNestedEnumExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[45]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedForeignEnumExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[46]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedImportEnumExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[47]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedStringPieceExtension = pb::GeneratedRepeatExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[48]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedCordExtension = pb::GeneratedRepeatExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[49]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.RepeatedLazyMessageExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[50]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultInt32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[51]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultInt64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[52]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultUint32Extension = pb::GeneratedSingleExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[53]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultUint64Extension = pb::GeneratedSingleExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[54]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultSint32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[55]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultSint64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[56]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultFixed32Extension = pb::GeneratedSingleExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[57]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultFixed64Extension = pb::GeneratedSingleExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[58]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultSfixed32Extension = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[59]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultSfixed64Extension = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[60]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultFloatExtension = pb::GeneratedSingleExtension<float>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[61]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultDoubleExtension = pb::GeneratedSingleExtension<double>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[62]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultBoolExtension = pb::GeneratedSingleExtension<bool>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[63]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultStringExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[64]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultBytesExtension = pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[65]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultNestedEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[66]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultForeignEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[67]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultImportEnumExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[68]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultStringPieceExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[69]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.DefaultCordExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[70]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OneofUint32Extension = pb::GeneratedSingleExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[71]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OneofNestedMessageExtension = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[72]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OneofStringExtension = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[73]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.OneofBytesExtension = pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[74]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.MyExtensionString = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[75]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.MyExtensionInt = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[76]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.PackedInt32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[77]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.PackedInt64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[78]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.PackedUint32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[79]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.PackedUint64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[80]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.PackedSint32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[81]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.PackedSint64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[82]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.PackedFixed32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[83]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.PackedFixed64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[84]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.PackedSfixed32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[85]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.PackedSfixed64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[86]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.PackedFloatExtension = pb::GeneratedRepeatExtension<float>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[87]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.PackedDoubleExtension = pb::GeneratedRepeatExtension<double>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[88]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.PackedBoolExtension = pb::GeneratedRepeatExtension<bool>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[89]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.PackedEnumExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[90]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedInt32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[91]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedInt64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[92]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedUint32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[93]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedUint64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[94]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedSint32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[95]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedSint64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[96]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedFixed32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[97]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedFixed64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[98]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedSfixed32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[99]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedSfixed64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[100]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedFloatExtension = pb::GeneratedRepeatExtension<float>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[101]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedDoubleExtension = pb::GeneratedRepeatExtension<double>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[102]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedBoolExtension = pb::GeneratedRepeatExtension<bool>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[103]);
- global::Google.ProtocolBuffers.TestProtos.Unittest.UnpackedEnumExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor.Extensions[104]);
- pb::ExtensionRegistry registry = pb::ExtensionRegistry.CreateInstance();
- RegisterAllExtensions(registry);
- global::Google.ProtocolBuffers.TestProtos.UnittestImport.RegisterAllExtensions(registry);
- return registry;
- };
- pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
- new pbd::FileDescriptor[] {
- global::Google.ProtocolBuffers.TestProtos.UnittestImport.Descriptor,
- }, assigner);
- }
- #endregion
- }
- #region Enums
- public enum ForeignEnum {
- FOREIGN_FOO = 4,
- FOREIGN_BAR = 5,
- FOREIGN_BAZ = 6,
- }
- public enum TestEnumWithDupValue {
- FOO1 = 1,
- BAR1 = 2,
- BAZ = 3,
- FOO2 = 1,
- BAR2 = 2,
- }
- public enum TestSparseEnum {
- SPARSE_A = 123,
- SPARSE_B = 62374,
- SPARSE_C = 12589234,
- SPARSE_D = -15,
- SPARSE_E = -53452,
- SPARSE_F = 0,
- SPARSE_G = 2,
- }
- #endregion
- #region Messages
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestAllTypes : pb::GeneratedMessage<TestAllTypes, TestAllTypes.Builder> {
- private TestAllTypes() { }
- private static readonly TestAllTypes defaultInstance = new TestAllTypes().MakeReadOnly();
- private static readonly string[] _testAllTypesFieldNames = new string[] { "default_bool", "default_bytes", "default_cord", "default_double", "default_fixed32", "default_fixed64", "default_float", "default_foreign_enum", "default_import_enum", "default_int32", "default_int64", "default_nested_enum", "default_sfixed32", "default_sfixed64", "default_sint32", "default_sint64", "default_string", "default_string_piece", "default_uint32", "default_uint64", "oneof_bytes", "oneof_nested_message", "oneof_string", "oneof_uint32", "optional_bool", "optional_bytes", "optional_cord", "optional_double", "optional_fixed32", "optional_fixed64", "optional_float", "optional_foreign_enum", "optional_foreign_message", "optional_import_enum", "optional_import_message", "optional_int32", "optional_int64", "optional_lazy_message", "optional_nested_enum", "optional_nested_message", "optional_public_import_message", "optional_sfixed32", "optional_sfixed64", "optional_sint32", "optional_sint64", "optional_string", "optional_string_piece", "optional_uint32", "optional_uint64", "optionalgroup", "repeated_bool", "repeated_bytes", "repeated_cord", "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_lazy_message", "repeated_nested_enum", "repeated_nested_message", "repeated_sfixed32", "repeated_sfixed64", "repeated_sint32", "repeated_sint64", "repeated_string", "repeated_string_piece", "repeated_uint32", "repeated_uint64", "repeatedgroup" };
- private static readonly uint[] _testAllTypesFieldTags = new uint[] { 584, 602, 682, 577, 541, 545, 573, 656, 664, 488, 496, 648, 557, 561, 520, 528, 594, 674, 504, 512, 914, 898, 906, 888, 104, 122, 202, 97, 61, 65, 93, 176, 154, 184, 162, 8, 16, 218, 168, 146, 210, 77, 81, 40, 48, 114, 194, 24, 32, 131, 344, 362, 442, 337, 301, 305, 333, 416, 394, 424, 402, 248, 256, 458, 408, 386, 317, 321, 280, 288, 354, 434, 264, 272, 371 };
- public static TestAllTypes DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestAllTypes DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestAllTypes ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllTypes__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestAllTypes, TestAllTypes.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable; }
- }
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- public enum NestedEnum {
- FOO = 1,
- BAR = 2,
- BAZ = 3,
- NEG = -1,
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
- private NestedMessage() { }
- private static readonly NestedMessage defaultInstance = new NestedMessage().MakeReadOnly();
- private static readonly string[] _nestedMessageFieldNames = new string[] { "bb" };
- private static readonly uint[] _nestedMessageFieldTags = new uint[] { 8 };
- public static NestedMessage DefaultInstance {
- get { return defaultInstance; }
- }
- public override NestedMessage DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override NestedMessage ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable; }
- }
- public const int BbFieldNumber = 1;
- private bool hasBb;
- private int bb_;
- public bool HasBb {
- get { return hasBb; }
- }
- public int Bb {
- get { return bb_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _nestedMessageFieldNames;
- if (hasBb) {
- output.WriteInt32(1, field_names[0], Bb);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasBb) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static NestedMessage ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static NestedMessage ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static NestedMessage ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private NestedMessage MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(NestedMessage prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(NestedMessage cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private NestedMessage result;
- private NestedMessage PrepareBuilder() {
- if (resultIsReadOnly) {
- NestedMessage original = result;
- result = new NestedMessage();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override NestedMessage MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Descriptor; }
- }
- public override NestedMessage DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; }
- }
- public override NestedMessage BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is NestedMessage) {
- return MergeFrom((NestedMessage) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(NestedMessage other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasBb) {
- Bb = other.Bb;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_nestedMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _nestedMessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasBb = input.ReadInt32(ref result.bb_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasBb {
- get { return result.hasBb; }
- }
- public int Bb {
- get { return result.Bb; }
- set { SetBb(value); }
- }
- public Builder SetBb(int value) {
- PrepareBuilder();
- result.hasBb = true;
- result.bb_ = value;
- return this;
- }
- public Builder ClearBb() {
- PrepareBuilder();
- result.hasBb = false;
- result.bb_ = 0;
- return this;
- }
- }
- static NestedMessage() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class OptionalGroup : pb::GeneratedMessage<OptionalGroup, OptionalGroup.Builder> {
- private OptionalGroup() { }
- private static readonly OptionalGroup defaultInstance = new OptionalGroup().MakeReadOnly();
- private static readonly string[] _optionalGroupFieldNames = new string[] { "a" };
- private static readonly uint[] _optionalGroupFieldTags = new uint[] { 136 };
- public static OptionalGroup DefaultInstance {
- get { return defaultInstance; }
- }
- public override OptionalGroup DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override OptionalGroup ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup, OptionalGroup.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable; }
- }
- public const int AFieldNumber = 17;
- private bool hasA;
- private int a_;
- public bool HasA {
- get { return hasA; }
- }
- public int A {
- get { return a_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _optionalGroupFieldNames;
- if (hasA) {
- output.WriteInt32(17, field_names[0], A);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeInt32Size(17, A);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static OptionalGroup ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static OptionalGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static OptionalGroup ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static OptionalGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static OptionalGroup ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static OptionalGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static OptionalGroup ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static OptionalGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private OptionalGroup MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(OptionalGroup prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<OptionalGroup, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(OptionalGroup cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private OptionalGroup result;
- private OptionalGroup PrepareBuilder() {
- if (resultIsReadOnly) {
- OptionalGroup original = result;
- result = new OptionalGroup();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override OptionalGroup MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Descriptor; }
- }
- public override OptionalGroup DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance; }
- }
- public override OptionalGroup BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is OptionalGroup) {
- return MergeFrom((OptionalGroup) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(OptionalGroup other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_optionalGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _optionalGroupFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 136: {
- result.hasA = input.ReadInt32(ref result.a_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasA {
- get { return result.hasA; }
- }
- public int A {
- get { return result.A; }
- set { SetA(value); }
- }
- public Builder SetA(int value) {
- PrepareBuilder();
- result.hasA = true;
- result.a_ = value;
- return this;
- }
- public Builder ClearA() {
- PrepareBuilder();
- result.hasA = false;
- result.a_ = 0;
- return this;
- }
- }
- static OptionalGroup() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class RepeatedGroup : pb::GeneratedMessage<RepeatedGroup, RepeatedGroup.Builder> {
- private RepeatedGroup() { }
- private static readonly RepeatedGroup defaultInstance = new RepeatedGroup().MakeReadOnly();
- private static readonly string[] _repeatedGroupFieldNames = new string[] { "a" };
- private static readonly uint[] _repeatedGroupFieldTags = new uint[] { 376 };
- public static RepeatedGroup DefaultInstance {
- get { return defaultInstance; }
- }
- public override RepeatedGroup DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override RepeatedGroup ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup, RepeatedGroup.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable; }
- }
- public const int AFieldNumber = 47;
- private bool hasA;
- private int a_;
- public bool HasA {
- get { return hasA; }
- }
- public int A {
- get { return a_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _repeatedGroupFieldNames;
- if (hasA) {
- output.WriteInt32(47, field_names[0], A);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeInt32Size(47, A);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static RepeatedGroup ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static RepeatedGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static RepeatedGroup ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static RepeatedGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static RepeatedGroup ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static RepeatedGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static RepeatedGroup ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static RepeatedGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private RepeatedGroup MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(RepeatedGroup prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<RepeatedGroup, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(RepeatedGroup cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private RepeatedGroup result;
- private RepeatedGroup PrepareBuilder() {
- if (resultIsReadOnly) {
- RepeatedGroup original = result;
- result = new RepeatedGroup();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override RepeatedGroup MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Descriptor; }
- }
- public override RepeatedGroup DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance; }
- }
- public override RepeatedGroup BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is RepeatedGroup) {
- return MergeFrom((RepeatedGroup) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(RepeatedGroup other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_repeatedGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _repeatedGroupFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 376: {
- result.hasA = input.ReadInt32(ref result.a_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasA {
- get { return result.hasA; }
- }
- public int A {
- get { return result.A; }
- set { SetA(value); }
- }
- public Builder SetA(int value) {
- PrepareBuilder();
- result.hasA = true;
- result.a_ = value;
- return this;
- }
- public Builder ClearA() {
- PrepareBuilder();
- result.hasA = false;
- result.a_ = 0;
- return this;
- }
- }
- static RepeatedGroup() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- }
- #endregion
- public const int OptionalInt32FieldNumber = 1;
- private bool hasOptionalInt32;
- private int optionalInt32_;
- public bool HasOptionalInt32 {
- get { return hasOptionalInt32; }
- }
- public int OptionalInt32 {
- get { return optionalInt32_; }
- }
- public const int OptionalInt64FieldNumber = 2;
- private bool hasOptionalInt64;
- private long optionalInt64_;
- public bool HasOptionalInt64 {
- get { return hasOptionalInt64; }
- }
- public long OptionalInt64 {
- get { return optionalInt64_; }
- }
- public const int OptionalUint32FieldNumber = 3;
- private bool hasOptionalUint32;
- private uint optionalUint32_;
- public bool HasOptionalUint32 {
- get { return hasOptionalUint32; }
- }
- [global::System.CLSCompliant(false)]
- public uint OptionalUint32 {
- get { return optionalUint32_; }
- }
- public const int OptionalUint64FieldNumber = 4;
- private bool hasOptionalUint64;
- private ulong optionalUint64_;
- public bool HasOptionalUint64 {
- get { return hasOptionalUint64; }
- }
- [global::System.CLSCompliant(false)]
- public ulong OptionalUint64 {
- get { return optionalUint64_; }
- }
- public const int OptionalSint32FieldNumber = 5;
- private bool hasOptionalSint32;
- private int optionalSint32_;
- public bool HasOptionalSint32 {
- get { return hasOptionalSint32; }
- }
- public int OptionalSint32 {
- get { return optionalSint32_; }
- }
- public const int OptionalSint64FieldNumber = 6;
- private bool hasOptionalSint64;
- private long optionalSint64_;
- public bool HasOptionalSint64 {
- get { return hasOptionalSint64; }
- }
- public long OptionalSint64 {
- get { return optionalSint64_; }
- }
- public const int OptionalFixed32FieldNumber = 7;
- private bool hasOptionalFixed32;
- private uint optionalFixed32_;
- public bool HasOptionalFixed32 {
- get { return hasOptionalFixed32; }
- }
- [global::System.CLSCompliant(false)]
- public uint OptionalFixed32 {
- get { return optionalFixed32_; }
- }
- public const int OptionalFixed64FieldNumber = 8;
- private bool hasOptionalFixed64;
- private ulong optionalFixed64_;
- public bool HasOptionalFixed64 {
- get { return hasOptionalFixed64; }
- }
- [global::System.CLSCompliant(false)]
- public ulong OptionalFixed64 {
- get { return optionalFixed64_; }
- }
- public const int OptionalSfixed32FieldNumber = 9;
- private bool hasOptionalSfixed32;
- private int optionalSfixed32_;
- public bool HasOptionalSfixed32 {
- get { return hasOptionalSfixed32; }
- }
- public int OptionalSfixed32 {
- get { return optionalSfixed32_; }
- }
- public const int OptionalSfixed64FieldNumber = 10;
- private bool hasOptionalSfixed64;
- private long optionalSfixed64_;
- public bool HasOptionalSfixed64 {
- get { return hasOptionalSfixed64; }
- }
- public long OptionalSfixed64 {
- get { return optionalSfixed64_; }
- }
- public const int OptionalFloatFieldNumber = 11;
- private bool hasOptionalFloat;
- private float optionalFloat_;
- public bool HasOptionalFloat {
- get { return hasOptionalFloat; }
- }
- public float OptionalFloat {
- get { return optionalFloat_; }
- }
- public const int OptionalDoubleFieldNumber = 12;
- private bool hasOptionalDouble;
- private double optionalDouble_;
- public bool HasOptionalDouble {
- get { return hasOptionalDouble; }
- }
- public double OptionalDouble {
- get { return optionalDouble_; }
- }
- public const int OptionalBoolFieldNumber = 13;
- private bool hasOptionalBool;
- private bool optionalBool_;
- public bool HasOptionalBool {
- get { return hasOptionalBool; }
- }
- public bool OptionalBool {
- get { return optionalBool_; }
- }
- public const int OptionalStringFieldNumber = 14;
- private bool hasOptionalString;
- private string optionalString_ = "";
- public bool HasOptionalString {
- get { return hasOptionalString; }
- }
- public string OptionalString {
- get { return optionalString_; }
- }
- public const int OptionalBytesFieldNumber = 15;
- private bool hasOptionalBytes;
- private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
- public bool HasOptionalBytes {
- get { return hasOptionalBytes; }
- }
- public pb::ByteString OptionalBytes {
- get { return optionalBytes_; }
- }
- public const int OptionalGroupFieldNumber = 16;
- private bool hasOptionalGroup;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup optionalGroup_;
- public bool HasOptionalGroup {
- get { return hasOptionalGroup; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup {
- get { return optionalGroup_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance; }
- }
- public const int OptionalNestedMessageFieldNumber = 18;
- private bool hasOptionalNestedMessage;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage optionalNestedMessage_;
- public bool HasOptionalNestedMessage {
- get { return hasOptionalNestedMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
- get { return optionalNestedMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; }
- }
- public const int OptionalForeignMessageFieldNumber = 19;
- private bool hasOptionalForeignMessage;
- private global::Google.ProtocolBuffers.TestProtos.ForeignMessage optionalForeignMessage_;
- public bool HasOptionalForeignMessage {
- get { return hasOptionalForeignMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage {
- get { return optionalForeignMessage_ ?? global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; }
- }
- public const int OptionalImportMessageFieldNumber = 20;
- private bool hasOptionalImportMessage;
- private global::Google.ProtocolBuffers.TestProtos.ImportMessage optionalImportMessage_;
- public bool HasOptionalImportMessage {
- get { return hasOptionalImportMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage {
- get { return optionalImportMessage_ ?? global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance; }
- }
- public const int OptionalNestedEnumFieldNumber = 21;
- private bool hasOptionalNestedEnum;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO;
- public bool HasOptionalNestedEnum {
- get { return hasOptionalNestedEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
- get { return optionalNestedEnum_; }
- }
- public const int OptionalForeignEnumFieldNumber = 22;
- private bool hasOptionalForeignEnum;
- private global::Google.ProtocolBuffers.TestProtos.ForeignEnum optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
- public bool HasOptionalForeignEnum {
- get { return hasOptionalForeignEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum {
- get { return optionalForeignEnum_; }
- }
- public const int OptionalImportEnumFieldNumber = 23;
- private bool hasOptionalImportEnum;
- private global::Google.ProtocolBuffers.TestProtos.ImportEnum optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO;
- public bool HasOptionalImportEnum {
- get { return hasOptionalImportEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum {
- get { return optionalImportEnum_; }
- }
- public const int OptionalStringPieceFieldNumber = 24;
- private bool hasOptionalStringPiece;
- private string optionalStringPiece_ = "";
- public bool HasOptionalStringPiece {
- get { return hasOptionalStringPiece; }
- }
- public string OptionalStringPiece {
- get { return optionalStringPiece_; }
- }
- public const int OptionalCordFieldNumber = 25;
- private bool hasOptionalCord;
- private string optionalCord_ = "";
- public bool HasOptionalCord {
- get { return hasOptionalCord; }
- }
- public string OptionalCord {
- get { return optionalCord_; }
- }
- public const int OptionalPublicImportMessageFieldNumber = 26;
- private bool hasOptionalPublicImportMessage;
- private global::Google.ProtocolBuffers.TestProtos.PublicImportMessage optionalPublicImportMessage_;
- public bool HasOptionalPublicImportMessage {
- get { return hasOptionalPublicImportMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.PublicImportMessage OptionalPublicImportMessage {
- get { return optionalPublicImportMessage_ ?? global::Google.ProtocolBuffers.TestProtos.PublicImportMessage.DefaultInstance; }
- }
- public const int OptionalLazyMessageFieldNumber = 27;
- private bool hasOptionalLazyMessage;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage optionalLazyMessage_;
- public bool HasOptionalLazyMessage {
- get { return hasOptionalLazyMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalLazyMessage {
- get { return optionalLazyMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; }
- }
- public const int RepeatedInt32FieldNumber = 31;
- private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>();
- public scg::IList<int> RepeatedInt32List {
- get { return pbc::Lists.AsReadOnly(repeatedInt32_); }
- }
- public int RepeatedInt32Count {
- get { return repeatedInt32_.Count; }
- }
- public int GetRepeatedInt32(int index) {
- return repeatedInt32_[index];
- }
- public const int RepeatedInt64FieldNumber = 32;
- private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>();
- public scg::IList<long> RepeatedInt64List {
- get { return pbc::Lists.AsReadOnly(repeatedInt64_); }
- }
- public int RepeatedInt64Count {
- get { return repeatedInt64_.Count; }
- }
- public long GetRepeatedInt64(int index) {
- return repeatedInt64_[index];
- }
- public const int RepeatedUint32FieldNumber = 33;
- private pbc::PopsicleList<uint> repeatedUint32_ = new pbc::PopsicleList<uint>();
- [global::System.CLSCompliant(false)]
- public scg::IList<uint> RepeatedUint32List {
- get { return pbc::Lists.AsReadOnly(repeatedUint32_); }
- }
- public int RepeatedUint32Count {
- get { return repeatedUint32_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetRepeatedUint32(int index) {
- return repeatedUint32_[index];
- }
- public const int RepeatedUint64FieldNumber = 34;
- private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>();
- [global::System.CLSCompliant(false)]
- public scg::IList<ulong> RepeatedUint64List {
- get { return pbc::Lists.AsReadOnly(repeatedUint64_); }
- }
- public int RepeatedUint64Count {
- get { return repeatedUint64_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetRepeatedUint64(int index) {
- return repeatedUint64_[index];
- }
- public const int RepeatedSint32FieldNumber = 35;
- private pbc::PopsicleList<int> repeatedSint32_ = new pbc::PopsicleList<int>();
- public scg::IList<int> RepeatedSint32List {
- get { return pbc::Lists.AsReadOnly(repeatedSint32_); }
- }
- public int RepeatedSint32Count {
- get { return repeatedSint32_.Count; }
- }
- public int GetRepeatedSint32(int index) {
- return repeatedSint32_[index];
- }
- public const int RepeatedSint64FieldNumber = 36;
- private pbc::PopsicleList<long> repeatedSint64_ = new pbc::PopsicleList<long>();
- public scg::IList<long> RepeatedSint64List {
- get { return pbc::Lists.AsReadOnly(repeatedSint64_); }
- }
- public int RepeatedSint64Count {
- get { return repeatedSint64_.Count; }
- }
- public long GetRepeatedSint64(int index) {
- return repeatedSint64_[index];
- }
- public const int RepeatedFixed32FieldNumber = 37;
- private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>();
- [global::System.CLSCompliant(false)]
- public scg::IList<uint> RepeatedFixed32List {
- get { return pbc::Lists.AsReadOnly(repeatedFixed32_); }
- }
- public int RepeatedFixed32Count {
- get { return repeatedFixed32_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetRepeatedFixed32(int index) {
- return repeatedFixed32_[index];
- }
- public const int RepeatedFixed64FieldNumber = 38;
- private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>();
- [global::System.CLSCompliant(false)]
- public scg::IList<ulong> RepeatedFixed64List {
- get { return pbc::Lists.AsReadOnly(repeatedFixed64_); }
- }
- public int RepeatedFixed64Count {
- get { return repeatedFixed64_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetRepeatedFixed64(int index) {
- return repeatedFixed64_[index];
- }
- public const int RepeatedSfixed32FieldNumber = 39;
- private pbc::PopsicleList<int> repeatedSfixed32_ = new pbc::PopsicleList<int>();
- public scg::IList<int> RepeatedSfixed32List {
- get { return pbc::Lists.AsReadOnly(repeatedSfixed32_); }
- }
- public int RepeatedSfixed32Count {
- get { return repeatedSfixed32_.Count; }
- }
- public int GetRepeatedSfixed32(int index) {
- return repeatedSfixed32_[index];
- }
- public const int RepeatedSfixed64FieldNumber = 40;
- private pbc::PopsicleList<long> repeatedSfixed64_ = new pbc::PopsicleList<long>();
- public scg::IList<long> RepeatedSfixed64List {
- get { return pbc::Lists.AsReadOnly(repeatedSfixed64_); }
- }
- public int RepeatedSfixed64Count {
- get { return repeatedSfixed64_.Count; }
- }
- public long GetRepeatedSfixed64(int index) {
- return repeatedSfixed64_[index];
- }
- public const int RepeatedFloatFieldNumber = 41;
- private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>();
- public scg::IList<float> RepeatedFloatList {
- get { return pbc::Lists.AsReadOnly(repeatedFloat_); }
- }
- public int RepeatedFloatCount {
- get { return repeatedFloat_.Count; }
- }
- public float GetRepeatedFloat(int index) {
- return repeatedFloat_[index];
- }
- public const int RepeatedDoubleFieldNumber = 42;
- private pbc::PopsicleList<double> repeatedDouble_ = new pbc::PopsicleList<double>();
- public scg::IList<double> RepeatedDoubleList {
- get { return pbc::Lists.AsReadOnly(repeatedDouble_); }
- }
- public int RepeatedDoubleCount {
- get { return repeatedDouble_.Count; }
- }
- public double GetRepeatedDouble(int index) {
- return repeatedDouble_[index];
- }
- public const int RepeatedBoolFieldNumber = 43;
- private pbc::PopsicleList<bool> repeatedBool_ = new pbc::PopsicleList<bool>();
- public scg::IList<bool> RepeatedBoolList {
- get { return pbc::Lists.AsReadOnly(repeatedBool_); }
- }
- public int RepeatedBoolCount {
- get { return repeatedBool_.Count; }
- }
- public bool GetRepeatedBool(int index) {
- return repeatedBool_[index];
- }
- public const int RepeatedStringFieldNumber = 44;
- private pbc::PopsicleList<string> repeatedString_ = new pbc::PopsicleList<string>();
- public scg::IList<string> RepeatedStringList {
- get { return pbc::Lists.AsReadOnly(repeatedString_); }
- }
- public int RepeatedStringCount {
- get { return repeatedString_.Count; }
- }
- public string GetRepeatedString(int index) {
- return repeatedString_[index];
- }
- public const int RepeatedBytesFieldNumber = 45;
- private pbc::PopsicleList<pb::ByteString> repeatedBytes_ = new pbc::PopsicleList<pb::ByteString>();
- public scg::IList<pb::ByteString> RepeatedBytesList {
- get { return pbc::Lists.AsReadOnly(repeatedBytes_); }
- }
- public int RepeatedBytesCount {
- get { return repeatedBytes_.Count; }
- }
- public pb::ByteString GetRepeatedBytes(int index) {
- return repeatedBytes_[index];
- }
- public const int RepeatedGroupFieldNumber = 46;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
- get { return repeatedGroup_; }
- }
- public int RepeatedGroupCount {
- get { return repeatedGroup_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
- return repeatedGroup_[index];
- }
- public const int RepeatedNestedMessageFieldNumber = 48;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
- get { return repeatedNestedMessage_; }
- }
- public int RepeatedNestedMessageCount {
- get { return repeatedNestedMessage_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
- return repeatedNestedMessage_[index];
- }
- public const int RepeatedForeignMessageFieldNumber = 49;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedForeignMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList {
- get { return repeatedForeignMessage_; }
- }
- public int RepeatedForeignMessageCount {
- get { return repeatedForeignMessage_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) {
- return repeatedForeignMessage_[index];
- }
- public const int RepeatedImportMessageFieldNumber = 50;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> repeatedImportMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList {
- get { return repeatedImportMessage_; }
- }
- public int RepeatedImportMessageCount {
- get { return repeatedImportMessage_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) {
- return repeatedImportMessage_[index];
- }
- public const int RepeatedNestedEnumFieldNumber = 51;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
- get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
- }
- public int RepeatedNestedEnumCount {
- get { return repeatedNestedEnum_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
- return repeatedNestedEnum_[index];
- }
- public const int RepeatedForeignEnumFieldNumber = 52;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedForeignEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList {
- get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
- }
- public int RepeatedForeignEnumCount {
- get { return repeatedForeignEnum_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) {
- return repeatedForeignEnum_[index];
- }
- public const int RepeatedImportEnumFieldNumber = 53;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> repeatedImportEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList {
- get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
- }
- public int RepeatedImportEnumCount {
- get { return repeatedImportEnum_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) {
- return repeatedImportEnum_[index];
- }
- public const int RepeatedStringPieceFieldNumber = 54;
- private pbc::PopsicleList<string> repeatedStringPiece_ = new pbc::PopsicleList<string>();
- public scg::IList<string> RepeatedStringPieceList {
- get { return pbc::Lists.AsReadOnly(repeatedStringPiece_); }
- }
- public int RepeatedStringPieceCount {
- get { return repeatedStringPiece_.Count; }
- }
- public string GetRepeatedStringPiece(int index) {
- return repeatedStringPiece_[index];
- }
- public const int RepeatedCordFieldNumber = 55;
- private pbc::PopsicleList<string> repeatedCord_ = new pbc::PopsicleList<string>();
- public scg::IList<string> RepeatedCordList {
- get { return pbc::Lists.AsReadOnly(repeatedCord_); }
- }
- public int RepeatedCordCount {
- get { return repeatedCord_.Count; }
- }
- public string GetRepeatedCord(int index) {
- return repeatedCord_[index];
- }
- public const int RepeatedLazyMessageFieldNumber = 57;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> repeatedLazyMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedLazyMessageList {
- get { return repeatedLazyMessage_; }
- }
- public int RepeatedLazyMessageCount {
- get { return repeatedLazyMessage_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedLazyMessage(int index) {
- return repeatedLazyMessage_[index];
- }
- public const int DefaultInt32FieldNumber = 61;
- private bool hasDefaultInt32;
- private int defaultInt32_ = 41;
- public bool HasDefaultInt32 {
- get { return hasDefaultInt32; }
- }
- public int DefaultInt32 {
- get { return defaultInt32_; }
- }
- public const int DefaultInt64FieldNumber = 62;
- private bool hasDefaultInt64;
- private long defaultInt64_ = 42L;
- public bool HasDefaultInt64 {
- get { return hasDefaultInt64; }
- }
- public long DefaultInt64 {
- get { return defaultInt64_; }
- }
- public const int DefaultUint32FieldNumber = 63;
- private bool hasDefaultUint32;
- private uint defaultUint32_ = 43;
- public bool HasDefaultUint32 {
- get { return hasDefaultUint32; }
- }
- [global::System.CLSCompliant(false)]
- public uint DefaultUint32 {
- get { return defaultUint32_; }
- }
- public const int DefaultUint64FieldNumber = 64;
- private bool hasDefaultUint64;
- private ulong defaultUint64_ = 44UL;
- public bool HasDefaultUint64 {
- get { return hasDefaultUint64; }
- }
- [global::System.CLSCompliant(false)]
- public ulong DefaultUint64 {
- get { return defaultUint64_; }
- }
- public const int DefaultSint32FieldNumber = 65;
- private bool hasDefaultSint32;
- private int defaultSint32_ = -45;
- public bool HasDefaultSint32 {
- get { return hasDefaultSint32; }
- }
- public int DefaultSint32 {
- get { return defaultSint32_; }
- }
- public const int DefaultSint64FieldNumber = 66;
- private bool hasDefaultSint64;
- private long defaultSint64_ = 46L;
- public bool HasDefaultSint64 {
- get { return hasDefaultSint64; }
- }
- public long DefaultSint64 {
- get { return defaultSint64_; }
- }
- public const int DefaultFixed32FieldNumber = 67;
- private bool hasDefaultFixed32;
- private uint defaultFixed32_ = 47;
- public bool HasDefaultFixed32 {
- get { return hasDefaultFixed32; }
- }
- [global::System.CLSCompliant(false)]
- public uint DefaultFixed32 {
- get { return defaultFixed32_; }
- }
- public const int DefaultFixed64FieldNumber = 68;
- private bool hasDefaultFixed64;
- private ulong defaultFixed64_ = 48UL;
- public bool HasDefaultFixed64 {
- get { return hasDefaultFixed64; }
- }
- [global::System.CLSCompliant(false)]
- public ulong DefaultFixed64 {
- get { return defaultFixed64_; }
- }
- public const int DefaultSfixed32FieldNumber = 69;
- private bool hasDefaultSfixed32;
- private int defaultSfixed32_ = 49;
- public bool HasDefaultSfixed32 {
- get { return hasDefaultSfixed32; }
- }
- public int DefaultSfixed32 {
- get { return defaultSfixed32_; }
- }
- public const int DefaultSfixed64FieldNumber = 70;
- private bool hasDefaultSfixed64;
- private long defaultSfixed64_ = -50L;
- public bool HasDefaultSfixed64 {
- get { return hasDefaultSfixed64; }
- }
- public long DefaultSfixed64 {
- get { return defaultSfixed64_; }
- }
- public const int DefaultFloatFieldNumber = 71;
- private bool hasDefaultFloat;
- private float defaultFloat_ = 51.5F;
- public bool HasDefaultFloat {
- get { return hasDefaultFloat; }
- }
- public float DefaultFloat {
- get { return defaultFloat_; }
- }
- public const int DefaultDoubleFieldNumber = 72;
- private bool hasDefaultDouble;
- private double defaultDouble_ = 52000D;
- public bool HasDefaultDouble {
- get { return hasDefaultDouble; }
- }
- public double DefaultDouble {
- get { return defaultDouble_; }
- }
- public const int DefaultBoolFieldNumber = 73;
- private bool hasDefaultBool;
- private bool defaultBool_ = true;
- public bool HasDefaultBool {
- get { return hasDefaultBool; }
- }
- public bool DefaultBool {
- get { return defaultBool_; }
- }
- public const int DefaultStringFieldNumber = 74;
- private bool hasDefaultString;
- private string defaultString_ = "hello";
- public bool HasDefaultString {
- get { return hasDefaultString; }
- }
- public string DefaultString {
- get { return defaultString_; }
- }
- public const int DefaultBytesFieldNumber = 75;
- private bool hasDefaultBytes;
- private pb::ByteString defaultBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[65].DefaultValue;
- public bool HasDefaultBytes {
- get { return hasDefaultBytes; }
- }
- public pb::ByteString DefaultBytes {
- get { return defaultBytes_; }
- }
- public const int DefaultNestedEnumFieldNumber = 81;
- private bool hasDefaultNestedEnum;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR;
- public bool HasDefaultNestedEnum {
- get { return hasDefaultNestedEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum {
- get { return defaultNestedEnum_; }
- }
- public const int DefaultForeignEnumFieldNumber = 82;
- private bool hasDefaultForeignEnum;
- private global::Google.ProtocolBuffers.TestProtos.ForeignEnum defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR;
- public bool HasDefaultForeignEnum {
- get { return hasDefaultForeignEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum {
- get { return defaultForeignEnum_; }
- }
- public const int DefaultImportEnumFieldNumber = 83;
- private bool hasDefaultImportEnum;
- private global::Google.ProtocolBuffers.TestProtos.ImportEnum defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR;
- public bool HasDefaultImportEnum {
- get { return hasDefaultImportEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum {
- get { return defaultImportEnum_; }
- }
- public const int DefaultStringPieceFieldNumber = 84;
- private bool hasDefaultStringPiece;
- private string defaultStringPiece_ = "abc";
- public bool HasDefaultStringPiece {
- get { return hasDefaultStringPiece; }
- }
- public string DefaultStringPiece {
- get { return defaultStringPiece_; }
- }
- public const int DefaultCordFieldNumber = 85;
- private bool hasDefaultCord;
- private string defaultCord_ = "123";
- public bool HasDefaultCord {
- get { return hasDefaultCord; }
- }
- public string DefaultCord {
- get { return defaultCord_; }
- }
- public const int OneofUint32FieldNumber = 111;
- private bool hasOneofUint32;
- private uint oneofUint32_;
- public bool HasOneofUint32 {
- get { return hasOneofUint32; }
- }
- [global::System.CLSCompliant(false)]
- public uint OneofUint32 {
- get { return oneofUint32_; }
- }
- public const int OneofNestedMessageFieldNumber = 112;
- private bool hasOneofNestedMessage;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage oneofNestedMessage_;
- public bool HasOneofNestedMessage {
- get { return hasOneofNestedMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OneofNestedMessage {
- get { return oneofNestedMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; }
- }
- public const int OneofStringFieldNumber = 113;
- private bool hasOneofString;
- private string oneofString_ = "";
- public bool HasOneofString {
- get { return hasOneofString; }
- }
- public string OneofString {
- get { return oneofString_; }
- }
- public const int OneofBytesFieldNumber = 114;
- private bool hasOneofBytes;
- private pb::ByteString oneofBytes_ = pb::ByteString.Empty;
- public bool HasOneofBytes {
- get { return hasOneofBytes; }
- }
- public pb::ByteString OneofBytes {
- get { return oneofBytes_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testAllTypesFieldNames;
- if (hasOptionalInt32) {
- output.WriteInt32(1, field_names[35], OptionalInt32);
- }
- if (hasOptionalInt64) {
- output.WriteInt64(2, field_names[36], OptionalInt64);
- }
- if (hasOptionalUint32) {
- output.WriteUInt32(3, field_names[47], OptionalUint32);
- }
- if (hasOptionalUint64) {
- output.WriteUInt64(4, field_names[48], OptionalUint64);
- }
- if (hasOptionalSint32) {
- output.WriteSInt32(5, field_names[43], OptionalSint32);
- }
- if (hasOptionalSint64) {
- output.WriteSInt64(6, field_names[44], OptionalSint64);
- }
- if (hasOptionalFixed32) {
- output.WriteFixed32(7, field_names[28], OptionalFixed32);
- }
- if (hasOptionalFixed64) {
- output.WriteFixed64(8, field_names[29], OptionalFixed64);
- }
- if (hasOptionalSfixed32) {
- output.WriteSFixed32(9, field_names[41], OptionalSfixed32);
- }
- if (hasOptionalSfixed64) {
- output.WriteSFixed64(10, field_names[42], OptionalSfixed64);
- }
- if (hasOptionalFloat) {
- output.WriteFloat(11, field_names[30], OptionalFloat);
- }
- if (hasOptionalDouble) {
- output.WriteDouble(12, field_names[27], OptionalDouble);
- }
- if (hasOptionalBool) {
- output.WriteBool(13, field_names[24], OptionalBool);
- }
- if (hasOptionalString) {
- output.WriteString(14, field_names[45], OptionalString);
- }
- if (hasOptionalBytes) {
- output.WriteBytes(15, field_names[25], OptionalBytes);
- }
- if (hasOptionalGroup) {
- output.WriteGroup(16, field_names[49], OptionalGroup);
- }
- if (hasOptionalNestedMessage) {
- output.WriteMessage(18, field_names[39], OptionalNestedMessage);
- }
- if (hasOptionalForeignMessage) {
- output.WriteMessage(19, field_names[32], OptionalForeignMessage);
- }
- if (hasOptionalImportMessage) {
- output.WriteMessage(20, field_names[34], OptionalImportMessage);
- }
- if (hasOptionalNestedEnum) {
- output.WriteEnum(21, field_names[38], (int) OptionalNestedEnum, OptionalNestedEnum);
- }
- if (hasOptionalForeignEnum) {
- output.WriteEnum(22, field_names[31], (int) OptionalForeignEnum, OptionalForeignEnum);
- }
- if (hasOptionalImportEnum) {
- output.WriteEnum(23, field_names[33], (int) OptionalImportEnum, OptionalImportEnum);
- }
- if (hasOptionalStringPiece) {
- output.WriteString(24, field_names[46], OptionalStringPiece);
- }
- if (hasOptionalCord) {
- output.WriteString(25, field_names[26], OptionalCord);
- }
- if (hasOptionalPublicImportMessage) {
- output.WriteMessage(26, field_names[40], OptionalPublicImportMessage);
- }
- if (hasOptionalLazyMessage) {
- output.WriteMessage(27, field_names[37], OptionalLazyMessage);
- }
- if (repeatedInt32_.Count > 0) {
- output.WriteInt32Array(31, field_names[61], repeatedInt32_);
- }
- if (repeatedInt64_.Count > 0) {
- output.WriteInt64Array(32, field_names[62], repeatedInt64_);
- }
- if (repeatedUint32_.Count > 0) {
- output.WriteUInt32Array(33, field_names[72], repeatedUint32_);
- }
- if (repeatedUint64_.Count > 0) {
- output.WriteUInt64Array(34, field_names[73], repeatedUint64_);
- }
- if (repeatedSint32_.Count > 0) {
- output.WriteSInt32Array(35, field_names[68], repeatedSint32_);
- }
- if (repeatedSint64_.Count > 0) {
- output.WriteSInt64Array(36, field_names[69], repeatedSint64_);
- }
- if (repeatedFixed32_.Count > 0) {
- output.WriteFixed32Array(37, field_names[54], repeatedFixed32_);
- }
- if (repeatedFixed64_.Count > 0) {
- output.WriteFixed64Array(38, field_names[55], repeatedFixed64_);
- }
- if (repeatedSfixed32_.Count > 0) {
- output.WriteSFixed32Array(39, field_names[66], repeatedSfixed32_);
- }
- if (repeatedSfixed64_.Count > 0) {
- output.WriteSFixed64Array(40, field_names[67], repeatedSfixed64_);
- }
- if (repeatedFloat_.Count > 0) {
- output.WriteFloatArray(41, field_names[56], repeatedFloat_);
- }
- if (repeatedDouble_.Count > 0) {
- output.WriteDoubleArray(42, field_names[53], repeatedDouble_);
- }
- if (repeatedBool_.Count > 0) {
- output.WriteBoolArray(43, field_names[50], repeatedBool_);
- }
- if (repeatedString_.Count > 0) {
- output.WriteStringArray(44, field_names[70], repeatedString_);
- }
- if (repeatedBytes_.Count > 0) {
- output.WriteBytesArray(45, field_names[51], repeatedBytes_);
- }
- if (repeatedGroup_.Count > 0) {
- output.WriteGroupArray(46, field_names[74], repeatedGroup_);
- }
- if (repeatedNestedMessage_.Count > 0) {
- output.WriteMessageArray(48, field_names[65], repeatedNestedMessage_);
- }
- if (repeatedForeignMessage_.Count > 0) {
- output.WriteMessageArray(49, field_names[58], repeatedForeignMessage_);
- }
- if (repeatedImportMessage_.Count > 0) {
- output.WriteMessageArray(50, field_names[60], repeatedImportMessage_);
- }
- if (repeatedNestedEnum_.Count > 0) {
- output.WriteEnumArray(51, field_names[64], repeatedNestedEnum_);
- }
- if (repeatedForeignEnum_.Count > 0) {
- output.WriteEnumArray(52, field_names[57], repeatedForeignEnum_);
- }
- if (repeatedImportEnum_.Count > 0) {
- output.WriteEnumArray(53, field_names[59], repeatedImportEnum_);
- }
- if (repeatedStringPiece_.Count > 0) {
- output.WriteStringArray(54, field_names[71], repeatedStringPiece_);
- }
- if (repeatedCord_.Count > 0) {
- output.WriteStringArray(55, field_names[52], repeatedCord_);
- }
- if (repeatedLazyMessage_.Count > 0) {
- output.WriteMessageArray(57, field_names[63], repeatedLazyMessage_);
- }
- if (hasDefaultInt32) {
- output.WriteInt32(61, field_names[9], DefaultInt32);
- }
- if (hasDefaultInt64) {
- output.WriteInt64(62, field_names[10], DefaultInt64);
- }
- if (hasDefaultUint32) {
- output.WriteUInt32(63, field_names[18], DefaultUint32);
- }
- if (hasDefaultUint64) {
- output.WriteUInt64(64, field_names[19], DefaultUint64);
- }
- if (hasDefaultSint32) {
- output.WriteSInt32(65, field_names[14], DefaultSint32);
- }
- if (hasDefaultSint64) {
- output.WriteSInt64(66, field_names[15], DefaultSint64);
- }
- if (hasDefaultFixed32) {
- output.WriteFixed32(67, field_names[4], DefaultFixed32);
- }
- if (hasDefaultFixed64) {
- output.WriteFixed64(68, field_names[5], DefaultFixed64);
- }
- if (hasDefaultSfixed32) {
- output.WriteSFixed32(69, field_names[12], DefaultSfixed32);
- }
- if (hasDefaultSfixed64) {
- output.WriteSFixed64(70, field_names[13], DefaultSfixed64);
- }
- if (hasDefaultFloat) {
- output.WriteFloat(71, field_names[6], DefaultFloat);
- }
- if (hasDefaultDouble) {
- output.WriteDouble(72, field_names[3], DefaultDouble);
- }
- if (hasDefaultBool) {
- output.WriteBool(73, field_names[0], DefaultBool);
- }
- if (hasDefaultString) {
- output.WriteString(74, field_names[16], DefaultString);
- }
- if (hasDefaultBytes) {
- output.WriteBytes(75, field_names[1], DefaultBytes);
- }
- if (hasDefaultNestedEnum) {
- output.WriteEnum(81, field_names[11], (int) DefaultNestedEnum, DefaultNestedEnum);
- }
- if (hasDefaultForeignEnum) {
- output.WriteEnum(82, field_names[7], (int) DefaultForeignEnum, DefaultForeignEnum);
- }
- if (hasDefaultImportEnum) {
- output.WriteEnum(83, field_names[8], (int) DefaultImportEnum, DefaultImportEnum);
- }
- if (hasDefaultStringPiece) {
- output.WriteString(84, field_names[17], DefaultStringPiece);
- }
- if (hasDefaultCord) {
- output.WriteString(85, field_names[2], DefaultCord);
- }
- if (hasOneofUint32) {
- output.WriteUInt32(111, field_names[23], OneofUint32);
- }
- if (hasOneofNestedMessage) {
- output.WriteMessage(112, field_names[21], OneofNestedMessage);
- }
- if (hasOneofString) {
- output.WriteString(113, field_names[22], OneofString);
- }
- if (hasOneofBytes) {
- output.WriteBytes(114, field_names[20], OneofBytes);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasOptionalInt32) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32);
- }
- if (hasOptionalInt64) {
- size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64);
- }
- if (hasOptionalUint32) {
- size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32);
- }
- if (hasOptionalUint64) {
- size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64);
- }
- if (hasOptionalSint32) {
- size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32);
- }
- if (hasOptionalSint64) {
- size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64);
- }
- if (hasOptionalFixed32) {
- size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32);
- }
- if (hasOptionalFixed64) {
- size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64);
- }
- if (hasOptionalSfixed32) {
- size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32);
- }
- if (hasOptionalSfixed64) {
- size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64);
- }
- if (hasOptionalFloat) {
- size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat);
- }
- if (hasOptionalDouble) {
- size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble);
- }
- if (hasOptionalBool) {
- size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool);
- }
- if (hasOptionalString) {
- size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString);
- }
- if (hasOptionalBytes) {
- size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes);
- }
- if (hasOptionalGroup) {
- size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup);
- }
- if (hasOptionalNestedMessage) {
- size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage);
- }
- if (hasOptionalForeignMessage) {
- size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage);
- }
- if (hasOptionalImportMessage) {
- size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage);
- }
- if (hasOptionalNestedEnum) {
- size += pb::CodedOutputStream.ComputeEnumSize(21, (int) OptionalNestedEnum);
- }
- if (hasOptionalForeignEnum) {
- size += pb::CodedOutputStream.ComputeEnumSize(22, (int) OptionalForeignEnum);
- }
- if (hasOptionalImportEnum) {
- size += pb::CodedOutputStream.ComputeEnumSize(23, (int) OptionalImportEnum);
- }
- if (hasOptionalStringPiece) {
- size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece);
- }
- if (hasOptionalCord) {
- size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord);
- }
- if (hasOptionalPublicImportMessage) {
- size += pb::CodedOutputStream.ComputeMessageSize(26, OptionalPublicImportMessage);
- }
- if (hasOptionalLazyMessage) {
- size += pb::CodedOutputStream.ComputeMessageSize(27, OptionalLazyMessage);
- }
- {
- int dataSize = 0;
- foreach (int element in RepeatedInt32List) {
- dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * repeatedInt32_.Count;
- }
- {
- int dataSize = 0;
- foreach (long element in RepeatedInt64List) {
- dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * repeatedInt64_.Count;
- }
- {
- int dataSize = 0;
- foreach (uint element in RepeatedUint32List) {
- dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * repeatedUint32_.Count;
- }
- {
- int dataSize = 0;
- foreach (ulong element in RepeatedUint64List) {
- dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * repeatedUint64_.Count;
- }
- {
- int dataSize = 0;
- foreach (int element in RepeatedSint32List) {
- dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * repeatedSint32_.Count;
- }
- {
- int dataSize = 0;
- foreach (long element in RepeatedSint64List) {
- dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * repeatedSint64_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 4 * repeatedFixed32_.Count;
- size += dataSize;
- size += 2 * repeatedFixed32_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 8 * repeatedFixed64_.Count;
- size += dataSize;
- size += 2 * repeatedFixed64_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 4 * repeatedSfixed32_.Count;
- size += dataSize;
- size += 2 * repeatedSfixed32_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 8 * repeatedSfixed64_.Count;
- size += dataSize;
- size += 2 * repeatedSfixed64_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 4 * repeatedFloat_.Count;
- size += dataSize;
- size += 2 * repeatedFloat_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 8 * repeatedDouble_.Count;
- size += dataSize;
- size += 2 * repeatedDouble_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 1 * repeatedBool_.Count;
- size += dataSize;
- size += 2 * repeatedBool_.Count;
- }
- {
- int dataSize = 0;
- foreach (string element in RepeatedStringList) {
- dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
- }
- size += dataSize;
- size += 2 * repeatedString_.Count;
- }
- {
- int dataSize = 0;
- foreach (pb::ByteString element in RepeatedBytesList) {
- dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element);
- }
- size += dataSize;
- size += 2 * repeatedBytes_.Count;
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
- size += pb::CodedOutputStream.ComputeGroupSize(46, element);
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
- size += pb::CodedOutputStream.ComputeMessageSize(48, element);
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) {
- size += pb::CodedOutputStream.ComputeMessageSize(49, element);
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) {
- size += pb::CodedOutputStream.ComputeMessageSize(50, element);
- }
- {
- int dataSize = 0;
- if (repeatedNestedEnum_.Count > 0) {
- foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in repeatedNestedEnum_) {
- dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
- }
- size += dataSize;
- size += 2 * repeatedNestedEnum_.Count;
- }
- }
- {
- int dataSize = 0;
- if (repeatedForeignEnum_.Count > 0) {
- foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in repeatedForeignEnum_) {
- dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
- }
- size += dataSize;
- size += 2 * repeatedForeignEnum_.Count;
- }
- }
- {
- int dataSize = 0;
- if (repeatedImportEnum_.Count > 0) {
- foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in repeatedImportEnum_) {
- dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
- }
- size += dataSize;
- size += 2 * repeatedImportEnum_.Count;
- }
- }
- {
- int dataSize = 0;
- foreach (string element in RepeatedStringPieceList) {
- dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
- }
- size += dataSize;
- size += 2 * repeatedStringPiece_.Count;
- }
- {
- int dataSize = 0;
- foreach (string element in RepeatedCordList) {
- dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
- }
- size += dataSize;
- size += 2 * repeatedCord_.Count;
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedLazyMessageList) {
- size += pb::CodedOutputStream.ComputeMessageSize(57, element);
- }
- if (hasDefaultInt32) {
- size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32);
- }
- if (hasDefaultInt64) {
- size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64);
- }
- if (hasDefaultUint32) {
- size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32);
- }
- if (hasDefaultUint64) {
- size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64);
- }
- if (hasDefaultSint32) {
- size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32);
- }
- if (hasDefaultSint64) {
- size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64);
- }
- if (hasDefaultFixed32) {
- size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32);
- }
- if (hasDefaultFixed64) {
- size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64);
- }
- if (hasDefaultSfixed32) {
- size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32);
- }
- if (hasDefaultSfixed64) {
- size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64);
- }
- if (hasDefaultFloat) {
- size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat);
- }
- if (hasDefaultDouble) {
- size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble);
- }
- if (hasDefaultBool) {
- size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool);
- }
- if (hasDefaultString) {
- size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString);
- }
- if (hasDefaultBytes) {
- size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes);
- }
- if (hasDefaultNestedEnum) {
- size += pb::CodedOutputStream.ComputeEnumSize(81, (int) DefaultNestedEnum);
- }
- if (hasDefaultForeignEnum) {
- size += pb::CodedOutputStream.ComputeEnumSize(82, (int) DefaultForeignEnum);
- }
- if (hasDefaultImportEnum) {
- size += pb::CodedOutputStream.ComputeEnumSize(83, (int) DefaultImportEnum);
- }
- if (hasDefaultStringPiece) {
- size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece);
- }
- if (hasDefaultCord) {
- size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord);
- }
- if (hasOneofUint32) {
- size += pb::CodedOutputStream.ComputeUInt32Size(111, OneofUint32);
- }
- if (hasOneofNestedMessage) {
- size += pb::CodedOutputStream.ComputeMessageSize(112, OneofNestedMessage);
- }
- if (hasOneofString) {
- size += pb::CodedOutputStream.ComputeStringSize(113, OneofString);
- }
- if (hasOneofBytes) {
- size += pb::CodedOutputStream.ComputeBytesSize(114, OneofBytes);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestAllTypes ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestAllTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestAllTypes ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestAllTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestAllTypes ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestAllTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestAllTypes ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestAllTypes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestAllTypes ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestAllTypes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestAllTypes MakeReadOnly() {
- repeatedInt32_.MakeReadOnly();
- repeatedInt64_.MakeReadOnly();
- repeatedUint32_.MakeReadOnly();
- repeatedUint64_.MakeReadOnly();
- repeatedSint32_.MakeReadOnly();
- repeatedSint64_.MakeReadOnly();
- repeatedFixed32_.MakeReadOnly();
- repeatedFixed64_.MakeReadOnly();
- repeatedSfixed32_.MakeReadOnly();
- repeatedSfixed64_.MakeReadOnly();
- repeatedFloat_.MakeReadOnly();
- repeatedDouble_.MakeReadOnly();
- repeatedBool_.MakeReadOnly();
- repeatedString_.MakeReadOnly();
- repeatedBytes_.MakeReadOnly();
- repeatedGroup_.MakeReadOnly();
- repeatedNestedMessage_.MakeReadOnly();
- repeatedForeignMessage_.MakeReadOnly();
- repeatedImportMessage_.MakeReadOnly();
- repeatedNestedEnum_.MakeReadOnly();
- repeatedForeignEnum_.MakeReadOnly();
- repeatedImportEnum_.MakeReadOnly();
- repeatedStringPiece_.MakeReadOnly();
- repeatedCord_.MakeReadOnly();
- repeatedLazyMessage_.MakeReadOnly();
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestAllTypes prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestAllTypes, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestAllTypes cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestAllTypes result;
- private TestAllTypes PrepareBuilder() {
- if (resultIsReadOnly) {
- TestAllTypes original = result;
- result = new TestAllTypes();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestAllTypes MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor; }
- }
- public override TestAllTypes DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
- }
- public override TestAllTypes BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestAllTypes) {
- return MergeFrom((TestAllTypes) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestAllTypes other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasOptionalInt32) {
- OptionalInt32 = other.OptionalInt32;
- }
- if (other.HasOptionalInt64) {
- OptionalInt64 = other.OptionalInt64;
- }
- if (other.HasOptionalUint32) {
- OptionalUint32 = other.OptionalUint32;
- }
- if (other.HasOptionalUint64) {
- OptionalUint64 = other.OptionalUint64;
- }
- if (other.HasOptionalSint32) {
- OptionalSint32 = other.OptionalSint32;
- }
- if (other.HasOptionalSint64) {
- OptionalSint64 = other.OptionalSint64;
- }
- if (other.HasOptionalFixed32) {
- OptionalFixed32 = other.OptionalFixed32;
- }
- if (other.HasOptionalFixed64) {
- OptionalFixed64 = other.OptionalFixed64;
- }
- if (other.HasOptionalSfixed32) {
- OptionalSfixed32 = other.OptionalSfixed32;
- }
- if (other.HasOptionalSfixed64) {
- OptionalSfixed64 = other.OptionalSfixed64;
- }
- if (other.HasOptionalFloat) {
- OptionalFloat = other.OptionalFloat;
- }
- if (other.HasOptionalDouble) {
- OptionalDouble = other.OptionalDouble;
- }
- if (other.HasOptionalBool) {
- OptionalBool = other.OptionalBool;
- }
- if (other.HasOptionalString) {
- OptionalString = other.OptionalString;
- }
- if (other.HasOptionalBytes) {
- OptionalBytes = other.OptionalBytes;
- }
- if (other.HasOptionalGroup) {
- MergeOptionalGroup(other.OptionalGroup);
- }
- if (other.HasOptionalNestedMessage) {
- MergeOptionalNestedMessage(other.OptionalNestedMessage);
- }
- if (other.HasOptionalForeignMessage) {
- MergeOptionalForeignMessage(other.OptionalForeignMessage);
- }
- if (other.HasOptionalImportMessage) {
- MergeOptionalImportMessage(other.OptionalImportMessage);
- }
- if (other.HasOptionalNestedEnum) {
- OptionalNestedEnum = other.OptionalNestedEnum;
- }
- if (other.HasOptionalForeignEnum) {
- OptionalForeignEnum = other.OptionalForeignEnum;
- }
- if (other.HasOptionalImportEnum) {
- OptionalImportEnum = other.OptionalImportEnum;
- }
- if (other.HasOptionalStringPiece) {
- OptionalStringPiece = other.OptionalStringPiece;
- }
- if (other.HasOptionalCord) {
- OptionalCord = other.OptionalCord;
- }
- if (other.HasOptionalPublicImportMessage) {
- MergeOptionalPublicImportMessage(other.OptionalPublicImportMessage);
- }
- if (other.HasOptionalLazyMessage) {
- MergeOptionalLazyMessage(other.OptionalLazyMessage);
- }
- if (other.repeatedInt32_.Count != 0) {
- result.repeatedInt32_.Add(other.repeatedInt32_);
- }
- if (other.repeatedInt64_.Count != 0) {
- result.repeatedInt64_.Add(other.repeatedInt64_);
- }
- if (other.repeatedUint32_.Count != 0) {
- result.repeatedUint32_.Add(other.repeatedUint32_);
- }
- if (other.repeatedUint64_.Count != 0) {
- result.repeatedUint64_.Add(other.repeatedUint64_);
- }
- if (other.repeatedSint32_.Count != 0) {
- result.repeatedSint32_.Add(other.repeatedSint32_);
- }
- if (other.repeatedSint64_.Count != 0) {
- result.repeatedSint64_.Add(other.repeatedSint64_);
- }
- if (other.repeatedFixed32_.Count != 0) {
- result.repeatedFixed32_.Add(other.repeatedFixed32_);
- }
- if (other.repeatedFixed64_.Count != 0) {
- result.repeatedFixed64_.Add(other.repeatedFixed64_);
- }
- if (other.repeatedSfixed32_.Count != 0) {
- result.repeatedSfixed32_.Add(other.repeatedSfixed32_);
- }
- if (other.repeatedSfixed64_.Count != 0) {
- result.repeatedSfixed64_.Add(other.repeatedSfixed64_);
- }
- if (other.repeatedFloat_.Count != 0) {
- result.repeatedFloat_.Add(other.repeatedFloat_);
- }
- if (other.repeatedDouble_.Count != 0) {
- result.repeatedDouble_.Add(other.repeatedDouble_);
- }
- if (other.repeatedBool_.Count != 0) {
- result.repeatedBool_.Add(other.repeatedBool_);
- }
- if (other.repeatedString_.Count != 0) {
- result.repeatedString_.Add(other.repeatedString_);
- }
- if (other.repeatedBytes_.Count != 0) {
- result.repeatedBytes_.Add(other.repeatedBytes_);
- }
- if (other.repeatedGroup_.Count != 0) {
- result.repeatedGroup_.Add(other.repeatedGroup_);
- }
- if (other.repeatedNestedMessage_.Count != 0) {
- result.repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
- }
- if (other.repeatedForeignMessage_.Count != 0) {
- result.repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
- }
- if (other.repeatedImportMessage_.Count != 0) {
- result.repeatedImportMessage_.Add(other.repeatedImportMessage_);
- }
- if (other.repeatedNestedEnum_.Count != 0) {
- result.repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
- }
- if (other.repeatedForeignEnum_.Count != 0) {
- result.repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
- }
- if (other.repeatedImportEnum_.Count != 0) {
- result.repeatedImportEnum_.Add(other.repeatedImportEnum_);
- }
- if (other.repeatedStringPiece_.Count != 0) {
- result.repeatedStringPiece_.Add(other.repeatedStringPiece_);
- }
- if (other.repeatedCord_.Count != 0) {
- result.repeatedCord_.Add(other.repeatedCord_);
- }
- if (other.repeatedLazyMessage_.Count != 0) {
- result.repeatedLazyMessage_.Add(other.repeatedLazyMessage_);
- }
- if (other.HasDefaultInt32) {
- DefaultInt32 = other.DefaultInt32;
- }
- if (other.HasDefaultInt64) {
- DefaultInt64 = other.DefaultInt64;
- }
- if (other.HasDefaultUint32) {
- DefaultUint32 = other.DefaultUint32;
- }
- if (other.HasDefaultUint64) {
- DefaultUint64 = other.DefaultUint64;
- }
- if (other.HasDefaultSint32) {
- DefaultSint32 = other.DefaultSint32;
- }
- if (other.HasDefaultSint64) {
- DefaultSint64 = other.DefaultSint64;
- }
- if (other.HasDefaultFixed32) {
- DefaultFixed32 = other.DefaultFixed32;
- }
- if (other.HasDefaultFixed64) {
- DefaultFixed64 = other.DefaultFixed64;
- }
- if (other.HasDefaultSfixed32) {
- DefaultSfixed32 = other.DefaultSfixed32;
- }
- if (other.HasDefaultSfixed64) {
- DefaultSfixed64 = other.DefaultSfixed64;
- }
- if (other.HasDefaultFloat) {
- DefaultFloat = other.DefaultFloat;
- }
- if (other.HasDefaultDouble) {
- DefaultDouble = other.DefaultDouble;
- }
- if (other.HasDefaultBool) {
- DefaultBool = other.DefaultBool;
- }
- if (other.HasDefaultString) {
- DefaultString = other.DefaultString;
- }
- if (other.HasDefaultBytes) {
- DefaultBytes = other.DefaultBytes;
- }
- if (other.HasDefaultNestedEnum) {
- DefaultNestedEnum = other.DefaultNestedEnum;
- }
- if (other.HasDefaultForeignEnum) {
- DefaultForeignEnum = other.DefaultForeignEnum;
- }
- if (other.HasDefaultImportEnum) {
- DefaultImportEnum = other.DefaultImportEnum;
- }
- if (other.HasDefaultStringPiece) {
- DefaultStringPiece = other.DefaultStringPiece;
- }
- if (other.HasDefaultCord) {
- DefaultCord = other.DefaultCord;
- }
- if (other.HasOneofUint32) {
- OneofUint32 = other.OneofUint32;
- }
- if (other.HasOneofNestedMessage) {
- MergeOneofNestedMessage(other.OneofNestedMessage);
- }
- if (other.HasOneofString) {
- OneofString = other.OneofString;
- }
- if (other.HasOneofBytes) {
- OneofBytes = other.OneofBytes;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testAllTypesFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testAllTypesFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasOptionalInt32 = input.ReadInt32(ref result.optionalInt32_);
- break;
- }
- case 16: {
- result.hasOptionalInt64 = input.ReadInt64(ref result.optionalInt64_);
- break;
- }
- case 24: {
- result.hasOptionalUint32 = input.ReadUInt32(ref result.optionalUint32_);
- break;
- }
- case 32: {
- result.hasOptionalUint64 = input.ReadUInt64(ref result.optionalUint64_);
- break;
- }
- case 40: {
- result.hasOptionalSint32 = input.ReadSInt32(ref result.optionalSint32_);
- break;
- }
- case 48: {
- result.hasOptionalSint64 = input.ReadSInt64(ref result.optionalSint64_);
- break;
- }
- case 61: {
- result.hasOptionalFixed32 = input.ReadFixed32(ref result.optionalFixed32_);
- break;
- }
- case 65: {
- result.hasOptionalFixed64 = input.ReadFixed64(ref result.optionalFixed64_);
- break;
- }
- case 77: {
- result.hasOptionalSfixed32 = input.ReadSFixed32(ref result.optionalSfixed32_);
- break;
- }
- case 81: {
- result.hasOptionalSfixed64 = input.ReadSFixed64(ref result.optionalSfixed64_);
- break;
- }
- case 93: {
- result.hasOptionalFloat = input.ReadFloat(ref result.optionalFloat_);
- break;
- }
- case 97: {
- result.hasOptionalDouble = input.ReadDouble(ref result.optionalDouble_);
- break;
- }
- case 104: {
- result.hasOptionalBool = input.ReadBool(ref result.optionalBool_);
- break;
- }
- case 114: {
- result.hasOptionalString = input.ReadString(ref result.optionalString_);
- break;
- }
- case 122: {
- result.hasOptionalBytes = input.ReadBytes(ref result.optionalBytes_);
- break;
- }
- case 131: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder();
- if (result.hasOptionalGroup) {
- subBuilder.MergeFrom(OptionalGroup);
- }
- input.ReadGroup(16, subBuilder, extensionRegistry);
- OptionalGroup = subBuilder.BuildPartial();
- break;
- }
- case 146: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
- if (result.hasOptionalNestedMessage) {
- subBuilder.MergeFrom(OptionalNestedMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- OptionalNestedMessage = subBuilder.BuildPartial();
- break;
- }
- case 154: {
- global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
- if (result.hasOptionalForeignMessage) {
- subBuilder.MergeFrom(OptionalForeignMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- OptionalForeignMessage = subBuilder.BuildPartial();
- break;
- }
- case 162: {
- global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder();
- if (result.hasOptionalImportMessage) {
- subBuilder.MergeFrom(OptionalImportMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- OptionalImportMessage = subBuilder.BuildPartial();
- break;
- }
- case 168: {
- object unknown;
- if(input.ReadEnum(ref result.optionalNestedEnum_, out unknown)) {
- result.hasOptionalNestedEnum = true;
- } else if(unknown is int) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- unknownFields.MergeVarintField(21, (ulong)(int)unknown);
- }
- break;
- }
- case 176: {
- object unknown;
- if(input.ReadEnum(ref result.optionalForeignEnum_, out unknown)) {
- result.hasOptionalForeignEnum = true;
- } else if(unknown is int) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- unknownFields.MergeVarintField(22, (ulong)(int)unknown);
- }
- break;
- }
- case 184: {
- object unknown;
- if(input.ReadEnum(ref result.optionalImportEnum_, out unknown)) {
- result.hasOptionalImportEnum = true;
- } else if(unknown is int) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- unknownFields.MergeVarintField(23, (ulong)(int)unknown);
- }
- break;
- }
- case 194: {
- result.hasOptionalStringPiece = input.ReadString(ref result.optionalStringPiece_);
- break;
- }
- case 202: {
- result.hasOptionalCord = input.ReadString(ref result.optionalCord_);
- break;
- }
- case 210: {
- global::Google.ProtocolBuffers.TestProtos.PublicImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.PublicImportMessage.CreateBuilder();
- if (result.hasOptionalPublicImportMessage) {
- subBuilder.MergeFrom(OptionalPublicImportMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- OptionalPublicImportMessage = subBuilder.BuildPartial();
- break;
- }
- case 218: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
- if (result.hasOptionalLazyMessage) {
- subBuilder.MergeFrom(OptionalLazyMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- OptionalLazyMessage = subBuilder.BuildPartial();
- break;
- }
- case 250:
- case 248: {
- input.ReadInt32Array(tag, field_name, result.repeatedInt32_);
- break;
- }
- case 258:
- case 256: {
- input.ReadInt64Array(tag, field_name, result.repeatedInt64_);
- break;
- }
- case 266:
- case 264: {
- input.ReadUInt32Array(tag, field_name, result.repeatedUint32_);
- break;
- }
- case 274:
- case 272: {
- input.ReadUInt64Array(tag, field_name, result.repeatedUint64_);
- break;
- }
- case 282:
- case 280: {
- input.ReadSInt32Array(tag, field_name, result.repeatedSint32_);
- break;
- }
- case 290:
- case 288: {
- input.ReadSInt64Array(tag, field_name, result.repeatedSint64_);
- break;
- }
- case 298:
- case 301: {
- input.ReadFixed32Array(tag, field_name, result.repeatedFixed32_);
- break;
- }
- case 306:
- case 305: {
- input.ReadFixed64Array(tag, field_name, result.repeatedFixed64_);
- break;
- }
- case 314:
- case 317: {
- input.ReadSFixed32Array(tag, field_name, result.repeatedSfixed32_);
- break;
- }
- case 322:
- case 321: {
- input.ReadSFixed64Array(tag, field_name, result.repeatedSfixed64_);
- break;
- }
- case 330:
- case 333: {
- input.ReadFloatArray(tag, field_name, result.repeatedFloat_);
- break;
- }
- case 338:
- case 337: {
- input.ReadDoubleArray(tag, field_name, result.repeatedDouble_);
- break;
- }
- case 346:
- case 344: {
- input.ReadBoolArray(tag, field_name, result.repeatedBool_);
- break;
- }
- case 354: {
- input.ReadStringArray(tag, field_name, result.repeatedString_);
- break;
- }
- case 362: {
- input.ReadBytesArray(tag, field_name, result.repeatedBytes_);
- break;
- }
- case 371: {
- input.ReadGroupArray(tag, field_name, result.repeatedGroup_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance, extensionRegistry);
- break;
- }
- case 386: {
- input.ReadMessageArray(tag, field_name, result.repeatedNestedMessage_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance, extensionRegistry);
- break;
- }
- case 394: {
- input.ReadMessageArray(tag, field_name, result.repeatedForeignMessage_, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance, extensionRegistry);
- break;
- }
- case 402: {
- input.ReadMessageArray(tag, field_name, result.repeatedImportMessage_, global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance, extensionRegistry);
- break;
- }
- case 410:
- case 408: {
- scg::ICollection<object> unknownItems;
- input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>(tag, field_name, result.repeatedNestedEnum_, out unknownItems);
- if (unknownItems != null) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- foreach (object rawValue in unknownItems)
- if (rawValue is int)
- unknownFields.MergeVarintField(51, (ulong)(int)rawValue);
- }
- break;
- }
- case 418:
- case 416: {
- scg::ICollection<object> unknownItems;
- input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(tag, field_name, result.repeatedForeignEnum_, out unknownItems);
- if (unknownItems != null) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- foreach (object rawValue in unknownItems)
- if (rawValue is int)
- unknownFields.MergeVarintField(52, (ulong)(int)rawValue);
- }
- break;
- }
- case 426:
- case 424: {
- scg::ICollection<object> unknownItems;
- input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ImportEnum>(tag, field_name, result.repeatedImportEnum_, out unknownItems);
- if (unknownItems != null) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- foreach (object rawValue in unknownItems)
- if (rawValue is int)
- unknownFields.MergeVarintField(53, (ulong)(int)rawValue);
- }
- break;
- }
- case 434: {
- input.ReadStringArray(tag, field_name, result.repeatedStringPiece_);
- break;
- }
- case 442: {
- input.ReadStringArray(tag, field_name, result.repeatedCord_);
- break;
- }
- case 458: {
- input.ReadMessageArray(tag, field_name, result.repeatedLazyMessage_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance, extensionRegistry);
- break;
- }
- case 488: {
- result.hasDefaultInt32 = input.ReadInt32(ref result.defaultInt32_);
- break;
- }
- case 496: {
- result.hasDefaultInt64 = input.ReadInt64(ref result.defaultInt64_);
- break;
- }
- case 504: {
- result.hasDefaultUint32 = input.ReadUInt32(ref result.defaultUint32_);
- break;
- }
- case 512: {
- result.hasDefaultUint64 = input.ReadUInt64(ref result.defaultUint64_);
- break;
- }
- case 520: {
- result.hasDefaultSint32 = input.ReadSInt32(ref result.defaultSint32_);
- break;
- }
- case 528: {
- result.hasDefaultSint64 = input.ReadSInt64(ref result.defaultSint64_);
- break;
- }
- case 541: {
- result.hasDefaultFixed32 = input.ReadFixed32(ref result.defaultFixed32_);
- break;
- }
- case 545: {
- result.hasDefaultFixed64 = input.ReadFixed64(ref result.defaultFixed64_);
- break;
- }
- case 557: {
- result.hasDefaultSfixed32 = input.ReadSFixed32(ref result.defaultSfixed32_);
- break;
- }
- case 561: {
- result.hasDefaultSfixed64 = input.ReadSFixed64(ref result.defaultSfixed64_);
- break;
- }
- case 573: {
- result.hasDefaultFloat = input.ReadFloat(ref result.defaultFloat_);
- break;
- }
- case 577: {
- result.hasDefaultDouble = input.ReadDouble(ref result.defaultDouble_);
- break;
- }
- case 584: {
- result.hasDefaultBool = input.ReadBool(ref result.defaultBool_);
- break;
- }
- case 594: {
- result.hasDefaultString = input.ReadString(ref result.defaultString_);
- break;
- }
- case 602: {
- result.hasDefaultBytes = input.ReadBytes(ref result.defaultBytes_);
- break;
- }
- case 648: {
- object unknown;
- if(input.ReadEnum(ref result.defaultNestedEnum_, out unknown)) {
- result.hasDefaultNestedEnum = true;
- } else if(unknown is int) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- unknownFields.MergeVarintField(81, (ulong)(int)unknown);
- }
- break;
- }
- case 656: {
- object unknown;
- if(input.ReadEnum(ref result.defaultForeignEnum_, out unknown)) {
- result.hasDefaultForeignEnum = true;
- } else if(unknown is int) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- unknownFields.MergeVarintField(82, (ulong)(int)unknown);
- }
- break;
- }
- case 664: {
- object unknown;
- if(input.ReadEnum(ref result.defaultImportEnum_, out unknown)) {
- result.hasDefaultImportEnum = true;
- } else if(unknown is int) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- unknownFields.MergeVarintField(83, (ulong)(int)unknown);
- }
- break;
- }
- case 674: {
- result.hasDefaultStringPiece = input.ReadString(ref result.defaultStringPiece_);
- break;
- }
- case 682: {
- result.hasDefaultCord = input.ReadString(ref result.defaultCord_);
- break;
- }
- case 888: {
- result.hasOneofUint32 = input.ReadUInt32(ref result.oneofUint32_);
- break;
- }
- case 898: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
- if (result.hasOneofNestedMessage) {
- subBuilder.MergeFrom(OneofNestedMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- OneofNestedMessage = subBuilder.BuildPartial();
- break;
- }
- case 906: {
- result.hasOneofString = input.ReadString(ref result.oneofString_);
- break;
- }
- case 914: {
- result.hasOneofBytes = input.ReadBytes(ref result.oneofBytes_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasOptionalInt32 {
- get { return result.hasOptionalInt32; }
- }
- public int OptionalInt32 {
- get { return result.OptionalInt32; }
- set { SetOptionalInt32(value); }
- }
- public Builder SetOptionalInt32(int value) {
- PrepareBuilder();
- result.hasOptionalInt32 = true;
- result.optionalInt32_ = value;
- return this;
- }
- public Builder ClearOptionalInt32() {
- PrepareBuilder();
- result.hasOptionalInt32 = false;
- result.optionalInt32_ = 0;
- return this;
- }
- public bool HasOptionalInt64 {
- get { return result.hasOptionalInt64; }
- }
- public long OptionalInt64 {
- get { return result.OptionalInt64; }
- set { SetOptionalInt64(value); }
- }
- public Builder SetOptionalInt64(long value) {
- PrepareBuilder();
- result.hasOptionalInt64 = true;
- result.optionalInt64_ = value;
- return this;
- }
- public Builder ClearOptionalInt64() {
- PrepareBuilder();
- result.hasOptionalInt64 = false;
- result.optionalInt64_ = 0L;
- return this;
- }
- public bool HasOptionalUint32 {
- get { return result.hasOptionalUint32; }
- }
- [global::System.CLSCompliant(false)]
- public uint OptionalUint32 {
- get { return result.OptionalUint32; }
- set { SetOptionalUint32(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetOptionalUint32(uint value) {
- PrepareBuilder();
- result.hasOptionalUint32 = true;
- result.optionalUint32_ = value;
- return this;
- }
- public Builder ClearOptionalUint32() {
- PrepareBuilder();
- result.hasOptionalUint32 = false;
- result.optionalUint32_ = 0;
- return this;
- }
- public bool HasOptionalUint64 {
- get { return result.hasOptionalUint64; }
- }
- [global::System.CLSCompliant(false)]
- public ulong OptionalUint64 {
- get { return result.OptionalUint64; }
- set { SetOptionalUint64(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetOptionalUint64(ulong value) {
- PrepareBuilder();
- result.hasOptionalUint64 = true;
- result.optionalUint64_ = value;
- return this;
- }
- public Builder ClearOptionalUint64() {
- PrepareBuilder();
- result.hasOptionalUint64 = false;
- result.optionalUint64_ = 0UL;
- return this;
- }
- public bool HasOptionalSint32 {
- get { return result.hasOptionalSint32; }
- }
- public int OptionalSint32 {
- get { return result.OptionalSint32; }
- set { SetOptionalSint32(value); }
- }
- public Builder SetOptionalSint32(int value) {
- PrepareBuilder();
- result.hasOptionalSint32 = true;
- result.optionalSint32_ = value;
- return this;
- }
- public Builder ClearOptionalSint32() {
- PrepareBuilder();
- result.hasOptionalSint32 = false;
- result.optionalSint32_ = 0;
- return this;
- }
- public bool HasOptionalSint64 {
- get { return result.hasOptionalSint64; }
- }
- public long OptionalSint64 {
- get { return result.OptionalSint64; }
- set { SetOptionalSint64(value); }
- }
- public Builder SetOptionalSint64(long value) {
- PrepareBuilder();
- result.hasOptionalSint64 = true;
- result.optionalSint64_ = value;
- return this;
- }
- public Builder ClearOptionalSint64() {
- PrepareBuilder();
- result.hasOptionalSint64 = false;
- result.optionalSint64_ = 0L;
- return this;
- }
- public bool HasOptionalFixed32 {
- get { return result.hasOptionalFixed32; }
- }
- [global::System.CLSCompliant(false)]
- public uint OptionalFixed32 {
- get { return result.OptionalFixed32; }
- set { SetOptionalFixed32(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetOptionalFixed32(uint value) {
- PrepareBuilder();
- result.hasOptionalFixed32 = true;
- result.optionalFixed32_ = value;
- return this;
- }
- public Builder ClearOptionalFixed32() {
- PrepareBuilder();
- result.hasOptionalFixed32 = false;
- result.optionalFixed32_ = 0;
- return this;
- }
- public bool HasOptionalFixed64 {
- get { return result.hasOptionalFixed64; }
- }
- [global::System.CLSCompliant(false)]
- public ulong OptionalFixed64 {
- get { return result.OptionalFixed64; }
- set { SetOptionalFixed64(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetOptionalFixed64(ulong value) {
- PrepareBuilder();
- result.hasOptionalFixed64 = true;
- result.optionalFixed64_ = value;
- return this;
- }
- public Builder ClearOptionalFixed64() {
- PrepareBuilder();
- result.hasOptionalFixed64 = false;
- result.optionalFixed64_ = 0UL;
- return this;
- }
- public bool HasOptionalSfixed32 {
- get { return result.hasOptionalSfixed32; }
- }
- public int OptionalSfixed32 {
- get { return result.OptionalSfixed32; }
- set { SetOptionalSfixed32(value); }
- }
- public Builder SetOptionalSfixed32(int value) {
- PrepareBuilder();
- result.hasOptionalSfixed32 = true;
- result.optionalSfixed32_ = value;
- return this;
- }
- public Builder ClearOptionalSfixed32() {
- PrepareBuilder();
- result.hasOptionalSfixed32 = false;
- result.optionalSfixed32_ = 0;
- return this;
- }
- public bool HasOptionalSfixed64 {
- get { return result.hasOptionalSfixed64; }
- }
- public long OptionalSfixed64 {
- get { return result.OptionalSfixed64; }
- set { SetOptionalSfixed64(value); }
- }
- public Builder SetOptionalSfixed64(long value) {
- PrepareBuilder();
- result.hasOptionalSfixed64 = true;
- result.optionalSfixed64_ = value;
- return this;
- }
- public Builder ClearOptionalSfixed64() {
- PrepareBuilder();
- result.hasOptionalSfixed64 = false;
- result.optionalSfixed64_ = 0L;
- return this;
- }
- public bool HasOptionalFloat {
- get { return result.hasOptionalFloat; }
- }
- public float OptionalFloat {
- get { return result.OptionalFloat; }
- set { SetOptionalFloat(value); }
- }
- public Builder SetOptionalFloat(float value) {
- PrepareBuilder();
- result.hasOptionalFloat = true;
- result.optionalFloat_ = value;
- return this;
- }
- public Builder ClearOptionalFloat() {
- PrepareBuilder();
- result.hasOptionalFloat = false;
- result.optionalFloat_ = 0F;
- return this;
- }
- public bool HasOptionalDouble {
- get { return result.hasOptionalDouble; }
- }
- public double OptionalDouble {
- get { return result.OptionalDouble; }
- set { SetOptionalDouble(value); }
- }
- public Builder SetOptionalDouble(double value) {
- PrepareBuilder();
- result.hasOptionalDouble = true;
- result.optionalDouble_ = value;
- return this;
- }
- public Builder ClearOptionalDouble() {
- PrepareBuilder();
- result.hasOptionalDouble = false;
- result.optionalDouble_ = 0D;
- return this;
- }
- public bool HasOptionalBool {
- get { return result.hasOptionalBool; }
- }
- public bool OptionalBool {
- get { return result.OptionalBool; }
- set { SetOptionalBool(value); }
- }
- public Builder SetOptionalBool(bool value) {
- PrepareBuilder();
- result.hasOptionalBool = true;
- result.optionalBool_ = value;
- return this;
- }
- public Builder ClearOptionalBool() {
- PrepareBuilder();
- result.hasOptionalBool = false;
- result.optionalBool_ = false;
- return this;
- }
- public bool HasOptionalString {
- get { return result.hasOptionalString; }
- }
- public string OptionalString {
- get { return result.OptionalString; }
- set { SetOptionalString(value); }
- }
- public Builder SetOptionalString(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalString = true;
- result.optionalString_ = value;
- return this;
- }
- public Builder ClearOptionalString() {
- PrepareBuilder();
- result.hasOptionalString = false;
- result.optionalString_ = "";
- return this;
- }
- public bool HasOptionalBytes {
- get { return result.hasOptionalBytes; }
- }
- public pb::ByteString OptionalBytes {
- get { return result.OptionalBytes; }
- set { SetOptionalBytes(value); }
- }
- public Builder SetOptionalBytes(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalBytes = true;
- result.optionalBytes_ = value;
- return this;
- }
- public Builder ClearOptionalBytes() {
- PrepareBuilder();
- result.hasOptionalBytes = false;
- result.optionalBytes_ = pb::ByteString.Empty;
- return this;
- }
- public bool HasOptionalGroup {
- get { return result.hasOptionalGroup; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup {
- get { return result.OptionalGroup; }
- set { SetOptionalGroup(value); }
- }
- public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalGroup = true;
- result.optionalGroup_ = value;
- return this;
- }
- public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasOptionalGroup = true;
- result.optionalGroup_ = builderForValue.Build();
- return this;
- }
- public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOptionalGroup &&
- result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) {
- result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
- } else {
- result.optionalGroup_ = value;
- }
- result.hasOptionalGroup = true;
- return this;
- }
- public Builder ClearOptionalGroup() {
- PrepareBuilder();
- result.hasOptionalGroup = false;
- result.optionalGroup_ = null;
- return this;
- }
- public bool HasOptionalNestedMessage {
- get { return result.hasOptionalNestedMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
- get { return result.OptionalNestedMessage; }
- set { SetOptionalNestedMessage(value); }
- }
- public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalNestedMessage = true;
- result.optionalNestedMessage_ = value;
- return this;
- }
- public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasOptionalNestedMessage = true;
- result.optionalNestedMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOptionalNestedMessage &&
- result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
- result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
- } else {
- result.optionalNestedMessage_ = value;
- }
- result.hasOptionalNestedMessage = true;
- return this;
- }
- public Builder ClearOptionalNestedMessage() {
- PrepareBuilder();
- result.hasOptionalNestedMessage = false;
- result.optionalNestedMessage_ = null;
- return this;
- }
- public bool HasOptionalForeignMessage {
- get { return result.hasOptionalForeignMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage {
- get { return result.OptionalForeignMessage; }
- set { SetOptionalForeignMessage(value); }
- }
- public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalForeignMessage = true;
- result.optionalForeignMessage_ = value;
- return this;
- }
- public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasOptionalForeignMessage = true;
- result.optionalForeignMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOptionalForeignMessage &&
- result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
- result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial();
- } else {
- result.optionalForeignMessage_ = value;
- }
- result.hasOptionalForeignMessage = true;
- return this;
- }
- public Builder ClearOptionalForeignMessage() {
- PrepareBuilder();
- result.hasOptionalForeignMessage = false;
- result.optionalForeignMessage_ = null;
- return this;
- }
- public bool HasOptionalImportMessage {
- get { return result.hasOptionalImportMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage {
- get { return result.OptionalImportMessage; }
- set { SetOptionalImportMessage(value); }
- }
- public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalImportMessage = true;
- result.optionalImportMessage_ = value;
- return this;
- }
- public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasOptionalImportMessage = true;
- result.optionalImportMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOptionalImportMessage &&
- result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance) {
- result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial();
- } else {
- result.optionalImportMessage_ = value;
- }
- result.hasOptionalImportMessage = true;
- return this;
- }
- public Builder ClearOptionalImportMessage() {
- PrepareBuilder();
- result.hasOptionalImportMessage = false;
- result.optionalImportMessage_ = null;
- return this;
- }
- public bool HasOptionalNestedEnum {
- get { return result.hasOptionalNestedEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
- get { return result.OptionalNestedEnum; }
- set { SetOptionalNestedEnum(value); }
- }
- public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
- PrepareBuilder();
- result.hasOptionalNestedEnum = true;
- result.optionalNestedEnum_ = value;
- return this;
- }
- public Builder ClearOptionalNestedEnum() {
- PrepareBuilder();
- result.hasOptionalNestedEnum = false;
- result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO;
- return this;
- }
- public bool HasOptionalForeignEnum {
- get { return result.hasOptionalForeignEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum {
- get { return result.OptionalForeignEnum; }
- set { SetOptionalForeignEnum(value); }
- }
- public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
- PrepareBuilder();
- result.hasOptionalForeignEnum = true;
- result.optionalForeignEnum_ = value;
- return this;
- }
- public Builder ClearOptionalForeignEnum() {
- PrepareBuilder();
- result.hasOptionalForeignEnum = false;
- result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
- return this;
- }
- public bool HasOptionalImportEnum {
- get { return result.hasOptionalImportEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum {
- get { return result.OptionalImportEnum; }
- set { SetOptionalImportEnum(value); }
- }
- public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
- PrepareBuilder();
- result.hasOptionalImportEnum = true;
- result.optionalImportEnum_ = value;
- return this;
- }
- public Builder ClearOptionalImportEnum() {
- PrepareBuilder();
- result.hasOptionalImportEnum = false;
- result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO;
- return this;
- }
- public bool HasOptionalStringPiece {
- get { return result.hasOptionalStringPiece; }
- }
- public string OptionalStringPiece {
- get { return result.OptionalStringPiece; }
- set { SetOptionalStringPiece(value); }
- }
- public Builder SetOptionalStringPiece(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalStringPiece = true;
- result.optionalStringPiece_ = value;
- return this;
- }
- public Builder ClearOptionalStringPiece() {
- PrepareBuilder();
- result.hasOptionalStringPiece = false;
- result.optionalStringPiece_ = "";
- return this;
- }
- public bool HasOptionalCord {
- get { return result.hasOptionalCord; }
- }
- public string OptionalCord {
- get { return result.OptionalCord; }
- set { SetOptionalCord(value); }
- }
- public Builder SetOptionalCord(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalCord = true;
- result.optionalCord_ = value;
- return this;
- }
- public Builder ClearOptionalCord() {
- PrepareBuilder();
- result.hasOptionalCord = false;
- result.optionalCord_ = "";
- return this;
- }
- public bool HasOptionalPublicImportMessage {
- get { return result.hasOptionalPublicImportMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.PublicImportMessage OptionalPublicImportMessage {
- get { return result.OptionalPublicImportMessage; }
- set { SetOptionalPublicImportMessage(value); }
- }
- public Builder SetOptionalPublicImportMessage(global::Google.ProtocolBuffers.TestProtos.PublicImportMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalPublicImportMessage = true;
- result.optionalPublicImportMessage_ = value;
- return this;
- }
- public Builder SetOptionalPublicImportMessage(global::Google.ProtocolBuffers.TestProtos.PublicImportMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasOptionalPublicImportMessage = true;
- result.optionalPublicImportMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeOptionalPublicImportMessage(global::Google.ProtocolBuffers.TestProtos.PublicImportMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOptionalPublicImportMessage &&
- result.optionalPublicImportMessage_ != global::Google.ProtocolBuffers.TestProtos.PublicImportMessage.DefaultInstance) {
- result.optionalPublicImportMessage_ = global::Google.ProtocolBuffers.TestProtos.PublicImportMessage.CreateBuilder(result.optionalPublicImportMessage_).MergeFrom(value).BuildPartial();
- } else {
- result.optionalPublicImportMessage_ = value;
- }
- result.hasOptionalPublicImportMessage = true;
- return this;
- }
- public Builder ClearOptionalPublicImportMessage() {
- PrepareBuilder();
- result.hasOptionalPublicImportMessage = false;
- result.optionalPublicImportMessage_ = null;
- return this;
- }
- public bool HasOptionalLazyMessage {
- get { return result.hasOptionalLazyMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalLazyMessage {
- get { return result.OptionalLazyMessage; }
- set { SetOptionalLazyMessage(value); }
- }
- public Builder SetOptionalLazyMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalLazyMessage = true;
- result.optionalLazyMessage_ = value;
- return this;
- }
- public Builder SetOptionalLazyMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasOptionalLazyMessage = true;
- result.optionalLazyMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeOptionalLazyMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOptionalLazyMessage &&
- result.optionalLazyMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
- result.optionalLazyMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.optionalLazyMessage_).MergeFrom(value).BuildPartial();
- } else {
- result.optionalLazyMessage_ = value;
- }
- result.hasOptionalLazyMessage = true;
- return this;
- }
- public Builder ClearOptionalLazyMessage() {
- PrepareBuilder();
- result.hasOptionalLazyMessage = false;
- result.optionalLazyMessage_ = null;
- return this;
- }
- public pbc::IPopsicleList<int> RepeatedInt32List {
- get { return PrepareBuilder().repeatedInt32_; }
- }
- public int RepeatedInt32Count {
- get { return result.RepeatedInt32Count; }
- }
- public int GetRepeatedInt32(int index) {
- return result.GetRepeatedInt32(index);
- }
- public Builder SetRepeatedInt32(int index, int value) {
- PrepareBuilder();
- result.repeatedInt32_[index] = value;
- return this;
- }
- public Builder AddRepeatedInt32(int value) {
- PrepareBuilder();
- result.repeatedInt32_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.repeatedInt32_.Add(values);
- return this;
- }
- public Builder ClearRepeatedInt32() {
- PrepareBuilder();
- result.repeatedInt32_.Clear();
- return this;
- }
- public pbc::IPopsicleList<long> RepeatedInt64List {
- get { return PrepareBuilder().repeatedInt64_; }
- }
- public int RepeatedInt64Count {
- get { return result.RepeatedInt64Count; }
- }
- public long GetRepeatedInt64(int index) {
- return result.GetRepeatedInt64(index);
- }
- public Builder SetRepeatedInt64(int index, long value) {
- PrepareBuilder();
- result.repeatedInt64_[index] = value;
- return this;
- }
- public Builder AddRepeatedInt64(long value) {
- PrepareBuilder();
- result.repeatedInt64_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
- PrepareBuilder();
- result.repeatedInt64_.Add(values);
- return this;
- }
- public Builder ClearRepeatedInt64() {
- PrepareBuilder();
- result.repeatedInt64_.Clear();
- return this;
- }
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<uint> RepeatedUint32List {
- get { return PrepareBuilder().repeatedUint32_; }
- }
- public int RepeatedUint32Count {
- get { return result.RepeatedUint32Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetRepeatedUint32(int index) {
- return result.GetRepeatedUint32(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetRepeatedUint32(int index, uint value) {
- PrepareBuilder();
- result.repeatedUint32_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRepeatedUint32(uint value) {
- PrepareBuilder();
- result.repeatedUint32_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) {
- PrepareBuilder();
- result.repeatedUint32_.Add(values);
- return this;
- }
- public Builder ClearRepeatedUint32() {
- PrepareBuilder();
- result.repeatedUint32_.Clear();
- return this;
- }
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<ulong> RepeatedUint64List {
- get { return PrepareBuilder().repeatedUint64_; }
- }
- public int RepeatedUint64Count {
- get { return result.RepeatedUint64Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetRepeatedUint64(int index) {
- return result.GetRepeatedUint64(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetRepeatedUint64(int index, ulong value) {
- PrepareBuilder();
- result.repeatedUint64_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRepeatedUint64(ulong value) {
- PrepareBuilder();
- result.repeatedUint64_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
- PrepareBuilder();
- result.repeatedUint64_.Add(values);
- return this;
- }
- public Builder ClearRepeatedUint64() {
- PrepareBuilder();
- result.repeatedUint64_.Clear();
- return this;
- }
- public pbc::IPopsicleList<int> RepeatedSint32List {
- get { return PrepareBuilder().repeatedSint32_; }
- }
- public int RepeatedSint32Count {
- get { return result.RepeatedSint32Count; }
- }
- public int GetRepeatedSint32(int index) {
- return result.GetRepeatedSint32(index);
- }
- public Builder SetRepeatedSint32(int index, int value) {
- PrepareBuilder();
- result.repeatedSint32_[index] = value;
- return this;
- }
- public Builder AddRepeatedSint32(int value) {
- PrepareBuilder();
- result.repeatedSint32_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.repeatedSint32_.Add(values);
- return this;
- }
- public Builder ClearRepeatedSint32() {
- PrepareBuilder();
- result.repeatedSint32_.Clear();
- return this;
- }
- public pbc::IPopsicleList<long> RepeatedSint64List {
- get { return PrepareBuilder().repeatedSint64_; }
- }
- public int RepeatedSint64Count {
- get { return result.RepeatedSint64Count; }
- }
- public long GetRepeatedSint64(int index) {
- return result.GetRepeatedSint64(index);
- }
- public Builder SetRepeatedSint64(int index, long value) {
- PrepareBuilder();
- result.repeatedSint64_[index] = value;
- return this;
- }
- public Builder AddRepeatedSint64(long value) {
- PrepareBuilder();
- result.repeatedSint64_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) {
- PrepareBuilder();
- result.repeatedSint64_.Add(values);
- return this;
- }
- public Builder ClearRepeatedSint64() {
- PrepareBuilder();
- result.repeatedSint64_.Clear();
- return this;
- }
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<uint> RepeatedFixed32List {
- get { return PrepareBuilder().repeatedFixed32_; }
- }
- public int RepeatedFixed32Count {
- get { return result.RepeatedFixed32Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetRepeatedFixed32(int index) {
- return result.GetRepeatedFixed32(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetRepeatedFixed32(int index, uint value) {
- PrepareBuilder();
- result.repeatedFixed32_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRepeatedFixed32(uint value) {
- PrepareBuilder();
- result.repeatedFixed32_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
- PrepareBuilder();
- result.repeatedFixed32_.Add(values);
- return this;
- }
- public Builder ClearRepeatedFixed32() {
- PrepareBuilder();
- result.repeatedFixed32_.Clear();
- return this;
- }
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<ulong> RepeatedFixed64List {
- get { return PrepareBuilder().repeatedFixed64_; }
- }
- public int RepeatedFixed64Count {
- get { return result.RepeatedFixed64Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetRepeatedFixed64(int index) {
- return result.GetRepeatedFixed64(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetRepeatedFixed64(int index, ulong value) {
- PrepareBuilder();
- result.repeatedFixed64_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRepeatedFixed64(ulong value) {
- PrepareBuilder();
- result.repeatedFixed64_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
- PrepareBuilder();
- result.repeatedFixed64_.Add(values);
- return this;
- }
- public Builder ClearRepeatedFixed64() {
- PrepareBuilder();
- result.repeatedFixed64_.Clear();
- return this;
- }
- public pbc::IPopsicleList<int> RepeatedSfixed32List {
- get { return PrepareBuilder().repeatedSfixed32_; }
- }
- public int RepeatedSfixed32Count {
- get { return result.RepeatedSfixed32Count; }
- }
- public int GetRepeatedSfixed32(int index) {
- return result.GetRepeatedSfixed32(index);
- }
- public Builder SetRepeatedSfixed32(int index, int value) {
- PrepareBuilder();
- result.repeatedSfixed32_[index] = value;
- return this;
- }
- public Builder AddRepeatedSfixed32(int value) {
- PrepareBuilder();
- result.repeatedSfixed32_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.repeatedSfixed32_.Add(values);
- return this;
- }
- public Builder ClearRepeatedSfixed32() {
- PrepareBuilder();
- result.repeatedSfixed32_.Clear();
- return this;
- }
- public pbc::IPopsicleList<long> RepeatedSfixed64List {
- get { return PrepareBuilder().repeatedSfixed64_; }
- }
- public int RepeatedSfixed64Count {
- get { return result.RepeatedSfixed64Count; }
- }
- public long GetRepeatedSfixed64(int index) {
- return result.GetRepeatedSfixed64(index);
- }
- public Builder SetRepeatedSfixed64(int index, long value) {
- PrepareBuilder();
- result.repeatedSfixed64_[index] = value;
- return this;
- }
- public Builder AddRepeatedSfixed64(long value) {
- PrepareBuilder();
- result.repeatedSfixed64_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) {
- PrepareBuilder();
- result.repeatedSfixed64_.Add(values);
- return this;
- }
- public Builder ClearRepeatedSfixed64() {
- PrepareBuilder();
- result.repeatedSfixed64_.Clear();
- return this;
- }
- public pbc::IPopsicleList<float> RepeatedFloatList {
- get { return PrepareBuilder().repeatedFloat_; }
- }
- public int RepeatedFloatCount {
- get { return result.RepeatedFloatCount; }
- }
- public float GetRepeatedFloat(int index) {
- return result.GetRepeatedFloat(index);
- }
- public Builder SetRepeatedFloat(int index, float value) {
- PrepareBuilder();
- result.repeatedFloat_[index] = value;
- return this;
- }
- public Builder AddRepeatedFloat(float value) {
- PrepareBuilder();
- result.repeatedFloat_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
- PrepareBuilder();
- result.repeatedFloat_.Add(values);
- return this;
- }
- public Builder ClearRepeatedFloat() {
- PrepareBuilder();
- result.repeatedFloat_.Clear();
- return this;
- }
- public pbc::IPopsicleList<double> RepeatedDoubleList {
- get { return PrepareBuilder().repeatedDouble_; }
- }
- public int RepeatedDoubleCount {
- get { return result.RepeatedDoubleCount; }
- }
- public double GetRepeatedDouble(int index) {
- return result.GetRepeatedDouble(index);
- }
- public Builder SetRepeatedDouble(int index, double value) {
- PrepareBuilder();
- result.repeatedDouble_[index] = value;
- return this;
- }
- public Builder AddRepeatedDouble(double value) {
- PrepareBuilder();
- result.repeatedDouble_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) {
- PrepareBuilder();
- result.repeatedDouble_.Add(values);
- return this;
- }
- public Builder ClearRepeatedDouble() {
- PrepareBuilder();
- result.repeatedDouble_.Clear();
- return this;
- }
- public pbc::IPopsicleList<bool> RepeatedBoolList {
- get { return PrepareBuilder().repeatedBool_; }
- }
- public int RepeatedBoolCount {
- get { return result.RepeatedBoolCount; }
- }
- public bool GetRepeatedBool(int index) {
- return result.GetRepeatedBool(index);
- }
- public Builder SetRepeatedBool(int index, bool value) {
- PrepareBuilder();
- result.repeatedBool_[index] = value;
- return this;
- }
- public Builder AddRepeatedBool(bool value) {
- PrepareBuilder();
- result.repeatedBool_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) {
- PrepareBuilder();
- result.repeatedBool_.Add(values);
- return this;
- }
- public Builder ClearRepeatedBool() {
- PrepareBuilder();
- result.repeatedBool_.Clear();
- return this;
- }
- public pbc::IPopsicleList<string> RepeatedStringList {
- get { return PrepareBuilder().repeatedString_; }
- }
- public int RepeatedStringCount {
- get { return result.RepeatedStringCount; }
- }
- public string GetRepeatedString(int index) {
- return result.GetRepeatedString(index);
- }
- public Builder SetRepeatedString(int index, string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedString_[index] = value;
- return this;
- }
- public Builder AddRepeatedString(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedString_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) {
- PrepareBuilder();
- result.repeatedString_.Add(values);
- return this;
- }
- public Builder ClearRepeatedString() {
- PrepareBuilder();
- result.repeatedString_.Clear();
- return this;
- }
- public pbc::IPopsicleList<pb::ByteString> RepeatedBytesList {
- get { return PrepareBuilder().repeatedBytes_; }
- }
- public int RepeatedBytesCount {
- get { return result.RepeatedBytesCount; }
- }
- public pb::ByteString GetRepeatedBytes(int index) {
- return result.GetRepeatedBytes(index);
- }
- public Builder SetRepeatedBytes(int index, pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedBytes_[index] = value;
- return this;
- }
- public Builder AddRepeatedBytes(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedBytes_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) {
- PrepareBuilder();
- result.repeatedBytes_.Add(values);
- return this;
- }
- public Builder ClearRepeatedBytes() {
- PrepareBuilder();
- result.repeatedBytes_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
- get { return PrepareBuilder().repeatedGroup_; }
- }
- public int RepeatedGroupCount {
- get { return result.RepeatedGroupCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
- return result.GetRepeatedGroup(index);
- }
- public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedGroup_[index] = value;
- return this;
- }
- public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedGroup_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedGroup_.Add(value);
- return this;
- }
- public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedGroup_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> values) {
- PrepareBuilder();
- result.repeatedGroup_.Add(values);
- return this;
- }
- public Builder ClearRepeatedGroup() {
- PrepareBuilder();
- result.repeatedGroup_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
- get { return PrepareBuilder().repeatedNestedMessage_; }
- }
- public int RepeatedNestedMessageCount {
- get { return result.RepeatedNestedMessageCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
- return result.GetRepeatedNestedMessage(index);
- }
- public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedNestedMessage_[index] = value;
- return this;
- }
- public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedNestedMessage_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedNestedMessage_.Add(value);
- return this;
- }
- public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedNestedMessage_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> values) {
- PrepareBuilder();
- result.repeatedNestedMessage_.Add(values);
- return this;
- }
- public Builder ClearRepeatedNestedMessage() {
- PrepareBuilder();
- result.repeatedNestedMessage_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList {
- get { return PrepareBuilder().repeatedForeignMessage_; }
- }
- public int RepeatedForeignMessageCount {
- get { return result.RepeatedForeignMessageCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) {
- return result.GetRepeatedForeignMessage(index);
- }
- public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedForeignMessage_[index] = value;
- return this;
- }
- public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedForeignMessage_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedForeignMessage_.Add(value);
- return this;
- }
- public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedForeignMessage_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
- PrepareBuilder();
- result.repeatedForeignMessage_.Add(values);
- return this;
- }
- public Builder ClearRepeatedForeignMessage() {
- PrepareBuilder();
- result.repeatedForeignMessage_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList {
- get { return PrepareBuilder().repeatedImportMessage_; }
- }
- public int RepeatedImportMessageCount {
- get { return result.RepeatedImportMessageCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) {
- return result.GetRepeatedImportMessage(index);
- }
- public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedImportMessage_[index] = value;
- return this;
- }
- public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedImportMessage_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedImportMessage_.Add(value);
- return this;
- }
- public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedImportMessage_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessage> values) {
- PrepareBuilder();
- result.repeatedImportMessage_.Add(values);
- return this;
- }
- public Builder ClearRepeatedImportMessage() {
- PrepareBuilder();
- result.repeatedImportMessage_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
- get { return PrepareBuilder().repeatedNestedEnum_; }
- }
- public int RepeatedNestedEnumCount {
- get { return result.RepeatedNestedEnumCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
- return result.GetRepeatedNestedEnum(index);
- }
- public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
- PrepareBuilder();
- result.repeatedNestedEnum_[index] = value;
- return this;
- }
- public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
- PrepareBuilder();
- result.repeatedNestedEnum_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> values) {
- PrepareBuilder();
- result.repeatedNestedEnum_.Add(values);
- return this;
- }
- public Builder ClearRepeatedNestedEnum() {
- PrepareBuilder();
- result.repeatedNestedEnum_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList {
- get { return PrepareBuilder().repeatedForeignEnum_; }
- }
- public int RepeatedForeignEnumCount {
- get { return result.RepeatedForeignEnumCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) {
- return result.GetRepeatedForeignEnum(index);
- }
- public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
- PrepareBuilder();
- result.repeatedForeignEnum_[index] = value;
- return this;
- }
- public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
- PrepareBuilder();
- result.repeatedForeignEnum_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
- PrepareBuilder();
- result.repeatedForeignEnum_.Add(values);
- return this;
- }
- public Builder ClearRepeatedForeignEnum() {
- PrepareBuilder();
- result.repeatedForeignEnum_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList {
- get { return PrepareBuilder().repeatedImportEnum_; }
- }
- public int RepeatedImportEnumCount {
- get { return result.RepeatedImportEnumCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) {
- return result.GetRepeatedImportEnum(index);
- }
- public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
- PrepareBuilder();
- result.repeatedImportEnum_[index] = value;
- return this;
- }
- public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
- PrepareBuilder();
- result.repeatedImportEnum_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnum> values) {
- PrepareBuilder();
- result.repeatedImportEnum_.Add(values);
- return this;
- }
- public Builder ClearRepeatedImportEnum() {
- PrepareBuilder();
- result.repeatedImportEnum_.Clear();
- return this;
- }
- public pbc::IPopsicleList<string> RepeatedStringPieceList {
- get { return PrepareBuilder().repeatedStringPiece_; }
- }
- public int RepeatedStringPieceCount {
- get { return result.RepeatedStringPieceCount; }
- }
- public string GetRepeatedStringPiece(int index) {
- return result.GetRepeatedStringPiece(index);
- }
- public Builder SetRepeatedStringPiece(int index, string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedStringPiece_[index] = value;
- return this;
- }
- public Builder AddRepeatedStringPiece(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedStringPiece_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) {
- PrepareBuilder();
- result.repeatedStringPiece_.Add(values);
- return this;
- }
- public Builder ClearRepeatedStringPiece() {
- PrepareBuilder();
- result.repeatedStringPiece_.Clear();
- return this;
- }
- public pbc::IPopsicleList<string> RepeatedCordList {
- get { return PrepareBuilder().repeatedCord_; }
- }
- public int RepeatedCordCount {
- get { return result.RepeatedCordCount; }
- }
- public string GetRepeatedCord(int index) {
- return result.GetRepeatedCord(index);
- }
- public Builder SetRepeatedCord(int index, string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedCord_[index] = value;
- return this;
- }
- public Builder AddRepeatedCord(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedCord_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) {
- PrepareBuilder();
- result.repeatedCord_.Add(values);
- return this;
- }
- public Builder ClearRepeatedCord() {
- PrepareBuilder();
- result.repeatedCord_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedLazyMessageList {
- get { return PrepareBuilder().repeatedLazyMessage_; }
- }
- public int RepeatedLazyMessageCount {
- get { return result.RepeatedLazyMessageCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedLazyMessage(int index) {
- return result.GetRepeatedLazyMessage(index);
- }
- public Builder SetRepeatedLazyMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedLazyMessage_[index] = value;
- return this;
- }
- public Builder SetRepeatedLazyMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedLazyMessage_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddRepeatedLazyMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedLazyMessage_.Add(value);
- return this;
- }
- public Builder AddRepeatedLazyMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedLazyMessage_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeRepeatedLazyMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> values) {
- PrepareBuilder();
- result.repeatedLazyMessage_.Add(values);
- return this;
- }
- public Builder ClearRepeatedLazyMessage() {
- PrepareBuilder();
- result.repeatedLazyMessage_.Clear();
- return this;
- }
- public bool HasDefaultInt32 {
- get { return result.hasDefaultInt32; }
- }
- public int DefaultInt32 {
- get { return result.DefaultInt32; }
- set { SetDefaultInt32(value); }
- }
- public Builder SetDefaultInt32(int value) {
- PrepareBuilder();
- result.hasDefaultInt32 = true;
- result.defaultInt32_ = value;
- return this;
- }
- public Builder ClearDefaultInt32() {
- PrepareBuilder();
- result.hasDefaultInt32 = false;
- result.defaultInt32_ = 41;
- return this;
- }
- public bool HasDefaultInt64 {
- get { return result.hasDefaultInt64; }
- }
- public long DefaultInt64 {
- get { return result.DefaultInt64; }
- set { SetDefaultInt64(value); }
- }
- public Builder SetDefaultInt64(long value) {
- PrepareBuilder();
- result.hasDefaultInt64 = true;
- result.defaultInt64_ = value;
- return this;
- }
- public Builder ClearDefaultInt64() {
- PrepareBuilder();
- result.hasDefaultInt64 = false;
- result.defaultInt64_ = 42L;
- return this;
- }
- public bool HasDefaultUint32 {
- get { return result.hasDefaultUint32; }
- }
- [global::System.CLSCompliant(false)]
- public uint DefaultUint32 {
- get { return result.DefaultUint32; }
- set { SetDefaultUint32(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetDefaultUint32(uint value) {
- PrepareBuilder();
- result.hasDefaultUint32 = true;
- result.defaultUint32_ = value;
- return this;
- }
- public Builder ClearDefaultUint32() {
- PrepareBuilder();
- result.hasDefaultUint32 = false;
- result.defaultUint32_ = 43;
- return this;
- }
- public bool HasDefaultUint64 {
- get { return result.hasDefaultUint64; }
- }
- [global::System.CLSCompliant(false)]
- public ulong DefaultUint64 {
- get { return result.DefaultUint64; }
- set { SetDefaultUint64(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetDefaultUint64(ulong value) {
- PrepareBuilder();
- result.hasDefaultUint64 = true;
- result.defaultUint64_ = value;
- return this;
- }
- public Builder ClearDefaultUint64() {
- PrepareBuilder();
- result.hasDefaultUint64 = false;
- result.defaultUint64_ = 44UL;
- return this;
- }
- public bool HasDefaultSint32 {
- get { return result.hasDefaultSint32; }
- }
- public int DefaultSint32 {
- get { return result.DefaultSint32; }
- set { SetDefaultSint32(value); }
- }
- public Builder SetDefaultSint32(int value) {
- PrepareBuilder();
- result.hasDefaultSint32 = true;
- result.defaultSint32_ = value;
- return this;
- }
- public Builder ClearDefaultSint32() {
- PrepareBuilder();
- result.hasDefaultSint32 = false;
- result.defaultSint32_ = -45;
- return this;
- }
- public bool HasDefaultSint64 {
- get { return result.hasDefaultSint64; }
- }
- public long DefaultSint64 {
- get { return result.DefaultSint64; }
- set { SetDefaultSint64(value); }
- }
- public Builder SetDefaultSint64(long value) {
- PrepareBuilder();
- result.hasDefaultSint64 = true;
- result.defaultSint64_ = value;
- return this;
- }
- public Builder ClearDefaultSint64() {
- PrepareBuilder();
- result.hasDefaultSint64 = false;
- result.defaultSint64_ = 46L;
- return this;
- }
- public bool HasDefaultFixed32 {
- get { return result.hasDefaultFixed32; }
- }
- [global::System.CLSCompliant(false)]
- public uint DefaultFixed32 {
- get { return result.DefaultFixed32; }
- set { SetDefaultFixed32(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetDefaultFixed32(uint value) {
- PrepareBuilder();
- result.hasDefaultFixed32 = true;
- result.defaultFixed32_ = value;
- return this;
- }
- public Builder ClearDefaultFixed32() {
- PrepareBuilder();
- result.hasDefaultFixed32 = false;
- result.defaultFixed32_ = 47;
- return this;
- }
- public bool HasDefaultFixed64 {
- get { return result.hasDefaultFixed64; }
- }
- [global::System.CLSCompliant(false)]
- public ulong DefaultFixed64 {
- get { return result.DefaultFixed64; }
- set { SetDefaultFixed64(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetDefaultFixed64(ulong value) {
- PrepareBuilder();
- result.hasDefaultFixed64 = true;
- result.defaultFixed64_ = value;
- return this;
- }
- public Builder ClearDefaultFixed64() {
- PrepareBuilder();
- result.hasDefaultFixed64 = false;
- result.defaultFixed64_ = 48UL;
- return this;
- }
- public bool HasDefaultSfixed32 {
- get { return result.hasDefaultSfixed32; }
- }
- public int DefaultSfixed32 {
- get { return result.DefaultSfixed32; }
- set { SetDefaultSfixed32(value); }
- }
- public Builder SetDefaultSfixed32(int value) {
- PrepareBuilder();
- result.hasDefaultSfixed32 = true;
- result.defaultSfixed32_ = value;
- return this;
- }
- public Builder ClearDefaultSfixed32() {
- PrepareBuilder();
- result.hasDefaultSfixed32 = false;
- result.defaultSfixed32_ = 49;
- return this;
- }
- public bool HasDefaultSfixed64 {
- get { return result.hasDefaultSfixed64; }
- }
- public long DefaultSfixed64 {
- get { return result.DefaultSfixed64; }
- set { SetDefaultSfixed64(value); }
- }
- public Builder SetDefaultSfixed64(long value) {
- PrepareBuilder();
- result.hasDefaultSfixed64 = true;
- result.defaultSfixed64_ = value;
- return this;
- }
- public Builder ClearDefaultSfixed64() {
- PrepareBuilder();
- result.hasDefaultSfixed64 = false;
- result.defaultSfixed64_ = -50L;
- return this;
- }
- public bool HasDefaultFloat {
- get { return result.hasDefaultFloat; }
- }
- public float DefaultFloat {
- get { return result.DefaultFloat; }
- set { SetDefaultFloat(value); }
- }
- public Builder SetDefaultFloat(float value) {
- PrepareBuilder();
- result.hasDefaultFloat = true;
- result.defaultFloat_ = value;
- return this;
- }
- public Builder ClearDefaultFloat() {
- PrepareBuilder();
- result.hasDefaultFloat = false;
- result.defaultFloat_ = 51.5F;
- return this;
- }
- public bool HasDefaultDouble {
- get { return result.hasDefaultDouble; }
- }
- public double DefaultDouble {
- get { return result.DefaultDouble; }
- set { SetDefaultDouble(value); }
- }
- public Builder SetDefaultDouble(double value) {
- PrepareBuilder();
- result.hasDefaultDouble = true;
- result.defaultDouble_ = value;
- return this;
- }
- public Builder ClearDefaultDouble() {
- PrepareBuilder();
- result.hasDefaultDouble = false;
- result.defaultDouble_ = 52000D;
- return this;
- }
- public bool HasDefaultBool {
- get { return result.hasDefaultBool; }
- }
- public bool DefaultBool {
- get { return result.DefaultBool; }
- set { SetDefaultBool(value); }
- }
- public Builder SetDefaultBool(bool value) {
- PrepareBuilder();
- result.hasDefaultBool = true;
- result.defaultBool_ = value;
- return this;
- }
- public Builder ClearDefaultBool() {
- PrepareBuilder();
- result.hasDefaultBool = false;
- result.defaultBool_ = true;
- return this;
- }
- public bool HasDefaultString {
- get { return result.hasDefaultString; }
- }
- public string DefaultString {
- get { return result.DefaultString; }
- set { SetDefaultString(value); }
- }
- public Builder SetDefaultString(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasDefaultString = true;
- result.defaultString_ = value;
- return this;
- }
- public Builder ClearDefaultString() {
- PrepareBuilder();
- result.hasDefaultString = false;
- result.defaultString_ = "hello";
- return this;
- }
- public bool HasDefaultBytes {
- get { return result.hasDefaultBytes; }
- }
- public pb::ByteString DefaultBytes {
- get { return result.DefaultBytes; }
- set { SetDefaultBytes(value); }
- }
- public Builder SetDefaultBytes(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasDefaultBytes = true;
- result.defaultBytes_ = value;
- return this;
- }
- public Builder ClearDefaultBytes() {
- PrepareBuilder();
- result.hasDefaultBytes = false;
- result.defaultBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[65].DefaultValue;
- return this;
- }
- public bool HasDefaultNestedEnum {
- get { return result.hasDefaultNestedEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum {
- get { return result.DefaultNestedEnum; }
- set { SetDefaultNestedEnum(value); }
- }
- public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
- PrepareBuilder();
- result.hasDefaultNestedEnum = true;
- result.defaultNestedEnum_ = value;
- return this;
- }
- public Builder ClearDefaultNestedEnum() {
- PrepareBuilder();
- result.hasDefaultNestedEnum = false;
- result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR;
- return this;
- }
- public bool HasDefaultForeignEnum {
- get { return result.hasDefaultForeignEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum {
- get { return result.DefaultForeignEnum; }
- set { SetDefaultForeignEnum(value); }
- }
- public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
- PrepareBuilder();
- result.hasDefaultForeignEnum = true;
- result.defaultForeignEnum_ = value;
- return this;
- }
- public Builder ClearDefaultForeignEnum() {
- PrepareBuilder();
- result.hasDefaultForeignEnum = false;
- result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR;
- return this;
- }
- public bool HasDefaultImportEnum {
- get { return result.hasDefaultImportEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum {
- get { return result.DefaultImportEnum; }
- set { SetDefaultImportEnum(value); }
- }
- public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
- PrepareBuilder();
- result.hasDefaultImportEnum = true;
- result.defaultImportEnum_ = value;
- return this;
- }
- public Builder ClearDefaultImportEnum() {
- PrepareBuilder();
- result.hasDefaultImportEnum = false;
- result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR;
- return this;
- }
- public bool HasDefaultStringPiece {
- get { return result.hasDefaultStringPiece; }
- }
- public string DefaultStringPiece {
- get { return result.DefaultStringPiece; }
- set { SetDefaultStringPiece(value); }
- }
- public Builder SetDefaultStringPiece(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasDefaultStringPiece = true;
- result.defaultStringPiece_ = value;
- return this;
- }
- public Builder ClearDefaultStringPiece() {
- PrepareBuilder();
- result.hasDefaultStringPiece = false;
- result.defaultStringPiece_ = "abc";
- return this;
- }
- public bool HasDefaultCord {
- get { return result.hasDefaultCord; }
- }
- public string DefaultCord {
- get { return result.DefaultCord; }
- set { SetDefaultCord(value); }
- }
- public Builder SetDefaultCord(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasDefaultCord = true;
- result.defaultCord_ = value;
- return this;
- }
- public Builder ClearDefaultCord() {
- PrepareBuilder();
- result.hasDefaultCord = false;
- result.defaultCord_ = "123";
- return this;
- }
- public bool HasOneofUint32 {
- get { return result.hasOneofUint32; }
- }
- [global::System.CLSCompliant(false)]
- public uint OneofUint32 {
- get { return result.OneofUint32; }
- set { SetOneofUint32(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetOneofUint32(uint value) {
- PrepareBuilder();
- result.hasOneofUint32 = true;
- result.oneofUint32_ = value;
- return this;
- }
- public Builder ClearOneofUint32() {
- PrepareBuilder();
- result.hasOneofUint32 = false;
- result.oneofUint32_ = 0;
- return this;
- }
- public bool HasOneofNestedMessage {
- get { return result.hasOneofNestedMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OneofNestedMessage {
- get { return result.OneofNestedMessage; }
- set { SetOneofNestedMessage(value); }
- }
- public Builder SetOneofNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOneofNestedMessage = true;
- result.oneofNestedMessage_ = value;
- return this;
- }
- public Builder SetOneofNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasOneofNestedMessage = true;
- result.oneofNestedMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeOneofNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOneofNestedMessage &&
- result.oneofNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
- result.oneofNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.oneofNestedMessage_).MergeFrom(value).BuildPartial();
- } else {
- result.oneofNestedMessage_ = value;
- }
- result.hasOneofNestedMessage = true;
- return this;
- }
- public Builder ClearOneofNestedMessage() {
- PrepareBuilder();
- result.hasOneofNestedMessage = false;
- result.oneofNestedMessage_ = null;
- return this;
- }
- public bool HasOneofString {
- get { return result.hasOneofString; }
- }
- public string OneofString {
- get { return result.OneofString; }
- set { SetOneofString(value); }
- }
- public Builder SetOneofString(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOneofString = true;
- result.oneofString_ = value;
- return this;
- }
- public Builder ClearOneofString() {
- PrepareBuilder();
- result.hasOneofString = false;
- result.oneofString_ = "";
- return this;
- }
- public bool HasOneofBytes {
- get { return result.hasOneofBytes; }
- }
- public pb::ByteString OneofBytes {
- get { return result.OneofBytes; }
- set { SetOneofBytes(value); }
- }
- public Builder SetOneofBytes(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOneofBytes = true;
- result.oneofBytes_ = value;
- return this;
- }
- public Builder ClearOneofBytes() {
- PrepareBuilder();
- result.hasOneofBytes = false;
- result.oneofBytes_ = pb::ByteString.Empty;
- return this;
- }
- }
- static TestAllTypes() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class NestedTestAllTypes : pb::GeneratedMessage<NestedTestAllTypes, NestedTestAllTypes.Builder> {
- private NestedTestAllTypes() { }
- private static readonly NestedTestAllTypes defaultInstance = new NestedTestAllTypes().MakeReadOnly();
- private static readonly string[] _nestedTestAllTypesFieldNames = new string[] { "child", "payload" };
- private static readonly uint[] _nestedTestAllTypesFieldTags = new uint[] { 10, 18 };
- public static NestedTestAllTypes DefaultInstance {
- get { return defaultInstance; }
- }
- public override NestedTestAllTypes DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override NestedTestAllTypes ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_NestedTestAllTypes__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<NestedTestAllTypes, NestedTestAllTypes.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable; }
- }
- public const int ChildFieldNumber = 1;
- private bool hasChild;
- private global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes child_;
- public bool HasChild {
- get { return hasChild; }
- }
- public global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes Child {
- get { return child_ ?? global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.DefaultInstance; }
- }
- public const int PayloadFieldNumber = 2;
- private bool hasPayload;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes payload_;
- public bool HasPayload {
- get { return hasPayload; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes Payload {
- get { return payload_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _nestedTestAllTypesFieldNames;
- if (hasChild) {
- output.WriteMessage(1, field_names[0], Child);
- }
- if (hasPayload) {
- output.WriteMessage(2, field_names[1], Payload);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasChild) {
- size += pb::CodedOutputStream.ComputeMessageSize(1, Child);
- }
- if (hasPayload) {
- size += pb::CodedOutputStream.ComputeMessageSize(2, Payload);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static NestedTestAllTypes ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static NestedTestAllTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static NestedTestAllTypes ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static NestedTestAllTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static NestedTestAllTypes ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static NestedTestAllTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static NestedTestAllTypes ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static NestedTestAllTypes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static NestedTestAllTypes ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static NestedTestAllTypes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private NestedTestAllTypes MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(NestedTestAllTypes prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<NestedTestAllTypes, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(NestedTestAllTypes cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private NestedTestAllTypes result;
- private NestedTestAllTypes PrepareBuilder() {
- if (resultIsReadOnly) {
- NestedTestAllTypes original = result;
- result = new NestedTestAllTypes();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override NestedTestAllTypes MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.Descriptor; }
- }
- public override NestedTestAllTypes DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.DefaultInstance; }
- }
- public override NestedTestAllTypes BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is NestedTestAllTypes) {
- return MergeFrom((NestedTestAllTypes) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(NestedTestAllTypes other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasChild) {
- MergeChild(other.Child);
- }
- if (other.HasPayload) {
- MergePayload(other.Payload);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_nestedTestAllTypesFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _nestedTestAllTypesFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.CreateBuilder();
- if (result.hasChild) {
- subBuilder.MergeFrom(Child);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- Child = subBuilder.BuildPartial();
- break;
- }
- case 18: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
- if (result.hasPayload) {
- subBuilder.MergeFrom(Payload);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- Payload = subBuilder.BuildPartial();
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasChild {
- get { return result.hasChild; }
- }
- public global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes Child {
- get { return result.Child; }
- set { SetChild(value); }
- }
- public Builder SetChild(global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasChild = true;
- result.child_ = value;
- return this;
- }
- public Builder SetChild(global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasChild = true;
- result.child_ = builderForValue.Build();
- return this;
- }
- public Builder MergeChild(global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasChild &&
- result.child_ != global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.DefaultInstance) {
- result.child_ = global::Google.ProtocolBuffers.TestProtos.NestedTestAllTypes.CreateBuilder(result.child_).MergeFrom(value).BuildPartial();
- } else {
- result.child_ = value;
- }
- result.hasChild = true;
- return this;
- }
- public Builder ClearChild() {
- PrepareBuilder();
- result.hasChild = false;
- result.child_ = null;
- return this;
- }
- public bool HasPayload {
- get { return result.hasPayload; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes Payload {
- get { return result.Payload; }
- set { SetPayload(value); }
- }
- public Builder SetPayload(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasPayload = true;
- result.payload_ = value;
- return this;
- }
- public Builder SetPayload(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasPayload = true;
- result.payload_ = builderForValue.Build();
- return this;
- }
- public Builder MergePayload(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasPayload &&
- result.payload_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
- result.payload_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.payload_).MergeFrom(value).BuildPartial();
- } else {
- result.payload_ = value;
- }
- result.hasPayload = true;
- return this;
- }
- public Builder ClearPayload() {
- PrepareBuilder();
- result.hasPayload = false;
- result.payload_ = null;
- return this;
- }
- }
- static NestedTestAllTypes() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestDeprecatedFields : pb::GeneratedMessage<TestDeprecatedFields, TestDeprecatedFields.Builder> {
- private TestDeprecatedFields() { }
- private static readonly TestDeprecatedFields defaultInstance = new TestDeprecatedFields().MakeReadOnly();
- private static readonly string[] _testDeprecatedFieldsFieldNames = new string[] { "deprecated_int32" };
- private static readonly uint[] _testDeprecatedFieldsFieldTags = new uint[] { 8 };
- public static TestDeprecatedFields DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestDeprecatedFields DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestDeprecatedFields ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDeprecatedFields__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestDeprecatedFields, TestDeprecatedFields.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDeprecatedFields__FieldAccessorTable; }
- }
- public const int DeprecatedInt32FieldNumber = 1;
- private bool hasDeprecatedInt32;
- private int deprecatedInt32_;
- [global::System.ObsoleteAttribute()]
- public bool HasDeprecatedInt32 {
- get { return hasDeprecatedInt32; }
- }
- [global::System.ObsoleteAttribute()]
- public int DeprecatedInt32 {
- get { return deprecatedInt32_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testDeprecatedFieldsFieldNames;
- if (hasDeprecatedInt32) {
- output.WriteInt32(1, field_names[0], DeprecatedInt32);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasDeprecatedInt32) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, DeprecatedInt32);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestDeprecatedFields ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestDeprecatedFields ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestDeprecatedFields ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestDeprecatedFields ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestDeprecatedFields ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestDeprecatedFields ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestDeprecatedFields ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestDeprecatedFields ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestDeprecatedFields ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestDeprecatedFields ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestDeprecatedFields MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestDeprecatedFields prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestDeprecatedFields, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestDeprecatedFields cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestDeprecatedFields result;
- private TestDeprecatedFields PrepareBuilder() {
- if (resultIsReadOnly) {
- TestDeprecatedFields original = result;
- result = new TestDeprecatedFields();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestDeprecatedFields MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.Descriptor; }
- }
- public override TestDeprecatedFields DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.DefaultInstance; }
- }
- public override TestDeprecatedFields BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestDeprecatedFields) {
- return MergeFrom((TestDeprecatedFields) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestDeprecatedFields other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestDeprecatedFields.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasDeprecatedInt32) {
- DeprecatedInt32 = other.DeprecatedInt32;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testDeprecatedFieldsFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testDeprecatedFieldsFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasDeprecatedInt32 = input.ReadInt32(ref result.deprecatedInt32_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- [global::System.ObsoleteAttribute()]
- public bool HasDeprecatedInt32 {
- get { return result.hasDeprecatedInt32; }
- }
- [global::System.ObsoleteAttribute()]
- public int DeprecatedInt32 {
- get { return result.DeprecatedInt32; }
- set { SetDeprecatedInt32(value); }
- }
- [global::System.ObsoleteAttribute()]
- public Builder SetDeprecatedInt32(int value) {
- PrepareBuilder();
- result.hasDeprecatedInt32 = true;
- result.deprecatedInt32_ = value;
- return this;
- }
- [global::System.ObsoleteAttribute()]
- public Builder ClearDeprecatedInt32() {
- PrepareBuilder();
- result.hasDeprecatedInt32 = false;
- result.deprecatedInt32_ = 0;
- return this;
- }
- }
- static TestDeprecatedFields() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class ForeignMessage : pb::GeneratedMessage<ForeignMessage, ForeignMessage.Builder> {
- private ForeignMessage() { }
- private static readonly ForeignMessage defaultInstance = new ForeignMessage().MakeReadOnly();
- private static readonly string[] _foreignMessageFieldNames = new string[] { "c" };
- private static readonly uint[] _foreignMessageFieldTags = new uint[] { 8 };
- public static ForeignMessage DefaultInstance {
- get { return defaultInstance; }
- }
- public override ForeignMessage DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override ForeignMessage ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_ForeignMessage__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<ForeignMessage, ForeignMessage.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; }
- }
- public const int CFieldNumber = 1;
- private bool hasC;
- private int c_;
- public bool HasC {
- get { return hasC; }
- }
- public int C {
- get { return c_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _foreignMessageFieldNames;
- if (hasC) {
- output.WriteInt32(1, field_names[0], C);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasC) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, C);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static ForeignMessage ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static ForeignMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static ForeignMessage ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static ForeignMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static ForeignMessage ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static ForeignMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static ForeignMessage ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static ForeignMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static ForeignMessage ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static ForeignMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private ForeignMessage MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(ForeignMessage prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<ForeignMessage, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(ForeignMessage cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private ForeignMessage result;
- private ForeignMessage PrepareBuilder() {
- if (resultIsReadOnly) {
- ForeignMessage original = result;
- result = new ForeignMessage();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override ForeignMessage MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Descriptor; }
- }
- public override ForeignMessage DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; }
- }
- public override ForeignMessage BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is ForeignMessage) {
- return MergeFrom((ForeignMessage) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(ForeignMessage other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasC) {
- C = other.C;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_foreignMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _foreignMessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasC = input.ReadInt32(ref result.c_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasC {
- get { return result.hasC; }
- }
- public int C {
- get { return result.C; }
- set { SetC(value); }
- }
- public Builder SetC(int value) {
- PrepareBuilder();
- result.hasC = true;
- result.c_ = value;
- return this;
- }
- public Builder ClearC() {
- PrepareBuilder();
- result.hasC = false;
- result.c_ = 0;
- return this;
- }
- }
- static ForeignMessage() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestAllExtensions : pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder> {
- private TestAllExtensions() { }
- private static readonly TestAllExtensions defaultInstance = new TestAllExtensions().MakeReadOnly();
- private static readonly string[] _testAllExtensionsFieldNames = new string[] { };
- private static readonly uint[] _testAllExtensionsFieldTags = new uint[] { };
- public static TestAllExtensions DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestAllExtensions DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestAllExtensions ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllExtensions__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestAllExtensions, TestAllExtensions.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable; }
- }
- public override bool IsInitialized {
- get {
- if (!ExtensionsAreInitialized) return false;
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testAllExtensionsFieldNames;
- pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
- extensionWriter.WriteUntil(536870912, output);
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- size += ExtensionsSerializedSize;
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestAllExtensions ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestAllExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestAllExtensions ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestAllExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestAllExtensions ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestAllExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestAllExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestAllExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestAllExtensions ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestAllExtensions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestAllExtensions MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestAllExtensions prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::ExtendableBuilder<TestAllExtensions, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestAllExtensions cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestAllExtensions result;
- private TestAllExtensions PrepareBuilder() {
- if (resultIsReadOnly) {
- TestAllExtensions original = result;
- result = new TestAllExtensions();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestAllExtensions MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Descriptor; }
- }
- public override TestAllExtensions DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.DefaultInstance; }
- }
- public override TestAllExtensions BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestAllExtensions) {
- return MergeFrom((TestAllExtensions) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestAllExtensions other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.DefaultInstance) return this;
- PrepareBuilder();
- this.MergeExtensionFields(other);
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testAllExtensionsFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testAllExtensionsFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- }
- static TestAllExtensions() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class OptionalGroup_extension : pb::GeneratedMessage<OptionalGroup_extension, OptionalGroup_extension.Builder> {
- private OptionalGroup_extension() { }
- private static readonly OptionalGroup_extension defaultInstance = new OptionalGroup_extension().MakeReadOnly();
- private static readonly string[] _optionalGroupExtensionFieldNames = new string[] { "a" };
- private static readonly uint[] _optionalGroupExtensionFieldTags = new uint[] { 136 };
- public static OptionalGroup_extension DefaultInstance {
- get { return defaultInstance; }
- }
- public override OptionalGroup_extension DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override OptionalGroup_extension ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup_extension, OptionalGroup_extension.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable; }
- }
- public const int AFieldNumber = 17;
- private bool hasA;
- private int a_;
- public bool HasA {
- get { return hasA; }
- }
- public int A {
- get { return a_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _optionalGroupExtensionFieldNames;
- if (hasA) {
- output.WriteInt32(17, field_names[0], A);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeInt32Size(17, A);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static OptionalGroup_extension ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static OptionalGroup_extension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static OptionalGroup_extension ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static OptionalGroup_extension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static OptionalGroup_extension ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static OptionalGroup_extension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static OptionalGroup_extension ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static OptionalGroup_extension ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static OptionalGroup_extension ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static OptionalGroup_extension ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private OptionalGroup_extension MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(OptionalGroup_extension prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<OptionalGroup_extension, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(OptionalGroup_extension cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private OptionalGroup_extension result;
- private OptionalGroup_extension PrepareBuilder() {
- if (resultIsReadOnly) {
- OptionalGroup_extension original = result;
- result = new OptionalGroup_extension();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override OptionalGroup_extension MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Descriptor; }
- }
- public override OptionalGroup_extension DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.DefaultInstance; }
- }
- public override OptionalGroup_extension BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is OptionalGroup_extension) {
- return MergeFrom((OptionalGroup_extension) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(OptionalGroup_extension other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_optionalGroupExtensionFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _optionalGroupExtensionFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 136: {
- result.hasA = input.ReadInt32(ref result.a_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasA {
- get { return result.hasA; }
- }
- public int A {
- get { return result.A; }
- set { SetA(value); }
- }
- public Builder SetA(int value) {
- PrepareBuilder();
- result.hasA = true;
- result.a_ = value;
- return this;
- }
- public Builder ClearA() {
- PrepareBuilder();
- result.hasA = false;
- result.a_ = 0;
- return this;
- }
- }
- static OptionalGroup_extension() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class RepeatedGroup_extension : pb::GeneratedMessage<RepeatedGroup_extension, RepeatedGroup_extension.Builder> {
- private RepeatedGroup_extension() { }
- private static readonly RepeatedGroup_extension defaultInstance = new RepeatedGroup_extension().MakeReadOnly();
- private static readonly string[] _repeatedGroupExtensionFieldNames = new string[] { "a" };
- private static readonly uint[] _repeatedGroupExtensionFieldTags = new uint[] { 376 };
- public static RepeatedGroup_extension DefaultInstance {
- get { return defaultInstance; }
- }
- public override RepeatedGroup_extension DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override RepeatedGroup_extension ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup_extension, RepeatedGroup_extension.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable; }
- }
- public const int AFieldNumber = 47;
- private bool hasA;
- private int a_;
- public bool HasA {
- get { return hasA; }
- }
- public int A {
- get { return a_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _repeatedGroupExtensionFieldNames;
- if (hasA) {
- output.WriteInt32(47, field_names[0], A);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeInt32Size(47, A);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static RepeatedGroup_extension ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static RepeatedGroup_extension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static RepeatedGroup_extension ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static RepeatedGroup_extension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static RepeatedGroup_extension ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static RepeatedGroup_extension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static RepeatedGroup_extension ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static RepeatedGroup_extension ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static RepeatedGroup_extension ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static RepeatedGroup_extension ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private RepeatedGroup_extension MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(RepeatedGroup_extension prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<RepeatedGroup_extension, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(RepeatedGroup_extension cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private RepeatedGroup_extension result;
- private RepeatedGroup_extension PrepareBuilder() {
- if (resultIsReadOnly) {
- RepeatedGroup_extension original = result;
- result = new RepeatedGroup_extension();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override RepeatedGroup_extension MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Descriptor; }
- }
- public override RepeatedGroup_extension DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.DefaultInstance; }
- }
- public override RepeatedGroup_extension BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is RepeatedGroup_extension) {
- return MergeFrom((RepeatedGroup_extension) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(RepeatedGroup_extension other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_repeatedGroupExtensionFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _repeatedGroupExtensionFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 376: {
- result.hasA = input.ReadInt32(ref result.a_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasA {
- get { return result.hasA; }
- }
- public int A {
- get { return result.A; }
- set { SetA(value); }
- }
- public Builder SetA(int value) {
- PrepareBuilder();
- result.hasA = true;
- result.a_ = value;
- return this;
- }
- public Builder ClearA() {
- PrepareBuilder();
- result.hasA = false;
- result.a_ = 0;
- return this;
- }
- }
- static RepeatedGroup_extension() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestNestedExtension : pb::GeneratedMessage<TestNestedExtension, TestNestedExtension.Builder> {
- private TestNestedExtension() { }
- private static readonly TestNestedExtension defaultInstance = new TestNestedExtension().MakeReadOnly();
- private static readonly string[] _testNestedExtensionFieldNames = new string[] { };
- private static readonly uint[] _testNestedExtensionFieldTags = new uint[] { };
- public static TestNestedExtension DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestNestedExtension DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestNestedExtension ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestNestedExtension__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestNestedExtension, TestNestedExtension.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestNestedExtension__FieldAccessorTable; }
- }
- public const int TestFieldNumber = 1002;
- public static pb::GeneratedExtensionBase<string> Test;
- public const int NestedStringExtensionFieldNumber = 1003;
- public static pb::GeneratedExtensionBase<string> NestedStringExtension;
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testNestedExtensionFieldNames;
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestNestedExtension ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestNestedExtension ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestNestedExtension ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestNestedExtension ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestNestedExtension ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestNestedExtension ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestNestedExtension ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestNestedExtension ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestNestedExtension ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestNestedExtension ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestNestedExtension MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestNestedExtension prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestNestedExtension, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestNestedExtension cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestNestedExtension result;
- private TestNestedExtension PrepareBuilder() {
- if (resultIsReadOnly) {
- TestNestedExtension original = result;
- result = new TestNestedExtension();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestNestedExtension MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.Descriptor; }
- }
- public override TestNestedExtension DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.DefaultInstance; }
- }
- public override TestNestedExtension BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestNestedExtension) {
- return MergeFrom((TestNestedExtension) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestNestedExtension other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedExtension.DefaultInstance) return this;
- PrepareBuilder();
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testNestedExtensionFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testNestedExtensionFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- }
- static TestNestedExtension() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestRequired : pb::GeneratedMessage<TestRequired, TestRequired.Builder> {
- private TestRequired() { }
- private static readonly TestRequired defaultInstance = new TestRequired().MakeReadOnly();
- private static readonly string[] _testRequiredFieldNames = new string[] { "a", "b", "c", "dummy10", "dummy11", "dummy12", "dummy13", "dummy14", "dummy15", "dummy16", "dummy17", "dummy18", "dummy19", "dummy2", "dummy20", "dummy21", "dummy22", "dummy23", "dummy24", "dummy25", "dummy26", "dummy27", "dummy28", "dummy29", "dummy30", "dummy31", "dummy32", "dummy4", "dummy5", "dummy6", "dummy7", "dummy8", "dummy9" };
- private static readonly uint[] _testRequiredFieldTags = new uint[] { 8, 24, 264, 80, 88, 96, 104, 112, 120, 128, 136, 144, 152, 16, 160, 168, 176, 184, 192, 200, 208, 216, 224, 232, 240, 248, 256, 32, 40, 48, 56, 64, 72 };
- public static TestRequired DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestRequired DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestRequired ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRequired__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestRequired, TestRequired.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRequired__FieldAccessorTable; }
- }
- public const int SingleFieldNumber = 1000;
- public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestRequired> Single;
- public const int MultiFieldNumber = 1001;
- public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired>> Multi;
- public const int AFieldNumber = 1;
- private bool hasA;
- private int a_;
- public bool HasA {
- get { return hasA; }
- }
- public int A {
- get { return a_; }
- }
- public const int Dummy2FieldNumber = 2;
- private bool hasDummy2;
- private int dummy2_;
- public bool HasDummy2 {
- get { return hasDummy2; }
- }
- public int Dummy2 {
- get { return dummy2_; }
- }
- public const int BFieldNumber = 3;
- private bool hasB;
- private int b_;
- public bool HasB {
- get { return hasB; }
- }
- public int B {
- get { return b_; }
- }
- public const int Dummy4FieldNumber = 4;
- private bool hasDummy4;
- private int dummy4_;
- public bool HasDummy4 {
- get { return hasDummy4; }
- }
- public int Dummy4 {
- get { return dummy4_; }
- }
- public const int Dummy5FieldNumber = 5;
- private bool hasDummy5;
- private int dummy5_;
- public bool HasDummy5 {
- get { return hasDummy5; }
- }
- public int Dummy5 {
- get { return dummy5_; }
- }
- public const int Dummy6FieldNumber = 6;
- private bool hasDummy6;
- private int dummy6_;
- public bool HasDummy6 {
- get { return hasDummy6; }
- }
- public int Dummy6 {
- get { return dummy6_; }
- }
- public const int Dummy7FieldNumber = 7;
- private bool hasDummy7;
- private int dummy7_;
- public bool HasDummy7 {
- get { return hasDummy7; }
- }
- public int Dummy7 {
- get { return dummy7_; }
- }
- public const int Dummy8FieldNumber = 8;
- private bool hasDummy8;
- private int dummy8_;
- public bool HasDummy8 {
- get { return hasDummy8; }
- }
- public int Dummy8 {
- get { return dummy8_; }
- }
- public const int Dummy9FieldNumber = 9;
- private bool hasDummy9;
- private int dummy9_;
- public bool HasDummy9 {
- get { return hasDummy9; }
- }
- public int Dummy9 {
- get { return dummy9_; }
- }
- public const int Dummy10FieldNumber = 10;
- private bool hasDummy10;
- private int dummy10_;
- public bool HasDummy10 {
- get { return hasDummy10; }
- }
- public int Dummy10 {
- get { return dummy10_; }
- }
- public const int Dummy11FieldNumber = 11;
- private bool hasDummy11;
- private int dummy11_;
- public bool HasDummy11 {
- get { return hasDummy11; }
- }
- public int Dummy11 {
- get { return dummy11_; }
- }
- public const int Dummy12FieldNumber = 12;
- private bool hasDummy12;
- private int dummy12_;
- public bool HasDummy12 {
- get { return hasDummy12; }
- }
- public int Dummy12 {
- get { return dummy12_; }
- }
- public const int Dummy13FieldNumber = 13;
- private bool hasDummy13;
- private int dummy13_;
- public bool HasDummy13 {
- get { return hasDummy13; }
- }
- public int Dummy13 {
- get { return dummy13_; }
- }
- public const int Dummy14FieldNumber = 14;
- private bool hasDummy14;
- private int dummy14_;
- public bool HasDummy14 {
- get { return hasDummy14; }
- }
- public int Dummy14 {
- get { return dummy14_; }
- }
- public const int Dummy15FieldNumber = 15;
- private bool hasDummy15;
- private int dummy15_;
- public bool HasDummy15 {
- get { return hasDummy15; }
- }
- public int Dummy15 {
- get { return dummy15_; }
- }
- public const int Dummy16FieldNumber = 16;
- private bool hasDummy16;
- private int dummy16_;
- public bool HasDummy16 {
- get { return hasDummy16; }
- }
- public int Dummy16 {
- get { return dummy16_; }
- }
- public const int Dummy17FieldNumber = 17;
- private bool hasDummy17;
- private int dummy17_;
- public bool HasDummy17 {
- get { return hasDummy17; }
- }
- public int Dummy17 {
- get { return dummy17_; }
- }
- public const int Dummy18FieldNumber = 18;
- private bool hasDummy18;
- private int dummy18_;
- public bool HasDummy18 {
- get { return hasDummy18; }
- }
- public int Dummy18 {
- get { return dummy18_; }
- }
- public const int Dummy19FieldNumber = 19;
- private bool hasDummy19;
- private int dummy19_;
- public bool HasDummy19 {
- get { return hasDummy19; }
- }
- public int Dummy19 {
- get { return dummy19_; }
- }
- public const int Dummy20FieldNumber = 20;
- private bool hasDummy20;
- private int dummy20_;
- public bool HasDummy20 {
- get { return hasDummy20; }
- }
- public int Dummy20 {
- get { return dummy20_; }
- }
- public const int Dummy21FieldNumber = 21;
- private bool hasDummy21;
- private int dummy21_;
- public bool HasDummy21 {
- get { return hasDummy21; }
- }
- public int Dummy21 {
- get { return dummy21_; }
- }
- public const int Dummy22FieldNumber = 22;
- private bool hasDummy22;
- private int dummy22_;
- public bool HasDummy22 {
- get { return hasDummy22; }
- }
- public int Dummy22 {
- get { return dummy22_; }
- }
- public const int Dummy23FieldNumber = 23;
- private bool hasDummy23;
- private int dummy23_;
- public bool HasDummy23 {
- get { return hasDummy23; }
- }
- public int Dummy23 {
- get { return dummy23_; }
- }
- public const int Dummy24FieldNumber = 24;
- private bool hasDummy24;
- private int dummy24_;
- public bool HasDummy24 {
- get { return hasDummy24; }
- }
- public int Dummy24 {
- get { return dummy24_; }
- }
- public const int Dummy25FieldNumber = 25;
- private bool hasDummy25;
- private int dummy25_;
- public bool HasDummy25 {
- get { return hasDummy25; }
- }
- public int Dummy25 {
- get { return dummy25_; }
- }
- public const int Dummy26FieldNumber = 26;
- private bool hasDummy26;
- private int dummy26_;
- public bool HasDummy26 {
- get { return hasDummy26; }
- }
- public int Dummy26 {
- get { return dummy26_; }
- }
- public const int Dummy27FieldNumber = 27;
- private bool hasDummy27;
- private int dummy27_;
- public bool HasDummy27 {
- get { return hasDummy27; }
- }
- public int Dummy27 {
- get { return dummy27_; }
- }
- public const int Dummy28FieldNumber = 28;
- private bool hasDummy28;
- private int dummy28_;
- public bool HasDummy28 {
- get { return hasDummy28; }
- }
- public int Dummy28 {
- get { return dummy28_; }
- }
- public const int Dummy29FieldNumber = 29;
- private bool hasDummy29;
- private int dummy29_;
- public bool HasDummy29 {
- get { return hasDummy29; }
- }
- public int Dummy29 {
- get { return dummy29_; }
- }
- public const int Dummy30FieldNumber = 30;
- private bool hasDummy30;
- private int dummy30_;
- public bool HasDummy30 {
- get { return hasDummy30; }
- }
- public int Dummy30 {
- get { return dummy30_; }
- }
- public const int Dummy31FieldNumber = 31;
- private bool hasDummy31;
- private int dummy31_;
- public bool HasDummy31 {
- get { return hasDummy31; }
- }
- public int Dummy31 {
- get { return dummy31_; }
- }
- public const int Dummy32FieldNumber = 32;
- private bool hasDummy32;
- private int dummy32_;
- public bool HasDummy32 {
- get { return hasDummy32; }
- }
- public int Dummy32 {
- get { return dummy32_; }
- }
- public const int CFieldNumber = 33;
- private bool hasC;
- private int c_;
- public bool HasC {
- get { return hasC; }
- }
- public int C {
- get { return c_; }
- }
- public override bool IsInitialized {
- get {
- if (!hasA) return false;
- if (!hasB) return false;
- if (!hasC) return false;
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testRequiredFieldNames;
- if (hasA) {
- output.WriteInt32(1, field_names[0], A);
- }
- if (hasDummy2) {
- output.WriteInt32(2, field_names[13], Dummy2);
- }
- if (hasB) {
- output.WriteInt32(3, field_names[1], B);
- }
- if (hasDummy4) {
- output.WriteInt32(4, field_names[27], Dummy4);
- }
- if (hasDummy5) {
- output.WriteInt32(5, field_names[28], Dummy5);
- }
- if (hasDummy6) {
- output.WriteInt32(6, field_names[29], Dummy6);
- }
- if (hasDummy7) {
- output.WriteInt32(7, field_names[30], Dummy7);
- }
- if (hasDummy8) {
- output.WriteInt32(8, field_names[31], Dummy8);
- }
- if (hasDummy9) {
- output.WriteInt32(9, field_names[32], Dummy9);
- }
- if (hasDummy10) {
- output.WriteInt32(10, field_names[3], Dummy10);
- }
- if (hasDummy11) {
- output.WriteInt32(11, field_names[4], Dummy11);
- }
- if (hasDummy12) {
- output.WriteInt32(12, field_names[5], Dummy12);
- }
- if (hasDummy13) {
- output.WriteInt32(13, field_names[6], Dummy13);
- }
- if (hasDummy14) {
- output.WriteInt32(14, field_names[7], Dummy14);
- }
- if (hasDummy15) {
- output.WriteInt32(15, field_names[8], Dummy15);
- }
- if (hasDummy16) {
- output.WriteInt32(16, field_names[9], Dummy16);
- }
- if (hasDummy17) {
- output.WriteInt32(17, field_names[10], Dummy17);
- }
- if (hasDummy18) {
- output.WriteInt32(18, field_names[11], Dummy18);
- }
- if (hasDummy19) {
- output.WriteInt32(19, field_names[12], Dummy19);
- }
- if (hasDummy20) {
- output.WriteInt32(20, field_names[14], Dummy20);
- }
- if (hasDummy21) {
- output.WriteInt32(21, field_names[15], Dummy21);
- }
- if (hasDummy22) {
- output.WriteInt32(22, field_names[16], Dummy22);
- }
- if (hasDummy23) {
- output.WriteInt32(23, field_names[17], Dummy23);
- }
- if (hasDummy24) {
- output.WriteInt32(24, field_names[18], Dummy24);
- }
- if (hasDummy25) {
- output.WriteInt32(25, field_names[19], Dummy25);
- }
- if (hasDummy26) {
- output.WriteInt32(26, field_names[20], Dummy26);
- }
- if (hasDummy27) {
- output.WriteInt32(27, field_names[21], Dummy27);
- }
- if (hasDummy28) {
- output.WriteInt32(28, field_names[22], Dummy28);
- }
- if (hasDummy29) {
- output.WriteInt32(29, field_names[23], Dummy29);
- }
- if (hasDummy30) {
- output.WriteInt32(30, field_names[24], Dummy30);
- }
- if (hasDummy31) {
- output.WriteInt32(31, field_names[25], Dummy31);
- }
- if (hasDummy32) {
- output.WriteInt32(32, field_names[26], Dummy32);
- }
- if (hasC) {
- output.WriteInt32(33, field_names[2], C);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, A);
- }
- if (hasDummy2) {
- size += pb::CodedOutputStream.ComputeInt32Size(2, Dummy2);
- }
- if (hasB) {
- size += pb::CodedOutputStream.ComputeInt32Size(3, B);
- }
- if (hasDummy4) {
- size += pb::CodedOutputStream.ComputeInt32Size(4, Dummy4);
- }
- if (hasDummy5) {
- size += pb::CodedOutputStream.ComputeInt32Size(5, Dummy5);
- }
- if (hasDummy6) {
- size += pb::CodedOutputStream.ComputeInt32Size(6, Dummy6);
- }
- if (hasDummy7) {
- size += pb::CodedOutputStream.ComputeInt32Size(7, Dummy7);
- }
- if (hasDummy8) {
- size += pb::CodedOutputStream.ComputeInt32Size(8, Dummy8);
- }
- if (hasDummy9) {
- size += pb::CodedOutputStream.ComputeInt32Size(9, Dummy9);
- }
- if (hasDummy10) {
- size += pb::CodedOutputStream.ComputeInt32Size(10, Dummy10);
- }
- if (hasDummy11) {
- size += pb::CodedOutputStream.ComputeInt32Size(11, Dummy11);
- }
- if (hasDummy12) {
- size += pb::CodedOutputStream.ComputeInt32Size(12, Dummy12);
- }
- if (hasDummy13) {
- size += pb::CodedOutputStream.ComputeInt32Size(13, Dummy13);
- }
- if (hasDummy14) {
- size += pb::CodedOutputStream.ComputeInt32Size(14, Dummy14);
- }
- if (hasDummy15) {
- size += pb::CodedOutputStream.ComputeInt32Size(15, Dummy15);
- }
- if (hasDummy16) {
- size += pb::CodedOutputStream.ComputeInt32Size(16, Dummy16);
- }
- if (hasDummy17) {
- size += pb::CodedOutputStream.ComputeInt32Size(17, Dummy17);
- }
- if (hasDummy18) {
- size += pb::CodedOutputStream.ComputeInt32Size(18, Dummy18);
- }
- if (hasDummy19) {
- size += pb::CodedOutputStream.ComputeInt32Size(19, Dummy19);
- }
- if (hasDummy20) {
- size += pb::CodedOutputStream.ComputeInt32Size(20, Dummy20);
- }
- if (hasDummy21) {
- size += pb::CodedOutputStream.ComputeInt32Size(21, Dummy21);
- }
- if (hasDummy22) {
- size += pb::CodedOutputStream.ComputeInt32Size(22, Dummy22);
- }
- if (hasDummy23) {
- size += pb::CodedOutputStream.ComputeInt32Size(23, Dummy23);
- }
- if (hasDummy24) {
- size += pb::CodedOutputStream.ComputeInt32Size(24, Dummy24);
- }
- if (hasDummy25) {
- size += pb::CodedOutputStream.ComputeInt32Size(25, Dummy25);
- }
- if (hasDummy26) {
- size += pb::CodedOutputStream.ComputeInt32Size(26, Dummy26);
- }
- if (hasDummy27) {
- size += pb::CodedOutputStream.ComputeInt32Size(27, Dummy27);
- }
- if (hasDummy28) {
- size += pb::CodedOutputStream.ComputeInt32Size(28, Dummy28);
- }
- if (hasDummy29) {
- size += pb::CodedOutputStream.ComputeInt32Size(29, Dummy29);
- }
- if (hasDummy30) {
- size += pb::CodedOutputStream.ComputeInt32Size(30, Dummy30);
- }
- if (hasDummy31) {
- size += pb::CodedOutputStream.ComputeInt32Size(31, Dummy31);
- }
- if (hasDummy32) {
- size += pb::CodedOutputStream.ComputeInt32Size(32, Dummy32);
- }
- if (hasC) {
- size += pb::CodedOutputStream.ComputeInt32Size(33, C);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestRequired ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestRequired ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestRequired ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestRequired ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestRequired ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestRequired ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestRequired ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestRequired ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestRequired ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestRequired ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestRequired MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestRequired prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestRequired, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestRequired cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestRequired result;
- private TestRequired PrepareBuilder() {
- if (resultIsReadOnly) {
- TestRequired original = result;
- result = new TestRequired();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestRequired MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestRequired.Descriptor; }
- }
- public override TestRequired DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance; }
- }
- public override TestRequired BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestRequired) {
- return MergeFrom((TestRequired) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestRequired other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- if (other.HasDummy2) {
- Dummy2 = other.Dummy2;
- }
- if (other.HasB) {
- B = other.B;
- }
- if (other.HasDummy4) {
- Dummy4 = other.Dummy4;
- }
- if (other.HasDummy5) {
- Dummy5 = other.Dummy5;
- }
- if (other.HasDummy6) {
- Dummy6 = other.Dummy6;
- }
- if (other.HasDummy7) {
- Dummy7 = other.Dummy7;
- }
- if (other.HasDummy8) {
- Dummy8 = other.Dummy8;
- }
- if (other.HasDummy9) {
- Dummy9 = other.Dummy9;
- }
- if (other.HasDummy10) {
- Dummy10 = other.Dummy10;
- }
- if (other.HasDummy11) {
- Dummy11 = other.Dummy11;
- }
- if (other.HasDummy12) {
- Dummy12 = other.Dummy12;
- }
- if (other.HasDummy13) {
- Dummy13 = other.Dummy13;
- }
- if (other.HasDummy14) {
- Dummy14 = other.Dummy14;
- }
- if (other.HasDummy15) {
- Dummy15 = other.Dummy15;
- }
- if (other.HasDummy16) {
- Dummy16 = other.Dummy16;
- }
- if (other.HasDummy17) {
- Dummy17 = other.Dummy17;
- }
- if (other.HasDummy18) {
- Dummy18 = other.Dummy18;
- }
- if (other.HasDummy19) {
- Dummy19 = other.Dummy19;
- }
- if (other.HasDummy20) {
- Dummy20 = other.Dummy20;
- }
- if (other.HasDummy21) {
- Dummy21 = other.Dummy21;
- }
- if (other.HasDummy22) {
- Dummy22 = other.Dummy22;
- }
- if (other.HasDummy23) {
- Dummy23 = other.Dummy23;
- }
- if (other.HasDummy24) {
- Dummy24 = other.Dummy24;
- }
- if (other.HasDummy25) {
- Dummy25 = other.Dummy25;
- }
- if (other.HasDummy26) {
- Dummy26 = other.Dummy26;
- }
- if (other.HasDummy27) {
- Dummy27 = other.Dummy27;
- }
- if (other.HasDummy28) {
- Dummy28 = other.Dummy28;
- }
- if (other.HasDummy29) {
- Dummy29 = other.Dummy29;
- }
- if (other.HasDummy30) {
- Dummy30 = other.Dummy30;
- }
- if (other.HasDummy31) {
- Dummy31 = other.Dummy31;
- }
- if (other.HasDummy32) {
- Dummy32 = other.Dummy32;
- }
- if (other.HasC) {
- C = other.C;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testRequiredFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testRequiredFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasA = input.ReadInt32(ref result.a_);
- break;
- }
- case 16: {
- result.hasDummy2 = input.ReadInt32(ref result.dummy2_);
- break;
- }
- case 24: {
- result.hasB = input.ReadInt32(ref result.b_);
- break;
- }
- case 32: {
- result.hasDummy4 = input.ReadInt32(ref result.dummy4_);
- break;
- }
- case 40: {
- result.hasDummy5 = input.ReadInt32(ref result.dummy5_);
- break;
- }
- case 48: {
- result.hasDummy6 = input.ReadInt32(ref result.dummy6_);
- break;
- }
- case 56: {
- result.hasDummy7 = input.ReadInt32(ref result.dummy7_);
- break;
- }
- case 64: {
- result.hasDummy8 = input.ReadInt32(ref result.dummy8_);
- break;
- }
- case 72: {
- result.hasDummy9 = input.ReadInt32(ref result.dummy9_);
- break;
- }
- case 80: {
- result.hasDummy10 = input.ReadInt32(ref result.dummy10_);
- break;
- }
- case 88: {
- result.hasDummy11 = input.ReadInt32(ref result.dummy11_);
- break;
- }
- case 96: {
- result.hasDummy12 = input.ReadInt32(ref result.dummy12_);
- break;
- }
- case 104: {
- result.hasDummy13 = input.ReadInt32(ref result.dummy13_);
- break;
- }
- case 112: {
- result.hasDummy14 = input.ReadInt32(ref result.dummy14_);
- break;
- }
- case 120: {
- result.hasDummy15 = input.ReadInt32(ref result.dummy15_);
- break;
- }
- case 128: {
- result.hasDummy16 = input.ReadInt32(ref result.dummy16_);
- break;
- }
- case 136: {
- result.hasDummy17 = input.ReadInt32(ref result.dummy17_);
- break;
- }
- case 144: {
- result.hasDummy18 = input.ReadInt32(ref result.dummy18_);
- break;
- }
- case 152: {
- result.hasDummy19 = input.ReadInt32(ref result.dummy19_);
- break;
- }
- case 160: {
- result.hasDummy20 = input.ReadInt32(ref result.dummy20_);
- break;
- }
- case 168: {
- result.hasDummy21 = input.ReadInt32(ref result.dummy21_);
- break;
- }
- case 176: {
- result.hasDummy22 = input.ReadInt32(ref result.dummy22_);
- break;
- }
- case 184: {
- result.hasDummy23 = input.ReadInt32(ref result.dummy23_);
- break;
- }
- case 192: {
- result.hasDummy24 = input.ReadInt32(ref result.dummy24_);
- break;
- }
- case 200: {
- result.hasDummy25 = input.ReadInt32(ref result.dummy25_);
- break;
- }
- case 208: {
- result.hasDummy26 = input.ReadInt32(ref result.dummy26_);
- break;
- }
- case 216: {
- result.hasDummy27 = input.ReadInt32(ref result.dummy27_);
- break;
- }
- case 224: {
- result.hasDummy28 = input.ReadInt32(ref result.dummy28_);
- break;
- }
- case 232: {
- result.hasDummy29 = input.ReadInt32(ref result.dummy29_);
- break;
- }
- case 240: {
- result.hasDummy30 = input.ReadInt32(ref result.dummy30_);
- break;
- }
- case 248: {
- result.hasDummy31 = input.ReadInt32(ref result.dummy31_);
- break;
- }
- case 256: {
- result.hasDummy32 = input.ReadInt32(ref result.dummy32_);
- break;
- }
- case 264: {
- result.hasC = input.ReadInt32(ref result.c_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasA {
- get { return result.hasA; }
- }
- public int A {
- get { return result.A; }
- set { SetA(value); }
- }
- public Builder SetA(int value) {
- PrepareBuilder();
- result.hasA = true;
- result.a_ = value;
- return this;
- }
- public Builder ClearA() {
- PrepareBuilder();
- result.hasA = false;
- result.a_ = 0;
- return this;
- }
- public bool HasDummy2 {
- get { return result.hasDummy2; }
- }
- public int Dummy2 {
- get { return result.Dummy2; }
- set { SetDummy2(value); }
- }
- public Builder SetDummy2(int value) {
- PrepareBuilder();
- result.hasDummy2 = true;
- result.dummy2_ = value;
- return this;
- }
- public Builder ClearDummy2() {
- PrepareBuilder();
- result.hasDummy2 = false;
- result.dummy2_ = 0;
- return this;
- }
- public bool HasB {
- get { return result.hasB; }
- }
- public int B {
- get { return result.B; }
- set { SetB(value); }
- }
- public Builder SetB(int value) {
- PrepareBuilder();
- result.hasB = true;
- result.b_ = value;
- return this;
- }
- public Builder ClearB() {
- PrepareBuilder();
- result.hasB = false;
- result.b_ = 0;
- return this;
- }
- public bool HasDummy4 {
- get { return result.hasDummy4; }
- }
- public int Dummy4 {
- get { return result.Dummy4; }
- set { SetDummy4(value); }
- }
- public Builder SetDummy4(int value) {
- PrepareBuilder();
- result.hasDummy4 = true;
- result.dummy4_ = value;
- return this;
- }
- public Builder ClearDummy4() {
- PrepareBuilder();
- result.hasDummy4 = false;
- result.dummy4_ = 0;
- return this;
- }
- public bool HasDummy5 {
- get { return result.hasDummy5; }
- }
- public int Dummy5 {
- get { return result.Dummy5; }
- set { SetDummy5(value); }
- }
- public Builder SetDummy5(int value) {
- PrepareBuilder();
- result.hasDummy5 = true;
- result.dummy5_ = value;
- return this;
- }
- public Builder ClearDummy5() {
- PrepareBuilder();
- result.hasDummy5 = false;
- result.dummy5_ = 0;
- return this;
- }
- public bool HasDummy6 {
- get { return result.hasDummy6; }
- }
- public int Dummy6 {
- get { return result.Dummy6; }
- set { SetDummy6(value); }
- }
- public Builder SetDummy6(int value) {
- PrepareBuilder();
- result.hasDummy6 = true;
- result.dummy6_ = value;
- return this;
- }
- public Builder ClearDummy6() {
- PrepareBuilder();
- result.hasDummy6 = false;
- result.dummy6_ = 0;
- return this;
- }
- public bool HasDummy7 {
- get { return result.hasDummy7; }
- }
- public int Dummy7 {
- get { return result.Dummy7; }
- set { SetDummy7(value); }
- }
- public Builder SetDummy7(int value) {
- PrepareBuilder();
- result.hasDummy7 = true;
- result.dummy7_ = value;
- return this;
- }
- public Builder ClearDummy7() {
- PrepareBuilder();
- result.hasDummy7 = false;
- result.dummy7_ = 0;
- return this;
- }
- public bool HasDummy8 {
- get { return result.hasDummy8; }
- }
- public int Dummy8 {
- get { return result.Dummy8; }
- set { SetDummy8(value); }
- }
- public Builder SetDummy8(int value) {
- PrepareBuilder();
- result.hasDummy8 = true;
- result.dummy8_ = value;
- return this;
- }
- public Builder ClearDummy8() {
- PrepareBuilder();
- result.hasDummy8 = false;
- result.dummy8_ = 0;
- return this;
- }
- public bool HasDummy9 {
- get { return result.hasDummy9; }
- }
- public int Dummy9 {
- get { return result.Dummy9; }
- set { SetDummy9(value); }
- }
- public Builder SetDummy9(int value) {
- PrepareBuilder();
- result.hasDummy9 = true;
- result.dummy9_ = value;
- return this;
- }
- public Builder ClearDummy9() {
- PrepareBuilder();
- result.hasDummy9 = false;
- result.dummy9_ = 0;
- return this;
- }
- public bool HasDummy10 {
- get { return result.hasDummy10; }
- }
- public int Dummy10 {
- get { return result.Dummy10; }
- set { SetDummy10(value); }
- }
- public Builder SetDummy10(int value) {
- PrepareBuilder();
- result.hasDummy10 = true;
- result.dummy10_ = value;
- return this;
- }
- public Builder ClearDummy10() {
- PrepareBuilder();
- result.hasDummy10 = false;
- result.dummy10_ = 0;
- return this;
- }
- public bool HasDummy11 {
- get { return result.hasDummy11; }
- }
- public int Dummy11 {
- get { return result.Dummy11; }
- set { SetDummy11(value); }
- }
- public Builder SetDummy11(int value) {
- PrepareBuilder();
- result.hasDummy11 = true;
- result.dummy11_ = value;
- return this;
- }
- public Builder ClearDummy11() {
- PrepareBuilder();
- result.hasDummy11 = false;
- result.dummy11_ = 0;
- return this;
- }
- public bool HasDummy12 {
- get { return result.hasDummy12; }
- }
- public int Dummy12 {
- get { return result.Dummy12; }
- set { SetDummy12(value); }
- }
- public Builder SetDummy12(int value) {
- PrepareBuilder();
- result.hasDummy12 = true;
- result.dummy12_ = value;
- return this;
- }
- public Builder ClearDummy12() {
- PrepareBuilder();
- result.hasDummy12 = false;
- result.dummy12_ = 0;
- return this;
- }
- public bool HasDummy13 {
- get { return result.hasDummy13; }
- }
- public int Dummy13 {
- get { return result.Dummy13; }
- set { SetDummy13(value); }
- }
- public Builder SetDummy13(int value) {
- PrepareBuilder();
- result.hasDummy13 = true;
- result.dummy13_ = value;
- return this;
- }
- public Builder ClearDummy13() {
- PrepareBuilder();
- result.hasDummy13 = false;
- result.dummy13_ = 0;
- return this;
- }
- public bool HasDummy14 {
- get { return result.hasDummy14; }
- }
- public int Dummy14 {
- get { return result.Dummy14; }
- set { SetDummy14(value); }
- }
- public Builder SetDummy14(int value) {
- PrepareBuilder();
- result.hasDummy14 = true;
- result.dummy14_ = value;
- return this;
- }
- public Builder ClearDummy14() {
- PrepareBuilder();
- result.hasDummy14 = false;
- result.dummy14_ = 0;
- return this;
- }
- public bool HasDummy15 {
- get { return result.hasDummy15; }
- }
- public int Dummy15 {
- get { return result.Dummy15; }
- set { SetDummy15(value); }
- }
- public Builder SetDummy15(int value) {
- PrepareBuilder();
- result.hasDummy15 = true;
- result.dummy15_ = value;
- return this;
- }
- public Builder ClearDummy15() {
- PrepareBuilder();
- result.hasDummy15 = false;
- result.dummy15_ = 0;
- return this;
- }
- public bool HasDummy16 {
- get { return result.hasDummy16; }
- }
- public int Dummy16 {
- get { return result.Dummy16; }
- set { SetDummy16(value); }
- }
- public Builder SetDummy16(int value) {
- PrepareBuilder();
- result.hasDummy16 = true;
- result.dummy16_ = value;
- return this;
- }
- public Builder ClearDummy16() {
- PrepareBuilder();
- result.hasDummy16 = false;
- result.dummy16_ = 0;
- return this;
- }
- public bool HasDummy17 {
- get { return result.hasDummy17; }
- }
- public int Dummy17 {
- get { return result.Dummy17; }
- set { SetDummy17(value); }
- }
- public Builder SetDummy17(int value) {
- PrepareBuilder();
- result.hasDummy17 = true;
- result.dummy17_ = value;
- return this;
- }
- public Builder ClearDummy17() {
- PrepareBuilder();
- result.hasDummy17 = false;
- result.dummy17_ = 0;
- return this;
- }
- public bool HasDummy18 {
- get { return result.hasDummy18; }
- }
- public int Dummy18 {
- get { return result.Dummy18; }
- set { SetDummy18(value); }
- }
- public Builder SetDummy18(int value) {
- PrepareBuilder();
- result.hasDummy18 = true;
- result.dummy18_ = value;
- return this;
- }
- public Builder ClearDummy18() {
- PrepareBuilder();
- result.hasDummy18 = false;
- result.dummy18_ = 0;
- return this;
- }
- public bool HasDummy19 {
- get { return result.hasDummy19; }
- }
- public int Dummy19 {
- get { return result.Dummy19; }
- set { SetDummy19(value); }
- }
- public Builder SetDummy19(int value) {
- PrepareBuilder();
- result.hasDummy19 = true;
- result.dummy19_ = value;
- return this;
- }
- public Builder ClearDummy19() {
- PrepareBuilder();
- result.hasDummy19 = false;
- result.dummy19_ = 0;
- return this;
- }
- public bool HasDummy20 {
- get { return result.hasDummy20; }
- }
- public int Dummy20 {
- get { return result.Dummy20; }
- set { SetDummy20(value); }
- }
- public Builder SetDummy20(int value) {
- PrepareBuilder();
- result.hasDummy20 = true;
- result.dummy20_ = value;
- return this;
- }
- public Builder ClearDummy20() {
- PrepareBuilder();
- result.hasDummy20 = false;
- result.dummy20_ = 0;
- return this;
- }
- public bool HasDummy21 {
- get { return result.hasDummy21; }
- }
- public int Dummy21 {
- get { return result.Dummy21; }
- set { SetDummy21(value); }
- }
- public Builder SetDummy21(int value) {
- PrepareBuilder();
- result.hasDummy21 = true;
- result.dummy21_ = value;
- return this;
- }
- public Builder ClearDummy21() {
- PrepareBuilder();
- result.hasDummy21 = false;
- result.dummy21_ = 0;
- return this;
- }
- public bool HasDummy22 {
- get { return result.hasDummy22; }
- }
- public int Dummy22 {
- get { return result.Dummy22; }
- set { SetDummy22(value); }
- }
- public Builder SetDummy22(int value) {
- PrepareBuilder();
- result.hasDummy22 = true;
- result.dummy22_ = value;
- return this;
- }
- public Builder ClearDummy22() {
- PrepareBuilder();
- result.hasDummy22 = false;
- result.dummy22_ = 0;
- return this;
- }
- public bool HasDummy23 {
- get { return result.hasDummy23; }
- }
- public int Dummy23 {
- get { return result.Dummy23; }
- set { SetDummy23(value); }
- }
- public Builder SetDummy23(int value) {
- PrepareBuilder();
- result.hasDummy23 = true;
- result.dummy23_ = value;
- return this;
- }
- public Builder ClearDummy23() {
- PrepareBuilder();
- result.hasDummy23 = false;
- result.dummy23_ = 0;
- return this;
- }
- public bool HasDummy24 {
- get { return result.hasDummy24; }
- }
- public int Dummy24 {
- get { return result.Dummy24; }
- set { SetDummy24(value); }
- }
- public Builder SetDummy24(int value) {
- PrepareBuilder();
- result.hasDummy24 = true;
- result.dummy24_ = value;
- return this;
- }
- public Builder ClearDummy24() {
- PrepareBuilder();
- result.hasDummy24 = false;
- result.dummy24_ = 0;
- return this;
- }
- public bool HasDummy25 {
- get { return result.hasDummy25; }
- }
- public int Dummy25 {
- get { return result.Dummy25; }
- set { SetDummy25(value); }
- }
- public Builder SetDummy25(int value) {
- PrepareBuilder();
- result.hasDummy25 = true;
- result.dummy25_ = value;
- return this;
- }
- public Builder ClearDummy25() {
- PrepareBuilder();
- result.hasDummy25 = false;
- result.dummy25_ = 0;
- return this;
- }
- public bool HasDummy26 {
- get { return result.hasDummy26; }
- }
- public int Dummy26 {
- get { return result.Dummy26; }
- set { SetDummy26(value); }
- }
- public Builder SetDummy26(int value) {
- PrepareBuilder();
- result.hasDummy26 = true;
- result.dummy26_ = value;
- return this;
- }
- public Builder ClearDummy26() {
- PrepareBuilder();
- result.hasDummy26 = false;
- result.dummy26_ = 0;
- return this;
- }
- public bool HasDummy27 {
- get { return result.hasDummy27; }
- }
- public int Dummy27 {
- get { return result.Dummy27; }
- set { SetDummy27(value); }
- }
- public Builder SetDummy27(int value) {
- PrepareBuilder();
- result.hasDummy27 = true;
- result.dummy27_ = value;
- return this;
- }
- public Builder ClearDummy27() {
- PrepareBuilder();
- result.hasDummy27 = false;
- result.dummy27_ = 0;
- return this;
- }
- public bool HasDummy28 {
- get { return result.hasDummy28; }
- }
- public int Dummy28 {
- get { return result.Dummy28; }
- set { SetDummy28(value); }
- }
- public Builder SetDummy28(int value) {
- PrepareBuilder();
- result.hasDummy28 = true;
- result.dummy28_ = value;
- return this;
- }
- public Builder ClearDummy28() {
- PrepareBuilder();
- result.hasDummy28 = false;
- result.dummy28_ = 0;
- return this;
- }
- public bool HasDummy29 {
- get { return result.hasDummy29; }
- }
- public int Dummy29 {
- get { return result.Dummy29; }
- set { SetDummy29(value); }
- }
- public Builder SetDummy29(int value) {
- PrepareBuilder();
- result.hasDummy29 = true;
- result.dummy29_ = value;
- return this;
- }
- public Builder ClearDummy29() {
- PrepareBuilder();
- result.hasDummy29 = false;
- result.dummy29_ = 0;
- return this;
- }
- public bool HasDummy30 {
- get { return result.hasDummy30; }
- }
- public int Dummy30 {
- get { return result.Dummy30; }
- set { SetDummy30(value); }
- }
- public Builder SetDummy30(int value) {
- PrepareBuilder();
- result.hasDummy30 = true;
- result.dummy30_ = value;
- return this;
- }
- public Builder ClearDummy30() {
- PrepareBuilder();
- result.hasDummy30 = false;
- result.dummy30_ = 0;
- return this;
- }
- public bool HasDummy31 {
- get { return result.hasDummy31; }
- }
- public int Dummy31 {
- get { return result.Dummy31; }
- set { SetDummy31(value); }
- }
- public Builder SetDummy31(int value) {
- PrepareBuilder();
- result.hasDummy31 = true;
- result.dummy31_ = value;
- return this;
- }
- public Builder ClearDummy31() {
- PrepareBuilder();
- result.hasDummy31 = false;
- result.dummy31_ = 0;
- return this;
- }
- public bool HasDummy32 {
- get { return result.hasDummy32; }
- }
- public int Dummy32 {
- get { return result.Dummy32; }
- set { SetDummy32(value); }
- }
- public Builder SetDummy32(int value) {
- PrepareBuilder();
- result.hasDummy32 = true;
- result.dummy32_ = value;
- return this;
- }
- public Builder ClearDummy32() {
- PrepareBuilder();
- result.hasDummy32 = false;
- result.dummy32_ = 0;
- return this;
- }
- public bool HasC {
- get { return result.hasC; }
- }
- public int C {
- get { return result.C; }
- set { SetC(value); }
- }
- public Builder SetC(int value) {
- PrepareBuilder();
- result.hasC = true;
- result.c_ = value;
- return this;
- }
- public Builder ClearC() {
- PrepareBuilder();
- result.hasC = false;
- result.c_ = 0;
- return this;
- }
- }
- static TestRequired() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestRequiredForeign : pb::GeneratedMessage<TestRequiredForeign, TestRequiredForeign.Builder> {
- private TestRequiredForeign() { }
- private static readonly TestRequiredForeign defaultInstance = new TestRequiredForeign().MakeReadOnly();
- private static readonly string[] _testRequiredForeignFieldNames = new string[] { "dummy", "optional_message", "repeated_message" };
- private static readonly uint[] _testRequiredForeignFieldTags = new uint[] { 24, 10, 18 };
- public static TestRequiredForeign DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestRequiredForeign DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestRequiredForeign ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRequiredForeign__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestRequiredForeign, TestRequiredForeign.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable; }
- }
- public const int OptionalMessageFieldNumber = 1;
- private bool hasOptionalMessage;
- private global::Google.ProtocolBuffers.TestProtos.TestRequired optionalMessage_;
- public bool HasOptionalMessage {
- get { return hasOptionalMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage {
- get { return optionalMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance; }
- }
- public const int RepeatedMessageFieldNumber = 2;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired> repeatedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList {
- get { return repeatedMessage_; }
- }
- public int RepeatedMessageCount {
- get { return repeatedMessage_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) {
- return repeatedMessage_[index];
- }
- public const int DummyFieldNumber = 3;
- private bool hasDummy;
- private int dummy_;
- public bool HasDummy {
- get { return hasDummy; }
- }
- public int Dummy {
- get { return dummy_; }
- }
- public override bool IsInitialized {
- get {
- if (HasOptionalMessage) {
- if (!OptionalMessage.IsInitialized) return false;
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
- if (!element.IsInitialized) return false;
- }
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testRequiredForeignFieldNames;
- if (hasOptionalMessage) {
- output.WriteMessage(1, field_names[1], OptionalMessage);
- }
- if (repeatedMessage_.Count > 0) {
- output.WriteMessageArray(2, field_names[2], repeatedMessage_);
- }
- if (hasDummy) {
- output.WriteInt32(3, field_names[0], Dummy);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasOptionalMessage) {
- size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalMessage);
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
- size += pb::CodedOutputStream.ComputeMessageSize(2, element);
- }
- if (hasDummy) {
- size += pb::CodedOutputStream.ComputeInt32Size(3, Dummy);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestRequiredForeign ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestRequiredForeign ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestRequiredForeign ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestRequiredForeign ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestRequiredForeign ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestRequiredForeign ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestRequiredForeign ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestRequiredForeign ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestRequiredForeign ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestRequiredForeign ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestRequiredForeign MakeReadOnly() {
- repeatedMessage_.MakeReadOnly();
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestRequiredForeign prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestRequiredForeign, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestRequiredForeign cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestRequiredForeign result;
- private TestRequiredForeign PrepareBuilder() {
- if (resultIsReadOnly) {
- TestRequiredForeign original = result;
- result = new TestRequiredForeign();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestRequiredForeign MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Descriptor; }
- }
- public override TestRequiredForeign DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.DefaultInstance; }
- }
- public override TestRequiredForeign BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestRequiredForeign) {
- return MergeFrom((TestRequiredForeign) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestRequiredForeign other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasOptionalMessage) {
- MergeOptionalMessage(other.OptionalMessage);
- }
- if (other.repeatedMessage_.Count != 0) {
- result.repeatedMessage_.Add(other.repeatedMessage_);
- }
- if (other.HasDummy) {
- Dummy = other.Dummy;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testRequiredForeignFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testRequiredForeignFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder();
- if (result.hasOptionalMessage) {
- subBuilder.MergeFrom(OptionalMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- OptionalMessage = subBuilder.BuildPartial();
- break;
- }
- case 18: {
- input.ReadMessageArray(tag, field_name, result.repeatedMessage_, global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance, extensionRegistry);
- break;
- }
- case 24: {
- result.hasDummy = input.ReadInt32(ref result.dummy_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasOptionalMessage {
- get { return result.hasOptionalMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage {
- get { return result.OptionalMessage; }
- set { SetOptionalMessage(value); }
- }
- public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalMessage = true;
- result.optionalMessage_ = value;
- return this;
- }
- public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasOptionalMessage = true;
- result.optionalMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOptionalMessage &&
- result.optionalMessage_ != global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) {
- result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(result.optionalMessage_).MergeFrom(value).BuildPartial();
- } else {
- result.optionalMessage_ = value;
- }
- result.hasOptionalMessage = true;
- return this;
- }
- public Builder ClearOptionalMessage() {
- PrepareBuilder();
- result.hasOptionalMessage = false;
- result.optionalMessage_ = null;
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList {
- get { return PrepareBuilder().repeatedMessage_; }
- }
- public int RepeatedMessageCount {
- get { return result.RepeatedMessageCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) {
- return result.GetRepeatedMessage(index);
- }
- public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedMessage_[index] = value;
- return this;
- }
- public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedMessage_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedMessage_.Add(value);
- return this;
- }
- public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedMessage_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeRepeatedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestRequired> values) {
- PrepareBuilder();
- result.repeatedMessage_.Add(values);
- return this;
- }
- public Builder ClearRepeatedMessage() {
- PrepareBuilder();
- result.repeatedMessage_.Clear();
- return this;
- }
- public bool HasDummy {
- get { return result.hasDummy; }
- }
- public int Dummy {
- get { return result.Dummy; }
- set { SetDummy(value); }
- }
- public Builder SetDummy(int value) {
- PrepareBuilder();
- result.hasDummy = true;
- result.dummy_ = value;
- return this;
- }
- public Builder ClearDummy() {
- PrepareBuilder();
- result.hasDummy = false;
- result.dummy_ = 0;
- return this;
- }
- }
- static TestRequiredForeign() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestForeignNested : pb::GeneratedMessage<TestForeignNested, TestForeignNested.Builder> {
- private TestForeignNested() { }
- private static readonly TestForeignNested defaultInstance = new TestForeignNested().MakeReadOnly();
- private static readonly string[] _testForeignNestedFieldNames = new string[] { "foreign_nested" };
- private static readonly uint[] _testForeignNestedFieldTags = new uint[] { 10 };
- public static TestForeignNested DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestForeignNested DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestForeignNested ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestForeignNested__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestForeignNested, TestForeignNested.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; }
- }
- public const int ForeignNestedFieldNumber = 1;
- private bool hasForeignNested;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage foreignNested_;
- public bool HasForeignNested {
- get { return hasForeignNested; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
- get { return foreignNested_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testForeignNestedFieldNames;
- if (hasForeignNested) {
- output.WriteMessage(1, field_names[0], ForeignNested);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasForeignNested) {
- size += pb::CodedOutputStream.ComputeMessageSize(1, ForeignNested);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestForeignNested ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestForeignNested ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestForeignNested ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestForeignNested ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestForeignNested ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestForeignNested ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestForeignNested ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestForeignNested ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestForeignNested ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestForeignNested ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestForeignNested MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestForeignNested prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestForeignNested, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestForeignNested cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestForeignNested result;
- private TestForeignNested PrepareBuilder() {
- if (resultIsReadOnly) {
- TestForeignNested original = result;
- result = new TestForeignNested();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestForeignNested MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Descriptor; }
- }
- public override TestForeignNested DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestForeignNested.DefaultInstance; }
- }
- public override TestForeignNested BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestForeignNested) {
- return MergeFrom((TestForeignNested) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestForeignNested other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestForeignNested.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasForeignNested) {
- MergeForeignNested(other.ForeignNested);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testForeignNestedFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testForeignNestedFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
- if (result.hasForeignNested) {
- subBuilder.MergeFrom(ForeignNested);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- ForeignNested = subBuilder.BuildPartial();
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasForeignNested {
- get { return result.hasForeignNested; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
- get { return result.ForeignNested; }
- set { SetForeignNested(value); }
- }
- public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasForeignNested = true;
- result.foreignNested_ = value;
- return this;
- }
- public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasForeignNested = true;
- result.foreignNested_ = builderForValue.Build();
- return this;
- }
- public Builder MergeForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasForeignNested &&
- result.foreignNested_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
- result.foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.foreignNested_).MergeFrom(value).BuildPartial();
- } else {
- result.foreignNested_ = value;
- }
- result.hasForeignNested = true;
- return this;
- }
- public Builder ClearForeignNested() {
- PrepareBuilder();
- result.hasForeignNested = false;
- result.foreignNested_ = null;
- return this;
- }
- }
- static TestForeignNested() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestEmptyMessage : pb::GeneratedMessage<TestEmptyMessage, TestEmptyMessage.Builder> {
- private TestEmptyMessage() { }
- private static readonly TestEmptyMessage defaultInstance = new TestEmptyMessage().MakeReadOnly();
- private static readonly string[] _testEmptyMessageFieldNames = new string[] { };
- private static readonly uint[] _testEmptyMessageFieldTags = new uint[] { };
- public static TestEmptyMessage DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestEmptyMessage DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestEmptyMessage ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestEmptyMessage__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessage, TestEmptyMessage.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testEmptyMessageFieldNames;
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestEmptyMessage ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestEmptyMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestEmptyMessage ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestEmptyMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestEmptyMessage ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestEmptyMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestEmptyMessage ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestEmptyMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestEmptyMessage ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestEmptyMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestEmptyMessage MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestEmptyMessage prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestEmptyMessage, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestEmptyMessage cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestEmptyMessage result;
- private TestEmptyMessage PrepareBuilder() {
- if (resultIsReadOnly) {
- TestEmptyMessage original = result;
- result = new TestEmptyMessage();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestEmptyMessage MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Descriptor; }
- }
- public override TestEmptyMessage DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.DefaultInstance; }
- }
- public override TestEmptyMessage BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestEmptyMessage) {
- return MergeFrom((TestEmptyMessage) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestEmptyMessage other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.DefaultInstance) return this;
- PrepareBuilder();
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testEmptyMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testEmptyMessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- }
- static TestEmptyMessage() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestEmptyMessageWithExtensions : pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> {
- private TestEmptyMessageWithExtensions() { }
- private static readonly TestEmptyMessageWithExtensions defaultInstance = new TestEmptyMessageWithExtensions().MakeReadOnly();
- private static readonly string[] _testEmptyMessageWithExtensionsFieldNames = new string[] { };
- private static readonly uint[] _testEmptyMessageWithExtensionsFieldTags = new uint[] { };
- public static TestEmptyMessageWithExtensions DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestEmptyMessageWithExtensions DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestEmptyMessageWithExtensions ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable; }
- }
- public override bool IsInitialized {
- get {
- if (!ExtensionsAreInitialized) return false;
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testEmptyMessageWithExtensionsFieldNames;
- pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
- extensionWriter.WriteUntil(536870912, output);
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- size += ExtensionsSerializedSize;
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestEmptyMessageWithExtensions ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestEmptyMessageWithExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestEmptyMessageWithExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestEmptyMessageWithExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestEmptyMessageWithExtensions ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestEmptyMessageWithExtensions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestEmptyMessageWithExtensions MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestEmptyMessageWithExtensions prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::ExtendableBuilder<TestEmptyMessageWithExtensions, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestEmptyMessageWithExtensions cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestEmptyMessageWithExtensions result;
- private TestEmptyMessageWithExtensions PrepareBuilder() {
- if (resultIsReadOnly) {
- TestEmptyMessageWithExtensions original = result;
- result = new TestEmptyMessageWithExtensions();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestEmptyMessageWithExtensions MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Descriptor; }
- }
- public override TestEmptyMessageWithExtensions DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.DefaultInstance; }
- }
- public override TestEmptyMessageWithExtensions BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestEmptyMessageWithExtensions) {
- return MergeFrom((TestEmptyMessageWithExtensions) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestEmptyMessageWithExtensions other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.DefaultInstance) return this;
- PrepareBuilder();
- this.MergeExtensionFields(other);
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testEmptyMessageWithExtensionsFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testEmptyMessageWithExtensionsFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- }
- static TestEmptyMessageWithExtensions() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestMultipleExtensionRanges : pb::ExtendableMessage<TestMultipleExtensionRanges, TestMultipleExtensionRanges.Builder> {
- private TestMultipleExtensionRanges() { }
- private static readonly TestMultipleExtensionRanges defaultInstance = new TestMultipleExtensionRanges().MakeReadOnly();
- private static readonly string[] _testMultipleExtensionRangesFieldNames = new string[] { };
- private static readonly uint[] _testMultipleExtensionRangesFieldTags = new uint[] { };
- public static TestMultipleExtensionRanges DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestMultipleExtensionRanges DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestMultipleExtensionRanges ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestMultipleExtensionRanges__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestMultipleExtensionRanges, TestMultipleExtensionRanges.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestMultipleExtensionRanges__FieldAccessorTable; }
- }
- public override bool IsInitialized {
- get {
- if (!ExtensionsAreInitialized) return false;
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testMultipleExtensionRangesFieldNames;
- pb::ExtendableMessage<TestMultipleExtensionRanges, TestMultipleExtensionRanges.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
- extensionWriter.WriteUntil(43, output);
- extensionWriter.WriteUntil(4244, output);
- extensionWriter.WriteUntil(536870912, output);
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- size += ExtensionsSerializedSize;
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestMultipleExtensionRanges ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestMultipleExtensionRanges ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestMultipleExtensionRanges ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestMultipleExtensionRanges ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestMultipleExtensionRanges ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestMultipleExtensionRanges ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestMultipleExtensionRanges ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestMultipleExtensionRanges ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestMultipleExtensionRanges ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestMultipleExtensionRanges ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestMultipleExtensionRanges MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestMultipleExtensionRanges prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::ExtendableBuilder<TestMultipleExtensionRanges, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestMultipleExtensionRanges cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestMultipleExtensionRanges result;
- private TestMultipleExtensionRanges PrepareBuilder() {
- if (resultIsReadOnly) {
- TestMultipleExtensionRanges original = result;
- result = new TestMultipleExtensionRanges();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestMultipleExtensionRanges MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.Descriptor; }
- }
- public override TestMultipleExtensionRanges DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.DefaultInstance; }
- }
- public override TestMultipleExtensionRanges BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestMultipleExtensionRanges) {
- return MergeFrom((TestMultipleExtensionRanges) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestMultipleExtensionRanges other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestMultipleExtensionRanges.DefaultInstance) return this;
- PrepareBuilder();
- this.MergeExtensionFields(other);
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testMultipleExtensionRangesFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testMultipleExtensionRangesFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- }
- static TestMultipleExtensionRanges() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestReallyLargeTagNumber : pb::GeneratedMessage<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> {
- private TestReallyLargeTagNumber() { }
- private static readonly TestReallyLargeTagNumber defaultInstance = new TestReallyLargeTagNumber().MakeReadOnly();
- private static readonly string[] _testReallyLargeTagNumberFieldNames = new string[] { "a", "bb" };
- private static readonly uint[] _testReallyLargeTagNumberFieldTags = new uint[] { 8, 2147483640 };
- public static TestReallyLargeTagNumber DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestReallyLargeTagNumber DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestReallyLargeTagNumber ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; }
- }
- public const int AFieldNumber = 1;
- private bool hasA;
- private int a_;
- public bool HasA {
- get { return hasA; }
- }
- public int A {
- get { return a_; }
- }
- public const int BbFieldNumber = 268435455;
- private bool hasBb;
- private int bb_;
- public bool HasBb {
- get { return hasBb; }
- }
- public int Bb {
- get { return bb_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testReallyLargeTagNumberFieldNames;
- if (hasA) {
- output.WriteInt32(1, field_names[0], A);
- }
- if (hasBb) {
- output.WriteInt32(268435455, field_names[1], Bb);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, A);
- }
- if (hasBb) {
- size += pb::CodedOutputStream.ComputeInt32Size(268435455, Bb);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestReallyLargeTagNumber ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestReallyLargeTagNumber ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestReallyLargeTagNumber ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestReallyLargeTagNumber ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestReallyLargeTagNumber ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestReallyLargeTagNumber ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestReallyLargeTagNumber ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestReallyLargeTagNumber ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestReallyLargeTagNumber MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestReallyLargeTagNumber prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestReallyLargeTagNumber, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestReallyLargeTagNumber cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestReallyLargeTagNumber result;
- private TestReallyLargeTagNumber PrepareBuilder() {
- if (resultIsReadOnly) {
- TestReallyLargeTagNumber original = result;
- result = new TestReallyLargeTagNumber();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestReallyLargeTagNumber MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Descriptor; }
- }
- public override TestReallyLargeTagNumber DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.DefaultInstance; }
- }
- public override TestReallyLargeTagNumber BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestReallyLargeTagNumber) {
- return MergeFrom((TestReallyLargeTagNumber) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestReallyLargeTagNumber other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- if (other.HasBb) {
- Bb = other.Bb;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testReallyLargeTagNumberFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testReallyLargeTagNumberFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasA = input.ReadInt32(ref result.a_);
- break;
- }
- case 2147483640: {
- result.hasBb = input.ReadInt32(ref result.bb_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasA {
- get { return result.hasA; }
- }
- public int A {
- get { return result.A; }
- set { SetA(value); }
- }
- public Builder SetA(int value) {
- PrepareBuilder();
- result.hasA = true;
- result.a_ = value;
- return this;
- }
- public Builder ClearA() {
- PrepareBuilder();
- result.hasA = false;
- result.a_ = 0;
- return this;
- }
- public bool HasBb {
- get { return result.hasBb; }
- }
- public int Bb {
- get { return result.Bb; }
- set { SetBb(value); }
- }
- public Builder SetBb(int value) {
- PrepareBuilder();
- result.hasBb = true;
- result.bb_ = value;
- return this;
- }
- public Builder ClearBb() {
- PrepareBuilder();
- result.hasBb = false;
- result.bb_ = 0;
- return this;
- }
- }
- static TestReallyLargeTagNumber() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestRecursiveMessage : pb::GeneratedMessage<TestRecursiveMessage, TestRecursiveMessage.Builder> {
- private TestRecursiveMessage() { }
- private static readonly TestRecursiveMessage defaultInstance = new TestRecursiveMessage().MakeReadOnly();
- private static readonly string[] _testRecursiveMessageFieldNames = new string[] { "a", "i" };
- private static readonly uint[] _testRecursiveMessageFieldTags = new uint[] { 10, 16 };
- public static TestRecursiveMessage DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestRecursiveMessage DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestRecursiveMessage ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestRecursiveMessage, TestRecursiveMessage.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; }
- }
- public const int AFieldNumber = 1;
- private bool hasA;
- private global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage a_;
- public bool HasA {
- get { return hasA; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A {
- get { return a_ ?? global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance; }
- }
- public const int IFieldNumber = 2;
- private bool hasI;
- private int i_;
- public bool HasI {
- get { return hasI; }
- }
- public int I {
- get { return i_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testRecursiveMessageFieldNames;
- if (hasA) {
- output.WriteMessage(1, field_names[0], A);
- }
- if (hasI) {
- output.WriteInt32(2, field_names[1], I);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeMessageSize(1, A);
- }
- if (hasI) {
- size += pb::CodedOutputStream.ComputeInt32Size(2, I);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestRecursiveMessage ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestRecursiveMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestRecursiveMessage ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestRecursiveMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestRecursiveMessage ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestRecursiveMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestRecursiveMessage ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestRecursiveMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestRecursiveMessage ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestRecursiveMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestRecursiveMessage MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestRecursiveMessage prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestRecursiveMessage, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestRecursiveMessage cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestRecursiveMessage result;
- private TestRecursiveMessage PrepareBuilder() {
- if (resultIsReadOnly) {
- TestRecursiveMessage original = result;
- result = new TestRecursiveMessage();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestRecursiveMessage MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Descriptor; }
- }
- public override TestRecursiveMessage DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance; }
- }
- public override TestRecursiveMessage BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestRecursiveMessage) {
- return MergeFrom((TestRecursiveMessage) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestRecursiveMessage other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- MergeA(other.A);
- }
- if (other.HasI) {
- I = other.I;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testRecursiveMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testRecursiveMessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder();
- if (result.hasA) {
- subBuilder.MergeFrom(A);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- A = subBuilder.BuildPartial();
- break;
- }
- case 16: {
- result.hasI = input.ReadInt32(ref result.i_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasA {
- get { return result.hasA; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A {
- get { return result.A; }
- set { SetA(value); }
- }
- public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasA = true;
- result.a_ = value;
- return this;
- }
- public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasA = true;
- result.a_ = builderForValue.Build();
- return this;
- }
- public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasA &&
- result.a_ != global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) {
- result.a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
- } else {
- result.a_ = value;
- }
- result.hasA = true;
- return this;
- }
- public Builder ClearA() {
- PrepareBuilder();
- result.hasA = false;
- result.a_ = null;
- return this;
- }
- public bool HasI {
- get { return result.hasI; }
- }
- public int I {
- get { return result.I; }
- set { SetI(value); }
- }
- public Builder SetI(int value) {
- PrepareBuilder();
- result.hasI = true;
- result.i_ = value;
- return this;
- }
- public Builder ClearI() {
- PrepareBuilder();
- result.hasI = false;
- result.i_ = 0;
- return this;
- }
- }
- static TestRecursiveMessage() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestMutualRecursionA : pb::GeneratedMessage<TestMutualRecursionA, TestMutualRecursionA.Builder> {
- private TestMutualRecursionA() { }
- private static readonly TestMutualRecursionA defaultInstance = new TestMutualRecursionA().MakeReadOnly();
- private static readonly string[] _testMutualRecursionAFieldNames = new string[] { "bb" };
- private static readonly uint[] _testMutualRecursionAFieldTags = new uint[] { 10 };
- public static TestMutualRecursionA DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestMutualRecursionA DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestMutualRecursionA ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionA, TestMutualRecursionA.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; }
- }
- public const int BbFieldNumber = 1;
- private bool hasBb;
- private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB bb_;
- public bool HasBb {
- get { return hasBb; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb {
- get { return bb_ ?? global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testMutualRecursionAFieldNames;
- if (hasBb) {
- output.WriteMessage(1, field_names[0], Bb);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasBb) {
- size += pb::CodedOutputStream.ComputeMessageSize(1, Bb);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestMutualRecursionA ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestMutualRecursionA ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestMutualRecursionA ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestMutualRecursionA ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestMutualRecursionA ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestMutualRecursionA ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestMutualRecursionA ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestMutualRecursionA ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestMutualRecursionA ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestMutualRecursionA ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestMutualRecursionA MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestMutualRecursionA prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestMutualRecursionA, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestMutualRecursionA cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestMutualRecursionA result;
- private TestMutualRecursionA PrepareBuilder() {
- if (resultIsReadOnly) {
- TestMutualRecursionA original = result;
- result = new TestMutualRecursionA();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestMutualRecursionA MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Descriptor; }
- }
- public override TestMutualRecursionA DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance; }
- }
- public override TestMutualRecursionA BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestMutualRecursionA) {
- return MergeFrom((TestMutualRecursionA) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestMutualRecursionA other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasBb) {
- MergeBb(other.Bb);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testMutualRecursionAFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testMutualRecursionAFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder();
- if (result.hasBb) {
- subBuilder.MergeFrom(Bb);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- Bb = subBuilder.BuildPartial();
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasBb {
- get { return result.hasBb; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb {
- get { return result.Bb; }
- set { SetBb(value); }
- }
- public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasBb = true;
- result.bb_ = value;
- return this;
- }
- public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasBb = true;
- result.bb_ = builderForValue.Build();
- return this;
- }
- public Builder MergeBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasBb &&
- result.bb_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) {
- result.bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder(result.bb_).MergeFrom(value).BuildPartial();
- } else {
- result.bb_ = value;
- }
- result.hasBb = true;
- return this;
- }
- public Builder ClearBb() {
- PrepareBuilder();
- result.hasBb = false;
- result.bb_ = null;
- return this;
- }
- }
- static TestMutualRecursionA() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestMutualRecursionB : pb::GeneratedMessage<TestMutualRecursionB, TestMutualRecursionB.Builder> {
- private TestMutualRecursionB() { }
- private static readonly TestMutualRecursionB defaultInstance = new TestMutualRecursionB().MakeReadOnly();
- private static readonly string[] _testMutualRecursionBFieldNames = new string[] { "a", "optional_int32" };
- private static readonly uint[] _testMutualRecursionBFieldTags = new uint[] { 10, 16 };
- public static TestMutualRecursionB DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestMutualRecursionB DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestMutualRecursionB ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionB, TestMutualRecursionB.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; }
- }
- public const int AFieldNumber = 1;
- private bool hasA;
- private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA a_;
- public bool HasA {
- get { return hasA; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A {
- get { return a_ ?? global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance; }
- }
- public const int OptionalInt32FieldNumber = 2;
- private bool hasOptionalInt32;
- private int optionalInt32_;
- public bool HasOptionalInt32 {
- get { return hasOptionalInt32; }
- }
- public int OptionalInt32 {
- get { return optionalInt32_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testMutualRecursionBFieldNames;
- if (hasA) {
- output.WriteMessage(1, field_names[0], A);
- }
- if (hasOptionalInt32) {
- output.WriteInt32(2, field_names[1], OptionalInt32);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeMessageSize(1, A);
- }
- if (hasOptionalInt32) {
- size += pb::CodedOutputStream.ComputeInt32Size(2, OptionalInt32);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestMutualRecursionB ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestMutualRecursionB ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestMutualRecursionB ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestMutualRecursionB ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestMutualRecursionB ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestMutualRecursionB ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestMutualRecursionB ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestMutualRecursionB ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestMutualRecursionB ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestMutualRecursionB ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestMutualRecursionB MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestMutualRecursionB prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestMutualRecursionB, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestMutualRecursionB cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestMutualRecursionB result;
- private TestMutualRecursionB PrepareBuilder() {
- if (resultIsReadOnly) {
- TestMutualRecursionB original = result;
- result = new TestMutualRecursionB();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestMutualRecursionB MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Descriptor; }
- }
- public override TestMutualRecursionB DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance; }
- }
- public override TestMutualRecursionB BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestMutualRecursionB) {
- return MergeFrom((TestMutualRecursionB) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestMutualRecursionB other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- MergeA(other.A);
- }
- if (other.HasOptionalInt32) {
- OptionalInt32 = other.OptionalInt32;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testMutualRecursionBFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testMutualRecursionBFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder();
- if (result.hasA) {
- subBuilder.MergeFrom(A);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- A = subBuilder.BuildPartial();
- break;
- }
- case 16: {
- result.hasOptionalInt32 = input.ReadInt32(ref result.optionalInt32_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasA {
- get { return result.hasA; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A {
- get { return result.A; }
- set { SetA(value); }
- }
- public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasA = true;
- result.a_ = value;
- return this;
- }
- public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasA = true;
- result.a_ = builderForValue.Build();
- return this;
- }
- public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasA &&
- result.a_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) {
- result.a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
- } else {
- result.a_ = value;
- }
- result.hasA = true;
- return this;
- }
- public Builder ClearA() {
- PrepareBuilder();
- result.hasA = false;
- result.a_ = null;
- return this;
- }
- public bool HasOptionalInt32 {
- get { return result.hasOptionalInt32; }
- }
- public int OptionalInt32 {
- get { return result.OptionalInt32; }
- set { SetOptionalInt32(value); }
- }
- public Builder SetOptionalInt32(int value) {
- PrepareBuilder();
- result.hasOptionalInt32 = true;
- result.optionalInt32_ = value;
- return this;
- }
- public Builder ClearOptionalInt32() {
- PrepareBuilder();
- result.hasOptionalInt32 = false;
- result.optionalInt32_ = 0;
- return this;
- }
- }
- static TestMutualRecursionB() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestDupFieldNumber : pb::GeneratedMessage<TestDupFieldNumber, TestDupFieldNumber.Builder> {
- private TestDupFieldNumber() { }
- private static readonly TestDupFieldNumber defaultInstance = new TestDupFieldNumber().MakeReadOnly();
- private static readonly string[] _testDupFieldNumberFieldNames = new string[] { "a", "bar", "foo" };
- private static readonly uint[] _testDupFieldNumberFieldTags = new uint[] { 8, 27, 19 };
- public static TestDupFieldNumber DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestDupFieldNumber DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestDupFieldNumber ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestDupFieldNumber, TestDupFieldNumber.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable; }
- }
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Foo : pb::GeneratedMessage<Foo, Foo.Builder> {
- private Foo() { }
- private static readonly Foo defaultInstance = new Foo().MakeReadOnly();
- private static readonly string[] _fooFieldNames = new string[] { "a" };
- private static readonly uint[] _fooFieldTags = new uint[] { 8 };
- public static Foo DefaultInstance {
- get { return defaultInstance; }
- }
- public override Foo DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override Foo ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<Foo, Foo.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable; }
- }
- public const int AFieldNumber = 1;
- private bool hasA;
- private int a_;
- public bool HasA {
- get { return hasA; }
- }
- public int A {
- get { return a_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _fooFieldNames;
- if (hasA) {
- output.WriteInt32(1, field_names[0], A);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, A);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static Foo ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Foo ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Foo ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Foo ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Foo ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Foo ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Foo ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static Foo ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static Foo ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Foo ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private Foo MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(Foo prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<Foo, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(Foo cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private Foo result;
- private Foo PrepareBuilder() {
- if (resultIsReadOnly) {
- Foo original = result;
- result = new Foo();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override Foo MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Descriptor; }
- }
- public override Foo DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance; }
- }
- public override Foo BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is Foo) {
- return MergeFrom((Foo) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(Foo other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_fooFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _fooFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasA = input.ReadInt32(ref result.a_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasA {
- get { return result.hasA; }
- }
- public int A {
- get { return result.A; }
- set { SetA(value); }
- }
- public Builder SetA(int value) {
- PrepareBuilder();
- result.hasA = true;
- result.a_ = value;
- return this;
- }
- public Builder ClearA() {
- PrepareBuilder();
- result.hasA = false;
- result.a_ = 0;
- return this;
- }
- }
- static Foo() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Bar : pb::GeneratedMessage<Bar, Bar.Builder> {
- private Bar() { }
- private static readonly Bar defaultInstance = new Bar().MakeReadOnly();
- private static readonly string[] _barFieldNames = new string[] { "a" };
- private static readonly uint[] _barFieldTags = new uint[] { 8 };
- public static Bar DefaultInstance {
- get { return defaultInstance; }
- }
- public override Bar DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override Bar ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<Bar, Bar.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable; }
- }
- public const int AFieldNumber = 1;
- private bool hasA;
- private int a_;
- public bool HasA {
- get { return hasA; }
- }
- public int A {
- get { return a_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _barFieldNames;
- if (hasA) {
- output.WriteInt32(1, field_names[0], A);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, A);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static Bar ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Bar ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Bar ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Bar ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Bar ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Bar ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Bar ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static Bar ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static Bar ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Bar ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private Bar MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(Bar prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<Bar, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(Bar cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private Bar result;
- private Bar PrepareBuilder() {
- if (resultIsReadOnly) {
- Bar original = result;
- result = new Bar();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override Bar MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Descriptor; }
- }
- public override Bar DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance; }
- }
- public override Bar BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is Bar) {
- return MergeFrom((Bar) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(Bar other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_barFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _barFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasA = input.ReadInt32(ref result.a_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasA {
- get { return result.hasA; }
- }
- public int A {
- get { return result.A; }
- set { SetA(value); }
- }
- public Builder SetA(int value) {
- PrepareBuilder();
- result.hasA = true;
- result.a_ = value;
- return this;
- }
- public Builder ClearA() {
- PrepareBuilder();
- result.hasA = false;
- result.a_ = 0;
- return this;
- }
- }
- static Bar() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- }
- #endregion
- public const int AFieldNumber = 1;
- private bool hasA;
- private int a_;
- public bool HasA {
- get { return hasA; }
- }
- public int A {
- get { return a_; }
- }
- public const int FooFieldNumber = 2;
- private bool hasFoo;
- private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo foo_;
- public bool HasFoo {
- get { return hasFoo; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo {
- get { return foo_ ?? global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance; }
- }
- public const int BarFieldNumber = 3;
- private bool hasBar;
- private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar bar_;
- public bool HasBar {
- get { return hasBar; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar {
- get { return bar_ ?? global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testDupFieldNumberFieldNames;
- if (hasA) {
- output.WriteInt32(1, field_names[0], A);
- }
- if (hasFoo) {
- output.WriteGroup(2, field_names[2], Foo);
- }
- if (hasBar) {
- output.WriteGroup(3, field_names[1], Bar);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, A);
- }
- if (hasFoo) {
- size += pb::CodedOutputStream.ComputeGroupSize(2, Foo);
- }
- if (hasBar) {
- size += pb::CodedOutputStream.ComputeGroupSize(3, Bar);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestDupFieldNumber ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestDupFieldNumber ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestDupFieldNumber ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestDupFieldNumber ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestDupFieldNumber ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestDupFieldNumber ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestDupFieldNumber ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestDupFieldNumber ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestDupFieldNumber ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestDupFieldNumber ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestDupFieldNumber MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestDupFieldNumber prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestDupFieldNumber, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestDupFieldNumber cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestDupFieldNumber result;
- private TestDupFieldNumber PrepareBuilder() {
- if (resultIsReadOnly) {
- TestDupFieldNumber original = result;
- result = new TestDupFieldNumber();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestDupFieldNumber MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Descriptor; }
- }
- public override TestDupFieldNumber DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.DefaultInstance; }
- }
- public override TestDupFieldNumber BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestDupFieldNumber) {
- return MergeFrom((TestDupFieldNumber) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestDupFieldNumber other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- if (other.HasFoo) {
- MergeFoo(other.Foo);
- }
- if (other.HasBar) {
- MergeBar(other.Bar);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testDupFieldNumberFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testDupFieldNumberFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasA = input.ReadInt32(ref result.a_);
- break;
- }
- case 19: {
- global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder();
- if (result.hasFoo) {
- subBuilder.MergeFrom(Foo);
- }
- input.ReadGroup(2, subBuilder, extensionRegistry);
- Foo = subBuilder.BuildPartial();
- break;
- }
- case 27: {
- global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder();
- if (result.hasBar) {
- subBuilder.MergeFrom(Bar);
- }
- input.ReadGroup(3, subBuilder, extensionRegistry);
- Bar = subBuilder.BuildPartial();
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasA {
- get { return result.hasA; }
- }
- public int A {
- get { return result.A; }
- set { SetA(value); }
- }
- public Builder SetA(int value) {
- PrepareBuilder();
- result.hasA = true;
- result.a_ = value;
- return this;
- }
- public Builder ClearA() {
- PrepareBuilder();
- result.hasA = false;
- result.a_ = 0;
- return this;
- }
- public bool HasFoo {
- get { return result.hasFoo; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo {
- get { return result.Foo; }
- set { SetFoo(value); }
- }
- public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasFoo = true;
- result.foo_ = value;
- return this;
- }
- public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasFoo = true;
- result.foo_ = builderForValue.Build();
- return this;
- }
- public Builder MergeFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasFoo &&
- result.foo_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) {
- result.foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder(result.foo_).MergeFrom(value).BuildPartial();
- } else {
- result.foo_ = value;
- }
- result.hasFoo = true;
- return this;
- }
- public Builder ClearFoo() {
- PrepareBuilder();
- result.hasFoo = false;
- result.foo_ = null;
- return this;
- }
- public bool HasBar {
- get { return result.hasBar; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar {
- get { return result.Bar; }
- set { SetBar(value); }
- }
- public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasBar = true;
- result.bar_ = value;
- return this;
- }
- public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasBar = true;
- result.bar_ = builderForValue.Build();
- return this;
- }
- public Builder MergeBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasBar &&
- result.bar_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) {
- result.bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder(result.bar_).MergeFrom(value).BuildPartial();
- } else {
- result.bar_ = value;
- }
- result.hasBar = true;
- return this;
- }
- public Builder ClearBar() {
- PrepareBuilder();
- result.hasBar = false;
- result.bar_ = null;
- return this;
- }
- }
- static TestDupFieldNumber() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestEagerMessage : pb::GeneratedMessage<TestEagerMessage, TestEagerMessage.Builder> {
- private TestEagerMessage() { }
- private static readonly TestEagerMessage defaultInstance = new TestEagerMessage().MakeReadOnly();
- private static readonly string[] _testEagerMessageFieldNames = new string[] { "sub_message" };
- private static readonly uint[] _testEagerMessageFieldTags = new uint[] { 10 };
- public static TestEagerMessage DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestEagerMessage DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestEagerMessage ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestEagerMessage__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestEagerMessage, TestEagerMessage.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestEagerMessage__FieldAccessorTable; }
- }
- public const int SubMessageFieldNumber = 1;
- private bool hasSubMessage;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes subMessage_;
- public bool HasSubMessage {
- get { return hasSubMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes SubMessage {
- get { return subMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testEagerMessageFieldNames;
- if (hasSubMessage) {
- output.WriteMessage(1, field_names[0], SubMessage);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasSubMessage) {
- size += pb::CodedOutputStream.ComputeMessageSize(1, SubMessage);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestEagerMessage ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestEagerMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestEagerMessage ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestEagerMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestEagerMessage ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestEagerMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestEagerMessage ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestEagerMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestEagerMessage ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestEagerMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestEagerMessage MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestEagerMessage prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestEagerMessage, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestEagerMessage cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestEagerMessage result;
- private TestEagerMessage PrepareBuilder() {
- if (resultIsReadOnly) {
- TestEagerMessage original = result;
- result = new TestEagerMessage();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestEagerMessage MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestEagerMessage.Descriptor; }
- }
- public override TestEagerMessage DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestEagerMessage.DefaultInstance; }
- }
- public override TestEagerMessage BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestEagerMessage) {
- return MergeFrom((TestEagerMessage) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestEagerMessage other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestEagerMessage.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasSubMessage) {
- MergeSubMessage(other.SubMessage);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testEagerMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testEagerMessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
- if (result.hasSubMessage) {
- subBuilder.MergeFrom(SubMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- SubMessage = subBuilder.BuildPartial();
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasSubMessage {
- get { return result.hasSubMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes SubMessage {
- get { return result.SubMessage; }
- set { SetSubMessage(value); }
- }
- public Builder SetSubMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasSubMessage = true;
- result.subMessage_ = value;
- return this;
- }
- public Builder SetSubMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasSubMessage = true;
- result.subMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeSubMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasSubMessage &&
- result.subMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
- result.subMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.subMessage_).MergeFrom(value).BuildPartial();
- } else {
- result.subMessage_ = value;
- }
- result.hasSubMessage = true;
- return this;
- }
- public Builder ClearSubMessage() {
- PrepareBuilder();
- result.hasSubMessage = false;
- result.subMessage_ = null;
- return this;
- }
- }
- static TestEagerMessage() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestLazyMessage : pb::GeneratedMessage<TestLazyMessage, TestLazyMessage.Builder> {
- private TestLazyMessage() { }
- private static readonly TestLazyMessage defaultInstance = new TestLazyMessage().MakeReadOnly();
- private static readonly string[] _testLazyMessageFieldNames = new string[] { "sub_message" };
- private static readonly uint[] _testLazyMessageFieldTags = new uint[] { 10 };
- public static TestLazyMessage DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestLazyMessage DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestLazyMessage ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestLazyMessage__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestLazyMessage, TestLazyMessage.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestLazyMessage__FieldAccessorTable; }
- }
- public const int SubMessageFieldNumber = 1;
- private bool hasSubMessage;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes subMessage_;
- public bool HasSubMessage {
- get { return hasSubMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes SubMessage {
- get { return subMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testLazyMessageFieldNames;
- if (hasSubMessage) {
- output.WriteMessage(1, field_names[0], SubMessage);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasSubMessage) {
- size += pb::CodedOutputStream.ComputeMessageSize(1, SubMessage);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestLazyMessage ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestLazyMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestLazyMessage ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestLazyMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestLazyMessage ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestLazyMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestLazyMessage ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestLazyMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestLazyMessage ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestLazyMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestLazyMessage MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestLazyMessage prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestLazyMessage, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestLazyMessage cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestLazyMessage result;
- private TestLazyMessage PrepareBuilder() {
- if (resultIsReadOnly) {
- TestLazyMessage original = result;
- result = new TestLazyMessage();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestLazyMessage MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestLazyMessage.Descriptor; }
- }
- public override TestLazyMessage DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestLazyMessage.DefaultInstance; }
- }
- public override TestLazyMessage BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestLazyMessage) {
- return MergeFrom((TestLazyMessage) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestLazyMessage other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestLazyMessage.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasSubMessage) {
- MergeSubMessage(other.SubMessage);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testLazyMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testLazyMessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
- if (result.hasSubMessage) {
- subBuilder.MergeFrom(SubMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- SubMessage = subBuilder.BuildPartial();
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasSubMessage {
- get { return result.hasSubMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes SubMessage {
- get { return result.SubMessage; }
- set { SetSubMessage(value); }
- }
- public Builder SetSubMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasSubMessage = true;
- result.subMessage_ = value;
- return this;
- }
- public Builder SetSubMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasSubMessage = true;
- result.subMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeSubMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasSubMessage &&
- result.subMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
- result.subMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.subMessage_).MergeFrom(value).BuildPartial();
- } else {
- result.subMessage_ = value;
- }
- result.hasSubMessage = true;
- return this;
- }
- public Builder ClearSubMessage() {
- PrepareBuilder();
- result.hasSubMessage = false;
- result.subMessage_ = null;
- return this;
- }
- }
- static TestLazyMessage() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestNestedMessageHasBits : pb::GeneratedMessage<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> {
- private TestNestedMessageHasBits() { }
- private static readonly TestNestedMessageHasBits defaultInstance = new TestNestedMessageHasBits().MakeReadOnly();
- private static readonly string[] _testNestedMessageHasBitsFieldNames = new string[] { "optional_nested_message" };
- private static readonly uint[] _testNestedMessageHasBitsFieldTags = new uint[] { 10 };
- public static TestNestedMessageHasBits DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestNestedMessageHasBits DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestNestedMessageHasBits ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable; }
- }
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
- private NestedMessage() { }
- private static readonly NestedMessage defaultInstance = new NestedMessage().MakeReadOnly();
- private static readonly string[] _nestedMessageFieldNames = new string[] { "nestedmessage_repeated_foreignmessage", "nestedmessage_repeated_int32" };
- private static readonly uint[] _nestedMessageFieldTags = new uint[] { 18, 8 };
- public static NestedMessage DefaultInstance {
- get { return defaultInstance; }
- }
- public override NestedMessage DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override NestedMessage ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable; }
- }
- public const int NestedmessageRepeatedInt32FieldNumber = 1;
- private pbc::PopsicleList<int> nestedmessageRepeatedInt32_ = new pbc::PopsicleList<int>();
- public scg::IList<int> NestedmessageRepeatedInt32List {
- get { return pbc::Lists.AsReadOnly(nestedmessageRepeatedInt32_); }
- }
- public int NestedmessageRepeatedInt32Count {
- get { return nestedmessageRepeatedInt32_.Count; }
- }
- public int GetNestedmessageRepeatedInt32(int index) {
- return nestedmessageRepeatedInt32_[index];
- }
- public const int NestedmessageRepeatedForeignmessageFieldNumber = 2;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> nestedmessageRepeatedForeignmessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList {
- get { return nestedmessageRepeatedForeignmessage_; }
- }
- public int NestedmessageRepeatedForeignmessageCount {
- get { return nestedmessageRepeatedForeignmessage_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
- return nestedmessageRepeatedForeignmessage_[index];
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _nestedMessageFieldNames;
- if (nestedmessageRepeatedInt32_.Count > 0) {
- output.WriteInt32Array(1, field_names[1], nestedmessageRepeatedInt32_);
- }
- if (nestedmessageRepeatedForeignmessage_.Count > 0) {
- output.WriteMessageArray(2, field_names[0], nestedmessageRepeatedForeignmessage_);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- {
- int dataSize = 0;
- foreach (int element in NestedmessageRepeatedInt32List) {
- dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
- }
- size += dataSize;
- size += 1 * nestedmessageRepeatedInt32_.Count;
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
- size += pb::CodedOutputStream.ComputeMessageSize(2, element);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static NestedMessage ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static NestedMessage ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static NestedMessage ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private NestedMessage MakeReadOnly() {
- nestedmessageRepeatedInt32_.MakeReadOnly();
- nestedmessageRepeatedForeignmessage_.MakeReadOnly();
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(NestedMessage prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(NestedMessage cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private NestedMessage result;
- private NestedMessage PrepareBuilder() {
- if (resultIsReadOnly) {
- NestedMessage original = result;
- result = new NestedMessage();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override NestedMessage MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Descriptor; }
- }
- public override NestedMessage DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; }
- }
- public override NestedMessage BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is NestedMessage) {
- return MergeFrom((NestedMessage) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(NestedMessage other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) return this;
- PrepareBuilder();
- if (other.nestedmessageRepeatedInt32_.Count != 0) {
- result.nestedmessageRepeatedInt32_.Add(other.nestedmessageRepeatedInt32_);
- }
- if (other.nestedmessageRepeatedForeignmessage_.Count != 0) {
- result.nestedmessageRepeatedForeignmessage_.Add(other.nestedmessageRepeatedForeignmessage_);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_nestedMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _nestedMessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10:
- case 8: {
- input.ReadInt32Array(tag, field_name, result.nestedmessageRepeatedInt32_);
- break;
- }
- case 18: {
- input.ReadMessageArray(tag, field_name, result.nestedmessageRepeatedForeignmessage_, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance, extensionRegistry);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public pbc::IPopsicleList<int> NestedmessageRepeatedInt32List {
- get { return PrepareBuilder().nestedmessageRepeatedInt32_; }
- }
- public int NestedmessageRepeatedInt32Count {
- get { return result.NestedmessageRepeatedInt32Count; }
- }
- public int GetNestedmessageRepeatedInt32(int index) {
- return result.GetNestedmessageRepeatedInt32(index);
- }
- public Builder SetNestedmessageRepeatedInt32(int index, int value) {
- PrepareBuilder();
- result.nestedmessageRepeatedInt32_[index] = value;
- return this;
- }
- public Builder AddNestedmessageRepeatedInt32(int value) {
- PrepareBuilder();
- result.nestedmessageRepeatedInt32_.Add(value);
- return this;
- }
- public Builder AddRangeNestedmessageRepeatedInt32(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.nestedmessageRepeatedInt32_.Add(values);
- return this;
- }
- public Builder ClearNestedmessageRepeatedInt32() {
- PrepareBuilder();
- result.nestedmessageRepeatedInt32_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList {
- get { return PrepareBuilder().nestedmessageRepeatedForeignmessage_; }
- }
- public int NestedmessageRepeatedForeignmessageCount {
- get { return result.NestedmessageRepeatedForeignmessageCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
- return result.GetNestedmessageRepeatedForeignmessage(index);
- }
- public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.nestedmessageRepeatedForeignmessage_[index] = value;
- return this;
- }
- public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.nestedmessageRepeatedForeignmessage_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.nestedmessageRepeatedForeignmessage_.Add(value);
- return this;
- }
- public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.nestedmessageRepeatedForeignmessage_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeNestedmessageRepeatedForeignmessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
- PrepareBuilder();
- result.nestedmessageRepeatedForeignmessage_.Add(values);
- return this;
- }
- public Builder ClearNestedmessageRepeatedForeignmessage() {
- PrepareBuilder();
- result.nestedmessageRepeatedForeignmessage_.Clear();
- return this;
- }
- }
- static NestedMessage() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- }
- #endregion
- public const int OptionalNestedMessageFieldNumber = 1;
- private bool hasOptionalNestedMessage;
- private global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_;
- public bool HasOptionalNestedMessage {
- get { return hasOptionalNestedMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
- get { return optionalNestedMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testNestedMessageHasBitsFieldNames;
- if (hasOptionalNestedMessage) {
- output.WriteMessage(1, field_names[0], OptionalNestedMessage);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasOptionalNestedMessage) {
- size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalNestedMessage);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestNestedMessageHasBits ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestNestedMessageHasBits ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestNestedMessageHasBits ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestNestedMessageHasBits ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestNestedMessageHasBits ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestNestedMessageHasBits ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestNestedMessageHasBits ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestNestedMessageHasBits ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestNestedMessageHasBits MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestNestedMessageHasBits prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestNestedMessageHasBits, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestNestedMessageHasBits cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestNestedMessageHasBits result;
- private TestNestedMessageHasBits PrepareBuilder() {
- if (resultIsReadOnly) {
- TestNestedMessageHasBits original = result;
- result = new TestNestedMessageHasBits();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestNestedMessageHasBits MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Descriptor; }
- }
- public override TestNestedMessageHasBits DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.DefaultInstance; }
- }
- public override TestNestedMessageHasBits BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestNestedMessageHasBits) {
- return MergeFrom((TestNestedMessageHasBits) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestNestedMessageHasBits other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasOptionalNestedMessage) {
- MergeOptionalNestedMessage(other.OptionalNestedMessage);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testNestedMessageHasBitsFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testNestedMessageHasBitsFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder();
- if (result.hasOptionalNestedMessage) {
- subBuilder.MergeFrom(OptionalNestedMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- OptionalNestedMessage = subBuilder.BuildPartial();
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasOptionalNestedMessage {
- get { return result.hasOptionalNestedMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
- get { return result.OptionalNestedMessage; }
- set { SetOptionalNestedMessage(value); }
- }
- public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalNestedMessage = true;
- result.optionalNestedMessage_ = value;
- return this;
- }
- public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasOptionalNestedMessage = true;
- result.optionalNestedMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOptionalNestedMessage &&
- result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) {
- result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
- } else {
- result.optionalNestedMessage_ = value;
- }
- result.hasOptionalNestedMessage = true;
- return this;
- }
- public Builder ClearOptionalNestedMessage() {
- PrepareBuilder();
- result.hasOptionalNestedMessage = false;
- result.optionalNestedMessage_ = null;
- return this;
- }
- }
- static TestNestedMessageHasBits() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestCamelCaseFieldNames : pb::GeneratedMessage<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> {
- private TestCamelCaseFieldNames() { }
- private static readonly TestCamelCaseFieldNames defaultInstance = new TestCamelCaseFieldNames().MakeReadOnly();
- private static readonly string[] _testCamelCaseFieldNamesFieldNames = new string[] { "CordField", "EnumField", "MessageField", "PrimitiveField", "RepeatedCordField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedStringPieceField", "StringField", "StringPieceField" };
- private static readonly uint[] _testCamelCaseFieldNamesFieldTags = new uint[] { 50, 24, 34, 8, 98, 72, 82, 56, 66, 90, 18, 42 };
- public static TestCamelCaseFieldNames DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestCamelCaseFieldNames DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestCamelCaseFieldNames ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; }
- }
- public const int PrimitiveFieldFieldNumber = 1;
- private bool hasPrimitiveField;
- private int primitiveField_;
- public bool HasPrimitiveField {
- get { return hasPrimitiveField; }
- }
- public int PrimitiveField {
- get { return primitiveField_; }
- }
- public const int StringFieldFieldNumber = 2;
- private bool hasStringField;
- private string stringField_ = "";
- public bool HasStringField {
- get { return hasStringField; }
- }
- public string StringField {
- get { return stringField_; }
- }
- public const int EnumFieldFieldNumber = 3;
- private bool hasEnumField;
- private global::Google.ProtocolBuffers.TestProtos.ForeignEnum enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
- public bool HasEnumField {
- get { return hasEnumField; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField {
- get { return enumField_; }
- }
- public const int MessageFieldFieldNumber = 4;
- private bool hasMessageField;
- private global::Google.ProtocolBuffers.TestProtos.ForeignMessage messageField_;
- public bool HasMessageField {
- get { return hasMessageField; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField {
- get { return messageField_ ?? global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; }
- }
- public const int StringPieceFieldFieldNumber = 5;
- private bool hasStringPieceField;
- private string stringPieceField_ = "";
- public bool HasStringPieceField {
- get { return hasStringPieceField; }
- }
- public string StringPieceField {
- get { return stringPieceField_; }
- }
- public const int CordFieldFieldNumber = 6;
- private bool hasCordField;
- private string cordField_ = "";
- public bool HasCordField {
- get { return hasCordField; }
- }
- public string CordField {
- get { return cordField_; }
- }
- public const int RepeatedPrimitiveFieldFieldNumber = 7;
- private pbc::PopsicleList<int> repeatedPrimitiveField_ = new pbc::PopsicleList<int>();
- public scg::IList<int> RepeatedPrimitiveFieldList {
- get { return pbc::Lists.AsReadOnly(repeatedPrimitiveField_); }
- }
- public int RepeatedPrimitiveFieldCount {
- get { return repeatedPrimitiveField_.Count; }
- }
- public int GetRepeatedPrimitiveField(int index) {
- return repeatedPrimitiveField_[index];
- }
- public const int RepeatedStringFieldFieldNumber = 8;
- private pbc::PopsicleList<string> repeatedStringField_ = new pbc::PopsicleList<string>();
- public scg::IList<string> RepeatedStringFieldList {
- get { return pbc::Lists.AsReadOnly(repeatedStringField_); }
- }
- public int RepeatedStringFieldCount {
- get { return repeatedStringField_.Count; }
- }
- public string GetRepeatedStringField(int index) {
- return repeatedStringField_[index];
- }
- public const int RepeatedEnumFieldFieldNumber = 9;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedEnumField_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList {
- get { return pbc::Lists.AsReadOnly(repeatedEnumField_); }
- }
- public int RepeatedEnumFieldCount {
- get { return repeatedEnumField_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) {
- return repeatedEnumField_[index];
- }
- public const int RepeatedMessageFieldFieldNumber = 10;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedMessageField_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList {
- get { return repeatedMessageField_; }
- }
- public int RepeatedMessageFieldCount {
- get { return repeatedMessageField_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) {
- return repeatedMessageField_[index];
- }
- public const int RepeatedStringPieceFieldFieldNumber = 11;
- private pbc::PopsicleList<string> repeatedStringPieceField_ = new pbc::PopsicleList<string>();
- public scg::IList<string> RepeatedStringPieceFieldList {
- get { return pbc::Lists.AsReadOnly(repeatedStringPieceField_); }
- }
- public int RepeatedStringPieceFieldCount {
- get { return repeatedStringPieceField_.Count; }
- }
- public string GetRepeatedStringPieceField(int index) {
- return repeatedStringPieceField_[index];
- }
- public const int RepeatedCordFieldFieldNumber = 12;
- private pbc::PopsicleList<string> repeatedCordField_ = new pbc::PopsicleList<string>();
- public scg::IList<string> RepeatedCordFieldList {
- get { return pbc::Lists.AsReadOnly(repeatedCordField_); }
- }
- public int RepeatedCordFieldCount {
- get { return repeatedCordField_.Count; }
- }
- public string GetRepeatedCordField(int index) {
- return repeatedCordField_[index];
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testCamelCaseFieldNamesFieldNames;
- if (hasPrimitiveField) {
- output.WriteInt32(1, field_names[3], PrimitiveField);
- }
- if (hasStringField) {
- output.WriteString(2, field_names[10], StringField);
- }
- if (hasEnumField) {
- output.WriteEnum(3, field_names[1], (int) EnumField, EnumField);
- }
- if (hasMessageField) {
- output.WriteMessage(4, field_names[2], MessageField);
- }
- if (hasStringPieceField) {
- output.WriteString(5, field_names[11], StringPieceField);
- }
- if (hasCordField) {
- output.WriteString(6, field_names[0], CordField);
- }
- if (repeatedPrimitiveField_.Count > 0) {
- output.WriteInt32Array(7, field_names[7], repeatedPrimitiveField_);
- }
- if (repeatedStringField_.Count > 0) {
- output.WriteStringArray(8, field_names[8], repeatedStringField_);
- }
- if (repeatedEnumField_.Count > 0) {
- output.WriteEnumArray(9, field_names[5], repeatedEnumField_);
- }
- if (repeatedMessageField_.Count > 0) {
- output.WriteMessageArray(10, field_names[6], repeatedMessageField_);
- }
- if (repeatedStringPieceField_.Count > 0) {
- output.WriteStringArray(11, field_names[9], repeatedStringPieceField_);
- }
- if (repeatedCordField_.Count > 0) {
- output.WriteStringArray(12, field_names[4], repeatedCordField_);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasPrimitiveField) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, PrimitiveField);
- }
- if (hasStringField) {
- size += pb::CodedOutputStream.ComputeStringSize(2, StringField);
- }
- if (hasEnumField) {
- size += pb::CodedOutputStream.ComputeEnumSize(3, (int) EnumField);
- }
- if (hasMessageField) {
- size += pb::CodedOutputStream.ComputeMessageSize(4, MessageField);
- }
- if (hasStringPieceField) {
- size += pb::CodedOutputStream.ComputeStringSize(5, StringPieceField);
- }
- if (hasCordField) {
- size += pb::CodedOutputStream.ComputeStringSize(6, CordField);
- }
- {
- int dataSize = 0;
- foreach (int element in RepeatedPrimitiveFieldList) {
- dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
- }
- size += dataSize;
- size += 1 * repeatedPrimitiveField_.Count;
- }
- {
- int dataSize = 0;
- foreach (string element in RepeatedStringFieldList) {
- dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
- }
- size += dataSize;
- size += 1 * repeatedStringField_.Count;
- }
- {
- int dataSize = 0;
- if (repeatedEnumField_.Count > 0) {
- foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in repeatedEnumField_) {
- dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
- }
- size += dataSize;
- size += 1 * repeatedEnumField_.Count;
- }
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) {
- size += pb::CodedOutputStream.ComputeMessageSize(10, element);
- }
- {
- int dataSize = 0;
- foreach (string element in RepeatedStringPieceFieldList) {
- dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
- }
- size += dataSize;
- size += 1 * repeatedStringPieceField_.Count;
- }
- {
- int dataSize = 0;
- foreach (string element in RepeatedCordFieldList) {
- dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
- }
- size += dataSize;
- size += 1 * repeatedCordField_.Count;
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestCamelCaseFieldNames ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestCamelCaseFieldNames ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestCamelCaseFieldNames ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestCamelCaseFieldNames ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestCamelCaseFieldNames ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestCamelCaseFieldNames ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestCamelCaseFieldNames ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestCamelCaseFieldNames ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestCamelCaseFieldNames MakeReadOnly() {
- repeatedPrimitiveField_.MakeReadOnly();
- repeatedStringField_.MakeReadOnly();
- repeatedEnumField_.MakeReadOnly();
- repeatedMessageField_.MakeReadOnly();
- repeatedStringPieceField_.MakeReadOnly();
- repeatedCordField_.MakeReadOnly();
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestCamelCaseFieldNames prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestCamelCaseFieldNames, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestCamelCaseFieldNames cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestCamelCaseFieldNames result;
- private TestCamelCaseFieldNames PrepareBuilder() {
- if (resultIsReadOnly) {
- TestCamelCaseFieldNames original = result;
- result = new TestCamelCaseFieldNames();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestCamelCaseFieldNames MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Descriptor; }
- }
- public override TestCamelCaseFieldNames DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.DefaultInstance; }
- }
- public override TestCamelCaseFieldNames BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestCamelCaseFieldNames) {
- return MergeFrom((TestCamelCaseFieldNames) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestCamelCaseFieldNames other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasPrimitiveField) {
- PrimitiveField = other.PrimitiveField;
- }
- if (other.HasStringField) {
- StringField = other.StringField;
- }
- if (other.HasEnumField) {
- EnumField = other.EnumField;
- }
- if (other.HasMessageField) {
- MergeMessageField(other.MessageField);
- }
- if (other.HasStringPieceField) {
- StringPieceField = other.StringPieceField;
- }
- if (other.HasCordField) {
- CordField = other.CordField;
- }
- if (other.repeatedPrimitiveField_.Count != 0) {
- result.repeatedPrimitiveField_.Add(other.repeatedPrimitiveField_);
- }
- if (other.repeatedStringField_.Count != 0) {
- result.repeatedStringField_.Add(other.repeatedStringField_);
- }
- if (other.repeatedEnumField_.Count != 0) {
- result.repeatedEnumField_.Add(other.repeatedEnumField_);
- }
- if (other.repeatedMessageField_.Count != 0) {
- result.repeatedMessageField_.Add(other.repeatedMessageField_);
- }
- if (other.repeatedStringPieceField_.Count != 0) {
- result.repeatedStringPieceField_.Add(other.repeatedStringPieceField_);
- }
- if (other.repeatedCordField_.Count != 0) {
- result.repeatedCordField_.Add(other.repeatedCordField_);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testCamelCaseFieldNamesFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testCamelCaseFieldNamesFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasPrimitiveField = input.ReadInt32(ref result.primitiveField_);
- break;
- }
- case 18: {
- result.hasStringField = input.ReadString(ref result.stringField_);
- break;
- }
- case 24: {
- object unknown;
- if(input.ReadEnum(ref result.enumField_, out unknown)) {
- result.hasEnumField = true;
- } else if(unknown is int) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- unknownFields.MergeVarintField(3, (ulong)(int)unknown);
- }
- break;
- }
- case 34: {
- global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
- if (result.hasMessageField) {
- subBuilder.MergeFrom(MessageField);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- MessageField = subBuilder.BuildPartial();
- break;
- }
- case 42: {
- result.hasStringPieceField = input.ReadString(ref result.stringPieceField_);
- break;
- }
- case 50: {
- result.hasCordField = input.ReadString(ref result.cordField_);
- break;
- }
- case 58:
- case 56: {
- input.ReadInt32Array(tag, field_name, result.repeatedPrimitiveField_);
- break;
- }
- case 66: {
- input.ReadStringArray(tag, field_name, result.repeatedStringField_);
- break;
- }
- case 74:
- case 72: {
- scg::ICollection<object> unknownItems;
- input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(tag, field_name, result.repeatedEnumField_, out unknownItems);
- if (unknownItems != null) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- foreach (object rawValue in unknownItems)
- if (rawValue is int)
- unknownFields.MergeVarintField(9, (ulong)(int)rawValue);
- }
- break;
- }
- case 82: {
- input.ReadMessageArray(tag, field_name, result.repeatedMessageField_, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance, extensionRegistry);
- break;
- }
- case 90: {
- input.ReadStringArray(tag, field_name, result.repeatedStringPieceField_);
- break;
- }
- case 98: {
- input.ReadStringArray(tag, field_name, result.repeatedCordField_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasPrimitiveField {
- get { return result.hasPrimitiveField; }
- }
- public int PrimitiveField {
- get { return result.PrimitiveField; }
- set { SetPrimitiveField(value); }
- }
- public Builder SetPrimitiveField(int value) {
- PrepareBuilder();
- result.hasPrimitiveField = true;
- result.primitiveField_ = value;
- return this;
- }
- public Builder ClearPrimitiveField() {
- PrepareBuilder();
- result.hasPrimitiveField = false;
- result.primitiveField_ = 0;
- return this;
- }
- public bool HasStringField {
- get { return result.hasStringField; }
- }
- public string StringField {
- get { return result.StringField; }
- set { SetStringField(value); }
- }
- public Builder SetStringField(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasStringField = true;
- result.stringField_ = value;
- return this;
- }
- public Builder ClearStringField() {
- PrepareBuilder();
- result.hasStringField = false;
- result.stringField_ = "";
- return this;
- }
- public bool HasEnumField {
- get { return result.hasEnumField; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField {
- get { return result.EnumField; }
- set { SetEnumField(value); }
- }
- public Builder SetEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
- PrepareBuilder();
- result.hasEnumField = true;
- result.enumField_ = value;
- return this;
- }
- public Builder ClearEnumField() {
- PrepareBuilder();
- result.hasEnumField = false;
- result.enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
- return this;
- }
- public bool HasMessageField {
- get { return result.hasMessageField; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField {
- get { return result.MessageField; }
- set { SetMessageField(value); }
- }
- public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasMessageField = true;
- result.messageField_ = value;
- return this;
- }
- public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasMessageField = true;
- result.messageField_ = builderForValue.Build();
- return this;
- }
- public Builder MergeMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasMessageField &&
- result.messageField_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
- result.messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.messageField_).MergeFrom(value).BuildPartial();
- } else {
- result.messageField_ = value;
- }
- result.hasMessageField = true;
- return this;
- }
- public Builder ClearMessageField() {
- PrepareBuilder();
- result.hasMessageField = false;
- result.messageField_ = null;
- return this;
- }
- public bool HasStringPieceField {
- get { return result.hasStringPieceField; }
- }
- public string StringPieceField {
- get { return result.StringPieceField; }
- set { SetStringPieceField(value); }
- }
- public Builder SetStringPieceField(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasStringPieceField = true;
- result.stringPieceField_ = value;
- return this;
- }
- public Builder ClearStringPieceField() {
- PrepareBuilder();
- result.hasStringPieceField = false;
- result.stringPieceField_ = "";
- return this;
- }
- public bool HasCordField {
- get { return result.hasCordField; }
- }
- public string CordField {
- get { return result.CordField; }
- set { SetCordField(value); }
- }
- public Builder SetCordField(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasCordField = true;
- result.cordField_ = value;
- return this;
- }
- public Builder ClearCordField() {
- PrepareBuilder();
- result.hasCordField = false;
- result.cordField_ = "";
- return this;
- }
- public pbc::IPopsicleList<int> RepeatedPrimitiveFieldList {
- get { return PrepareBuilder().repeatedPrimitiveField_; }
- }
- public int RepeatedPrimitiveFieldCount {
- get { return result.RepeatedPrimitiveFieldCount; }
- }
- public int GetRepeatedPrimitiveField(int index) {
- return result.GetRepeatedPrimitiveField(index);
- }
- public Builder SetRepeatedPrimitiveField(int index, int value) {
- PrepareBuilder();
- result.repeatedPrimitiveField_[index] = value;
- return this;
- }
- public Builder AddRepeatedPrimitiveField(int value) {
- PrepareBuilder();
- result.repeatedPrimitiveField_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedPrimitiveField(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.repeatedPrimitiveField_.Add(values);
- return this;
- }
- public Builder ClearRepeatedPrimitiveField() {
- PrepareBuilder();
- result.repeatedPrimitiveField_.Clear();
- return this;
- }
- public pbc::IPopsicleList<string> RepeatedStringFieldList {
- get { return PrepareBuilder().repeatedStringField_; }
- }
- public int RepeatedStringFieldCount {
- get { return result.RepeatedStringFieldCount; }
- }
- public string GetRepeatedStringField(int index) {
- return result.GetRepeatedStringField(index);
- }
- public Builder SetRepeatedStringField(int index, string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedStringField_[index] = value;
- return this;
- }
- public Builder AddRepeatedStringField(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedStringField_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedStringField(scg::IEnumerable<string> values) {
- PrepareBuilder();
- result.repeatedStringField_.Add(values);
- return this;
- }
- public Builder ClearRepeatedStringField() {
- PrepareBuilder();
- result.repeatedStringField_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList {
- get { return PrepareBuilder().repeatedEnumField_; }
- }
- public int RepeatedEnumFieldCount {
- get { return result.RepeatedEnumFieldCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) {
- return result.GetRepeatedEnumField(index);
- }
- public Builder SetRepeatedEnumField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
- PrepareBuilder();
- result.repeatedEnumField_[index] = value;
- return this;
- }
- public Builder AddRepeatedEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
- PrepareBuilder();
- result.repeatedEnumField_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedEnumField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
- PrepareBuilder();
- result.repeatedEnumField_.Add(values);
- return this;
- }
- public Builder ClearRepeatedEnumField() {
- PrepareBuilder();
- result.repeatedEnumField_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList {
- get { return PrepareBuilder().repeatedMessageField_; }
- }
- public int RepeatedMessageFieldCount {
- get { return result.RepeatedMessageFieldCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) {
- return result.GetRepeatedMessageField(index);
- }
- public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedMessageField_[index] = value;
- return this;
- }
- public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedMessageField_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedMessageField_.Add(value);
- return this;
- }
- public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedMessageField_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeRepeatedMessageField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
- PrepareBuilder();
- result.repeatedMessageField_.Add(values);
- return this;
- }
- public Builder ClearRepeatedMessageField() {
- PrepareBuilder();
- result.repeatedMessageField_.Clear();
- return this;
- }
- public pbc::IPopsicleList<string> RepeatedStringPieceFieldList {
- get { return PrepareBuilder().repeatedStringPieceField_; }
- }
- public int RepeatedStringPieceFieldCount {
- get { return result.RepeatedStringPieceFieldCount; }
- }
- public string GetRepeatedStringPieceField(int index) {
- return result.GetRepeatedStringPieceField(index);
- }
- public Builder SetRepeatedStringPieceField(int index, string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedStringPieceField_[index] = value;
- return this;
- }
- public Builder AddRepeatedStringPieceField(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedStringPieceField_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedStringPieceField(scg::IEnumerable<string> values) {
- PrepareBuilder();
- result.repeatedStringPieceField_.Add(values);
- return this;
- }
- public Builder ClearRepeatedStringPieceField() {
- PrepareBuilder();
- result.repeatedStringPieceField_.Clear();
- return this;
- }
- public pbc::IPopsicleList<string> RepeatedCordFieldList {
- get { return PrepareBuilder().repeatedCordField_; }
- }
- public int RepeatedCordFieldCount {
- get { return result.RepeatedCordFieldCount; }
- }
- public string GetRepeatedCordField(int index) {
- return result.GetRepeatedCordField(index);
- }
- public Builder SetRepeatedCordField(int index, string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedCordField_[index] = value;
- return this;
- }
- public Builder AddRepeatedCordField(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedCordField_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedCordField(scg::IEnumerable<string> values) {
- PrepareBuilder();
- result.repeatedCordField_.Add(values);
- return this;
- }
- public Builder ClearRepeatedCordField() {
- PrepareBuilder();
- result.repeatedCordField_.Clear();
- return this;
- }
- }
- static TestCamelCaseFieldNames() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestFieldOrderings : pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder> {
- private TestFieldOrderings() { }
- private static readonly TestFieldOrderings defaultInstance = new TestFieldOrderings().MakeReadOnly();
- private static readonly string[] _testFieldOrderingsFieldNames = new string[] { "my_float", "my_int", "my_string", "optional_nested_message" };
- private static readonly uint[] _testFieldOrderingsFieldTags = new uint[] { 813, 8, 90, 1602 };
- public static TestFieldOrderings DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestFieldOrderings DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestFieldOrderings ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestFieldOrderings__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestFieldOrderings, TestFieldOrderings.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; }
- }
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
- private NestedMessage() { }
- private static readonly NestedMessage defaultInstance = new NestedMessage().MakeReadOnly();
- private static readonly string[] _nestedMessageFieldNames = new string[] { "bb", "oo" };
- private static readonly uint[] _nestedMessageFieldTags = new uint[] { 8, 16 };
- public static NestedMessage DefaultInstance {
- get { return defaultInstance; }
- }
- public override NestedMessage DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override NestedMessage ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestFieldOrderings_NestedMessage__FieldAccessorTable; }
- }
- public const int OoFieldNumber = 2;
- private bool hasOo;
- private long oo_;
- public bool HasOo {
- get { return hasOo; }
- }
- public long Oo {
- get { return oo_; }
- }
- public const int BbFieldNumber = 1;
- private bool hasBb;
- private int bb_;
- public bool HasBb {
- get { return hasBb; }
- }
- public int Bb {
- get { return bb_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _nestedMessageFieldNames;
- if (hasBb) {
- output.WriteInt32(1, field_names[0], Bb);
- }
- if (hasOo) {
- output.WriteInt64(2, field_names[1], Oo);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasOo) {
- size += pb::CodedOutputStream.ComputeInt64Size(2, Oo);
- }
- if (hasBb) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static NestedMessage ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static NestedMessage ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static NestedMessage ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private NestedMessage MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(NestedMessage prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(NestedMessage cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private NestedMessage result;
- private NestedMessage PrepareBuilder() {
- if (resultIsReadOnly) {
- NestedMessage original = result;
- result = new NestedMessage();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override NestedMessage MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.Descriptor; }
- }
- public override NestedMessage DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.DefaultInstance; }
- }
- public override NestedMessage BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is NestedMessage) {
- return MergeFrom((NestedMessage) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(NestedMessage other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasOo) {
- Oo = other.Oo;
- }
- if (other.HasBb) {
- Bb = other.Bb;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_nestedMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _nestedMessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasBb = input.ReadInt32(ref result.bb_);
- break;
- }
- case 16: {
- result.hasOo = input.ReadInt64(ref result.oo_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasOo {
- get { return result.hasOo; }
- }
- public long Oo {
- get { return result.Oo; }
- set { SetOo(value); }
- }
- public Builder SetOo(long value) {
- PrepareBuilder();
- result.hasOo = true;
- result.oo_ = value;
- return this;
- }
- public Builder ClearOo() {
- PrepareBuilder();
- result.hasOo = false;
- result.oo_ = 0L;
- return this;
- }
- public bool HasBb {
- get { return result.hasBb; }
- }
- public int Bb {
- get { return result.Bb; }
- set { SetBb(value); }
- }
- public Builder SetBb(int value) {
- PrepareBuilder();
- result.hasBb = true;
- result.bb_ = value;
- return this;
- }
- public Builder ClearBb() {
- PrepareBuilder();
- result.hasBb = false;
- result.bb_ = 0;
- return this;
- }
- }
- static NestedMessage() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- }
- #endregion
- public const int MyStringFieldNumber = 11;
- private bool hasMyString;
- private string myString_ = "";
- public bool HasMyString {
- get { return hasMyString; }
- }
- public string MyString {
- get { return myString_; }
- }
- public const int MyIntFieldNumber = 1;
- private bool hasMyInt;
- private long myInt_;
- public bool HasMyInt {
- get { return hasMyInt; }
- }
- public long MyInt {
- get { return myInt_; }
- }
- public const int MyFloatFieldNumber = 101;
- private bool hasMyFloat;
- private float myFloat_;
- public bool HasMyFloat {
- get { return hasMyFloat; }
- }
- public float MyFloat {
- get { return myFloat_; }
- }
- public const int OptionalNestedMessageFieldNumber = 200;
- private bool hasOptionalNestedMessage;
- private global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage optionalNestedMessage_;
- public bool HasOptionalNestedMessage {
- get { return hasOptionalNestedMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage OptionalNestedMessage {
- get { return optionalNestedMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.DefaultInstance; }
- }
- public override bool IsInitialized {
- get {
- if (!ExtensionsAreInitialized) return false;
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testFieldOrderingsFieldNames;
- pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
- if (hasMyInt) {
- output.WriteInt64(1, field_names[1], MyInt);
- }
- extensionWriter.WriteUntil(11, output);
- if (hasMyString) {
- output.WriteString(11, field_names[2], MyString);
- }
- extensionWriter.WriteUntil(101, output);
- if (hasMyFloat) {
- output.WriteFloat(101, field_names[0], MyFloat);
- }
- if (hasOptionalNestedMessage) {
- output.WriteMessage(200, field_names[3], OptionalNestedMessage);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasMyString) {
- size += pb::CodedOutputStream.ComputeStringSize(11, MyString);
- }
- if (hasMyInt) {
- size += pb::CodedOutputStream.ComputeInt64Size(1, MyInt);
- }
- if (hasMyFloat) {
- size += pb::CodedOutputStream.ComputeFloatSize(101, MyFloat);
- }
- if (hasOptionalNestedMessage) {
- size += pb::CodedOutputStream.ComputeMessageSize(200, OptionalNestedMessage);
- }
- size += ExtensionsSerializedSize;
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestFieldOrderings ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestFieldOrderings ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestFieldOrderings ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestFieldOrderings ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestFieldOrderings ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestFieldOrderings ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestFieldOrderings ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestFieldOrderings ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestFieldOrderings ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestFieldOrderings ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestFieldOrderings MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestFieldOrderings prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::ExtendableBuilder<TestFieldOrderings, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestFieldOrderings cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestFieldOrderings result;
- private TestFieldOrderings PrepareBuilder() {
- if (resultIsReadOnly) {
- TestFieldOrderings original = result;
- result = new TestFieldOrderings();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestFieldOrderings MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Descriptor; }
- }
- public override TestFieldOrderings DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.DefaultInstance; }
- }
- public override TestFieldOrderings BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestFieldOrderings) {
- return MergeFrom((TestFieldOrderings) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestFieldOrderings other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasMyString) {
- MyString = other.MyString;
- }
- if (other.HasMyInt) {
- MyInt = other.MyInt;
- }
- if (other.HasMyFloat) {
- MyFloat = other.MyFloat;
- }
- if (other.HasOptionalNestedMessage) {
- MergeOptionalNestedMessage(other.OptionalNestedMessage);
- }
- this.MergeExtensionFields(other);
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testFieldOrderingsFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testFieldOrderingsFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasMyInt = input.ReadInt64(ref result.myInt_);
- break;
- }
- case 90: {
- result.hasMyString = input.ReadString(ref result.myString_);
- break;
- }
- case 813: {
- result.hasMyFloat = input.ReadFloat(ref result.myFloat_);
- break;
- }
- case 1602: {
- global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.CreateBuilder();
- if (result.hasOptionalNestedMessage) {
- subBuilder.MergeFrom(OptionalNestedMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- OptionalNestedMessage = subBuilder.BuildPartial();
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasMyString {
- get { return result.hasMyString; }
- }
- public string MyString {
- get { return result.MyString; }
- set { SetMyString(value); }
- }
- public Builder SetMyString(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasMyString = true;
- result.myString_ = value;
- return this;
- }
- public Builder ClearMyString() {
- PrepareBuilder();
- result.hasMyString = false;
- result.myString_ = "";
- return this;
- }
- public bool HasMyInt {
- get { return result.hasMyInt; }
- }
- public long MyInt {
- get { return result.MyInt; }
- set { SetMyInt(value); }
- }
- public Builder SetMyInt(long value) {
- PrepareBuilder();
- result.hasMyInt = true;
- result.myInt_ = value;
- return this;
- }
- public Builder ClearMyInt() {
- PrepareBuilder();
- result.hasMyInt = false;
- result.myInt_ = 0L;
- return this;
- }
- public bool HasMyFloat {
- get { return result.hasMyFloat; }
- }
- public float MyFloat {
- get { return result.MyFloat; }
- set { SetMyFloat(value); }
- }
- public Builder SetMyFloat(float value) {
- PrepareBuilder();
- result.hasMyFloat = true;
- result.myFloat_ = value;
- return this;
- }
- public Builder ClearMyFloat() {
- PrepareBuilder();
- result.hasMyFloat = false;
- result.myFloat_ = 0F;
- return this;
- }
- public bool HasOptionalNestedMessage {
- get { return result.hasOptionalNestedMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage OptionalNestedMessage {
- get { return result.OptionalNestedMessage; }
- set { SetOptionalNestedMessage(value); }
- }
- public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalNestedMessage = true;
- result.optionalNestedMessage_ = value;
- return this;
- }
- public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasOptionalNestedMessage = true;
- result.optionalNestedMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOptionalNestedMessage &&
- result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.DefaultInstance) {
- result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
- } else {
- result.optionalNestedMessage_ = value;
- }
- result.hasOptionalNestedMessage = true;
- return this;
- }
- public Builder ClearOptionalNestedMessage() {
- PrepareBuilder();
- result.hasOptionalNestedMessage = false;
- result.optionalNestedMessage_ = null;
- return this;
- }
- }
- static TestFieldOrderings() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestExtremeDefaultValues : pb::GeneratedMessage<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> {
- private TestExtremeDefaultValues() { }
- private static readonly TestExtremeDefaultValues defaultInstance = new TestExtremeDefaultValues().MakeReadOnly();
- private static readonly string[] _testExtremeDefaultValuesFieldNames = new string[] { "bytes_with_zero", "cord_with_zero", "cpp_trigraph", "escaped_bytes", "inf_double", "inf_float", "large_float", "large_uint32", "large_uint64", "nan_double", "nan_float", "neg_inf_double", "neg_inf_float", "negative_float", "negative_one_float", "one_float", "really_small_int32", "really_small_int64", "replacement_string", "small_float", "small_int32", "small_int64", "small_negative_float", "string_piece_with_zero", "string_with_zero", "utf8_string", "zero_float" };
- private static readonly uint[] _testExtremeDefaultValuesFieldTags = new uint[] { 194, 210, 162, 10, 113, 141, 101, 16, 24, 129, 157, 121, 149, 93, 85, 69, 168, 176, 218, 77, 32, 40, 109, 202, 186, 50, 61 };
- public static TestExtremeDefaultValues DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestExtremeDefaultValues DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestExtremeDefaultValues ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable; }
- }
- public const int EscapedBytesFieldNumber = 1;
- private bool hasEscapedBytes;
- private pb::ByteString escapedBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue;
- public bool HasEscapedBytes {
- get { return hasEscapedBytes; }
- }
- public pb::ByteString EscapedBytes {
- get { return escapedBytes_; }
- }
- public const int LargeUint32FieldNumber = 2;
- private bool hasLargeUint32;
- private uint largeUint32_ = 4294967295;
- public bool HasLargeUint32 {
- get { return hasLargeUint32; }
- }
- [global::System.CLSCompliant(false)]
- public uint LargeUint32 {
- get { return largeUint32_; }
- }
- public const int LargeUint64FieldNumber = 3;
- private bool hasLargeUint64;
- private ulong largeUint64_ = 18446744073709551615UL;
- public bool HasLargeUint64 {
- get { return hasLargeUint64; }
- }
- [global::System.CLSCompliant(false)]
- public ulong LargeUint64 {
- get { return largeUint64_; }
- }
- public const int SmallInt32FieldNumber = 4;
- private bool hasSmallInt32;
- private int smallInt32_ = -2147483647;
- public bool HasSmallInt32 {
- get { return hasSmallInt32; }
- }
- public int SmallInt32 {
- get { return smallInt32_; }
- }
- public const int SmallInt64FieldNumber = 5;
- private bool hasSmallInt64;
- private long smallInt64_ = -9223372036854775807L;
- public bool HasSmallInt64 {
- get { return hasSmallInt64; }
- }
- public long SmallInt64 {
- get { return smallInt64_; }
- }
- public const int ReallySmallInt32FieldNumber = 21;
- private bool hasReallySmallInt32;
- private int reallySmallInt32_ = -2147483648;
- public bool HasReallySmallInt32 {
- get { return hasReallySmallInt32; }
- }
- public int ReallySmallInt32 {
- get { return reallySmallInt32_; }
- }
- public const int ReallySmallInt64FieldNumber = 22;
- private bool hasReallySmallInt64;
- private long reallySmallInt64_ = -9223372036854775808L;
- public bool HasReallySmallInt64 {
- get { return hasReallySmallInt64; }
- }
- public long ReallySmallInt64 {
- get { return reallySmallInt64_; }
- }
- public const int Utf8StringFieldNumber = 6;
- private bool hasUtf8String;
- private string utf8String_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[7].DefaultValue;
- public bool HasUtf8String {
- get { return hasUtf8String; }
- }
- public string Utf8String {
- get { return utf8String_; }
- }
- public const int ZeroFloatFieldNumber = 7;
- private bool hasZeroFloat;
- private float zeroFloat_;
- public bool HasZeroFloat {
- get { return hasZeroFloat; }
- }
- public float ZeroFloat {
- get { return zeroFloat_; }
- }
- public const int OneFloatFieldNumber = 8;
- private bool hasOneFloat;
- private float oneFloat_ = 1F;
- public bool HasOneFloat {
- get { return hasOneFloat; }
- }
- public float OneFloat {
- get { return oneFloat_; }
- }
- public const int SmallFloatFieldNumber = 9;
- private bool hasSmallFloat;
- private float smallFloat_ = 1.5F;
- public bool HasSmallFloat {
- get { return hasSmallFloat; }
- }
- public float SmallFloat {
- get { return smallFloat_; }
- }
- public const int NegativeOneFloatFieldNumber = 10;
- private bool hasNegativeOneFloat;
- private float negativeOneFloat_ = -1F;
- public bool HasNegativeOneFloat {
- get { return hasNegativeOneFloat; }
- }
- public float NegativeOneFloat {
- get { return negativeOneFloat_; }
- }
- public const int NegativeFloatFieldNumber = 11;
- private bool hasNegativeFloat;
- private float negativeFloat_ = -1.5F;
- public bool HasNegativeFloat {
- get { return hasNegativeFloat; }
- }
- public float NegativeFloat {
- get { return negativeFloat_; }
- }
- public const int LargeFloatFieldNumber = 12;
- private bool hasLargeFloat;
- private float largeFloat_ = 2e+08F;
- public bool HasLargeFloat {
- get { return hasLargeFloat; }
- }
- public float LargeFloat {
- get { return largeFloat_; }
- }
- public const int SmallNegativeFloatFieldNumber = 13;
- private bool hasSmallNegativeFloat;
- private float smallNegativeFloat_ = -8e-28F;
- public bool HasSmallNegativeFloat {
- get { return hasSmallNegativeFloat; }
- }
- public float SmallNegativeFloat {
- get { return smallNegativeFloat_; }
- }
- public const int InfDoubleFieldNumber = 14;
- private bool hasInfDouble;
- private double infDouble_ = double.PositiveInfinity;
- public bool HasInfDouble {
- get { return hasInfDouble; }
- }
- public double InfDouble {
- get { return infDouble_; }
- }
- public const int NegInfDoubleFieldNumber = 15;
- private bool hasNegInfDouble;
- private double negInfDouble_ = double.NegativeInfinity;
- public bool HasNegInfDouble {
- get { return hasNegInfDouble; }
- }
- public double NegInfDouble {
- get { return negInfDouble_; }
- }
- public const int NanDoubleFieldNumber = 16;
- private bool hasNanDouble;
- private double nanDouble_ = double.NaN;
- public bool HasNanDouble {
- get { return hasNanDouble; }
- }
- public double NanDouble {
- get { return nanDouble_; }
- }
- public const int InfFloatFieldNumber = 17;
- private bool hasInfFloat;
- private float infFloat_ = float.PositiveInfinity;
- public bool HasInfFloat {
- get { return hasInfFloat; }
- }
- public float InfFloat {
- get { return infFloat_; }
- }
- public const int NegInfFloatFieldNumber = 18;
- private bool hasNegInfFloat;
- private float negInfFloat_ = float.NegativeInfinity;
- public bool HasNegInfFloat {
- get { return hasNegInfFloat; }
- }
- public float NegInfFloat {
- get { return negInfFloat_; }
- }
- public const int NanFloatFieldNumber = 19;
- private bool hasNanFloat;
- private float nanFloat_ = float.NaN;
- public bool HasNanFloat {
- get { return hasNanFloat; }
- }
- public float NanFloat {
- get { return nanFloat_; }
- }
- public const int CppTrigraphFieldNumber = 20;
- private bool hasCppTrigraph;
- private string cppTrigraph_ = "? ? ?? ?? ??? ??/ ??-";
- public bool HasCppTrigraph {
- get { return hasCppTrigraph; }
- }
- public string CppTrigraph {
- get { return cppTrigraph_; }
- }
- public const int StringWithZeroFieldNumber = 23;
- private bool hasStringWithZero;
- private string stringWithZero_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[22].DefaultValue;
- public bool HasStringWithZero {
- get { return hasStringWithZero; }
- }
- public string StringWithZero {
- get { return stringWithZero_; }
- }
- public const int BytesWithZeroFieldNumber = 24;
- private bool hasBytesWithZero;
- private pb::ByteString bytesWithZero_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[23].DefaultValue;
- public bool HasBytesWithZero {
- get { return hasBytesWithZero; }
- }
- public pb::ByteString BytesWithZero {
- get { return bytesWithZero_; }
- }
- public const int StringPieceWithZeroFieldNumber = 25;
- private bool hasStringPieceWithZero;
- private string stringPieceWithZero_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[24].DefaultValue;
- public bool HasStringPieceWithZero {
- get { return hasStringPieceWithZero; }
- }
- public string StringPieceWithZero {
- get { return stringPieceWithZero_; }
- }
- public const int CordWithZeroFieldNumber = 26;
- private bool hasCordWithZero;
- private string cordWithZero_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[25].DefaultValue;
- public bool HasCordWithZero {
- get { return hasCordWithZero; }
- }
- public string CordWithZero {
- get { return cordWithZero_; }
- }
- public const int ReplacementStringFieldNumber = 27;
- private bool hasReplacementString;
- private string replacementString_ = "${unknown}";
- public bool HasReplacementString {
- get { return hasReplacementString; }
- }
- public string ReplacementString {
- get { return replacementString_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testExtremeDefaultValuesFieldNames;
- if (hasEscapedBytes) {
- output.WriteBytes(1, field_names[3], EscapedBytes);
- }
- if (hasLargeUint32) {
- output.WriteUInt32(2, field_names[7], LargeUint32);
- }
- if (hasLargeUint64) {
- output.WriteUInt64(3, field_names[8], LargeUint64);
- }
- if (hasSmallInt32) {
- output.WriteInt32(4, field_names[20], SmallInt32);
- }
- if (hasSmallInt64) {
- output.WriteInt64(5, field_names[21], SmallInt64);
- }
- if (hasUtf8String) {
- output.WriteString(6, field_names[25], Utf8String);
- }
- if (hasZeroFloat) {
- output.WriteFloat(7, field_names[26], ZeroFloat);
- }
- if (hasOneFloat) {
- output.WriteFloat(8, field_names[15], OneFloat);
- }
- if (hasSmallFloat) {
- output.WriteFloat(9, field_names[19], SmallFloat);
- }
- if (hasNegativeOneFloat) {
- output.WriteFloat(10, field_names[14], NegativeOneFloat);
- }
- if (hasNegativeFloat) {
- output.WriteFloat(11, field_names[13], NegativeFloat);
- }
- if (hasLargeFloat) {
- output.WriteFloat(12, field_names[6], LargeFloat);
- }
- if (hasSmallNegativeFloat) {
- output.WriteFloat(13, field_names[22], SmallNegativeFloat);
- }
- if (hasInfDouble) {
- output.WriteDouble(14, field_names[4], InfDouble);
- }
- if (hasNegInfDouble) {
- output.WriteDouble(15, field_names[11], NegInfDouble);
- }
- if (hasNanDouble) {
- output.WriteDouble(16, field_names[9], NanDouble);
- }
- if (hasInfFloat) {
- output.WriteFloat(17, field_names[5], InfFloat);
- }
- if (hasNegInfFloat) {
- output.WriteFloat(18, field_names[12], NegInfFloat);
- }
- if (hasNanFloat) {
- output.WriteFloat(19, field_names[10], NanFloat);
- }
- if (hasCppTrigraph) {
- output.WriteString(20, field_names[2], CppTrigraph);
- }
- if (hasReallySmallInt32) {
- output.WriteInt32(21, field_names[16], ReallySmallInt32);
- }
- if (hasReallySmallInt64) {
- output.WriteInt64(22, field_names[17], ReallySmallInt64);
- }
- if (hasStringWithZero) {
- output.WriteString(23, field_names[24], StringWithZero);
- }
- if (hasBytesWithZero) {
- output.WriteBytes(24, field_names[0], BytesWithZero);
- }
- if (hasStringPieceWithZero) {
- output.WriteString(25, field_names[23], StringPieceWithZero);
- }
- if (hasCordWithZero) {
- output.WriteString(26, field_names[1], CordWithZero);
- }
- if (hasReplacementString) {
- output.WriteString(27, field_names[18], ReplacementString);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasEscapedBytes) {
- size += pb::CodedOutputStream.ComputeBytesSize(1, EscapedBytes);
- }
- if (hasLargeUint32) {
- size += pb::CodedOutputStream.ComputeUInt32Size(2, LargeUint32);
- }
- if (hasLargeUint64) {
- size += pb::CodedOutputStream.ComputeUInt64Size(3, LargeUint64);
- }
- if (hasSmallInt32) {
- size += pb::CodedOutputStream.ComputeInt32Size(4, SmallInt32);
- }
- if (hasSmallInt64) {
- size += pb::CodedOutputStream.ComputeInt64Size(5, SmallInt64);
- }
- if (hasReallySmallInt32) {
- size += pb::CodedOutputStream.ComputeInt32Size(21, ReallySmallInt32);
- }
- if (hasReallySmallInt64) {
- size += pb::CodedOutputStream.ComputeInt64Size(22, ReallySmallInt64);
- }
- if (hasUtf8String) {
- size += pb::CodedOutputStream.ComputeStringSize(6, Utf8String);
- }
- if (hasZeroFloat) {
- size += pb::CodedOutputStream.ComputeFloatSize(7, ZeroFloat);
- }
- if (hasOneFloat) {
- size += pb::CodedOutputStream.ComputeFloatSize(8, OneFloat);
- }
- if (hasSmallFloat) {
- size += pb::CodedOutputStream.ComputeFloatSize(9, SmallFloat);
- }
- if (hasNegativeOneFloat) {
- size += pb::CodedOutputStream.ComputeFloatSize(10, NegativeOneFloat);
- }
- if (hasNegativeFloat) {
- size += pb::CodedOutputStream.ComputeFloatSize(11, NegativeFloat);
- }
- if (hasLargeFloat) {
- size += pb::CodedOutputStream.ComputeFloatSize(12, LargeFloat);
- }
- if (hasSmallNegativeFloat) {
- size += pb::CodedOutputStream.ComputeFloatSize(13, SmallNegativeFloat);
- }
- if (hasInfDouble) {
- size += pb::CodedOutputStream.ComputeDoubleSize(14, InfDouble);
- }
- if (hasNegInfDouble) {
- size += pb::CodedOutputStream.ComputeDoubleSize(15, NegInfDouble);
- }
- if (hasNanDouble) {
- size += pb::CodedOutputStream.ComputeDoubleSize(16, NanDouble);
- }
- if (hasInfFloat) {
- size += pb::CodedOutputStream.ComputeFloatSize(17, InfFloat);
- }
- if (hasNegInfFloat) {
- size += pb::CodedOutputStream.ComputeFloatSize(18, NegInfFloat);
- }
- if (hasNanFloat) {
- size += pb::CodedOutputStream.ComputeFloatSize(19, NanFloat);
- }
- if (hasCppTrigraph) {
- size += pb::CodedOutputStream.ComputeStringSize(20, CppTrigraph);
- }
- if (hasStringWithZero) {
- size += pb::CodedOutputStream.ComputeStringSize(23, StringWithZero);
- }
- if (hasBytesWithZero) {
- size += pb::CodedOutputStream.ComputeBytesSize(24, BytesWithZero);
- }
- if (hasStringPieceWithZero) {
- size += pb::CodedOutputStream.ComputeStringSize(25, StringPieceWithZero);
- }
- if (hasCordWithZero) {
- size += pb::CodedOutputStream.ComputeStringSize(26, CordWithZero);
- }
- if (hasReplacementString) {
- size += pb::CodedOutputStream.ComputeStringSize(27, ReplacementString);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestExtremeDefaultValues ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestExtremeDefaultValues ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestExtremeDefaultValues ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestExtremeDefaultValues ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestExtremeDefaultValues ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestExtremeDefaultValues ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestExtremeDefaultValues ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestExtremeDefaultValues ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestExtremeDefaultValues MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestExtremeDefaultValues prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestExtremeDefaultValues, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestExtremeDefaultValues cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestExtremeDefaultValues result;
- private TestExtremeDefaultValues PrepareBuilder() {
- if (resultIsReadOnly) {
- TestExtremeDefaultValues original = result;
- result = new TestExtremeDefaultValues();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestExtremeDefaultValues MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor; }
- }
- public override TestExtremeDefaultValues DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.DefaultInstance; }
- }
- public override TestExtremeDefaultValues BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestExtremeDefaultValues) {
- return MergeFrom((TestExtremeDefaultValues) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestExtremeDefaultValues other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasEscapedBytes) {
- EscapedBytes = other.EscapedBytes;
- }
- if (other.HasLargeUint32) {
- LargeUint32 = other.LargeUint32;
- }
- if (other.HasLargeUint64) {
- LargeUint64 = other.LargeUint64;
- }
- if (other.HasSmallInt32) {
- SmallInt32 = other.SmallInt32;
- }
- if (other.HasSmallInt64) {
- SmallInt64 = other.SmallInt64;
- }
- if (other.HasReallySmallInt32) {
- ReallySmallInt32 = other.ReallySmallInt32;
- }
- if (other.HasReallySmallInt64) {
- ReallySmallInt64 = other.ReallySmallInt64;
- }
- if (other.HasUtf8String) {
- Utf8String = other.Utf8String;
- }
- if (other.HasZeroFloat) {
- ZeroFloat = other.ZeroFloat;
- }
- if (other.HasOneFloat) {
- OneFloat = other.OneFloat;
- }
- if (other.HasSmallFloat) {
- SmallFloat = other.SmallFloat;
- }
- if (other.HasNegativeOneFloat) {
- NegativeOneFloat = other.NegativeOneFloat;
- }
- if (other.HasNegativeFloat) {
- NegativeFloat = other.NegativeFloat;
- }
- if (other.HasLargeFloat) {
- LargeFloat = other.LargeFloat;
- }
- if (other.HasSmallNegativeFloat) {
- SmallNegativeFloat = other.SmallNegativeFloat;
- }
- if (other.HasInfDouble) {
- InfDouble = other.InfDouble;
- }
- if (other.HasNegInfDouble) {
- NegInfDouble = other.NegInfDouble;
- }
- if (other.HasNanDouble) {
- NanDouble = other.NanDouble;
- }
- if (other.HasInfFloat) {
- InfFloat = other.InfFloat;
- }
- if (other.HasNegInfFloat) {
- NegInfFloat = other.NegInfFloat;
- }
- if (other.HasNanFloat) {
- NanFloat = other.NanFloat;
- }
- if (other.HasCppTrigraph) {
- CppTrigraph = other.CppTrigraph;
- }
- if (other.HasStringWithZero) {
- StringWithZero = other.StringWithZero;
- }
- if (other.HasBytesWithZero) {
- BytesWithZero = other.BytesWithZero;
- }
- if (other.HasStringPieceWithZero) {
- StringPieceWithZero = other.StringPieceWithZero;
- }
- if (other.HasCordWithZero) {
- CordWithZero = other.CordWithZero;
- }
- if (other.HasReplacementString) {
- ReplacementString = other.ReplacementString;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testExtremeDefaultValuesFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testExtremeDefaultValuesFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- result.hasEscapedBytes = input.ReadBytes(ref result.escapedBytes_);
- break;
- }
- case 16: {
- result.hasLargeUint32 = input.ReadUInt32(ref result.largeUint32_);
- break;
- }
- case 24: {
- result.hasLargeUint64 = input.ReadUInt64(ref result.largeUint64_);
- break;
- }
- case 32: {
- result.hasSmallInt32 = input.ReadInt32(ref result.smallInt32_);
- break;
- }
- case 40: {
- result.hasSmallInt64 = input.ReadInt64(ref result.smallInt64_);
- break;
- }
- case 50: {
- result.hasUtf8String = input.ReadString(ref result.utf8String_);
- break;
- }
- case 61: {
- result.hasZeroFloat = input.ReadFloat(ref result.zeroFloat_);
- break;
- }
- case 69: {
- result.hasOneFloat = input.ReadFloat(ref result.oneFloat_);
- break;
- }
- case 77: {
- result.hasSmallFloat = input.ReadFloat(ref result.smallFloat_);
- break;
- }
- case 85: {
- result.hasNegativeOneFloat = input.ReadFloat(ref result.negativeOneFloat_);
- break;
- }
- case 93: {
- result.hasNegativeFloat = input.ReadFloat(ref result.negativeFloat_);
- break;
- }
- case 101: {
- result.hasLargeFloat = input.ReadFloat(ref result.largeFloat_);
- break;
- }
- case 109: {
- result.hasSmallNegativeFloat = input.ReadFloat(ref result.smallNegativeFloat_);
- break;
- }
- case 113: {
- result.hasInfDouble = input.ReadDouble(ref result.infDouble_);
- break;
- }
- case 121: {
- result.hasNegInfDouble = input.ReadDouble(ref result.negInfDouble_);
- break;
- }
- case 129: {
- result.hasNanDouble = input.ReadDouble(ref result.nanDouble_);
- break;
- }
- case 141: {
- result.hasInfFloat = input.ReadFloat(ref result.infFloat_);
- break;
- }
- case 149: {
- result.hasNegInfFloat = input.ReadFloat(ref result.negInfFloat_);
- break;
- }
- case 157: {
- result.hasNanFloat = input.ReadFloat(ref result.nanFloat_);
- break;
- }
- case 162: {
- result.hasCppTrigraph = input.ReadString(ref result.cppTrigraph_);
- break;
- }
- case 168: {
- result.hasReallySmallInt32 = input.ReadInt32(ref result.reallySmallInt32_);
- break;
- }
- case 176: {
- result.hasReallySmallInt64 = input.ReadInt64(ref result.reallySmallInt64_);
- break;
- }
- case 186: {
- result.hasStringWithZero = input.ReadString(ref result.stringWithZero_);
- break;
- }
- case 194: {
- result.hasBytesWithZero = input.ReadBytes(ref result.bytesWithZero_);
- break;
- }
- case 202: {
- result.hasStringPieceWithZero = input.ReadString(ref result.stringPieceWithZero_);
- break;
- }
- case 210: {
- result.hasCordWithZero = input.ReadString(ref result.cordWithZero_);
- break;
- }
- case 218: {
- result.hasReplacementString = input.ReadString(ref result.replacementString_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasEscapedBytes {
- get { return result.hasEscapedBytes; }
- }
- public pb::ByteString EscapedBytes {
- get { return result.EscapedBytes; }
- set { SetEscapedBytes(value); }
- }
- public Builder SetEscapedBytes(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasEscapedBytes = true;
- result.escapedBytes_ = value;
- return this;
- }
- public Builder ClearEscapedBytes() {
- PrepareBuilder();
- result.hasEscapedBytes = false;
- result.escapedBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue;
- return this;
- }
- public bool HasLargeUint32 {
- get { return result.hasLargeUint32; }
- }
- [global::System.CLSCompliant(false)]
- public uint LargeUint32 {
- get { return result.LargeUint32; }
- set { SetLargeUint32(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetLargeUint32(uint value) {
- PrepareBuilder();
- result.hasLargeUint32 = true;
- result.largeUint32_ = value;
- return this;
- }
- public Builder ClearLargeUint32() {
- PrepareBuilder();
- result.hasLargeUint32 = false;
- result.largeUint32_ = 4294967295;
- return this;
- }
- public bool HasLargeUint64 {
- get { return result.hasLargeUint64; }
- }
- [global::System.CLSCompliant(false)]
- public ulong LargeUint64 {
- get { return result.LargeUint64; }
- set { SetLargeUint64(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetLargeUint64(ulong value) {
- PrepareBuilder();
- result.hasLargeUint64 = true;
- result.largeUint64_ = value;
- return this;
- }
- public Builder ClearLargeUint64() {
- PrepareBuilder();
- result.hasLargeUint64 = false;
- result.largeUint64_ = 18446744073709551615UL;
- return this;
- }
- public bool HasSmallInt32 {
- get { return result.hasSmallInt32; }
- }
- public int SmallInt32 {
- get { return result.SmallInt32; }
- set { SetSmallInt32(value); }
- }
- public Builder SetSmallInt32(int value) {
- PrepareBuilder();
- result.hasSmallInt32 = true;
- result.smallInt32_ = value;
- return this;
- }
- public Builder ClearSmallInt32() {
- PrepareBuilder();
- result.hasSmallInt32 = false;
- result.smallInt32_ = -2147483647;
- return this;
- }
- public bool HasSmallInt64 {
- get { return result.hasSmallInt64; }
- }
- public long SmallInt64 {
- get { return result.SmallInt64; }
- set { SetSmallInt64(value); }
- }
- public Builder SetSmallInt64(long value) {
- PrepareBuilder();
- result.hasSmallInt64 = true;
- result.smallInt64_ = value;
- return this;
- }
- public Builder ClearSmallInt64() {
- PrepareBuilder();
- result.hasSmallInt64 = false;
- result.smallInt64_ = -9223372036854775807L;
- return this;
- }
- public bool HasReallySmallInt32 {
- get { return result.hasReallySmallInt32; }
- }
- public int ReallySmallInt32 {
- get { return result.ReallySmallInt32; }
- set { SetReallySmallInt32(value); }
- }
- public Builder SetReallySmallInt32(int value) {
- PrepareBuilder();
- result.hasReallySmallInt32 = true;
- result.reallySmallInt32_ = value;
- return this;
- }
- public Builder ClearReallySmallInt32() {
- PrepareBuilder();
- result.hasReallySmallInt32 = false;
- result.reallySmallInt32_ = -2147483648;
- return this;
- }
- public bool HasReallySmallInt64 {
- get { return result.hasReallySmallInt64; }
- }
- public long ReallySmallInt64 {
- get { return result.ReallySmallInt64; }
- set { SetReallySmallInt64(value); }
- }
- public Builder SetReallySmallInt64(long value) {
- PrepareBuilder();
- result.hasReallySmallInt64 = true;
- result.reallySmallInt64_ = value;
- return this;
- }
- public Builder ClearReallySmallInt64() {
- PrepareBuilder();
- result.hasReallySmallInt64 = false;
- result.reallySmallInt64_ = -9223372036854775808L;
- return this;
- }
- public bool HasUtf8String {
- get { return result.hasUtf8String; }
- }
- public string Utf8String {
- get { return result.Utf8String; }
- set { SetUtf8String(value); }
- }
- public Builder SetUtf8String(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasUtf8String = true;
- result.utf8String_ = value;
- return this;
- }
- public Builder ClearUtf8String() {
- PrepareBuilder();
- result.hasUtf8String = false;
- result.utf8String_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[7].DefaultValue;
- return this;
- }
- public bool HasZeroFloat {
- get { return result.hasZeroFloat; }
- }
- public float ZeroFloat {
- get { return result.ZeroFloat; }
- set { SetZeroFloat(value); }
- }
- public Builder SetZeroFloat(float value) {
- PrepareBuilder();
- result.hasZeroFloat = true;
- result.zeroFloat_ = value;
- return this;
- }
- public Builder ClearZeroFloat() {
- PrepareBuilder();
- result.hasZeroFloat = false;
- result.zeroFloat_ = 0F;
- return this;
- }
- public bool HasOneFloat {
- get { return result.hasOneFloat; }
- }
- public float OneFloat {
- get { return result.OneFloat; }
- set { SetOneFloat(value); }
- }
- public Builder SetOneFloat(float value) {
- PrepareBuilder();
- result.hasOneFloat = true;
- result.oneFloat_ = value;
- return this;
- }
- public Builder ClearOneFloat() {
- PrepareBuilder();
- result.hasOneFloat = false;
- result.oneFloat_ = 1F;
- return this;
- }
- public bool HasSmallFloat {
- get { return result.hasSmallFloat; }
- }
- public float SmallFloat {
- get { return result.SmallFloat; }
- set { SetSmallFloat(value); }
- }
- public Builder SetSmallFloat(float value) {
- PrepareBuilder();
- result.hasSmallFloat = true;
- result.smallFloat_ = value;
- return this;
- }
- public Builder ClearSmallFloat() {
- PrepareBuilder();
- result.hasSmallFloat = false;
- result.smallFloat_ = 1.5F;
- return this;
- }
- public bool HasNegativeOneFloat {
- get { return result.hasNegativeOneFloat; }
- }
- public float NegativeOneFloat {
- get { return result.NegativeOneFloat; }
- set { SetNegativeOneFloat(value); }
- }
- public Builder SetNegativeOneFloat(float value) {
- PrepareBuilder();
- result.hasNegativeOneFloat = true;
- result.negativeOneFloat_ = value;
- return this;
- }
- public Builder ClearNegativeOneFloat() {
- PrepareBuilder();
- result.hasNegativeOneFloat = false;
- result.negativeOneFloat_ = -1F;
- return this;
- }
- public bool HasNegativeFloat {
- get { return result.hasNegativeFloat; }
- }
- public float NegativeFloat {
- get { return result.NegativeFloat; }
- set { SetNegativeFloat(value); }
- }
- public Builder SetNegativeFloat(float value) {
- PrepareBuilder();
- result.hasNegativeFloat = true;
- result.negativeFloat_ = value;
- return this;
- }
- public Builder ClearNegativeFloat() {
- PrepareBuilder();
- result.hasNegativeFloat = false;
- result.negativeFloat_ = -1.5F;
- return this;
- }
- public bool HasLargeFloat {
- get { return result.hasLargeFloat; }
- }
- public float LargeFloat {
- get { return result.LargeFloat; }
- set { SetLargeFloat(value); }
- }
- public Builder SetLargeFloat(float value) {
- PrepareBuilder();
- result.hasLargeFloat = true;
- result.largeFloat_ = value;
- return this;
- }
- public Builder ClearLargeFloat() {
- PrepareBuilder();
- result.hasLargeFloat = false;
- result.largeFloat_ = 2e+08F;
- return this;
- }
- public bool HasSmallNegativeFloat {
- get { return result.hasSmallNegativeFloat; }
- }
- public float SmallNegativeFloat {
- get { return result.SmallNegativeFloat; }
- set { SetSmallNegativeFloat(value); }
- }
- public Builder SetSmallNegativeFloat(float value) {
- PrepareBuilder();
- result.hasSmallNegativeFloat = true;
- result.smallNegativeFloat_ = value;
- return this;
- }
- public Builder ClearSmallNegativeFloat() {
- PrepareBuilder();
- result.hasSmallNegativeFloat = false;
- result.smallNegativeFloat_ = -8e-28F;
- return this;
- }
- public bool HasInfDouble {
- get { return result.hasInfDouble; }
- }
- public double InfDouble {
- get { return result.InfDouble; }
- set { SetInfDouble(value); }
- }
- public Builder SetInfDouble(double value) {
- PrepareBuilder();
- result.hasInfDouble = true;
- result.infDouble_ = value;
- return this;
- }
- public Builder ClearInfDouble() {
- PrepareBuilder();
- result.hasInfDouble = false;
- result.infDouble_ = double.PositiveInfinity;
- return this;
- }
- public bool HasNegInfDouble {
- get { return result.hasNegInfDouble; }
- }
- public double NegInfDouble {
- get { return result.NegInfDouble; }
- set { SetNegInfDouble(value); }
- }
- public Builder SetNegInfDouble(double value) {
- PrepareBuilder();
- result.hasNegInfDouble = true;
- result.negInfDouble_ = value;
- return this;
- }
- public Builder ClearNegInfDouble() {
- PrepareBuilder();
- result.hasNegInfDouble = false;
- result.negInfDouble_ = double.NegativeInfinity;
- return this;
- }
- public bool HasNanDouble {
- get { return result.hasNanDouble; }
- }
- public double NanDouble {
- get { return result.NanDouble; }
- set { SetNanDouble(value); }
- }
- public Builder SetNanDouble(double value) {
- PrepareBuilder();
- result.hasNanDouble = true;
- result.nanDouble_ = value;
- return this;
- }
- public Builder ClearNanDouble() {
- PrepareBuilder();
- result.hasNanDouble = false;
- result.nanDouble_ = double.NaN;
- return this;
- }
- public bool HasInfFloat {
- get { return result.hasInfFloat; }
- }
- public float InfFloat {
- get { return result.InfFloat; }
- set { SetInfFloat(value); }
- }
- public Builder SetInfFloat(float value) {
- PrepareBuilder();
- result.hasInfFloat = true;
- result.infFloat_ = value;
- return this;
- }
- public Builder ClearInfFloat() {
- PrepareBuilder();
- result.hasInfFloat = false;
- result.infFloat_ = float.PositiveInfinity;
- return this;
- }
- public bool HasNegInfFloat {
- get { return result.hasNegInfFloat; }
- }
- public float NegInfFloat {
- get { return result.NegInfFloat; }
- set { SetNegInfFloat(value); }
- }
- public Builder SetNegInfFloat(float value) {
- PrepareBuilder();
- result.hasNegInfFloat = true;
- result.negInfFloat_ = value;
- return this;
- }
- public Builder ClearNegInfFloat() {
- PrepareBuilder();
- result.hasNegInfFloat = false;
- result.negInfFloat_ = float.NegativeInfinity;
- return this;
- }
- public bool HasNanFloat {
- get { return result.hasNanFloat; }
- }
- public float NanFloat {
- get { return result.NanFloat; }
- set { SetNanFloat(value); }
- }
- public Builder SetNanFloat(float value) {
- PrepareBuilder();
- result.hasNanFloat = true;
- result.nanFloat_ = value;
- return this;
- }
- public Builder ClearNanFloat() {
- PrepareBuilder();
- result.hasNanFloat = false;
- result.nanFloat_ = float.NaN;
- return this;
- }
- public bool HasCppTrigraph {
- get { return result.hasCppTrigraph; }
- }
- public string CppTrigraph {
- get { return result.CppTrigraph; }
- set { SetCppTrigraph(value); }
- }
- public Builder SetCppTrigraph(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasCppTrigraph = true;
- result.cppTrigraph_ = value;
- return this;
- }
- public Builder ClearCppTrigraph() {
- PrepareBuilder();
- result.hasCppTrigraph = false;
- result.cppTrigraph_ = "? ? ?? ?? ??? ??/ ??-";
- return this;
- }
- public bool HasStringWithZero {
- get { return result.hasStringWithZero; }
- }
- public string StringWithZero {
- get { return result.StringWithZero; }
- set { SetStringWithZero(value); }
- }
- public Builder SetStringWithZero(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasStringWithZero = true;
- result.stringWithZero_ = value;
- return this;
- }
- public Builder ClearStringWithZero() {
- PrepareBuilder();
- result.hasStringWithZero = false;
- result.stringWithZero_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[22].DefaultValue;
- return this;
- }
- public bool HasBytesWithZero {
- get { return result.hasBytesWithZero; }
- }
- public pb::ByteString BytesWithZero {
- get { return result.BytesWithZero; }
- set { SetBytesWithZero(value); }
- }
- public Builder SetBytesWithZero(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasBytesWithZero = true;
- result.bytesWithZero_ = value;
- return this;
- }
- public Builder ClearBytesWithZero() {
- PrepareBuilder();
- result.hasBytesWithZero = false;
- result.bytesWithZero_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[23].DefaultValue;
- return this;
- }
- public bool HasStringPieceWithZero {
- get { return result.hasStringPieceWithZero; }
- }
- public string StringPieceWithZero {
- get { return result.StringPieceWithZero; }
- set { SetStringPieceWithZero(value); }
- }
- public Builder SetStringPieceWithZero(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasStringPieceWithZero = true;
- result.stringPieceWithZero_ = value;
- return this;
- }
- public Builder ClearStringPieceWithZero() {
- PrepareBuilder();
- result.hasStringPieceWithZero = false;
- result.stringPieceWithZero_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[24].DefaultValue;
- return this;
- }
- public bool HasCordWithZero {
- get { return result.hasCordWithZero; }
- }
- public string CordWithZero {
- get { return result.CordWithZero; }
- set { SetCordWithZero(value); }
- }
- public Builder SetCordWithZero(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasCordWithZero = true;
- result.cordWithZero_ = value;
- return this;
- }
- public Builder ClearCordWithZero() {
- PrepareBuilder();
- result.hasCordWithZero = false;
- result.cordWithZero_ = (string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[25].DefaultValue;
- return this;
- }
- public bool HasReplacementString {
- get { return result.hasReplacementString; }
- }
- public string ReplacementString {
- get { return result.ReplacementString; }
- set { SetReplacementString(value); }
- }
- public Builder SetReplacementString(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasReplacementString = true;
- result.replacementString_ = value;
- return this;
- }
- public Builder ClearReplacementString() {
- PrepareBuilder();
- result.hasReplacementString = false;
- result.replacementString_ = "${unknown}";
- return this;
- }
- }
- static TestExtremeDefaultValues() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class SparseEnumMessage : pb::GeneratedMessage<SparseEnumMessage, SparseEnumMessage.Builder> {
- private SparseEnumMessage() { }
- private static readonly SparseEnumMessage defaultInstance = new SparseEnumMessage().MakeReadOnly();
- private static readonly string[] _sparseEnumMessageFieldNames = new string[] { "sparse_enum" };
- private static readonly uint[] _sparseEnumMessageFieldTags = new uint[] { 8 };
- public static SparseEnumMessage DefaultInstance {
- get { return defaultInstance; }
- }
- public override SparseEnumMessage DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override SparseEnumMessage ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_SparseEnumMessage__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<SparseEnumMessage, SparseEnumMessage.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_SparseEnumMessage__FieldAccessorTable; }
- }
- public const int SparseEnumFieldNumber = 1;
- private bool hasSparseEnum;
- private global::Google.ProtocolBuffers.TestProtos.TestSparseEnum sparseEnum_ = global::Google.ProtocolBuffers.TestProtos.TestSparseEnum.SPARSE_A;
- public bool HasSparseEnum {
- get { return hasSparseEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestSparseEnum SparseEnum {
- get { return sparseEnum_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _sparseEnumMessageFieldNames;
- if (hasSparseEnum) {
- output.WriteEnum(1, field_names[0], (int) SparseEnum, SparseEnum);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasSparseEnum) {
- size += pb::CodedOutputStream.ComputeEnumSize(1, (int) SparseEnum);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static SparseEnumMessage ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static SparseEnumMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static SparseEnumMessage ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static SparseEnumMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static SparseEnumMessage ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static SparseEnumMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static SparseEnumMessage ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static SparseEnumMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static SparseEnumMessage ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static SparseEnumMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private SparseEnumMessage MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(SparseEnumMessage prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<SparseEnumMessage, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(SparseEnumMessage cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private SparseEnumMessage result;
- private SparseEnumMessage PrepareBuilder() {
- if (resultIsReadOnly) {
- SparseEnumMessage original = result;
- result = new SparseEnumMessage();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override SparseEnumMessage MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.SparseEnumMessage.Descriptor; }
- }
- public override SparseEnumMessage DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.SparseEnumMessage.DefaultInstance; }
- }
- public override SparseEnumMessage BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is SparseEnumMessage) {
- return MergeFrom((SparseEnumMessage) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(SparseEnumMessage other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.SparseEnumMessage.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasSparseEnum) {
- SparseEnum = other.SparseEnum;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_sparseEnumMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _sparseEnumMessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- object unknown;
- if(input.ReadEnum(ref result.sparseEnum_, out unknown)) {
- result.hasSparseEnum = true;
- } else if(unknown is int) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- unknownFields.MergeVarintField(1, (ulong)(int)unknown);
- }
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasSparseEnum {
- get { return result.hasSparseEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestSparseEnum SparseEnum {
- get { return result.SparseEnum; }
- set { SetSparseEnum(value); }
- }
- public Builder SetSparseEnum(global::Google.ProtocolBuffers.TestProtos.TestSparseEnum value) {
- PrepareBuilder();
- result.hasSparseEnum = true;
- result.sparseEnum_ = value;
- return this;
- }
- public Builder ClearSparseEnum() {
- PrepareBuilder();
- result.hasSparseEnum = false;
- result.sparseEnum_ = global::Google.ProtocolBuffers.TestProtos.TestSparseEnum.SPARSE_A;
- return this;
- }
- }
- static SparseEnumMessage() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class OneString : pb::GeneratedMessage<OneString, OneString.Builder> {
- private OneString() { }
- private static readonly OneString defaultInstance = new OneString().MakeReadOnly();
- private static readonly string[] _oneStringFieldNames = new string[] { "data" };
- private static readonly uint[] _oneStringFieldTags = new uint[] { 10 };
- public static OneString DefaultInstance {
- get { return defaultInstance; }
- }
- public override OneString DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override OneString ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_OneString__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<OneString, OneString.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_OneString__FieldAccessorTable; }
- }
- public const int DataFieldNumber = 1;
- private bool hasData;
- private string data_ = "";
- public bool HasData {
- get { return hasData; }
- }
- public string Data {
- get { return data_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _oneStringFieldNames;
- if (hasData) {
- output.WriteString(1, field_names[0], Data);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasData) {
- size += pb::CodedOutputStream.ComputeStringSize(1, Data);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static OneString ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static OneString ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static OneString ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static OneString ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static OneString ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static OneString ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static OneString ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static OneString ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static OneString ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static OneString ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private OneString MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(OneString prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<OneString, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(OneString cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private OneString result;
- private OneString PrepareBuilder() {
- if (resultIsReadOnly) {
- OneString original = result;
- result = new OneString();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override OneString MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.OneString.Descriptor; }
- }
- public override OneString DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.OneString.DefaultInstance; }
- }
- public override OneString BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is OneString) {
- return MergeFrom((OneString) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(OneString other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.OneString.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasData) {
- Data = other.Data;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_oneStringFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _oneStringFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- result.hasData = input.ReadString(ref result.data_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasData {
- get { return result.hasData; }
- }
- public string Data {
- get { return result.Data; }
- set { SetData(value); }
- }
- public Builder SetData(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasData = true;
- result.data_ = value;
- return this;
- }
- public Builder ClearData() {
- PrepareBuilder();
- result.hasData = false;
- result.data_ = "";
- return this;
- }
- }
- static OneString() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MoreString : pb::GeneratedMessage<MoreString, MoreString.Builder> {
- private MoreString() { }
- private static readonly MoreString defaultInstance = new MoreString().MakeReadOnly();
- private static readonly string[] _moreStringFieldNames = new string[] { "data" };
- private static readonly uint[] _moreStringFieldTags = new uint[] { 10 };
- public static MoreString DefaultInstance {
- get { return defaultInstance; }
- }
- public override MoreString DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override MoreString ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_MoreString__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<MoreString, MoreString.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_MoreString__FieldAccessorTable; }
- }
- public const int DataFieldNumber = 1;
- private pbc::PopsicleList<string> data_ = new pbc::PopsicleList<string>();
- public scg::IList<string> DataList {
- get { return pbc::Lists.AsReadOnly(data_); }
- }
- public int DataCount {
- get { return data_.Count; }
- }
- public string GetData(int index) {
- return data_[index];
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _moreStringFieldNames;
- if (data_.Count > 0) {
- output.WriteStringArray(1, field_names[0], data_);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- {
- int dataSize = 0;
- foreach (string element in DataList) {
- dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
- }
- size += dataSize;
- size += 1 * data_.Count;
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static MoreString ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static MoreString ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static MoreString ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static MoreString ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static MoreString ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static MoreString ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static MoreString ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static MoreString ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static MoreString ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static MoreString ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private MoreString MakeReadOnly() {
- data_.MakeReadOnly();
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(MoreString prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<MoreString, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(MoreString cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private MoreString result;
- private MoreString PrepareBuilder() {
- if (resultIsReadOnly) {
- MoreString original = result;
- result = new MoreString();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override MoreString MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.MoreString.Descriptor; }
- }
- public override MoreString DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.MoreString.DefaultInstance; }
- }
- public override MoreString BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is MoreString) {
- return MergeFrom((MoreString) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(MoreString other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.MoreString.DefaultInstance) return this;
- PrepareBuilder();
- if (other.data_.Count != 0) {
- result.data_.Add(other.data_);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_moreStringFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _moreStringFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- input.ReadStringArray(tag, field_name, result.data_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public pbc::IPopsicleList<string> DataList {
- get { return PrepareBuilder().data_; }
- }
- public int DataCount {
- get { return result.DataCount; }
- }
- public string GetData(int index) {
- return result.GetData(index);
- }
- public Builder SetData(int index, string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.data_[index] = value;
- return this;
- }
- public Builder AddData(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.data_.Add(value);
- return this;
- }
- public Builder AddRangeData(scg::IEnumerable<string> values) {
- PrepareBuilder();
- result.data_.Add(values);
- return this;
- }
- public Builder ClearData() {
- PrepareBuilder();
- result.data_.Clear();
- return this;
- }
- }
- static MoreString() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class OneBytes : pb::GeneratedMessage<OneBytes, OneBytes.Builder> {
- private OneBytes() { }
- private static readonly OneBytes defaultInstance = new OneBytes().MakeReadOnly();
- private static readonly string[] _oneBytesFieldNames = new string[] { "data" };
- private static readonly uint[] _oneBytesFieldTags = new uint[] { 10 };
- public static OneBytes DefaultInstance {
- get { return defaultInstance; }
- }
- public override OneBytes DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override OneBytes ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_OneBytes__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<OneBytes, OneBytes.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_OneBytes__FieldAccessorTable; }
- }
- public const int DataFieldNumber = 1;
- private bool hasData;
- private pb::ByteString data_ = pb::ByteString.Empty;
- public bool HasData {
- get { return hasData; }
- }
- public pb::ByteString Data {
- get { return data_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _oneBytesFieldNames;
- if (hasData) {
- output.WriteBytes(1, field_names[0], Data);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasData) {
- size += pb::CodedOutputStream.ComputeBytesSize(1, Data);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static OneBytes ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static OneBytes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static OneBytes ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static OneBytes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static OneBytes ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static OneBytes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static OneBytes ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static OneBytes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static OneBytes ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static OneBytes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private OneBytes MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(OneBytes prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<OneBytes, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(OneBytes cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private OneBytes result;
- private OneBytes PrepareBuilder() {
- if (resultIsReadOnly) {
- OneBytes original = result;
- result = new OneBytes();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override OneBytes MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.OneBytes.Descriptor; }
- }
- public override OneBytes DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.OneBytes.DefaultInstance; }
- }
- public override OneBytes BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is OneBytes) {
- return MergeFrom((OneBytes) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(OneBytes other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.OneBytes.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasData) {
- Data = other.Data;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_oneBytesFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _oneBytesFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- result.hasData = input.ReadBytes(ref result.data_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasData {
- get { return result.hasData; }
- }
- public pb::ByteString Data {
- get { return result.Data; }
- set { SetData(value); }
- }
- public Builder SetData(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasData = true;
- result.data_ = value;
- return this;
- }
- public Builder ClearData() {
- PrepareBuilder();
- result.hasData = false;
- result.data_ = pb::ByteString.Empty;
- return this;
- }
- }
- static OneBytes() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class MoreBytes : pb::GeneratedMessage<MoreBytes, MoreBytes.Builder> {
- private MoreBytes() { }
- private static readonly MoreBytes defaultInstance = new MoreBytes().MakeReadOnly();
- private static readonly string[] _moreBytesFieldNames = new string[] { "data" };
- private static readonly uint[] _moreBytesFieldTags = new uint[] { 10 };
- public static MoreBytes DefaultInstance {
- get { return defaultInstance; }
- }
- public override MoreBytes DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override MoreBytes ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_MoreBytes__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<MoreBytes, MoreBytes.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_MoreBytes__FieldAccessorTable; }
- }
- public const int DataFieldNumber = 1;
- private pbc::PopsicleList<pb::ByteString> data_ = new pbc::PopsicleList<pb::ByteString>();
- public scg::IList<pb::ByteString> DataList {
- get { return pbc::Lists.AsReadOnly(data_); }
- }
- public int DataCount {
- get { return data_.Count; }
- }
- public pb::ByteString GetData(int index) {
- return data_[index];
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _moreBytesFieldNames;
- if (data_.Count > 0) {
- output.WriteBytesArray(1, field_names[0], data_);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- {
- int dataSize = 0;
- foreach (pb::ByteString element in DataList) {
- dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element);
- }
- size += dataSize;
- size += 1 * data_.Count;
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static MoreBytes ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static MoreBytes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static MoreBytes ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static MoreBytes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static MoreBytes ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static MoreBytes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static MoreBytes ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static MoreBytes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static MoreBytes ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static MoreBytes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private MoreBytes MakeReadOnly() {
- data_.MakeReadOnly();
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(MoreBytes prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<MoreBytes, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(MoreBytes cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private MoreBytes result;
- private MoreBytes PrepareBuilder() {
- if (resultIsReadOnly) {
- MoreBytes original = result;
- result = new MoreBytes();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override MoreBytes MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.MoreBytes.Descriptor; }
- }
- public override MoreBytes DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.MoreBytes.DefaultInstance; }
- }
- public override MoreBytes BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is MoreBytes) {
- return MergeFrom((MoreBytes) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(MoreBytes other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.MoreBytes.DefaultInstance) return this;
- PrepareBuilder();
- if (other.data_.Count != 0) {
- result.data_.Add(other.data_);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_moreBytesFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _moreBytesFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- input.ReadBytesArray(tag, field_name, result.data_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public pbc::IPopsicleList<pb::ByteString> DataList {
- get { return PrepareBuilder().data_; }
- }
- public int DataCount {
- get { return result.DataCount; }
- }
- public pb::ByteString GetData(int index) {
- return result.GetData(index);
- }
- public Builder SetData(int index, pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.data_[index] = value;
- return this;
- }
- public Builder AddData(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.data_.Add(value);
- return this;
- }
- public Builder AddRangeData(scg::IEnumerable<pb::ByteString> values) {
- PrepareBuilder();
- result.data_.Add(values);
- return this;
- }
- public Builder ClearData() {
- PrepareBuilder();
- result.data_.Clear();
- return this;
- }
- }
- static MoreBytes() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Int32Message : pb::GeneratedMessage<Int32Message, Int32Message.Builder> {
- private Int32Message() { }
- private static readonly Int32Message defaultInstance = new Int32Message().MakeReadOnly();
- private static readonly string[] _int32MessageFieldNames = new string[] { "data" };
- private static readonly uint[] _int32MessageFieldTags = new uint[] { 8 };
- public static Int32Message DefaultInstance {
- get { return defaultInstance; }
- }
- public override Int32Message DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override Int32Message ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_Int32Message__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<Int32Message, Int32Message.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_Int32Message__FieldAccessorTable; }
- }
- public const int DataFieldNumber = 1;
- private bool hasData;
- private int data_;
- public bool HasData {
- get { return hasData; }
- }
- public int Data {
- get { return data_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _int32MessageFieldNames;
- if (hasData) {
- output.WriteInt32(1, field_names[0], Data);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasData) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, Data);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static Int32Message ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Int32Message ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Int32Message ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Int32Message ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Int32Message ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Int32Message ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Int32Message ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static Int32Message ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static Int32Message ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Int32Message ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private Int32Message MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(Int32Message prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<Int32Message, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(Int32Message cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private Int32Message result;
- private Int32Message PrepareBuilder() {
- if (resultIsReadOnly) {
- Int32Message original = result;
- result = new Int32Message();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override Int32Message MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.Int32Message.Descriptor; }
- }
- public override Int32Message DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.Int32Message.DefaultInstance; }
- }
- public override Int32Message BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is Int32Message) {
- return MergeFrom((Int32Message) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(Int32Message other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.Int32Message.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasData) {
- Data = other.Data;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_int32MessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _int32MessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasData = input.ReadInt32(ref result.data_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasData {
- get { return result.hasData; }
- }
- public int Data {
- get { return result.Data; }
- set { SetData(value); }
- }
- public Builder SetData(int value) {
- PrepareBuilder();
- result.hasData = true;
- result.data_ = value;
- return this;
- }
- public Builder ClearData() {
- PrepareBuilder();
- result.hasData = false;
- result.data_ = 0;
- return this;
- }
- }
- static Int32Message() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Uint32Message : pb::GeneratedMessage<Uint32Message, Uint32Message.Builder> {
- private Uint32Message() { }
- private static readonly Uint32Message defaultInstance = new Uint32Message().MakeReadOnly();
- private static readonly string[] _uint32MessageFieldNames = new string[] { "data" };
- private static readonly uint[] _uint32MessageFieldTags = new uint[] { 8 };
- public static Uint32Message DefaultInstance {
- get { return defaultInstance; }
- }
- public override Uint32Message DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override Uint32Message ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_Uint32Message__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<Uint32Message, Uint32Message.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_Uint32Message__FieldAccessorTable; }
- }
- public const int DataFieldNumber = 1;
- private bool hasData;
- private uint data_;
- public bool HasData {
- get { return hasData; }
- }
- [global::System.CLSCompliant(false)]
- public uint Data {
- get { return data_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _uint32MessageFieldNames;
- if (hasData) {
- output.WriteUInt32(1, field_names[0], Data);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasData) {
- size += pb::CodedOutputStream.ComputeUInt32Size(1, Data);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static Uint32Message ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Uint32Message ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Uint32Message ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Uint32Message ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Uint32Message ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Uint32Message ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Uint32Message ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static Uint32Message ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static Uint32Message ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Uint32Message ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private Uint32Message MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(Uint32Message prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<Uint32Message, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(Uint32Message cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private Uint32Message result;
- private Uint32Message PrepareBuilder() {
- if (resultIsReadOnly) {
- Uint32Message original = result;
- result = new Uint32Message();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override Uint32Message MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.Uint32Message.Descriptor; }
- }
- public override Uint32Message DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.Uint32Message.DefaultInstance; }
- }
- public override Uint32Message BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is Uint32Message) {
- return MergeFrom((Uint32Message) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(Uint32Message other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.Uint32Message.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasData) {
- Data = other.Data;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_uint32MessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _uint32MessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasData = input.ReadUInt32(ref result.data_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasData {
- get { return result.hasData; }
- }
- [global::System.CLSCompliant(false)]
- public uint Data {
- get { return result.Data; }
- set { SetData(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetData(uint value) {
- PrepareBuilder();
- result.hasData = true;
- result.data_ = value;
- return this;
- }
- public Builder ClearData() {
- PrepareBuilder();
- result.hasData = false;
- result.data_ = 0;
- return this;
- }
- }
- static Uint32Message() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Int64Message : pb::GeneratedMessage<Int64Message, Int64Message.Builder> {
- private Int64Message() { }
- private static readonly Int64Message defaultInstance = new Int64Message().MakeReadOnly();
- private static readonly string[] _int64MessageFieldNames = new string[] { "data" };
- private static readonly uint[] _int64MessageFieldTags = new uint[] { 8 };
- public static Int64Message DefaultInstance {
- get { return defaultInstance; }
- }
- public override Int64Message DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override Int64Message ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_Int64Message__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<Int64Message, Int64Message.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_Int64Message__FieldAccessorTable; }
- }
- public const int DataFieldNumber = 1;
- private bool hasData;
- private long data_;
- public bool HasData {
- get { return hasData; }
- }
- public long Data {
- get { return data_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _int64MessageFieldNames;
- if (hasData) {
- output.WriteInt64(1, field_names[0], Data);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasData) {
- size += pb::CodedOutputStream.ComputeInt64Size(1, Data);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static Int64Message ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Int64Message ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Int64Message ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Int64Message ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Int64Message ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Int64Message ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Int64Message ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static Int64Message ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static Int64Message ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Int64Message ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private Int64Message MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(Int64Message prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<Int64Message, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(Int64Message cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private Int64Message result;
- private Int64Message PrepareBuilder() {
- if (resultIsReadOnly) {
- Int64Message original = result;
- result = new Int64Message();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override Int64Message MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.Int64Message.Descriptor; }
- }
- public override Int64Message DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.Int64Message.DefaultInstance; }
- }
- public override Int64Message BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is Int64Message) {
- return MergeFrom((Int64Message) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(Int64Message other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.Int64Message.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasData) {
- Data = other.Data;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_int64MessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _int64MessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasData = input.ReadInt64(ref result.data_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasData {
- get { return result.hasData; }
- }
- public long Data {
- get { return result.Data; }
- set { SetData(value); }
- }
- public Builder SetData(long value) {
- PrepareBuilder();
- result.hasData = true;
- result.data_ = value;
- return this;
- }
- public Builder ClearData() {
- PrepareBuilder();
- result.hasData = false;
- result.data_ = 0L;
- return this;
- }
- }
- static Int64Message() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Uint64Message : pb::GeneratedMessage<Uint64Message, Uint64Message.Builder> {
- private Uint64Message() { }
- private static readonly Uint64Message defaultInstance = new Uint64Message().MakeReadOnly();
- private static readonly string[] _uint64MessageFieldNames = new string[] { "data" };
- private static readonly uint[] _uint64MessageFieldTags = new uint[] { 8 };
- public static Uint64Message DefaultInstance {
- get { return defaultInstance; }
- }
- public override Uint64Message DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override Uint64Message ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_Uint64Message__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<Uint64Message, Uint64Message.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_Uint64Message__FieldAccessorTable; }
- }
- public const int DataFieldNumber = 1;
- private bool hasData;
- private ulong data_;
- public bool HasData {
- get { return hasData; }
- }
- [global::System.CLSCompliant(false)]
- public ulong Data {
- get { return data_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _uint64MessageFieldNames;
- if (hasData) {
- output.WriteUInt64(1, field_names[0], Data);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasData) {
- size += pb::CodedOutputStream.ComputeUInt64Size(1, Data);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static Uint64Message ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Uint64Message ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Uint64Message ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Uint64Message ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Uint64Message ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Uint64Message ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Uint64Message ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static Uint64Message ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static Uint64Message ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Uint64Message ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private Uint64Message MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(Uint64Message prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<Uint64Message, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(Uint64Message cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private Uint64Message result;
- private Uint64Message PrepareBuilder() {
- if (resultIsReadOnly) {
- Uint64Message original = result;
- result = new Uint64Message();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override Uint64Message MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.Uint64Message.Descriptor; }
- }
- public override Uint64Message DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.Uint64Message.DefaultInstance; }
- }
- public override Uint64Message BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is Uint64Message) {
- return MergeFrom((Uint64Message) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(Uint64Message other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.Uint64Message.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasData) {
- Data = other.Data;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_uint64MessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _uint64MessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasData = input.ReadUInt64(ref result.data_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasData {
- get { return result.hasData; }
- }
- [global::System.CLSCompliant(false)]
- public ulong Data {
- get { return result.Data; }
- set { SetData(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetData(ulong value) {
- PrepareBuilder();
- result.hasData = true;
- result.data_ = value;
- return this;
- }
- public Builder ClearData() {
- PrepareBuilder();
- result.hasData = false;
- result.data_ = 0UL;
- return this;
- }
- }
- static Uint64Message() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class BoolMessage : pb::GeneratedMessage<BoolMessage, BoolMessage.Builder> {
- private BoolMessage() { }
- private static readonly BoolMessage defaultInstance = new BoolMessage().MakeReadOnly();
- private static readonly string[] _boolMessageFieldNames = new string[] { "data" };
- private static readonly uint[] _boolMessageFieldTags = new uint[] { 8 };
- public static BoolMessage DefaultInstance {
- get { return defaultInstance; }
- }
- public override BoolMessage DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override BoolMessage ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_BoolMessage__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<BoolMessage, BoolMessage.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_BoolMessage__FieldAccessorTable; }
- }
- public const int DataFieldNumber = 1;
- private bool hasData;
- private bool data_;
- public bool HasData {
- get { return hasData; }
- }
- public bool Data {
- get { return data_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _boolMessageFieldNames;
- if (hasData) {
- output.WriteBool(1, field_names[0], Data);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasData) {
- size += pb::CodedOutputStream.ComputeBoolSize(1, Data);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static BoolMessage ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static BoolMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static BoolMessage ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static BoolMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static BoolMessage ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static BoolMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static BoolMessage ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static BoolMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static BoolMessage ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static BoolMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private BoolMessage MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(BoolMessage prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<BoolMessage, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(BoolMessage cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private BoolMessage result;
- private BoolMessage PrepareBuilder() {
- if (resultIsReadOnly) {
- BoolMessage original = result;
- result = new BoolMessage();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override BoolMessage MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.BoolMessage.Descriptor; }
- }
- public override BoolMessage DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.BoolMessage.DefaultInstance; }
- }
- public override BoolMessage BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is BoolMessage) {
- return MergeFrom((BoolMessage) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(BoolMessage other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.BoolMessage.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasData) {
- Data = other.Data;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_boolMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _boolMessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasData = input.ReadBool(ref result.data_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasData {
- get { return result.hasData; }
- }
- public bool Data {
- get { return result.Data; }
- set { SetData(value); }
- }
- public Builder SetData(bool value) {
- PrepareBuilder();
- result.hasData = true;
- result.data_ = value;
- return this;
- }
- public Builder ClearData() {
- PrepareBuilder();
- result.hasData = false;
- result.data_ = false;
- return this;
- }
- }
- static BoolMessage() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestOneof : pb::GeneratedMessage<TestOneof, TestOneof.Builder> {
- private TestOneof() { }
- private static readonly TestOneof defaultInstance = new TestOneof().MakeReadOnly();
- private static readonly string[] _testOneofFieldNames = new string[] { "foo_int", "foo_message", "foo_string", "foogroup" };
- private static readonly uint[] _testOneofFieldTags = new uint[] { 8, 26, 18, 35 };
- public static TestOneof DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestOneof DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestOneof ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestOneof, TestOneof.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof__FieldAccessorTable; }
- }
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class FooGroup : pb::GeneratedMessage<FooGroup, FooGroup.Builder> {
- private FooGroup() { }
- private static readonly FooGroup defaultInstance = new FooGroup().MakeReadOnly();
- private static readonly string[] _fooGroupFieldNames = new string[] { "a", "b" };
- private static readonly uint[] _fooGroupFieldTags = new uint[] { 40, 50 };
- public static FooGroup DefaultInstance {
- get { return defaultInstance; }
- }
- public override FooGroup DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override FooGroup ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof_FooGroup__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<FooGroup, FooGroup.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof_FooGroup__FieldAccessorTable; }
- }
- public const int AFieldNumber = 5;
- private bool hasA;
- private int a_;
- public bool HasA {
- get { return hasA; }
- }
- public int A {
- get { return a_; }
- }
- public const int BFieldNumber = 6;
- private bool hasB;
- private string b_ = "";
- public bool HasB {
- get { return hasB; }
- }
- public string B {
- get { return b_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _fooGroupFieldNames;
- if (hasA) {
- output.WriteInt32(5, field_names[0], A);
- }
- if (hasB) {
- output.WriteString(6, field_names[1], B);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeInt32Size(5, A);
- }
- if (hasB) {
- size += pb::CodedOutputStream.ComputeStringSize(6, B);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static FooGroup ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static FooGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static FooGroup ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static FooGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static FooGroup ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static FooGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static FooGroup ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static FooGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static FooGroup ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static FooGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private FooGroup MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(FooGroup prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<FooGroup, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(FooGroup cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private FooGroup result;
- private FooGroup PrepareBuilder() {
- if (resultIsReadOnly) {
- FooGroup original = result;
- result = new FooGroup();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override FooGroup MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.Descriptor; }
- }
- public override FooGroup DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.DefaultInstance; }
- }
- public override FooGroup BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is FooGroup) {
- return MergeFrom((FooGroup) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(FooGroup other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- if (other.HasB) {
- B = other.B;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_fooGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _fooGroupFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 40: {
- result.hasA = input.ReadInt32(ref result.a_);
- break;
- }
- case 50: {
- result.hasB = input.ReadString(ref result.b_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasA {
- get { return result.hasA; }
- }
- public int A {
- get { return result.A; }
- set { SetA(value); }
- }
- public Builder SetA(int value) {
- PrepareBuilder();
- result.hasA = true;
- result.a_ = value;
- return this;
- }
- public Builder ClearA() {
- PrepareBuilder();
- result.hasA = false;
- result.a_ = 0;
- return this;
- }
- public bool HasB {
- get { return result.hasB; }
- }
- public string B {
- get { return result.B; }
- set { SetB(value); }
- }
- public Builder SetB(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasB = true;
- result.b_ = value;
- return this;
- }
- public Builder ClearB() {
- PrepareBuilder();
- result.hasB = false;
- result.b_ = "";
- return this;
- }
- }
- static FooGroup() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- }
- #endregion
- public const int FooIntFieldNumber = 1;
- private bool hasFooInt;
- private int fooInt_;
- public bool HasFooInt {
- get { return hasFooInt; }
- }
- public int FooInt {
- get { return fooInt_; }
- }
- public const int FooStringFieldNumber = 2;
- private bool hasFooString;
- private string fooString_ = "";
- public bool HasFooString {
- get { return hasFooString; }
- }
- public string FooString {
- get { return fooString_; }
- }
- public const int FooMessageFieldNumber = 3;
- private bool hasFooMessage;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes fooMessage_;
- public bool HasFooMessage {
- get { return hasFooMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes FooMessage {
- get { return fooMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
- }
- public const int FooGroupFieldNumber = 4;
- private bool hasFooGroup;
- private global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup fooGroup_;
- public bool HasFooGroup {
- get { return hasFooGroup; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup FooGroup {
- get { return fooGroup_ ?? global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.DefaultInstance; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testOneofFieldNames;
- if (hasFooInt) {
- output.WriteInt32(1, field_names[0], FooInt);
- }
- if (hasFooString) {
- output.WriteString(2, field_names[2], FooString);
- }
- if (hasFooMessage) {
- output.WriteMessage(3, field_names[1], FooMessage);
- }
- if (hasFooGroup) {
- output.WriteGroup(4, field_names[3], FooGroup);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasFooInt) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, FooInt);
- }
- if (hasFooString) {
- size += pb::CodedOutputStream.ComputeStringSize(2, FooString);
- }
- if (hasFooMessage) {
- size += pb::CodedOutputStream.ComputeMessageSize(3, FooMessage);
- }
- if (hasFooGroup) {
- size += pb::CodedOutputStream.ComputeGroupSize(4, FooGroup);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestOneof ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestOneof ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestOneof ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestOneof ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestOneof ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestOneof ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestOneof ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestOneof ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestOneof ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestOneof ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestOneof MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestOneof prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestOneof, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestOneof cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestOneof result;
- private TestOneof PrepareBuilder() {
- if (resultIsReadOnly) {
- TestOneof original = result;
- result = new TestOneof();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestOneof MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestOneof.Descriptor; }
- }
- public override TestOneof DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestOneof.DefaultInstance; }
- }
- public override TestOneof BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestOneof) {
- return MergeFrom((TestOneof) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestOneof other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestOneof.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasFooInt) {
- FooInt = other.FooInt;
- }
- if (other.HasFooString) {
- FooString = other.FooString;
- }
- if (other.HasFooMessage) {
- MergeFooMessage(other.FooMessage);
- }
- if (other.HasFooGroup) {
- MergeFooGroup(other.FooGroup);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testOneofFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testOneofFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasFooInt = input.ReadInt32(ref result.fooInt_);
- break;
- }
- case 18: {
- result.hasFooString = input.ReadString(ref result.fooString_);
- break;
- }
- case 26: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
- if (result.hasFooMessage) {
- subBuilder.MergeFrom(FooMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- FooMessage = subBuilder.BuildPartial();
- break;
- }
- case 35: {
- global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.CreateBuilder();
- if (result.hasFooGroup) {
- subBuilder.MergeFrom(FooGroup);
- }
- input.ReadGroup(4, subBuilder, extensionRegistry);
- FooGroup = subBuilder.BuildPartial();
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasFooInt {
- get { return result.hasFooInt; }
- }
- public int FooInt {
- get { return result.FooInt; }
- set { SetFooInt(value); }
- }
- public Builder SetFooInt(int value) {
- PrepareBuilder();
- result.hasFooInt = true;
- result.fooInt_ = value;
- return this;
- }
- public Builder ClearFooInt() {
- PrepareBuilder();
- result.hasFooInt = false;
- result.fooInt_ = 0;
- return this;
- }
- public bool HasFooString {
- get { return result.hasFooString; }
- }
- public string FooString {
- get { return result.FooString; }
- set { SetFooString(value); }
- }
- public Builder SetFooString(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasFooString = true;
- result.fooString_ = value;
- return this;
- }
- public Builder ClearFooString() {
- PrepareBuilder();
- result.hasFooString = false;
- result.fooString_ = "";
- return this;
- }
- public bool HasFooMessage {
- get { return result.hasFooMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes FooMessage {
- get { return result.FooMessage; }
- set { SetFooMessage(value); }
- }
- public Builder SetFooMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasFooMessage = true;
- result.fooMessage_ = value;
- return this;
- }
- public Builder SetFooMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasFooMessage = true;
- result.fooMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeFooMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasFooMessage &&
- result.fooMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
- result.fooMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.fooMessage_).MergeFrom(value).BuildPartial();
- } else {
- result.fooMessage_ = value;
- }
- result.hasFooMessage = true;
- return this;
- }
- public Builder ClearFooMessage() {
- PrepareBuilder();
- result.hasFooMessage = false;
- result.fooMessage_ = null;
- return this;
- }
- public bool HasFooGroup {
- get { return result.hasFooGroup; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup FooGroup {
- get { return result.FooGroup; }
- set { SetFooGroup(value); }
- }
- public Builder SetFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasFooGroup = true;
- result.fooGroup_ = value;
- return this;
- }
- public Builder SetFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasFooGroup = true;
- result.fooGroup_ = builderForValue.Build();
- return this;
- }
- public Builder MergeFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasFooGroup &&
- result.fooGroup_ != global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.DefaultInstance) {
- result.fooGroup_ = global::Google.ProtocolBuffers.TestProtos.TestOneof.Types.FooGroup.CreateBuilder(result.fooGroup_).MergeFrom(value).BuildPartial();
- } else {
- result.fooGroup_ = value;
- }
- result.hasFooGroup = true;
- return this;
- }
- public Builder ClearFooGroup() {
- PrepareBuilder();
- result.hasFooGroup = false;
- result.fooGroup_ = null;
- return this;
- }
- }
- static TestOneof() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestOneofBackwardsCompatible : pb::GeneratedMessage<TestOneofBackwardsCompatible, TestOneofBackwardsCompatible.Builder> {
- private TestOneofBackwardsCompatible() { }
- private static readonly TestOneofBackwardsCompatible defaultInstance = new TestOneofBackwardsCompatible().MakeReadOnly();
- private static readonly string[] _testOneofBackwardsCompatibleFieldNames = new string[] { "foo_int", "foo_message", "foo_string", "foogroup" };
- private static readonly uint[] _testOneofBackwardsCompatibleFieldTags = new uint[] { 8, 26, 18, 35 };
- public static TestOneofBackwardsCompatible DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestOneofBackwardsCompatible DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestOneofBackwardsCompatible ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneofBackwardsCompatible__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestOneofBackwardsCompatible, TestOneofBackwardsCompatible.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneofBackwardsCompatible__FieldAccessorTable; }
- }
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class FooGroup : pb::GeneratedMessage<FooGroup, FooGroup.Builder> {
- private FooGroup() { }
- private static readonly FooGroup defaultInstance = new FooGroup().MakeReadOnly();
- private static readonly string[] _fooGroupFieldNames = new string[] { "a", "b" };
- private static readonly uint[] _fooGroupFieldTags = new uint[] { 40, 50 };
- public static FooGroup DefaultInstance {
- get { return defaultInstance; }
- }
- public override FooGroup DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override FooGroup ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<FooGroup, FooGroup.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup__FieldAccessorTable; }
- }
- public const int AFieldNumber = 5;
- private bool hasA;
- private int a_;
- public bool HasA {
- get { return hasA; }
- }
- public int A {
- get { return a_; }
- }
- public const int BFieldNumber = 6;
- private bool hasB;
- private string b_ = "";
- public bool HasB {
- get { return hasB; }
- }
- public string B {
- get { return b_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _fooGroupFieldNames;
- if (hasA) {
- output.WriteInt32(5, field_names[0], A);
- }
- if (hasB) {
- output.WriteString(6, field_names[1], B);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeInt32Size(5, A);
- }
- if (hasB) {
- size += pb::CodedOutputStream.ComputeStringSize(6, B);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static FooGroup ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static FooGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static FooGroup ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static FooGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static FooGroup ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static FooGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static FooGroup ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static FooGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static FooGroup ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static FooGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private FooGroup MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(FooGroup prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<FooGroup, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(FooGroup cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private FooGroup result;
- private FooGroup PrepareBuilder() {
- if (resultIsReadOnly) {
- FooGroup original = result;
- result = new FooGroup();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override FooGroup MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.Descriptor; }
- }
- public override FooGroup DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.DefaultInstance; }
- }
- public override FooGroup BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is FooGroup) {
- return MergeFrom((FooGroup) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(FooGroup other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- if (other.HasB) {
- B = other.B;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_fooGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _fooGroupFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 40: {
- result.hasA = input.ReadInt32(ref result.a_);
- break;
- }
- case 50: {
- result.hasB = input.ReadString(ref result.b_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasA {
- get { return result.hasA; }
- }
- public int A {
- get { return result.A; }
- set { SetA(value); }
- }
- public Builder SetA(int value) {
- PrepareBuilder();
- result.hasA = true;
- result.a_ = value;
- return this;
- }
- public Builder ClearA() {
- PrepareBuilder();
- result.hasA = false;
- result.a_ = 0;
- return this;
- }
- public bool HasB {
- get { return result.hasB; }
- }
- public string B {
- get { return result.B; }
- set { SetB(value); }
- }
- public Builder SetB(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasB = true;
- result.b_ = value;
- return this;
- }
- public Builder ClearB() {
- PrepareBuilder();
- result.hasB = false;
- result.b_ = "";
- return this;
- }
- }
- static FooGroup() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- }
- #endregion
- public const int FooIntFieldNumber = 1;
- private bool hasFooInt;
- private int fooInt_;
- public bool HasFooInt {
- get { return hasFooInt; }
- }
- public int FooInt {
- get { return fooInt_; }
- }
- public const int FooStringFieldNumber = 2;
- private bool hasFooString;
- private string fooString_ = "";
- public bool HasFooString {
- get { return hasFooString; }
- }
- public string FooString {
- get { return fooString_; }
- }
- public const int FooMessageFieldNumber = 3;
- private bool hasFooMessage;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes fooMessage_;
- public bool HasFooMessage {
- get { return hasFooMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes FooMessage {
- get { return fooMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
- }
- public const int FooGroupFieldNumber = 4;
- private bool hasFooGroup;
- private global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup fooGroup_;
- public bool HasFooGroup {
- get { return hasFooGroup; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup FooGroup {
- get { return fooGroup_ ?? global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.DefaultInstance; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testOneofBackwardsCompatibleFieldNames;
- if (hasFooInt) {
- output.WriteInt32(1, field_names[0], FooInt);
- }
- if (hasFooString) {
- output.WriteString(2, field_names[2], FooString);
- }
- if (hasFooMessage) {
- output.WriteMessage(3, field_names[1], FooMessage);
- }
- if (hasFooGroup) {
- output.WriteGroup(4, field_names[3], FooGroup);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasFooInt) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, FooInt);
- }
- if (hasFooString) {
- size += pb::CodedOutputStream.ComputeStringSize(2, FooString);
- }
- if (hasFooMessage) {
- size += pb::CodedOutputStream.ComputeMessageSize(3, FooMessage);
- }
- if (hasFooGroup) {
- size += pb::CodedOutputStream.ComputeGroupSize(4, FooGroup);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestOneofBackwardsCompatible ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestOneofBackwardsCompatible ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestOneofBackwardsCompatible ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestOneofBackwardsCompatible ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestOneofBackwardsCompatible ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestOneofBackwardsCompatible ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestOneofBackwardsCompatible ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestOneofBackwardsCompatible ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestOneofBackwardsCompatible ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestOneofBackwardsCompatible ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestOneofBackwardsCompatible MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestOneofBackwardsCompatible prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestOneofBackwardsCompatible, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestOneofBackwardsCompatible cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestOneofBackwardsCompatible result;
- private TestOneofBackwardsCompatible PrepareBuilder() {
- if (resultIsReadOnly) {
- TestOneofBackwardsCompatible original = result;
- result = new TestOneofBackwardsCompatible();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestOneofBackwardsCompatible MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Descriptor; }
- }
- public override TestOneofBackwardsCompatible DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.DefaultInstance; }
- }
- public override TestOneofBackwardsCompatible BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestOneofBackwardsCompatible) {
- return MergeFrom((TestOneofBackwardsCompatible) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestOneofBackwardsCompatible other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasFooInt) {
- FooInt = other.FooInt;
- }
- if (other.HasFooString) {
- FooString = other.FooString;
- }
- if (other.HasFooMessage) {
- MergeFooMessage(other.FooMessage);
- }
- if (other.HasFooGroup) {
- MergeFooGroup(other.FooGroup);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testOneofBackwardsCompatibleFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testOneofBackwardsCompatibleFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasFooInt = input.ReadInt32(ref result.fooInt_);
- break;
- }
- case 18: {
- result.hasFooString = input.ReadString(ref result.fooString_);
- break;
- }
- case 26: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
- if (result.hasFooMessage) {
- subBuilder.MergeFrom(FooMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- FooMessage = subBuilder.BuildPartial();
- break;
- }
- case 35: {
- global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.CreateBuilder();
- if (result.hasFooGroup) {
- subBuilder.MergeFrom(FooGroup);
- }
- input.ReadGroup(4, subBuilder, extensionRegistry);
- FooGroup = subBuilder.BuildPartial();
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasFooInt {
- get { return result.hasFooInt; }
- }
- public int FooInt {
- get { return result.FooInt; }
- set { SetFooInt(value); }
- }
- public Builder SetFooInt(int value) {
- PrepareBuilder();
- result.hasFooInt = true;
- result.fooInt_ = value;
- return this;
- }
- public Builder ClearFooInt() {
- PrepareBuilder();
- result.hasFooInt = false;
- result.fooInt_ = 0;
- return this;
- }
- public bool HasFooString {
- get { return result.hasFooString; }
- }
- public string FooString {
- get { return result.FooString; }
- set { SetFooString(value); }
- }
- public Builder SetFooString(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasFooString = true;
- result.fooString_ = value;
- return this;
- }
- public Builder ClearFooString() {
- PrepareBuilder();
- result.hasFooString = false;
- result.fooString_ = "";
- return this;
- }
- public bool HasFooMessage {
- get { return result.hasFooMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes FooMessage {
- get { return result.FooMessage; }
- set { SetFooMessage(value); }
- }
- public Builder SetFooMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasFooMessage = true;
- result.fooMessage_ = value;
- return this;
- }
- public Builder SetFooMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasFooMessage = true;
- result.fooMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeFooMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasFooMessage &&
- result.fooMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
- result.fooMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.fooMessage_).MergeFrom(value).BuildPartial();
- } else {
- result.fooMessage_ = value;
- }
- result.hasFooMessage = true;
- return this;
- }
- public Builder ClearFooMessage() {
- PrepareBuilder();
- result.hasFooMessage = false;
- result.fooMessage_ = null;
- return this;
- }
- public bool HasFooGroup {
- get { return result.hasFooGroup; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup FooGroup {
- get { return result.FooGroup; }
- set { SetFooGroup(value); }
- }
- public Builder SetFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasFooGroup = true;
- result.fooGroup_ = value;
- return this;
- }
- public Builder SetFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasFooGroup = true;
- result.fooGroup_ = builderForValue.Build();
- return this;
- }
- public Builder MergeFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasFooGroup &&
- result.fooGroup_ != global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.DefaultInstance) {
- result.fooGroup_ = global::Google.ProtocolBuffers.TestProtos.TestOneofBackwardsCompatible.Types.FooGroup.CreateBuilder(result.fooGroup_).MergeFrom(value).BuildPartial();
- } else {
- result.fooGroup_ = value;
- }
- result.hasFooGroup = true;
- return this;
- }
- public Builder ClearFooGroup() {
- PrepareBuilder();
- result.hasFooGroup = false;
- result.fooGroup_ = null;
- return this;
- }
- }
- static TestOneofBackwardsCompatible() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestOneof2 : pb::GeneratedMessage<TestOneof2, TestOneof2.Builder> {
- private TestOneof2() { }
- private static readonly TestOneof2 defaultInstance = new TestOneof2().MakeReadOnly();
- private static readonly string[] _testOneof2FieldNames = new string[] { "bar_bytes", "bar_cord", "bar_enum", "bar_int", "bar_string", "bar_string_piece", "baz_int", "baz_string", "foo_bytes", "foo_cord", "foo_enum", "foo_int", "foo_lazy_message", "foo_message", "foo_string", "foo_string_piece", "foogroup" };
- private static readonly uint[] _testOneof2FieldTags = new uint[] { 130, 114, 136, 96, 106, 122, 144, 154, 42, 26, 48, 8, 90, 58, 18, 34, 67 };
- public static TestOneof2 DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestOneof2 DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestOneof2 ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof2__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestOneof2, TestOneof2.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof2__FieldAccessorTable; }
- }
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- public enum NestedEnum {
- FOO = 1,
- BAR = 2,
- BAZ = 3,
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class FooGroup : pb::GeneratedMessage<FooGroup, FooGroup.Builder> {
- private FooGroup() { }
- private static readonly FooGroup defaultInstance = new FooGroup().MakeReadOnly();
- private static readonly string[] _fooGroupFieldNames = new string[] { "a", "b" };
- private static readonly uint[] _fooGroupFieldTags = new uint[] { 72, 82 };
- public static FooGroup DefaultInstance {
- get { return defaultInstance; }
- }
- public override FooGroup DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override FooGroup ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof2_FooGroup__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<FooGroup, FooGroup.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof2_FooGroup__FieldAccessorTable; }
- }
- public const int AFieldNumber = 9;
- private bool hasA;
- private int a_;
- public bool HasA {
- get { return hasA; }
- }
- public int A {
- get { return a_; }
- }
- public const int BFieldNumber = 10;
- private bool hasB;
- private string b_ = "";
- public bool HasB {
- get { return hasB; }
- }
- public string B {
- get { return b_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _fooGroupFieldNames;
- if (hasA) {
- output.WriteInt32(9, field_names[0], A);
- }
- if (hasB) {
- output.WriteString(10, field_names[1], B);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeInt32Size(9, A);
- }
- if (hasB) {
- size += pb::CodedOutputStream.ComputeStringSize(10, B);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static FooGroup ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static FooGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static FooGroup ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static FooGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static FooGroup ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static FooGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static FooGroup ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static FooGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static FooGroup ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static FooGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private FooGroup MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(FooGroup prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<FooGroup, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(FooGroup cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private FooGroup result;
- private FooGroup PrepareBuilder() {
- if (resultIsReadOnly) {
- FooGroup original = result;
- result = new FooGroup();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override FooGroup MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.Descriptor; }
- }
- public override FooGroup DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.DefaultInstance; }
- }
- public override FooGroup BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is FooGroup) {
- return MergeFrom((FooGroup) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(FooGroup other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- if (other.HasB) {
- B = other.B;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_fooGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _fooGroupFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 72: {
- result.hasA = input.ReadInt32(ref result.a_);
- break;
- }
- case 82: {
- result.hasB = input.ReadString(ref result.b_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasA {
- get { return result.hasA; }
- }
- public int A {
- get { return result.A; }
- set { SetA(value); }
- }
- public Builder SetA(int value) {
- PrepareBuilder();
- result.hasA = true;
- result.a_ = value;
- return this;
- }
- public Builder ClearA() {
- PrepareBuilder();
- result.hasA = false;
- result.a_ = 0;
- return this;
- }
- public bool HasB {
- get { return result.hasB; }
- }
- public string B {
- get { return result.B; }
- set { SetB(value); }
- }
- public Builder SetB(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasB = true;
- result.b_ = value;
- return this;
- }
- public Builder ClearB() {
- PrepareBuilder();
- result.hasB = false;
- result.b_ = "";
- return this;
- }
- }
- static FooGroup() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
- private NestedMessage() { }
- private static readonly NestedMessage defaultInstance = new NestedMessage().MakeReadOnly();
- private static readonly string[] _nestedMessageFieldNames = new string[] { "corge_int", "qux_int" };
- private static readonly uint[] _nestedMessageFieldTags = new uint[] { 16, 8 };
- public static NestedMessage DefaultInstance {
- get { return defaultInstance; }
- }
- public override NestedMessage DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override NestedMessage ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof2_NestedMessage__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestOneof2_NestedMessage__FieldAccessorTable; }
- }
- public const int QuxIntFieldNumber = 1;
- private bool hasQuxInt;
- private long quxInt_;
- public bool HasQuxInt {
- get { return hasQuxInt; }
- }
- public long QuxInt {
- get { return quxInt_; }
- }
- public const int CorgeIntFieldNumber = 2;
- private pbc::PopsicleList<int> corgeInt_ = new pbc::PopsicleList<int>();
- public scg::IList<int> CorgeIntList {
- get { return pbc::Lists.AsReadOnly(corgeInt_); }
- }
- public int CorgeIntCount {
- get { return corgeInt_.Count; }
- }
- public int GetCorgeInt(int index) {
- return corgeInt_[index];
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _nestedMessageFieldNames;
- if (hasQuxInt) {
- output.WriteInt64(1, field_names[1], QuxInt);
- }
- if (corgeInt_.Count > 0) {
- output.WriteInt32Array(2, field_names[0], corgeInt_);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasQuxInt) {
- size += pb::CodedOutputStream.ComputeInt64Size(1, QuxInt);
- }
- {
- int dataSize = 0;
- foreach (int element in CorgeIntList) {
- dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
- }
- size += dataSize;
- size += 1 * corgeInt_.Count;
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static NestedMessage ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static NestedMessage ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static NestedMessage ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private NestedMessage MakeReadOnly() {
- corgeInt_.MakeReadOnly();
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(NestedMessage prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(NestedMessage cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private NestedMessage result;
- private NestedMessage PrepareBuilder() {
- if (resultIsReadOnly) {
- NestedMessage original = result;
- result = new NestedMessage();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override NestedMessage MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.Descriptor; }
- }
- public override NestedMessage DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.DefaultInstance; }
- }
- public override NestedMessage BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is NestedMessage) {
- return MergeFrom((NestedMessage) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(NestedMessage other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasQuxInt) {
- QuxInt = other.QuxInt;
- }
- if (other.corgeInt_.Count != 0) {
- result.corgeInt_.Add(other.corgeInt_);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_nestedMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _nestedMessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasQuxInt = input.ReadInt64(ref result.quxInt_);
- break;
- }
- case 18:
- case 16: {
- input.ReadInt32Array(tag, field_name, result.corgeInt_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasQuxInt {
- get { return result.hasQuxInt; }
- }
- public long QuxInt {
- get { return result.QuxInt; }
- set { SetQuxInt(value); }
- }
- public Builder SetQuxInt(long value) {
- PrepareBuilder();
- result.hasQuxInt = true;
- result.quxInt_ = value;
- return this;
- }
- public Builder ClearQuxInt() {
- PrepareBuilder();
- result.hasQuxInt = false;
- result.quxInt_ = 0L;
- return this;
- }
- public pbc::IPopsicleList<int> CorgeIntList {
- get { return PrepareBuilder().corgeInt_; }
- }
- public int CorgeIntCount {
- get { return result.CorgeIntCount; }
- }
- public int GetCorgeInt(int index) {
- return result.GetCorgeInt(index);
- }
- public Builder SetCorgeInt(int index, int value) {
- PrepareBuilder();
- result.corgeInt_[index] = value;
- return this;
- }
- public Builder AddCorgeInt(int value) {
- PrepareBuilder();
- result.corgeInt_.Add(value);
- return this;
- }
- public Builder AddRangeCorgeInt(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.corgeInt_.Add(values);
- return this;
- }
- public Builder ClearCorgeInt() {
- PrepareBuilder();
- result.corgeInt_.Clear();
- return this;
- }
- }
- static NestedMessage() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- }
- #endregion
- public const int FooIntFieldNumber = 1;
- private bool hasFooInt;
- private int fooInt_;
- public bool HasFooInt {
- get { return hasFooInt; }
- }
- public int FooInt {
- get { return fooInt_; }
- }
- public const int FooStringFieldNumber = 2;
- private bool hasFooString;
- private string fooString_ = "";
- public bool HasFooString {
- get { return hasFooString; }
- }
- public string FooString {
- get { return fooString_; }
- }
- public const int FooCordFieldNumber = 3;
- private bool hasFooCord;
- private string fooCord_ = "";
- public bool HasFooCord {
- get { return hasFooCord; }
- }
- public string FooCord {
- get { return fooCord_; }
- }
- public const int FooStringPieceFieldNumber = 4;
- private bool hasFooStringPiece;
- private string fooStringPiece_ = "";
- public bool HasFooStringPiece {
- get { return hasFooStringPiece; }
- }
- public string FooStringPiece {
- get { return fooStringPiece_; }
- }
- public const int FooBytesFieldNumber = 5;
- private bool hasFooBytes;
- private pb::ByteString fooBytes_ = pb::ByteString.Empty;
- public bool HasFooBytes {
- get { return hasFooBytes; }
- }
- public pb::ByteString FooBytes {
- get { return fooBytes_; }
- }
- public const int FooEnumFieldNumber = 6;
- private bool hasFooEnum;
- private global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum fooEnum_ = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum.FOO;
- public bool HasFooEnum {
- get { return hasFooEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum FooEnum {
- get { return fooEnum_; }
- }
- public const int FooMessageFieldNumber = 7;
- private bool hasFooMessage;
- private global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage fooMessage_;
- public bool HasFooMessage {
- get { return hasFooMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage FooMessage {
- get { return fooMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.DefaultInstance; }
- }
- public const int FooGroupFieldNumber = 8;
- private bool hasFooGroup;
- private global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup fooGroup_;
- public bool HasFooGroup {
- get { return hasFooGroup; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup FooGroup {
- get { return fooGroup_ ?? global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.DefaultInstance; }
- }
- public const int FooLazyMessageFieldNumber = 11;
- private bool hasFooLazyMessage;
- private global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage fooLazyMessage_;
- public bool HasFooLazyMessage {
- get { return hasFooLazyMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage FooLazyMessage {
- get { return fooLazyMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.DefaultInstance; }
- }
- public const int BarIntFieldNumber = 12;
- private bool hasBarInt;
- private int barInt_ = 5;
- public bool HasBarInt {
- get { return hasBarInt; }
- }
- public int BarInt {
- get { return barInt_; }
- }
- public const int BarStringFieldNumber = 13;
- private bool hasBarString;
- private string barString_ = "STRING";
- public bool HasBarString {
- get { return hasBarString; }
- }
- public string BarString {
- get { return barString_; }
- }
- public const int BarCordFieldNumber = 14;
- private bool hasBarCord;
- private string barCord_ = "CORD";
- public bool HasBarCord {
- get { return hasBarCord; }
- }
- public string BarCord {
- get { return barCord_; }
- }
- public const int BarStringPieceFieldNumber = 15;
- private bool hasBarStringPiece;
- private string barStringPiece_ = "SPIECE";
- public bool HasBarStringPiece {
- get { return hasBarStringPiece; }
- }
- public string BarStringPiece {
- get { return barStringPiece_; }
- }
- public const int BarBytesFieldNumber = 16;
- private bool hasBarBytes;
- private pb::ByteString barBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestOneof2.Descriptor.Fields[13].DefaultValue;
- public bool HasBarBytes {
- get { return hasBarBytes; }
- }
- public pb::ByteString BarBytes {
- get { return barBytes_; }
- }
- public const int BarEnumFieldNumber = 17;
- private bool hasBarEnum;
- private global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum barEnum_ = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum.BAR;
- public bool HasBarEnum {
- get { return hasBarEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum BarEnum {
- get { return barEnum_; }
- }
- public const int BazIntFieldNumber = 18;
- private bool hasBazInt;
- private int bazInt_;
- public bool HasBazInt {
- get { return hasBazInt; }
- }
- public int BazInt {
- get { return bazInt_; }
- }
- public const int BazStringFieldNumber = 19;
- private bool hasBazString;
- private string bazString_ = "BAZ";
- public bool HasBazString {
- get { return hasBazString; }
- }
- public string BazString {
- get { return bazString_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testOneof2FieldNames;
- if (hasFooInt) {
- output.WriteInt32(1, field_names[11], FooInt);
- }
- if (hasFooString) {
- output.WriteString(2, field_names[14], FooString);
- }
- if (hasFooCord) {
- output.WriteString(3, field_names[9], FooCord);
- }
- if (hasFooStringPiece) {
- output.WriteString(4, field_names[15], FooStringPiece);
- }
- if (hasFooBytes) {
- output.WriteBytes(5, field_names[8], FooBytes);
- }
- if (hasFooEnum) {
- output.WriteEnum(6, field_names[10], (int) FooEnum, FooEnum);
- }
- if (hasFooMessage) {
- output.WriteMessage(7, field_names[13], FooMessage);
- }
- if (hasFooGroup) {
- output.WriteGroup(8, field_names[16], FooGroup);
- }
- if (hasFooLazyMessage) {
- output.WriteMessage(11, field_names[12], FooLazyMessage);
- }
- if (hasBarInt) {
- output.WriteInt32(12, field_names[3], BarInt);
- }
- if (hasBarString) {
- output.WriteString(13, field_names[4], BarString);
- }
- if (hasBarCord) {
- output.WriteString(14, field_names[1], BarCord);
- }
- if (hasBarStringPiece) {
- output.WriteString(15, field_names[5], BarStringPiece);
- }
- if (hasBarBytes) {
- output.WriteBytes(16, field_names[0], BarBytes);
- }
- if (hasBarEnum) {
- output.WriteEnum(17, field_names[2], (int) BarEnum, BarEnum);
- }
- if (hasBazInt) {
- output.WriteInt32(18, field_names[6], BazInt);
- }
- if (hasBazString) {
- output.WriteString(19, field_names[7], BazString);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasFooInt) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, FooInt);
- }
- if (hasFooString) {
- size += pb::CodedOutputStream.ComputeStringSize(2, FooString);
- }
- if (hasFooCord) {
- size += pb::CodedOutputStream.ComputeStringSize(3, FooCord);
- }
- if (hasFooStringPiece) {
- size += pb::CodedOutputStream.ComputeStringSize(4, FooStringPiece);
- }
- if (hasFooBytes) {
- size += pb::CodedOutputStream.ComputeBytesSize(5, FooBytes);
- }
- if (hasFooEnum) {
- size += pb::CodedOutputStream.ComputeEnumSize(6, (int) FooEnum);
- }
- if (hasFooMessage) {
- size += pb::CodedOutputStream.ComputeMessageSize(7, FooMessage);
- }
- if (hasFooGroup) {
- size += pb::CodedOutputStream.ComputeGroupSize(8, FooGroup);
- }
- if (hasFooLazyMessage) {
- size += pb::CodedOutputStream.ComputeMessageSize(11, FooLazyMessage);
- }
- if (hasBarInt) {
- size += pb::CodedOutputStream.ComputeInt32Size(12, BarInt);
- }
- if (hasBarString) {
- size += pb::CodedOutputStream.ComputeStringSize(13, BarString);
- }
- if (hasBarCord) {
- size += pb::CodedOutputStream.ComputeStringSize(14, BarCord);
- }
- if (hasBarStringPiece) {
- size += pb::CodedOutputStream.ComputeStringSize(15, BarStringPiece);
- }
- if (hasBarBytes) {
- size += pb::CodedOutputStream.ComputeBytesSize(16, BarBytes);
- }
- if (hasBarEnum) {
- size += pb::CodedOutputStream.ComputeEnumSize(17, (int) BarEnum);
- }
- if (hasBazInt) {
- size += pb::CodedOutputStream.ComputeInt32Size(18, BazInt);
- }
- if (hasBazString) {
- size += pb::CodedOutputStream.ComputeStringSize(19, BazString);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestOneof2 ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestOneof2 ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestOneof2 ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestOneof2 ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestOneof2 ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestOneof2 ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestOneof2 ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestOneof2 ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestOneof2 ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestOneof2 ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestOneof2 MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestOneof2 prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestOneof2, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestOneof2 cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestOneof2 result;
- private TestOneof2 PrepareBuilder() {
- if (resultIsReadOnly) {
- TestOneof2 original = result;
- result = new TestOneof2();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestOneof2 MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestOneof2.Descriptor; }
- }
- public override TestOneof2 DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestOneof2.DefaultInstance; }
- }
- public override TestOneof2 BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestOneof2) {
- return MergeFrom((TestOneof2) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestOneof2 other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestOneof2.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasFooInt) {
- FooInt = other.FooInt;
- }
- if (other.HasFooString) {
- FooString = other.FooString;
- }
- if (other.HasFooCord) {
- FooCord = other.FooCord;
- }
- if (other.HasFooStringPiece) {
- FooStringPiece = other.FooStringPiece;
- }
- if (other.HasFooBytes) {
- FooBytes = other.FooBytes;
- }
- if (other.HasFooEnum) {
- FooEnum = other.FooEnum;
- }
- if (other.HasFooMessage) {
- MergeFooMessage(other.FooMessage);
- }
- if (other.HasFooGroup) {
- MergeFooGroup(other.FooGroup);
- }
- if (other.HasFooLazyMessage) {
- MergeFooLazyMessage(other.FooLazyMessage);
- }
- if (other.HasBarInt) {
- BarInt = other.BarInt;
- }
- if (other.HasBarString) {
- BarString = other.BarString;
- }
- if (other.HasBarCord) {
- BarCord = other.BarCord;
- }
- if (other.HasBarStringPiece) {
- BarStringPiece = other.BarStringPiece;
- }
- if (other.HasBarBytes) {
- BarBytes = other.BarBytes;
- }
- if (other.HasBarEnum) {
- BarEnum = other.BarEnum;
- }
- if (other.HasBazInt) {
- BazInt = other.BazInt;
- }
- if (other.HasBazString) {
- BazString = other.BazString;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testOneof2FieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testOneof2FieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasFooInt = input.ReadInt32(ref result.fooInt_);
- break;
- }
- case 18: {
- result.hasFooString = input.ReadString(ref result.fooString_);
- break;
- }
- case 26: {
- result.hasFooCord = input.ReadString(ref result.fooCord_);
- break;
- }
- case 34: {
- result.hasFooStringPiece = input.ReadString(ref result.fooStringPiece_);
- break;
- }
- case 42: {
- result.hasFooBytes = input.ReadBytes(ref result.fooBytes_);
- break;
- }
- case 48: {
- object unknown;
- if(input.ReadEnum(ref result.fooEnum_, out unknown)) {
- result.hasFooEnum = true;
- } else if(unknown is int) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- unknownFields.MergeVarintField(6, (ulong)(int)unknown);
- }
- break;
- }
- case 58: {
- global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.CreateBuilder();
- if (result.hasFooMessage) {
- subBuilder.MergeFrom(FooMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- FooMessage = subBuilder.BuildPartial();
- break;
- }
- case 67: {
- global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.CreateBuilder();
- if (result.hasFooGroup) {
- subBuilder.MergeFrom(FooGroup);
- }
- input.ReadGroup(8, subBuilder, extensionRegistry);
- FooGroup = subBuilder.BuildPartial();
- break;
- }
- case 90: {
- global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.CreateBuilder();
- if (result.hasFooLazyMessage) {
- subBuilder.MergeFrom(FooLazyMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- FooLazyMessage = subBuilder.BuildPartial();
- break;
- }
- case 96: {
- result.hasBarInt = input.ReadInt32(ref result.barInt_);
- break;
- }
- case 106: {
- result.hasBarString = input.ReadString(ref result.barString_);
- break;
- }
- case 114: {
- result.hasBarCord = input.ReadString(ref result.barCord_);
- break;
- }
- case 122: {
- result.hasBarStringPiece = input.ReadString(ref result.barStringPiece_);
- break;
- }
- case 130: {
- result.hasBarBytes = input.ReadBytes(ref result.barBytes_);
- break;
- }
- case 136: {
- object unknown;
- if(input.ReadEnum(ref result.barEnum_, out unknown)) {
- result.hasBarEnum = true;
- } else if(unknown is int) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- unknownFields.MergeVarintField(17, (ulong)(int)unknown);
- }
- break;
- }
- case 144: {
- result.hasBazInt = input.ReadInt32(ref result.bazInt_);
- break;
- }
- case 154: {
- result.hasBazString = input.ReadString(ref result.bazString_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasFooInt {
- get { return result.hasFooInt; }
- }
- public int FooInt {
- get { return result.FooInt; }
- set { SetFooInt(value); }
- }
- public Builder SetFooInt(int value) {
- PrepareBuilder();
- result.hasFooInt = true;
- result.fooInt_ = value;
- return this;
- }
- public Builder ClearFooInt() {
- PrepareBuilder();
- result.hasFooInt = false;
- result.fooInt_ = 0;
- return this;
- }
- public bool HasFooString {
- get { return result.hasFooString; }
- }
- public string FooString {
- get { return result.FooString; }
- set { SetFooString(value); }
- }
- public Builder SetFooString(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasFooString = true;
- result.fooString_ = value;
- return this;
- }
- public Builder ClearFooString() {
- PrepareBuilder();
- result.hasFooString = false;
- result.fooString_ = "";
- return this;
- }
- public bool HasFooCord {
- get { return result.hasFooCord; }
- }
- public string FooCord {
- get { return result.FooCord; }
- set { SetFooCord(value); }
- }
- public Builder SetFooCord(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasFooCord = true;
- result.fooCord_ = value;
- return this;
- }
- public Builder ClearFooCord() {
- PrepareBuilder();
- result.hasFooCord = false;
- result.fooCord_ = "";
- return this;
- }
- public bool HasFooStringPiece {
- get { return result.hasFooStringPiece; }
- }
- public string FooStringPiece {
- get { return result.FooStringPiece; }
- set { SetFooStringPiece(value); }
- }
- public Builder SetFooStringPiece(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasFooStringPiece = true;
- result.fooStringPiece_ = value;
- return this;
- }
- public Builder ClearFooStringPiece() {
- PrepareBuilder();
- result.hasFooStringPiece = false;
- result.fooStringPiece_ = "";
- return this;
- }
- public bool HasFooBytes {
- get { return result.hasFooBytes; }
- }
- public pb::ByteString FooBytes {
- get { return result.FooBytes; }
- set { SetFooBytes(value); }
- }
- public Builder SetFooBytes(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasFooBytes = true;
- result.fooBytes_ = value;
- return this;
- }
- public Builder ClearFooBytes() {
- PrepareBuilder();
- result.hasFooBytes = false;
- result.fooBytes_ = pb::ByteString.Empty;
- return this;
- }
- public bool HasFooEnum {
- get { return result.hasFooEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum FooEnum {
- get { return result.FooEnum; }
- set { SetFooEnum(value); }
- }
- public Builder SetFooEnum(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum value) {
- PrepareBuilder();
- result.hasFooEnum = true;
- result.fooEnum_ = value;
- return this;
- }
- public Builder ClearFooEnum() {
- PrepareBuilder();
- result.hasFooEnum = false;
- result.fooEnum_ = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum.FOO;
- return this;
- }
- public bool HasFooMessage {
- get { return result.hasFooMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage FooMessage {
- get { return result.FooMessage; }
- set { SetFooMessage(value); }
- }
- public Builder SetFooMessage(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasFooMessage = true;
- result.fooMessage_ = value;
- return this;
- }
- public Builder SetFooMessage(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasFooMessage = true;
- result.fooMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeFooMessage(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasFooMessage &&
- result.fooMessage_ != global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.DefaultInstance) {
- result.fooMessage_ = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.CreateBuilder(result.fooMessage_).MergeFrom(value).BuildPartial();
- } else {
- result.fooMessage_ = value;
- }
- result.hasFooMessage = true;
- return this;
- }
- public Builder ClearFooMessage() {
- PrepareBuilder();
- result.hasFooMessage = false;
- result.fooMessage_ = null;
- return this;
- }
- public bool HasFooGroup {
- get { return result.hasFooGroup; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup FooGroup {
- get { return result.FooGroup; }
- set { SetFooGroup(value); }
- }
- public Builder SetFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasFooGroup = true;
- result.fooGroup_ = value;
- return this;
- }
- public Builder SetFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasFooGroup = true;
- result.fooGroup_ = builderForValue.Build();
- return this;
- }
- public Builder MergeFooGroup(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasFooGroup &&
- result.fooGroup_ != global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.DefaultInstance) {
- result.fooGroup_ = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.FooGroup.CreateBuilder(result.fooGroup_).MergeFrom(value).BuildPartial();
- } else {
- result.fooGroup_ = value;
- }
- result.hasFooGroup = true;
- return this;
- }
- public Builder ClearFooGroup() {
- PrepareBuilder();
- result.hasFooGroup = false;
- result.fooGroup_ = null;
- return this;
- }
- public bool HasFooLazyMessage {
- get { return result.hasFooLazyMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage FooLazyMessage {
- get { return result.FooLazyMessage; }
- set { SetFooLazyMessage(value); }
- }
- public Builder SetFooLazyMessage(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasFooLazyMessage = true;
- result.fooLazyMessage_ = value;
- return this;
- }
- public Builder SetFooLazyMessage(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasFooLazyMessage = true;
- result.fooLazyMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeFooLazyMessage(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasFooLazyMessage &&
- result.fooLazyMessage_ != global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.DefaultInstance) {
- result.fooLazyMessage_ = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedMessage.CreateBuilder(result.fooLazyMessage_).MergeFrom(value).BuildPartial();
- } else {
- result.fooLazyMessage_ = value;
- }
- result.hasFooLazyMessage = true;
- return this;
- }
- public Builder ClearFooLazyMessage() {
- PrepareBuilder();
- result.hasFooLazyMessage = false;
- result.fooLazyMessage_ = null;
- return this;
- }
- public bool HasBarInt {
- get { return result.hasBarInt; }
- }
- public int BarInt {
- get { return result.BarInt; }
- set { SetBarInt(value); }
- }
- public Builder SetBarInt(int value) {
- PrepareBuilder();
- result.hasBarInt = true;
- result.barInt_ = value;
- return this;
- }
- public Builder ClearBarInt() {
- PrepareBuilder();
- result.hasBarInt = false;
- result.barInt_ = 5;
- return this;
- }
- public bool HasBarString {
- get { return result.hasBarString; }
- }
- public string BarString {
- get { return result.BarString; }
- set { SetBarString(value); }
- }
- public Builder SetBarString(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasBarString = true;
- result.barString_ = value;
- return this;
- }
- public Builder ClearBarString() {
- PrepareBuilder();
- result.hasBarString = false;
- result.barString_ = "STRING";
- return this;
- }
- public bool HasBarCord {
- get { return result.hasBarCord; }
- }
- public string BarCord {
- get { return result.BarCord; }
- set { SetBarCord(value); }
- }
- public Builder SetBarCord(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasBarCord = true;
- result.barCord_ = value;
- return this;
- }
- public Builder ClearBarCord() {
- PrepareBuilder();
- result.hasBarCord = false;
- result.barCord_ = "CORD";
- return this;
- }
- public bool HasBarStringPiece {
- get { return result.hasBarStringPiece; }
- }
- public string BarStringPiece {
- get { return result.BarStringPiece; }
- set { SetBarStringPiece(value); }
- }
- public Builder SetBarStringPiece(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasBarStringPiece = true;
- result.barStringPiece_ = value;
- return this;
- }
- public Builder ClearBarStringPiece() {
- PrepareBuilder();
- result.hasBarStringPiece = false;
- result.barStringPiece_ = "SPIECE";
- return this;
- }
- public bool HasBarBytes {
- get { return result.hasBarBytes; }
- }
- public pb::ByteString BarBytes {
- get { return result.BarBytes; }
- set { SetBarBytes(value); }
- }
- public Builder SetBarBytes(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasBarBytes = true;
- result.barBytes_ = value;
- return this;
- }
- public Builder ClearBarBytes() {
- PrepareBuilder();
- result.hasBarBytes = false;
- result.barBytes_ = (pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestOneof2.Descriptor.Fields[13].DefaultValue;
- return this;
- }
- public bool HasBarEnum {
- get { return result.hasBarEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum BarEnum {
- get { return result.BarEnum; }
- set { SetBarEnum(value); }
- }
- public Builder SetBarEnum(global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum value) {
- PrepareBuilder();
- result.hasBarEnum = true;
- result.barEnum_ = value;
- return this;
- }
- public Builder ClearBarEnum() {
- PrepareBuilder();
- result.hasBarEnum = false;
- result.barEnum_ = global::Google.ProtocolBuffers.TestProtos.TestOneof2.Types.NestedEnum.BAR;
- return this;
- }
- public bool HasBazInt {
- get { return result.hasBazInt; }
- }
- public int BazInt {
- get { return result.BazInt; }
- set { SetBazInt(value); }
- }
- public Builder SetBazInt(int value) {
- PrepareBuilder();
- result.hasBazInt = true;
- result.bazInt_ = value;
- return this;
- }
- public Builder ClearBazInt() {
- PrepareBuilder();
- result.hasBazInt = false;
- result.bazInt_ = 0;
- return this;
- }
- public bool HasBazString {
- get { return result.hasBazString; }
- }
- public string BazString {
- get { return result.BazString; }
- set { SetBazString(value); }
- }
- public Builder SetBazString(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasBazString = true;
- result.bazString_ = value;
- return this;
- }
- public Builder ClearBazString() {
- PrepareBuilder();
- result.hasBazString = false;
- result.bazString_ = "BAZ";
- return this;
- }
- }
- static TestOneof2() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestRequiredOneof : pb::GeneratedMessage<TestRequiredOneof, TestRequiredOneof.Builder> {
- private TestRequiredOneof() { }
- private static readonly TestRequiredOneof defaultInstance = new TestRequiredOneof().MakeReadOnly();
- private static readonly string[] _testRequiredOneofFieldNames = new string[] { "foo_int", "foo_message", "foo_string" };
- private static readonly uint[] _testRequiredOneofFieldTags = new uint[] { 8, 26, 18 };
- public static TestRequiredOneof DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestRequiredOneof DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestRequiredOneof ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRequiredOneof__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestRequiredOneof, TestRequiredOneof.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRequiredOneof__FieldAccessorTable; }
- }
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
- private NestedMessage() { }
- private static readonly NestedMessage defaultInstance = new NestedMessage().MakeReadOnly();
- private static readonly string[] _nestedMessageFieldNames = new string[] { "required_double" };
- private static readonly uint[] _nestedMessageFieldTags = new uint[] { 9 };
- public static NestedMessage DefaultInstance {
- get { return defaultInstance; }
- }
- public override NestedMessage DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override NestedMessage ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRequiredOneof_NestedMessage__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRequiredOneof_NestedMessage__FieldAccessorTable; }
- }
- public const int RequiredDoubleFieldNumber = 1;
- private bool hasRequiredDouble;
- private double requiredDouble_;
- public bool HasRequiredDouble {
- get { return hasRequiredDouble; }
- }
- public double RequiredDouble {
- get { return requiredDouble_; }
- }
- public override bool IsInitialized {
- get {
- if (!hasRequiredDouble) return false;
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _nestedMessageFieldNames;
- if (hasRequiredDouble) {
- output.WriteDouble(1, field_names[0], RequiredDouble);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasRequiredDouble) {
- size += pb::CodedOutputStream.ComputeDoubleSize(1, RequiredDouble);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static NestedMessage ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static NestedMessage ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static NestedMessage ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private NestedMessage MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(NestedMessage prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<NestedMessage, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(NestedMessage cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private NestedMessage result;
- private NestedMessage PrepareBuilder() {
- if (resultIsReadOnly) {
- NestedMessage original = result;
- result = new NestedMessage();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override NestedMessage MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.Descriptor; }
- }
- public override NestedMessage DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.DefaultInstance; }
- }
- public override NestedMessage BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is NestedMessage) {
- return MergeFrom((NestedMessage) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(NestedMessage other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasRequiredDouble) {
- RequiredDouble = other.RequiredDouble;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_nestedMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _nestedMessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 9: {
- result.hasRequiredDouble = input.ReadDouble(ref result.requiredDouble_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasRequiredDouble {
- get { return result.hasRequiredDouble; }
- }
- public double RequiredDouble {
- get { return result.RequiredDouble; }
- set { SetRequiredDouble(value); }
- }
- public Builder SetRequiredDouble(double value) {
- PrepareBuilder();
- result.hasRequiredDouble = true;
- result.requiredDouble_ = value;
- return this;
- }
- public Builder ClearRequiredDouble() {
- PrepareBuilder();
- result.hasRequiredDouble = false;
- result.requiredDouble_ = 0D;
- return this;
- }
- }
- static NestedMessage() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- }
- #endregion
- public const int FooIntFieldNumber = 1;
- private bool hasFooInt;
- private int fooInt_;
- public bool HasFooInt {
- get { return hasFooInt; }
- }
- public int FooInt {
- get { return fooInt_; }
- }
- public const int FooStringFieldNumber = 2;
- private bool hasFooString;
- private string fooString_ = "";
- public bool HasFooString {
- get { return hasFooString; }
- }
- public string FooString {
- get { return fooString_; }
- }
- public const int FooMessageFieldNumber = 3;
- private bool hasFooMessage;
- private global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage fooMessage_;
- public bool HasFooMessage {
- get { return hasFooMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage FooMessage {
- get { return fooMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.DefaultInstance; }
- }
- public override bool IsInitialized {
- get {
- if (HasFooMessage) {
- if (!FooMessage.IsInitialized) return false;
- }
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testRequiredOneofFieldNames;
- if (hasFooInt) {
- output.WriteInt32(1, field_names[0], FooInt);
- }
- if (hasFooString) {
- output.WriteString(2, field_names[2], FooString);
- }
- if (hasFooMessage) {
- output.WriteMessage(3, field_names[1], FooMessage);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasFooInt) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, FooInt);
- }
- if (hasFooString) {
- size += pb::CodedOutputStream.ComputeStringSize(2, FooString);
- }
- if (hasFooMessage) {
- size += pb::CodedOutputStream.ComputeMessageSize(3, FooMessage);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestRequiredOneof ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestRequiredOneof ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestRequiredOneof ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestRequiredOneof ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestRequiredOneof ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestRequiredOneof ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestRequiredOneof ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestRequiredOneof ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestRequiredOneof ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestRequiredOneof ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestRequiredOneof MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestRequiredOneof prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestRequiredOneof, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestRequiredOneof cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestRequiredOneof result;
- private TestRequiredOneof PrepareBuilder() {
- if (resultIsReadOnly) {
- TestRequiredOneof original = result;
- result = new TestRequiredOneof();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestRequiredOneof MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Descriptor; }
- }
- public override TestRequiredOneof DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.DefaultInstance; }
- }
- public override TestRequiredOneof BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestRequiredOneof) {
- return MergeFrom((TestRequiredOneof) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestRequiredOneof other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasFooInt) {
- FooInt = other.FooInt;
- }
- if (other.HasFooString) {
- FooString = other.FooString;
- }
- if (other.HasFooMessage) {
- MergeFooMessage(other.FooMessage);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testRequiredOneofFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testRequiredOneofFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasFooInt = input.ReadInt32(ref result.fooInt_);
- break;
- }
- case 18: {
- result.hasFooString = input.ReadString(ref result.fooString_);
- break;
- }
- case 26: {
- global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.CreateBuilder();
- if (result.hasFooMessage) {
- subBuilder.MergeFrom(FooMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- FooMessage = subBuilder.BuildPartial();
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasFooInt {
- get { return result.hasFooInt; }
- }
- public int FooInt {
- get { return result.FooInt; }
- set { SetFooInt(value); }
- }
- public Builder SetFooInt(int value) {
- PrepareBuilder();
- result.hasFooInt = true;
- result.fooInt_ = value;
- return this;
- }
- public Builder ClearFooInt() {
- PrepareBuilder();
- result.hasFooInt = false;
- result.fooInt_ = 0;
- return this;
- }
- public bool HasFooString {
- get { return result.hasFooString; }
- }
- public string FooString {
- get { return result.FooString; }
- set { SetFooString(value); }
- }
- public Builder SetFooString(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasFooString = true;
- result.fooString_ = value;
- return this;
- }
- public Builder ClearFooString() {
- PrepareBuilder();
- result.hasFooString = false;
- result.fooString_ = "";
- return this;
- }
- public bool HasFooMessage {
- get { return result.hasFooMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage FooMessage {
- get { return result.FooMessage; }
- set { SetFooMessage(value); }
- }
- public Builder SetFooMessage(global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasFooMessage = true;
- result.fooMessage_ = value;
- return this;
- }
- public Builder SetFooMessage(global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasFooMessage = true;
- result.fooMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeFooMessage(global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasFooMessage &&
- result.fooMessage_ != global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.DefaultInstance) {
- result.fooMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequiredOneof.Types.NestedMessage.CreateBuilder(result.fooMessage_).MergeFrom(value).BuildPartial();
- } else {
- result.fooMessage_ = value;
- }
- result.hasFooMessage = true;
- return this;
- }
- public Builder ClearFooMessage() {
- PrepareBuilder();
- result.hasFooMessage = false;
- result.fooMessage_ = null;
- return this;
- }
- }
- static TestRequiredOneof() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestPackedTypes : pb::GeneratedMessage<TestPackedTypes, TestPackedTypes.Builder> {
- private TestPackedTypes() { }
- private static readonly TestPackedTypes defaultInstance = new TestPackedTypes().MakeReadOnly();
- private static readonly string[] _testPackedTypesFieldNames = new string[] { "packed_bool", "packed_double", "packed_enum", "packed_fixed32", "packed_fixed64", "packed_float", "packed_int32", "packed_int64", "packed_sfixed32", "packed_sfixed64", "packed_sint32", "packed_sint64", "packed_uint32", "packed_uint64" };
- private static readonly uint[] _testPackedTypesFieldTags = new uint[] { 818, 810, 826, 770, 778, 802, 722, 730, 786, 794, 754, 762, 738, 746 };
- public static TestPackedTypes DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestPackedTypes DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestPackedTypes ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestPackedTypes__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestPackedTypes, TestPackedTypes.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestPackedTypes__FieldAccessorTable; }
- }
- public const int PackedInt32FieldNumber = 90;
- private int packedInt32MemoizedSerializedSize;
- private pbc::PopsicleList<int> packedInt32_ = new pbc::PopsicleList<int>();
- public scg::IList<int> PackedInt32List {
- get { return pbc::Lists.AsReadOnly(packedInt32_); }
- }
- public int PackedInt32Count {
- get { return packedInt32_.Count; }
- }
- public int GetPackedInt32(int index) {
- return packedInt32_[index];
- }
- public const int PackedInt64FieldNumber = 91;
- private int packedInt64MemoizedSerializedSize;
- private pbc::PopsicleList<long> packedInt64_ = new pbc::PopsicleList<long>();
- public scg::IList<long> PackedInt64List {
- get { return pbc::Lists.AsReadOnly(packedInt64_); }
- }
- public int PackedInt64Count {
- get { return packedInt64_.Count; }
- }
- public long GetPackedInt64(int index) {
- return packedInt64_[index];
- }
- public const int PackedUint32FieldNumber = 92;
- private int packedUint32MemoizedSerializedSize;
- private pbc::PopsicleList<uint> packedUint32_ = new pbc::PopsicleList<uint>();
- [global::System.CLSCompliant(false)]
- public scg::IList<uint> PackedUint32List {
- get { return pbc::Lists.AsReadOnly(packedUint32_); }
- }
- public int PackedUint32Count {
- get { return packedUint32_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetPackedUint32(int index) {
- return packedUint32_[index];
- }
- public const int PackedUint64FieldNumber = 93;
- private int packedUint64MemoizedSerializedSize;
- private pbc::PopsicleList<ulong> packedUint64_ = new pbc::PopsicleList<ulong>();
- [global::System.CLSCompliant(false)]
- public scg::IList<ulong> PackedUint64List {
- get { return pbc::Lists.AsReadOnly(packedUint64_); }
- }
- public int PackedUint64Count {
- get { return packedUint64_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetPackedUint64(int index) {
- return packedUint64_[index];
- }
- public const int PackedSint32FieldNumber = 94;
- private int packedSint32MemoizedSerializedSize;
- private pbc::PopsicleList<int> packedSint32_ = new pbc::PopsicleList<int>();
- public scg::IList<int> PackedSint32List {
- get { return pbc::Lists.AsReadOnly(packedSint32_); }
- }
- public int PackedSint32Count {
- get { return packedSint32_.Count; }
- }
- public int GetPackedSint32(int index) {
- return packedSint32_[index];
- }
- public const int PackedSint64FieldNumber = 95;
- private int packedSint64MemoizedSerializedSize;
- private pbc::PopsicleList<long> packedSint64_ = new pbc::PopsicleList<long>();
- public scg::IList<long> PackedSint64List {
- get { return pbc::Lists.AsReadOnly(packedSint64_); }
- }
- public int PackedSint64Count {
- get { return packedSint64_.Count; }
- }
- public long GetPackedSint64(int index) {
- return packedSint64_[index];
- }
- public const int PackedFixed32FieldNumber = 96;
- private int packedFixed32MemoizedSerializedSize;
- private pbc::PopsicleList<uint> packedFixed32_ = new pbc::PopsicleList<uint>();
- [global::System.CLSCompliant(false)]
- public scg::IList<uint> PackedFixed32List {
- get { return pbc::Lists.AsReadOnly(packedFixed32_); }
- }
- public int PackedFixed32Count {
- get { return packedFixed32_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetPackedFixed32(int index) {
- return packedFixed32_[index];
- }
- public const int PackedFixed64FieldNumber = 97;
- private int packedFixed64MemoizedSerializedSize;
- private pbc::PopsicleList<ulong> packedFixed64_ = new pbc::PopsicleList<ulong>();
- [global::System.CLSCompliant(false)]
- public scg::IList<ulong> PackedFixed64List {
- get { return pbc::Lists.AsReadOnly(packedFixed64_); }
- }
- public int PackedFixed64Count {
- get { return packedFixed64_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetPackedFixed64(int index) {
- return packedFixed64_[index];
- }
- public const int PackedSfixed32FieldNumber = 98;
- private int packedSfixed32MemoizedSerializedSize;
- private pbc::PopsicleList<int> packedSfixed32_ = new pbc::PopsicleList<int>();
- public scg::IList<int> PackedSfixed32List {
- get { return pbc::Lists.AsReadOnly(packedSfixed32_); }
- }
- public int PackedSfixed32Count {
- get { return packedSfixed32_.Count; }
- }
- public int GetPackedSfixed32(int index) {
- return packedSfixed32_[index];
- }
- public const int PackedSfixed64FieldNumber = 99;
- private int packedSfixed64MemoizedSerializedSize;
- private pbc::PopsicleList<long> packedSfixed64_ = new pbc::PopsicleList<long>();
- public scg::IList<long> PackedSfixed64List {
- get { return pbc::Lists.AsReadOnly(packedSfixed64_); }
- }
- public int PackedSfixed64Count {
- get { return packedSfixed64_.Count; }
- }
- public long GetPackedSfixed64(int index) {
- return packedSfixed64_[index];
- }
- public const int PackedFloatFieldNumber = 100;
- private int packedFloatMemoizedSerializedSize;
- private pbc::PopsicleList<float> packedFloat_ = new pbc::PopsicleList<float>();
- public scg::IList<float> PackedFloatList {
- get { return pbc::Lists.AsReadOnly(packedFloat_); }
- }
- public int PackedFloatCount {
- get { return packedFloat_.Count; }
- }
- public float GetPackedFloat(int index) {
- return packedFloat_[index];
- }
- public const int PackedDoubleFieldNumber = 101;
- private int packedDoubleMemoizedSerializedSize;
- private pbc::PopsicleList<double> packedDouble_ = new pbc::PopsicleList<double>();
- public scg::IList<double> PackedDoubleList {
- get { return pbc::Lists.AsReadOnly(packedDouble_); }
- }
- public int PackedDoubleCount {
- get { return packedDouble_.Count; }
- }
- public double GetPackedDouble(int index) {
- return packedDouble_[index];
- }
- public const int PackedBoolFieldNumber = 102;
- private int packedBoolMemoizedSerializedSize;
- private pbc::PopsicleList<bool> packedBool_ = new pbc::PopsicleList<bool>();
- public scg::IList<bool> PackedBoolList {
- get { return pbc::Lists.AsReadOnly(packedBool_); }
- }
- public int PackedBoolCount {
- get { return packedBool_.Count; }
- }
- public bool GetPackedBool(int index) {
- return packedBool_[index];
- }
- public const int PackedEnumFieldNumber = 103;
- private int packedEnumMemoizedSerializedSize;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> packedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> PackedEnumList {
- get { return pbc::Lists.AsReadOnly(packedEnum_); }
- }
- public int PackedEnumCount {
- get { return packedEnum_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetPackedEnum(int index) {
- return packedEnum_[index];
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testPackedTypesFieldNames;
- if (packedInt32_.Count > 0) {
- output.WritePackedInt32Array(90, field_names[6], packedInt32MemoizedSerializedSize, packedInt32_);
- }
- if (packedInt64_.Count > 0) {
- output.WritePackedInt64Array(91, field_names[7], packedInt64MemoizedSerializedSize, packedInt64_);
- }
- if (packedUint32_.Count > 0) {
- output.WritePackedUInt32Array(92, field_names[12], packedUint32MemoizedSerializedSize, packedUint32_);
- }
- if (packedUint64_.Count > 0) {
- output.WritePackedUInt64Array(93, field_names[13], packedUint64MemoizedSerializedSize, packedUint64_);
- }
- if (packedSint32_.Count > 0) {
- output.WritePackedSInt32Array(94, field_names[10], packedSint32MemoizedSerializedSize, packedSint32_);
- }
- if (packedSint64_.Count > 0) {
- output.WritePackedSInt64Array(95, field_names[11], packedSint64MemoizedSerializedSize, packedSint64_);
- }
- if (packedFixed32_.Count > 0) {
- output.WritePackedFixed32Array(96, field_names[3], packedFixed32MemoizedSerializedSize, packedFixed32_);
- }
- if (packedFixed64_.Count > 0) {
- output.WritePackedFixed64Array(97, field_names[4], packedFixed64MemoizedSerializedSize, packedFixed64_);
- }
- if (packedSfixed32_.Count > 0) {
- output.WritePackedSFixed32Array(98, field_names[8], packedSfixed32MemoizedSerializedSize, packedSfixed32_);
- }
- if (packedSfixed64_.Count > 0) {
- output.WritePackedSFixed64Array(99, field_names[9], packedSfixed64MemoizedSerializedSize, packedSfixed64_);
- }
- if (packedFloat_.Count > 0) {
- output.WritePackedFloatArray(100, field_names[5], packedFloatMemoizedSerializedSize, packedFloat_);
- }
- if (packedDouble_.Count > 0) {
- output.WritePackedDoubleArray(101, field_names[1], packedDoubleMemoizedSerializedSize, packedDouble_);
- }
- if (packedBool_.Count > 0) {
- output.WritePackedBoolArray(102, field_names[0], packedBoolMemoizedSerializedSize, packedBool_);
- }
- if (packedEnum_.Count > 0) {
- output.WritePackedEnumArray(103, field_names[2], packedEnumMemoizedSerializedSize, packedEnum_);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- {
- int dataSize = 0;
- foreach (int element in PackedInt32List) {
- dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
- }
- size += dataSize;
- if (packedInt32_.Count != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- }
- packedInt32MemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- foreach (long element in PackedInt64List) {
- dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
- }
- size += dataSize;
- if (packedInt64_.Count != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- }
- packedInt64MemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- foreach (uint element in PackedUint32List) {
- dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
- }
- size += dataSize;
- if (packedUint32_.Count != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- }
- packedUint32MemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- foreach (ulong element in PackedUint64List) {
- dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
- }
- size += dataSize;
- if (packedUint64_.Count != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- }
- packedUint64MemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- foreach (int element in PackedSint32List) {
- dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
- }
- size += dataSize;
- if (packedSint32_.Count != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- }
- packedSint32MemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- foreach (long element in PackedSint64List) {
- dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
- }
- size += dataSize;
- if (packedSint64_.Count != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- }
- packedSint64MemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- dataSize = 4 * packedFixed32_.Count;
- size += dataSize;
- if (packedFixed32_.Count != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- }
- packedFixed32MemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- dataSize = 8 * packedFixed64_.Count;
- size += dataSize;
- if (packedFixed64_.Count != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- }
- packedFixed64MemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- dataSize = 4 * packedSfixed32_.Count;
- size += dataSize;
- if (packedSfixed32_.Count != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- }
- packedSfixed32MemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- dataSize = 8 * packedSfixed64_.Count;
- size += dataSize;
- if (packedSfixed64_.Count != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- }
- packedSfixed64MemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- dataSize = 4 * packedFloat_.Count;
- size += dataSize;
- if (packedFloat_.Count != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- }
- packedFloatMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- dataSize = 8 * packedDouble_.Count;
- size += dataSize;
- if (packedDouble_.Count != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- }
- packedDoubleMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- dataSize = 1 * packedBool_.Count;
- size += dataSize;
- if (packedBool_.Count != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- }
- packedBoolMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- if (packedEnum_.Count > 0) {
- foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in packedEnum_) {
- dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
- }
- size += dataSize;
- size += 2;
- size += pb::CodedOutputStream.ComputeRawVarint32Size((uint) dataSize);
- }
- packedEnumMemoizedSerializedSize = dataSize;
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestPackedTypes ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestPackedTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestPackedTypes ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestPackedTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestPackedTypes ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestPackedTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestPackedTypes ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestPackedTypes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestPackedTypes ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestPackedTypes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestPackedTypes MakeReadOnly() {
- packedInt32_.MakeReadOnly();
- packedInt64_.MakeReadOnly();
- packedUint32_.MakeReadOnly();
- packedUint64_.MakeReadOnly();
- packedSint32_.MakeReadOnly();
- packedSint64_.MakeReadOnly();
- packedFixed32_.MakeReadOnly();
- packedFixed64_.MakeReadOnly();
- packedSfixed32_.MakeReadOnly();
- packedSfixed64_.MakeReadOnly();
- packedFloat_.MakeReadOnly();
- packedDouble_.MakeReadOnly();
- packedBool_.MakeReadOnly();
- packedEnum_.MakeReadOnly();
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestPackedTypes prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestPackedTypes, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestPackedTypes cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestPackedTypes result;
- private TestPackedTypes PrepareBuilder() {
- if (resultIsReadOnly) {
- TestPackedTypes original = result;
- result = new TestPackedTypes();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestPackedTypes MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.Descriptor; }
- }
- public override TestPackedTypes DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.DefaultInstance; }
- }
- public override TestPackedTypes BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestPackedTypes) {
- return MergeFrom((TestPackedTypes) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestPackedTypes other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedTypes.DefaultInstance) return this;
- PrepareBuilder();
- if (other.packedInt32_.Count != 0) {
- result.packedInt32_.Add(other.packedInt32_);
- }
- if (other.packedInt64_.Count != 0) {
- result.packedInt64_.Add(other.packedInt64_);
- }
- if (other.packedUint32_.Count != 0) {
- result.packedUint32_.Add(other.packedUint32_);
- }
- if (other.packedUint64_.Count != 0) {
- result.packedUint64_.Add(other.packedUint64_);
- }
- if (other.packedSint32_.Count != 0) {
- result.packedSint32_.Add(other.packedSint32_);
- }
- if (other.packedSint64_.Count != 0) {
- result.packedSint64_.Add(other.packedSint64_);
- }
- if (other.packedFixed32_.Count != 0) {
- result.packedFixed32_.Add(other.packedFixed32_);
- }
- if (other.packedFixed64_.Count != 0) {
- result.packedFixed64_.Add(other.packedFixed64_);
- }
- if (other.packedSfixed32_.Count != 0) {
- result.packedSfixed32_.Add(other.packedSfixed32_);
- }
- if (other.packedSfixed64_.Count != 0) {
- result.packedSfixed64_.Add(other.packedSfixed64_);
- }
- if (other.packedFloat_.Count != 0) {
- result.packedFloat_.Add(other.packedFloat_);
- }
- if (other.packedDouble_.Count != 0) {
- result.packedDouble_.Add(other.packedDouble_);
- }
- if (other.packedBool_.Count != 0) {
- result.packedBool_.Add(other.packedBool_);
- }
- if (other.packedEnum_.Count != 0) {
- result.packedEnum_.Add(other.packedEnum_);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testPackedTypesFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testPackedTypesFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 722:
- case 720: {
- input.ReadInt32Array(tag, field_name, result.packedInt32_);
- break;
- }
- case 730:
- case 728: {
- input.ReadInt64Array(tag, field_name, result.packedInt64_);
- break;
- }
- case 738:
- case 736: {
- input.ReadUInt32Array(tag, field_name, result.packedUint32_);
- break;
- }
- case 746:
- case 744: {
- input.ReadUInt64Array(tag, field_name, result.packedUint64_);
- break;
- }
- case 754:
- case 752: {
- input.ReadSInt32Array(tag, field_name, result.packedSint32_);
- break;
- }
- case 762:
- case 760: {
- input.ReadSInt64Array(tag, field_name, result.packedSint64_);
- break;
- }
- case 770:
- case 773: {
- input.ReadFixed32Array(tag, field_name, result.packedFixed32_);
- break;
- }
- case 778:
- case 777: {
- input.ReadFixed64Array(tag, field_name, result.packedFixed64_);
- break;
- }
- case 786:
- case 789: {
- input.ReadSFixed32Array(tag, field_name, result.packedSfixed32_);
- break;
- }
- case 794:
- case 793: {
- input.ReadSFixed64Array(tag, field_name, result.packedSfixed64_);
- break;
- }
- case 802:
- case 805: {
- input.ReadFloatArray(tag, field_name, result.packedFloat_);
- break;
- }
- case 810:
- case 809: {
- input.ReadDoubleArray(tag, field_name, result.packedDouble_);
- break;
- }
- case 818:
- case 816: {
- input.ReadBoolArray(tag, field_name, result.packedBool_);
- break;
- }
- case 826:
- case 824: {
- scg::ICollection<object> unknownItems;
- input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(tag, field_name, result.packedEnum_, out unknownItems);
- if (unknownItems != null) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- foreach (object rawValue in unknownItems)
- if (rawValue is int)
- unknownFields.MergeVarintField(103, (ulong)(int)rawValue);
- }
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public pbc::IPopsicleList<int> PackedInt32List {
- get { return PrepareBuilder().packedInt32_; }
- }
- public int PackedInt32Count {
- get { return result.PackedInt32Count; }
- }
- public int GetPackedInt32(int index) {
- return result.GetPackedInt32(index);
- }
- public Builder SetPackedInt32(int index, int value) {
- PrepareBuilder();
- result.packedInt32_[index] = value;
- return this;
- }
- public Builder AddPackedInt32(int value) {
- PrepareBuilder();
- result.packedInt32_.Add(value);
- return this;
- }
- public Builder AddRangePackedInt32(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.packedInt32_.Add(values);
- return this;
- }
- public Builder ClearPackedInt32() {
- PrepareBuilder();
- result.packedInt32_.Clear();
- return this;
- }
- public pbc::IPopsicleList<long> PackedInt64List {
- get { return PrepareBuilder().packedInt64_; }
- }
- public int PackedInt64Count {
- get { return result.PackedInt64Count; }
- }
- public long GetPackedInt64(int index) {
- return result.GetPackedInt64(index);
- }
- public Builder SetPackedInt64(int index, long value) {
- PrepareBuilder();
- result.packedInt64_[index] = value;
- return this;
- }
- public Builder AddPackedInt64(long value) {
- PrepareBuilder();
- result.packedInt64_.Add(value);
- return this;
- }
- public Builder AddRangePackedInt64(scg::IEnumerable<long> values) {
- PrepareBuilder();
- result.packedInt64_.Add(values);
- return this;
- }
- public Builder ClearPackedInt64() {
- PrepareBuilder();
- result.packedInt64_.Clear();
- return this;
- }
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<uint> PackedUint32List {
- get { return PrepareBuilder().packedUint32_; }
- }
- public int PackedUint32Count {
- get { return result.PackedUint32Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetPackedUint32(int index) {
- return result.GetPackedUint32(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetPackedUint32(int index, uint value) {
- PrepareBuilder();
- result.packedUint32_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddPackedUint32(uint value) {
- PrepareBuilder();
- result.packedUint32_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangePackedUint32(scg::IEnumerable<uint> values) {
- PrepareBuilder();
- result.packedUint32_.Add(values);
- return this;
- }
- public Builder ClearPackedUint32() {
- PrepareBuilder();
- result.packedUint32_.Clear();
- return this;
- }
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<ulong> PackedUint64List {
- get { return PrepareBuilder().packedUint64_; }
- }
- public int PackedUint64Count {
- get { return result.PackedUint64Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetPackedUint64(int index) {
- return result.GetPackedUint64(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetPackedUint64(int index, ulong value) {
- PrepareBuilder();
- result.packedUint64_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddPackedUint64(ulong value) {
- PrepareBuilder();
- result.packedUint64_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangePackedUint64(scg::IEnumerable<ulong> values) {
- PrepareBuilder();
- result.packedUint64_.Add(values);
- return this;
- }
- public Builder ClearPackedUint64() {
- PrepareBuilder();
- result.packedUint64_.Clear();
- return this;
- }
- public pbc::IPopsicleList<int> PackedSint32List {
- get { return PrepareBuilder().packedSint32_; }
- }
- public int PackedSint32Count {
- get { return result.PackedSint32Count; }
- }
- public int GetPackedSint32(int index) {
- return result.GetPackedSint32(index);
- }
- public Builder SetPackedSint32(int index, int value) {
- PrepareBuilder();
- result.packedSint32_[index] = value;
- return this;
- }
- public Builder AddPackedSint32(int value) {
- PrepareBuilder();
- result.packedSint32_.Add(value);
- return this;
- }
- public Builder AddRangePackedSint32(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.packedSint32_.Add(values);
- return this;
- }
- public Builder ClearPackedSint32() {
- PrepareBuilder();
- result.packedSint32_.Clear();
- return this;
- }
- public pbc::IPopsicleList<long> PackedSint64List {
- get { return PrepareBuilder().packedSint64_; }
- }
- public int PackedSint64Count {
- get { return result.PackedSint64Count; }
- }
- public long GetPackedSint64(int index) {
- return result.GetPackedSint64(index);
- }
- public Builder SetPackedSint64(int index, long value) {
- PrepareBuilder();
- result.packedSint64_[index] = value;
- return this;
- }
- public Builder AddPackedSint64(long value) {
- PrepareBuilder();
- result.packedSint64_.Add(value);
- return this;
- }
- public Builder AddRangePackedSint64(scg::IEnumerable<long> values) {
- PrepareBuilder();
- result.packedSint64_.Add(values);
- return this;
- }
- public Builder ClearPackedSint64() {
- PrepareBuilder();
- result.packedSint64_.Clear();
- return this;
- }
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<uint> PackedFixed32List {
- get { return PrepareBuilder().packedFixed32_; }
- }
- public int PackedFixed32Count {
- get { return result.PackedFixed32Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetPackedFixed32(int index) {
- return result.GetPackedFixed32(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetPackedFixed32(int index, uint value) {
- PrepareBuilder();
- result.packedFixed32_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddPackedFixed32(uint value) {
- PrepareBuilder();
- result.packedFixed32_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangePackedFixed32(scg::IEnumerable<uint> values) {
- PrepareBuilder();
- result.packedFixed32_.Add(values);
- return this;
- }
- public Builder ClearPackedFixed32() {
- PrepareBuilder();
- result.packedFixed32_.Clear();
- return this;
- }
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<ulong> PackedFixed64List {
- get { return PrepareBuilder().packedFixed64_; }
- }
- public int PackedFixed64Count {
- get { return result.PackedFixed64Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetPackedFixed64(int index) {
- return result.GetPackedFixed64(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetPackedFixed64(int index, ulong value) {
- PrepareBuilder();
- result.packedFixed64_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddPackedFixed64(ulong value) {
- PrepareBuilder();
- result.packedFixed64_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangePackedFixed64(scg::IEnumerable<ulong> values) {
- PrepareBuilder();
- result.packedFixed64_.Add(values);
- return this;
- }
- public Builder ClearPackedFixed64() {
- PrepareBuilder();
- result.packedFixed64_.Clear();
- return this;
- }
- public pbc::IPopsicleList<int> PackedSfixed32List {
- get { return PrepareBuilder().packedSfixed32_; }
- }
- public int PackedSfixed32Count {
- get { return result.PackedSfixed32Count; }
- }
- public int GetPackedSfixed32(int index) {
- return result.GetPackedSfixed32(index);
- }
- public Builder SetPackedSfixed32(int index, int value) {
- PrepareBuilder();
- result.packedSfixed32_[index] = value;
- return this;
- }
- public Builder AddPackedSfixed32(int value) {
- PrepareBuilder();
- result.packedSfixed32_.Add(value);
- return this;
- }
- public Builder AddRangePackedSfixed32(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.packedSfixed32_.Add(values);
- return this;
- }
- public Builder ClearPackedSfixed32() {
- PrepareBuilder();
- result.packedSfixed32_.Clear();
- return this;
- }
- public pbc::IPopsicleList<long> PackedSfixed64List {
- get { return PrepareBuilder().packedSfixed64_; }
- }
- public int PackedSfixed64Count {
- get { return result.PackedSfixed64Count; }
- }
- public long GetPackedSfixed64(int index) {
- return result.GetPackedSfixed64(index);
- }
- public Builder SetPackedSfixed64(int index, long value) {
- PrepareBuilder();
- result.packedSfixed64_[index] = value;
- return this;
- }
- public Builder AddPackedSfixed64(long value) {
- PrepareBuilder();
- result.packedSfixed64_.Add(value);
- return this;
- }
- public Builder AddRangePackedSfixed64(scg::IEnumerable<long> values) {
- PrepareBuilder();
- result.packedSfixed64_.Add(values);
- return this;
- }
- public Builder ClearPackedSfixed64() {
- PrepareBuilder();
- result.packedSfixed64_.Clear();
- return this;
- }
- public pbc::IPopsicleList<float> PackedFloatList {
- get { return PrepareBuilder().packedFloat_; }
- }
- public int PackedFloatCount {
- get { return result.PackedFloatCount; }
- }
- public float GetPackedFloat(int index) {
- return result.GetPackedFloat(index);
- }
- public Builder SetPackedFloat(int index, float value) {
- PrepareBuilder();
- result.packedFloat_[index] = value;
- return this;
- }
- public Builder AddPackedFloat(float value) {
- PrepareBuilder();
- result.packedFloat_.Add(value);
- return this;
- }
- public Builder AddRangePackedFloat(scg::IEnumerable<float> values) {
- PrepareBuilder();
- result.packedFloat_.Add(values);
- return this;
- }
- public Builder ClearPackedFloat() {
- PrepareBuilder();
- result.packedFloat_.Clear();
- return this;
- }
- public pbc::IPopsicleList<double> PackedDoubleList {
- get { return PrepareBuilder().packedDouble_; }
- }
- public int PackedDoubleCount {
- get { return result.PackedDoubleCount; }
- }
- public double GetPackedDouble(int index) {
- return result.GetPackedDouble(index);
- }
- public Builder SetPackedDouble(int index, double value) {
- PrepareBuilder();
- result.packedDouble_[index] = value;
- return this;
- }
- public Builder AddPackedDouble(double value) {
- PrepareBuilder();
- result.packedDouble_.Add(value);
- return this;
- }
- public Builder AddRangePackedDouble(scg::IEnumerable<double> values) {
- PrepareBuilder();
- result.packedDouble_.Add(values);
- return this;
- }
- public Builder ClearPackedDouble() {
- PrepareBuilder();
- result.packedDouble_.Clear();
- return this;
- }
- public pbc::IPopsicleList<bool> PackedBoolList {
- get { return PrepareBuilder().packedBool_; }
- }
- public int PackedBoolCount {
- get { return result.PackedBoolCount; }
- }
- public bool GetPackedBool(int index) {
- return result.GetPackedBool(index);
- }
- public Builder SetPackedBool(int index, bool value) {
- PrepareBuilder();
- result.packedBool_[index] = value;
- return this;
- }
- public Builder AddPackedBool(bool value) {
- PrepareBuilder();
- result.packedBool_.Add(value);
- return this;
- }
- public Builder AddRangePackedBool(scg::IEnumerable<bool> values) {
- PrepareBuilder();
- result.packedBool_.Add(values);
- return this;
- }
- public Builder ClearPackedBool() {
- PrepareBuilder();
- result.packedBool_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> PackedEnumList {
- get { return PrepareBuilder().packedEnum_; }
- }
- public int PackedEnumCount {
- get { return result.PackedEnumCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetPackedEnum(int index) {
- return result.GetPackedEnum(index);
- }
- public Builder SetPackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
- PrepareBuilder();
- result.packedEnum_[index] = value;
- return this;
- }
- public Builder AddPackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
- PrepareBuilder();
- result.packedEnum_.Add(value);
- return this;
- }
- public Builder AddRangePackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
- PrepareBuilder();
- result.packedEnum_.Add(values);
- return this;
- }
- public Builder ClearPackedEnum() {
- PrepareBuilder();
- result.packedEnum_.Clear();
- return this;
- }
- }
- static TestPackedTypes() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestUnpackedTypes : pb::GeneratedMessage<TestUnpackedTypes, TestUnpackedTypes.Builder> {
- private TestUnpackedTypes() { }
- private static readonly TestUnpackedTypes defaultInstance = new TestUnpackedTypes().MakeReadOnly();
- private static readonly string[] _testUnpackedTypesFieldNames = new string[] { "unpacked_bool", "unpacked_double", "unpacked_enum", "unpacked_fixed32", "unpacked_fixed64", "unpacked_float", "unpacked_int32", "unpacked_int64", "unpacked_sfixed32", "unpacked_sfixed64", "unpacked_sint32", "unpacked_sint64", "unpacked_uint32", "unpacked_uint64" };
- private static readonly uint[] _testUnpackedTypesFieldTags = new uint[] { 816, 809, 824, 773, 777, 805, 720, 728, 789, 793, 752, 760, 736, 744 };
- public static TestUnpackedTypes DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestUnpackedTypes DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestUnpackedTypes ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestUnpackedTypes__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestUnpackedTypes, TestUnpackedTypes.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestUnpackedTypes__FieldAccessorTable; }
- }
- public const int UnpackedInt32FieldNumber = 90;
- private pbc::PopsicleList<int> unpackedInt32_ = new pbc::PopsicleList<int>();
- public scg::IList<int> UnpackedInt32List {
- get { return pbc::Lists.AsReadOnly(unpackedInt32_); }
- }
- public int UnpackedInt32Count {
- get { return unpackedInt32_.Count; }
- }
- public int GetUnpackedInt32(int index) {
- return unpackedInt32_[index];
- }
- public const int UnpackedInt64FieldNumber = 91;
- private pbc::PopsicleList<long> unpackedInt64_ = new pbc::PopsicleList<long>();
- public scg::IList<long> UnpackedInt64List {
- get { return pbc::Lists.AsReadOnly(unpackedInt64_); }
- }
- public int UnpackedInt64Count {
- get { return unpackedInt64_.Count; }
- }
- public long GetUnpackedInt64(int index) {
- return unpackedInt64_[index];
- }
- public const int UnpackedUint32FieldNumber = 92;
- private pbc::PopsicleList<uint> unpackedUint32_ = new pbc::PopsicleList<uint>();
- [global::System.CLSCompliant(false)]
- public scg::IList<uint> UnpackedUint32List {
- get { return pbc::Lists.AsReadOnly(unpackedUint32_); }
- }
- public int UnpackedUint32Count {
- get { return unpackedUint32_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetUnpackedUint32(int index) {
- return unpackedUint32_[index];
- }
- public const int UnpackedUint64FieldNumber = 93;
- private pbc::PopsicleList<ulong> unpackedUint64_ = new pbc::PopsicleList<ulong>();
- [global::System.CLSCompliant(false)]
- public scg::IList<ulong> UnpackedUint64List {
- get { return pbc::Lists.AsReadOnly(unpackedUint64_); }
- }
- public int UnpackedUint64Count {
- get { return unpackedUint64_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetUnpackedUint64(int index) {
- return unpackedUint64_[index];
- }
- public const int UnpackedSint32FieldNumber = 94;
- private pbc::PopsicleList<int> unpackedSint32_ = new pbc::PopsicleList<int>();
- public scg::IList<int> UnpackedSint32List {
- get { return pbc::Lists.AsReadOnly(unpackedSint32_); }
- }
- public int UnpackedSint32Count {
- get { return unpackedSint32_.Count; }
- }
- public int GetUnpackedSint32(int index) {
- return unpackedSint32_[index];
- }
- public const int UnpackedSint64FieldNumber = 95;
- private pbc::PopsicleList<long> unpackedSint64_ = new pbc::PopsicleList<long>();
- public scg::IList<long> UnpackedSint64List {
- get { return pbc::Lists.AsReadOnly(unpackedSint64_); }
- }
- public int UnpackedSint64Count {
- get { return unpackedSint64_.Count; }
- }
- public long GetUnpackedSint64(int index) {
- return unpackedSint64_[index];
- }
- public const int UnpackedFixed32FieldNumber = 96;
- private pbc::PopsicleList<uint> unpackedFixed32_ = new pbc::PopsicleList<uint>();
- [global::System.CLSCompliant(false)]
- public scg::IList<uint> UnpackedFixed32List {
- get { return pbc::Lists.AsReadOnly(unpackedFixed32_); }
- }
- public int UnpackedFixed32Count {
- get { return unpackedFixed32_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetUnpackedFixed32(int index) {
- return unpackedFixed32_[index];
- }
- public const int UnpackedFixed64FieldNumber = 97;
- private pbc::PopsicleList<ulong> unpackedFixed64_ = new pbc::PopsicleList<ulong>();
- [global::System.CLSCompliant(false)]
- public scg::IList<ulong> UnpackedFixed64List {
- get { return pbc::Lists.AsReadOnly(unpackedFixed64_); }
- }
- public int UnpackedFixed64Count {
- get { return unpackedFixed64_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetUnpackedFixed64(int index) {
- return unpackedFixed64_[index];
- }
- public const int UnpackedSfixed32FieldNumber = 98;
- private pbc::PopsicleList<int> unpackedSfixed32_ = new pbc::PopsicleList<int>();
- public scg::IList<int> UnpackedSfixed32List {
- get { return pbc::Lists.AsReadOnly(unpackedSfixed32_); }
- }
- public int UnpackedSfixed32Count {
- get { return unpackedSfixed32_.Count; }
- }
- public int GetUnpackedSfixed32(int index) {
- return unpackedSfixed32_[index];
- }
- public const int UnpackedSfixed64FieldNumber = 99;
- private pbc::PopsicleList<long> unpackedSfixed64_ = new pbc::PopsicleList<long>();
- public scg::IList<long> UnpackedSfixed64List {
- get { return pbc::Lists.AsReadOnly(unpackedSfixed64_); }
- }
- public int UnpackedSfixed64Count {
- get { return unpackedSfixed64_.Count; }
- }
- public long GetUnpackedSfixed64(int index) {
- return unpackedSfixed64_[index];
- }
- public const int UnpackedFloatFieldNumber = 100;
- private pbc::PopsicleList<float> unpackedFloat_ = new pbc::PopsicleList<float>();
- public scg::IList<float> UnpackedFloatList {
- get { return pbc::Lists.AsReadOnly(unpackedFloat_); }
- }
- public int UnpackedFloatCount {
- get { return unpackedFloat_.Count; }
- }
- public float GetUnpackedFloat(int index) {
- return unpackedFloat_[index];
- }
- public const int UnpackedDoubleFieldNumber = 101;
- private pbc::PopsicleList<double> unpackedDouble_ = new pbc::PopsicleList<double>();
- public scg::IList<double> UnpackedDoubleList {
- get { return pbc::Lists.AsReadOnly(unpackedDouble_); }
- }
- public int UnpackedDoubleCount {
- get { return unpackedDouble_.Count; }
- }
- public double GetUnpackedDouble(int index) {
- return unpackedDouble_[index];
- }
- public const int UnpackedBoolFieldNumber = 102;
- private pbc::PopsicleList<bool> unpackedBool_ = new pbc::PopsicleList<bool>();
- public scg::IList<bool> UnpackedBoolList {
- get { return pbc::Lists.AsReadOnly(unpackedBool_); }
- }
- public int UnpackedBoolCount {
- get { return unpackedBool_.Count; }
- }
- public bool GetUnpackedBool(int index) {
- return unpackedBool_[index];
- }
- public const int UnpackedEnumFieldNumber = 103;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> unpackedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> UnpackedEnumList {
- get { return pbc::Lists.AsReadOnly(unpackedEnum_); }
- }
- public int UnpackedEnumCount {
- get { return unpackedEnum_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetUnpackedEnum(int index) {
- return unpackedEnum_[index];
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testUnpackedTypesFieldNames;
- if (unpackedInt32_.Count > 0) {
- output.WriteInt32Array(90, field_names[6], unpackedInt32_);
- }
- if (unpackedInt64_.Count > 0) {
- output.WriteInt64Array(91, field_names[7], unpackedInt64_);
- }
- if (unpackedUint32_.Count > 0) {
- output.WriteUInt32Array(92, field_names[12], unpackedUint32_);
- }
- if (unpackedUint64_.Count > 0) {
- output.WriteUInt64Array(93, field_names[13], unpackedUint64_);
- }
- if (unpackedSint32_.Count > 0) {
- output.WriteSInt32Array(94, field_names[10], unpackedSint32_);
- }
- if (unpackedSint64_.Count > 0) {
- output.WriteSInt64Array(95, field_names[11], unpackedSint64_);
- }
- if (unpackedFixed32_.Count > 0) {
- output.WriteFixed32Array(96, field_names[3], unpackedFixed32_);
- }
- if (unpackedFixed64_.Count > 0) {
- output.WriteFixed64Array(97, field_names[4], unpackedFixed64_);
- }
- if (unpackedSfixed32_.Count > 0) {
- output.WriteSFixed32Array(98, field_names[8], unpackedSfixed32_);
- }
- if (unpackedSfixed64_.Count > 0) {
- output.WriteSFixed64Array(99, field_names[9], unpackedSfixed64_);
- }
- if (unpackedFloat_.Count > 0) {
- output.WriteFloatArray(100, field_names[5], unpackedFloat_);
- }
- if (unpackedDouble_.Count > 0) {
- output.WriteDoubleArray(101, field_names[1], unpackedDouble_);
- }
- if (unpackedBool_.Count > 0) {
- output.WriteBoolArray(102, field_names[0], unpackedBool_);
- }
- if (unpackedEnum_.Count > 0) {
- output.WriteEnumArray(103, field_names[2], unpackedEnum_);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- {
- int dataSize = 0;
- foreach (int element in UnpackedInt32List) {
- dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * unpackedInt32_.Count;
- }
- {
- int dataSize = 0;
- foreach (long element in UnpackedInt64List) {
- dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * unpackedInt64_.Count;
- }
- {
- int dataSize = 0;
- foreach (uint element in UnpackedUint32List) {
- dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * unpackedUint32_.Count;
- }
- {
- int dataSize = 0;
- foreach (ulong element in UnpackedUint64List) {
- dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * unpackedUint64_.Count;
- }
- {
- int dataSize = 0;
- foreach (int element in UnpackedSint32List) {
- dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * unpackedSint32_.Count;
- }
- {
- int dataSize = 0;
- foreach (long element in UnpackedSint64List) {
- dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * unpackedSint64_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 4 * unpackedFixed32_.Count;
- size += dataSize;
- size += 2 * unpackedFixed32_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 8 * unpackedFixed64_.Count;
- size += dataSize;
- size += 2 * unpackedFixed64_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 4 * unpackedSfixed32_.Count;
- size += dataSize;
- size += 2 * unpackedSfixed32_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 8 * unpackedSfixed64_.Count;
- size += dataSize;
- size += 2 * unpackedSfixed64_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 4 * unpackedFloat_.Count;
- size += dataSize;
- size += 2 * unpackedFloat_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 8 * unpackedDouble_.Count;
- size += dataSize;
- size += 2 * unpackedDouble_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 1 * unpackedBool_.Count;
- size += dataSize;
- size += 2 * unpackedBool_.Count;
- }
- {
- int dataSize = 0;
- if (unpackedEnum_.Count > 0) {
- foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in unpackedEnum_) {
- dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
- }
- size += dataSize;
- size += 2 * unpackedEnum_.Count;
- }
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestUnpackedTypes ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestUnpackedTypes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestUnpackedTypes ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestUnpackedTypes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestUnpackedTypes ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestUnpackedTypes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestUnpackedTypes ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestUnpackedTypes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestUnpackedTypes ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestUnpackedTypes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestUnpackedTypes MakeReadOnly() {
- unpackedInt32_.MakeReadOnly();
- unpackedInt64_.MakeReadOnly();
- unpackedUint32_.MakeReadOnly();
- unpackedUint64_.MakeReadOnly();
- unpackedSint32_.MakeReadOnly();
- unpackedSint64_.MakeReadOnly();
- unpackedFixed32_.MakeReadOnly();
- unpackedFixed64_.MakeReadOnly();
- unpackedSfixed32_.MakeReadOnly();
- unpackedSfixed64_.MakeReadOnly();
- unpackedFloat_.MakeReadOnly();
- unpackedDouble_.MakeReadOnly();
- unpackedBool_.MakeReadOnly();
- unpackedEnum_.MakeReadOnly();
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestUnpackedTypes prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestUnpackedTypes, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestUnpackedTypes cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestUnpackedTypes result;
- private TestUnpackedTypes PrepareBuilder() {
- if (resultIsReadOnly) {
- TestUnpackedTypes original = result;
- result = new TestUnpackedTypes();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestUnpackedTypes MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.Descriptor; }
- }
- public override TestUnpackedTypes DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.DefaultInstance; }
- }
- public override TestUnpackedTypes BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestUnpackedTypes) {
- return MergeFrom((TestUnpackedTypes) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestUnpackedTypes other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypes.DefaultInstance) return this;
- PrepareBuilder();
- if (other.unpackedInt32_.Count != 0) {
- result.unpackedInt32_.Add(other.unpackedInt32_);
- }
- if (other.unpackedInt64_.Count != 0) {
- result.unpackedInt64_.Add(other.unpackedInt64_);
- }
- if (other.unpackedUint32_.Count != 0) {
- result.unpackedUint32_.Add(other.unpackedUint32_);
- }
- if (other.unpackedUint64_.Count != 0) {
- result.unpackedUint64_.Add(other.unpackedUint64_);
- }
- if (other.unpackedSint32_.Count != 0) {
- result.unpackedSint32_.Add(other.unpackedSint32_);
- }
- if (other.unpackedSint64_.Count != 0) {
- result.unpackedSint64_.Add(other.unpackedSint64_);
- }
- if (other.unpackedFixed32_.Count != 0) {
- result.unpackedFixed32_.Add(other.unpackedFixed32_);
- }
- if (other.unpackedFixed64_.Count != 0) {
- result.unpackedFixed64_.Add(other.unpackedFixed64_);
- }
- if (other.unpackedSfixed32_.Count != 0) {
- result.unpackedSfixed32_.Add(other.unpackedSfixed32_);
- }
- if (other.unpackedSfixed64_.Count != 0) {
- result.unpackedSfixed64_.Add(other.unpackedSfixed64_);
- }
- if (other.unpackedFloat_.Count != 0) {
- result.unpackedFloat_.Add(other.unpackedFloat_);
- }
- if (other.unpackedDouble_.Count != 0) {
- result.unpackedDouble_.Add(other.unpackedDouble_);
- }
- if (other.unpackedBool_.Count != 0) {
- result.unpackedBool_.Add(other.unpackedBool_);
- }
- if (other.unpackedEnum_.Count != 0) {
- result.unpackedEnum_.Add(other.unpackedEnum_);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testUnpackedTypesFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testUnpackedTypesFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 722:
- case 720: {
- input.ReadInt32Array(tag, field_name, result.unpackedInt32_);
- break;
- }
- case 730:
- case 728: {
- input.ReadInt64Array(tag, field_name, result.unpackedInt64_);
- break;
- }
- case 738:
- case 736: {
- input.ReadUInt32Array(tag, field_name, result.unpackedUint32_);
- break;
- }
- case 746:
- case 744: {
- input.ReadUInt64Array(tag, field_name, result.unpackedUint64_);
- break;
- }
- case 754:
- case 752: {
- input.ReadSInt32Array(tag, field_name, result.unpackedSint32_);
- break;
- }
- case 762:
- case 760: {
- input.ReadSInt64Array(tag, field_name, result.unpackedSint64_);
- break;
- }
- case 770:
- case 773: {
- input.ReadFixed32Array(tag, field_name, result.unpackedFixed32_);
- break;
- }
- case 778:
- case 777: {
- input.ReadFixed64Array(tag, field_name, result.unpackedFixed64_);
- break;
- }
- case 786:
- case 789: {
- input.ReadSFixed32Array(tag, field_name, result.unpackedSfixed32_);
- break;
- }
- case 794:
- case 793: {
- input.ReadSFixed64Array(tag, field_name, result.unpackedSfixed64_);
- break;
- }
- case 802:
- case 805: {
- input.ReadFloatArray(tag, field_name, result.unpackedFloat_);
- break;
- }
- case 810:
- case 809: {
- input.ReadDoubleArray(tag, field_name, result.unpackedDouble_);
- break;
- }
- case 818:
- case 816: {
- input.ReadBoolArray(tag, field_name, result.unpackedBool_);
- break;
- }
- case 826:
- case 824: {
- scg::ICollection<object> unknownItems;
- input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>(tag, field_name, result.unpackedEnum_, out unknownItems);
- if (unknownItems != null) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- foreach (object rawValue in unknownItems)
- if (rawValue is int)
- unknownFields.MergeVarintField(103, (ulong)(int)rawValue);
- }
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public pbc::IPopsicleList<int> UnpackedInt32List {
- get { return PrepareBuilder().unpackedInt32_; }
- }
- public int UnpackedInt32Count {
- get { return result.UnpackedInt32Count; }
- }
- public int GetUnpackedInt32(int index) {
- return result.GetUnpackedInt32(index);
- }
- public Builder SetUnpackedInt32(int index, int value) {
- PrepareBuilder();
- result.unpackedInt32_[index] = value;
- return this;
- }
- public Builder AddUnpackedInt32(int value) {
- PrepareBuilder();
- result.unpackedInt32_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedInt32(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.unpackedInt32_.Add(values);
- return this;
- }
- public Builder ClearUnpackedInt32() {
- PrepareBuilder();
- result.unpackedInt32_.Clear();
- return this;
- }
- public pbc::IPopsicleList<long> UnpackedInt64List {
- get { return PrepareBuilder().unpackedInt64_; }
- }
- public int UnpackedInt64Count {
- get { return result.UnpackedInt64Count; }
- }
- public long GetUnpackedInt64(int index) {
- return result.GetUnpackedInt64(index);
- }
- public Builder SetUnpackedInt64(int index, long value) {
- PrepareBuilder();
- result.unpackedInt64_[index] = value;
- return this;
- }
- public Builder AddUnpackedInt64(long value) {
- PrepareBuilder();
- result.unpackedInt64_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedInt64(scg::IEnumerable<long> values) {
- PrepareBuilder();
- result.unpackedInt64_.Add(values);
- return this;
- }
- public Builder ClearUnpackedInt64() {
- PrepareBuilder();
- result.unpackedInt64_.Clear();
- return this;
- }
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<uint> UnpackedUint32List {
- get { return PrepareBuilder().unpackedUint32_; }
- }
- public int UnpackedUint32Count {
- get { return result.UnpackedUint32Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetUnpackedUint32(int index) {
- return result.GetUnpackedUint32(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetUnpackedUint32(int index, uint value) {
- PrepareBuilder();
- result.unpackedUint32_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddUnpackedUint32(uint value) {
- PrepareBuilder();
- result.unpackedUint32_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangeUnpackedUint32(scg::IEnumerable<uint> values) {
- PrepareBuilder();
- result.unpackedUint32_.Add(values);
- return this;
- }
- public Builder ClearUnpackedUint32() {
- PrepareBuilder();
- result.unpackedUint32_.Clear();
- return this;
- }
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<ulong> UnpackedUint64List {
- get { return PrepareBuilder().unpackedUint64_; }
- }
- public int UnpackedUint64Count {
- get { return result.UnpackedUint64Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetUnpackedUint64(int index) {
- return result.GetUnpackedUint64(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetUnpackedUint64(int index, ulong value) {
- PrepareBuilder();
- result.unpackedUint64_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddUnpackedUint64(ulong value) {
- PrepareBuilder();
- result.unpackedUint64_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangeUnpackedUint64(scg::IEnumerable<ulong> values) {
- PrepareBuilder();
- result.unpackedUint64_.Add(values);
- return this;
- }
- public Builder ClearUnpackedUint64() {
- PrepareBuilder();
- result.unpackedUint64_.Clear();
- return this;
- }
- public pbc::IPopsicleList<int> UnpackedSint32List {
- get { return PrepareBuilder().unpackedSint32_; }
- }
- public int UnpackedSint32Count {
- get { return result.UnpackedSint32Count; }
- }
- public int GetUnpackedSint32(int index) {
- return result.GetUnpackedSint32(index);
- }
- public Builder SetUnpackedSint32(int index, int value) {
- PrepareBuilder();
- result.unpackedSint32_[index] = value;
- return this;
- }
- public Builder AddUnpackedSint32(int value) {
- PrepareBuilder();
- result.unpackedSint32_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedSint32(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.unpackedSint32_.Add(values);
- return this;
- }
- public Builder ClearUnpackedSint32() {
- PrepareBuilder();
- result.unpackedSint32_.Clear();
- return this;
- }
- public pbc::IPopsicleList<long> UnpackedSint64List {
- get { return PrepareBuilder().unpackedSint64_; }
- }
- public int UnpackedSint64Count {
- get { return result.UnpackedSint64Count; }
- }
- public long GetUnpackedSint64(int index) {
- return result.GetUnpackedSint64(index);
- }
- public Builder SetUnpackedSint64(int index, long value) {
- PrepareBuilder();
- result.unpackedSint64_[index] = value;
- return this;
- }
- public Builder AddUnpackedSint64(long value) {
- PrepareBuilder();
- result.unpackedSint64_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedSint64(scg::IEnumerable<long> values) {
- PrepareBuilder();
- result.unpackedSint64_.Add(values);
- return this;
- }
- public Builder ClearUnpackedSint64() {
- PrepareBuilder();
- result.unpackedSint64_.Clear();
- return this;
- }
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<uint> UnpackedFixed32List {
- get { return PrepareBuilder().unpackedFixed32_; }
- }
- public int UnpackedFixed32Count {
- get { return result.UnpackedFixed32Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetUnpackedFixed32(int index) {
- return result.GetUnpackedFixed32(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetUnpackedFixed32(int index, uint value) {
- PrepareBuilder();
- result.unpackedFixed32_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddUnpackedFixed32(uint value) {
- PrepareBuilder();
- result.unpackedFixed32_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangeUnpackedFixed32(scg::IEnumerable<uint> values) {
- PrepareBuilder();
- result.unpackedFixed32_.Add(values);
- return this;
- }
- public Builder ClearUnpackedFixed32() {
- PrepareBuilder();
- result.unpackedFixed32_.Clear();
- return this;
- }
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<ulong> UnpackedFixed64List {
- get { return PrepareBuilder().unpackedFixed64_; }
- }
- public int UnpackedFixed64Count {
- get { return result.UnpackedFixed64Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetUnpackedFixed64(int index) {
- return result.GetUnpackedFixed64(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetUnpackedFixed64(int index, ulong value) {
- PrepareBuilder();
- result.unpackedFixed64_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddUnpackedFixed64(ulong value) {
- PrepareBuilder();
- result.unpackedFixed64_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangeUnpackedFixed64(scg::IEnumerable<ulong> values) {
- PrepareBuilder();
- result.unpackedFixed64_.Add(values);
- return this;
- }
- public Builder ClearUnpackedFixed64() {
- PrepareBuilder();
- result.unpackedFixed64_.Clear();
- return this;
- }
- public pbc::IPopsicleList<int> UnpackedSfixed32List {
- get { return PrepareBuilder().unpackedSfixed32_; }
- }
- public int UnpackedSfixed32Count {
- get { return result.UnpackedSfixed32Count; }
- }
- public int GetUnpackedSfixed32(int index) {
- return result.GetUnpackedSfixed32(index);
- }
- public Builder SetUnpackedSfixed32(int index, int value) {
- PrepareBuilder();
- result.unpackedSfixed32_[index] = value;
- return this;
- }
- public Builder AddUnpackedSfixed32(int value) {
- PrepareBuilder();
- result.unpackedSfixed32_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedSfixed32(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.unpackedSfixed32_.Add(values);
- return this;
- }
- public Builder ClearUnpackedSfixed32() {
- PrepareBuilder();
- result.unpackedSfixed32_.Clear();
- return this;
- }
- public pbc::IPopsicleList<long> UnpackedSfixed64List {
- get { return PrepareBuilder().unpackedSfixed64_; }
- }
- public int UnpackedSfixed64Count {
- get { return result.UnpackedSfixed64Count; }
- }
- public long GetUnpackedSfixed64(int index) {
- return result.GetUnpackedSfixed64(index);
- }
- public Builder SetUnpackedSfixed64(int index, long value) {
- PrepareBuilder();
- result.unpackedSfixed64_[index] = value;
- return this;
- }
- public Builder AddUnpackedSfixed64(long value) {
- PrepareBuilder();
- result.unpackedSfixed64_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedSfixed64(scg::IEnumerable<long> values) {
- PrepareBuilder();
- result.unpackedSfixed64_.Add(values);
- return this;
- }
- public Builder ClearUnpackedSfixed64() {
- PrepareBuilder();
- result.unpackedSfixed64_.Clear();
- return this;
- }
- public pbc::IPopsicleList<float> UnpackedFloatList {
- get { return PrepareBuilder().unpackedFloat_; }
- }
- public int UnpackedFloatCount {
- get { return result.UnpackedFloatCount; }
- }
- public float GetUnpackedFloat(int index) {
- return result.GetUnpackedFloat(index);
- }
- public Builder SetUnpackedFloat(int index, float value) {
- PrepareBuilder();
- result.unpackedFloat_[index] = value;
- return this;
- }
- public Builder AddUnpackedFloat(float value) {
- PrepareBuilder();
- result.unpackedFloat_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedFloat(scg::IEnumerable<float> values) {
- PrepareBuilder();
- result.unpackedFloat_.Add(values);
- return this;
- }
- public Builder ClearUnpackedFloat() {
- PrepareBuilder();
- result.unpackedFloat_.Clear();
- return this;
- }
- public pbc::IPopsicleList<double> UnpackedDoubleList {
- get { return PrepareBuilder().unpackedDouble_; }
- }
- public int UnpackedDoubleCount {
- get { return result.UnpackedDoubleCount; }
- }
- public double GetUnpackedDouble(int index) {
- return result.GetUnpackedDouble(index);
- }
- public Builder SetUnpackedDouble(int index, double value) {
- PrepareBuilder();
- result.unpackedDouble_[index] = value;
- return this;
- }
- public Builder AddUnpackedDouble(double value) {
- PrepareBuilder();
- result.unpackedDouble_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedDouble(scg::IEnumerable<double> values) {
- PrepareBuilder();
- result.unpackedDouble_.Add(values);
- return this;
- }
- public Builder ClearUnpackedDouble() {
- PrepareBuilder();
- result.unpackedDouble_.Clear();
- return this;
- }
- public pbc::IPopsicleList<bool> UnpackedBoolList {
- get { return PrepareBuilder().unpackedBool_; }
- }
- public int UnpackedBoolCount {
- get { return result.UnpackedBoolCount; }
- }
- public bool GetUnpackedBool(int index) {
- return result.GetUnpackedBool(index);
- }
- public Builder SetUnpackedBool(int index, bool value) {
- PrepareBuilder();
- result.unpackedBool_[index] = value;
- return this;
- }
- public Builder AddUnpackedBool(bool value) {
- PrepareBuilder();
- result.unpackedBool_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedBool(scg::IEnumerable<bool> values) {
- PrepareBuilder();
- result.unpackedBool_.Add(values);
- return this;
- }
- public Builder ClearUnpackedBool() {
- PrepareBuilder();
- result.unpackedBool_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> UnpackedEnumList {
- get { return PrepareBuilder().unpackedEnum_; }
- }
- public int UnpackedEnumCount {
- get { return result.UnpackedEnumCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetUnpackedEnum(int index) {
- return result.GetUnpackedEnum(index);
- }
- public Builder SetUnpackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
- PrepareBuilder();
- result.unpackedEnum_[index] = value;
- return this;
- }
- public Builder AddUnpackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
- PrepareBuilder();
- result.unpackedEnum_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
- PrepareBuilder();
- result.unpackedEnum_.Add(values);
- return this;
- }
- public Builder ClearUnpackedEnum() {
- PrepareBuilder();
- result.unpackedEnum_.Clear();
- return this;
- }
- }
- static TestUnpackedTypes() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestPackedExtensions : pb::ExtendableMessage<TestPackedExtensions, TestPackedExtensions.Builder> {
- private TestPackedExtensions() { }
- private static readonly TestPackedExtensions defaultInstance = new TestPackedExtensions().MakeReadOnly();
- private static readonly string[] _testPackedExtensionsFieldNames = new string[] { };
- private static readonly uint[] _testPackedExtensionsFieldTags = new uint[] { };
- public static TestPackedExtensions DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestPackedExtensions DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestPackedExtensions ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestPackedExtensions__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestPackedExtensions, TestPackedExtensions.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestPackedExtensions__FieldAccessorTable; }
- }
- public override bool IsInitialized {
- get {
- if (!ExtensionsAreInitialized) return false;
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testPackedExtensionsFieldNames;
- pb::ExtendableMessage<TestPackedExtensions, TestPackedExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
- extensionWriter.WriteUntil(536870912, output);
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- size += ExtensionsSerializedSize;
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestPackedExtensions ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestPackedExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestPackedExtensions ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestPackedExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestPackedExtensions ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestPackedExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestPackedExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestPackedExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestPackedExtensions ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestPackedExtensions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestPackedExtensions MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestPackedExtensions prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::ExtendableBuilder<TestPackedExtensions, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestPackedExtensions cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestPackedExtensions result;
- private TestPackedExtensions PrepareBuilder() {
- if (resultIsReadOnly) {
- TestPackedExtensions original = result;
- result = new TestPackedExtensions();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestPackedExtensions MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.Descriptor; }
- }
- public override TestPackedExtensions DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.DefaultInstance; }
- }
- public override TestPackedExtensions BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestPackedExtensions) {
- return MergeFrom((TestPackedExtensions) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestPackedExtensions other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedExtensions.DefaultInstance) return this;
- PrepareBuilder();
- this.MergeExtensionFields(other);
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testPackedExtensionsFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testPackedExtensionsFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- }
- static TestPackedExtensions() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestUnpackedExtensions : pb::ExtendableMessage<TestUnpackedExtensions, TestUnpackedExtensions.Builder> {
- private TestUnpackedExtensions() { }
- private static readonly TestUnpackedExtensions defaultInstance = new TestUnpackedExtensions().MakeReadOnly();
- private static readonly string[] _testUnpackedExtensionsFieldNames = new string[] { };
- private static readonly uint[] _testUnpackedExtensionsFieldTags = new uint[] { };
- public static TestUnpackedExtensions DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestUnpackedExtensions DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestUnpackedExtensions ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestUnpackedExtensions__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestUnpackedExtensions, TestUnpackedExtensions.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestUnpackedExtensions__FieldAccessorTable; }
- }
- public override bool IsInitialized {
- get {
- if (!ExtensionsAreInitialized) return false;
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testUnpackedExtensionsFieldNames;
- pb::ExtendableMessage<TestUnpackedExtensions, TestUnpackedExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
- extensionWriter.WriteUntil(536870912, output);
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- size += ExtensionsSerializedSize;
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestUnpackedExtensions ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestUnpackedExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestUnpackedExtensions ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestUnpackedExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestUnpackedExtensions ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestUnpackedExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestUnpackedExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestUnpackedExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestUnpackedExtensions ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestUnpackedExtensions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestUnpackedExtensions MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestUnpackedExtensions prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::ExtendableBuilder<TestUnpackedExtensions, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestUnpackedExtensions cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestUnpackedExtensions result;
- private TestUnpackedExtensions PrepareBuilder() {
- if (resultIsReadOnly) {
- TestUnpackedExtensions original = result;
- result = new TestUnpackedExtensions();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestUnpackedExtensions MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.Descriptor; }
- }
- public override TestUnpackedExtensions DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.DefaultInstance; }
- }
- public override TestUnpackedExtensions BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestUnpackedExtensions) {
- return MergeFrom((TestUnpackedExtensions) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestUnpackedExtensions other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.DefaultInstance) return this;
- PrepareBuilder();
- this.MergeExtensionFields(other);
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testUnpackedExtensionsFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testUnpackedExtensionsFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- }
- static TestUnpackedExtensions() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestDynamicExtensions : pb::GeneratedMessage<TestDynamicExtensions, TestDynamicExtensions.Builder> {
- private TestDynamicExtensions() { }
- private static readonly TestDynamicExtensions defaultInstance = new TestDynamicExtensions().MakeReadOnly();
- private static readonly string[] _testDynamicExtensionsFieldNames = new string[] { "dynamic_enum_extension", "dynamic_message_extension", "enum_extension", "message_extension", "packed_extension", "repeated_extension", "scalar_extension" };
- private static readonly uint[] _testDynamicExtensionsFieldTags = new uint[] { 16016, 16034, 16008, 16026, 16050, 16042, 16005 };
- public static TestDynamicExtensions DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestDynamicExtensions DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestDynamicExtensions ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDynamicExtensions__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestDynamicExtensions, TestDynamicExtensions.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDynamicExtensions__FieldAccessorTable; }
- }
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- public enum DynamicEnumType {
- DYNAMIC_FOO = 2200,
- DYNAMIC_BAR = 2201,
- DYNAMIC_BAZ = 2202,
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class DynamicMessageType : pb::GeneratedMessage<DynamicMessageType, DynamicMessageType.Builder> {
- private DynamicMessageType() { }
- private static readonly DynamicMessageType defaultInstance = new DynamicMessageType().MakeReadOnly();
- private static readonly string[] _dynamicMessageTypeFieldNames = new string[] { "dynamic_field" };
- private static readonly uint[] _dynamicMessageTypeFieldTags = new uint[] { 16800 };
- public static DynamicMessageType DefaultInstance {
- get { return defaultInstance; }
- }
- public override DynamicMessageType DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override DynamicMessageType ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<DynamicMessageType, DynamicMessageType.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType__FieldAccessorTable; }
- }
- public const int DynamicFieldFieldNumber = 2100;
- private bool hasDynamicField;
- private int dynamicField_;
- public bool HasDynamicField {
- get { return hasDynamicField; }
- }
- public int DynamicField {
- get { return dynamicField_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _dynamicMessageTypeFieldNames;
- if (hasDynamicField) {
- output.WriteInt32(2100, field_names[0], DynamicField);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasDynamicField) {
- size += pb::CodedOutputStream.ComputeInt32Size(2100, DynamicField);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static DynamicMessageType ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static DynamicMessageType ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static DynamicMessageType ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static DynamicMessageType ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static DynamicMessageType ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static DynamicMessageType ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static DynamicMessageType ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static DynamicMessageType ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static DynamicMessageType ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static DynamicMessageType ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private DynamicMessageType MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(DynamicMessageType prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<DynamicMessageType, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(DynamicMessageType cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private DynamicMessageType result;
- private DynamicMessageType PrepareBuilder() {
- if (resultIsReadOnly) {
- DynamicMessageType original = result;
- result = new DynamicMessageType();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override DynamicMessageType MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Descriptor; }
- }
- public override DynamicMessageType DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance; }
- }
- public override DynamicMessageType BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is DynamicMessageType) {
- return MergeFrom((DynamicMessageType) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(DynamicMessageType other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasDynamicField) {
- DynamicField = other.DynamicField;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_dynamicMessageTypeFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _dynamicMessageTypeFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 16800: {
- result.hasDynamicField = input.ReadInt32(ref result.dynamicField_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasDynamicField {
- get { return result.hasDynamicField; }
- }
- public int DynamicField {
- get { return result.DynamicField; }
- set { SetDynamicField(value); }
- }
- public Builder SetDynamicField(int value) {
- PrepareBuilder();
- result.hasDynamicField = true;
- result.dynamicField_ = value;
- return this;
- }
- public Builder ClearDynamicField() {
- PrepareBuilder();
- result.hasDynamicField = false;
- result.dynamicField_ = 0;
- return this;
- }
- }
- static DynamicMessageType() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- }
- #endregion
- public const int ScalarExtensionFieldNumber = 2000;
- private bool hasScalarExtension;
- private uint scalarExtension_;
- public bool HasScalarExtension {
- get { return hasScalarExtension; }
- }
- [global::System.CLSCompliant(false)]
- public uint ScalarExtension {
- get { return scalarExtension_; }
- }
- public const int EnumExtensionFieldNumber = 2001;
- private bool hasEnumExtension;
- private global::Google.ProtocolBuffers.TestProtos.ForeignEnum enumExtension_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
- public bool HasEnumExtension {
- get { return hasEnumExtension; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumExtension {
- get { return enumExtension_; }
- }
- public const int DynamicEnumExtensionFieldNumber = 2002;
- private bool hasDynamicEnumExtension;
- private global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType dynamicEnumExtension_ = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType.DYNAMIC_FOO;
- public bool HasDynamicEnumExtension {
- get { return hasDynamicEnumExtension; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtension {
- get { return dynamicEnumExtension_; }
- }
- public const int MessageExtensionFieldNumber = 2003;
- private bool hasMessageExtension;
- private global::Google.ProtocolBuffers.TestProtos.ForeignMessage messageExtension_;
- public bool HasMessageExtension {
- get { return hasMessageExtension; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageExtension {
- get { return messageExtension_ ?? global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; }
- }
- public const int DynamicMessageExtensionFieldNumber = 2004;
- private bool hasDynamicMessageExtension;
- private global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType dynamicMessageExtension_;
- public bool HasDynamicMessageExtension {
- get { return hasDynamicMessageExtension; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType DynamicMessageExtension {
- get { return dynamicMessageExtension_ ?? global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance; }
- }
- public const int RepeatedExtensionFieldNumber = 2005;
- private pbc::PopsicleList<string> repeatedExtension_ = new pbc::PopsicleList<string>();
- public scg::IList<string> RepeatedExtensionList {
- get { return pbc::Lists.AsReadOnly(repeatedExtension_); }
- }
- public int RepeatedExtensionCount {
- get { return repeatedExtension_.Count; }
- }
- public string GetRepeatedExtension(int index) {
- return repeatedExtension_[index];
- }
- public const int PackedExtensionFieldNumber = 2006;
- private int packedExtensionMemoizedSerializedSize;
- private pbc::PopsicleList<int> packedExtension_ = new pbc::PopsicleList<int>();
- public scg::IList<int> PackedExtensionList {
- get { return pbc::Lists.AsReadOnly(packedExtension_); }
- }
- public int PackedExtensionCount {
- get { return packedExtension_.Count; }
- }
- public int GetPackedExtension(int index) {
- return packedExtension_[index];
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testDynamicExtensionsFieldNames;
- if (hasScalarExtension) {
- output.WriteFixed32(2000, field_names[6], ScalarExtension);
- }
- if (hasEnumExtension) {
- output.WriteEnum(2001, field_names[2], (int) EnumExtension, EnumExtension);
- }
- if (hasDynamicEnumExtension) {
- output.WriteEnum(2002, field_names[0], (int) DynamicEnumExtension, DynamicEnumExtension);
- }
- if (hasMessageExtension) {
- output.WriteMessage(2003, field_names[3], MessageExtension);
- }
- if (hasDynamicMessageExtension) {
- output.WriteMessage(2004, field_names[1], DynamicMessageExtension);
- }
- if (repeatedExtension_.Count > 0) {
- output.WriteStringArray(2005, field_names[5], repeatedExtension_);
- }
- if (packedExtension_.Count > 0) {
- output.WritePackedSInt32Array(2006, field_names[4], packedExtensionMemoizedSerializedSize, packedExtension_);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasScalarExtension) {
- size += pb::CodedOutputStream.ComputeFixed32Size(2000, ScalarExtension);
- }
- if (hasEnumExtension) {
- size += pb::CodedOutputStream.ComputeEnumSize(2001, (int) EnumExtension);
- }
- if (hasDynamicEnumExtension) {
- size += pb::CodedOutputStream.ComputeEnumSize(2002, (int) DynamicEnumExtension);
- }
- if (hasMessageExtension) {
- size += pb::CodedOutputStream.ComputeMessageSize(2003, MessageExtension);
- }
- if (hasDynamicMessageExtension) {
- size += pb::CodedOutputStream.ComputeMessageSize(2004, DynamicMessageExtension);
- }
- {
- int dataSize = 0;
- foreach (string element in RepeatedExtensionList) {
- dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
- }
- size += dataSize;
- size += 2 * repeatedExtension_.Count;
- }
- {
- int dataSize = 0;
- foreach (int element in PackedExtensionList) {
- dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
- }
- size += dataSize;
- if (packedExtension_.Count != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- }
- packedExtensionMemoizedSerializedSize = dataSize;
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestDynamicExtensions ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestDynamicExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestDynamicExtensions ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestDynamicExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestDynamicExtensions ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestDynamicExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestDynamicExtensions ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestDynamicExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestDynamicExtensions ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestDynamicExtensions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestDynamicExtensions MakeReadOnly() {
- repeatedExtension_.MakeReadOnly();
- packedExtension_.MakeReadOnly();
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestDynamicExtensions prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestDynamicExtensions, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestDynamicExtensions cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestDynamicExtensions result;
- private TestDynamicExtensions PrepareBuilder() {
- if (resultIsReadOnly) {
- TestDynamicExtensions original = result;
- result = new TestDynamicExtensions();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestDynamicExtensions MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Descriptor; }
- }
- public override TestDynamicExtensions DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.DefaultInstance; }
- }
- public override TestDynamicExtensions BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestDynamicExtensions) {
- return MergeFrom((TestDynamicExtensions) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestDynamicExtensions other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasScalarExtension) {
- ScalarExtension = other.ScalarExtension;
- }
- if (other.HasEnumExtension) {
- EnumExtension = other.EnumExtension;
- }
- if (other.HasDynamicEnumExtension) {
- DynamicEnumExtension = other.DynamicEnumExtension;
- }
- if (other.HasMessageExtension) {
- MergeMessageExtension(other.MessageExtension);
- }
- if (other.HasDynamicMessageExtension) {
- MergeDynamicMessageExtension(other.DynamicMessageExtension);
- }
- if (other.repeatedExtension_.Count != 0) {
- result.repeatedExtension_.Add(other.repeatedExtension_);
- }
- if (other.packedExtension_.Count != 0) {
- result.packedExtension_.Add(other.packedExtension_);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testDynamicExtensionsFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testDynamicExtensionsFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 16005: {
- result.hasScalarExtension = input.ReadFixed32(ref result.scalarExtension_);
- break;
- }
- case 16008: {
- object unknown;
- if(input.ReadEnum(ref result.enumExtension_, out unknown)) {
- result.hasEnumExtension = true;
- } else if(unknown is int) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- unknownFields.MergeVarintField(2001, (ulong)(int)unknown);
- }
- break;
- }
- case 16016: {
- object unknown;
- if(input.ReadEnum(ref result.dynamicEnumExtension_, out unknown)) {
- result.hasDynamicEnumExtension = true;
- } else if(unknown is int) {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- unknownFields.MergeVarintField(2002, (ulong)(int)unknown);
- }
- break;
- }
- case 16026: {
- global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
- if (result.hasMessageExtension) {
- subBuilder.MergeFrom(MessageExtension);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- MessageExtension = subBuilder.BuildPartial();
- break;
- }
- case 16034: {
- global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.CreateBuilder();
- if (result.hasDynamicMessageExtension) {
- subBuilder.MergeFrom(DynamicMessageExtension);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- DynamicMessageExtension = subBuilder.BuildPartial();
- break;
- }
- case 16042: {
- input.ReadStringArray(tag, field_name, result.repeatedExtension_);
- break;
- }
- case 16050:
- case 16048: {
- input.ReadSInt32Array(tag, field_name, result.packedExtension_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasScalarExtension {
- get { return result.hasScalarExtension; }
- }
- [global::System.CLSCompliant(false)]
- public uint ScalarExtension {
- get { return result.ScalarExtension; }
- set { SetScalarExtension(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetScalarExtension(uint value) {
- PrepareBuilder();
- result.hasScalarExtension = true;
- result.scalarExtension_ = value;
- return this;
- }
- public Builder ClearScalarExtension() {
- PrepareBuilder();
- result.hasScalarExtension = false;
- result.scalarExtension_ = 0;
- return this;
- }
- public bool HasEnumExtension {
- get { return result.hasEnumExtension; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumExtension {
- get { return result.EnumExtension; }
- set { SetEnumExtension(value); }
- }
- public Builder SetEnumExtension(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
- PrepareBuilder();
- result.hasEnumExtension = true;
- result.enumExtension_ = value;
- return this;
- }
- public Builder ClearEnumExtension() {
- PrepareBuilder();
- result.hasEnumExtension = false;
- result.enumExtension_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
- return this;
- }
- public bool HasDynamicEnumExtension {
- get { return result.hasDynamicEnumExtension; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType DynamicEnumExtension {
- get { return result.DynamicEnumExtension; }
- set { SetDynamicEnumExtension(value); }
- }
- public Builder SetDynamicEnumExtension(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType value) {
- PrepareBuilder();
- result.hasDynamicEnumExtension = true;
- result.dynamicEnumExtension_ = value;
- return this;
- }
- public Builder ClearDynamicEnumExtension() {
- PrepareBuilder();
- result.hasDynamicEnumExtension = false;
- result.dynamicEnumExtension_ = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicEnumType.DYNAMIC_FOO;
- return this;
- }
- public bool HasMessageExtension {
- get { return result.hasMessageExtension; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageExtension {
- get { return result.MessageExtension; }
- set { SetMessageExtension(value); }
- }
- public Builder SetMessageExtension(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasMessageExtension = true;
- result.messageExtension_ = value;
- return this;
- }
- public Builder SetMessageExtension(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasMessageExtension = true;
- result.messageExtension_ = builderForValue.Build();
- return this;
- }
- public Builder MergeMessageExtension(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasMessageExtension &&
- result.messageExtension_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
- result.messageExtension_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.messageExtension_).MergeFrom(value).BuildPartial();
- } else {
- result.messageExtension_ = value;
- }
- result.hasMessageExtension = true;
- return this;
- }
- public Builder ClearMessageExtension() {
- PrepareBuilder();
- result.hasMessageExtension = false;
- result.messageExtension_ = null;
- return this;
- }
- public bool HasDynamicMessageExtension {
- get { return result.hasDynamicMessageExtension; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType DynamicMessageExtension {
- get { return result.DynamicMessageExtension; }
- set { SetDynamicMessageExtension(value); }
- }
- public Builder SetDynamicMessageExtension(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasDynamicMessageExtension = true;
- result.dynamicMessageExtension_ = value;
- return this;
- }
- public Builder SetDynamicMessageExtension(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasDynamicMessageExtension = true;
- result.dynamicMessageExtension_ = builderForValue.Build();
- return this;
- }
- public Builder MergeDynamicMessageExtension(global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasDynamicMessageExtension &&
- result.dynamicMessageExtension_ != global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.DefaultInstance) {
- result.dynamicMessageExtension_ = global::Google.ProtocolBuffers.TestProtos.TestDynamicExtensions.Types.DynamicMessageType.CreateBuilder(result.dynamicMessageExtension_).MergeFrom(value).BuildPartial();
- } else {
- result.dynamicMessageExtension_ = value;
- }
- result.hasDynamicMessageExtension = true;
- return this;
- }
- public Builder ClearDynamicMessageExtension() {
- PrepareBuilder();
- result.hasDynamicMessageExtension = false;
- result.dynamicMessageExtension_ = null;
- return this;
- }
- public pbc::IPopsicleList<string> RepeatedExtensionList {
- get { return PrepareBuilder().repeatedExtension_; }
- }
- public int RepeatedExtensionCount {
- get { return result.RepeatedExtensionCount; }
- }
- public string GetRepeatedExtension(int index) {
- return result.GetRepeatedExtension(index);
- }
- public Builder SetRepeatedExtension(int index, string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedExtension_[index] = value;
- return this;
- }
- public Builder AddRepeatedExtension(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedExtension_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedExtension(scg::IEnumerable<string> values) {
- PrepareBuilder();
- result.repeatedExtension_.Add(values);
- return this;
- }
- public Builder ClearRepeatedExtension() {
- PrepareBuilder();
- result.repeatedExtension_.Clear();
- return this;
- }
- public pbc::IPopsicleList<int> PackedExtensionList {
- get { return PrepareBuilder().packedExtension_; }
- }
- public int PackedExtensionCount {
- get { return result.PackedExtensionCount; }
- }
- public int GetPackedExtension(int index) {
- return result.GetPackedExtension(index);
- }
- public Builder SetPackedExtension(int index, int value) {
- PrepareBuilder();
- result.packedExtension_[index] = value;
- return this;
- }
- public Builder AddPackedExtension(int value) {
- PrepareBuilder();
- result.packedExtension_.Add(value);
- return this;
- }
- public Builder AddRangePackedExtension(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.packedExtension_.Add(values);
- return this;
- }
- public Builder ClearPackedExtension() {
- PrepareBuilder();
- result.packedExtension_.Clear();
- return this;
- }
- }
- static TestDynamicExtensions() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestRepeatedScalarDifferentTagSizes : pb::GeneratedMessage<TestRepeatedScalarDifferentTagSizes, TestRepeatedScalarDifferentTagSizes.Builder> {
- private TestRepeatedScalarDifferentTagSizes() { }
- private static readonly TestRepeatedScalarDifferentTagSizes defaultInstance = new TestRepeatedScalarDifferentTagSizes().MakeReadOnly();
- private static readonly string[] _testRepeatedScalarDifferentTagSizesFieldNames = new string[] { "repeated_fixed32", "repeated_fixed64", "repeated_float", "repeated_int32", "repeated_int64", "repeated_uint64" };
- private static readonly uint[] _testRepeatedScalarDifferentTagSizesFieldTags = new uint[] { 101, 16369, 2097141, 104, 16376, 2097144 };
- public static TestRepeatedScalarDifferentTagSizes DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestRepeatedScalarDifferentTagSizes DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestRepeatedScalarDifferentTagSizes ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestRepeatedScalarDifferentTagSizes, TestRepeatedScalarDifferentTagSizes.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes__FieldAccessorTable; }
- }
- public const int RepeatedFixed32FieldNumber = 12;
- private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>();
- [global::System.CLSCompliant(false)]
- public scg::IList<uint> RepeatedFixed32List {
- get { return pbc::Lists.AsReadOnly(repeatedFixed32_); }
- }
- public int RepeatedFixed32Count {
- get { return repeatedFixed32_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetRepeatedFixed32(int index) {
- return repeatedFixed32_[index];
- }
- public const int RepeatedInt32FieldNumber = 13;
- private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>();
- public scg::IList<int> RepeatedInt32List {
- get { return pbc::Lists.AsReadOnly(repeatedInt32_); }
- }
- public int RepeatedInt32Count {
- get { return repeatedInt32_.Count; }
- }
- public int GetRepeatedInt32(int index) {
- return repeatedInt32_[index];
- }
- public const int RepeatedFixed64FieldNumber = 2046;
- private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>();
- [global::System.CLSCompliant(false)]
- public scg::IList<ulong> RepeatedFixed64List {
- get { return pbc::Lists.AsReadOnly(repeatedFixed64_); }
- }
- public int RepeatedFixed64Count {
- get { return repeatedFixed64_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetRepeatedFixed64(int index) {
- return repeatedFixed64_[index];
- }
- public const int RepeatedInt64FieldNumber = 2047;
- private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>();
- public scg::IList<long> RepeatedInt64List {
- get { return pbc::Lists.AsReadOnly(repeatedInt64_); }
- }
- public int RepeatedInt64Count {
- get { return repeatedInt64_.Count; }
- }
- public long GetRepeatedInt64(int index) {
- return repeatedInt64_[index];
- }
- public const int RepeatedFloatFieldNumber = 262142;
- private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>();
- public scg::IList<float> RepeatedFloatList {
- get { return pbc::Lists.AsReadOnly(repeatedFloat_); }
- }
- public int RepeatedFloatCount {
- get { return repeatedFloat_.Count; }
- }
- public float GetRepeatedFloat(int index) {
- return repeatedFloat_[index];
- }
- public const int RepeatedUint64FieldNumber = 262143;
- private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>();
- [global::System.CLSCompliant(false)]
- public scg::IList<ulong> RepeatedUint64List {
- get { return pbc::Lists.AsReadOnly(repeatedUint64_); }
- }
- public int RepeatedUint64Count {
- get { return repeatedUint64_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetRepeatedUint64(int index) {
- return repeatedUint64_[index];
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testRepeatedScalarDifferentTagSizesFieldNames;
- if (repeatedFixed32_.Count > 0) {
- output.WriteFixed32Array(12, field_names[0], repeatedFixed32_);
- }
- if (repeatedInt32_.Count > 0) {
- output.WriteInt32Array(13, field_names[3], repeatedInt32_);
- }
- if (repeatedFixed64_.Count > 0) {
- output.WriteFixed64Array(2046, field_names[1], repeatedFixed64_);
- }
- if (repeatedInt64_.Count > 0) {
- output.WriteInt64Array(2047, field_names[4], repeatedInt64_);
- }
- if (repeatedFloat_.Count > 0) {
- output.WriteFloatArray(262142, field_names[2], repeatedFloat_);
- }
- if (repeatedUint64_.Count > 0) {
- output.WriteUInt64Array(262143, field_names[5], repeatedUint64_);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- {
- int dataSize = 0;
- dataSize = 4 * repeatedFixed32_.Count;
- size += dataSize;
- size += 1 * repeatedFixed32_.Count;
- }
- {
- int dataSize = 0;
- foreach (int element in RepeatedInt32List) {
- dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
- }
- size += dataSize;
- size += 1 * repeatedInt32_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 8 * repeatedFixed64_.Count;
- size += dataSize;
- size += 2 * repeatedFixed64_.Count;
- }
- {
- int dataSize = 0;
- foreach (long element in RepeatedInt64List) {
- dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * repeatedInt64_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 4 * repeatedFloat_.Count;
- size += dataSize;
- size += 3 * repeatedFloat_.Count;
- }
- {
- int dataSize = 0;
- foreach (ulong element in RepeatedUint64List) {
- dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
- }
- size += dataSize;
- size += 3 * repeatedUint64_.Count;
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestRepeatedScalarDifferentTagSizes ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestRepeatedScalarDifferentTagSizes ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestRepeatedScalarDifferentTagSizes ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestRepeatedScalarDifferentTagSizes ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestRepeatedScalarDifferentTagSizes ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestRepeatedScalarDifferentTagSizes ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestRepeatedScalarDifferentTagSizes ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestRepeatedScalarDifferentTagSizes ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestRepeatedScalarDifferentTagSizes ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestRepeatedScalarDifferentTagSizes ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestRepeatedScalarDifferentTagSizes MakeReadOnly() {
- repeatedFixed32_.MakeReadOnly();
- repeatedInt32_.MakeReadOnly();
- repeatedFixed64_.MakeReadOnly();
- repeatedInt64_.MakeReadOnly();
- repeatedFloat_.MakeReadOnly();
- repeatedUint64_.MakeReadOnly();
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestRepeatedScalarDifferentTagSizes prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestRepeatedScalarDifferentTagSizes, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestRepeatedScalarDifferentTagSizes cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestRepeatedScalarDifferentTagSizes result;
- private TestRepeatedScalarDifferentTagSizes PrepareBuilder() {
- if (resultIsReadOnly) {
- TestRepeatedScalarDifferentTagSizes original = result;
- result = new TestRepeatedScalarDifferentTagSizes();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestRepeatedScalarDifferentTagSizes MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.Descriptor; }
- }
- public override TestRepeatedScalarDifferentTagSizes DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.DefaultInstance; }
- }
- public override TestRepeatedScalarDifferentTagSizes BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestRepeatedScalarDifferentTagSizes) {
- return MergeFrom((TestRepeatedScalarDifferentTagSizes) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestRepeatedScalarDifferentTagSizes other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestRepeatedScalarDifferentTagSizes.DefaultInstance) return this;
- PrepareBuilder();
- if (other.repeatedFixed32_.Count != 0) {
- result.repeatedFixed32_.Add(other.repeatedFixed32_);
- }
- if (other.repeatedInt32_.Count != 0) {
- result.repeatedInt32_.Add(other.repeatedInt32_);
- }
- if (other.repeatedFixed64_.Count != 0) {
- result.repeatedFixed64_.Add(other.repeatedFixed64_);
- }
- if (other.repeatedInt64_.Count != 0) {
- result.repeatedInt64_.Add(other.repeatedInt64_);
- }
- if (other.repeatedFloat_.Count != 0) {
- result.repeatedFloat_.Add(other.repeatedFloat_);
- }
- if (other.repeatedUint64_.Count != 0) {
- result.repeatedUint64_.Add(other.repeatedUint64_);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testRepeatedScalarDifferentTagSizesFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testRepeatedScalarDifferentTagSizesFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 98:
- case 101: {
- input.ReadFixed32Array(tag, field_name, result.repeatedFixed32_);
- break;
- }
- case 106:
- case 104: {
- input.ReadInt32Array(tag, field_name, result.repeatedInt32_);
- break;
- }
- case 16370:
- case 16369: {
- input.ReadFixed64Array(tag, field_name, result.repeatedFixed64_);
- break;
- }
- case 16378:
- case 16376: {
- input.ReadInt64Array(tag, field_name, result.repeatedInt64_);
- break;
- }
- case 2097138:
- case 2097141: {
- input.ReadFloatArray(tag, field_name, result.repeatedFloat_);
- break;
- }
- case 2097146:
- case 2097144: {
- input.ReadUInt64Array(tag, field_name, result.repeatedUint64_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<uint> RepeatedFixed32List {
- get { return PrepareBuilder().repeatedFixed32_; }
- }
- public int RepeatedFixed32Count {
- get { return result.RepeatedFixed32Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetRepeatedFixed32(int index) {
- return result.GetRepeatedFixed32(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetRepeatedFixed32(int index, uint value) {
- PrepareBuilder();
- result.repeatedFixed32_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRepeatedFixed32(uint value) {
- PrepareBuilder();
- result.repeatedFixed32_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
- PrepareBuilder();
- result.repeatedFixed32_.Add(values);
- return this;
- }
- public Builder ClearRepeatedFixed32() {
- PrepareBuilder();
- result.repeatedFixed32_.Clear();
- return this;
- }
- public pbc::IPopsicleList<int> RepeatedInt32List {
- get { return PrepareBuilder().repeatedInt32_; }
- }
- public int RepeatedInt32Count {
- get { return result.RepeatedInt32Count; }
- }
- public int GetRepeatedInt32(int index) {
- return result.GetRepeatedInt32(index);
- }
- public Builder SetRepeatedInt32(int index, int value) {
- PrepareBuilder();
- result.repeatedInt32_[index] = value;
- return this;
- }
- public Builder AddRepeatedInt32(int value) {
- PrepareBuilder();
- result.repeatedInt32_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.repeatedInt32_.Add(values);
- return this;
- }
- public Builder ClearRepeatedInt32() {
- PrepareBuilder();
- result.repeatedInt32_.Clear();
- return this;
- }
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<ulong> RepeatedFixed64List {
- get { return PrepareBuilder().repeatedFixed64_; }
- }
- public int RepeatedFixed64Count {
- get { return result.RepeatedFixed64Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetRepeatedFixed64(int index) {
- return result.GetRepeatedFixed64(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetRepeatedFixed64(int index, ulong value) {
- PrepareBuilder();
- result.repeatedFixed64_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRepeatedFixed64(ulong value) {
- PrepareBuilder();
- result.repeatedFixed64_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
- PrepareBuilder();
- result.repeatedFixed64_.Add(values);
- return this;
- }
- public Builder ClearRepeatedFixed64() {
- PrepareBuilder();
- result.repeatedFixed64_.Clear();
- return this;
- }
- public pbc::IPopsicleList<long> RepeatedInt64List {
- get { return PrepareBuilder().repeatedInt64_; }
- }
- public int RepeatedInt64Count {
- get { return result.RepeatedInt64Count; }
- }
- public long GetRepeatedInt64(int index) {
- return result.GetRepeatedInt64(index);
- }
- public Builder SetRepeatedInt64(int index, long value) {
- PrepareBuilder();
- result.repeatedInt64_[index] = value;
- return this;
- }
- public Builder AddRepeatedInt64(long value) {
- PrepareBuilder();
- result.repeatedInt64_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
- PrepareBuilder();
- result.repeatedInt64_.Add(values);
- return this;
- }
- public Builder ClearRepeatedInt64() {
- PrepareBuilder();
- result.repeatedInt64_.Clear();
- return this;
- }
- public pbc::IPopsicleList<float> RepeatedFloatList {
- get { return PrepareBuilder().repeatedFloat_; }
- }
- public int RepeatedFloatCount {
- get { return result.RepeatedFloatCount; }
- }
- public float GetRepeatedFloat(int index) {
- return result.GetRepeatedFloat(index);
- }
- public Builder SetRepeatedFloat(int index, float value) {
- PrepareBuilder();
- result.repeatedFloat_[index] = value;
- return this;
- }
- public Builder AddRepeatedFloat(float value) {
- PrepareBuilder();
- result.repeatedFloat_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
- PrepareBuilder();
- result.repeatedFloat_.Add(values);
- return this;
- }
- public Builder ClearRepeatedFloat() {
- PrepareBuilder();
- result.repeatedFloat_.Clear();
- return this;
- }
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<ulong> RepeatedUint64List {
- get { return PrepareBuilder().repeatedUint64_; }
- }
- public int RepeatedUint64Count {
- get { return result.RepeatedUint64Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetRepeatedUint64(int index) {
- return result.GetRepeatedUint64(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetRepeatedUint64(int index, ulong value) {
- PrepareBuilder();
- result.repeatedUint64_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRepeatedUint64(ulong value) {
- PrepareBuilder();
- result.repeatedUint64_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
- PrepareBuilder();
- result.repeatedUint64_.Add(values);
- return this;
- }
- public Builder ClearRepeatedUint64() {
- PrepareBuilder();
- result.repeatedUint64_.Clear();
- return this;
- }
- }
- static TestRepeatedScalarDifferentTagSizes() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestParsingMerge : pb::ExtendableMessage<TestParsingMerge, TestParsingMerge.Builder> {
- private TestParsingMerge() { }
- private static readonly TestParsingMerge defaultInstance = new TestParsingMerge().MakeReadOnly();
- private static readonly string[] _testParsingMergeFieldNames = new string[] { "optional_all_types", "optionalgroup", "repeated_all_types", "repeatedgroup", "required_all_types" };
- private static readonly uint[] _testParsingMergeFieldTags = new uint[] { 18, 83, 26, 163, 10 };
- public static TestParsingMerge DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestParsingMerge DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestParsingMerge ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestParsingMerge, TestParsingMerge.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge__FieldAccessorTable; }
- }
- public const int OptionalExtFieldNumber = 1000;
- public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> OptionalExt;
- public const int RepeatedExtFieldNumber = 1001;
- public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>> RepeatedExt;
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class RepeatedFieldsGenerator : pb::GeneratedMessage<RepeatedFieldsGenerator, RepeatedFieldsGenerator.Builder> {
- private RepeatedFieldsGenerator() { }
- private static readonly RepeatedFieldsGenerator defaultInstance = new RepeatedFieldsGenerator().MakeReadOnly();
- private static readonly string[] _repeatedFieldsGeneratorFieldNames = new string[] { "ext1", "ext2", "field1", "field2", "field3", "group1", "group2" };
- private static readonly uint[] _repeatedFieldsGeneratorFieldTags = new uint[] { 8002, 8010, 10, 18, 26, 83, 163 };
- public static RepeatedFieldsGenerator DefaultInstance {
- get { return defaultInstance; }
- }
- public override RepeatedFieldsGenerator DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override RepeatedFieldsGenerator ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<RepeatedFieldsGenerator, RepeatedFieldsGenerator.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator__FieldAccessorTable; }
- }
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Group1 : pb::GeneratedMessage<Group1, Group1.Builder> {
- private Group1() { }
- private static readonly Group1 defaultInstance = new Group1().MakeReadOnly();
- private static readonly string[] _group1FieldNames = new string[] { "field1" };
- private static readonly uint[] _group1FieldTags = new uint[] { 90 };
- public static Group1 DefaultInstance {
- get { return defaultInstance; }
- }
- public override Group1 DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override Group1 ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<Group1, Group1.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1__FieldAccessorTable; }
- }
- public const int Field1FieldNumber = 11;
- private bool hasField1;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes field1_;
- public bool HasField1 {
- get { return hasField1; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes Field1 {
- get { return field1_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _group1FieldNames;
- if (hasField1) {
- output.WriteMessage(11, field_names[0], Field1);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasField1) {
- size += pb::CodedOutputStream.ComputeMessageSize(11, Field1);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static Group1 ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Group1 ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Group1 ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Group1 ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Group1 ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Group1 ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Group1 ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static Group1 ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static Group1 ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Group1 ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private Group1 MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(Group1 prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<Group1, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(Group1 cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private Group1 result;
- private Group1 PrepareBuilder() {
- if (resultIsReadOnly) {
- Group1 original = result;
- result = new Group1();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override Group1 MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Descriptor; }
- }
- public override Group1 DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.DefaultInstance; }
- }
- public override Group1 BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is Group1) {
- return MergeFrom((Group1) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(Group1 other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasField1) {
- MergeField1(other.Field1);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_group1FieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _group1FieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 90: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
- if (result.hasField1) {
- subBuilder.MergeFrom(Field1);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- Field1 = subBuilder.BuildPartial();
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasField1 {
- get { return result.hasField1; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes Field1 {
- get { return result.Field1; }
- set { SetField1(value); }
- }
- public Builder SetField1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasField1 = true;
- result.field1_ = value;
- return this;
- }
- public Builder SetField1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasField1 = true;
- result.field1_ = builderForValue.Build();
- return this;
- }
- public Builder MergeField1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasField1 &&
- result.field1_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
- result.field1_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.field1_).MergeFrom(value).BuildPartial();
- } else {
- result.field1_ = value;
- }
- result.hasField1 = true;
- return this;
- }
- public Builder ClearField1() {
- PrepareBuilder();
- result.hasField1 = false;
- result.field1_ = null;
- return this;
- }
- }
- static Group1() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Group2 : pb::GeneratedMessage<Group2, Group2.Builder> {
- private Group2() { }
- private static readonly Group2 defaultInstance = new Group2().MakeReadOnly();
- private static readonly string[] _group2FieldNames = new string[] { "field1" };
- private static readonly uint[] _group2FieldTags = new uint[] { 170 };
- public static Group2 DefaultInstance {
- get { return defaultInstance; }
- }
- public override Group2 DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override Group2 ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<Group2, Group2.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2__FieldAccessorTable; }
- }
- public const int Field1FieldNumber = 21;
- private bool hasField1;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes field1_;
- public bool HasField1 {
- get { return hasField1; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes Field1 {
- get { return field1_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _group2FieldNames;
- if (hasField1) {
- output.WriteMessage(21, field_names[0], Field1);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasField1) {
- size += pb::CodedOutputStream.ComputeMessageSize(21, Field1);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static Group2 ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Group2 ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Group2 ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Group2 ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Group2 ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Group2 ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Group2 ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static Group2 ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static Group2 ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Group2 ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private Group2 MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(Group2 prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<Group2, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(Group2 cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private Group2 result;
- private Group2 PrepareBuilder() {
- if (resultIsReadOnly) {
- Group2 original = result;
- result = new Group2();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override Group2 MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Descriptor; }
- }
- public override Group2 DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.DefaultInstance; }
- }
- public override Group2 BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is Group2) {
- return MergeFrom((Group2) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(Group2 other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasField1) {
- MergeField1(other.Field1);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_group2FieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _group2FieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 170: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
- if (result.hasField1) {
- subBuilder.MergeFrom(Field1);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- Field1 = subBuilder.BuildPartial();
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasField1 {
- get { return result.hasField1; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes Field1 {
- get { return result.Field1; }
- set { SetField1(value); }
- }
- public Builder SetField1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasField1 = true;
- result.field1_ = value;
- return this;
- }
- public Builder SetField1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasField1 = true;
- result.field1_ = builderForValue.Build();
- return this;
- }
- public Builder MergeField1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasField1 &&
- result.field1_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
- result.field1_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.field1_).MergeFrom(value).BuildPartial();
- } else {
- result.field1_ = value;
- }
- result.hasField1 = true;
- return this;
- }
- public Builder ClearField1() {
- PrepareBuilder();
- result.hasField1 = false;
- result.field1_ = null;
- return this;
- }
- }
- static Group2() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- }
- #endregion
- public const int Field1FieldNumber = 1;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> field1_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Field1List {
- get { return field1_; }
- }
- public int Field1Count {
- get { return field1_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetField1(int index) {
- return field1_[index];
- }
- public const int Field2FieldNumber = 2;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> field2_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Field2List {
- get { return field2_; }
- }
- public int Field2Count {
- get { return field2_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetField2(int index) {
- return field2_[index];
- }
- public const int Field3FieldNumber = 3;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> field3_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Field3List {
- get { return field3_; }
- }
- public int Field3Count {
- get { return field3_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetField3(int index) {
- return field3_[index];
- }
- public const int Group1FieldNumber = 10;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> group1_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> Group1List {
- get { return group1_; }
- }
- public int Group1Count {
- get { return group1_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1 GetGroup1(int index) {
- return group1_[index];
- }
- public const int Group2FieldNumber = 20;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> group2_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> Group2List {
- get { return group2_; }
- }
- public int Group2Count {
- get { return group2_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2 GetGroup2(int index) {
- return group2_[index];
- }
- public const int Ext1FieldNumber = 1000;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> ext1_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Ext1List {
- get { return ext1_; }
- }
- public int Ext1Count {
- get { return ext1_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetExt1(int index) {
- return ext1_[index];
- }
- public const int Ext2FieldNumber = 1001;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> ext2_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Ext2List {
- get { return ext2_; }
- }
- public int Ext2Count {
- get { return ext2_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetExt2(int index) {
- return ext2_[index];
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _repeatedFieldsGeneratorFieldNames;
- if (field1_.Count > 0) {
- output.WriteMessageArray(1, field_names[2], field1_);
- }
- if (field2_.Count > 0) {
- output.WriteMessageArray(2, field_names[3], field2_);
- }
- if (field3_.Count > 0) {
- output.WriteMessageArray(3, field_names[4], field3_);
- }
- if (group1_.Count > 0) {
- output.WriteGroupArray(10, field_names[5], group1_);
- }
- if (group2_.Count > 0) {
- output.WriteGroupArray(20, field_names[6], group2_);
- }
- if (ext1_.Count > 0) {
- output.WriteMessageArray(1000, field_names[0], ext1_);
- }
- if (ext2_.Count > 0) {
- output.WriteMessageArray(1001, field_names[1], ext2_);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes element in Field1List) {
- size += pb::CodedOutputStream.ComputeMessageSize(1, element);
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes element in Field2List) {
- size += pb::CodedOutputStream.ComputeMessageSize(2, element);
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes element in Field3List) {
- size += pb::CodedOutputStream.ComputeMessageSize(3, element);
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1 element in Group1List) {
- size += pb::CodedOutputStream.ComputeGroupSize(10, element);
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2 element in Group2List) {
- size += pb::CodedOutputStream.ComputeGroupSize(20, element);
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes element in Ext1List) {
- size += pb::CodedOutputStream.ComputeMessageSize(1000, element);
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes element in Ext2List) {
- size += pb::CodedOutputStream.ComputeMessageSize(1001, element);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static RepeatedFieldsGenerator ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static RepeatedFieldsGenerator ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static RepeatedFieldsGenerator ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static RepeatedFieldsGenerator ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static RepeatedFieldsGenerator ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static RepeatedFieldsGenerator ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static RepeatedFieldsGenerator ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static RepeatedFieldsGenerator ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static RepeatedFieldsGenerator ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static RepeatedFieldsGenerator ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private RepeatedFieldsGenerator MakeReadOnly() {
- field1_.MakeReadOnly();
- field2_.MakeReadOnly();
- field3_.MakeReadOnly();
- group1_.MakeReadOnly();
- group2_.MakeReadOnly();
- ext1_.MakeReadOnly();
- ext2_.MakeReadOnly();
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(RepeatedFieldsGenerator prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<RepeatedFieldsGenerator, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(RepeatedFieldsGenerator cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private RepeatedFieldsGenerator result;
- private RepeatedFieldsGenerator PrepareBuilder() {
- if (resultIsReadOnly) {
- RepeatedFieldsGenerator original = result;
- result = new RepeatedFieldsGenerator();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override RepeatedFieldsGenerator MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Descriptor; }
- }
- public override RepeatedFieldsGenerator DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.DefaultInstance; }
- }
- public override RepeatedFieldsGenerator BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is RepeatedFieldsGenerator) {
- return MergeFrom((RepeatedFieldsGenerator) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(RepeatedFieldsGenerator other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.DefaultInstance) return this;
- PrepareBuilder();
- if (other.field1_.Count != 0) {
- result.field1_.Add(other.field1_);
- }
- if (other.field2_.Count != 0) {
- result.field2_.Add(other.field2_);
- }
- if (other.field3_.Count != 0) {
- result.field3_.Add(other.field3_);
- }
- if (other.group1_.Count != 0) {
- result.group1_.Add(other.group1_);
- }
- if (other.group2_.Count != 0) {
- result.group2_.Add(other.group2_);
- }
- if (other.ext1_.Count != 0) {
- result.ext1_.Add(other.ext1_);
- }
- if (other.ext2_.Count != 0) {
- result.ext2_.Add(other.ext2_);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_repeatedFieldsGeneratorFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _repeatedFieldsGeneratorFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- input.ReadMessageArray(tag, field_name, result.field1_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance, extensionRegistry);
- break;
- }
- case 18: {
- input.ReadMessageArray(tag, field_name, result.field2_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance, extensionRegistry);
- break;
- }
- case 26: {
- input.ReadMessageArray(tag, field_name, result.field3_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance, extensionRegistry);
- break;
- }
- case 83: {
- input.ReadGroupArray(tag, field_name, result.group1_, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.DefaultInstance, extensionRegistry);
- break;
- }
- case 163: {
- input.ReadGroupArray(tag, field_name, result.group2_, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.DefaultInstance, extensionRegistry);
- break;
- }
- case 8002: {
- input.ReadMessageArray(tag, field_name, result.ext1_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance, extensionRegistry);
- break;
- }
- case 8010: {
- input.ReadMessageArray(tag, field_name, result.ext2_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance, extensionRegistry);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Field1List {
- get { return PrepareBuilder().field1_; }
- }
- public int Field1Count {
- get { return result.Field1Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetField1(int index) {
- return result.GetField1(index);
- }
- public Builder SetField1(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.field1_[index] = value;
- return this;
- }
- public Builder SetField1(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.field1_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddField1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.field1_.Add(value);
- return this;
- }
- public Builder AddField1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.field1_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeField1(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> values) {
- PrepareBuilder();
- result.field1_.Add(values);
- return this;
- }
- public Builder ClearField1() {
- PrepareBuilder();
- result.field1_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Field2List {
- get { return PrepareBuilder().field2_; }
- }
- public int Field2Count {
- get { return result.Field2Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetField2(int index) {
- return result.GetField2(index);
- }
- public Builder SetField2(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.field2_[index] = value;
- return this;
- }
- public Builder SetField2(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.field2_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddField2(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.field2_.Add(value);
- return this;
- }
- public Builder AddField2(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.field2_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeField2(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> values) {
- PrepareBuilder();
- result.field2_.Add(values);
- return this;
- }
- public Builder ClearField2() {
- PrepareBuilder();
- result.field2_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Field3List {
- get { return PrepareBuilder().field3_; }
- }
- public int Field3Count {
- get { return result.Field3Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetField3(int index) {
- return result.GetField3(index);
- }
- public Builder SetField3(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.field3_[index] = value;
- return this;
- }
- public Builder SetField3(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.field3_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddField3(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.field3_.Add(value);
- return this;
- }
- public Builder AddField3(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.field3_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeField3(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> values) {
- PrepareBuilder();
- result.field3_.Add(values);
- return this;
- }
- public Builder ClearField3() {
- PrepareBuilder();
- result.field3_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> Group1List {
- get { return PrepareBuilder().group1_; }
- }
- public int Group1Count {
- get { return result.Group1Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1 GetGroup1(int index) {
- return result.GetGroup1(index);
- }
- public Builder SetGroup1(int index, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1 value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.group1_[index] = value;
- return this;
- }
- public Builder SetGroup1(int index, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.group1_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddGroup1(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1 value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.group1_.Add(value);
- return this;
- }
- public Builder AddGroup1(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.group1_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeGroup1(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group1> values) {
- PrepareBuilder();
- result.group1_.Add(values);
- return this;
- }
- public Builder ClearGroup1() {
- PrepareBuilder();
- result.group1_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> Group2List {
- get { return PrepareBuilder().group2_; }
- }
- public int Group2Count {
- get { return result.Group2Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2 GetGroup2(int index) {
- return result.GetGroup2(index);
- }
- public Builder SetGroup2(int index, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2 value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.group2_[index] = value;
- return this;
- }
- public Builder SetGroup2(int index, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.group2_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddGroup2(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2 value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.group2_.Add(value);
- return this;
- }
- public Builder AddGroup2(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.group2_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeGroup2(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedFieldsGenerator.Types.Group2> values) {
- PrepareBuilder();
- result.group2_.Add(values);
- return this;
- }
- public Builder ClearGroup2() {
- PrepareBuilder();
- result.group2_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Ext1List {
- get { return PrepareBuilder().ext1_; }
- }
- public int Ext1Count {
- get { return result.Ext1Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetExt1(int index) {
- return result.GetExt1(index);
- }
- public Builder SetExt1(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.ext1_[index] = value;
- return this;
- }
- public Builder SetExt1(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.ext1_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddExt1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.ext1_.Add(value);
- return this;
- }
- public Builder AddExt1(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.ext1_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeExt1(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> values) {
- PrepareBuilder();
- result.ext1_.Add(values);
- return this;
- }
- public Builder ClearExt1() {
- PrepareBuilder();
- result.ext1_.Clear();
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> Ext2List {
- get { return PrepareBuilder().ext2_; }
- }
- public int Ext2Count {
- get { return result.Ext2Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetExt2(int index) {
- return result.GetExt2(index);
- }
- public Builder SetExt2(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.ext2_[index] = value;
- return this;
- }
- public Builder SetExt2(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.ext2_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddExt2(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.ext2_.Add(value);
- return this;
- }
- public Builder AddExt2(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.ext2_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeExt2(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> values) {
- PrepareBuilder();
- result.ext2_.Add(values);
- return this;
- }
- public Builder ClearExt2() {
- PrepareBuilder();
- result.ext2_.Clear();
- return this;
- }
- }
- static RepeatedFieldsGenerator() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class OptionalGroup : pb::GeneratedMessage<OptionalGroup, OptionalGroup.Builder> {
- private OptionalGroup() { }
- private static readonly OptionalGroup defaultInstance = new OptionalGroup().MakeReadOnly();
- private static readonly string[] _optionalGroupFieldNames = new string[] { "optional_group_all_types" };
- private static readonly uint[] _optionalGroupFieldTags = new uint[] { 90 };
- public static OptionalGroup DefaultInstance {
- get { return defaultInstance; }
- }
- public override OptionalGroup DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override OptionalGroup ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_OptionalGroup__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup, OptionalGroup.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_OptionalGroup__FieldAccessorTable; }
- }
- public const int OptionalGroupAllTypesFieldNumber = 11;
- private bool hasOptionalGroupAllTypes;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes optionalGroupAllTypes_;
- public bool HasOptionalGroupAllTypes {
- get { return hasOptionalGroupAllTypes; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes OptionalGroupAllTypes {
- get { return optionalGroupAllTypes_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _optionalGroupFieldNames;
- if (hasOptionalGroupAllTypes) {
- output.WriteMessage(11, field_names[0], OptionalGroupAllTypes);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasOptionalGroupAllTypes) {
- size += pb::CodedOutputStream.ComputeMessageSize(11, OptionalGroupAllTypes);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static OptionalGroup ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static OptionalGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static OptionalGroup ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static OptionalGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static OptionalGroup ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static OptionalGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static OptionalGroup ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static OptionalGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private OptionalGroup MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(OptionalGroup prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<OptionalGroup, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(OptionalGroup cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private OptionalGroup result;
- private OptionalGroup PrepareBuilder() {
- if (resultIsReadOnly) {
- OptionalGroup original = result;
- result = new OptionalGroup();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override OptionalGroup MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.Descriptor; }
- }
- public override OptionalGroup DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.DefaultInstance; }
- }
- public override OptionalGroup BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is OptionalGroup) {
- return MergeFrom((OptionalGroup) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(OptionalGroup other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasOptionalGroupAllTypes) {
- MergeOptionalGroupAllTypes(other.OptionalGroupAllTypes);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_optionalGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _optionalGroupFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 90: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
- if (result.hasOptionalGroupAllTypes) {
- subBuilder.MergeFrom(OptionalGroupAllTypes);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- OptionalGroupAllTypes = subBuilder.BuildPartial();
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasOptionalGroupAllTypes {
- get { return result.hasOptionalGroupAllTypes; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes OptionalGroupAllTypes {
- get { return result.OptionalGroupAllTypes; }
- set { SetOptionalGroupAllTypes(value); }
- }
- public Builder SetOptionalGroupAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalGroupAllTypes = true;
- result.optionalGroupAllTypes_ = value;
- return this;
- }
- public Builder SetOptionalGroupAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasOptionalGroupAllTypes = true;
- result.optionalGroupAllTypes_ = builderForValue.Build();
- return this;
- }
- public Builder MergeOptionalGroupAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOptionalGroupAllTypes &&
- result.optionalGroupAllTypes_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
- result.optionalGroupAllTypes_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.optionalGroupAllTypes_).MergeFrom(value).BuildPartial();
- } else {
- result.optionalGroupAllTypes_ = value;
- }
- result.hasOptionalGroupAllTypes = true;
- return this;
- }
- public Builder ClearOptionalGroupAllTypes() {
- PrepareBuilder();
- result.hasOptionalGroupAllTypes = false;
- result.optionalGroupAllTypes_ = null;
- return this;
- }
- }
- static OptionalGroup() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class RepeatedGroup : pb::GeneratedMessage<RepeatedGroup, RepeatedGroup.Builder> {
- private RepeatedGroup() { }
- private static readonly RepeatedGroup defaultInstance = new RepeatedGroup().MakeReadOnly();
- private static readonly string[] _repeatedGroupFieldNames = new string[] { "repeated_group_all_types" };
- private static readonly uint[] _repeatedGroupFieldTags = new uint[] { 170 };
- public static RepeatedGroup DefaultInstance {
- get { return defaultInstance; }
- }
- public override RepeatedGroup DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override RepeatedGroup ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_RepeatedGroup__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup, RepeatedGroup.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestParsingMerge_RepeatedGroup__FieldAccessorTable; }
- }
- public const int RepeatedGroupAllTypesFieldNumber = 21;
- private bool hasRepeatedGroupAllTypes;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes repeatedGroupAllTypes_;
- public bool HasRepeatedGroupAllTypes {
- get { return hasRepeatedGroupAllTypes; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes RepeatedGroupAllTypes {
- get { return repeatedGroupAllTypes_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _repeatedGroupFieldNames;
- if (hasRepeatedGroupAllTypes) {
- output.WriteMessage(21, field_names[0], RepeatedGroupAllTypes);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasRepeatedGroupAllTypes) {
- size += pb::CodedOutputStream.ComputeMessageSize(21, RepeatedGroupAllTypes);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static RepeatedGroup ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static RepeatedGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static RepeatedGroup ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static RepeatedGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static RepeatedGroup ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static RepeatedGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static RepeatedGroup ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static RepeatedGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private RepeatedGroup MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(RepeatedGroup prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<RepeatedGroup, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(RepeatedGroup cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private RepeatedGroup result;
- private RepeatedGroup PrepareBuilder() {
- if (resultIsReadOnly) {
- RepeatedGroup original = result;
- result = new RepeatedGroup();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override RepeatedGroup MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup.Descriptor; }
- }
- public override RepeatedGroup DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup.DefaultInstance; }
- }
- public override RepeatedGroup BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is RepeatedGroup) {
- return MergeFrom((RepeatedGroup) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(RepeatedGroup other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasRepeatedGroupAllTypes) {
- MergeRepeatedGroupAllTypes(other.RepeatedGroupAllTypes);
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_repeatedGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _repeatedGroupFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 170: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
- if (result.hasRepeatedGroupAllTypes) {
- subBuilder.MergeFrom(RepeatedGroupAllTypes);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- RepeatedGroupAllTypes = subBuilder.BuildPartial();
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasRepeatedGroupAllTypes {
- get { return result.hasRepeatedGroupAllTypes; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes RepeatedGroupAllTypes {
- get { return result.RepeatedGroupAllTypes; }
- set { SetRepeatedGroupAllTypes(value); }
- }
- public Builder SetRepeatedGroupAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasRepeatedGroupAllTypes = true;
- result.repeatedGroupAllTypes_ = value;
- return this;
- }
- public Builder SetRepeatedGroupAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasRepeatedGroupAllTypes = true;
- result.repeatedGroupAllTypes_ = builderForValue.Build();
- return this;
- }
- public Builder MergeRepeatedGroupAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasRepeatedGroupAllTypes &&
- result.repeatedGroupAllTypes_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
- result.repeatedGroupAllTypes_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.repeatedGroupAllTypes_).MergeFrom(value).BuildPartial();
- } else {
- result.repeatedGroupAllTypes_ = value;
- }
- result.hasRepeatedGroupAllTypes = true;
- return this;
- }
- public Builder ClearRepeatedGroupAllTypes() {
- PrepareBuilder();
- result.hasRepeatedGroupAllTypes = false;
- result.repeatedGroupAllTypes_ = null;
- return this;
- }
- }
- static RepeatedGroup() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- }
- #endregion
- public const int RequiredAllTypesFieldNumber = 1;
- private bool hasRequiredAllTypes;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes requiredAllTypes_;
- public bool HasRequiredAllTypes {
- get { return hasRequiredAllTypes; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes RequiredAllTypes {
- get { return requiredAllTypes_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
- }
- public const int OptionalAllTypesFieldNumber = 2;
- private bool hasOptionalAllTypes;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypes optionalAllTypes_;
- public bool HasOptionalAllTypes {
- get { return hasOptionalAllTypes; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes OptionalAllTypes {
- get { return optionalAllTypes_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
- }
- public const int RepeatedAllTypesFieldNumber = 3;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> repeatedAllTypes_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> RepeatedAllTypesList {
- get { return repeatedAllTypes_; }
- }
- public int RepeatedAllTypesCount {
- get { return repeatedAllTypes_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetRepeatedAllTypes(int index) {
- return repeatedAllTypes_[index];
- }
- public const int OptionalGroupFieldNumber = 10;
- private bool hasOptionalGroup;
- private global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup optionalGroup_;
- public bool HasOptionalGroup {
- get { return hasOptionalGroup; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup OptionalGroup {
- get { return optionalGroup_ ?? global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.DefaultInstance; }
- }
- public const int RepeatedGroupFieldNumber = 20;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup> RepeatedGroupList {
- get { return repeatedGroup_; }
- }
- public int RepeatedGroupCount {
- get { return repeatedGroup_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup GetRepeatedGroup(int index) {
- return repeatedGroup_[index];
- }
- public override bool IsInitialized {
- get {
- if (!hasRequiredAllTypes) return false;
- if (!ExtensionsAreInitialized) return false;
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testParsingMergeFieldNames;
- pb::ExtendableMessage<TestParsingMerge, TestParsingMerge.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
- if (hasRequiredAllTypes) {
- output.WriteMessage(1, field_names[4], RequiredAllTypes);
- }
- if (hasOptionalAllTypes) {
- output.WriteMessage(2, field_names[0], OptionalAllTypes);
- }
- if (repeatedAllTypes_.Count > 0) {
- output.WriteMessageArray(3, field_names[2], repeatedAllTypes_);
- }
- if (hasOptionalGroup) {
- output.WriteGroup(10, field_names[1], OptionalGroup);
- }
- if (repeatedGroup_.Count > 0) {
- output.WriteGroupArray(20, field_names[3], repeatedGroup_);
- }
- extensionWriter.WriteUntil(536870912, output);
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasRequiredAllTypes) {
- size += pb::CodedOutputStream.ComputeMessageSize(1, RequiredAllTypes);
- }
- if (hasOptionalAllTypes) {
- size += pb::CodedOutputStream.ComputeMessageSize(2, OptionalAllTypes);
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes element in RepeatedAllTypesList) {
- size += pb::CodedOutputStream.ComputeMessageSize(3, element);
- }
- if (hasOptionalGroup) {
- size += pb::CodedOutputStream.ComputeGroupSize(10, OptionalGroup);
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup element in RepeatedGroupList) {
- size += pb::CodedOutputStream.ComputeGroupSize(20, element);
- }
- size += ExtensionsSerializedSize;
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestParsingMerge ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestParsingMerge ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestParsingMerge ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestParsingMerge ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestParsingMerge ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestParsingMerge ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestParsingMerge ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestParsingMerge ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestParsingMerge ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestParsingMerge ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestParsingMerge MakeReadOnly() {
- repeatedAllTypes_.MakeReadOnly();
- repeatedGroup_.MakeReadOnly();
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestParsingMerge prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::ExtendableBuilder<TestParsingMerge, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestParsingMerge cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestParsingMerge result;
- private TestParsingMerge PrepareBuilder() {
- if (resultIsReadOnly) {
- TestParsingMerge original = result;
- result = new TestParsingMerge();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestParsingMerge MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Descriptor; }
- }
- public override TestParsingMerge DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.DefaultInstance; }
- }
- public override TestParsingMerge BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestParsingMerge) {
- return MergeFrom((TestParsingMerge) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestParsingMerge other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasRequiredAllTypes) {
- MergeRequiredAllTypes(other.RequiredAllTypes);
- }
- if (other.HasOptionalAllTypes) {
- MergeOptionalAllTypes(other.OptionalAllTypes);
- }
- if (other.repeatedAllTypes_.Count != 0) {
- result.repeatedAllTypes_.Add(other.repeatedAllTypes_);
- }
- if (other.HasOptionalGroup) {
- MergeOptionalGroup(other.OptionalGroup);
- }
- if (other.repeatedGroup_.Count != 0) {
- result.repeatedGroup_.Add(other.repeatedGroup_);
- }
- this.MergeExtensionFields(other);
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testParsingMergeFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testParsingMergeFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
- if (result.hasRequiredAllTypes) {
- subBuilder.MergeFrom(RequiredAllTypes);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- RequiredAllTypes = subBuilder.BuildPartial();
- break;
- }
- case 18: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder();
- if (result.hasOptionalAllTypes) {
- subBuilder.MergeFrom(OptionalAllTypes);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- OptionalAllTypes = subBuilder.BuildPartial();
- break;
- }
- case 26: {
- input.ReadMessageArray(tag, field_name, result.repeatedAllTypes_, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance, extensionRegistry);
- break;
- }
- case 83: {
- global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.CreateBuilder();
- if (result.hasOptionalGroup) {
- subBuilder.MergeFrom(OptionalGroup);
- }
- input.ReadGroup(10, subBuilder, extensionRegistry);
- OptionalGroup = subBuilder.BuildPartial();
- break;
- }
- case 163: {
- input.ReadGroupArray(tag, field_name, result.repeatedGroup_, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup.DefaultInstance, extensionRegistry);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasRequiredAllTypes {
- get { return result.hasRequiredAllTypes; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes RequiredAllTypes {
- get { return result.RequiredAllTypes; }
- set { SetRequiredAllTypes(value); }
- }
- public Builder SetRequiredAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasRequiredAllTypes = true;
- result.requiredAllTypes_ = value;
- return this;
- }
- public Builder SetRequiredAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasRequiredAllTypes = true;
- result.requiredAllTypes_ = builderForValue.Build();
- return this;
- }
- public Builder MergeRequiredAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasRequiredAllTypes &&
- result.requiredAllTypes_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
- result.requiredAllTypes_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.requiredAllTypes_).MergeFrom(value).BuildPartial();
- } else {
- result.requiredAllTypes_ = value;
- }
- result.hasRequiredAllTypes = true;
- return this;
- }
- public Builder ClearRequiredAllTypes() {
- PrepareBuilder();
- result.hasRequiredAllTypes = false;
- result.requiredAllTypes_ = null;
- return this;
- }
- public bool HasOptionalAllTypes {
- get { return result.hasOptionalAllTypes; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes OptionalAllTypes {
- get { return result.OptionalAllTypes; }
- set { SetOptionalAllTypes(value); }
- }
- public Builder SetOptionalAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalAllTypes = true;
- result.optionalAllTypes_ = value;
- return this;
- }
- public Builder SetOptionalAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasOptionalAllTypes = true;
- result.optionalAllTypes_ = builderForValue.Build();
- return this;
- }
- public Builder MergeOptionalAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOptionalAllTypes &&
- result.optionalAllTypes_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) {
- result.optionalAllTypes_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder(result.optionalAllTypes_).MergeFrom(value).BuildPartial();
- } else {
- result.optionalAllTypes_ = value;
- }
- result.hasOptionalAllTypes = true;
- return this;
- }
- public Builder ClearOptionalAllTypes() {
- PrepareBuilder();
- result.hasOptionalAllTypes = false;
- result.optionalAllTypes_ = null;
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> RepeatedAllTypesList {
- get { return PrepareBuilder().repeatedAllTypes_; }
- }
- public int RepeatedAllTypesCount {
- get { return result.RepeatedAllTypesCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypes GetRepeatedAllTypes(int index) {
- return result.GetRepeatedAllTypes(index);
- }
- public Builder SetRepeatedAllTypes(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedAllTypes_[index] = value;
- return this;
- }
- public Builder SetRepeatedAllTypes(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedAllTypes_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddRepeatedAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedAllTypes_.Add(value);
- return this;
- }
- public Builder AddRepeatedAllTypes(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedAllTypes_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeRepeatedAllTypes(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes> values) {
- PrepareBuilder();
- result.repeatedAllTypes_.Add(values);
- return this;
- }
- public Builder ClearRepeatedAllTypes() {
- PrepareBuilder();
- result.repeatedAllTypes_.Clear();
- return this;
- }
- public bool HasOptionalGroup {
- get { return result.hasOptionalGroup; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup OptionalGroup {
- get { return result.OptionalGroup; }
- set { SetOptionalGroup(value); }
- }
- public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalGroup = true;
- result.optionalGroup_ = value;
- return this;
- }
- public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasOptionalGroup = true;
- result.optionalGroup_ = builderForValue.Build();
- return this;
- }
- public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOptionalGroup &&
- result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.DefaultInstance) {
- result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
- } else {
- result.optionalGroup_ = value;
- }
- result.hasOptionalGroup = true;
- return this;
- }
- public Builder ClearOptionalGroup() {
- PrepareBuilder();
- result.hasOptionalGroup = false;
- result.optionalGroup_ = null;
- return this;
- }
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup> RepeatedGroupList {
- get { return PrepareBuilder().repeatedGroup_; }
- }
- public int RepeatedGroupCount {
- get { return result.RepeatedGroupCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup GetRepeatedGroup(int index) {
- return result.GetRepeatedGroup(index);
- }
- public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedGroup_[index] = value;
- return this;
- }
- public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedGroup_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedGroup_.Add(value);
- return this;
- }
- public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedGroup_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestParsingMerge.Types.RepeatedGroup> values) {
- PrepareBuilder();
- result.repeatedGroup_.Add(values);
- return this;
- }
- public Builder ClearRepeatedGroup() {
- PrepareBuilder();
- result.repeatedGroup_.Clear();
- return this;
- }
- }
- static TestParsingMerge() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class TestCommentInjectionMessage : pb::GeneratedMessage<TestCommentInjectionMessage, TestCommentInjectionMessage.Builder> {
- private TestCommentInjectionMessage() { }
- private static readonly TestCommentInjectionMessage defaultInstance = new TestCommentInjectionMessage().MakeReadOnly();
- private static readonly string[] _testCommentInjectionMessageFieldNames = new string[] { "a" };
- private static readonly uint[] _testCommentInjectionMessageFieldTags = new uint[] { 10 };
- public static TestCommentInjectionMessage DefaultInstance {
- get { return defaultInstance; }
- }
- public override TestCommentInjectionMessage DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override TestCommentInjectionMessage ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestCommentInjectionMessage__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<TestCommentInjectionMessage, TestCommentInjectionMessage.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_TestCommentInjectionMessage__FieldAccessorTable; }
- }
- public const int AFieldNumber = 1;
- private bool hasA;
- private string a_ = "*/ <- Neither should this.";
- public bool HasA {
- get { return hasA; }
- }
- public string A {
- get { return a_; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _testCommentInjectionMessageFieldNames;
- if (hasA) {
- output.WriteString(1, field_names[0], A);
- }
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeStringSize(1, A);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static TestCommentInjectionMessage ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestCommentInjectionMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestCommentInjectionMessage ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestCommentInjectionMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestCommentInjectionMessage ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestCommentInjectionMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestCommentInjectionMessage ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestCommentInjectionMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestCommentInjectionMessage ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestCommentInjectionMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestCommentInjectionMessage MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestCommentInjectionMessage prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<TestCommentInjectionMessage, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestCommentInjectionMessage cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private TestCommentInjectionMessage result;
- private TestCommentInjectionMessage PrepareBuilder() {
- if (resultIsReadOnly) {
- TestCommentInjectionMessage original = result;
- result = new TestCommentInjectionMessage();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override TestCommentInjectionMessage MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestCommentInjectionMessage.Descriptor; }
- }
- public override TestCommentInjectionMessage DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestCommentInjectionMessage.DefaultInstance; }
- }
- public override TestCommentInjectionMessage BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is TestCommentInjectionMessage) {
- return MergeFrom((TestCommentInjectionMessage) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(TestCommentInjectionMessage other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestCommentInjectionMessage.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testCommentInjectionMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testCommentInjectionMessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- result.hasA = input.ReadString(ref result.a_);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- public bool HasA {
- get { return result.hasA; }
- }
- public string A {
- get { return result.A; }
- set { SetA(value); }
- }
- public Builder SetA(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasA = true;
- result.a_ = value;
- return this;
- }
- public Builder ClearA() {
- PrepareBuilder();
- result.hasA = false;
- result.a_ = "*/ <- Neither should this.";
- return this;
- }
- }
- static TestCommentInjectionMessage() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class FooRequest : pb::GeneratedMessage<FooRequest, FooRequest.Builder> {
- private FooRequest() { }
- private static readonly FooRequest defaultInstance = new FooRequest().MakeReadOnly();
- private static readonly string[] _fooRequestFieldNames = new string[] { };
- private static readonly uint[] _fooRequestFieldTags = new uint[] { };
- public static FooRequest DefaultInstance {
- get { return defaultInstance; }
- }
- public override FooRequest DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override FooRequest ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_FooRequest__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<FooRequest, FooRequest.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _fooRequestFieldNames;
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static FooRequest ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static FooRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static FooRequest ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static FooRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static FooRequest ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static FooRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static FooRequest ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static FooRequest ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static FooRequest ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static FooRequest ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private FooRequest MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(FooRequest prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<FooRequest, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(FooRequest cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private FooRequest result;
- private FooRequest PrepareBuilder() {
- if (resultIsReadOnly) {
- FooRequest original = result;
- result = new FooRequest();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override FooRequest MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.FooRequest.Descriptor; }
- }
- public override FooRequest DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance; }
- }
- public override FooRequest BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is FooRequest) {
- return MergeFrom((FooRequest) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(FooRequest other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance) return this;
- PrepareBuilder();
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_fooRequestFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _fooRequestFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- }
- static FooRequest() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class FooResponse : pb::GeneratedMessage<FooResponse, FooResponse.Builder> {
- private FooResponse() { }
- private static readonly FooResponse defaultInstance = new FooResponse().MakeReadOnly();
- private static readonly string[] _fooResponseFieldNames = new string[] { };
- private static readonly uint[] _fooResponseFieldTags = new uint[] { };
- public static FooResponse DefaultInstance {
- get { return defaultInstance; }
- }
- public override FooResponse DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override FooResponse ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_FooResponse__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<FooResponse, FooResponse.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _fooResponseFieldNames;
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static FooResponse ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static FooResponse ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static FooResponse ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static FooResponse ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static FooResponse ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static FooResponse ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static FooResponse ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static FooResponse ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static FooResponse ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static FooResponse ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private FooResponse MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(FooResponse prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<FooResponse, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(FooResponse cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private FooResponse result;
- private FooResponse PrepareBuilder() {
- if (resultIsReadOnly) {
- FooResponse original = result;
- result = new FooResponse();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override FooResponse MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.FooResponse.Descriptor; }
- }
- public override FooResponse DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance; }
- }
- public override FooResponse BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is FooResponse) {
- return MergeFrom((FooResponse) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(FooResponse other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance) return this;
- PrepareBuilder();
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_fooResponseFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _fooResponseFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- }
- static FooResponse() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class FooClientMessage : pb::GeneratedMessage<FooClientMessage, FooClientMessage.Builder> {
- private FooClientMessage() { }
- private static readonly FooClientMessage defaultInstance = new FooClientMessage().MakeReadOnly();
- private static readonly string[] _fooClientMessageFieldNames = new string[] { };
- private static readonly uint[] _fooClientMessageFieldTags = new uint[] { };
- public static FooClientMessage DefaultInstance {
- get { return defaultInstance; }
- }
- public override FooClientMessage DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override FooClientMessage ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_FooClientMessage__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<FooClientMessage, FooClientMessage.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_FooClientMessage__FieldAccessorTable; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _fooClientMessageFieldNames;
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static FooClientMessage ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static FooClientMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static FooClientMessage ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static FooClientMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static FooClientMessage ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static FooClientMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static FooClientMessage ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static FooClientMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static FooClientMessage ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static FooClientMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private FooClientMessage MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(FooClientMessage prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<FooClientMessage, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(FooClientMessage cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private FooClientMessage result;
- private FooClientMessage PrepareBuilder() {
- if (resultIsReadOnly) {
- FooClientMessage original = result;
- result = new FooClientMessage();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override FooClientMessage MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.FooClientMessage.Descriptor; }
- }
- public override FooClientMessage DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.FooClientMessage.DefaultInstance; }
- }
- public override FooClientMessage BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is FooClientMessage) {
- return MergeFrom((FooClientMessage) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(FooClientMessage other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.FooClientMessage.DefaultInstance) return this;
- PrepareBuilder();
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_fooClientMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _fooClientMessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- }
- static FooClientMessage() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class FooServerMessage : pb::GeneratedMessage<FooServerMessage, FooServerMessage.Builder> {
- private FooServerMessage() { }
- private static readonly FooServerMessage defaultInstance = new FooServerMessage().MakeReadOnly();
- private static readonly string[] _fooServerMessageFieldNames = new string[] { };
- private static readonly uint[] _fooServerMessageFieldTags = new uint[] { };
- public static FooServerMessage DefaultInstance {
- get { return defaultInstance; }
- }
- public override FooServerMessage DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override FooServerMessage ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_FooServerMessage__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<FooServerMessage, FooServerMessage.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_FooServerMessage__FieldAccessorTable; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _fooServerMessageFieldNames;
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static FooServerMessage ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static FooServerMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static FooServerMessage ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static FooServerMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static FooServerMessage ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static FooServerMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static FooServerMessage ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static FooServerMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static FooServerMessage ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static FooServerMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private FooServerMessage MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(FooServerMessage prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<FooServerMessage, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(FooServerMessage cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private FooServerMessage result;
- private FooServerMessage PrepareBuilder() {
- if (resultIsReadOnly) {
- FooServerMessage original = result;
- result = new FooServerMessage();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override FooServerMessage MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.FooServerMessage.Descriptor; }
- }
- public override FooServerMessage DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.FooServerMessage.DefaultInstance; }
- }
- public override FooServerMessage BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is FooServerMessage) {
- return MergeFrom((FooServerMessage) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(FooServerMessage other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.FooServerMessage.DefaultInstance) return this;
- PrepareBuilder();
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_fooServerMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _fooServerMessageFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- }
- static FooServerMessage() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class BarRequest : pb::GeneratedMessage<BarRequest, BarRequest.Builder> {
- private BarRequest() { }
- private static readonly BarRequest defaultInstance = new BarRequest().MakeReadOnly();
- private static readonly string[] _barRequestFieldNames = new string[] { };
- private static readonly uint[] _barRequestFieldTags = new uint[] { };
- public static BarRequest DefaultInstance {
- get { return defaultInstance; }
- }
- public override BarRequest DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override BarRequest ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_BarRequest__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<BarRequest, BarRequest.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _barRequestFieldNames;
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static BarRequest ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static BarRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static BarRequest ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static BarRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static BarRequest ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static BarRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static BarRequest ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static BarRequest ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static BarRequest ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static BarRequest ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private BarRequest MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(BarRequest prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<BarRequest, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(BarRequest cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private BarRequest result;
- private BarRequest PrepareBuilder() {
- if (resultIsReadOnly) {
- BarRequest original = result;
- result = new BarRequest();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override BarRequest MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.BarRequest.Descriptor; }
- }
- public override BarRequest DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance; }
- }
- public override BarRequest BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is BarRequest) {
- return MergeFrom((BarRequest) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(BarRequest other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance) return this;
- PrepareBuilder();
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_barRequestFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _barRequestFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- }
- static BarRequest() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class BarResponse : pb::GeneratedMessage<BarResponse, BarResponse.Builder> {
- private BarResponse() { }
- private static readonly BarResponse defaultInstance = new BarResponse().MakeReadOnly();
- private static readonly string[] _barResponseFieldNames = new string[] { };
- private static readonly uint[] _barResponseFieldTags = new uint[] { };
- public static BarResponse DefaultInstance {
- get { return defaultInstance; }
- }
- public override BarResponse DefaultInstanceForType {
- get { return DefaultInstance; }
- }
- protected override BarResponse ThisMessage {
- get { return this; }
- }
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_BarResponse__Descriptor; }
- }
- protected override pb::FieldAccess.FieldAccessorTable<BarResponse, BarResponse.Builder> InternalFieldAccessors {
- get { return global::Google.ProtocolBuffers.TestProtos.Unittest.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; }
- }
- public override bool IsInitialized {
- get {
- return true;
- }
- }
- public override void WriteTo(pb::ICodedOutputStream output) {
- CalcSerializedSize();
- string[] field_names = _barResponseFieldNames;
- UnknownFields.WriteTo(output);
- }
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- return CalcSerializedSize();
- }
- }
- private int CalcSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- public static BarResponse ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static BarResponse ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static BarResponse ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static BarResponse ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static BarResponse ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static BarResponse ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static BarResponse ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static BarResponse ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static BarResponse ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static BarResponse ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private BarResponse MakeReadOnly() {
- return this;
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(BarResponse prototype) {
- return new Builder(prototype);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Builder : pb::GeneratedBuilder<BarResponse, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(BarResponse cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
- private bool resultIsReadOnly;
- private BarResponse result;
- private BarResponse PrepareBuilder() {
- if (resultIsReadOnly) {
- BarResponse original = result;
- result = new BarResponse();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
- protected override BarResponse MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Google.ProtocolBuffers.TestProtos.BarResponse.Descriptor; }
- }
- public override BarResponse DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance; }
- }
- public override BarResponse BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is BarResponse) {
- return MergeFrom((BarResponse) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
- public override Builder MergeFrom(BarResponse other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance) return this;
- PrepareBuilder();
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- pb::UnknownFieldSet.Builder unknownFields = null;
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_barResponseFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _barResponseFieldTags[field_ordinal];
- else {
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- }
- static BarResponse() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.Unittest.Descriptor, null);
- }
- }
- #endregion
- }
- #endregion Designer generated code
|