1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944 |
- // Generated by ProtoGen, Version=2.4.1.473, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT!
- #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()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public static partial class UnitTestLiteProtoFile {
-
- #region Extension registration
- public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtension);
- }
- #endregion
- #region Extensions
- public const int OptionalInt32ExtensionLiteFieldNumber = 1;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalInt32ExtensionLite;
- public const int OptionalInt64ExtensionLiteFieldNumber = 2;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalInt64ExtensionLite;
- public const int OptionalUint32ExtensionLiteFieldNumber = 3;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> OptionalUint32ExtensionLite;
- public const int OptionalUint64ExtensionLiteFieldNumber = 4;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> OptionalUint64ExtensionLite;
- public const int OptionalSint32ExtensionLiteFieldNumber = 5;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalSint32ExtensionLite;
- public const int OptionalSint64ExtensionLiteFieldNumber = 6;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalSint64ExtensionLite;
- public const int OptionalFixed32ExtensionLiteFieldNumber = 7;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> OptionalFixed32ExtensionLite;
- public const int OptionalFixed64ExtensionLiteFieldNumber = 8;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> OptionalFixed64ExtensionLite;
- public const int OptionalSfixed32ExtensionLiteFieldNumber = 9;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalSfixed32ExtensionLite;
- public const int OptionalSfixed64ExtensionLiteFieldNumber = 10;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalSfixed64ExtensionLite;
- public const int OptionalFloatExtensionLiteFieldNumber = 11;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> OptionalFloatExtensionLite;
- public const int OptionalDoubleExtensionLiteFieldNumber = 12;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> OptionalDoubleExtensionLite;
- public const int OptionalBoolExtensionLiteFieldNumber = 13;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> OptionalBoolExtensionLite;
- public const int OptionalStringExtensionLiteFieldNumber = 14;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalStringExtensionLite;
- public const int OptionalBytesExtensionLiteFieldNumber = 15;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> OptionalBytesExtensionLite;
- public const int OptionalGroupExtensionLiteFieldNumber = 16;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite> OptionalGroupExtensionLite;
- public const int OptionalNestedMessageExtensionLiteFieldNumber = 18;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> OptionalNestedMessageExtensionLite;
- public const int OptionalForeignMessageExtensionLiteFieldNumber = 19;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> OptionalForeignMessageExtensionLite;
- public const int OptionalImportMessageExtensionLiteFieldNumber = 20;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> OptionalImportMessageExtensionLite;
- public const int OptionalNestedEnumExtensionLiteFieldNumber = 21;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> OptionalNestedEnumExtensionLite;
- public const int OptionalForeignEnumExtensionLiteFieldNumber = 22;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> OptionalForeignEnumExtensionLite;
- public const int OptionalImportEnumExtensionLiteFieldNumber = 23;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> OptionalImportEnumExtensionLite;
- public const int OptionalStringPieceExtensionLiteFieldNumber = 24;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalStringPieceExtensionLite;
- public const int OptionalCordExtensionLiteFieldNumber = 25;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalCordExtensionLite;
- public const int RepeatedInt32ExtensionLiteFieldNumber = 31;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedInt32ExtensionLite;
- public const int RepeatedInt64ExtensionLiteFieldNumber = 32;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedInt64ExtensionLite;
- public const int RepeatedUint32ExtensionLiteFieldNumber = 33;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedUint32ExtensionLite;
- public const int RepeatedUint64ExtensionLiteFieldNumber = 34;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedUint64ExtensionLite;
- public const int RepeatedSint32ExtensionLiteFieldNumber = 35;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSint32ExtensionLite;
- public const int RepeatedSint64ExtensionLiteFieldNumber = 36;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSint64ExtensionLite;
- public const int RepeatedFixed32ExtensionLiteFieldNumber = 37;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedFixed32ExtensionLite;
- public const int RepeatedFixed64ExtensionLiteFieldNumber = 38;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedFixed64ExtensionLite;
- public const int RepeatedSfixed32ExtensionLiteFieldNumber = 39;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSfixed32ExtensionLite;
- public const int RepeatedSfixed64ExtensionLiteFieldNumber = 40;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSfixed64ExtensionLite;
- public const int RepeatedFloatExtensionLiteFieldNumber = 41;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> RepeatedFloatExtensionLite;
- public const int RepeatedDoubleExtensionLiteFieldNumber = 42;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> RepeatedDoubleExtensionLite;
- public const int RepeatedBoolExtensionLiteFieldNumber = 43;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> RepeatedBoolExtensionLite;
- public const int RepeatedStringExtensionLiteFieldNumber = 44;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringExtensionLite;
- public const int RepeatedBytesExtensionLiteFieldNumber = 45;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> RepeatedBytesExtensionLite;
- public const int RepeatedGroupExtensionLiteFieldNumber = 46;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite> RepeatedGroupExtensionLite;
- public const int RepeatedNestedMessageExtensionLiteFieldNumber = 48;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageExtensionLite;
- public const int RepeatedForeignMessageExtensionLiteFieldNumber = 49;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageExtensionLite;
- public const int RepeatedImportMessageExtensionLiteFieldNumber = 50;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageExtensionLite;
- public const int RepeatedNestedEnumExtensionLiteFieldNumber = 51;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumExtensionLite;
- public const int RepeatedForeignEnumExtensionLiteFieldNumber = 52;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumExtensionLite;
- public const int RepeatedImportEnumExtensionLiteFieldNumber = 53;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumExtensionLite;
- public const int RepeatedStringPieceExtensionLiteFieldNumber = 54;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringPieceExtensionLite;
- public const int RepeatedCordExtensionLiteFieldNumber = 55;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedCordExtensionLite;
- public const int DefaultInt32ExtensionLiteFieldNumber = 61;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultInt32ExtensionLite;
- public const int DefaultInt64ExtensionLiteFieldNumber = 62;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultInt64ExtensionLite;
- public const int DefaultUint32ExtensionLiteFieldNumber = 63;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> DefaultUint32ExtensionLite;
- public const int DefaultUint64ExtensionLiteFieldNumber = 64;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> DefaultUint64ExtensionLite;
- public const int DefaultSint32ExtensionLiteFieldNumber = 65;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultSint32ExtensionLite;
- public const int DefaultSint64ExtensionLiteFieldNumber = 66;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultSint64ExtensionLite;
- public const int DefaultFixed32ExtensionLiteFieldNumber = 67;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> DefaultFixed32ExtensionLite;
- public const int DefaultFixed64ExtensionLiteFieldNumber = 68;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> DefaultFixed64ExtensionLite;
- public const int DefaultSfixed32ExtensionLiteFieldNumber = 69;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultSfixed32ExtensionLite;
- public const int DefaultSfixed64ExtensionLiteFieldNumber = 70;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultSfixed64ExtensionLite;
- public const int DefaultFloatExtensionLiteFieldNumber = 71;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> DefaultFloatExtensionLite;
- public const int DefaultDoubleExtensionLiteFieldNumber = 72;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> DefaultDoubleExtensionLite;
- public const int DefaultBoolExtensionLiteFieldNumber = 73;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> DefaultBoolExtensionLite;
- public const int DefaultStringExtensionLiteFieldNumber = 74;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultStringExtensionLite;
- public const int DefaultBytesExtensionLiteFieldNumber = 75;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> DefaultBytesExtensionLite;
- public const int DefaultNestedEnumExtensionLiteFieldNumber = 81;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> DefaultNestedEnumExtensionLite;
- public const int DefaultForeignEnumExtensionLiteFieldNumber = 82;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> DefaultForeignEnumExtensionLite;
- public const int DefaultImportEnumExtensionLiteFieldNumber = 83;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> DefaultImportEnumExtensionLite;
- public const int DefaultStringPieceExtensionLiteFieldNumber = 84;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultStringPieceExtensionLite;
- public const int DefaultCordExtensionLiteFieldNumber = 85;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultCordExtensionLite;
- public const int PackedInt32ExtensionLiteFieldNumber = 90;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedInt32ExtensionLite;
- public const int PackedInt64ExtensionLiteFieldNumber = 91;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedInt64ExtensionLite;
- public const int PackedUint32ExtensionLiteFieldNumber = 92;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedUint32ExtensionLite;
- public const int PackedUint64ExtensionLiteFieldNumber = 93;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedUint64ExtensionLite;
- public const int PackedSint32ExtensionLiteFieldNumber = 94;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSint32ExtensionLite;
- public const int PackedSint64ExtensionLiteFieldNumber = 95;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSint64ExtensionLite;
- public const int PackedFixed32ExtensionLiteFieldNumber = 96;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedFixed32ExtensionLite;
- public const int PackedFixed64ExtensionLiteFieldNumber = 97;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedFixed64ExtensionLite;
- public const int PackedSfixed32ExtensionLiteFieldNumber = 98;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSfixed32ExtensionLite;
- public const int PackedSfixed64ExtensionLiteFieldNumber = 99;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSfixed64ExtensionLite;
- public const int PackedFloatExtensionLiteFieldNumber = 100;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float> PackedFloatExtensionLite;
- public const int PackedDoubleExtensionLiteFieldNumber = 101;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double> PackedDoubleExtensionLite;
- public const int PackedBoolExtensionLiteFieldNumber = 102;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool> PackedBoolExtensionLite;
- public const int PackedEnumExtensionLiteFieldNumber = 103;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumExtensionLite;
- #endregion
-
- #region Static variables
- #endregion
- #region Extensions
- internal static readonly object Descriptor;
- static UnitTestLiteProtoFile() {
- Descriptor = null;
- global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtension =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
- "protobuf_unittest.TestNestedExtensionLite.nested_extension",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(int),
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtensionFieldNumber,
- pbd::FieldType.Int32);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
- "protobuf_unittest.optional_int32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(int),
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLiteFieldNumber,
- pbd::FieldType.Int32);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
- "protobuf_unittest.optional_int64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(long),
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLiteFieldNumber,
- pbd::FieldType.Int64);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
- "protobuf_unittest.optional_uint32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(uint),
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLiteFieldNumber,
- pbd::FieldType.UInt32);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
- "protobuf_unittest.optional_uint64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(ulong),
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLiteFieldNumber,
- pbd::FieldType.UInt64);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
- "protobuf_unittest.optional_sint32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(int),
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLiteFieldNumber,
- pbd::FieldType.SInt32);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
- "protobuf_unittest.optional_sint64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(long),
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLiteFieldNumber,
- pbd::FieldType.SInt64);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
- "protobuf_unittest.optional_fixed32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(uint),
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLiteFieldNumber,
- pbd::FieldType.Fixed32);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
- "protobuf_unittest.optional_fixed64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(ulong),
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLiteFieldNumber,
- pbd::FieldType.Fixed64);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
- "protobuf_unittest.optional_sfixed32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(int),
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLiteFieldNumber,
- pbd::FieldType.SFixed32);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
- "protobuf_unittest.optional_sfixed64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(long),
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLiteFieldNumber,
- pbd::FieldType.SFixed64);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
- "protobuf_unittest.optional_float_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(float),
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLiteFieldNumber,
- pbd::FieldType.Float);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
- "protobuf_unittest.optional_double_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(double),
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLiteFieldNumber,
- pbd::FieldType.Double);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
- "protobuf_unittest.optional_bool_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(bool),
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLiteFieldNumber,
- pbd::FieldType.Bool);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
- "protobuf_unittest.optional_string_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLiteFieldNumber,
- pbd::FieldType.String);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
- "protobuf_unittest.optional_bytes_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLiteFieldNumber,
- pbd::FieldType.Bytes);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite>(
- "protobuf_unittest.optionalgroup_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLiteFieldNumber,
- pbd::FieldType.Group);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>(
- "protobuf_unittest.optional_nested_message_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLiteFieldNumber,
- pbd::FieldType.Message);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>(
- "protobuf_unittest.optional_foreign_message_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLiteFieldNumber,
- pbd::FieldType.Message);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>(
- "protobuf_unittest.optional_import_message_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLiteFieldNumber,
- pbd::FieldType.Message);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
- "protobuf_unittest.optional_nested_enum_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum),
- null,
- new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLiteFieldNumber,
- pbd::FieldType.Enum);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
- "protobuf_unittest.optional_foreign_enum_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite),
- null,
- new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLiteFieldNumber,
- pbd::FieldType.Enum);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
- "protobuf_unittest.optional_import_enum_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- default(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite),
- null,
- new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLiteFieldNumber,
- pbd::FieldType.Enum);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
- "protobuf_unittest.optional_string_piece_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLiteFieldNumber,
- pbd::FieldType.String);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
- "protobuf_unittest.optional_cord_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLiteFieldNumber,
- pbd::FieldType.String);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
- "protobuf_unittest.repeated_int32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLiteFieldNumber,
- pbd::FieldType.Int32,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
- "protobuf_unittest.repeated_int64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLiteFieldNumber,
- pbd::FieldType.Int64,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
- "protobuf_unittest.repeated_uint32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLiteFieldNumber,
- pbd::FieldType.UInt32,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
- "protobuf_unittest.repeated_uint64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLiteFieldNumber,
- pbd::FieldType.UInt64,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
- "protobuf_unittest.repeated_sint32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLiteFieldNumber,
- pbd::FieldType.SInt32,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
- "protobuf_unittest.repeated_sint64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLiteFieldNumber,
- pbd::FieldType.SInt64,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
- "protobuf_unittest.repeated_fixed32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLiteFieldNumber,
- pbd::FieldType.Fixed32,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
- "protobuf_unittest.repeated_fixed64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLiteFieldNumber,
- pbd::FieldType.Fixed64,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
- "protobuf_unittest.repeated_sfixed32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLiteFieldNumber,
- pbd::FieldType.SFixed32,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
- "protobuf_unittest.repeated_sfixed64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLiteFieldNumber,
- pbd::FieldType.SFixed64,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
- "protobuf_unittest.repeated_float_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLiteFieldNumber,
- pbd::FieldType.Float,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
- "protobuf_unittest.repeated_double_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLiteFieldNumber,
- pbd::FieldType.Double,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
- "protobuf_unittest.repeated_bool_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLiteFieldNumber,
- pbd::FieldType.Bool,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
- "protobuf_unittest.repeated_string_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLiteFieldNumber,
- pbd::FieldType.String,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
- "protobuf_unittest.repeated_bytes_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLiteFieldNumber,
- pbd::FieldType.Bytes,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite>(
- "protobuf_unittest.repeatedgroup_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLiteFieldNumber,
- pbd::FieldType.Group,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>(
- "protobuf_unittest.repeated_nested_message_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLiteFieldNumber,
- pbd::FieldType.Message,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>(
- "protobuf_unittest.repeated_foreign_message_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLiteFieldNumber,
- pbd::FieldType.Message,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>(
- "protobuf_unittest.repeated_import_message_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLiteFieldNumber,
- pbd::FieldType.Message,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
- "protobuf_unittest.repeated_nested_enum_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLiteFieldNumber,
- pbd::FieldType.Enum,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
- "protobuf_unittest.repeated_foreign_enum_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLiteFieldNumber,
- pbd::FieldType.Enum,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
- "protobuf_unittest.repeated_import_enum_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLiteFieldNumber,
- pbd::FieldType.Enum,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
- "protobuf_unittest.repeated_string_piece_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLiteFieldNumber,
- pbd::FieldType.String,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
- "protobuf_unittest.repeated_cord_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLiteFieldNumber,
- pbd::FieldType.String,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
- "protobuf_unittest.default_int32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- 41,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLiteFieldNumber,
- pbd::FieldType.Int32);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
- "protobuf_unittest.default_int64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- 42L,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLiteFieldNumber,
- pbd::FieldType.Int64);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
- "protobuf_unittest.default_uint32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- 43,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLiteFieldNumber,
- pbd::FieldType.UInt32);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
- "protobuf_unittest.default_uint64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- 44UL,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLiteFieldNumber,
- pbd::FieldType.UInt64);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
- "protobuf_unittest.default_sint32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- -45,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLiteFieldNumber,
- pbd::FieldType.SInt32);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
- "protobuf_unittest.default_sint64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- 46,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLiteFieldNumber,
- pbd::FieldType.SInt64);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
- "protobuf_unittest.default_fixed32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- 47,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLiteFieldNumber,
- pbd::FieldType.Fixed32);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
- "protobuf_unittest.default_fixed64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- 48,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLiteFieldNumber,
- pbd::FieldType.Fixed64);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
- "protobuf_unittest.default_sfixed32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- 49,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLiteFieldNumber,
- pbd::FieldType.SFixed32);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
- "protobuf_unittest.default_sfixed64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- -50,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLiteFieldNumber,
- pbd::FieldType.SFixed64);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
- "protobuf_unittest.default_float_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- 51.5F,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLiteFieldNumber,
- pbd::FieldType.Float);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
- "protobuf_unittest.default_double_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- 52000D,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLiteFieldNumber,
- pbd::FieldType.Double);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
- "protobuf_unittest.default_bool_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- true,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLiteFieldNumber,
- pbd::FieldType.Bool);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
- "protobuf_unittest.default_string_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- "hello",
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLiteFieldNumber,
- pbd::FieldType.String);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
- "protobuf_unittest.default_bytes_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- pb::ByteString.FromBase64("d29ybGQ="),
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLiteFieldNumber,
- pbd::FieldType.Bytes);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
- "protobuf_unittest.default_nested_enum_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR,
- null,
- new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLiteFieldNumber,
- pbd::FieldType.Enum);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
- "protobuf_unittest.default_foreign_enum_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR,
- null,
- new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLiteFieldNumber,
- pbd::FieldType.Enum);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
- "protobuf_unittest.default_import_enum_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR,
- null,
- new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLiteFieldNumber,
- pbd::FieldType.Enum);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
- "protobuf_unittest.default_string_piece_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- "abc",
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLiteFieldNumber,
- pbd::FieldType.String);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
- "protobuf_unittest.default_cord_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
- "123",
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLiteFieldNumber,
- pbd::FieldType.String);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
- "protobuf_unittest.packed_int32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLiteFieldNumber,
- pbd::FieldType.Int32,
- true);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
- "protobuf_unittest.packed_int64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLiteFieldNumber,
- pbd::FieldType.Int64,
- true);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>(
- "protobuf_unittest.packed_uint32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLiteFieldNumber,
- pbd::FieldType.UInt32,
- true);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>(
- "protobuf_unittest.packed_uint64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLiteFieldNumber,
- pbd::FieldType.UInt64,
- true);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
- "protobuf_unittest.packed_sint32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLiteFieldNumber,
- pbd::FieldType.SInt32,
- true);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
- "protobuf_unittest.packed_sint64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLiteFieldNumber,
- pbd::FieldType.SInt64,
- true);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>(
- "protobuf_unittest.packed_fixed32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLiteFieldNumber,
- pbd::FieldType.Fixed32,
- true);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>(
- "protobuf_unittest.packed_fixed64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLiteFieldNumber,
- pbd::FieldType.Fixed64,
- true);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
- "protobuf_unittest.packed_sfixed32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLiteFieldNumber,
- pbd::FieldType.SFixed32,
- true);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
- "protobuf_unittest.packed_sfixed64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLiteFieldNumber,
- pbd::FieldType.SFixed64,
- true);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float>(
- "protobuf_unittest.packed_float_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLiteFieldNumber,
- pbd::FieldType.Float,
- true);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double>(
- "protobuf_unittest.packed_double_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLiteFieldNumber,
- pbd::FieldType.Double,
- true);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool>(
- "protobuf_unittest.packed_bool_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLiteFieldNumber,
- pbd::FieldType.Bool,
- true);
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
- "protobuf_unittest.packed_enum_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
- null,
- new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
- global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLiteFieldNumber,
- pbd::FieldType.Enum,
- true);
- }
- #endregion
-
- }
- #region Enums
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public enum ForeignEnumLite {
- FOREIGN_LITE_FOO = 4,
- FOREIGN_LITE_BAR = 5,
- FOREIGN_LITE_BAZ = 6,
- }
-
- #endregion
-
- #region Messages
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class TestAllTypesLite : pb::GeneratedMessageLite<TestAllTypesLite, TestAllTypesLite.Builder> {
- private TestAllTypesLite() { }
- private static readonly TestAllTypesLite defaultInstance = new TestAllTypesLite().MakeReadOnly();
- private static readonly string[] _testAllTypesLiteFieldNames = 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", "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_nested_enum", "optional_nested_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_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[] _testAllTypesLiteFieldTags = new uint[] { 584, 602, 682, 577, 541, 545, 573, 656, 664, 488, 496, 648, 557, 561, 520, 528, 594, 674, 504, 512, 104, 122, 202, 97, 61, 65, 93, 176, 154, 184, 162, 8, 16, 168, 146, 77, 81, 40, 48, 114, 194, 24, 32, 131, 344, 362, 442, 337, 301, 305, 333, 416, 394, 424, 402, 248, 256, 408, 386, 317, 321, 280, 288, 354, 434, 264, 272, 371 };
- public static TestAllTypesLite DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override TestAllTypesLite DefaultInstanceForType {
- get { return DefaultInstance; }
- }
-
- protected override TestAllTypesLite ThisMessage {
- get { return this; }
- }
-
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public static partial class Types {
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public enum NestedEnum {
- FOO = 1,
- BAR = 2,
- BAZ = 3,
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class NestedMessage : pb::GeneratedMessageLite<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 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) {
- int size = SerializedSize;
- string[] field_names = _nestedMessageFieldNames;
- if (hasBb) {
- output.WriteInt32(1, field_names[0], Bb);
- }
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasBb) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
- }
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- if (hasBb) hash ^= bb_.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- NestedMessage other = obj as NestedMessage;
- if (other == null) return false;
- if (hasBb != other.hasBb || (hasBb && !bb_.Equals(other.bb_))) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- PrintField("bb", hasBb, bb_, writer);
- }
- #endregion
-
- 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()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class Builder : pb::GeneratedBuilderLite<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 NestedMessage DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance; }
- }
-
- public override NestedMessage BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite 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.TestAllTypesLite.Types.NestedMessage.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasBb) {
- Bb = other.Bb;
- }
- 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();
- 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 {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasBb = input.ReadInt32(ref result.bb_);
- break;
- }
- }
- }
-
- 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.UnitTestLiteProtoFile.Descriptor, null);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class OptionalGroup : pb::GeneratedMessageLite<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 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) {
- int size = SerializedSize;
- string[] field_names = _optionalGroupFieldNames;
- if (hasA) {
- output.WriteInt32(17, field_names[0], A);
- }
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeInt32Size(17, A);
- }
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- if (hasA) hash ^= a_.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- OptionalGroup other = obj as OptionalGroup;
- if (other == null) return false;
- if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- PrintField("a", hasA, a_, writer);
- }
- #endregion
-
- 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()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class Builder : pb::GeneratedBuilderLite<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 OptionalGroup DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance; }
- }
-
- public override OptionalGroup BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite 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.TestAllTypesLite.Types.OptionalGroup.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- 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();
- 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 {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- case 136: {
- result.hasA = input.ReadInt32(ref result.a_);
- break;
- }
- }
- }
-
- 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.UnitTestLiteProtoFile.Descriptor, null);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class RepeatedGroup : pb::GeneratedMessageLite<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 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) {
- int size = SerializedSize;
- string[] field_names = _repeatedGroupFieldNames;
- if (hasA) {
- output.WriteInt32(47, field_names[0], A);
- }
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeInt32Size(47, A);
- }
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- if (hasA) hash ^= a_.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- RepeatedGroup other = obj as RepeatedGroup;
- if (other == null) return false;
- if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- PrintField("a", hasA, a_, writer);
- }
- #endregion
-
- 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()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class Builder : pb::GeneratedBuilderLite<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 RepeatedGroup DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance; }
- }
-
- public override RepeatedGroup BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite 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.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- 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();
- 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 {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- case 376: {
- result.hasA = input.ReadInt32(ref result.a_);
- break;
- }
- }
- }
-
- 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.UnitTestLiteProtoFile.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.TestAllTypesLite.Types.OptionalGroup optionalGroup_;
- public bool HasOptionalGroup {
- get { return hasOptionalGroup; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup OptionalGroup {
- get { return optionalGroup_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance; }
- }
-
- public const int OptionalNestedMessageFieldNumber = 18;
- private bool hasOptionalNestedMessage;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage optionalNestedMessage_;
- public bool HasOptionalNestedMessage {
- get { return hasOptionalNestedMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage OptionalNestedMessage {
- get { return optionalNestedMessage_ ?? global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance; }
- }
-
- public const int OptionalForeignMessageFieldNumber = 19;
- private bool hasOptionalForeignMessage;
- private global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite optionalForeignMessage_;
- public bool HasOptionalForeignMessage {
- get { return hasOptionalForeignMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite OptionalForeignMessage {
- get { return optionalForeignMessage_ ?? global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance; }
- }
-
- public const int OptionalImportMessageFieldNumber = 20;
- private bool hasOptionalImportMessage;
- private global::Google.ProtocolBuffers.TestProtos.ImportMessageLite optionalImportMessage_;
- public bool HasOptionalImportMessage {
- get { return hasOptionalImportMessage; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite OptionalImportMessage {
- get { return optionalImportMessage_ ?? global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance; }
- }
-
- public const int OptionalNestedEnumFieldNumber = 21;
- private bool hasOptionalNestedEnum;
- private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.FOO;
- public bool HasOptionalNestedEnum {
- get { return hasOptionalNestedEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum OptionalNestedEnum {
- get { return optionalNestedEnum_; }
- }
-
- public const int OptionalForeignEnumFieldNumber = 22;
- private bool hasOptionalForeignEnum;
- private global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_FOO;
- public bool HasOptionalForeignEnum {
- get { return hasOptionalForeignEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite OptionalForeignEnum {
- get { return optionalForeignEnum_; }
- }
-
- public const int OptionalImportEnumFieldNumber = 23;
- private bool hasOptionalImportEnum;
- private global::Google.ProtocolBuffers.TestProtos.ImportEnumLite optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_FOO;
- public bool HasOptionalImportEnum {
- get { return hasOptionalImportEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite 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 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.TestAllTypesLite.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> RepeatedGroupList {
- get { return repeatedGroup_; }
- }
- public int RepeatedGroupCount {
- get { return repeatedGroup_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup GetRepeatedGroup(int index) {
- return repeatedGroup_[index];
- }
-
- public const int RepeatedNestedMessageFieldNumber = 48;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> repeatedNestedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageList {
- get { return repeatedNestedMessage_; }
- }
- public int RepeatedNestedMessageCount {
- get { return repeatedNestedMessage_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage GetRepeatedNestedMessage(int index) {
- return repeatedNestedMessage_[index];
- }
-
- public const int RepeatedForeignMessageFieldNumber = 49;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> repeatedForeignMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageList {
- get { return repeatedForeignMessage_; }
- }
- public int RepeatedForeignMessageCount {
- get { return repeatedForeignMessage_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite GetRepeatedForeignMessage(int index) {
- return repeatedForeignMessage_[index];
- }
-
- public const int RepeatedImportMessageFieldNumber = 50;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> repeatedImportMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageList {
- get { return repeatedImportMessage_; }
- }
- public int RepeatedImportMessageCount {
- get { return repeatedImportMessage_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite GetRepeatedImportMessage(int index) {
- return repeatedImportMessage_[index];
- }
-
- public const int RepeatedNestedEnumFieldNumber = 51;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> repeatedNestedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumList {
- get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
- }
- public int RepeatedNestedEnumCount {
- get { return repeatedNestedEnum_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum GetRepeatedNestedEnum(int index) {
- return repeatedNestedEnum_[index];
- }
-
- public const int RepeatedForeignEnumFieldNumber = 52;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> repeatedForeignEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumList {
- get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
- }
- public int RepeatedForeignEnumCount {
- get { return repeatedForeignEnum_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetRepeatedForeignEnum(int index) {
- return repeatedForeignEnum_[index];
- }
-
- public const int RepeatedImportEnumFieldNumber = 53;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> repeatedImportEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumList {
- get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
- }
- public int RepeatedImportEnumCount {
- get { return repeatedImportEnum_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite 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 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_ = 46;
- 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_ = 48;
- 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_ = -50;
- 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.FromBase64("d29ybGQ=");
- 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.TestAllTypesLite.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR;
- public bool HasDefaultNestedEnum {
- get { return hasDefaultNestedEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum DefaultNestedEnum {
- get { return defaultNestedEnum_; }
- }
-
- public const int DefaultForeignEnumFieldNumber = 82;
- private bool hasDefaultForeignEnum;
- private global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR;
- public bool HasDefaultForeignEnum {
- get { return hasDefaultForeignEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite DefaultForeignEnum {
- get { return defaultForeignEnum_; }
- }
-
- public const int DefaultImportEnumFieldNumber = 83;
- private bool hasDefaultImportEnum;
- private global::Google.ProtocolBuffers.TestProtos.ImportEnumLite defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR;
- public bool HasDefaultImportEnum {
- get { return hasDefaultImportEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite 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 override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::ICodedOutputStream output) {
- int size = SerializedSize;
- string[] field_names = _testAllTypesLiteFieldNames;
- if (hasOptionalInt32) {
- output.WriteInt32(1, field_names[31], OptionalInt32);
- }
- if (hasOptionalInt64) {
- output.WriteInt64(2, field_names[32], OptionalInt64);
- }
- if (hasOptionalUint32) {
- output.WriteUInt32(3, field_names[41], OptionalUint32);
- }
- if (hasOptionalUint64) {
- output.WriteUInt64(4, field_names[42], OptionalUint64);
- }
- if (hasOptionalSint32) {
- output.WriteSInt32(5, field_names[37], OptionalSint32);
- }
- if (hasOptionalSint64) {
- output.WriteSInt64(6, field_names[38], OptionalSint64);
- }
- if (hasOptionalFixed32) {
- output.WriteFixed32(7, field_names[24], OptionalFixed32);
- }
- if (hasOptionalFixed64) {
- output.WriteFixed64(8, field_names[25], OptionalFixed64);
- }
- if (hasOptionalSfixed32) {
- output.WriteSFixed32(9, field_names[35], OptionalSfixed32);
- }
- if (hasOptionalSfixed64) {
- output.WriteSFixed64(10, field_names[36], OptionalSfixed64);
- }
- if (hasOptionalFloat) {
- output.WriteFloat(11, field_names[26], OptionalFloat);
- }
- if (hasOptionalDouble) {
- output.WriteDouble(12, field_names[23], OptionalDouble);
- }
- if (hasOptionalBool) {
- output.WriteBool(13, field_names[20], OptionalBool);
- }
- if (hasOptionalString) {
- output.WriteString(14, field_names[39], OptionalString);
- }
- if (hasOptionalBytes) {
- output.WriteBytes(15, field_names[21], OptionalBytes);
- }
- if (hasOptionalGroup) {
- output.WriteGroup(16, field_names[43], OptionalGroup);
- }
- if (hasOptionalNestedMessage) {
- output.WriteMessage(18, field_names[34], OptionalNestedMessage);
- }
- if (hasOptionalForeignMessage) {
- output.WriteMessage(19, field_names[28], OptionalForeignMessage);
- }
- if (hasOptionalImportMessage) {
- output.WriteMessage(20, field_names[30], OptionalImportMessage);
- }
- if (hasOptionalNestedEnum) {
- output.WriteEnum(21, field_names[33], (int) OptionalNestedEnum, OptionalNestedEnum);
- }
- if (hasOptionalForeignEnum) {
- output.WriteEnum(22, field_names[27], (int) OptionalForeignEnum, OptionalForeignEnum);
- }
- if (hasOptionalImportEnum) {
- output.WriteEnum(23, field_names[29], (int) OptionalImportEnum, OptionalImportEnum);
- }
- if (hasOptionalStringPiece) {
- output.WriteString(24, field_names[40], OptionalStringPiece);
- }
- if (hasOptionalCord) {
- output.WriteString(25, field_names[22], OptionalCord);
- }
- if (repeatedInt32_.Count > 0) {
- output.WriteInt32Array(31, field_names[55], repeatedInt32_);
- }
- if (repeatedInt64_.Count > 0) {
- output.WriteInt64Array(32, field_names[56], repeatedInt64_);
- }
- if (repeatedUint32_.Count > 0) {
- output.WriteUInt32Array(33, field_names[65], repeatedUint32_);
- }
- if (repeatedUint64_.Count > 0) {
- output.WriteUInt64Array(34, field_names[66], repeatedUint64_);
- }
- if (repeatedSint32_.Count > 0) {
- output.WriteSInt32Array(35, field_names[61], repeatedSint32_);
- }
- if (repeatedSint64_.Count > 0) {
- output.WriteSInt64Array(36, field_names[62], repeatedSint64_);
- }
- if (repeatedFixed32_.Count > 0) {
- output.WriteFixed32Array(37, field_names[48], repeatedFixed32_);
- }
- if (repeatedFixed64_.Count > 0) {
- output.WriteFixed64Array(38, field_names[49], repeatedFixed64_);
- }
- if (repeatedSfixed32_.Count > 0) {
- output.WriteSFixed32Array(39, field_names[59], repeatedSfixed32_);
- }
- if (repeatedSfixed64_.Count > 0) {
- output.WriteSFixed64Array(40, field_names[60], repeatedSfixed64_);
- }
- if (repeatedFloat_.Count > 0) {
- output.WriteFloatArray(41, field_names[50], repeatedFloat_);
- }
- if (repeatedDouble_.Count > 0) {
- output.WriteDoubleArray(42, field_names[47], repeatedDouble_);
- }
- if (repeatedBool_.Count > 0) {
- output.WriteBoolArray(43, field_names[44], repeatedBool_);
- }
- if (repeatedString_.Count > 0) {
- output.WriteStringArray(44, field_names[63], repeatedString_);
- }
- if (repeatedBytes_.Count > 0) {
- output.WriteBytesArray(45, field_names[45], repeatedBytes_);
- }
- if (repeatedGroup_.Count > 0) {
- output.WriteGroupArray(46, field_names[67], repeatedGroup_);
- }
- if (repeatedNestedMessage_.Count > 0) {
- output.WriteMessageArray(48, field_names[58], repeatedNestedMessage_);
- }
- if (repeatedForeignMessage_.Count > 0) {
- output.WriteMessageArray(49, field_names[52], repeatedForeignMessage_);
- }
- if (repeatedImportMessage_.Count > 0) {
- output.WriteMessageArray(50, field_names[54], repeatedImportMessage_);
- }
- if (repeatedNestedEnum_.Count > 0) {
- output.WriteEnumArray(51, field_names[57], repeatedNestedEnum_);
- }
- if (repeatedForeignEnum_.Count > 0) {
- output.WriteEnumArray(52, field_names[51], repeatedForeignEnum_);
- }
- if (repeatedImportEnum_.Count > 0) {
- output.WriteEnumArray(53, field_names[53], repeatedImportEnum_);
- }
- if (repeatedStringPiece_.Count > 0) {
- output.WriteStringArray(54, field_names[64], repeatedStringPiece_);
- }
- if (repeatedCord_.Count > 0) {
- output.WriteStringArray(55, field_names[46], repeatedCord_);
- }
- 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);
- }
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- 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);
- }
- {
- 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.TestAllTypesLite.Types.RepeatedGroup element in RepeatedGroupList) {
- size += pb::CodedOutputStream.ComputeGroupSize(46, element);
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage element in RepeatedNestedMessageList) {
- size += pb::CodedOutputStream.ComputeMessageSize(48, element);
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite element in RepeatedForeignMessageList) {
- size += pb::CodedOutputStream.ComputeMessageSize(49, element);
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessageLite element in RepeatedImportMessageList) {
- size += pb::CodedOutputStream.ComputeMessageSize(50, element);
- }
- {
- int dataSize = 0;
- if (repeatedNestedEnum_.Count > 0) {
- foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.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.ForeignEnumLite 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.ImportEnumLite 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;
- }
- 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);
- }
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- if (hasOptionalInt32) hash ^= optionalInt32_.GetHashCode();
- if (hasOptionalInt64) hash ^= optionalInt64_.GetHashCode();
- if (hasOptionalUint32) hash ^= optionalUint32_.GetHashCode();
- if (hasOptionalUint64) hash ^= optionalUint64_.GetHashCode();
- if (hasOptionalSint32) hash ^= optionalSint32_.GetHashCode();
- if (hasOptionalSint64) hash ^= optionalSint64_.GetHashCode();
- if (hasOptionalFixed32) hash ^= optionalFixed32_.GetHashCode();
- if (hasOptionalFixed64) hash ^= optionalFixed64_.GetHashCode();
- if (hasOptionalSfixed32) hash ^= optionalSfixed32_.GetHashCode();
- if (hasOptionalSfixed64) hash ^= optionalSfixed64_.GetHashCode();
- if (hasOptionalFloat) hash ^= optionalFloat_.GetHashCode();
- if (hasOptionalDouble) hash ^= optionalDouble_.GetHashCode();
- if (hasOptionalBool) hash ^= optionalBool_.GetHashCode();
- if (hasOptionalString) hash ^= optionalString_.GetHashCode();
- if (hasOptionalBytes) hash ^= optionalBytes_.GetHashCode();
- if (hasOptionalGroup) hash ^= optionalGroup_.GetHashCode();
- if (hasOptionalNestedMessage) hash ^= optionalNestedMessage_.GetHashCode();
- if (hasOptionalForeignMessage) hash ^= optionalForeignMessage_.GetHashCode();
- if (hasOptionalImportMessage) hash ^= optionalImportMessage_.GetHashCode();
- if (hasOptionalNestedEnum) hash ^= optionalNestedEnum_.GetHashCode();
- if (hasOptionalForeignEnum) hash ^= optionalForeignEnum_.GetHashCode();
- if (hasOptionalImportEnum) hash ^= optionalImportEnum_.GetHashCode();
- if (hasOptionalStringPiece) hash ^= optionalStringPiece_.GetHashCode();
- if (hasOptionalCord) hash ^= optionalCord_.GetHashCode();
- foreach(int i in repeatedInt32_)
- hash ^= i.GetHashCode();
- foreach(long i in repeatedInt64_)
- hash ^= i.GetHashCode();
- foreach(uint i in repeatedUint32_)
- hash ^= i.GetHashCode();
- foreach(ulong i in repeatedUint64_)
- hash ^= i.GetHashCode();
- foreach(int i in repeatedSint32_)
- hash ^= i.GetHashCode();
- foreach(long i in repeatedSint64_)
- hash ^= i.GetHashCode();
- foreach(uint i in repeatedFixed32_)
- hash ^= i.GetHashCode();
- foreach(ulong i in repeatedFixed64_)
- hash ^= i.GetHashCode();
- foreach(int i in repeatedSfixed32_)
- hash ^= i.GetHashCode();
- foreach(long i in repeatedSfixed64_)
- hash ^= i.GetHashCode();
- foreach(float i in repeatedFloat_)
- hash ^= i.GetHashCode();
- foreach(double i in repeatedDouble_)
- hash ^= i.GetHashCode();
- foreach(bool i in repeatedBool_)
- hash ^= i.GetHashCode();
- foreach(string i in repeatedString_)
- hash ^= i.GetHashCode();
- foreach(pb::ByteString i in repeatedBytes_)
- hash ^= i.GetHashCode();
- foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup i in repeatedGroup_)
- hash ^= i.GetHashCode();
- foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage i in repeatedNestedMessage_)
- hash ^= i.GetHashCode();
- foreach(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite i in repeatedForeignMessage_)
- hash ^= i.GetHashCode();
- foreach(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite i in repeatedImportMessage_)
- hash ^= i.GetHashCode();
- foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum i in repeatedNestedEnum_)
- hash ^= i.GetHashCode();
- foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in repeatedForeignEnum_)
- hash ^= i.GetHashCode();
- foreach(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite i in repeatedImportEnum_)
- hash ^= i.GetHashCode();
- foreach(string i in repeatedStringPiece_)
- hash ^= i.GetHashCode();
- foreach(string i in repeatedCord_)
- hash ^= i.GetHashCode();
- if (hasDefaultInt32) hash ^= defaultInt32_.GetHashCode();
- if (hasDefaultInt64) hash ^= defaultInt64_.GetHashCode();
- if (hasDefaultUint32) hash ^= defaultUint32_.GetHashCode();
- if (hasDefaultUint64) hash ^= defaultUint64_.GetHashCode();
- if (hasDefaultSint32) hash ^= defaultSint32_.GetHashCode();
- if (hasDefaultSint64) hash ^= defaultSint64_.GetHashCode();
- if (hasDefaultFixed32) hash ^= defaultFixed32_.GetHashCode();
- if (hasDefaultFixed64) hash ^= defaultFixed64_.GetHashCode();
- if (hasDefaultSfixed32) hash ^= defaultSfixed32_.GetHashCode();
- if (hasDefaultSfixed64) hash ^= defaultSfixed64_.GetHashCode();
- if (hasDefaultFloat) hash ^= defaultFloat_.GetHashCode();
- if (hasDefaultDouble) hash ^= defaultDouble_.GetHashCode();
- if (hasDefaultBool) hash ^= defaultBool_.GetHashCode();
- if (hasDefaultString) hash ^= defaultString_.GetHashCode();
- if (hasDefaultBytes) hash ^= defaultBytes_.GetHashCode();
- if (hasDefaultNestedEnum) hash ^= defaultNestedEnum_.GetHashCode();
- if (hasDefaultForeignEnum) hash ^= defaultForeignEnum_.GetHashCode();
- if (hasDefaultImportEnum) hash ^= defaultImportEnum_.GetHashCode();
- if (hasDefaultStringPiece) hash ^= defaultStringPiece_.GetHashCode();
- if (hasDefaultCord) hash ^= defaultCord_.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- TestAllTypesLite other = obj as TestAllTypesLite;
- if (other == null) return false;
- if (hasOptionalInt32 != other.hasOptionalInt32 || (hasOptionalInt32 && !optionalInt32_.Equals(other.optionalInt32_))) return false;
- if (hasOptionalInt64 != other.hasOptionalInt64 || (hasOptionalInt64 && !optionalInt64_.Equals(other.optionalInt64_))) return false;
- if (hasOptionalUint32 != other.hasOptionalUint32 || (hasOptionalUint32 && !optionalUint32_.Equals(other.optionalUint32_))) return false;
- if (hasOptionalUint64 != other.hasOptionalUint64 || (hasOptionalUint64 && !optionalUint64_.Equals(other.optionalUint64_))) return false;
- if (hasOptionalSint32 != other.hasOptionalSint32 || (hasOptionalSint32 && !optionalSint32_.Equals(other.optionalSint32_))) return false;
- if (hasOptionalSint64 != other.hasOptionalSint64 || (hasOptionalSint64 && !optionalSint64_.Equals(other.optionalSint64_))) return false;
- if (hasOptionalFixed32 != other.hasOptionalFixed32 || (hasOptionalFixed32 && !optionalFixed32_.Equals(other.optionalFixed32_))) return false;
- if (hasOptionalFixed64 != other.hasOptionalFixed64 || (hasOptionalFixed64 && !optionalFixed64_.Equals(other.optionalFixed64_))) return false;
- if (hasOptionalSfixed32 != other.hasOptionalSfixed32 || (hasOptionalSfixed32 && !optionalSfixed32_.Equals(other.optionalSfixed32_))) return false;
- if (hasOptionalSfixed64 != other.hasOptionalSfixed64 || (hasOptionalSfixed64 && !optionalSfixed64_.Equals(other.optionalSfixed64_))) return false;
- if (hasOptionalFloat != other.hasOptionalFloat || (hasOptionalFloat && !optionalFloat_.Equals(other.optionalFloat_))) return false;
- if (hasOptionalDouble != other.hasOptionalDouble || (hasOptionalDouble && !optionalDouble_.Equals(other.optionalDouble_))) return false;
- if (hasOptionalBool != other.hasOptionalBool || (hasOptionalBool && !optionalBool_.Equals(other.optionalBool_))) return false;
- if (hasOptionalString != other.hasOptionalString || (hasOptionalString && !optionalString_.Equals(other.optionalString_))) return false;
- if (hasOptionalBytes != other.hasOptionalBytes || (hasOptionalBytes && !optionalBytes_.Equals(other.optionalBytes_))) return false;
- if (hasOptionalGroup != other.hasOptionalGroup || (hasOptionalGroup && !optionalGroup_.Equals(other.optionalGroup_))) return false;
- if (hasOptionalNestedMessage != other.hasOptionalNestedMessage || (hasOptionalNestedMessage && !optionalNestedMessage_.Equals(other.optionalNestedMessage_))) return false;
- if (hasOptionalForeignMessage != other.hasOptionalForeignMessage || (hasOptionalForeignMessage && !optionalForeignMessage_.Equals(other.optionalForeignMessage_))) return false;
- if (hasOptionalImportMessage != other.hasOptionalImportMessage || (hasOptionalImportMessage && !optionalImportMessage_.Equals(other.optionalImportMessage_))) return false;
- if (hasOptionalNestedEnum != other.hasOptionalNestedEnum || (hasOptionalNestedEnum && !optionalNestedEnum_.Equals(other.optionalNestedEnum_))) return false;
- if (hasOptionalForeignEnum != other.hasOptionalForeignEnum || (hasOptionalForeignEnum && !optionalForeignEnum_.Equals(other.optionalForeignEnum_))) return false;
- if (hasOptionalImportEnum != other.hasOptionalImportEnum || (hasOptionalImportEnum && !optionalImportEnum_.Equals(other.optionalImportEnum_))) return false;
- if (hasOptionalStringPiece != other.hasOptionalStringPiece || (hasOptionalStringPiece && !optionalStringPiece_.Equals(other.optionalStringPiece_))) return false;
- if (hasOptionalCord != other.hasOptionalCord || (hasOptionalCord && !optionalCord_.Equals(other.optionalCord_))) return false;
- if(repeatedInt32_.Count != other.repeatedInt32_.Count) return false;
- for(int ix=0; ix < repeatedInt32_.Count; ix++)
- if(!repeatedInt32_[ix].Equals(other.repeatedInt32_[ix])) return false;
- if(repeatedInt64_.Count != other.repeatedInt64_.Count) return false;
- for(int ix=0; ix < repeatedInt64_.Count; ix++)
- if(!repeatedInt64_[ix].Equals(other.repeatedInt64_[ix])) return false;
- if(repeatedUint32_.Count != other.repeatedUint32_.Count) return false;
- for(int ix=0; ix < repeatedUint32_.Count; ix++)
- if(!repeatedUint32_[ix].Equals(other.repeatedUint32_[ix])) return false;
- if(repeatedUint64_.Count != other.repeatedUint64_.Count) return false;
- for(int ix=0; ix < repeatedUint64_.Count; ix++)
- if(!repeatedUint64_[ix].Equals(other.repeatedUint64_[ix])) return false;
- if(repeatedSint32_.Count != other.repeatedSint32_.Count) return false;
- for(int ix=0; ix < repeatedSint32_.Count; ix++)
- if(!repeatedSint32_[ix].Equals(other.repeatedSint32_[ix])) return false;
- if(repeatedSint64_.Count != other.repeatedSint64_.Count) return false;
- for(int ix=0; ix < repeatedSint64_.Count; ix++)
- if(!repeatedSint64_[ix].Equals(other.repeatedSint64_[ix])) return false;
- if(repeatedFixed32_.Count != other.repeatedFixed32_.Count) return false;
- for(int ix=0; ix < repeatedFixed32_.Count; ix++)
- if(!repeatedFixed32_[ix].Equals(other.repeatedFixed32_[ix])) return false;
- if(repeatedFixed64_.Count != other.repeatedFixed64_.Count) return false;
- for(int ix=0; ix < repeatedFixed64_.Count; ix++)
- if(!repeatedFixed64_[ix].Equals(other.repeatedFixed64_[ix])) return false;
- if(repeatedSfixed32_.Count != other.repeatedSfixed32_.Count) return false;
- for(int ix=0; ix < repeatedSfixed32_.Count; ix++)
- if(!repeatedSfixed32_[ix].Equals(other.repeatedSfixed32_[ix])) return false;
- if(repeatedSfixed64_.Count != other.repeatedSfixed64_.Count) return false;
- for(int ix=0; ix < repeatedSfixed64_.Count; ix++)
- if(!repeatedSfixed64_[ix].Equals(other.repeatedSfixed64_[ix])) return false;
- if(repeatedFloat_.Count != other.repeatedFloat_.Count) return false;
- for(int ix=0; ix < repeatedFloat_.Count; ix++)
- if(!repeatedFloat_[ix].Equals(other.repeatedFloat_[ix])) return false;
- if(repeatedDouble_.Count != other.repeatedDouble_.Count) return false;
- for(int ix=0; ix < repeatedDouble_.Count; ix++)
- if(!repeatedDouble_[ix].Equals(other.repeatedDouble_[ix])) return false;
- if(repeatedBool_.Count != other.repeatedBool_.Count) return false;
- for(int ix=0; ix < repeatedBool_.Count; ix++)
- if(!repeatedBool_[ix].Equals(other.repeatedBool_[ix])) return false;
- if(repeatedString_.Count != other.repeatedString_.Count) return false;
- for(int ix=0; ix < repeatedString_.Count; ix++)
- if(!repeatedString_[ix].Equals(other.repeatedString_[ix])) return false;
- if(repeatedBytes_.Count != other.repeatedBytes_.Count) return false;
- for(int ix=0; ix < repeatedBytes_.Count; ix++)
- if(!repeatedBytes_[ix].Equals(other.repeatedBytes_[ix])) return false;
- if(repeatedGroup_.Count != other.repeatedGroup_.Count) return false;
- for(int ix=0; ix < repeatedGroup_.Count; ix++)
- if(!repeatedGroup_[ix].Equals(other.repeatedGroup_[ix])) return false;
- if(repeatedNestedMessage_.Count != other.repeatedNestedMessage_.Count) return false;
- for(int ix=0; ix < repeatedNestedMessage_.Count; ix++)
- if(!repeatedNestedMessage_[ix].Equals(other.repeatedNestedMessage_[ix])) return false;
- if(repeatedForeignMessage_.Count != other.repeatedForeignMessage_.Count) return false;
- for(int ix=0; ix < repeatedForeignMessage_.Count; ix++)
- if(!repeatedForeignMessage_[ix].Equals(other.repeatedForeignMessage_[ix])) return false;
- if(repeatedImportMessage_.Count != other.repeatedImportMessage_.Count) return false;
- for(int ix=0; ix < repeatedImportMessage_.Count; ix++)
- if(!repeatedImportMessage_[ix].Equals(other.repeatedImportMessage_[ix])) return false;
- if(repeatedNestedEnum_.Count != other.repeatedNestedEnum_.Count) return false;
- for(int ix=0; ix < repeatedNestedEnum_.Count; ix++)
- if(!repeatedNestedEnum_[ix].Equals(other.repeatedNestedEnum_[ix])) return false;
- if(repeatedForeignEnum_.Count != other.repeatedForeignEnum_.Count) return false;
- for(int ix=0; ix < repeatedForeignEnum_.Count; ix++)
- if(!repeatedForeignEnum_[ix].Equals(other.repeatedForeignEnum_[ix])) return false;
- if(repeatedImportEnum_.Count != other.repeatedImportEnum_.Count) return false;
- for(int ix=0; ix < repeatedImportEnum_.Count; ix++)
- if(!repeatedImportEnum_[ix].Equals(other.repeatedImportEnum_[ix])) return false;
- if(repeatedStringPiece_.Count != other.repeatedStringPiece_.Count) return false;
- for(int ix=0; ix < repeatedStringPiece_.Count; ix++)
- if(!repeatedStringPiece_[ix].Equals(other.repeatedStringPiece_[ix])) return false;
- if(repeatedCord_.Count != other.repeatedCord_.Count) return false;
- for(int ix=0; ix < repeatedCord_.Count; ix++)
- if(!repeatedCord_[ix].Equals(other.repeatedCord_[ix])) return false;
- if (hasDefaultInt32 != other.hasDefaultInt32 || (hasDefaultInt32 && !defaultInt32_.Equals(other.defaultInt32_))) return false;
- if (hasDefaultInt64 != other.hasDefaultInt64 || (hasDefaultInt64 && !defaultInt64_.Equals(other.defaultInt64_))) return false;
- if (hasDefaultUint32 != other.hasDefaultUint32 || (hasDefaultUint32 && !defaultUint32_.Equals(other.defaultUint32_))) return false;
- if (hasDefaultUint64 != other.hasDefaultUint64 || (hasDefaultUint64 && !defaultUint64_.Equals(other.defaultUint64_))) return false;
- if (hasDefaultSint32 != other.hasDefaultSint32 || (hasDefaultSint32 && !defaultSint32_.Equals(other.defaultSint32_))) return false;
- if (hasDefaultSint64 != other.hasDefaultSint64 || (hasDefaultSint64 && !defaultSint64_.Equals(other.defaultSint64_))) return false;
- if (hasDefaultFixed32 != other.hasDefaultFixed32 || (hasDefaultFixed32 && !defaultFixed32_.Equals(other.defaultFixed32_))) return false;
- if (hasDefaultFixed64 != other.hasDefaultFixed64 || (hasDefaultFixed64 && !defaultFixed64_.Equals(other.defaultFixed64_))) return false;
- if (hasDefaultSfixed32 != other.hasDefaultSfixed32 || (hasDefaultSfixed32 && !defaultSfixed32_.Equals(other.defaultSfixed32_))) return false;
- if (hasDefaultSfixed64 != other.hasDefaultSfixed64 || (hasDefaultSfixed64 && !defaultSfixed64_.Equals(other.defaultSfixed64_))) return false;
- if (hasDefaultFloat != other.hasDefaultFloat || (hasDefaultFloat && !defaultFloat_.Equals(other.defaultFloat_))) return false;
- if (hasDefaultDouble != other.hasDefaultDouble || (hasDefaultDouble && !defaultDouble_.Equals(other.defaultDouble_))) return false;
- if (hasDefaultBool != other.hasDefaultBool || (hasDefaultBool && !defaultBool_.Equals(other.defaultBool_))) return false;
- if (hasDefaultString != other.hasDefaultString || (hasDefaultString && !defaultString_.Equals(other.defaultString_))) return false;
- if (hasDefaultBytes != other.hasDefaultBytes || (hasDefaultBytes && !defaultBytes_.Equals(other.defaultBytes_))) return false;
- if (hasDefaultNestedEnum != other.hasDefaultNestedEnum || (hasDefaultNestedEnum && !defaultNestedEnum_.Equals(other.defaultNestedEnum_))) return false;
- if (hasDefaultForeignEnum != other.hasDefaultForeignEnum || (hasDefaultForeignEnum && !defaultForeignEnum_.Equals(other.defaultForeignEnum_))) return false;
- if (hasDefaultImportEnum != other.hasDefaultImportEnum || (hasDefaultImportEnum && !defaultImportEnum_.Equals(other.defaultImportEnum_))) return false;
- if (hasDefaultStringPiece != other.hasDefaultStringPiece || (hasDefaultStringPiece && !defaultStringPiece_.Equals(other.defaultStringPiece_))) return false;
- if (hasDefaultCord != other.hasDefaultCord || (hasDefaultCord && !defaultCord_.Equals(other.defaultCord_))) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- PrintField("optional_int32", hasOptionalInt32, optionalInt32_, writer);
- PrintField("optional_int64", hasOptionalInt64, optionalInt64_, writer);
- PrintField("optional_uint32", hasOptionalUint32, optionalUint32_, writer);
- PrintField("optional_uint64", hasOptionalUint64, optionalUint64_, writer);
- PrintField("optional_sint32", hasOptionalSint32, optionalSint32_, writer);
- PrintField("optional_sint64", hasOptionalSint64, optionalSint64_, writer);
- PrintField("optional_fixed32", hasOptionalFixed32, optionalFixed32_, writer);
- PrintField("optional_fixed64", hasOptionalFixed64, optionalFixed64_, writer);
- PrintField("optional_sfixed32", hasOptionalSfixed32, optionalSfixed32_, writer);
- PrintField("optional_sfixed64", hasOptionalSfixed64, optionalSfixed64_, writer);
- PrintField("optional_float", hasOptionalFloat, optionalFloat_, writer);
- PrintField("optional_double", hasOptionalDouble, optionalDouble_, writer);
- PrintField("optional_bool", hasOptionalBool, optionalBool_, writer);
- PrintField("optional_string", hasOptionalString, optionalString_, writer);
- PrintField("optional_bytes", hasOptionalBytes, optionalBytes_, writer);
- PrintField("OptionalGroup", hasOptionalGroup, optionalGroup_, writer);
- PrintField("optional_nested_message", hasOptionalNestedMessage, optionalNestedMessage_, writer);
- PrintField("optional_foreign_message", hasOptionalForeignMessage, optionalForeignMessage_, writer);
- PrintField("optional_import_message", hasOptionalImportMessage, optionalImportMessage_, writer);
- PrintField("optional_nested_enum", hasOptionalNestedEnum, optionalNestedEnum_, writer);
- PrintField("optional_foreign_enum", hasOptionalForeignEnum, optionalForeignEnum_, writer);
- PrintField("optional_import_enum", hasOptionalImportEnum, optionalImportEnum_, writer);
- PrintField("optional_string_piece", hasOptionalStringPiece, optionalStringPiece_, writer);
- PrintField("optional_cord", hasOptionalCord, optionalCord_, writer);
- PrintField("repeated_int32", repeatedInt32_, writer);
- PrintField("repeated_int64", repeatedInt64_, writer);
- PrintField("repeated_uint32", repeatedUint32_, writer);
- PrintField("repeated_uint64", repeatedUint64_, writer);
- PrintField("repeated_sint32", repeatedSint32_, writer);
- PrintField("repeated_sint64", repeatedSint64_, writer);
- PrintField("repeated_fixed32", repeatedFixed32_, writer);
- PrintField("repeated_fixed64", repeatedFixed64_, writer);
- PrintField("repeated_sfixed32", repeatedSfixed32_, writer);
- PrintField("repeated_sfixed64", repeatedSfixed64_, writer);
- PrintField("repeated_float", repeatedFloat_, writer);
- PrintField("repeated_double", repeatedDouble_, writer);
- PrintField("repeated_bool", repeatedBool_, writer);
- PrintField("repeated_string", repeatedString_, writer);
- PrintField("repeated_bytes", repeatedBytes_, writer);
- PrintField("RepeatedGroup", repeatedGroup_, writer);
- PrintField("repeated_nested_message", repeatedNestedMessage_, writer);
- PrintField("repeated_foreign_message", repeatedForeignMessage_, writer);
- PrintField("repeated_import_message", repeatedImportMessage_, writer);
- PrintField("repeated_nested_enum", repeatedNestedEnum_, writer);
- PrintField("repeated_foreign_enum", repeatedForeignEnum_, writer);
- PrintField("repeated_import_enum", repeatedImportEnum_, writer);
- PrintField("repeated_string_piece", repeatedStringPiece_, writer);
- PrintField("repeated_cord", repeatedCord_, writer);
- PrintField("default_int32", hasDefaultInt32, defaultInt32_, writer);
- PrintField("default_int64", hasDefaultInt64, defaultInt64_, writer);
- PrintField("default_uint32", hasDefaultUint32, defaultUint32_, writer);
- PrintField("default_uint64", hasDefaultUint64, defaultUint64_, writer);
- PrintField("default_sint32", hasDefaultSint32, defaultSint32_, writer);
- PrintField("default_sint64", hasDefaultSint64, defaultSint64_, writer);
- PrintField("default_fixed32", hasDefaultFixed32, defaultFixed32_, writer);
- PrintField("default_fixed64", hasDefaultFixed64, defaultFixed64_, writer);
- PrintField("default_sfixed32", hasDefaultSfixed32, defaultSfixed32_, writer);
- PrintField("default_sfixed64", hasDefaultSfixed64, defaultSfixed64_, writer);
- PrintField("default_float", hasDefaultFloat, defaultFloat_, writer);
- PrintField("default_double", hasDefaultDouble, defaultDouble_, writer);
- PrintField("default_bool", hasDefaultBool, defaultBool_, writer);
- PrintField("default_string", hasDefaultString, defaultString_, writer);
- PrintField("default_bytes", hasDefaultBytes, defaultBytes_, writer);
- PrintField("default_nested_enum", hasDefaultNestedEnum, defaultNestedEnum_, writer);
- PrintField("default_foreign_enum", hasDefaultForeignEnum, defaultForeignEnum_, writer);
- PrintField("default_import_enum", hasDefaultImportEnum, defaultImportEnum_, writer);
- PrintField("default_string_piece", hasDefaultStringPiece, defaultStringPiece_, writer);
- PrintField("default_cord", hasDefaultCord, defaultCord_, writer);
- }
- #endregion
-
- public static TestAllTypesLite ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestAllTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestAllTypesLite ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestAllTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestAllTypesLite ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestAllTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestAllTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestAllTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestAllTypesLite ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestAllTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestAllTypesLite 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();
- 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(TestAllTypesLite prototype) {
- return new Builder(prototype);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class Builder : pb::GeneratedBuilderLite<TestAllTypesLite, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestAllTypesLite cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
-
- private bool resultIsReadOnly;
- private TestAllTypesLite result;
-
- private TestAllTypesLite PrepareBuilder() {
- if (resultIsReadOnly) {
- TestAllTypesLite original = result;
- result = new TestAllTypesLite();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
-
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
-
- protected override TestAllTypesLite 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 TestAllTypesLite DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.DefaultInstance; }
- }
-
- public override TestAllTypesLite BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite other) {
- if (other is TestAllTypesLite) {
- return MergeFrom((TestAllTypesLite) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(TestAllTypesLite other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.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.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.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;
- }
- 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();
- 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(_testAllTypesLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testAllTypesLiteFieldTags[field_ordinal];
- else {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, 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.TestAllTypesLite.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.CreateBuilder();
- if (result.hasOptionalGroup) {
- subBuilder.MergeFrom(OptionalGroup);
- }
- input.ReadGroup(16, subBuilder, extensionRegistry);
- OptionalGroup = subBuilder.BuildPartial();
- break;
- }
- case 146: {
- global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.CreateBuilder();
- if (result.hasOptionalNestedMessage) {
- subBuilder.MergeFrom(OptionalNestedMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- OptionalNestedMessage = subBuilder.BuildPartial();
- break;
- }
- case 154: {
- global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder();
- if (result.hasOptionalForeignMessage) {
- subBuilder.MergeFrom(OptionalForeignMessage);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- OptionalForeignMessage = subBuilder.BuildPartial();
- break;
- }
- case 162: {
- global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.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) {
- }
- break;
- }
- case 176: {
- object unknown;
- if(input.ReadEnum(ref result.optionalForeignEnum_, out unknown)) {
- result.hasOptionalForeignEnum = true;
- } else if(unknown is int) {
- }
- break;
- }
- case 184: {
- object unknown;
- if(input.ReadEnum(ref result.optionalImportEnum_, out unknown)) {
- result.hasOptionalImportEnum = true;
- } else if(unknown is int) {
- }
- break;
- }
- case 194: {
- result.hasOptionalStringPiece = input.ReadString(ref result.optionalStringPiece_);
- break;
- }
- case 202: {
- result.hasOptionalCord = input.ReadString(ref result.optionalCord_);
- 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.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance, extensionRegistry);
- break;
- }
- case 386: {
- input.ReadMessageArray(tag, field_name, result.repeatedNestedMessage_, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance, extensionRegistry);
- break;
- }
- case 394: {
- input.ReadMessageArray(tag, field_name, result.repeatedForeignMessage_, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance, extensionRegistry);
- break;
- }
- case 402: {
- input.ReadMessageArray(tag, field_name, result.repeatedImportMessage_, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance, extensionRegistry);
- break;
- }
- case 410:
- case 408: {
- scg::ICollection<object> unknownItems;
- input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(tag, field_name, result.repeatedNestedEnum_, out unknownItems);
- break;
- }
- case 418:
- case 416: {
- scg::ICollection<object> unknownItems;
- input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(tag, field_name, result.repeatedForeignEnum_, out unknownItems);
- break;
- }
- case 426:
- case 424: {
- scg::ICollection<object> unknownItems;
- input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(tag, field_name, result.repeatedImportEnum_, out unknownItems);
- break;
- }
- case 434: {
- input.ReadStringArray(tag, field_name, result.repeatedStringPiece_);
- break;
- }
- case 442: {
- input.ReadStringArray(tag, field_name, result.repeatedCord_);
- 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) {
- }
- break;
- }
- case 656: {
- object unknown;
- if(input.ReadEnum(ref result.defaultForeignEnum_, out unknown)) {
- result.hasDefaultForeignEnum = true;
- } else if(unknown is int) {
- }
- break;
- }
- case 664: {
- object unknown;
- if(input.ReadEnum(ref result.defaultImportEnum_, out unknown)) {
- result.hasDefaultImportEnum = true;
- } else if(unknown is int) {
- }
- break;
- }
- case 674: {
- result.hasDefaultStringPiece = input.ReadString(ref result.defaultStringPiece_);
- break;
- }
- case 682: {
- result.hasDefaultCord = input.ReadString(ref result.defaultCord_);
- break;
- }
- }
- }
-
- 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_ = 0;
- 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_ = 0;
- 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_ = 0;
- 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.TestAllTypesLite.Types.OptionalGroup OptionalGroup {
- get { return result.OptionalGroup; }
- set { SetOptionalGroup(value); }
- }
- public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalGroup = true;
- result.optionalGroup_ = value;
- return this;
- }
- public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.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.TestAllTypesLite.Types.OptionalGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOptionalGroup &&
- result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance) {
- result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.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.TestAllTypesLite.Types.NestedMessage OptionalNestedMessage {
- get { return result.OptionalNestedMessage; }
- set { SetOptionalNestedMessage(value); }
- }
- public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalNestedMessage = true;
- result.optionalNestedMessage_ = value;
- return this;
- }
- public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.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.TestAllTypesLite.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOptionalNestedMessage &&
- result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance) {
- result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.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.ForeignMessageLite OptionalForeignMessage {
- get { return result.OptionalForeignMessage; }
- set { SetOptionalForeignMessage(value); }
- }
- public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalForeignMessage = true;
- result.optionalForeignMessage_ = value;
- return this;
- }
- public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasOptionalForeignMessage = true;
- result.optionalForeignMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOptionalForeignMessage &&
- result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance) {
- result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.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.ImportMessageLite OptionalImportMessage {
- get { return result.OptionalImportMessage; }
- set { SetOptionalImportMessage(value); }
- }
- public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasOptionalImportMessage = true;
- result.optionalImportMessage_ = value;
- return this;
- }
- public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.hasOptionalImportMessage = true;
- result.optionalImportMessage_ = builderForValue.Build();
- return this;
- }
- public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- if (result.hasOptionalImportMessage &&
- result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance) {
- result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.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.TestAllTypesLite.Types.NestedEnum OptionalNestedEnum {
- get { return result.OptionalNestedEnum; }
- set { SetOptionalNestedEnum(value); }
- }
- public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.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.TestAllTypesLite.Types.NestedEnum.FOO;
- return this;
- }
-
- public bool HasOptionalForeignEnum {
- get { return result.hasOptionalForeignEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite OptionalForeignEnum {
- get { return result.OptionalForeignEnum; }
- set { SetOptionalForeignEnum(value); }
- }
- public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
- PrepareBuilder();
- result.hasOptionalForeignEnum = true;
- result.optionalForeignEnum_ = value;
- return this;
- }
- public Builder ClearOptionalForeignEnum() {
- PrepareBuilder();
- result.hasOptionalForeignEnum = false;
- result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_FOO;
- return this;
- }
-
- public bool HasOptionalImportEnum {
- get { return result.hasOptionalImportEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite OptionalImportEnum {
- get { return result.OptionalImportEnum; }
- set { SetOptionalImportEnum(value); }
- }
- public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
- PrepareBuilder();
- result.hasOptionalImportEnum = true;
- result.optionalImportEnum_ = value;
- return this;
- }
- public Builder ClearOptionalImportEnum() {
- PrepareBuilder();
- result.hasOptionalImportEnum = false;
- result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_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 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.TestAllTypesLite.Types.RepeatedGroup> RepeatedGroupList {
- get { return PrepareBuilder().repeatedGroup_; }
- }
- public int RepeatedGroupCount {
- get { return result.RepeatedGroupCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup GetRepeatedGroup(int index) {
- return result.GetRepeatedGroup(index);
- }
- public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedGroup_[index] = value;
- return this;
- }
- public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedGroup_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedGroup_.Add(value);
- return this;
- }
- public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.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.TestAllTypesLite.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.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageList {
- get { return PrepareBuilder().repeatedNestedMessage_; }
- }
- public int RepeatedNestedMessageCount {
- get { return result.RepeatedNestedMessageCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage GetRepeatedNestedMessage(int index) {
- return result.GetRepeatedNestedMessage(index);
- }
- public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedNestedMessage_[index] = value;
- return this;
- }
- public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedNestedMessage_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedNestedMessage_.Add(value);
- return this;
- }
- public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.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.TestAllTypesLite.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.ForeignMessageLite> RepeatedForeignMessageList {
- get { return PrepareBuilder().repeatedForeignMessage_; }
- }
- public int RepeatedForeignMessageCount {
- get { return result.RepeatedForeignMessageCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite GetRepeatedForeignMessage(int index) {
- return result.GetRepeatedForeignMessage(index);
- }
- public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedForeignMessage_[index] = value;
- return this;
- }
- public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedForeignMessage_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedForeignMessage_.Add(value);
- return this;
- }
- public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedForeignMessage_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> values) {
- PrepareBuilder();
- result.repeatedForeignMessage_.Add(values);
- return this;
- }
- public Builder ClearRepeatedForeignMessage() {
- PrepareBuilder();
- result.repeatedForeignMessage_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageList {
- get { return PrepareBuilder().repeatedImportMessage_; }
- }
- public int RepeatedImportMessageCount {
- get { return result.RepeatedImportMessageCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite GetRepeatedImportMessage(int index) {
- return result.GetRepeatedImportMessage(index);
- }
- public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedImportMessage_[index] = value;
- return this;
- }
- public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedImportMessage_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.repeatedImportMessage_.Add(value);
- return this;
- }
- public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.repeatedImportMessage_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> values) {
- PrepareBuilder();
- result.repeatedImportMessage_.Add(values);
- return this;
- }
- public Builder ClearRepeatedImportMessage() {
- PrepareBuilder();
- result.repeatedImportMessage_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumList {
- get { return PrepareBuilder().repeatedNestedEnum_; }
- }
- public int RepeatedNestedEnumCount {
- get { return result.RepeatedNestedEnumCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum GetRepeatedNestedEnum(int index) {
- return result.GetRepeatedNestedEnum(index);
- }
- public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
- PrepareBuilder();
- result.repeatedNestedEnum_[index] = value;
- return this;
- }
- public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
- PrepareBuilder();
- result.repeatedNestedEnum_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.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.ForeignEnumLite> RepeatedForeignEnumList {
- get { return PrepareBuilder().repeatedForeignEnum_; }
- }
- public int RepeatedForeignEnumCount {
- get { return result.RepeatedForeignEnumCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetRepeatedForeignEnum(int index) {
- return result.GetRepeatedForeignEnum(index);
- }
- public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
- PrepareBuilder();
- result.repeatedForeignEnum_[index] = value;
- return this;
- }
- public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
- PrepareBuilder();
- result.repeatedForeignEnum_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) {
- PrepareBuilder();
- result.repeatedForeignEnum_.Add(values);
- return this;
- }
- public Builder ClearRepeatedForeignEnum() {
- PrepareBuilder();
- result.repeatedForeignEnum_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumList {
- get { return PrepareBuilder().repeatedImportEnum_; }
- }
- public int RepeatedImportEnumCount {
- get { return result.RepeatedImportEnumCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite GetRepeatedImportEnum(int index) {
- return result.GetRepeatedImportEnum(index);
- }
- public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
- PrepareBuilder();
- result.repeatedImportEnum_[index] = value;
- return this;
- }
- public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
- PrepareBuilder();
- result.repeatedImportEnum_.Add(value);
- return this;
- }
- public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> 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 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_ = 46;
- 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_ = 48;
- 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_ = -50;
- 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.FromBase64("d29ybGQ=");
- return this;
- }
-
- public bool HasDefaultNestedEnum {
- get { return result.hasDefaultNestedEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum DefaultNestedEnum {
- get { return result.DefaultNestedEnum; }
- set { SetDefaultNestedEnum(value); }
- }
- public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.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.TestAllTypesLite.Types.NestedEnum.BAR;
- return this;
- }
-
- public bool HasDefaultForeignEnum {
- get { return result.hasDefaultForeignEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite DefaultForeignEnum {
- get { return result.DefaultForeignEnum; }
- set { SetDefaultForeignEnum(value); }
- }
- public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
- PrepareBuilder();
- result.hasDefaultForeignEnum = true;
- result.defaultForeignEnum_ = value;
- return this;
- }
- public Builder ClearDefaultForeignEnum() {
- PrepareBuilder();
- result.hasDefaultForeignEnum = false;
- result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR;
- return this;
- }
-
- public bool HasDefaultImportEnum {
- get { return result.hasDefaultImportEnum; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite DefaultImportEnum {
- get { return result.DefaultImportEnum; }
- set { SetDefaultImportEnum(value); }
- }
- public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
- PrepareBuilder();
- result.hasDefaultImportEnum = true;
- result.defaultImportEnum_ = value;
- return this;
- }
- public Builder ClearDefaultImportEnum() {
- PrepareBuilder();
- result.hasDefaultImportEnum = false;
- result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_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;
- }
- }
- static TestAllTypesLite() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class ForeignMessageLite : pb::GeneratedMessageLite<ForeignMessageLite, ForeignMessageLite.Builder> {
- private ForeignMessageLite() { }
- private static readonly ForeignMessageLite defaultInstance = new ForeignMessageLite().MakeReadOnly();
- private static readonly string[] _foreignMessageLiteFieldNames = new string[] { "c" };
- private static readonly uint[] _foreignMessageLiteFieldTags = new uint[] { 8 };
- public static ForeignMessageLite DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override ForeignMessageLite DefaultInstanceForType {
- get { return DefaultInstance; }
- }
-
- protected override ForeignMessageLite ThisMessage {
- get { return this; }
- }
-
- 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) {
- int size = SerializedSize;
- string[] field_names = _foreignMessageLiteFieldNames;
- if (hasC) {
- output.WriteInt32(1, field_names[0], C);
- }
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasC) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, C);
- }
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- if (hasC) hash ^= c_.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- ForeignMessageLite other = obj as ForeignMessageLite;
- if (other == null) return false;
- if (hasC != other.hasC || (hasC && !c_.Equals(other.c_))) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- PrintField("c", hasC, c_, writer);
- }
- #endregion
-
- public static ForeignMessageLite ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static ForeignMessageLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static ForeignMessageLite ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static ForeignMessageLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static ForeignMessageLite ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static ForeignMessageLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static ForeignMessageLite ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static ForeignMessageLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static ForeignMessageLite ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static ForeignMessageLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private ForeignMessageLite 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(ForeignMessageLite prototype) {
- return new Builder(prototype);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class Builder : pb::GeneratedBuilderLite<ForeignMessageLite, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(ForeignMessageLite cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
-
- private bool resultIsReadOnly;
- private ForeignMessageLite result;
-
- private ForeignMessageLite PrepareBuilder() {
- if (resultIsReadOnly) {
- ForeignMessageLite original = result;
- result = new ForeignMessageLite();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
-
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
-
- protected override ForeignMessageLite 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 ForeignMessageLite DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance; }
- }
-
- public override ForeignMessageLite BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite other) {
- if (other is ForeignMessageLite) {
- return MergeFrom((ForeignMessageLite) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(ForeignMessageLite other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasC) {
- C = other.C;
- }
- 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();
- 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(_foreignMessageLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _foreignMessageLiteFieldTags[field_ordinal];
- else {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasC = input.ReadInt32(ref result.c_);
- break;
- }
- }
- }
-
- 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 ForeignMessageLite() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class TestPackedTypesLite : pb::GeneratedMessageLite<TestPackedTypesLite, TestPackedTypesLite.Builder> {
- private TestPackedTypesLite() { }
- private static readonly TestPackedTypesLite defaultInstance = new TestPackedTypesLite().MakeReadOnly();
- private static readonly string[] _testPackedTypesLiteFieldNames = 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[] _testPackedTypesLiteFieldTags = new uint[] { 818, 810, 826, 770, 778, 802, 722, 730, 786, 794, 754, 762, 738, 746 };
- public static TestPackedTypesLite DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override TestPackedTypesLite DefaultInstanceForType {
- get { return DefaultInstance; }
- }
-
- protected override TestPackedTypesLite ThisMessage {
- get { return this; }
- }
-
- 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.ForeignEnumLite> packedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumList {
- get { return pbc::Lists.AsReadOnly(packedEnum_); }
- }
- public int PackedEnumCount {
- get { return packedEnum_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetPackedEnum(int index) {
- return packedEnum_[index];
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::ICodedOutputStream output) {
- int size = SerializedSize;
- string[] field_names = _testPackedTypesLiteFieldNames;
- 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_);
- }
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- 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.ForeignEnumLite element in packedEnum_) {
- dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
- }
- size += dataSize;
- size += 2;
- size += pb::CodedOutputStream.ComputeRawVarint32Size((uint) dataSize);
- }
- packedEnumMemoizedSerializedSize = dataSize;
- }
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- foreach(int i in packedInt32_)
- hash ^= i.GetHashCode();
- foreach(long i in packedInt64_)
- hash ^= i.GetHashCode();
- foreach(uint i in packedUint32_)
- hash ^= i.GetHashCode();
- foreach(ulong i in packedUint64_)
- hash ^= i.GetHashCode();
- foreach(int i in packedSint32_)
- hash ^= i.GetHashCode();
- foreach(long i in packedSint64_)
- hash ^= i.GetHashCode();
- foreach(uint i in packedFixed32_)
- hash ^= i.GetHashCode();
- foreach(ulong i in packedFixed64_)
- hash ^= i.GetHashCode();
- foreach(int i in packedSfixed32_)
- hash ^= i.GetHashCode();
- foreach(long i in packedSfixed64_)
- hash ^= i.GetHashCode();
- foreach(float i in packedFloat_)
- hash ^= i.GetHashCode();
- foreach(double i in packedDouble_)
- hash ^= i.GetHashCode();
- foreach(bool i in packedBool_)
- hash ^= i.GetHashCode();
- foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in packedEnum_)
- hash ^= i.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- TestPackedTypesLite other = obj as TestPackedTypesLite;
- if (other == null) return false;
- if(packedInt32_.Count != other.packedInt32_.Count) return false;
- for(int ix=0; ix < packedInt32_.Count; ix++)
- if(!packedInt32_[ix].Equals(other.packedInt32_[ix])) return false;
- if(packedInt64_.Count != other.packedInt64_.Count) return false;
- for(int ix=0; ix < packedInt64_.Count; ix++)
- if(!packedInt64_[ix].Equals(other.packedInt64_[ix])) return false;
- if(packedUint32_.Count != other.packedUint32_.Count) return false;
- for(int ix=0; ix < packedUint32_.Count; ix++)
- if(!packedUint32_[ix].Equals(other.packedUint32_[ix])) return false;
- if(packedUint64_.Count != other.packedUint64_.Count) return false;
- for(int ix=0; ix < packedUint64_.Count; ix++)
- if(!packedUint64_[ix].Equals(other.packedUint64_[ix])) return false;
- if(packedSint32_.Count != other.packedSint32_.Count) return false;
- for(int ix=0; ix < packedSint32_.Count; ix++)
- if(!packedSint32_[ix].Equals(other.packedSint32_[ix])) return false;
- if(packedSint64_.Count != other.packedSint64_.Count) return false;
- for(int ix=0; ix < packedSint64_.Count; ix++)
- if(!packedSint64_[ix].Equals(other.packedSint64_[ix])) return false;
- if(packedFixed32_.Count != other.packedFixed32_.Count) return false;
- for(int ix=0; ix < packedFixed32_.Count; ix++)
- if(!packedFixed32_[ix].Equals(other.packedFixed32_[ix])) return false;
- if(packedFixed64_.Count != other.packedFixed64_.Count) return false;
- for(int ix=0; ix < packedFixed64_.Count; ix++)
- if(!packedFixed64_[ix].Equals(other.packedFixed64_[ix])) return false;
- if(packedSfixed32_.Count != other.packedSfixed32_.Count) return false;
- for(int ix=0; ix < packedSfixed32_.Count; ix++)
- if(!packedSfixed32_[ix].Equals(other.packedSfixed32_[ix])) return false;
- if(packedSfixed64_.Count != other.packedSfixed64_.Count) return false;
- for(int ix=0; ix < packedSfixed64_.Count; ix++)
- if(!packedSfixed64_[ix].Equals(other.packedSfixed64_[ix])) return false;
- if(packedFloat_.Count != other.packedFloat_.Count) return false;
- for(int ix=0; ix < packedFloat_.Count; ix++)
- if(!packedFloat_[ix].Equals(other.packedFloat_[ix])) return false;
- if(packedDouble_.Count != other.packedDouble_.Count) return false;
- for(int ix=0; ix < packedDouble_.Count; ix++)
- if(!packedDouble_[ix].Equals(other.packedDouble_[ix])) return false;
- if(packedBool_.Count != other.packedBool_.Count) return false;
- for(int ix=0; ix < packedBool_.Count; ix++)
- if(!packedBool_[ix].Equals(other.packedBool_[ix])) return false;
- if(packedEnum_.Count != other.packedEnum_.Count) return false;
- for(int ix=0; ix < packedEnum_.Count; ix++)
- if(!packedEnum_[ix].Equals(other.packedEnum_[ix])) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- PrintField("packed_int32", packedInt32_, writer);
- PrintField("packed_int64", packedInt64_, writer);
- PrintField("packed_uint32", packedUint32_, writer);
- PrintField("packed_uint64", packedUint64_, writer);
- PrintField("packed_sint32", packedSint32_, writer);
- PrintField("packed_sint64", packedSint64_, writer);
- PrintField("packed_fixed32", packedFixed32_, writer);
- PrintField("packed_fixed64", packedFixed64_, writer);
- PrintField("packed_sfixed32", packedSfixed32_, writer);
- PrintField("packed_sfixed64", packedSfixed64_, writer);
- PrintField("packed_float", packedFloat_, writer);
- PrintField("packed_double", packedDouble_, writer);
- PrintField("packed_bool", packedBool_, writer);
- PrintField("packed_enum", packedEnum_, writer);
- }
- #endregion
-
- public static TestPackedTypesLite ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestPackedTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestPackedTypesLite ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestPackedTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestPackedTypesLite ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestPackedTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestPackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestPackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestPackedTypesLite ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestPackedTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestPackedTypesLite 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(TestPackedTypesLite prototype) {
- return new Builder(prototype);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class Builder : pb::GeneratedBuilderLite<TestPackedTypesLite, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestPackedTypesLite cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
-
- private bool resultIsReadOnly;
- private TestPackedTypesLite result;
-
- private TestPackedTypesLite PrepareBuilder() {
- if (resultIsReadOnly) {
- TestPackedTypesLite original = result;
- result = new TestPackedTypesLite();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
-
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
-
- protected override TestPackedTypesLite 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 TestPackedTypesLite DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestPackedTypesLite.DefaultInstance; }
- }
-
- public override TestPackedTypesLite BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite other) {
- if (other is TestPackedTypesLite) {
- return MergeFrom((TestPackedTypesLite) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(TestPackedTypesLite other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedTypesLite.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_);
- }
- 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();
- 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(_testPackedTypesLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testPackedTypesLiteFieldTags[field_ordinal];
- else {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, 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.ForeignEnumLite>(tag, field_name, result.packedEnum_, out unknownItems);
- break;
- }
- }
- }
-
- 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.ForeignEnumLite> PackedEnumList {
- get { return PrepareBuilder().packedEnum_; }
- }
- public int PackedEnumCount {
- get { return result.PackedEnumCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetPackedEnum(int index) {
- return result.GetPackedEnum(index);
- }
- public Builder SetPackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
- PrepareBuilder();
- result.packedEnum_[index] = value;
- return this;
- }
- public Builder AddPackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
- PrepareBuilder();
- result.packedEnum_.Add(value);
- return this;
- }
- public Builder AddRangePackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) {
- PrepareBuilder();
- result.packedEnum_.Add(values);
- return this;
- }
- public Builder ClearPackedEnum() {
- PrepareBuilder();
- result.packedEnum_.Clear();
- return this;
- }
- }
- static TestPackedTypesLite() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class TestAllExtensionsLite : pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder> {
- private TestAllExtensionsLite() { }
- private static readonly TestAllExtensionsLite defaultInstance = new TestAllExtensionsLite().MakeReadOnly();
- private static readonly string[] _testAllExtensionsLiteFieldNames = new string[] { };
- private static readonly uint[] _testAllExtensionsLiteFieldTags = new uint[] { };
- public static TestAllExtensionsLite DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override TestAllExtensionsLite DefaultInstanceForType {
- get { return DefaultInstance; }
- }
-
- protected override TestAllExtensionsLite ThisMessage {
- get { return this; }
- }
-
- public override bool IsInitialized {
- get {
- if (!ExtensionsAreInitialized) return false;
- return true;
- }
- }
-
- public override void WriteTo(pb::ICodedOutputStream output) {
- int size = SerializedSize;
- string[] field_names = _testAllExtensionsLiteFieldNames;
- pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
- extensionWriter.WriteUntil(536870912, output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- size += ExtensionsSerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- hash ^= base.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- TestAllExtensionsLite other = obj as TestAllExtensionsLite;
- if (other == null) return false;
- if (!base.Equals(other)) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- base.PrintTo(writer);
- }
- #endregion
-
- public static TestAllExtensionsLite ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestAllExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestAllExtensionsLite ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestAllExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestAllExtensionsLite ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestAllExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestAllExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestAllExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestAllExtensionsLite ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestAllExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestAllExtensionsLite 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(TestAllExtensionsLite prototype) {
- return new Builder(prototype);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class Builder : pb::ExtendableBuilderLite<TestAllExtensionsLite, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestAllExtensionsLite cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
-
- private bool resultIsReadOnly;
- private TestAllExtensionsLite result;
-
- private TestAllExtensionsLite PrepareBuilder() {
- if (resultIsReadOnly) {
- TestAllExtensionsLite original = result;
- result = new TestAllExtensionsLite();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
-
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
-
- protected override TestAllExtensionsLite 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 TestAllExtensionsLite DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance; }
- }
-
- public override TestAllExtensionsLite BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite other) {
- if (other is TestAllExtensionsLite) {
- return MergeFrom((TestAllExtensionsLite) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(TestAllExtensionsLite other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance) return this;
- PrepareBuilder();
- this.MergeExtensionFields(other);
- 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();
- 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(_testAllExtensionsLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testAllExtensionsLiteFieldTags[field_ordinal];
- else {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
-
- return this;
- }
-
- }
- static TestAllExtensionsLite() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class OptionalGroup_extension_lite : pb::GeneratedMessageLite<OptionalGroup_extension_lite, OptionalGroup_extension_lite.Builder> {
- private OptionalGroup_extension_lite() { }
- private static readonly OptionalGroup_extension_lite defaultInstance = new OptionalGroup_extension_lite().MakeReadOnly();
- private static readonly string[] _optionalGroupExtensionLiteFieldNames = new string[] { "a" };
- private static readonly uint[] _optionalGroupExtensionLiteFieldTags = new uint[] { 136 };
- public static OptionalGroup_extension_lite DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override OptionalGroup_extension_lite DefaultInstanceForType {
- get { return DefaultInstance; }
- }
-
- protected override OptionalGroup_extension_lite ThisMessage {
- get { return this; }
- }
-
- 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) {
- int size = SerializedSize;
- string[] field_names = _optionalGroupExtensionLiteFieldNames;
- if (hasA) {
- output.WriteInt32(17, field_names[0], A);
- }
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeInt32Size(17, A);
- }
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- if (hasA) hash ^= a_.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- OptionalGroup_extension_lite other = obj as OptionalGroup_extension_lite;
- if (other == null) return false;
- if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- PrintField("a", hasA, a_, writer);
- }
- #endregion
-
- public static OptionalGroup_extension_lite ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static OptionalGroup_extension_lite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static OptionalGroup_extension_lite ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static OptionalGroup_extension_lite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static OptionalGroup_extension_lite ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static OptionalGroup_extension_lite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static OptionalGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static OptionalGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static OptionalGroup_extension_lite ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static OptionalGroup_extension_lite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private OptionalGroup_extension_lite 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_lite prototype) {
- return new Builder(prototype);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class Builder : pb::GeneratedBuilderLite<OptionalGroup_extension_lite, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(OptionalGroup_extension_lite cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
-
- private bool resultIsReadOnly;
- private OptionalGroup_extension_lite result;
-
- private OptionalGroup_extension_lite PrepareBuilder() {
- if (resultIsReadOnly) {
- OptionalGroup_extension_lite original = result;
- result = new OptionalGroup_extension_lite();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
-
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
-
- protected override OptionalGroup_extension_lite 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 OptionalGroup_extension_lite DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance; }
- }
-
- public override OptionalGroup_extension_lite BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite other) {
- if (other is OptionalGroup_extension_lite) {
- return MergeFrom((OptionalGroup_extension_lite) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(OptionalGroup_extension_lite other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- 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();
- 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(_optionalGroupExtensionLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _optionalGroupExtensionLiteFieldTags[field_ordinal];
- else {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- case 136: {
- result.hasA = input.ReadInt32(ref result.a_);
- break;
- }
- }
- }
-
- 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_lite() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class RepeatedGroup_extension_lite : pb::GeneratedMessageLite<RepeatedGroup_extension_lite, RepeatedGroup_extension_lite.Builder> {
- private RepeatedGroup_extension_lite() { }
- private static readonly RepeatedGroup_extension_lite defaultInstance = new RepeatedGroup_extension_lite().MakeReadOnly();
- private static readonly string[] _repeatedGroupExtensionLiteFieldNames = new string[] { "a" };
- private static readonly uint[] _repeatedGroupExtensionLiteFieldTags = new uint[] { 376 };
- public static RepeatedGroup_extension_lite DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override RepeatedGroup_extension_lite DefaultInstanceForType {
- get { return DefaultInstance; }
- }
-
- protected override RepeatedGroup_extension_lite ThisMessage {
- get { return this; }
- }
-
- 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) {
- int size = SerializedSize;
- string[] field_names = _repeatedGroupExtensionLiteFieldNames;
- if (hasA) {
- output.WriteInt32(47, field_names[0], A);
- }
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasA) {
- size += pb::CodedOutputStream.ComputeInt32Size(47, A);
- }
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- if (hasA) hash ^= a_.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- RepeatedGroup_extension_lite other = obj as RepeatedGroup_extension_lite;
- if (other == null) return false;
- if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- PrintField("a", hasA, a_, writer);
- }
- #endregion
-
- public static RepeatedGroup_extension_lite ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static RepeatedGroup_extension_lite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static RepeatedGroup_extension_lite ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static RepeatedGroup_extension_lite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static RepeatedGroup_extension_lite ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static RepeatedGroup_extension_lite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static RepeatedGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static RepeatedGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static RepeatedGroup_extension_lite ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static RepeatedGroup_extension_lite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private RepeatedGroup_extension_lite 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_lite prototype) {
- return new Builder(prototype);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class Builder : pb::GeneratedBuilderLite<RepeatedGroup_extension_lite, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(RepeatedGroup_extension_lite cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
-
- private bool resultIsReadOnly;
- private RepeatedGroup_extension_lite result;
-
- private RepeatedGroup_extension_lite PrepareBuilder() {
- if (resultIsReadOnly) {
- RepeatedGroup_extension_lite original = result;
- result = new RepeatedGroup_extension_lite();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
-
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
-
- protected override RepeatedGroup_extension_lite 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 RepeatedGroup_extension_lite DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance; }
- }
-
- public override RepeatedGroup_extension_lite BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite other) {
- if (other is RepeatedGroup_extension_lite) {
- return MergeFrom((RepeatedGroup_extension_lite) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(RepeatedGroup_extension_lite other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasA) {
- A = other.A;
- }
- 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();
- 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(_repeatedGroupExtensionLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _repeatedGroupExtensionLiteFieldTags[field_ordinal];
- else {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- case 376: {
- result.hasA = input.ReadInt32(ref result.a_);
- break;
- }
- }
- }
-
- 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_lite() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class TestPackedExtensionsLite : pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder> {
- private TestPackedExtensionsLite() { }
- private static readonly TestPackedExtensionsLite defaultInstance = new TestPackedExtensionsLite().MakeReadOnly();
- private static readonly string[] _testPackedExtensionsLiteFieldNames = new string[] { };
- private static readonly uint[] _testPackedExtensionsLiteFieldTags = new uint[] { };
- public static TestPackedExtensionsLite DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override TestPackedExtensionsLite DefaultInstanceForType {
- get { return DefaultInstance; }
- }
-
- protected override TestPackedExtensionsLite ThisMessage {
- get { return this; }
- }
-
- public override bool IsInitialized {
- get {
- if (!ExtensionsAreInitialized) return false;
- return true;
- }
- }
-
- public override void WriteTo(pb::ICodedOutputStream output) {
- int size = SerializedSize;
- string[] field_names = _testPackedExtensionsLiteFieldNames;
- pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
- extensionWriter.WriteUntil(536870912, output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- size += ExtensionsSerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- hash ^= base.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- TestPackedExtensionsLite other = obj as TestPackedExtensionsLite;
- if (other == null) return false;
- if (!base.Equals(other)) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- base.PrintTo(writer);
- }
- #endregion
-
- public static TestPackedExtensionsLite ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestPackedExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestPackedExtensionsLite ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestPackedExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestPackedExtensionsLite ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestPackedExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestPackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestPackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestPackedExtensionsLite ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestPackedExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestPackedExtensionsLite 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(TestPackedExtensionsLite prototype) {
- return new Builder(prototype);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class Builder : pb::ExtendableBuilderLite<TestPackedExtensionsLite, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestPackedExtensionsLite cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
-
- private bool resultIsReadOnly;
- private TestPackedExtensionsLite result;
-
- private TestPackedExtensionsLite PrepareBuilder() {
- if (resultIsReadOnly) {
- TestPackedExtensionsLite original = result;
- result = new TestPackedExtensionsLite();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
-
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
-
- protected override TestPackedExtensionsLite 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 TestPackedExtensionsLite DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance; }
- }
-
- public override TestPackedExtensionsLite BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite other) {
- if (other is TestPackedExtensionsLite) {
- return MergeFrom((TestPackedExtensionsLite) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(TestPackedExtensionsLite other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance) return this;
- PrepareBuilder();
- this.MergeExtensionFields(other);
- 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();
- 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(_testPackedExtensionsLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testPackedExtensionsLiteFieldTags[field_ordinal];
- else {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
-
- return this;
- }
-
- }
- static TestPackedExtensionsLite() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class TestNestedExtensionLite : pb::GeneratedMessageLite<TestNestedExtensionLite, TestNestedExtensionLite.Builder> {
- private TestNestedExtensionLite() { }
- private static readonly TestNestedExtensionLite defaultInstance = new TestNestedExtensionLite().MakeReadOnly();
- private static readonly string[] _testNestedExtensionLiteFieldNames = new string[] { };
- private static readonly uint[] _testNestedExtensionLiteFieldTags = new uint[] { };
- public static TestNestedExtensionLite DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override TestNestedExtensionLite DefaultInstanceForType {
- get { return DefaultInstance; }
- }
-
- protected override TestNestedExtensionLite ThisMessage {
- get { return this; }
- }
-
- public const int NestedExtensionFieldNumber = 12345;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> NestedExtension;
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::ICodedOutputStream output) {
- int size = SerializedSize;
- string[] field_names = _testNestedExtensionLiteFieldNames;
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- TestNestedExtensionLite other = obj as TestNestedExtensionLite;
- if (other == null) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- }
- #endregion
-
- public static TestNestedExtensionLite ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestNestedExtensionLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestNestedExtensionLite ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestNestedExtensionLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestNestedExtensionLite ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestNestedExtensionLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestNestedExtensionLite ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestNestedExtensionLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestNestedExtensionLite ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestNestedExtensionLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestNestedExtensionLite 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(TestNestedExtensionLite prototype) {
- return new Builder(prototype);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class Builder : pb::GeneratedBuilderLite<TestNestedExtensionLite, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestNestedExtensionLite cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
-
- private bool resultIsReadOnly;
- private TestNestedExtensionLite result;
-
- private TestNestedExtensionLite PrepareBuilder() {
- if (resultIsReadOnly) {
- TestNestedExtensionLite original = result;
- result = new TestNestedExtensionLite();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
-
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
-
- protected override TestNestedExtensionLite 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 TestNestedExtensionLite DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.DefaultInstance; }
- }
-
- public override TestNestedExtensionLite BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite other) {
- if (other is TestNestedExtensionLite) {
- return MergeFrom((TestNestedExtensionLite) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(TestNestedExtensionLite other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.DefaultInstance) return this;
- PrepareBuilder();
- 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();
- 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(_testNestedExtensionLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testNestedExtensionLiteFieldTags[field_ordinal];
- else {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
-
- return this;
- }
-
- }
- static TestNestedExtensionLite() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class TestDeprecatedLite : pb::GeneratedMessageLite<TestDeprecatedLite, TestDeprecatedLite.Builder> {
- private TestDeprecatedLite() { }
- private static readonly TestDeprecatedLite defaultInstance = new TestDeprecatedLite().MakeReadOnly();
- private static readonly string[] _testDeprecatedLiteFieldNames = new string[] { "deprecated_field" };
- private static readonly uint[] _testDeprecatedLiteFieldTags = new uint[] { 8 };
- public static TestDeprecatedLite DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override TestDeprecatedLite DefaultInstanceForType {
- get { return DefaultInstance; }
- }
-
- protected override TestDeprecatedLite ThisMessage {
- get { return this; }
- }
-
- public const int DeprecatedFieldFieldNumber = 1;
- private bool hasDeprecatedField;
- private int deprecatedField_;
- [global::System.ObsoleteAttribute()]
- public bool HasDeprecatedField {
- get { return hasDeprecatedField; }
- }
- [global::System.ObsoleteAttribute()]
- public int DeprecatedField {
- get { return deprecatedField_; }
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::ICodedOutputStream output) {
- int size = SerializedSize;
- string[] field_names = _testDeprecatedLiteFieldNames;
- if (hasDeprecatedField) {
- output.WriteInt32(1, field_names[0], DeprecatedField);
- }
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasDeprecatedField) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, DeprecatedField);
- }
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- if (hasDeprecatedField) hash ^= deprecatedField_.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- TestDeprecatedLite other = obj as TestDeprecatedLite;
- if (other == null) return false;
- if (hasDeprecatedField != other.hasDeprecatedField || (hasDeprecatedField && !deprecatedField_.Equals(other.deprecatedField_))) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- PrintField("deprecated_field", hasDeprecatedField, deprecatedField_, writer);
- }
- #endregion
-
- public static TestDeprecatedLite ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestDeprecatedLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestDeprecatedLite ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestDeprecatedLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestDeprecatedLite ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestDeprecatedLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestDeprecatedLite ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestDeprecatedLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestDeprecatedLite ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestDeprecatedLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestDeprecatedLite 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(TestDeprecatedLite prototype) {
- return new Builder(prototype);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
- public sealed partial class Builder : pb::GeneratedBuilderLite<TestDeprecatedLite, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestDeprecatedLite cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
-
- private bool resultIsReadOnly;
- private TestDeprecatedLite result;
-
- private TestDeprecatedLite PrepareBuilder() {
- if (resultIsReadOnly) {
- TestDeprecatedLite original = result;
- result = new TestDeprecatedLite();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
-
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
-
- protected override TestDeprecatedLite 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 TestDeprecatedLite DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestDeprecatedLite.DefaultInstance; }
- }
-
- public override TestDeprecatedLite BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite other) {
- if (other is TestDeprecatedLite) {
- return MergeFrom((TestDeprecatedLite) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(TestDeprecatedLite other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestDeprecatedLite.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasDeprecatedField) {
- DeprecatedField = other.DeprecatedField;
- }
- 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();
- 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(_testDeprecatedLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testDeprecatedLiteFieldTags[field_ordinal];
- else {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasDeprecatedField = input.ReadInt32(ref result.deprecatedField_);
- break;
- }
- }
- }
-
- return this;
- }
-
-
- [global::System.ObsoleteAttribute()]
- public bool HasDeprecatedField {
- get { return result.hasDeprecatedField; }
- }
- [global::System.ObsoleteAttribute()]
- public int DeprecatedField {
- get { return result.DeprecatedField; }
- set { SetDeprecatedField(value); }
- }
- [global::System.ObsoleteAttribute()]
- public Builder SetDeprecatedField(int value) {
- PrepareBuilder();
- result.hasDeprecatedField = true;
- result.deprecatedField_ = value;
- return this;
- }
- [global::System.ObsoleteAttribute()]
- public Builder ClearDeprecatedField() {
- PrepareBuilder();
- result.hasDeprecatedField = false;
- result.deprecatedField_ = 0;
- return this;
- }
- }
- static TestDeprecatedLite() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
- }
- }
-
- #endregion
-
- }
- #endregion Designer generated code
|