UnitTestProtoFile.cs 578 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. using pb = global::Google.ProtocolBuffers;
  3. using pbc = global::Google.ProtocolBuffers.Collections;
  4. using pbd = global::Google.ProtocolBuffers.Descriptors;
  5. using scg = global::System.Collections.Generic;
  6. namespace Google.ProtocolBuffers.TestProtos {
  7. public static partial class UnitTestProtoFile {
  8. #region Descriptor
  9. public static pbd::FileDescriptor Descriptor {
  10. get { return descriptor; }
  11. }
  12. private static readonly pbd::FileDescriptor descriptor = pbd::FileDescriptor.InternalBuildGeneratedFileFrom (
  13. new byte[] {
  14. 0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x75, 0x6e,
  15. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  16. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
  17. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d,
  18. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbb, 0x15, 0x0a, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x41,
  19. 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f,
  20. 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x16, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f,
  21. 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x12, 0x17, 0x0a, 0x0f, 0x6f,
  22. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d,
  23. 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18,
  24. 0x04, 0x20, 0x01, 0x28, 0x04, 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x69,
  25. 0x6e, 0x74, 0x33, 0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x11, 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  26. 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x06, 0x20, 0x01, 0x28, 0x12, 0x12, 0x18, 0x0a, 0x10, 0x6f,
  27. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28,
  28. 0x07, 0x12, 0x18, 0x0a, 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36,
  29. 0x34, 0x18, 0x08, 0x20, 0x01, 0x28, 0x06, 0x12, 0x19, 0x0a, 0x11, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f,
  30. 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0f, 0x12, 0x19, 0x0a, 0x11, 0x6f, 0x70,
  31. 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, 0x28,
  32. 0x10, 0x12, 0x16, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18,
  33. 0x0b, 0x20, 0x01, 0x28, 0x02, 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x6f,
  34. 0x75, 0x62, 0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x01, 0x12, 0x15, 0x0a, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  35. 0x61, 0x6c, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x12, 0x17, 0x0a, 0x0f, 0x6f, 0x70, 0x74,
  36. 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x12, 0x16,
  37. 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01,
  38. 0x28, 0x0c, 0x12, 0x44, 0x0a, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18,
  39. 0x10, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  40. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4f,
  41. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x4e, 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69,
  42. 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
  43. 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  44. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e,
  45. 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x43, 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x69,
  46. 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  47. 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  48. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  49. 0x65, 0x12, 0x48, 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74,
  50. 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f,
  51. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72,
  52. 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x14, 0x6f,
  53. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18,
  54. 0x15, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  55. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e,
  56. 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x3d, 0x0a, 0x15, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  57. 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e,
  58. 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  59. 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x42, 0x0a, 0x14, 0x6f, 0x70, 0x74, 0x69,
  60. 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x17, 0x20, 0x01,
  61. 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  62. 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d,
  63. 0x12, 0x21, 0x0a, 0x15, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f,
  64. 0x70, 0x69, 0x65, 0x63, 0x65, 0x18, 0x18, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x12, 0x19, 0x0a, 0x0d, 0x6f,
  65. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02,
  66. 0x08, 0x01, 0x12, 0x16, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32,
  67. 0x18, 0x1f, 0x20, 0x03, 0x28, 0x05, 0x12, 0x16, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69,
  68. 0x6e, 0x74, 0x36, 0x34, 0x18, 0x20, 0x20, 0x03, 0x28, 0x03, 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  69. 0x65, 0x64, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x21, 0x20, 0x03, 0x28, 0x0d, 0x12, 0x17, 0x0a, 0x0f, 0x72,
  70. 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x22, 0x20, 0x03, 0x28, 0x04,
  71. 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18,
  72. 0x23, 0x20, 0x03, 0x28, 0x11, 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x69,
  73. 0x6e, 0x74, 0x36, 0x34, 0x18, 0x24, 0x20, 0x03, 0x28, 0x12, 0x12, 0x18, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  74. 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x25, 0x20, 0x03, 0x28, 0x07, 0x12, 0x18, 0x0a, 0x10,
  75. 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x26, 0x20, 0x03,
  76. 0x28, 0x06, 0x12, 0x19, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65,
  77. 0x64, 0x33, 0x32, 0x18, 0x27, 0x20, 0x03, 0x28, 0x0f, 0x12, 0x19, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65,
  78. 0x64, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x28, 0x20, 0x03, 0x28, 0x10, 0x12, 0x16, 0x0a, 0x0e,
  79. 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x29, 0x20, 0x03, 0x28, 0x02,
  80. 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18,
  81. 0x2a, 0x20, 0x03, 0x28, 0x01, 0x12, 0x15, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x6f,
  82. 0x6f, 0x6c, 0x18, 0x2b, 0x20, 0x03, 0x28, 0x08, 0x12, 0x17, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64,
  83. 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x2c, 0x20, 0x03, 0x28, 0x09, 0x12, 0x16, 0x0a, 0x0e, 0x72, 0x65, 0x70,
  84. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x2d, 0x20, 0x03, 0x28, 0x0c, 0x12, 0x44, 0x0a,
  85. 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x2e, 0x20, 0x03, 0x28, 0x0a,
  86. 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  87. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74,
  88. 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x4e, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  89. 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x30, 0x20, 0x03, 0x28, 0x0b,
  90. 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  91. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
  92. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x43, 0x0a, 0x18, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  93. 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x31, 0x20, 0x03, 0x28,
  94. 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  95. 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x17,
  96. 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73,
  97. 0x61, 0x67, 0x65, 0x18, 0x32, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  98. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70,
  99. 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  100. 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x33, 0x20, 0x03, 0x28, 0x0e,
  101. 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  102. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
  103. 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x3d, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72,
  104. 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x34, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72,
  105. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65,
  106. 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x42, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  107. 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x35, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x24, 0x2e,
  108. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d,
  109. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x21, 0x0a, 0x15, 0x72,
  110. 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65,
  111. 0x18, 0x36, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x12, 0x19, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  112. 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x37, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x01, 0x12, 0x19, 0x0a,
  113. 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x3d, 0x20, 0x01, 0x28, 0x05,
  114. 0x3a, 0x02, 0x34, 0x31, 0x12, 0x19, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x36,
  115. 0x34, 0x18, 0x3e, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x02, 0x34, 0x32, 0x12, 0x1a, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75,
  116. 0x6c, 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x3f, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x02, 0x34, 0x33, 0x12,
  117. 0x1a, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x40, 0x20,
  118. 0x01, 0x28, 0x04, 0x3a, 0x02, 0x34, 0x34, 0x12, 0x1b, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73,
  119. 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x41, 0x20, 0x01, 0x28, 0x11, 0x3a, 0x03, 0x2d, 0x34, 0x35, 0x12, 0x1a, 0x0a, 0x0e,
  120. 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x42, 0x20, 0x01, 0x28, 0x12,
  121. 0x3a, 0x02, 0x34, 0x36, 0x12, 0x1b, 0x0a, 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65,
  122. 0x64, 0x33, 0x32, 0x18, 0x43, 0x20, 0x01, 0x28, 0x07, 0x3a, 0x02, 0x34, 0x37, 0x12, 0x1b, 0x0a, 0x0f, 0x64, 0x65, 0x66,
  123. 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x44, 0x20, 0x01, 0x28, 0x06, 0x3a, 0x02,
  124. 0x34, 0x38, 0x12, 0x1c, 0x0a, 0x10, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64,
  125. 0x33, 0x32, 0x18, 0x45, 0x20, 0x01, 0x28, 0x0f, 0x3a, 0x02, 0x34, 0x39, 0x12, 0x1d, 0x0a, 0x10, 0x64, 0x65, 0x66, 0x61,
  126. 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x46, 0x20, 0x01, 0x28, 0x10, 0x3a, 0x03,
  127. 0x2d, 0x35, 0x30, 0x12, 0x1b, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74,
  128. 0x18, 0x47, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x04, 0x35, 0x31, 0x2e, 0x35, 0x12, 0x1d, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61,
  129. 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x48, 0x20, 0x01, 0x28, 0x01, 0x3a, 0x05, 0x35, 0x32,
  130. 0x30, 0x30, 0x30, 0x12, 0x1a, 0x0a, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18,
  131. 0x49, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x04, 0x74, 0x72, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75,
  132. 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x4a, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x05, 0x68, 0x65, 0x6c,
  133. 0x6c, 0x6f, 0x12, 0x1c, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18,
  134. 0x4b, 0x20, 0x01, 0x28, 0x0c, 0x3a, 0x05, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x12, 0x4c, 0x0a, 0x13, 0x64, 0x65, 0x66, 0x61,
  135. 0x75, 0x6c, 0x74, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x51, 0x20, 0x01, 0x28,
  136. 0x0e, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  137. 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65,
  138. 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x03, 0x42, 0x41, 0x52, 0x12, 0x49, 0x0a, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c,
  139. 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x52, 0x20, 0x01, 0x28, 0x0e,
  140. 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  141. 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x0b, 0x46, 0x4f, 0x52, 0x45, 0x49, 0x47,
  142. 0x4e, 0x5f, 0x42, 0x41, 0x52, 0x12, 0x4d, 0x0a, 0x13, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6d, 0x70,
  143. 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x53, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  144. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72,
  145. 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x0a, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54,
  146. 0x5f, 0x42, 0x41, 0x52, 0x12, 0x25, 0x0a, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x69,
  147. 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65, 0x18, 0x54, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x03, 0x61, 0x62, 0x63, 0x42,
  148. 0x02, 0x08, 0x02, 0x12, 0x1d, 0x0a, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x18,
  149. 0x55, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x03, 0x31, 0x32, 0x33, 0x42, 0x02, 0x08, 0x01, 0x1a, 0x1b, 0x0a, 0x0d, 0x4e, 0x65,
  150. 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0a, 0x0a, 0x02, 0x62, 0x62, 0x18, 0x01, 0x20,
  151. 0x01, 0x28, 0x05, 0x1a, 0x1a, 0x0a, 0x0d, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70,
  152. 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x1a, 0x1a, 0x0a, 0x0d, 0x52, 0x65, 0x70, 0x65, 0x61,
  153. 0x74, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x2f, 0x20, 0x01, 0x28, 0x05, 0x22,
  154. 0x27, 0x0a, 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x07, 0x0a, 0x03, 0x46, 0x4f, 0x4f,
  155. 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41, 0x52, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41, 0x5a, 0x10, 0x03,
  156. 0x22, 0x1b, 0x0a, 0x0e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x09,
  157. 0x0a, 0x01, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x22, 0x1d, 0x0a, 0x11, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c,
  158. 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0x08, 0x08, 0x01, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02,
  159. 0x22, 0x24, 0x0a, 0x17, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78,
  160. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x22, 0x24,
  161. 0x0a, 0x17, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65,
  162. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x2f, 0x20, 0x01, 0x28, 0x05, 0x22, 0xd5, 0x05, 0x0a,
  163. 0x0c, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x01,
  164. 0x20, 0x02, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
  165. 0x12, 0x09, 0x0a, 0x01, 0x62, 0x18, 0x03, 0x20, 0x02, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79,
  166. 0x34, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x35, 0x18, 0x05, 0x20,
  167. 0x01, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x36, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x12,
  168. 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x37, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64,
  169. 0x75, 0x6d, 0x6d, 0x79, 0x38, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0e, 0x0a, 0x06, 0x64, 0x75, 0x6d, 0x6d, 0x79,
  170. 0x39, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x30, 0x18, 0x0a,
  171. 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x31, 0x18, 0x0b, 0x20, 0x01, 0x28,
  172. 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x32, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f,
  173. 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x33, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64,
  174. 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x34, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d,
  175. 0x79, 0x31, 0x35, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x36,
  176. 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x37, 0x18, 0x11, 0x20,
  177. 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x38, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05,
  178. 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x31, 0x39, 0x18, 0x13, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a,
  179. 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x30, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75,
  180. 0x6d, 0x6d, 0x79, 0x32, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79,
  181. 0x32, 0x32, 0x18, 0x16, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x33, 0x18,
  182. 0x17, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x34, 0x18, 0x18, 0x20, 0x01,
  183. 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x35, 0x18, 0x19, 0x20, 0x01, 0x28, 0x05, 0x12,
  184. 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x36, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07,
  185. 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0x37, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d,
  186. 0x6d, 0x79, 0x32, 0x38, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x32,
  187. 0x39, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x33, 0x30, 0x18, 0x1e,
  188. 0x20, 0x01, 0x28, 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x33, 0x31, 0x18, 0x1f, 0x20, 0x01, 0x28,
  189. 0x05, 0x12, 0x0f, 0x0a, 0x07, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x33, 0x32, 0x18, 0x20, 0x20, 0x01, 0x28, 0x05, 0x12, 0x09,
  190. 0x0a, 0x01, 0x63, 0x18, 0x21, 0x20, 0x02, 0x28, 0x05, 0x32, 0x56, 0x0a, 0x06, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x12,
  191. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  192. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe8, 0x07,
  193. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74,
  194. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x32, 0x55, 0x0a,
  195. 0x05, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  196. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
  197. 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe9, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  198. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75,
  199. 0x69, 0x72, 0x65, 0x64, 0x22, 0x9a, 0x01, 0x0a, 0x13, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
  200. 0x64, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x12, 0x39, 0x0a, 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c,
  201. 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f,
  202. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52,
  203. 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  204. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  205. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65,
  206. 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x0d, 0x0a, 0x05, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,
  207. 0x05, 0x22, 0x5a, 0x0a, 0x11, 0x54, 0x65, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4e, 0x65, 0x73, 0x74,
  208. 0x65, 0x64, 0x12, 0x45, 0x0a, 0x0e, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64,
  209. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  210. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e,
  211. 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x54, 0x65, 0x73,
  212. 0x74, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x2a, 0x0a, 0x1e, 0x54, 0x65, 0x73,
  213. 0x74, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x57, 0x69, 0x74, 0x68, 0x45, 0x78, 0x74,
  214. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0x08, 0x08, 0x01, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x34, 0x0a,
  215. 0x18, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x61, 0x6c, 0x6c, 0x79, 0x4c, 0x61, 0x72, 0x67, 0x65, 0x54, 0x61, 0x67, 0x4e,
  216. 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0d, 0x0a, 0x02,
  217. 0x62, 0x62, 0x18, 0xff, 0xff, 0xff, 0x7f, 0x20, 0x01, 0x28, 0x05, 0x22, 0x55, 0x0a, 0x14, 0x54, 0x65, 0x73, 0x74, 0x52,
  218. 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x32, 0x0a, 0x01, 0x61,
  219. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  220. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65,
  221. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x09, 0x0a, 0x01, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x22, 0x4b,
  222. 0x0a, 0x14, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x75, 0x74, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f,
  223. 0x6e, 0x41, 0x12, 0x33, 0x0a, 0x02, 0x62, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f,
  224. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d,
  225. 0x75, 0x74, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x22, 0x62, 0x0a, 0x14, 0x54,
  226. 0x65, 0x73, 0x74, 0x4d, 0x75, 0x74, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x12,
  227. 0x32, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  228. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x75, 0x74, 0x75, 0x61,
  229. 0x6c, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x12, 0x16, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f,
  230. 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x22, 0xb3, 0x01, 0x0a, 0x12,
  231. 0x54, 0x65, 0x73, 0x74, 0x44, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x09,
  232. 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x36, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x02, 0x20, 0x01,
  233. 0x28, 0x0a, 0x32, 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  234. 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x44, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65,
  235. 0x72, 0x2e, 0x46, 0x6f, 0x6f, 0x12, 0x36, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x29,
  236. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  237. 0x65, 0x73, 0x74, 0x44, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x42, 0x61,
  238. 0x72, 0x1a, 0x10, 0x0a, 0x03, 0x46, 0x6f, 0x6f, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x1a,
  239. 0x10, 0x0a, 0x03, 0x42, 0x61, 0x72, 0x12, 0x09, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x22, 0x80, 0x02,
  240. 0x0a, 0x18, 0x54, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48,
  241. 0x61, 0x73, 0x42, 0x69, 0x74, 0x73, 0x12, 0x5a, 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6e,
  242. 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  243. 0x39, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  244. 0x54, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x61, 0x73,
  245. 0x42, 0x69, 0x74, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x87,
  246. 0x01, 0x0a, 0x0d, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x1c,
  247. 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  248. 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x12, 0x50, 0x0a, 0x25, 0x6e, 0x65,
  249. 0x73, 0x74, 0x65, 0x64, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64,
  250. 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28,
  251. 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  252. 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xe5, 0x03, 0x0a,
  253. 0x17, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x6d, 0x65, 0x6c, 0x43, 0x61, 0x73, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e,
  254. 0x61, 0x6d, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x0e, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x46, 0x69, 0x65,
  255. 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x13, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69,
  256. 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x12, 0x31, 0x0a, 0x09, 0x45, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65,
  257. 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f,
  258. 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d,
  259. 0x12, 0x37, 0x0a, 0x0c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x04, 0x20, 0x01,
  260. 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  261. 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a,
  262. 0x10, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x69, 0x65, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x05, 0x20,
  263. 0x01, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x12, 0x15, 0x0a, 0x09, 0x43, 0x6f, 0x72, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64,
  264. 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x08, 0x01, 0x12, 0x1e, 0x0a, 0x16, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74,
  265. 0x65, 0x64, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x07, 0x20, 0x03,
  266. 0x28, 0x05, 0x12, 0x1b, 0x0a, 0x13, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
  267. 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x12, 0x39, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x65, 0x61,
  268. 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e,
  269. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46,
  270. 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x3f, 0x0a, 0x14, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74,
  271. 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b,
  272. 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  273. 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x18, 0x52,
  274. 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x69, 0x65, 0x63, 0x65, 0x46, 0x69,
  275. 0x65, 0x6c, 0x64, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x12, 0x1d, 0x0a, 0x11, 0x52, 0x65, 0x70,
  276. 0x65, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x72, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09,
  277. 0x42, 0x02, 0x08, 0x01, 0x22, 0x55, 0x0a, 0x12, 0x54, 0x65, 0x73, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x72, 0x64,
  278. 0x65, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x11, 0x0a, 0x09, 0x6d, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18,
  279. 0x0b, 0x20, 0x01, 0x28, 0x09, 0x12, 0x0e, 0x0a, 0x06, 0x6d, 0x79, 0x5f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
  280. 0x03, 0x12, 0x10, 0x0a, 0x08, 0x6d, 0x79, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x65, 0x20, 0x01, 0x28, 0x02, 0x2a,
  281. 0x04, 0x08, 0x02, 0x10, 0x0b, 0x2a, 0x04, 0x08, 0x0c, 0x10, 0x65, 0x22, 0x90, 0x02, 0x0a, 0x18, 0x54, 0x65, 0x73, 0x74,
  282. 0x45, 0x78, 0x74, 0x72, 0x65, 0x6d, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73,
  283. 0x12, 0x3f, 0x0a, 0x0d, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20,
  284. 0x01, 0x28, 0x0c, 0x3a, 0x28, 0x5c, 0x30, 0x30, 0x30, 0x5c, 0x30, 0x30, 0x31, 0x5c, 0x30, 0x30, 0x37, 0x5c, 0x30, 0x31,
  285. 0x30, 0x5c, 0x30, 0x31, 0x34, 0x5c, 0x6e, 0x5c, 0x72, 0x5c, 0x74, 0x5c, 0x30, 0x31, 0x33, 0x5c, 0x5c, 0x5c, 0x27, 0x5c,
  286. 0x22, 0x5c, 0x33, 0x37, 0x36, 0x12, 0x20, 0x0a, 0x0c, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33,
  287. 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x0a, 0x34, 0x32, 0x39, 0x34, 0x39, 0x36, 0x37, 0x32, 0x39, 0x35, 0x12,
  288. 0x2a, 0x0a, 0x0c, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01, 0x28,
  289. 0x04, 0x3a, 0x14, 0x31, 0x38, 0x34, 0x34, 0x36, 0x37, 0x34, 0x34, 0x30, 0x37, 0x33, 0x37, 0x30, 0x39, 0x35, 0x35, 0x31,
  290. 0x36, 0x31, 0x35, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04,
  291. 0x20, 0x01, 0x28, 0x05, 0x3a, 0x0b, 0x2d, 0x32, 0x31, 0x34, 0x37, 0x34, 0x38, 0x33, 0x36, 0x34, 0x37, 0x12, 0x29, 0x0a,
  292. 0x0b, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x14,
  293. 0x2d, 0x39, 0x32, 0x32, 0x33, 0x33, 0x37, 0x32, 0x30, 0x33, 0x36, 0x38, 0x35, 0x34, 0x37, 0x37, 0x35, 0x38, 0x30, 0x37,
  294. 0x12, 0x18, 0x0a, 0x0b, 0x75, 0x74, 0x66, 0x38, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28,
  295. 0x09, 0x3a, 0x03, 0xe1, 0x88, 0xb4, 0x22, 0x0c, 0x0a, 0x0a, 0x46, 0x6f, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  296. 0x22, 0x0d, 0x0a, 0x0b, 0x46, 0x6f, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x42,
  297. 0x61, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x0d, 0x0a, 0x0b, 0x42, 0x61, 0x72, 0x52, 0x65, 0x73, 0x70,
  298. 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x40, 0x0a, 0x0b, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12,
  299. 0x0f, 0x0a, 0x0b, 0x46, 0x4f, 0x52, 0x45, 0x49, 0x47, 0x4e, 0x5f, 0x46, 0x4f, 0x4f, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b,
  300. 0x46, 0x4f, 0x52, 0x45, 0x49, 0x47, 0x4e, 0x5f, 0x42, 0x41, 0x52, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x46, 0x4f, 0x52,
  301. 0x45, 0x49, 0x47, 0x4e, 0x5f, 0x42, 0x41, 0x5a, 0x10, 0x06, 0x2a, 0x47, 0x0a, 0x14, 0x54, 0x65, 0x73, 0x74, 0x45, 0x6e,
  302. 0x75, 0x6d, 0x57, 0x69, 0x74, 0x68, 0x44, 0x75, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x4f,
  303. 0x4f, 0x31, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x41, 0x52, 0x31, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x41,
  304. 0x5a, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x4f, 0x4f, 0x32, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x41, 0x52,
  305. 0x32, 0x10, 0x02, 0x2a, 0x89, 0x01, 0x0a, 0x0e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x70, 0x61, 0x72, 0x73, 0x65, 0x45, 0x6e,
  306. 0x75, 0x6d, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f, 0x41, 0x10, 0x7b, 0x12, 0x0e, 0x0a, 0x08,
  307. 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f, 0x42, 0x10, 0xa6, 0xe7, 0x03, 0x12, 0x0f, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52,
  308. 0x53, 0x45, 0x5f, 0x43, 0x10, 0xb2, 0xb1, 0x80, 0x06, 0x12, 0x15, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f,
  309. 0x44, 0x10, 0xf1, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x12, 0x15, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52,
  310. 0x53, 0x45, 0x5f, 0x45, 0x10, 0xb4, 0xde, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x53,
  311. 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f, 0x46, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f,
  312. 0x47, 0x10, 0x02, 0x32, 0x99, 0x01, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
  313. 0x44, 0x0a, 0x03, 0x46, 0x6f, 0x6f, 0x12, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  314. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e,
  315. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f,
  316. 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x03, 0x42, 0x61, 0x72, 0x12, 0x1d, 0x2e, 0x70,
  317. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x42, 0x61, 0x72,
  318. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  319. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x42, 0x61, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x3a,
  320. 0x46, 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78,
  321. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  322. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e,
  323. 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x46, 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x69, 0x6f,
  324. 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  325. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  326. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20,
  327. 0x01, 0x28, 0x03, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x69, 0x6e, 0x74,
  328. 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  329. 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c,
  330. 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x47, 0x0a, 0x19,
  331. 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65,
  332. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  333. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  334. 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  335. 0x6c, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  336. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  337. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01,
  338. 0x28, 0x11, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36,
  339. 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  340. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  341. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x12, 0x3a, 0x48, 0x0a, 0x1a, 0x6f,
  342. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65,
  343. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  344. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  345. 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x07, 0x3a, 0x48, 0x0a, 0x1a, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  346. 0x6c, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  347. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  348. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20,
  349. 0x01, 0x28, 0x06, 0x3a, 0x49, 0x0a, 0x1b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x66, 0x69, 0x78,
  350. 0x65, 0x64, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  351. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  352. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0f, 0x3a, 0x49,
  353. 0x0a, 0x1b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f,
  354. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  355. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  356. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x10, 0x3a, 0x46, 0x0a, 0x18, 0x6f, 0x70, 0x74,
  357. 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  358. 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  359. 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18,
  360. 0x0b, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x6f,
  361. 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  362. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  363. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x01, 0x3a, 0x45,
  364. 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65,
  365. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  366. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  367. 0x6f, 0x6e, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x47, 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  368. 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  369. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  370. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0e, 0x20, 0x01,
  371. 0x28, 0x09, 0x3a, 0x46, 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73,
  372. 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  373. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78,
  374. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0c, 0x3a, 0x71, 0x0a, 0x17, 0x6f, 0x70,
  375. 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  376. 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  377. 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18,
  378. 0x10, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  379. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5f,
  380. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x7e, 0x0a, 0x21, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  381. 0x6c, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74,
  382. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  383. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
  384. 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  385. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79,
  386. 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x73, 0x0a,
  387. 0x22, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6d, 0x65,
  388. 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  389. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  390. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32,
  391. 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  392. 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x78, 0x0a, 0x21, 0x6f, 0x70,
  393. 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  394. 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  395. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  396. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72,
  397. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f,
  398. 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x78, 0x0a, 0x1e,
  399. 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d,
  400. 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  401. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78,
  402. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f,
  403. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  404. 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x6d,
  405. 0x0a, 0x1f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65,
  406. 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  407. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c,
  408. 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e,
  409. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f,
  410. 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x72, 0x0a, 0x1e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
  411. 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  412. 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74,
  413. 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  414. 0x73, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  415. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72,
  416. 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x51, 0x0a, 0x1f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74,
  417. 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  418. 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  419. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x18,
  420. 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x3a, 0x49, 0x0a, 0x17, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c,
  421. 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  422. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  423. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x42,
  424. 0x02, 0x08, 0x01, 0x3a, 0x46, 0x0a, 0x18, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x33,
  425. 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  426. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  427. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x1f, 0x20, 0x03, 0x28, 0x05, 0x3a, 0x46, 0x0a, 0x18, 0x72,
  428. 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  429. 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74,
  430. 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  431. 0x73, 0x18, 0x20, 0x20, 0x03, 0x28, 0x03, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  432. 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70,
  433. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73,
  434. 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x21, 0x20, 0x03, 0x28, 0x0d,
  435. 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f,
  436. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  437. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  438. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x22, 0x20, 0x03, 0x28, 0x04, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70,
  439. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  440. 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  441. 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  442. 0x18, 0x23, 0x20, 0x03, 0x28, 0x11, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73,
  443. 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  444. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  445. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x24, 0x20, 0x03, 0x28, 0x12, 0x3a,
  446. 0x48, 0x0a, 0x1a, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x5f,
  447. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  448. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  449. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x25, 0x20, 0x03, 0x28, 0x07, 0x3a, 0x48, 0x0a, 0x1a, 0x72, 0x65, 0x70,
  450. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  451. 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74,
  452. 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  453. 0x73, 0x18, 0x26, 0x20, 0x03, 0x28, 0x06, 0x3a, 0x49, 0x0a, 0x1b, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  454. 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  455. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  456. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x27, 0x20, 0x03,
  457. 0x28, 0x0f, 0x3a, 0x49, 0x0a, 0x1b, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65,
  458. 0x64, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  459. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c,
  460. 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x28, 0x20, 0x03, 0x28, 0x10, 0x3a, 0x46, 0x0a,
  461. 0x18, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65,
  462. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  463. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  464. 0x6f, 0x6e, 0x73, 0x18, 0x29, 0x20, 0x03, 0x28, 0x02, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65,
  465. 0x64, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  466. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  467. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x2a, 0x20, 0x03,
  468. 0x28, 0x01, 0x3a, 0x45, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x5f,
  469. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  470. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  471. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x2b, 0x20, 0x03, 0x28, 0x08, 0x3a, 0x47, 0x0a, 0x19, 0x72, 0x65, 0x70,
  472. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  473. 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  474. 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  475. 0x18, 0x2c, 0x20, 0x03, 0x28, 0x09, 0x3a, 0x46, 0x0a, 0x18, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62,
  476. 0x79, 0x74, 0x65, 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  477. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  478. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x2d, 0x20, 0x03, 0x28, 0x0c, 0x3a, 0x71,
  479. 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65,
  480. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  481. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  482. 0x6f, 0x6e, 0x73, 0x18, 0x2e, 0x20, 0x03, 0x28, 0x0a, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  483. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x47, 0x72,
  484. 0x6f, 0x75, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x7e, 0x0a, 0x21, 0x72, 0x65, 0x70,
  485. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  486. 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  487. 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78,
  488. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x30, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f,
  489. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  490. 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  491. 0x65, 0x3a, 0x73, 0x0a, 0x22, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67,
  492. 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  493. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  494. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x31, 0x20,
  495. 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74,
  496. 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x78,
  497. 0x0a, 0x21, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x65,
  498. 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  499. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  500. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x32, 0x20, 0x03, 0x28, 0x0b, 0x32,
  501. 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f,
  502. 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  503. 0x3a, 0x78, 0x0a, 0x1e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f,
  504. 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  505. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  506. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x33, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2a,
  507. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  508. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e,
  509. 0x75, 0x6d, 0x3a, 0x6d, 0x0a, 0x1f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69,
  510. 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e,
  511. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65,
  512. 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x34, 0x20, 0x03, 0x28,
  513. 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  514. 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x72, 0x0a, 0x1e, 0x72, 0x65, 0x70,
  515. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78,
  516. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  517. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e,
  518. 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x35, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  519. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49,
  520. 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x51, 0x0a, 0x1f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65,
  521. 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65, 0x63, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
  522. 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74,
  523. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  524. 0x6e, 0x73, 0x18, 0x36, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x02, 0x3a, 0x49, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65,
  525. 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  526. 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  527. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x37, 0x20,
  528. 0x03, 0x28, 0x09, 0x42, 0x02, 0x08, 0x01, 0x3a, 0x49, 0x0a, 0x17, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69,
  529. 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  530. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  531. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x3d, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x02,
  532. 0x34, 0x31, 0x3a, 0x49, 0x0a, 0x17, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f,
  533. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  534. 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74,
  535. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x3e, 0x20, 0x01, 0x28, 0x03, 0x3a, 0x02, 0x34, 0x32, 0x3a, 0x4a, 0x0a,
  536. 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65,
  537. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69,
  538. 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  539. 0x6f, 0x6e, 0x73, 0x18, 0x3f, 0x20, 0x01, 0x28, 0x0d, 0x3a, 0x02, 0x34, 0x33, 0x3a, 0x4a, 0x0a, 0x18, 0x64, 0x65, 0x66,
  540. 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  541. 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73,
  542. 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18,
  543. 0x40, 0x20, 0x01, 0x28, 0x04, 0x3a, 0x02, 0x34, 0x34, 0x3a, 0x4b, 0x0a, 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
  544. 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e,
  545. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65,
  546. 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x41, 0x20, 0x01, 0x28,
  547. 0x11, 0x3a, 0x03, 0x2d, 0x34, 0x35, 0x3a, 0x4a, 0x0a, 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x69,
  548. 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f,
  549. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
  550. 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x42, 0x20, 0x01, 0x28, 0x12, 0x3a, 0x02,
  551. 0x34, 0x36, 0x3a, 0x4b, 0x0a, 0x19, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33,
  552. 0x32, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  553. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  554. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x43, 0x20, 0x01, 0x28, 0x07, 0x3a, 0x02, 0x34, 0x37, 0x3a,
  555. 0x4b, 0x0a, 0x19, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f, 0x65,
  556. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f,
  557. 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65,
  558. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x44, 0x20, 0x01, 0x28, 0x06, 0x3a, 0x02, 0x34, 0x38, 0x3a, 0x4c, 0x0a, 0x1a,
  559. 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74,
  560. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  561. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
  562. 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x45, 0x20, 0x01, 0x28, 0x0f, 0x3a, 0x02, 0x34, 0x39, 0x3a, 0x4d, 0x0a, 0x1a, 0x64, 0x65,
  563. 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
  564. 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74,
  565. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  566. 0x6e, 0x73, 0x18, 0x46, 0x20, 0x01, 0x28, 0x10, 0x3a, 0x03, 0x2d, 0x35, 0x30, 0x3a, 0x4b, 0x0a, 0x17, 0x64, 0x65, 0x66,
  567. 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  568. 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74,
  569. 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x47,
  570. 0x20, 0x01, 0x28, 0x02, 0x3a, 0x04, 0x35, 0x31, 0x2e, 0x35, 0x3a, 0x4d, 0x0a, 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c,
  571. 0x74, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24,
  572. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
  573. 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x48, 0x20, 0x01,
  574. 0x28, 0x01, 0x3a, 0x05, 0x35, 0x32, 0x30, 0x30, 0x30, 0x3a, 0x4a, 0x0a, 0x16, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
  575. 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  576. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  577. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x49, 0x20, 0x01, 0x28, 0x08, 0x3a,
  578. 0x04, 0x74, 0x72, 0x75, 0x65, 0x3a, 0x4d, 0x0a, 0x18, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72,
  579. 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  580. 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c,
  581. 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x4a, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x05, 0x68,
  582. 0x65, 0x6c, 0x6c, 0x6f, 0x3a, 0x4c, 0x0a, 0x17, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x79, 0x74, 0x65,
  583. 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  584. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  585. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x4b, 0x20, 0x01, 0x28, 0x0c, 0x3a, 0x05, 0x77, 0x6f, 0x72,
  586. 0x6c, 0x64, 0x3a, 0x7c, 0x0a, 0x1d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64,
  587. 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72,
  588. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
  589. 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x51, 0x20, 0x01, 0x28, 0x0e, 0x32,
  590. 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e,
  591. 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45,
  592. 0x6e, 0x75, 0x6d, 0x3a, 0x03, 0x42, 0x41, 0x52, 0x3a, 0x79, 0x0a, 0x1e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f,
  593. 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  594. 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65,
  595. 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  596. 0x18, 0x52, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e,
  597. 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x0b,
  598. 0x46, 0x4f, 0x52, 0x45, 0x49, 0x47, 0x4e, 0x5f, 0x42, 0x41, 0x52, 0x3a, 0x7d, 0x0a, 0x1d, 0x64, 0x65, 0x66, 0x61, 0x75,
  599. 0x6c, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
  600. 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74,
  601. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  602. 0x6e, 0x73, 0x18, 0x53, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f,
  603. 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6d, 0x70, 0x6f,
  604. 0x72, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x0a, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x42, 0x41, 0x52, 0x3a, 0x55,
  605. 0x0a, 0x1e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x69, 0x65,
  606. 0x63, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  607. 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c,
  608. 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x54, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x03, 0x61, 0x62,
  609. 0x63, 0x42, 0x02, 0x08, 0x02, 0x3a, 0x4d, 0x0a, 0x16, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x72,
  610. 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  611. 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
  612. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x55, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x03, 0x31, 0x32, 0x33,
  613. 0x42, 0x02, 0x08, 0x01, 0x3a, 0x42, 0x0a, 0x13, 0x6d, 0x79, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  614. 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x75,
  615. 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x72, 0x64,
  616. 0x65, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x32, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x3f, 0x0a, 0x10, 0x6d, 0x79, 0x5f, 0x65,
  617. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  618. 0x62, 0x75, 0x66, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x46, 0x69, 0x65,
  619. 0x6c, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x42, 0x49, 0x42,
  620. 0x0d, 0x55, 0x6e, 0x69, 0x74, 0x74, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x48, 0x01, 0xc2, 0x3e, 0x21, 0x47,
  621. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72,
  622. 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0xca, 0x3e, 0x11, 0x55, 0x6e, 0x69, 0x74, 0x54,
  623. 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x46, 0x69, 0x6c, 0x65,
  624. }, new pbd::FileDescriptor[] {
  625. global::Google.ProtocolBuffers.TestProtos.UnitTestImportProtoFile.Descriptor,
  626. });
  627. #endregion
  628. #region Extensions
  629. public static readonly pb::GeneratedExtensionBase<int> OptionalInt32Extension =
  630. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[0]);
  631. public static readonly pb::GeneratedExtensionBase<long> OptionalInt64Extension =
  632. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[1]);
  633. public static readonly pb::GeneratedExtensionBase<uint> OptionalUint32Extension =
  634. pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[2]);
  635. public static readonly pb::GeneratedExtensionBase<ulong> OptionalUint64Extension =
  636. pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[3]);
  637. public static readonly pb::GeneratedExtensionBase<int> OptionalSint32Extension =
  638. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[4]);
  639. public static readonly pb::GeneratedExtensionBase<long> OptionalSint64Extension =
  640. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[5]);
  641. public static readonly pb::GeneratedExtensionBase<uint> OptionalFixed32Extension =
  642. pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[6]);
  643. public static readonly pb::GeneratedExtensionBase<ulong> OptionalFixed64Extension =
  644. pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[7]);
  645. public static readonly pb::GeneratedExtensionBase<int> OptionalSfixed32Extension =
  646. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[8]);
  647. public static readonly pb::GeneratedExtensionBase<long> OptionalSfixed64Extension =
  648. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[9]);
  649. public static readonly pb::GeneratedExtensionBase<float> OptionalFloatExtension =
  650. pb::GeneratedSingleExtension<float>.CreateInstance(Descriptor.Extensions[10]);
  651. public static readonly pb::GeneratedExtensionBase<double> OptionalDoubleExtension =
  652. pb::GeneratedSingleExtension<double>.CreateInstance(Descriptor.Extensions[11]);
  653. public static readonly pb::GeneratedExtensionBase<bool> OptionalBoolExtension =
  654. pb::GeneratedSingleExtension<bool>.CreateInstance(Descriptor.Extensions[12]);
  655. public static readonly pb::GeneratedExtensionBase<string> OptionalStringExtension =
  656. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[13]);
  657. public static readonly pb::GeneratedExtensionBase<pb::ByteString> OptionalBytesExtension =
  658. pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[14]);
  659. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension> OptionalGroupExtension =
  660. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension>.CreateInstance(Descriptor.Extensions[15]);
  661. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> OptionalNestedMessageExtension =
  662. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(Descriptor.Extensions[16]);
  663. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> OptionalForeignMessageExtension =
  664. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.CreateInstance(Descriptor.Extensions[17]);
  665. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportMessage> OptionalImportMessageExtension =
  666. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.CreateInstance(Descriptor.Extensions[18]);
  667. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> OptionalNestedEnumExtension =
  668. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[19]);
  669. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> OptionalForeignEnumExtension =
  670. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(Descriptor.Extensions[20]);
  671. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportEnum> OptionalImportEnumExtension =
  672. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(Descriptor.Extensions[21]);
  673. public static readonly pb::GeneratedExtensionBase<string> OptionalStringPieceExtension =
  674. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[22]);
  675. public static readonly pb::GeneratedExtensionBase<string> OptionalCordExtension =
  676. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[23]);
  677. public static readonly
  678. pb::GeneratedExtensionBase<scg::IList<int>> RepeatedInt32Extension =
  679. pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[24]);
  680. public static readonly
  681. pb::GeneratedExtensionBase<scg::IList<long>> RepeatedInt64Extension =
  682. pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[25]);
  683. public static readonly
  684. pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedUint32Extension =
  685. pb::GeneratedRepeatExtension<uint>.CreateInstance(Descriptor.Extensions[26]);
  686. public static readonly
  687. pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedUint64Extension =
  688. pb::GeneratedRepeatExtension<ulong>.CreateInstance(Descriptor.Extensions[27]);
  689. public static readonly
  690. pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSint32Extension =
  691. pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[28]);
  692. public static readonly
  693. pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSint64Extension =
  694. pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[29]);
  695. public static readonly
  696. pb::GeneratedExtensionBase<scg::IList<uint>> RepeatedFixed32Extension =
  697. pb::GeneratedRepeatExtension<uint>.CreateInstance(Descriptor.Extensions[30]);
  698. public static readonly
  699. pb::GeneratedExtensionBase<scg::IList<ulong>> RepeatedFixed64Extension =
  700. pb::GeneratedRepeatExtension<ulong>.CreateInstance(Descriptor.Extensions[31]);
  701. public static readonly
  702. pb::GeneratedExtensionBase<scg::IList<int>> RepeatedSfixed32Extension =
  703. pb::GeneratedRepeatExtension<int>.CreateInstance(Descriptor.Extensions[32]);
  704. public static readonly
  705. pb::GeneratedExtensionBase<scg::IList<long>> RepeatedSfixed64Extension =
  706. pb::GeneratedRepeatExtension<long>.CreateInstance(Descriptor.Extensions[33]);
  707. public static readonly
  708. pb::GeneratedExtensionBase<scg::IList<float>> RepeatedFloatExtension =
  709. pb::GeneratedRepeatExtension<float>.CreateInstance(Descriptor.Extensions[34]);
  710. public static readonly
  711. pb::GeneratedExtensionBase<scg::IList<double>> RepeatedDoubleExtension =
  712. pb::GeneratedRepeatExtension<double>.CreateInstance(Descriptor.Extensions[35]);
  713. public static readonly
  714. pb::GeneratedExtensionBase<scg::IList<bool>> RepeatedBoolExtension =
  715. pb::GeneratedRepeatExtension<bool>.CreateInstance(Descriptor.Extensions[36]);
  716. public static readonly
  717. pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringExtension =
  718. pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[37]);
  719. public static readonly
  720. pb::GeneratedExtensionBase<scg::IList<pb::ByteString>> RepeatedBytesExtension =
  721. pb::GeneratedRepeatExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[38]);
  722. public static readonly
  723. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension>> RepeatedGroupExtension =
  724. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension>.CreateInstance(Descriptor.Extensions[39]);
  725. public static readonly
  726. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>> RepeatedNestedMessageExtension =
  727. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.CreateInstance(Descriptor.Extensions[40]);
  728. public static readonly
  729. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>> RepeatedForeignMessageExtension =
  730. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.CreateInstance(Descriptor.Extensions[41]);
  731. public static readonly
  732. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage>> RepeatedImportMessageExtension =
  733. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.CreateInstance(Descriptor.Extensions[42]);
  734. public static readonly
  735. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>> RepeatedNestedEnumExtension =
  736. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[43]);
  737. public static readonly
  738. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>> RepeatedForeignEnumExtension =
  739. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(Descriptor.Extensions[44]);
  740. public static readonly
  741. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum>> RepeatedImportEnumExtension =
  742. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(Descriptor.Extensions[45]);
  743. public static readonly
  744. pb::GeneratedExtensionBase<scg::IList<string>> RepeatedStringPieceExtension =
  745. pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[46]);
  746. public static readonly
  747. pb::GeneratedExtensionBase<scg::IList<string>> RepeatedCordExtension =
  748. pb::GeneratedRepeatExtension<string>.CreateInstance(Descriptor.Extensions[47]);
  749. public static readonly pb::GeneratedExtensionBase<int> DefaultInt32Extension =
  750. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[48]);
  751. public static readonly pb::GeneratedExtensionBase<long> DefaultInt64Extension =
  752. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[49]);
  753. public static readonly pb::GeneratedExtensionBase<uint> DefaultUint32Extension =
  754. pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[50]);
  755. public static readonly pb::GeneratedExtensionBase<ulong> DefaultUint64Extension =
  756. pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[51]);
  757. public static readonly pb::GeneratedExtensionBase<int> DefaultSint32Extension =
  758. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[52]);
  759. public static readonly pb::GeneratedExtensionBase<long> DefaultSint64Extension =
  760. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[53]);
  761. public static readonly pb::GeneratedExtensionBase<uint> DefaultFixed32Extension =
  762. pb::GeneratedSingleExtension<uint>.CreateInstance(Descriptor.Extensions[54]);
  763. public static readonly pb::GeneratedExtensionBase<ulong> DefaultFixed64Extension =
  764. pb::GeneratedSingleExtension<ulong>.CreateInstance(Descriptor.Extensions[55]);
  765. public static readonly pb::GeneratedExtensionBase<int> DefaultSfixed32Extension =
  766. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[56]);
  767. public static readonly pb::GeneratedExtensionBase<long> DefaultSfixed64Extension =
  768. pb::GeneratedSingleExtension<long>.CreateInstance(Descriptor.Extensions[57]);
  769. public static readonly pb::GeneratedExtensionBase<float> DefaultFloatExtension =
  770. pb::GeneratedSingleExtension<float>.CreateInstance(Descriptor.Extensions[58]);
  771. public static readonly pb::GeneratedExtensionBase<double> DefaultDoubleExtension =
  772. pb::GeneratedSingleExtension<double>.CreateInstance(Descriptor.Extensions[59]);
  773. public static readonly pb::GeneratedExtensionBase<bool> DefaultBoolExtension =
  774. pb::GeneratedSingleExtension<bool>.CreateInstance(Descriptor.Extensions[60]);
  775. public static readonly pb::GeneratedExtensionBase<string> DefaultStringExtension =
  776. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[61]);
  777. public static readonly pb::GeneratedExtensionBase<pb::ByteString> DefaultBytesExtension =
  778. pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(Descriptor.Extensions[62]);
  779. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> DefaultNestedEnumExtension =
  780. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.CreateInstance(Descriptor.Extensions[63]);
  781. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> DefaultForeignEnumExtension =
  782. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.CreateInstance(Descriptor.Extensions[64]);
  783. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ImportEnum> DefaultImportEnumExtension =
  784. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.CreateInstance(Descriptor.Extensions[65]);
  785. public static readonly pb::GeneratedExtensionBase<string> DefaultStringPieceExtension =
  786. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[66]);
  787. public static readonly pb::GeneratedExtensionBase<string> DefaultCordExtension =
  788. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[67]);
  789. public static readonly pb::GeneratedExtensionBase<string> MyExtensionString =
  790. pb::GeneratedSingleExtension<string>.CreateInstance(Descriptor.Extensions[68]);
  791. public static readonly pb::GeneratedExtensionBase<int> MyExtensionInt =
  792. pb::GeneratedSingleExtension<int>.CreateInstance(Descriptor.Extensions[69]);
  793. #endregion
  794. #region Static variables
  795. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes__Descriptor
  796. = Descriptor.MessageTypes[0];
  797. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable
  798. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestAllTypes__Descriptor,
  799. new string[] { "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalGroup", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalImportMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalImportEnum", "OptionalStringPiece", "OptionalCord", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedGroup", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedStringPiece", "RepeatedCord", "DefaultInt32", "DefaultInt64", "DefaultUint32", "DefaultUint64", "DefaultSint32", "DefaultSint64", "DefaultFixed32", "DefaultFixed64", "DefaultSfixed32", "DefaultSfixed64", "DefaultFloat", "DefaultDouble", "DefaultBool", "DefaultString", "DefaultBytes", "DefaultNestedEnum", "DefaultForeignEnum", "DefaultImportEnum", "DefaultStringPiece", "DefaultCord", },
  800. typeof (global::Google.ProtocolBuffers.TestProtos.TestAllTypes),
  801. typeof (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder));
  802. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor
  803. = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[0];
  804. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable
  805. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor,
  806. new string[] { "Bb", },
  807. typeof (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage),
  808. typeof (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder));
  809. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor
  810. = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[1];
  811. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable
  812. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor,
  813. new string[] { "A", },
  814. typeof (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup),
  815. typeof (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder));
  816. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor
  817. = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[2];
  818. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable
  819. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor,
  820. new string[] { "A", },
  821. typeof (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup),
  822. typeof (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder));
  823. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_ForeignMessage__Descriptor
  824. = Descriptor.MessageTypes[1];
  825. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable
  826. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_ForeignMessage__Descriptor,
  827. new string[] { "C", },
  828. typeof (global::Google.ProtocolBuffers.TestProtos.ForeignMessage),
  829. typeof (global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder));
  830. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllExtensions__Descriptor
  831. = Descriptor.MessageTypes[2];
  832. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable
  833. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestAllExtensions__Descriptor,
  834. new string[] { },
  835. typeof (global::Google.ProtocolBuffers.TestProtos.TestAllExtensions),
  836. typeof (global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder));
  837. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor
  838. = Descriptor.MessageTypes[3];
  839. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable
  840. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor,
  841. new string[] { "A", },
  842. typeof (global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension),
  843. typeof (global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Builder));
  844. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor
  845. = Descriptor.MessageTypes[4];
  846. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable
  847. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor,
  848. new string[] { "A", },
  849. typeof (global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension),
  850. typeof (global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Builder));
  851. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequired__Descriptor
  852. = Descriptor.MessageTypes[5];
  853. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestRequired__FieldAccessorTable
  854. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestRequired__Descriptor,
  855. new string[] { "A", "Dummy2", "B", "Dummy4", "Dummy5", "Dummy6", "Dummy7", "Dummy8", "Dummy9", "Dummy10", "Dummy11", "Dummy12", "Dummy13", "Dummy14", "Dummy15", "Dummy16", "Dummy17", "Dummy18", "Dummy19", "Dummy20", "Dummy21", "Dummy22", "Dummy23", "Dummy24", "Dummy25", "Dummy26", "Dummy27", "Dummy28", "Dummy29", "Dummy30", "Dummy31", "Dummy32", "C", },
  856. typeof (global::Google.ProtocolBuffers.TestProtos.TestRequired),
  857. typeof (global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder));
  858. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequiredForeign__Descriptor
  859. = Descriptor.MessageTypes[6];
  860. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable
  861. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestRequiredForeign__Descriptor,
  862. new string[] { "OptionalMessage", "RepeatedMessage", "Dummy", },
  863. typeof (global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign),
  864. typeof (global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder));
  865. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestForeignNested__Descriptor
  866. = Descriptor.MessageTypes[7];
  867. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable
  868. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestForeignNested__Descriptor,
  869. new string[] { "ForeignNested", },
  870. typeof (global::Google.ProtocolBuffers.TestProtos.TestForeignNested),
  871. typeof (global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder));
  872. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessage__Descriptor
  873. = Descriptor.MessageTypes[8];
  874. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable
  875. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestEmptyMessage__Descriptor,
  876. new string[] { },
  877. typeof (global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage),
  878. typeof (global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder));
  879. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor
  880. = Descriptor.MessageTypes[9];
  881. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable
  882. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor,
  883. new string[] { },
  884. typeof (global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions),
  885. typeof (global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder));
  886. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor
  887. = Descriptor.MessageTypes[10];
  888. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable
  889. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor,
  890. new string[] { "A", "Bb", },
  891. typeof (global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber),
  892. typeof (global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder));
  893. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor
  894. = Descriptor.MessageTypes[11];
  895. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable
  896. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor,
  897. new string[] { "A", "I", },
  898. typeof (global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage),
  899. typeof (global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder));
  900. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor
  901. = Descriptor.MessageTypes[12];
  902. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable
  903. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor,
  904. new string[] { "Bb", },
  905. typeof (global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA),
  906. typeof (global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder));
  907. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor
  908. = Descriptor.MessageTypes[13];
  909. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable
  910. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor,
  911. new string[] { "A", "OptionalInt32", },
  912. typeof (global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB),
  913. typeof (global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder));
  914. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor
  915. = Descriptor.MessageTypes[14];
  916. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable
  917. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor,
  918. new string[] { "A", "Foo", "Bar", },
  919. typeof (global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber),
  920. typeof (global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder));
  921. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor
  922. = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[0];
  923. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable
  924. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor,
  925. new string[] { "A", },
  926. typeof (global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo),
  927. typeof (global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder));
  928. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor
  929. = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[1];
  930. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable
  931. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor,
  932. new string[] { "A", },
  933. typeof (global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar),
  934. typeof (global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder));
  935. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor
  936. = Descriptor.MessageTypes[15];
  937. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable
  938. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor,
  939. new string[] { "OptionalNestedMessage", },
  940. typeof (global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits),
  941. typeof (global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder));
  942. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor
  943. = internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor.NestedTypes[0];
  944. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable
  945. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor,
  946. new string[] { "NestedmessageRepeatedInt32", "NestedmessageRepeatedForeignmessage", },
  947. typeof (global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage),
  948. typeof (global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder));
  949. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor
  950. = Descriptor.MessageTypes[16];
  951. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable
  952. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor,
  953. new string[] { "PrimitiveField", "StringField", "EnumField", "MessageField", "StringPieceField", "CordField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedStringPieceField", "RepeatedCordField", },
  954. typeof (global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames),
  955. typeof (global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder));
  956. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestFieldOrderings__Descriptor
  957. = Descriptor.MessageTypes[17];
  958. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable
  959. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestFieldOrderings__Descriptor,
  960. new string[] { "MyString", "MyInt", "MyFloat", },
  961. typeof (global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings),
  962. typeof (global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder));
  963. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor
  964. = Descriptor.MessageTypes[18];
  965. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable
  966. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor,
  967. new string[] { "EscapedBytes", "LargeUint32", "LargeUint64", "SmallInt32", "SmallInt64", "Utf8String", },
  968. typeof (global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues),
  969. typeof (global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder));
  970. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_FooRequest__Descriptor
  971. = Descriptor.MessageTypes[19];
  972. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooRequest__FieldAccessorTable
  973. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_FooRequest__Descriptor,
  974. new string[] { },
  975. typeof (global::Google.ProtocolBuffers.TestProtos.FooRequest),
  976. typeof (global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder));
  977. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_FooResponse__Descriptor
  978. = Descriptor.MessageTypes[20];
  979. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_FooResponse__FieldAccessorTable
  980. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_FooResponse__Descriptor,
  981. new string[] { },
  982. typeof (global::Google.ProtocolBuffers.TestProtos.FooResponse),
  983. typeof (global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder));
  984. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_BarRequest__Descriptor
  985. = Descriptor.MessageTypes[21];
  986. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_BarRequest__FieldAccessorTable
  987. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_BarRequest__Descriptor,
  988. new string[] { },
  989. typeof (global::Google.ProtocolBuffers.TestProtos.BarRequest),
  990. typeof (global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder));
  991. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_BarResponse__Descriptor
  992. = Descriptor.MessageTypes[22];
  993. internal static pb::FieldAccess.FieldAccessorTable internal__static_protobuf_unittest_BarResponse__FieldAccessorTable
  994. = new pb::FieldAccess.FieldAccessorTable(internal__static_protobuf_unittest_BarResponse__Descriptor,
  995. new string[] { },
  996. typeof (global::Google.ProtocolBuffers.TestProtos.BarResponse),
  997. typeof (global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder));
  998. #endregion
  999. }
  1000. #region Enums
  1001. public enum ForeignEnum {
  1002. FOREIGN_FOO = 4,
  1003. FOREIGN_BAR = 5,
  1004. FOREIGN_BAZ = 6,
  1005. }
  1006. public enum TestEnumWithDupValue {
  1007. FOO1 = 1,
  1008. BAR1 = 2,
  1009. BAZ = 3,
  1010. }
  1011. public enum TestSparseEnum {
  1012. SPARSE_A = 123,
  1013. SPARSE_B = 62374,
  1014. SPARSE_C = 12589234,
  1015. SPARSE_D = -15,
  1016. SPARSE_E = -53452,
  1017. SPARSE_F = 0,
  1018. SPARSE_G = 2,
  1019. }
  1020. #endregion
  1021. #region Messages
  1022. public sealed partial class TestAllTypes : pb::GeneratedMessage<TestAllTypes, TestAllTypes.Builder> {
  1023. private static readonly TestAllTypes defaultInstance = new TestAllTypes();
  1024. public static TestAllTypes DefaultInstance {
  1025. get { return defaultInstance; }
  1026. }
  1027. public override TestAllTypes DefaultInstanceForType {
  1028. get { return defaultInstance; }
  1029. }
  1030. public static pbd::MessageDescriptor Descriptor {
  1031. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__Descriptor; }
  1032. }
  1033. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  1034. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable; }
  1035. }
  1036. #region Nested types
  1037. public static class Types {
  1038. public enum NestedEnum {
  1039. FOO = 1,
  1040. BAR = 2,
  1041. BAZ = 3,
  1042. }
  1043. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  1044. private static readonly NestedMessage defaultInstance = new NestedMessage();
  1045. public static NestedMessage DefaultInstance {
  1046. get { return defaultInstance; }
  1047. }
  1048. public override NestedMessage DefaultInstanceForType {
  1049. get { return defaultInstance; }
  1050. }
  1051. public static pbd::MessageDescriptor Descriptor {
  1052. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor; }
  1053. }
  1054. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  1055. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable; }
  1056. }
  1057. // optional int32 bb = 1;
  1058. private bool hasBb;
  1059. private int bb_ = 0;
  1060. public bool HasBb {
  1061. get { return hasBb; }
  1062. }
  1063. public int Bb {
  1064. get { return bb_; }
  1065. }
  1066. public override bool IsInitialized {
  1067. get {
  1068. return true;
  1069. }
  1070. }
  1071. public override void WriteTo(pb::CodedOutputStream output) {
  1072. if (HasBb) {
  1073. output.WriteInt32(1, Bb);
  1074. }
  1075. UnknownFields.WriteTo(output);
  1076. }
  1077. private int memoizedSerializedSize = -1;
  1078. public override int SerializedSize {
  1079. get {
  1080. int size = memoizedSerializedSize;
  1081. if (size != -1) return size;
  1082. size = 0;
  1083. if (HasBb) {
  1084. size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
  1085. }
  1086. size += UnknownFields.SerializedSize;
  1087. memoizedSerializedSize = size;
  1088. return size;
  1089. }
  1090. }
  1091. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(pb::ByteString data) {
  1092. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1093. }
  1094. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(pb::ByteString data,
  1095. pb::ExtensionRegistry extensionRegistry) {
  1096. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1097. .BuildParsed();
  1098. }
  1099. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(byte[] data) {
  1100. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1101. }
  1102. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(byte[] data,
  1103. pb::ExtensionRegistry extensionRegistry) {
  1104. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1105. .BuildParsed();
  1106. }
  1107. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(global::System.IO.Stream input) {
  1108. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1109. }
  1110. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(
  1111. global::System.IO.Stream input,
  1112. pb::ExtensionRegistry extensionRegistry) {
  1113. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1114. .BuildParsed();
  1115. }
  1116. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(pb::CodedInputStream input) {
  1117. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1118. }
  1119. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(pb::CodedInputStream input,
  1120. pb::ExtensionRegistry extensionRegistry) {
  1121. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1122. .BuildParsed();
  1123. }
  1124. public static Builder CreateBuilder() { return new Builder(); }
  1125. public override Builder CreateBuilderForType() { return new Builder(); }
  1126. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage prototype) {
  1127. return (Builder) new Builder().MergeFrom(prototype);
  1128. }
  1129. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage, Builder> {
  1130. protected override Builder ThisBuilder {
  1131. get { return this; }
  1132. }
  1133. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder()
  1134. internal Builder() {}
  1135. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage();
  1136. protected override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage MessageBeingBuilt {
  1137. get { return result; }
  1138. }
  1139. public override Builder Clear() {
  1140. result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage();
  1141. return this;
  1142. }
  1143. public override Builder Clone() {
  1144. return new Builder().MergeFrom(result);
  1145. }
  1146. public override pbd::MessageDescriptor DescriptorForType {
  1147. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Descriptor; }
  1148. }
  1149. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage DefaultInstanceForType {
  1150. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; }
  1151. }
  1152. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage BuildPartial() {
  1153. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage returnMe = result;
  1154. result = null;
  1155. return returnMe;
  1156. }
  1157. public override Builder MergeFrom(pb::IMessage other) {
  1158. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage) {
  1159. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage) other);
  1160. } else {
  1161. base.MergeFrom(other);
  1162. return this;
  1163. }
  1164. }
  1165. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage other) {
  1166. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) return this;
  1167. if (other.HasBb) {
  1168. Bb = other.Bb;
  1169. }
  1170. this.MergeUnknownFields(other.UnknownFields);
  1171. return this;
  1172. }
  1173. public override Builder MergeFrom(pb::CodedInputStream input) {
  1174. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1175. }
  1176. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1177. pb::UnknownFieldSet.Builder unknownFields =
  1178. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1179. while (true) {
  1180. uint tag = input.ReadTag();
  1181. switch (tag) {
  1182. case 0:
  1183. this.UnknownFields = unknownFields.Build();
  1184. return this;
  1185. default: {
  1186. if (!ParseUnknownField(input, unknownFields,
  1187. extensionRegistry, tag)) {
  1188. this.UnknownFields = unknownFields.Build();
  1189. return this;
  1190. }
  1191. break;
  1192. }
  1193. case 8: {
  1194. Bb = input.ReadInt32();
  1195. break;
  1196. }
  1197. }
  1198. }
  1199. }
  1200. // optional int32 bb = 1;
  1201. public bool HasBb {
  1202. get { return result.HasBb; }
  1203. }
  1204. public int Bb {
  1205. get { return result.Bb; }
  1206. set { SetBb(value); }
  1207. }
  1208. public Builder SetBb(int value) {
  1209. result.hasBb = true;
  1210. result.bb_ = value;
  1211. return this;
  1212. }
  1213. public Builder ClearBb() {
  1214. result.hasBb = false;
  1215. result.bb_ = 0;
  1216. return this;
  1217. }
  1218. }
  1219. }
  1220. public sealed partial class OptionalGroup : pb::GeneratedMessage<OptionalGroup, OptionalGroup.Builder> {
  1221. private static readonly OptionalGroup defaultInstance = new OptionalGroup();
  1222. public static OptionalGroup DefaultInstance {
  1223. get { return defaultInstance; }
  1224. }
  1225. public override OptionalGroup DefaultInstanceForType {
  1226. get { return defaultInstance; }
  1227. }
  1228. public static pbd::MessageDescriptor Descriptor {
  1229. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor; }
  1230. }
  1231. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  1232. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable; }
  1233. }
  1234. // optional int32 a = 17;
  1235. private bool hasA;
  1236. private int a_ = 0;
  1237. public bool HasA {
  1238. get { return hasA; }
  1239. }
  1240. public int A {
  1241. get { return a_; }
  1242. }
  1243. public override bool IsInitialized {
  1244. get {
  1245. return true;
  1246. }
  1247. }
  1248. public override void WriteTo(pb::CodedOutputStream output) {
  1249. if (HasA) {
  1250. output.WriteInt32(17, A);
  1251. }
  1252. UnknownFields.WriteTo(output);
  1253. }
  1254. private int memoizedSerializedSize = -1;
  1255. public override int SerializedSize {
  1256. get {
  1257. int size = memoizedSerializedSize;
  1258. if (size != -1) return size;
  1259. size = 0;
  1260. if (HasA) {
  1261. size += pb::CodedOutputStream.ComputeInt32Size(17, A);
  1262. }
  1263. size += UnknownFields.SerializedSize;
  1264. memoizedSerializedSize = size;
  1265. return size;
  1266. }
  1267. }
  1268. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(pb::ByteString data) {
  1269. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1270. }
  1271. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(pb::ByteString data,
  1272. pb::ExtensionRegistry extensionRegistry) {
  1273. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1274. .BuildParsed();
  1275. }
  1276. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(byte[] data) {
  1277. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1278. }
  1279. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(byte[] data,
  1280. pb::ExtensionRegistry extensionRegistry) {
  1281. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1282. .BuildParsed();
  1283. }
  1284. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(global::System.IO.Stream input) {
  1285. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1286. }
  1287. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(
  1288. global::System.IO.Stream input,
  1289. pb::ExtensionRegistry extensionRegistry) {
  1290. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1291. .BuildParsed();
  1292. }
  1293. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(pb::CodedInputStream input) {
  1294. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1295. }
  1296. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(pb::CodedInputStream input,
  1297. pb::ExtensionRegistry extensionRegistry) {
  1298. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1299. .BuildParsed();
  1300. }
  1301. public static Builder CreateBuilder() { return new Builder(); }
  1302. public override Builder CreateBuilderForType() { return new Builder(); }
  1303. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup prototype) {
  1304. return (Builder) new Builder().MergeFrom(prototype);
  1305. }
  1306. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup, Builder> {
  1307. protected override Builder ThisBuilder {
  1308. get { return this; }
  1309. }
  1310. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder()
  1311. internal Builder() {}
  1312. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup();
  1313. protected override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup MessageBeingBuilt {
  1314. get { return result; }
  1315. }
  1316. public override Builder Clear() {
  1317. result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup();
  1318. return this;
  1319. }
  1320. public override Builder Clone() {
  1321. return new Builder().MergeFrom(result);
  1322. }
  1323. public override pbd::MessageDescriptor DescriptorForType {
  1324. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Descriptor; }
  1325. }
  1326. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup DefaultInstanceForType {
  1327. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance; }
  1328. }
  1329. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup BuildPartial() {
  1330. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup returnMe = result;
  1331. result = null;
  1332. return returnMe;
  1333. }
  1334. public override Builder MergeFrom(pb::IMessage other) {
  1335. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup) {
  1336. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup) other);
  1337. } else {
  1338. base.MergeFrom(other);
  1339. return this;
  1340. }
  1341. }
  1342. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup other) {
  1343. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) return this;
  1344. if (other.HasA) {
  1345. A = other.A;
  1346. }
  1347. this.MergeUnknownFields(other.UnknownFields);
  1348. return this;
  1349. }
  1350. public override Builder MergeFrom(pb::CodedInputStream input) {
  1351. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1352. }
  1353. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1354. pb::UnknownFieldSet.Builder unknownFields =
  1355. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1356. while (true) {
  1357. uint tag = input.ReadTag();
  1358. switch (tag) {
  1359. case 0:
  1360. this.UnknownFields = unknownFields.Build();
  1361. return this;
  1362. default: {
  1363. if (!ParseUnknownField(input, unknownFields,
  1364. extensionRegistry, tag)) {
  1365. this.UnknownFields = unknownFields.Build();
  1366. return this;
  1367. }
  1368. break;
  1369. }
  1370. case 136: {
  1371. A = input.ReadInt32();
  1372. break;
  1373. }
  1374. }
  1375. }
  1376. }
  1377. // optional int32 a = 17;
  1378. public bool HasA {
  1379. get { return result.HasA; }
  1380. }
  1381. public int A {
  1382. get { return result.A; }
  1383. set { SetA(value); }
  1384. }
  1385. public Builder SetA(int value) {
  1386. result.hasA = true;
  1387. result.a_ = value;
  1388. return this;
  1389. }
  1390. public Builder ClearA() {
  1391. result.hasA = false;
  1392. result.a_ = 0;
  1393. return this;
  1394. }
  1395. }
  1396. }
  1397. public sealed partial class RepeatedGroup : pb::GeneratedMessage<RepeatedGroup, RepeatedGroup.Builder> {
  1398. private static readonly RepeatedGroup defaultInstance = new RepeatedGroup();
  1399. public static RepeatedGroup DefaultInstance {
  1400. get { return defaultInstance; }
  1401. }
  1402. public override RepeatedGroup DefaultInstanceForType {
  1403. get { return defaultInstance; }
  1404. }
  1405. public static pbd::MessageDescriptor Descriptor {
  1406. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor; }
  1407. }
  1408. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  1409. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable; }
  1410. }
  1411. // optional int32 a = 47;
  1412. private bool hasA;
  1413. private int a_ = 0;
  1414. public bool HasA {
  1415. get { return hasA; }
  1416. }
  1417. public int A {
  1418. get { return a_; }
  1419. }
  1420. public override bool IsInitialized {
  1421. get {
  1422. return true;
  1423. }
  1424. }
  1425. public override void WriteTo(pb::CodedOutputStream output) {
  1426. if (HasA) {
  1427. output.WriteInt32(47, A);
  1428. }
  1429. UnknownFields.WriteTo(output);
  1430. }
  1431. private int memoizedSerializedSize = -1;
  1432. public override int SerializedSize {
  1433. get {
  1434. int size = memoizedSerializedSize;
  1435. if (size != -1) return size;
  1436. size = 0;
  1437. if (HasA) {
  1438. size += pb::CodedOutputStream.ComputeInt32Size(47, A);
  1439. }
  1440. size += UnknownFields.SerializedSize;
  1441. memoizedSerializedSize = size;
  1442. return size;
  1443. }
  1444. }
  1445. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(pb::ByteString data) {
  1446. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1447. }
  1448. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(pb::ByteString data,
  1449. pb::ExtensionRegistry extensionRegistry) {
  1450. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1451. .BuildParsed();
  1452. }
  1453. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(byte[] data) {
  1454. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1455. }
  1456. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(byte[] data,
  1457. pb::ExtensionRegistry extensionRegistry) {
  1458. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1459. .BuildParsed();
  1460. }
  1461. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(global::System.IO.Stream input) {
  1462. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1463. }
  1464. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(
  1465. global::System.IO.Stream input,
  1466. pb::ExtensionRegistry extensionRegistry) {
  1467. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1468. .BuildParsed();
  1469. }
  1470. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(pb::CodedInputStream input) {
  1471. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1472. }
  1473. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(pb::CodedInputStream input,
  1474. pb::ExtensionRegistry extensionRegistry) {
  1475. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1476. .BuildParsed();
  1477. }
  1478. public static Builder CreateBuilder() { return new Builder(); }
  1479. public override Builder CreateBuilderForType() { return new Builder(); }
  1480. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup prototype) {
  1481. return (Builder) new Builder().MergeFrom(prototype);
  1482. }
  1483. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup, Builder> {
  1484. protected override Builder ThisBuilder {
  1485. get { return this; }
  1486. }
  1487. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.CreateBuilder()
  1488. internal Builder() {}
  1489. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup();
  1490. protected override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup MessageBeingBuilt {
  1491. get { return result; }
  1492. }
  1493. public override Builder Clear() {
  1494. result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup();
  1495. return this;
  1496. }
  1497. public override Builder Clone() {
  1498. return new Builder().MergeFrom(result);
  1499. }
  1500. public override pbd::MessageDescriptor DescriptorForType {
  1501. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Descriptor; }
  1502. }
  1503. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup DefaultInstanceForType {
  1504. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance; }
  1505. }
  1506. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup BuildPartial() {
  1507. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup returnMe = result;
  1508. result = null;
  1509. return returnMe;
  1510. }
  1511. public override Builder MergeFrom(pb::IMessage other) {
  1512. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup) {
  1513. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup) other);
  1514. } else {
  1515. base.MergeFrom(other);
  1516. return this;
  1517. }
  1518. }
  1519. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup other) {
  1520. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance) return this;
  1521. if (other.HasA) {
  1522. A = other.A;
  1523. }
  1524. this.MergeUnknownFields(other.UnknownFields);
  1525. return this;
  1526. }
  1527. public override Builder MergeFrom(pb::CodedInputStream input) {
  1528. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1529. }
  1530. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1531. pb::UnknownFieldSet.Builder unknownFields =
  1532. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1533. while (true) {
  1534. uint tag = input.ReadTag();
  1535. switch (tag) {
  1536. case 0:
  1537. this.UnknownFields = unknownFields.Build();
  1538. return this;
  1539. default: {
  1540. if (!ParseUnknownField(input, unknownFields,
  1541. extensionRegistry, tag)) {
  1542. this.UnknownFields = unknownFields.Build();
  1543. return this;
  1544. }
  1545. break;
  1546. }
  1547. case 376: {
  1548. A = input.ReadInt32();
  1549. break;
  1550. }
  1551. }
  1552. }
  1553. }
  1554. // optional int32 a = 47;
  1555. public bool HasA {
  1556. get { return result.HasA; }
  1557. }
  1558. public int A {
  1559. get { return result.A; }
  1560. set { SetA(value); }
  1561. }
  1562. public Builder SetA(int value) {
  1563. result.hasA = true;
  1564. result.a_ = value;
  1565. return this;
  1566. }
  1567. public Builder ClearA() {
  1568. result.hasA = false;
  1569. result.a_ = 0;
  1570. return this;
  1571. }
  1572. }
  1573. }
  1574. }
  1575. #endregion
  1576. // optional int32 optional_int32 = 1;
  1577. private bool hasOptionalInt32;
  1578. private int optionalInt32_ = 0;
  1579. public bool HasOptionalInt32 {
  1580. get { return hasOptionalInt32; }
  1581. }
  1582. public int OptionalInt32 {
  1583. get { return optionalInt32_; }
  1584. }
  1585. // optional int64 optional_int64 = 2;
  1586. private bool hasOptionalInt64;
  1587. private long optionalInt64_ = 0L;
  1588. public bool HasOptionalInt64 {
  1589. get { return hasOptionalInt64; }
  1590. }
  1591. public long OptionalInt64 {
  1592. get { return optionalInt64_; }
  1593. }
  1594. // optional uint32 optional_uint32 = 3;
  1595. private bool hasOptionalUint32;
  1596. private uint optionalUint32_ = 0;
  1597. public bool HasOptionalUint32 {
  1598. get { return hasOptionalUint32; }
  1599. }
  1600. public uint OptionalUint32 {
  1601. get { return optionalUint32_; }
  1602. }
  1603. // optional uint64 optional_uint64 = 4;
  1604. private bool hasOptionalUint64;
  1605. private ulong optionalUint64_ = 0UL;
  1606. public bool HasOptionalUint64 {
  1607. get { return hasOptionalUint64; }
  1608. }
  1609. public ulong OptionalUint64 {
  1610. get { return optionalUint64_; }
  1611. }
  1612. // optional sint32 optional_sint32 = 5;
  1613. private bool hasOptionalSint32;
  1614. private int optionalSint32_ = 0;
  1615. public bool HasOptionalSint32 {
  1616. get { return hasOptionalSint32; }
  1617. }
  1618. public int OptionalSint32 {
  1619. get { return optionalSint32_; }
  1620. }
  1621. // optional sint64 optional_sint64 = 6;
  1622. private bool hasOptionalSint64;
  1623. private long optionalSint64_ = 0L;
  1624. public bool HasOptionalSint64 {
  1625. get { return hasOptionalSint64; }
  1626. }
  1627. public long OptionalSint64 {
  1628. get { return optionalSint64_; }
  1629. }
  1630. // optional fixed32 optional_fixed32 = 7;
  1631. private bool hasOptionalFixed32;
  1632. private uint optionalFixed32_ = 0;
  1633. public bool HasOptionalFixed32 {
  1634. get { return hasOptionalFixed32; }
  1635. }
  1636. public uint OptionalFixed32 {
  1637. get { return optionalFixed32_; }
  1638. }
  1639. // optional fixed64 optional_fixed64 = 8;
  1640. private bool hasOptionalFixed64;
  1641. private ulong optionalFixed64_ = 0UL;
  1642. public bool HasOptionalFixed64 {
  1643. get { return hasOptionalFixed64; }
  1644. }
  1645. public ulong OptionalFixed64 {
  1646. get { return optionalFixed64_; }
  1647. }
  1648. // optional sfixed32 optional_sfixed32 = 9;
  1649. private bool hasOptionalSfixed32;
  1650. private int optionalSfixed32_ = 0;
  1651. public bool HasOptionalSfixed32 {
  1652. get { return hasOptionalSfixed32; }
  1653. }
  1654. public int OptionalSfixed32 {
  1655. get { return optionalSfixed32_; }
  1656. }
  1657. // optional sfixed64 optional_sfixed64 = 10;
  1658. private bool hasOptionalSfixed64;
  1659. private long optionalSfixed64_ = 0L;
  1660. public bool HasOptionalSfixed64 {
  1661. get { return hasOptionalSfixed64; }
  1662. }
  1663. public long OptionalSfixed64 {
  1664. get { return optionalSfixed64_; }
  1665. }
  1666. // optional float optional_float = 11;
  1667. private bool hasOptionalFloat;
  1668. private float optionalFloat_ = 0F;
  1669. public bool HasOptionalFloat {
  1670. get { return hasOptionalFloat; }
  1671. }
  1672. public float OptionalFloat {
  1673. get { return optionalFloat_; }
  1674. }
  1675. // optional double optional_double = 12;
  1676. private bool hasOptionalDouble;
  1677. private double optionalDouble_ = 0D;
  1678. public bool HasOptionalDouble {
  1679. get { return hasOptionalDouble; }
  1680. }
  1681. public double OptionalDouble {
  1682. get { return optionalDouble_; }
  1683. }
  1684. // optional bool optional_bool = 13;
  1685. private bool hasOptionalBool;
  1686. private bool optionalBool_ = false;
  1687. public bool HasOptionalBool {
  1688. get { return hasOptionalBool; }
  1689. }
  1690. public bool OptionalBool {
  1691. get { return optionalBool_; }
  1692. }
  1693. // optional string optional_string = 14;
  1694. private bool hasOptionalString;
  1695. private string optionalString_ = "";
  1696. public bool HasOptionalString {
  1697. get { return hasOptionalString; }
  1698. }
  1699. public string OptionalString {
  1700. get { return optionalString_; }
  1701. }
  1702. // optional bytes optional_bytes = 15;
  1703. private bool hasOptionalBytes;
  1704. private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
  1705. public bool HasOptionalBytes {
  1706. get { return hasOptionalBytes; }
  1707. }
  1708. public pb::ByteString OptionalBytes {
  1709. get { return optionalBytes_; }
  1710. }
  1711. // optional group OptionalGroup = 16 {
  1712. private bool hasOptionalGroup;
  1713. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance;
  1714. public bool HasOptionalGroup {
  1715. get { return hasOptionalGroup; }
  1716. }
  1717. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup {
  1718. get { return optionalGroup_; }
  1719. }
  1720. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  1721. private bool hasOptionalNestedMessage;
  1722. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
  1723. public bool HasOptionalNestedMessage {
  1724. get { return hasOptionalNestedMessage; }
  1725. }
  1726. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  1727. get { return optionalNestedMessage_; }
  1728. }
  1729. // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
  1730. private bool hasOptionalForeignMessage;
  1731. private global::Google.ProtocolBuffers.TestProtos.ForeignMessage optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
  1732. public bool HasOptionalForeignMessage {
  1733. get { return hasOptionalForeignMessage; }
  1734. }
  1735. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage {
  1736. get { return optionalForeignMessage_; }
  1737. }
  1738. // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  1739. private bool hasOptionalImportMessage;
  1740. private global::Google.ProtocolBuffers.TestProtos.ImportMessage optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance;
  1741. public bool HasOptionalImportMessage {
  1742. get { return hasOptionalImportMessage; }
  1743. }
  1744. public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage {
  1745. get { return optionalImportMessage_; }
  1746. }
  1747. // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  1748. private bool hasOptionalNestedEnum;
  1749. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO;
  1750. public bool HasOptionalNestedEnum {
  1751. get { return hasOptionalNestedEnum; }
  1752. }
  1753. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum { get { return optionalNestedEnum_; }}
  1754. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  1755. private bool hasOptionalForeignEnum;
  1756. private global::Google.ProtocolBuffers.TestProtos.ForeignEnum optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  1757. public bool HasOptionalForeignEnum {
  1758. get { return hasOptionalForeignEnum; }
  1759. }
  1760. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum { get { return optionalForeignEnum_; }}
  1761. // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
  1762. private bool hasOptionalImportEnum;
  1763. private global::Google.ProtocolBuffers.TestProtos.ImportEnum optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO;
  1764. public bool HasOptionalImportEnum {
  1765. get { return hasOptionalImportEnum; }
  1766. }
  1767. public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum { get { return optionalImportEnum_; }}
  1768. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  1769. private bool hasOptionalStringPiece;
  1770. private string optionalStringPiece_ = "";
  1771. public bool HasOptionalStringPiece {
  1772. get { return hasOptionalStringPiece; }
  1773. }
  1774. public string OptionalStringPiece {
  1775. get { return optionalStringPiece_; }
  1776. }
  1777. // optional string optional_cord = 25 [ctype = CORD];
  1778. private bool hasOptionalCord;
  1779. private string optionalCord_ = "";
  1780. public bool HasOptionalCord {
  1781. get { return hasOptionalCord; }
  1782. }
  1783. public string OptionalCord {
  1784. get { return optionalCord_; }
  1785. }
  1786. // repeated int32 repeated_int32 = 31;
  1787. private scg::IList<int> repeatedInt32_ = pbc::Lists<int>.Empty;
  1788. public scg::IList<int> RepeatedInt32List {
  1789. get { return repeatedInt32_; }
  1790. }
  1791. public int RepeatedInt32Count {
  1792. get { return repeatedInt32_.Count; }
  1793. }
  1794. public int GetRepeatedInt32(int index) {
  1795. return repeatedInt32_[index];
  1796. }
  1797. // repeated int64 repeated_int64 = 32;
  1798. private scg::IList<long> repeatedInt64_ = pbc::Lists<long>.Empty;
  1799. public scg::IList<long> RepeatedInt64List {
  1800. get { return repeatedInt64_; }
  1801. }
  1802. public int RepeatedInt64Count {
  1803. get { return repeatedInt64_.Count; }
  1804. }
  1805. public long GetRepeatedInt64(int index) {
  1806. return repeatedInt64_[index];
  1807. }
  1808. // repeated uint32 repeated_uint32 = 33;
  1809. private scg::IList<uint> repeatedUint32_ = pbc::Lists<uint>.Empty;
  1810. public scg::IList<uint> RepeatedUint32List {
  1811. get { return repeatedUint32_; }
  1812. }
  1813. public int RepeatedUint32Count {
  1814. get { return repeatedUint32_.Count; }
  1815. }
  1816. public uint GetRepeatedUint32(int index) {
  1817. return repeatedUint32_[index];
  1818. }
  1819. // repeated uint64 repeated_uint64 = 34;
  1820. private scg::IList<ulong> repeatedUint64_ = pbc::Lists<ulong>.Empty;
  1821. public scg::IList<ulong> RepeatedUint64List {
  1822. get { return repeatedUint64_; }
  1823. }
  1824. public int RepeatedUint64Count {
  1825. get { return repeatedUint64_.Count; }
  1826. }
  1827. public ulong GetRepeatedUint64(int index) {
  1828. return repeatedUint64_[index];
  1829. }
  1830. // repeated sint32 repeated_sint32 = 35;
  1831. private scg::IList<int> repeatedSint32_ = pbc::Lists<int>.Empty;
  1832. public scg::IList<int> RepeatedSint32List {
  1833. get { return repeatedSint32_; }
  1834. }
  1835. public int RepeatedSint32Count {
  1836. get { return repeatedSint32_.Count; }
  1837. }
  1838. public int GetRepeatedSint32(int index) {
  1839. return repeatedSint32_[index];
  1840. }
  1841. // repeated sint64 repeated_sint64 = 36;
  1842. private scg::IList<long> repeatedSint64_ = pbc::Lists<long>.Empty;
  1843. public scg::IList<long> RepeatedSint64List {
  1844. get { return repeatedSint64_; }
  1845. }
  1846. public int RepeatedSint64Count {
  1847. get { return repeatedSint64_.Count; }
  1848. }
  1849. public long GetRepeatedSint64(int index) {
  1850. return repeatedSint64_[index];
  1851. }
  1852. // repeated fixed32 repeated_fixed32 = 37;
  1853. private scg::IList<uint> repeatedFixed32_ = pbc::Lists<uint>.Empty;
  1854. public scg::IList<uint> RepeatedFixed32List {
  1855. get { return repeatedFixed32_; }
  1856. }
  1857. public int RepeatedFixed32Count {
  1858. get { return repeatedFixed32_.Count; }
  1859. }
  1860. public uint GetRepeatedFixed32(int index) {
  1861. return repeatedFixed32_[index];
  1862. }
  1863. // repeated fixed64 repeated_fixed64 = 38;
  1864. private scg::IList<ulong> repeatedFixed64_ = pbc::Lists<ulong>.Empty;
  1865. public scg::IList<ulong> RepeatedFixed64List {
  1866. get { return repeatedFixed64_; }
  1867. }
  1868. public int RepeatedFixed64Count {
  1869. get { return repeatedFixed64_.Count; }
  1870. }
  1871. public ulong GetRepeatedFixed64(int index) {
  1872. return repeatedFixed64_[index];
  1873. }
  1874. // repeated sfixed32 repeated_sfixed32 = 39;
  1875. private scg::IList<int> repeatedSfixed32_ = pbc::Lists<int>.Empty;
  1876. public scg::IList<int> RepeatedSfixed32List {
  1877. get { return repeatedSfixed32_; }
  1878. }
  1879. public int RepeatedSfixed32Count {
  1880. get { return repeatedSfixed32_.Count; }
  1881. }
  1882. public int GetRepeatedSfixed32(int index) {
  1883. return repeatedSfixed32_[index];
  1884. }
  1885. // repeated sfixed64 repeated_sfixed64 = 40;
  1886. private scg::IList<long> repeatedSfixed64_ = pbc::Lists<long>.Empty;
  1887. public scg::IList<long> RepeatedSfixed64List {
  1888. get { return repeatedSfixed64_; }
  1889. }
  1890. public int RepeatedSfixed64Count {
  1891. get { return repeatedSfixed64_.Count; }
  1892. }
  1893. public long GetRepeatedSfixed64(int index) {
  1894. return repeatedSfixed64_[index];
  1895. }
  1896. // repeated float repeated_float = 41;
  1897. private scg::IList<float> repeatedFloat_ = pbc::Lists<float>.Empty;
  1898. public scg::IList<float> RepeatedFloatList {
  1899. get { return repeatedFloat_; }
  1900. }
  1901. public int RepeatedFloatCount {
  1902. get { return repeatedFloat_.Count; }
  1903. }
  1904. public float GetRepeatedFloat(int index) {
  1905. return repeatedFloat_[index];
  1906. }
  1907. // repeated double repeated_double = 42;
  1908. private scg::IList<double> repeatedDouble_ = pbc::Lists<double>.Empty;
  1909. public scg::IList<double> RepeatedDoubleList {
  1910. get { return repeatedDouble_; }
  1911. }
  1912. public int RepeatedDoubleCount {
  1913. get { return repeatedDouble_.Count; }
  1914. }
  1915. public double GetRepeatedDouble(int index) {
  1916. return repeatedDouble_[index];
  1917. }
  1918. // repeated bool repeated_bool = 43;
  1919. private scg::IList<bool> repeatedBool_ = pbc::Lists<bool>.Empty;
  1920. public scg::IList<bool> RepeatedBoolList {
  1921. get { return repeatedBool_; }
  1922. }
  1923. public int RepeatedBoolCount {
  1924. get { return repeatedBool_.Count; }
  1925. }
  1926. public bool GetRepeatedBool(int index) {
  1927. return repeatedBool_[index];
  1928. }
  1929. // repeated string repeated_string = 44;
  1930. private scg::IList<string> repeatedString_ = pbc::Lists<string>.Empty;
  1931. public scg::IList<string> RepeatedStringList {
  1932. get { return repeatedString_; }
  1933. }
  1934. public int RepeatedStringCount {
  1935. get { return repeatedString_.Count; }
  1936. }
  1937. public string GetRepeatedString(int index) {
  1938. return repeatedString_[index];
  1939. }
  1940. // repeated bytes repeated_bytes = 45;
  1941. private scg::IList<pb::ByteString> repeatedBytes_ = pbc::Lists<pb::ByteString>.Empty;
  1942. public scg::IList<pb::ByteString> RepeatedBytesList {
  1943. get { return repeatedBytes_; }
  1944. }
  1945. public int RepeatedBytesCount {
  1946. get { return repeatedBytes_.Count; }
  1947. }
  1948. public pb::ByteString GetRepeatedBytes(int index) {
  1949. return repeatedBytes_[index];
  1950. }
  1951. // repeated group RepeatedGroup = 46 {
  1952. private scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty;
  1953. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
  1954. get { return repeatedGroup_; }
  1955. }
  1956. public int RepeatedGroupCount
  1957. { get { return repeatedGroup_.Count; }
  1958. }
  1959. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
  1960. return repeatedGroup_ [index];
  1961. }
  1962. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  1963. private scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty;
  1964. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
  1965. get { return repeatedNestedMessage_; }
  1966. }
  1967. public int RepeatedNestedMessageCount
  1968. { get { return repeatedNestedMessage_.Count; }
  1969. }
  1970. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
  1971. return repeatedNestedMessage_ [index];
  1972. }
  1973. // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
  1974. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedForeignMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  1975. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList {
  1976. get { return repeatedForeignMessage_; }
  1977. }
  1978. public int RepeatedForeignMessageCount
  1979. { get { return repeatedForeignMessage_.Count; }
  1980. }
  1981. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) {
  1982. return repeatedForeignMessage_ [index];
  1983. }
  1984. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  1985. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> repeatedImportMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty;
  1986. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList {
  1987. get { return repeatedImportMessage_; }
  1988. }
  1989. public int RepeatedImportMessageCount
  1990. { get { return repeatedImportMessage_.Count; }
  1991. }
  1992. public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) {
  1993. return repeatedImportMessage_ [index];
  1994. }
  1995. // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  1996. private scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> ();
  1997. public scg.IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
  1998. get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
  1999. }
  2000. public int RepeatedNestedEnumCount {
  2001. get { return repeatedNestedEnum_.Count; }
  2002. }
  2003. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
  2004. return repeatedNestedEnum_[index];
  2005. }
  2006. // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
  2007. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedForeignEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> ();
  2008. public scg.IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList {
  2009. get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
  2010. }
  2011. public int RepeatedForeignEnumCount {
  2012. get { return repeatedForeignEnum_.Count; }
  2013. }
  2014. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) {
  2015. return repeatedForeignEnum_[index];
  2016. }
  2017. // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
  2018. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> repeatedImportEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportEnum> ();
  2019. public scg.IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList {
  2020. get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
  2021. }
  2022. public int RepeatedImportEnumCount {
  2023. get { return repeatedImportEnum_.Count; }
  2024. }
  2025. public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) {
  2026. return repeatedImportEnum_[index];
  2027. }
  2028. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  2029. private scg::IList<string> repeatedStringPiece_ = pbc::Lists<string>.Empty;
  2030. public scg::IList<string> RepeatedStringPieceList {
  2031. get { return repeatedStringPiece_; }
  2032. }
  2033. public int RepeatedStringPieceCount {
  2034. get { return repeatedStringPiece_.Count; }
  2035. }
  2036. public string GetRepeatedStringPiece(int index) {
  2037. return repeatedStringPiece_[index];
  2038. }
  2039. // repeated string repeated_cord = 55 [ctype = CORD];
  2040. private scg::IList<string> repeatedCord_ = pbc::Lists<string>.Empty;
  2041. public scg::IList<string> RepeatedCordList {
  2042. get { return repeatedCord_; }
  2043. }
  2044. public int RepeatedCordCount {
  2045. get { return repeatedCord_.Count; }
  2046. }
  2047. public string GetRepeatedCord(int index) {
  2048. return repeatedCord_[index];
  2049. }
  2050. // optional int32 default_int32 = 61 [default = 41];
  2051. private bool hasDefaultInt32;
  2052. private int defaultInt32_ = 41;
  2053. public bool HasDefaultInt32 {
  2054. get { return hasDefaultInt32; }
  2055. }
  2056. public int DefaultInt32 {
  2057. get { return defaultInt32_; }
  2058. }
  2059. // optional int64 default_int64 = 62 [default = 42];
  2060. private bool hasDefaultInt64;
  2061. private long defaultInt64_ = 42L;
  2062. public bool HasDefaultInt64 {
  2063. get { return hasDefaultInt64; }
  2064. }
  2065. public long DefaultInt64 {
  2066. get { return defaultInt64_; }
  2067. }
  2068. // optional uint32 default_uint32 = 63 [default = 43];
  2069. private bool hasDefaultUint32;
  2070. private uint defaultUint32_ = 43;
  2071. public bool HasDefaultUint32 {
  2072. get { return hasDefaultUint32; }
  2073. }
  2074. public uint DefaultUint32 {
  2075. get { return defaultUint32_; }
  2076. }
  2077. // optional uint64 default_uint64 = 64 [default = 44];
  2078. private bool hasDefaultUint64;
  2079. private ulong defaultUint64_ = 44UL;
  2080. public bool HasDefaultUint64 {
  2081. get { return hasDefaultUint64; }
  2082. }
  2083. public ulong DefaultUint64 {
  2084. get { return defaultUint64_; }
  2085. }
  2086. // optional sint32 default_sint32 = 65 [default = -45];
  2087. private bool hasDefaultSint32;
  2088. private int defaultSint32_ = -45;
  2089. public bool HasDefaultSint32 {
  2090. get { return hasDefaultSint32; }
  2091. }
  2092. public int DefaultSint32 {
  2093. get { return defaultSint32_; }
  2094. }
  2095. // optional sint64 default_sint64 = 66 [default = 46];
  2096. private bool hasDefaultSint64;
  2097. private long defaultSint64_ = 46L;
  2098. public bool HasDefaultSint64 {
  2099. get { return hasDefaultSint64; }
  2100. }
  2101. public long DefaultSint64 {
  2102. get { return defaultSint64_; }
  2103. }
  2104. // optional fixed32 default_fixed32 = 67 [default = 47];
  2105. private bool hasDefaultFixed32;
  2106. private uint defaultFixed32_ = 47;
  2107. public bool HasDefaultFixed32 {
  2108. get { return hasDefaultFixed32; }
  2109. }
  2110. public uint DefaultFixed32 {
  2111. get { return defaultFixed32_; }
  2112. }
  2113. // optional fixed64 default_fixed64 = 68 [default = 48];
  2114. private bool hasDefaultFixed64;
  2115. private ulong defaultFixed64_ = 48UL;
  2116. public bool HasDefaultFixed64 {
  2117. get { return hasDefaultFixed64; }
  2118. }
  2119. public ulong DefaultFixed64 {
  2120. get { return defaultFixed64_; }
  2121. }
  2122. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  2123. private bool hasDefaultSfixed32;
  2124. private int defaultSfixed32_ = 49;
  2125. public bool HasDefaultSfixed32 {
  2126. get { return hasDefaultSfixed32; }
  2127. }
  2128. public int DefaultSfixed32 {
  2129. get { return defaultSfixed32_; }
  2130. }
  2131. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  2132. private bool hasDefaultSfixed64;
  2133. private long defaultSfixed64_ = -50L;
  2134. public bool HasDefaultSfixed64 {
  2135. get { return hasDefaultSfixed64; }
  2136. }
  2137. public long DefaultSfixed64 {
  2138. get { return defaultSfixed64_; }
  2139. }
  2140. // optional float default_float = 71 [default = 51.5];
  2141. private bool hasDefaultFloat;
  2142. private float defaultFloat_ = 51.5F;
  2143. public bool HasDefaultFloat {
  2144. get { return hasDefaultFloat; }
  2145. }
  2146. public float DefaultFloat {
  2147. get { return defaultFloat_; }
  2148. }
  2149. // optional double default_double = 72 [default = 52000];
  2150. private bool hasDefaultDouble;
  2151. private double defaultDouble_ = 52000D;
  2152. public bool HasDefaultDouble {
  2153. get { return hasDefaultDouble; }
  2154. }
  2155. public double DefaultDouble {
  2156. get { return defaultDouble_; }
  2157. }
  2158. // optional bool default_bool = 73 [default = true];
  2159. private bool hasDefaultBool;
  2160. private bool defaultBool_ = true;
  2161. public bool HasDefaultBool {
  2162. get { return hasDefaultBool; }
  2163. }
  2164. public bool DefaultBool {
  2165. get { return defaultBool_; }
  2166. }
  2167. // optional string default_string = 74 [default = "hello"];
  2168. private bool hasDefaultString;
  2169. private string defaultString_ = "hello";
  2170. public bool HasDefaultString {
  2171. get { return hasDefaultString; }
  2172. }
  2173. public string DefaultString {
  2174. get { return defaultString_; }
  2175. }
  2176. // optional bytes default_bytes = 75 [default = "world"];
  2177. private bool hasDefaultBytes;
  2178. private pb::ByteString defaultBytes_ = ((pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue);
  2179. public bool HasDefaultBytes {
  2180. get { return hasDefaultBytes; }
  2181. }
  2182. public pb::ByteString DefaultBytes {
  2183. get { return defaultBytes_; }
  2184. }
  2185. // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
  2186. private bool hasDefaultNestedEnum;
  2187. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR;
  2188. public bool HasDefaultNestedEnum {
  2189. get { return hasDefaultNestedEnum; }
  2190. }
  2191. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum { get { return defaultNestedEnum_; }}
  2192. // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
  2193. private bool hasDefaultForeignEnum;
  2194. private global::Google.ProtocolBuffers.TestProtos.ForeignEnum defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR;
  2195. public bool HasDefaultForeignEnum {
  2196. get { return hasDefaultForeignEnum; }
  2197. }
  2198. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum { get { return defaultForeignEnum_; }}
  2199. // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
  2200. private bool hasDefaultImportEnum;
  2201. private global::Google.ProtocolBuffers.TestProtos.ImportEnum defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR;
  2202. public bool HasDefaultImportEnum {
  2203. get { return hasDefaultImportEnum; }
  2204. }
  2205. public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum { get { return defaultImportEnum_; }}
  2206. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  2207. private bool hasDefaultStringPiece;
  2208. private string defaultStringPiece_ = "abc";
  2209. public bool HasDefaultStringPiece {
  2210. get { return hasDefaultStringPiece; }
  2211. }
  2212. public string DefaultStringPiece {
  2213. get { return defaultStringPiece_; }
  2214. }
  2215. // optional string default_cord = 85 [default = "123", ctype = CORD];
  2216. private bool hasDefaultCord;
  2217. private string defaultCord_ = "123";
  2218. public bool HasDefaultCord {
  2219. get { return hasDefaultCord; }
  2220. }
  2221. public string DefaultCord {
  2222. get { return defaultCord_; }
  2223. }
  2224. public override bool IsInitialized {
  2225. get {
  2226. return true;
  2227. }
  2228. }
  2229. public override void WriteTo(pb::CodedOutputStream output) {
  2230. if (HasOptionalInt32) {
  2231. output.WriteInt32(1, OptionalInt32);
  2232. }
  2233. if (HasOptionalInt64) {
  2234. output.WriteInt64(2, OptionalInt64);
  2235. }
  2236. if (HasOptionalUint32) {
  2237. output.WriteUInt32(3, OptionalUint32);
  2238. }
  2239. if (HasOptionalUint64) {
  2240. output.WriteUInt64(4, OptionalUint64);
  2241. }
  2242. if (HasOptionalSint32) {
  2243. output.WriteSInt32(5, OptionalSint32);
  2244. }
  2245. if (HasOptionalSint64) {
  2246. output.WriteSInt64(6, OptionalSint64);
  2247. }
  2248. if (HasOptionalFixed32) {
  2249. output.WriteFixed32(7, OptionalFixed32);
  2250. }
  2251. if (HasOptionalFixed64) {
  2252. output.WriteFixed64(8, OptionalFixed64);
  2253. }
  2254. if (HasOptionalSfixed32) {
  2255. output.WriteSFixed32(9, OptionalSfixed32);
  2256. }
  2257. if (HasOptionalSfixed64) {
  2258. output.WriteSFixed64(10, OptionalSfixed64);
  2259. }
  2260. if (HasOptionalFloat) {
  2261. output.WriteFloat(11, OptionalFloat);
  2262. }
  2263. if (HasOptionalDouble) {
  2264. output.WriteDouble(12, OptionalDouble);
  2265. }
  2266. if (HasOptionalBool) {
  2267. output.WriteBool(13, OptionalBool);
  2268. }
  2269. if (HasOptionalString) {
  2270. output.WriteString(14, OptionalString);
  2271. }
  2272. if (HasOptionalBytes) {
  2273. output.WriteBytes(15, OptionalBytes);
  2274. }
  2275. if (HasOptionalGroup) {
  2276. output.WriteGroup(16, OptionalGroup);
  2277. }
  2278. if (HasOptionalNestedMessage) {
  2279. output.WriteMessage(18, OptionalNestedMessage);
  2280. }
  2281. if (HasOptionalForeignMessage) {
  2282. output.WriteMessage(19, OptionalForeignMessage);
  2283. }
  2284. if (HasOptionalImportMessage) {
  2285. output.WriteMessage(20, OptionalImportMessage);
  2286. }
  2287. if (HasOptionalNestedEnum) {
  2288. output.WriteEnum(21, (int) OptionalNestedEnum);
  2289. }
  2290. if (HasOptionalForeignEnum) {
  2291. output.WriteEnum(22, (int) OptionalForeignEnum);
  2292. }
  2293. if (HasOptionalImportEnum) {
  2294. output.WriteEnum(23, (int) OptionalImportEnum);
  2295. }
  2296. if (HasOptionalStringPiece) {
  2297. output.WriteString(24, OptionalStringPiece);
  2298. }
  2299. if (HasOptionalCord) {
  2300. output.WriteString(25, OptionalCord);
  2301. }
  2302. foreach (int element in RepeatedInt32List) {
  2303. output.WriteInt32(31, element);
  2304. }
  2305. foreach (long element in RepeatedInt64List) {
  2306. output.WriteInt64(32, element);
  2307. }
  2308. foreach (uint element in RepeatedUint32List) {
  2309. output.WriteUInt32(33, element);
  2310. }
  2311. foreach (ulong element in RepeatedUint64List) {
  2312. output.WriteUInt64(34, element);
  2313. }
  2314. foreach (int element in RepeatedSint32List) {
  2315. output.WriteSInt32(35, element);
  2316. }
  2317. foreach (long element in RepeatedSint64List) {
  2318. output.WriteSInt64(36, element);
  2319. }
  2320. foreach (uint element in RepeatedFixed32List) {
  2321. output.WriteFixed32(37, element);
  2322. }
  2323. foreach (ulong element in RepeatedFixed64List) {
  2324. output.WriteFixed64(38, element);
  2325. }
  2326. foreach (int element in RepeatedSfixed32List) {
  2327. output.WriteSFixed32(39, element);
  2328. }
  2329. foreach (long element in RepeatedSfixed64List) {
  2330. output.WriteSFixed64(40, element);
  2331. }
  2332. foreach (float element in RepeatedFloatList) {
  2333. output.WriteFloat(41, element);
  2334. }
  2335. foreach (double element in RepeatedDoubleList) {
  2336. output.WriteDouble(42, element);
  2337. }
  2338. foreach (bool element in RepeatedBoolList) {
  2339. output.WriteBool(43, element);
  2340. }
  2341. foreach (string element in RepeatedStringList) {
  2342. output.WriteString(44, element);
  2343. }
  2344. foreach (pb::ByteString element in RepeatedBytesList) {
  2345. output.WriteBytes(45, element);
  2346. }
  2347. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
  2348. output.WriteGroup(46, element);
  2349. }
  2350. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
  2351. output.WriteMessage(48, element);
  2352. }
  2353. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) {
  2354. output.WriteMessage(49, element);
  2355. }
  2356. foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) {
  2357. output.WriteMessage(50, element);
  2358. }
  2359. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) {
  2360. output.WriteEnum(51, (int) element);
  2361. }
  2362. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedForeignEnumList) {
  2363. output.WriteEnum(52, (int) element);
  2364. }
  2365. foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in RepeatedImportEnumList) {
  2366. output.WriteEnum(53, (int) element);
  2367. }
  2368. foreach (string element in RepeatedStringPieceList) {
  2369. output.WriteString(54, element);
  2370. }
  2371. foreach (string element in RepeatedCordList) {
  2372. output.WriteString(55, element);
  2373. }
  2374. if (HasDefaultInt32) {
  2375. output.WriteInt32(61, DefaultInt32);
  2376. }
  2377. if (HasDefaultInt64) {
  2378. output.WriteInt64(62, DefaultInt64);
  2379. }
  2380. if (HasDefaultUint32) {
  2381. output.WriteUInt32(63, DefaultUint32);
  2382. }
  2383. if (HasDefaultUint64) {
  2384. output.WriteUInt64(64, DefaultUint64);
  2385. }
  2386. if (HasDefaultSint32) {
  2387. output.WriteSInt32(65, DefaultSint32);
  2388. }
  2389. if (HasDefaultSint64) {
  2390. output.WriteSInt64(66, DefaultSint64);
  2391. }
  2392. if (HasDefaultFixed32) {
  2393. output.WriteFixed32(67, DefaultFixed32);
  2394. }
  2395. if (HasDefaultFixed64) {
  2396. output.WriteFixed64(68, DefaultFixed64);
  2397. }
  2398. if (HasDefaultSfixed32) {
  2399. output.WriteSFixed32(69, DefaultSfixed32);
  2400. }
  2401. if (HasDefaultSfixed64) {
  2402. output.WriteSFixed64(70, DefaultSfixed64);
  2403. }
  2404. if (HasDefaultFloat) {
  2405. output.WriteFloat(71, DefaultFloat);
  2406. }
  2407. if (HasDefaultDouble) {
  2408. output.WriteDouble(72, DefaultDouble);
  2409. }
  2410. if (HasDefaultBool) {
  2411. output.WriteBool(73, DefaultBool);
  2412. }
  2413. if (HasDefaultString) {
  2414. output.WriteString(74, DefaultString);
  2415. }
  2416. if (HasDefaultBytes) {
  2417. output.WriteBytes(75, DefaultBytes);
  2418. }
  2419. if (HasDefaultNestedEnum) {
  2420. output.WriteEnum(81, (int) DefaultNestedEnum);
  2421. }
  2422. if (HasDefaultForeignEnum) {
  2423. output.WriteEnum(82, (int) DefaultForeignEnum);
  2424. }
  2425. if (HasDefaultImportEnum) {
  2426. output.WriteEnum(83, (int) DefaultImportEnum);
  2427. }
  2428. if (HasDefaultStringPiece) {
  2429. output.WriteString(84, DefaultStringPiece);
  2430. }
  2431. if (HasDefaultCord) {
  2432. output.WriteString(85, DefaultCord);
  2433. }
  2434. UnknownFields.WriteTo(output);
  2435. }
  2436. private int memoizedSerializedSize = -1;
  2437. public override int SerializedSize {
  2438. get {
  2439. int size = memoizedSerializedSize;
  2440. if (size != -1) return size;
  2441. size = 0;
  2442. if (HasOptionalInt32) {
  2443. size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32);
  2444. }
  2445. if (HasOptionalInt64) {
  2446. size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64);
  2447. }
  2448. if (HasOptionalUint32) {
  2449. size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32);
  2450. }
  2451. if (HasOptionalUint64) {
  2452. size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64);
  2453. }
  2454. if (HasOptionalSint32) {
  2455. size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32);
  2456. }
  2457. if (HasOptionalSint64) {
  2458. size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64);
  2459. }
  2460. if (HasOptionalFixed32) {
  2461. size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32);
  2462. }
  2463. if (HasOptionalFixed64) {
  2464. size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64);
  2465. }
  2466. if (HasOptionalSfixed32) {
  2467. size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32);
  2468. }
  2469. if (HasOptionalSfixed64) {
  2470. size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64);
  2471. }
  2472. if (HasOptionalFloat) {
  2473. size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat);
  2474. }
  2475. if (HasOptionalDouble) {
  2476. size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble);
  2477. }
  2478. if (HasOptionalBool) {
  2479. size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool);
  2480. }
  2481. if (HasOptionalString) {
  2482. size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString);
  2483. }
  2484. if (HasOptionalBytes) {
  2485. size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes);
  2486. }
  2487. if (HasOptionalGroup) {
  2488. size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup);
  2489. }
  2490. if (HasOptionalNestedMessage) {
  2491. size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage);
  2492. }
  2493. if (HasOptionalForeignMessage) {
  2494. size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage);
  2495. }
  2496. if (HasOptionalImportMessage) {
  2497. size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage);
  2498. }
  2499. if (HasOptionalNestedEnum) {
  2500. size += pb::CodedOutputStream
  2501. .ComputeEnumSize(21, (int) OptionalNestedEnum);
  2502. }
  2503. if (HasOptionalForeignEnum) {
  2504. size += pb::CodedOutputStream
  2505. .ComputeEnumSize(22, (int) OptionalForeignEnum);
  2506. }
  2507. if (HasOptionalImportEnum) {
  2508. size += pb::CodedOutputStream
  2509. .ComputeEnumSize(23, (int) OptionalImportEnum);
  2510. }
  2511. if (HasOptionalStringPiece) {
  2512. size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece);
  2513. }
  2514. if (HasOptionalCord) {
  2515. size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord);
  2516. }
  2517. foreach (int element in RepeatedInt32List) {
  2518. size += pb::CodedOutputStream
  2519. .ComputeInt32Size(31, element);
  2520. }
  2521. foreach (long element in RepeatedInt64List) {
  2522. size += pb::CodedOutputStream
  2523. .ComputeInt64Size(32, element);
  2524. }
  2525. foreach (uint element in RepeatedUint32List) {
  2526. size += pb::CodedOutputStream
  2527. .ComputeUInt32Size(33, element);
  2528. }
  2529. foreach (ulong element in RepeatedUint64List) {
  2530. size += pb::CodedOutputStream
  2531. .ComputeUInt64Size(34, element);
  2532. }
  2533. foreach (int element in RepeatedSint32List) {
  2534. size += pb::CodedOutputStream
  2535. .ComputeSInt32Size(35, element);
  2536. }
  2537. foreach (long element in RepeatedSint64List) {
  2538. size += pb::CodedOutputStream
  2539. .ComputeSInt64Size(36, element);
  2540. }
  2541. foreach (uint element in RepeatedFixed32List) {
  2542. size += pb::CodedOutputStream
  2543. .ComputeFixed32Size(37, element);
  2544. }
  2545. foreach (ulong element in RepeatedFixed64List) {
  2546. size += pb::CodedOutputStream
  2547. .ComputeFixed64Size(38, element);
  2548. }
  2549. foreach (int element in RepeatedSfixed32List) {
  2550. size += pb::CodedOutputStream
  2551. .ComputeSFixed32Size(39, element);
  2552. }
  2553. foreach (long element in RepeatedSfixed64List) {
  2554. size += pb::CodedOutputStream
  2555. .ComputeSFixed64Size(40, element);
  2556. }
  2557. foreach (float element in RepeatedFloatList) {
  2558. size += pb::CodedOutputStream
  2559. .ComputeFloatSize(41, element);
  2560. }
  2561. foreach (double element in RepeatedDoubleList) {
  2562. size += pb::CodedOutputStream
  2563. .ComputeDoubleSize(42, element);
  2564. }
  2565. foreach (bool element in RepeatedBoolList) {
  2566. size += pb::CodedOutputStream
  2567. .ComputeBoolSize(43, element);
  2568. }
  2569. foreach (string element in RepeatedStringList) {
  2570. size += pb::CodedOutputStream
  2571. .ComputeStringSize(44, element);
  2572. }
  2573. foreach (pb::ByteString element in RepeatedBytesList) {
  2574. size += pb::CodedOutputStream
  2575. .ComputeBytesSize(45, element);
  2576. }
  2577. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
  2578. size += pb::CodedOutputStream.ComputeGroupSize(46, element);
  2579. }
  2580. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
  2581. size += pb::CodedOutputStream.ComputeMessageSize(48, element);
  2582. }
  2583. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) {
  2584. size += pb::CodedOutputStream.ComputeMessageSize(49, element);
  2585. }
  2586. foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) {
  2587. size += pb::CodedOutputStream.ComputeMessageSize(50, element);
  2588. }
  2589. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) {
  2590. size += pb::CodedOutputStream
  2591. .ComputeEnumSize(51, (int) element);
  2592. }
  2593. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedForeignEnumList) {
  2594. size += pb::CodedOutputStream
  2595. .ComputeEnumSize(52, (int) element);
  2596. }
  2597. foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in RepeatedImportEnumList) {
  2598. size += pb::CodedOutputStream
  2599. .ComputeEnumSize(53, (int) element);
  2600. }
  2601. foreach (string element in RepeatedStringPieceList) {
  2602. size += pb::CodedOutputStream
  2603. .ComputeStringSize(54, element);
  2604. }
  2605. foreach (string element in RepeatedCordList) {
  2606. size += pb::CodedOutputStream
  2607. .ComputeStringSize(55, element);
  2608. }
  2609. if (HasDefaultInt32) {
  2610. size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32);
  2611. }
  2612. if (HasDefaultInt64) {
  2613. size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64);
  2614. }
  2615. if (HasDefaultUint32) {
  2616. size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32);
  2617. }
  2618. if (HasDefaultUint64) {
  2619. size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64);
  2620. }
  2621. if (HasDefaultSint32) {
  2622. size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32);
  2623. }
  2624. if (HasDefaultSint64) {
  2625. size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64);
  2626. }
  2627. if (HasDefaultFixed32) {
  2628. size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32);
  2629. }
  2630. if (HasDefaultFixed64) {
  2631. size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64);
  2632. }
  2633. if (HasDefaultSfixed32) {
  2634. size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32);
  2635. }
  2636. if (HasDefaultSfixed64) {
  2637. size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64);
  2638. }
  2639. if (HasDefaultFloat) {
  2640. size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat);
  2641. }
  2642. if (HasDefaultDouble) {
  2643. size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble);
  2644. }
  2645. if (HasDefaultBool) {
  2646. size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool);
  2647. }
  2648. if (HasDefaultString) {
  2649. size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString);
  2650. }
  2651. if (HasDefaultBytes) {
  2652. size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes);
  2653. }
  2654. if (HasDefaultNestedEnum) {
  2655. size += pb::CodedOutputStream
  2656. .ComputeEnumSize(81, (int) DefaultNestedEnum);
  2657. }
  2658. if (HasDefaultForeignEnum) {
  2659. size += pb::CodedOutputStream
  2660. .ComputeEnumSize(82, (int) DefaultForeignEnum);
  2661. }
  2662. if (HasDefaultImportEnum) {
  2663. size += pb::CodedOutputStream
  2664. .ComputeEnumSize(83, (int) DefaultImportEnum);
  2665. }
  2666. if (HasDefaultStringPiece) {
  2667. size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece);
  2668. }
  2669. if (HasDefaultCord) {
  2670. size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord);
  2671. }
  2672. size += UnknownFields.SerializedSize;
  2673. memoizedSerializedSize = size;
  2674. return size;
  2675. }
  2676. }
  2677. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(pb::ByteString data) {
  2678. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2679. }
  2680. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(pb::ByteString data,
  2681. pb::ExtensionRegistry extensionRegistry) {
  2682. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2683. .BuildParsed();
  2684. }
  2685. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(byte[] data) {
  2686. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2687. }
  2688. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(byte[] data,
  2689. pb::ExtensionRegistry extensionRegistry) {
  2690. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2691. .BuildParsed();
  2692. }
  2693. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(global::System.IO.Stream input) {
  2694. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2695. }
  2696. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(
  2697. global::System.IO.Stream input,
  2698. pb::ExtensionRegistry extensionRegistry) {
  2699. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2700. .BuildParsed();
  2701. }
  2702. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(pb::CodedInputStream input) {
  2703. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2704. }
  2705. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(pb::CodedInputStream input,
  2706. pb::ExtensionRegistry extensionRegistry) {
  2707. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2708. .BuildParsed();
  2709. }
  2710. public static Builder CreateBuilder() { return new Builder(); }
  2711. public override Builder CreateBuilderForType() { return new Builder(); }
  2712. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllTypes prototype) {
  2713. return (Builder) new Builder().MergeFrom(prototype);
  2714. }
  2715. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, Builder> {
  2716. protected override Builder ThisBuilder {
  2717. get { return this; }
  2718. }
  2719. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder()
  2720. internal Builder() {}
  2721. global::Google.ProtocolBuffers.TestProtos.TestAllTypes result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes();
  2722. protected override global::Google.ProtocolBuffers.TestProtos.TestAllTypes MessageBeingBuilt {
  2723. get { return result; }
  2724. }
  2725. public override Builder Clear() {
  2726. result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes();
  2727. return this;
  2728. }
  2729. public override Builder Clone() {
  2730. return new Builder().MergeFrom(result);
  2731. }
  2732. public override pbd::MessageDescriptor DescriptorForType {
  2733. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor; }
  2734. }
  2735. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes DefaultInstanceForType {
  2736. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
  2737. }
  2738. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes BuildPartial() {
  2739. result.repeatedInt32_ = pbc::Lists<int>.AsReadOnly(result.repeatedInt32_);
  2740. result.repeatedInt64_ = pbc::Lists<long>.AsReadOnly(result.repeatedInt64_);
  2741. result.repeatedUint32_ = pbc::Lists<uint>.AsReadOnly(result.repeatedUint32_);
  2742. result.repeatedUint64_ = pbc::Lists<ulong>.AsReadOnly(result.repeatedUint64_);
  2743. result.repeatedSint32_ = pbc::Lists<int>.AsReadOnly(result.repeatedSint32_);
  2744. result.repeatedSint64_ = pbc::Lists<long>.AsReadOnly(result.repeatedSint64_);
  2745. result.repeatedFixed32_ = pbc::Lists<uint>.AsReadOnly(result.repeatedFixed32_);
  2746. result.repeatedFixed64_ = pbc::Lists<ulong>.AsReadOnly(result.repeatedFixed64_);
  2747. result.repeatedSfixed32_ = pbc::Lists<int>.AsReadOnly(result.repeatedSfixed32_);
  2748. result.repeatedSfixed64_ = pbc::Lists<long>.AsReadOnly(result.repeatedSfixed64_);
  2749. result.repeatedFloat_ = pbc::Lists<float>.AsReadOnly(result.repeatedFloat_);
  2750. result.repeatedDouble_ = pbc::Lists<double>.AsReadOnly(result.repeatedDouble_);
  2751. result.repeatedBool_ = pbc::Lists<bool>.AsReadOnly(result.repeatedBool_);
  2752. result.repeatedString_ = pbc::Lists<string>.AsReadOnly(result.repeatedString_);
  2753. result.repeatedBytes_ = pbc::Lists<pb::ByteString>.AsReadOnly(result.repeatedBytes_);
  2754. if (result.repeatedGroup_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty) {
  2755. result.repeatedGroup_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.AsReadOnly(result.repeatedGroup_);
  2756. }
  2757. if (result.repeatedNestedMessage_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty) {
  2758. result.repeatedNestedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.AsReadOnly(result.repeatedNestedMessage_);
  2759. }
  2760. if (result.repeatedForeignMessage_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  2761. result.repeatedForeignMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.AsReadOnly(result.repeatedForeignMessage_);
  2762. }
  2763. if (result.repeatedImportMessage_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty) {
  2764. result.repeatedImportMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.AsReadOnly(result.repeatedImportMessage_);
  2765. }
  2766. result.repeatedNestedEnum_ = pbc::Lists.AsReadOnly(result.repeatedNestedEnum_);
  2767. result.repeatedForeignEnum_ = pbc::Lists.AsReadOnly(result.repeatedForeignEnum_);
  2768. result.repeatedImportEnum_ = pbc::Lists.AsReadOnly(result.repeatedImportEnum_);
  2769. result.repeatedStringPiece_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringPiece_);
  2770. result.repeatedCord_ = pbc::Lists<string>.AsReadOnly(result.repeatedCord_);
  2771. global::Google.ProtocolBuffers.TestProtos.TestAllTypes returnMe = result;
  2772. result = null;
  2773. return returnMe;
  2774. }
  2775. public override Builder MergeFrom(pb::IMessage other) {
  2776. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllTypes) {
  2777. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllTypes) other);
  2778. } else {
  2779. base.MergeFrom(other);
  2780. return this;
  2781. }
  2782. }
  2783. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllTypes other) {
  2784. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) return this;
  2785. if (other.HasOptionalInt32) {
  2786. OptionalInt32 = other.OptionalInt32;
  2787. }
  2788. if (other.HasOptionalInt64) {
  2789. OptionalInt64 = other.OptionalInt64;
  2790. }
  2791. if (other.HasOptionalUint32) {
  2792. OptionalUint32 = other.OptionalUint32;
  2793. }
  2794. if (other.HasOptionalUint64) {
  2795. OptionalUint64 = other.OptionalUint64;
  2796. }
  2797. if (other.HasOptionalSint32) {
  2798. OptionalSint32 = other.OptionalSint32;
  2799. }
  2800. if (other.HasOptionalSint64) {
  2801. OptionalSint64 = other.OptionalSint64;
  2802. }
  2803. if (other.HasOptionalFixed32) {
  2804. OptionalFixed32 = other.OptionalFixed32;
  2805. }
  2806. if (other.HasOptionalFixed64) {
  2807. OptionalFixed64 = other.OptionalFixed64;
  2808. }
  2809. if (other.HasOptionalSfixed32) {
  2810. OptionalSfixed32 = other.OptionalSfixed32;
  2811. }
  2812. if (other.HasOptionalSfixed64) {
  2813. OptionalSfixed64 = other.OptionalSfixed64;
  2814. }
  2815. if (other.HasOptionalFloat) {
  2816. OptionalFloat = other.OptionalFloat;
  2817. }
  2818. if (other.HasOptionalDouble) {
  2819. OptionalDouble = other.OptionalDouble;
  2820. }
  2821. if (other.HasOptionalBool) {
  2822. OptionalBool = other.OptionalBool;
  2823. }
  2824. if (other.HasOptionalString) {
  2825. OptionalString = other.OptionalString;
  2826. }
  2827. if (other.HasOptionalBytes) {
  2828. OptionalBytes = other.OptionalBytes;
  2829. }
  2830. if (other.HasOptionalGroup) {
  2831. MergeOptionalGroup(other.OptionalGroup);
  2832. }
  2833. if (other.HasOptionalNestedMessage) {
  2834. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  2835. }
  2836. if (other.HasOptionalForeignMessage) {
  2837. MergeOptionalForeignMessage(other.OptionalForeignMessage);
  2838. }
  2839. if (other.HasOptionalImportMessage) {
  2840. MergeOptionalImportMessage(other.OptionalImportMessage);
  2841. }
  2842. if (other.HasOptionalNestedEnum) {
  2843. OptionalNestedEnum = other.OptionalNestedEnum;
  2844. }
  2845. if (other.HasOptionalForeignEnum) {
  2846. OptionalForeignEnum = other.OptionalForeignEnum;
  2847. }
  2848. if (other.HasOptionalImportEnum) {
  2849. OptionalImportEnum = other.OptionalImportEnum;
  2850. }
  2851. if (other.HasOptionalStringPiece) {
  2852. OptionalStringPiece = other.OptionalStringPiece;
  2853. }
  2854. if (other.HasOptionalCord) {
  2855. OptionalCord = other.OptionalCord;
  2856. }
  2857. if (other.repeatedInt32_.Count != 0) {
  2858. if (result.repeatedInt32_.Count == 0) {
  2859. result.repeatedInt32_ = new scg::List<int>();
  2860. }
  2861. base.AddRange(other.repeatedInt32_, result.repeatedInt32_);
  2862. }
  2863. if (other.repeatedInt64_.Count != 0) {
  2864. if (result.repeatedInt64_.Count == 0) {
  2865. result.repeatedInt64_ = new scg::List<long>();
  2866. }
  2867. base.AddRange(other.repeatedInt64_, result.repeatedInt64_);
  2868. }
  2869. if (other.repeatedUint32_.Count != 0) {
  2870. if (result.repeatedUint32_.Count == 0) {
  2871. result.repeatedUint32_ = new scg::List<uint>();
  2872. }
  2873. base.AddRange(other.repeatedUint32_, result.repeatedUint32_);
  2874. }
  2875. if (other.repeatedUint64_.Count != 0) {
  2876. if (result.repeatedUint64_.Count == 0) {
  2877. result.repeatedUint64_ = new scg::List<ulong>();
  2878. }
  2879. base.AddRange(other.repeatedUint64_, result.repeatedUint64_);
  2880. }
  2881. if (other.repeatedSint32_.Count != 0) {
  2882. if (result.repeatedSint32_.Count == 0) {
  2883. result.repeatedSint32_ = new scg::List<int>();
  2884. }
  2885. base.AddRange(other.repeatedSint32_, result.repeatedSint32_);
  2886. }
  2887. if (other.repeatedSint64_.Count != 0) {
  2888. if (result.repeatedSint64_.Count == 0) {
  2889. result.repeatedSint64_ = new scg::List<long>();
  2890. }
  2891. base.AddRange(other.repeatedSint64_, result.repeatedSint64_);
  2892. }
  2893. if (other.repeatedFixed32_.Count != 0) {
  2894. if (result.repeatedFixed32_.Count == 0) {
  2895. result.repeatedFixed32_ = new scg::List<uint>();
  2896. }
  2897. base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_);
  2898. }
  2899. if (other.repeatedFixed64_.Count != 0) {
  2900. if (result.repeatedFixed64_.Count == 0) {
  2901. result.repeatedFixed64_ = new scg::List<ulong>();
  2902. }
  2903. base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_);
  2904. }
  2905. if (other.repeatedSfixed32_.Count != 0) {
  2906. if (result.repeatedSfixed32_.Count == 0) {
  2907. result.repeatedSfixed32_ = new scg::List<int>();
  2908. }
  2909. base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_);
  2910. }
  2911. if (other.repeatedSfixed64_.Count != 0) {
  2912. if (result.repeatedSfixed64_.Count == 0) {
  2913. result.repeatedSfixed64_ = new scg::List<long>();
  2914. }
  2915. base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_);
  2916. }
  2917. if (other.repeatedFloat_.Count != 0) {
  2918. if (result.repeatedFloat_.Count == 0) {
  2919. result.repeatedFloat_ = new scg::List<float>();
  2920. }
  2921. base.AddRange(other.repeatedFloat_, result.repeatedFloat_);
  2922. }
  2923. if (other.repeatedDouble_.Count != 0) {
  2924. if (result.repeatedDouble_.Count == 0) {
  2925. result.repeatedDouble_ = new scg::List<double>();
  2926. }
  2927. base.AddRange(other.repeatedDouble_, result.repeatedDouble_);
  2928. }
  2929. if (other.repeatedBool_.Count != 0) {
  2930. if (result.repeatedBool_.Count == 0) {
  2931. result.repeatedBool_ = new scg::List<bool>();
  2932. }
  2933. base.AddRange(other.repeatedBool_, result.repeatedBool_);
  2934. }
  2935. if (other.repeatedString_.Count != 0) {
  2936. if (result.repeatedString_.Count == 0) {
  2937. result.repeatedString_ = new scg::List<string>();
  2938. }
  2939. base.AddRange(other.repeatedString_, result.repeatedString_);
  2940. }
  2941. if (other.repeatedBytes_.Count != 0) {
  2942. if (result.repeatedBytes_.Count == 0) {
  2943. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  2944. }
  2945. base.AddRange(other.repeatedBytes_, result.repeatedBytes_);
  2946. }
  2947. if (other.repeatedGroup_.Count != 0) {
  2948. if (result.repeatedGroup_.Count == 0) {
  2949. result.repeatedGroup_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
  2950. }
  2951. base.AddRange(other.repeatedGroup_, result.repeatedGroup_);
  2952. }
  2953. if (other.repeatedNestedMessage_.Count != 0) {
  2954. if (result.repeatedNestedMessage_.Count == 0) {
  2955. result.repeatedNestedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
  2956. }
  2957. base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_);
  2958. }
  2959. if (other.repeatedForeignMessage_.Count != 0) {
  2960. if (result.repeatedForeignMessage_.Count == 0) {
  2961. result.repeatedForeignMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  2962. }
  2963. base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_);
  2964. }
  2965. if (other.repeatedImportMessage_.Count != 0) {
  2966. if (result.repeatedImportMessage_.Count == 0) {
  2967. result.repeatedImportMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
  2968. }
  2969. base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_);
  2970. }
  2971. if (other.repeatedNestedEnum_.Count != 0) {
  2972. if (result.repeatedNestedEnum_.Count == 0) {
  2973. result.repeatedNestedEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>();
  2974. }
  2975. base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_);
  2976. }
  2977. if (other.repeatedForeignEnum_.Count != 0) {
  2978. if (result.repeatedForeignEnum_.Count == 0) {
  2979. result.repeatedForeignEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  2980. }
  2981. base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_);
  2982. }
  2983. if (other.repeatedImportEnum_.Count != 0) {
  2984. if (result.repeatedImportEnum_.Count == 0) {
  2985. result.repeatedImportEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportEnum>();
  2986. }
  2987. base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_);
  2988. }
  2989. if (other.repeatedStringPiece_.Count != 0) {
  2990. if (result.repeatedStringPiece_.Count == 0) {
  2991. result.repeatedStringPiece_ = new scg::List<string>();
  2992. }
  2993. base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_);
  2994. }
  2995. if (other.repeatedCord_.Count != 0) {
  2996. if (result.repeatedCord_.Count == 0) {
  2997. result.repeatedCord_ = new scg::List<string>();
  2998. }
  2999. base.AddRange(other.repeatedCord_, result.repeatedCord_);
  3000. }
  3001. if (other.HasDefaultInt32) {
  3002. DefaultInt32 = other.DefaultInt32;
  3003. }
  3004. if (other.HasDefaultInt64) {
  3005. DefaultInt64 = other.DefaultInt64;
  3006. }
  3007. if (other.HasDefaultUint32) {
  3008. DefaultUint32 = other.DefaultUint32;
  3009. }
  3010. if (other.HasDefaultUint64) {
  3011. DefaultUint64 = other.DefaultUint64;
  3012. }
  3013. if (other.HasDefaultSint32) {
  3014. DefaultSint32 = other.DefaultSint32;
  3015. }
  3016. if (other.HasDefaultSint64) {
  3017. DefaultSint64 = other.DefaultSint64;
  3018. }
  3019. if (other.HasDefaultFixed32) {
  3020. DefaultFixed32 = other.DefaultFixed32;
  3021. }
  3022. if (other.HasDefaultFixed64) {
  3023. DefaultFixed64 = other.DefaultFixed64;
  3024. }
  3025. if (other.HasDefaultSfixed32) {
  3026. DefaultSfixed32 = other.DefaultSfixed32;
  3027. }
  3028. if (other.HasDefaultSfixed64) {
  3029. DefaultSfixed64 = other.DefaultSfixed64;
  3030. }
  3031. if (other.HasDefaultFloat) {
  3032. DefaultFloat = other.DefaultFloat;
  3033. }
  3034. if (other.HasDefaultDouble) {
  3035. DefaultDouble = other.DefaultDouble;
  3036. }
  3037. if (other.HasDefaultBool) {
  3038. DefaultBool = other.DefaultBool;
  3039. }
  3040. if (other.HasDefaultString) {
  3041. DefaultString = other.DefaultString;
  3042. }
  3043. if (other.HasDefaultBytes) {
  3044. DefaultBytes = other.DefaultBytes;
  3045. }
  3046. if (other.HasDefaultNestedEnum) {
  3047. DefaultNestedEnum = other.DefaultNestedEnum;
  3048. }
  3049. if (other.HasDefaultForeignEnum) {
  3050. DefaultForeignEnum = other.DefaultForeignEnum;
  3051. }
  3052. if (other.HasDefaultImportEnum) {
  3053. DefaultImportEnum = other.DefaultImportEnum;
  3054. }
  3055. if (other.HasDefaultStringPiece) {
  3056. DefaultStringPiece = other.DefaultStringPiece;
  3057. }
  3058. if (other.HasDefaultCord) {
  3059. DefaultCord = other.DefaultCord;
  3060. }
  3061. this.MergeUnknownFields(other.UnknownFields);
  3062. return this;
  3063. }
  3064. public override Builder MergeFrom(pb::CodedInputStream input) {
  3065. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  3066. }
  3067. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3068. pb::UnknownFieldSet.Builder unknownFields =
  3069. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3070. while (true) {
  3071. uint tag = input.ReadTag();
  3072. switch (tag) {
  3073. case 0:
  3074. this.UnknownFields = unknownFields.Build();
  3075. return this;
  3076. default: {
  3077. if (!ParseUnknownField(input, unknownFields,
  3078. extensionRegistry, tag)) {
  3079. this.UnknownFields = unknownFields.Build();
  3080. return this;
  3081. }
  3082. break;
  3083. }
  3084. case 8: {
  3085. OptionalInt32 = input.ReadInt32();
  3086. break;
  3087. }
  3088. case 16: {
  3089. OptionalInt64 = input.ReadInt64();
  3090. break;
  3091. }
  3092. case 24: {
  3093. OptionalUint32 = input.ReadUInt32();
  3094. break;
  3095. }
  3096. case 32: {
  3097. OptionalUint64 = input.ReadUInt64();
  3098. break;
  3099. }
  3100. case 40: {
  3101. OptionalSint32 = input.ReadSInt32();
  3102. break;
  3103. }
  3104. case 48: {
  3105. OptionalSint64 = input.ReadSInt64();
  3106. break;
  3107. }
  3108. case 61: {
  3109. OptionalFixed32 = input.ReadFixed32();
  3110. break;
  3111. }
  3112. case 65: {
  3113. OptionalFixed64 = input.ReadFixed64();
  3114. break;
  3115. }
  3116. case 77: {
  3117. OptionalSfixed32 = input.ReadSFixed32();
  3118. break;
  3119. }
  3120. case 81: {
  3121. OptionalSfixed64 = input.ReadSFixed64();
  3122. break;
  3123. }
  3124. case 93: {
  3125. OptionalFloat = input.ReadFloat();
  3126. break;
  3127. }
  3128. case 97: {
  3129. OptionalDouble = input.ReadDouble();
  3130. break;
  3131. }
  3132. case 104: {
  3133. OptionalBool = input.ReadBool();
  3134. break;
  3135. }
  3136. case 114: {
  3137. OptionalString = input.ReadString();
  3138. break;
  3139. }
  3140. case 122: {
  3141. OptionalBytes = input.ReadBytes();
  3142. break;
  3143. }
  3144. case 131: {
  3145. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder();
  3146. if (HasOptionalGroup) {
  3147. subBuilder.MergeFrom(OptionalGroup);
  3148. }
  3149. input.ReadGroup(16, subBuilder, extensionRegistry);
  3150. OptionalGroup = subBuilder.BuildPartial();
  3151. break;
  3152. }
  3153. case 146: {
  3154. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
  3155. if (HasOptionalNestedMessage) {
  3156. subBuilder.MergeFrom(OptionalNestedMessage);
  3157. }
  3158. input.ReadMessage(subBuilder, extensionRegistry);
  3159. OptionalNestedMessage = subBuilder.BuildPartial();
  3160. break;
  3161. }
  3162. case 154: {
  3163. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  3164. if (HasOptionalForeignMessage) {
  3165. subBuilder.MergeFrom(OptionalForeignMessage);
  3166. }
  3167. input.ReadMessage(subBuilder, extensionRegistry);
  3168. OptionalForeignMessage = subBuilder.BuildPartial();
  3169. break;
  3170. }
  3171. case 162: {
  3172. global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder();
  3173. if (HasOptionalImportMessage) {
  3174. subBuilder.MergeFrom(OptionalImportMessage);
  3175. }
  3176. input.ReadMessage(subBuilder, extensionRegistry);
  3177. OptionalImportMessage = subBuilder.BuildPartial();
  3178. break;
  3179. }
  3180. case 168: {
  3181. int rawValue = input.ReadEnum();
  3182. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) {
  3183. unknownFields.MergeVarintField(21, (ulong) rawValue);
  3184. } else {
  3185. OptionalNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue;
  3186. }
  3187. break;
  3188. }
  3189. case 176: {
  3190. int rawValue = input.ReadEnum();
  3191. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
  3192. unknownFields.MergeVarintField(22, (ulong) rawValue);
  3193. } else {
  3194. OptionalForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  3195. }
  3196. break;
  3197. }
  3198. case 184: {
  3199. int rawValue = input.ReadEnum();
  3200. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) {
  3201. unknownFields.MergeVarintField(23, (ulong) rawValue);
  3202. } else {
  3203. OptionalImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue;
  3204. }
  3205. break;
  3206. }
  3207. case 194: {
  3208. OptionalStringPiece = input.ReadString();
  3209. break;
  3210. }
  3211. case 202: {
  3212. OptionalCord = input.ReadString();
  3213. break;
  3214. }
  3215. case 248: {
  3216. AddRepeatedInt32(input.ReadInt32());
  3217. break;
  3218. }
  3219. case 256: {
  3220. AddRepeatedInt64(input.ReadInt64());
  3221. break;
  3222. }
  3223. case 264: {
  3224. AddRepeatedUint32(input.ReadUInt32());
  3225. break;
  3226. }
  3227. case 272: {
  3228. AddRepeatedUint64(input.ReadUInt64());
  3229. break;
  3230. }
  3231. case 280: {
  3232. AddRepeatedSint32(input.ReadSInt32());
  3233. break;
  3234. }
  3235. case 288: {
  3236. AddRepeatedSint64(input.ReadSInt64());
  3237. break;
  3238. }
  3239. case 301: {
  3240. AddRepeatedFixed32(input.ReadFixed32());
  3241. break;
  3242. }
  3243. case 305: {
  3244. AddRepeatedFixed64(input.ReadFixed64());
  3245. break;
  3246. }
  3247. case 317: {
  3248. AddRepeatedSfixed32(input.ReadSFixed32());
  3249. break;
  3250. }
  3251. case 321: {
  3252. AddRepeatedSfixed64(input.ReadSFixed64());
  3253. break;
  3254. }
  3255. case 333: {
  3256. AddRepeatedFloat(input.ReadFloat());
  3257. break;
  3258. }
  3259. case 337: {
  3260. AddRepeatedDouble(input.ReadDouble());
  3261. break;
  3262. }
  3263. case 344: {
  3264. AddRepeatedBool(input.ReadBool());
  3265. break;
  3266. }
  3267. case 354: {
  3268. AddRepeatedString(input.ReadString());
  3269. break;
  3270. }
  3271. case 362: {
  3272. AddRepeatedBytes(input.ReadBytes());
  3273. break;
  3274. }
  3275. case 371: {
  3276. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.CreateBuilder();
  3277. input.ReadGroup(46, subBuilder, extensionRegistry);
  3278. AddRepeatedGroup(subBuilder.BuildPartial());
  3279. break;
  3280. }
  3281. case 386: {
  3282. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
  3283. input.ReadMessage(subBuilder, extensionRegistry);
  3284. AddRepeatedNestedMessage(subBuilder.BuildPartial());
  3285. break;
  3286. }
  3287. case 394: {
  3288. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  3289. input.ReadMessage(subBuilder, extensionRegistry);
  3290. AddRepeatedForeignMessage(subBuilder.BuildPartial());
  3291. break;
  3292. }
  3293. case 402: {
  3294. global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder();
  3295. input.ReadMessage(subBuilder, extensionRegistry);
  3296. AddRepeatedImportMessage(subBuilder.BuildPartial());
  3297. break;
  3298. }
  3299. case 408: {
  3300. int rawValue = input.ReadEnum();
  3301. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue;
  3302. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), value)) {
  3303. unknownFields.MergeVarintField(51, (ulong) rawValue);
  3304. } else {
  3305. AddRepeatedNestedEnum(value);
  3306. }
  3307. break;
  3308. }
  3309. case 416: {
  3310. int rawValue = input.ReadEnum();
  3311. global::Google.ProtocolBuffers.TestProtos.ForeignEnum value = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  3312. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), value)) {
  3313. unknownFields.MergeVarintField(52, (ulong) rawValue);
  3314. } else {
  3315. AddRepeatedForeignEnum(value);
  3316. }
  3317. break;
  3318. }
  3319. case 424: {
  3320. int rawValue = input.ReadEnum();
  3321. global::Google.ProtocolBuffers.TestProtos.ImportEnum value = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue;
  3322. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), value)) {
  3323. unknownFields.MergeVarintField(53, (ulong) rawValue);
  3324. } else {
  3325. AddRepeatedImportEnum(value);
  3326. }
  3327. break;
  3328. }
  3329. case 434: {
  3330. AddRepeatedStringPiece(input.ReadString());
  3331. break;
  3332. }
  3333. case 442: {
  3334. AddRepeatedCord(input.ReadString());
  3335. break;
  3336. }
  3337. case 488: {
  3338. DefaultInt32 = input.ReadInt32();
  3339. break;
  3340. }
  3341. case 496: {
  3342. DefaultInt64 = input.ReadInt64();
  3343. break;
  3344. }
  3345. case 504: {
  3346. DefaultUint32 = input.ReadUInt32();
  3347. break;
  3348. }
  3349. case 512: {
  3350. DefaultUint64 = input.ReadUInt64();
  3351. break;
  3352. }
  3353. case 520: {
  3354. DefaultSint32 = input.ReadSInt32();
  3355. break;
  3356. }
  3357. case 528: {
  3358. DefaultSint64 = input.ReadSInt64();
  3359. break;
  3360. }
  3361. case 541: {
  3362. DefaultFixed32 = input.ReadFixed32();
  3363. break;
  3364. }
  3365. case 545: {
  3366. DefaultFixed64 = input.ReadFixed64();
  3367. break;
  3368. }
  3369. case 557: {
  3370. DefaultSfixed32 = input.ReadSFixed32();
  3371. break;
  3372. }
  3373. case 561: {
  3374. DefaultSfixed64 = input.ReadSFixed64();
  3375. break;
  3376. }
  3377. case 573: {
  3378. DefaultFloat = input.ReadFloat();
  3379. break;
  3380. }
  3381. case 577: {
  3382. DefaultDouble = input.ReadDouble();
  3383. break;
  3384. }
  3385. case 584: {
  3386. DefaultBool = input.ReadBool();
  3387. break;
  3388. }
  3389. case 594: {
  3390. DefaultString = input.ReadString();
  3391. break;
  3392. }
  3393. case 602: {
  3394. DefaultBytes = input.ReadBytes();
  3395. break;
  3396. }
  3397. case 648: {
  3398. int rawValue = input.ReadEnum();
  3399. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) {
  3400. unknownFields.MergeVarintField(81, (ulong) rawValue);
  3401. } else {
  3402. DefaultNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue;
  3403. }
  3404. break;
  3405. }
  3406. case 656: {
  3407. int rawValue = input.ReadEnum();
  3408. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
  3409. unknownFields.MergeVarintField(82, (ulong) rawValue);
  3410. } else {
  3411. DefaultForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  3412. }
  3413. break;
  3414. }
  3415. case 664: {
  3416. int rawValue = input.ReadEnum();
  3417. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) {
  3418. unknownFields.MergeVarintField(83, (ulong) rawValue);
  3419. } else {
  3420. DefaultImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue;
  3421. }
  3422. break;
  3423. }
  3424. case 674: {
  3425. DefaultStringPiece = input.ReadString();
  3426. break;
  3427. }
  3428. case 682: {
  3429. DefaultCord = input.ReadString();
  3430. break;
  3431. }
  3432. }
  3433. }
  3434. }
  3435. // optional int32 optional_int32 = 1;
  3436. public bool HasOptionalInt32 {
  3437. get { return result.HasOptionalInt32; }
  3438. }
  3439. public int OptionalInt32 {
  3440. get { return result.OptionalInt32; }
  3441. set { SetOptionalInt32(value); }
  3442. }
  3443. public Builder SetOptionalInt32(int value) {
  3444. result.hasOptionalInt32 = true;
  3445. result.optionalInt32_ = value;
  3446. return this;
  3447. }
  3448. public Builder ClearOptionalInt32() {
  3449. result.hasOptionalInt32 = false;
  3450. result.optionalInt32_ = 0;
  3451. return this;
  3452. }
  3453. // optional int64 optional_int64 = 2;
  3454. public bool HasOptionalInt64 {
  3455. get { return result.HasOptionalInt64; }
  3456. }
  3457. public long OptionalInt64 {
  3458. get { return result.OptionalInt64; }
  3459. set { SetOptionalInt64(value); }
  3460. }
  3461. public Builder SetOptionalInt64(long value) {
  3462. result.hasOptionalInt64 = true;
  3463. result.optionalInt64_ = value;
  3464. return this;
  3465. }
  3466. public Builder ClearOptionalInt64() {
  3467. result.hasOptionalInt64 = false;
  3468. result.optionalInt64_ = 0L;
  3469. return this;
  3470. }
  3471. // optional uint32 optional_uint32 = 3;
  3472. public bool HasOptionalUint32 {
  3473. get { return result.HasOptionalUint32; }
  3474. }
  3475. public uint OptionalUint32 {
  3476. get { return result.OptionalUint32; }
  3477. set { SetOptionalUint32(value); }
  3478. }
  3479. public Builder SetOptionalUint32(uint value) {
  3480. result.hasOptionalUint32 = true;
  3481. result.optionalUint32_ = value;
  3482. return this;
  3483. }
  3484. public Builder ClearOptionalUint32() {
  3485. result.hasOptionalUint32 = false;
  3486. result.optionalUint32_ = 0;
  3487. return this;
  3488. }
  3489. // optional uint64 optional_uint64 = 4;
  3490. public bool HasOptionalUint64 {
  3491. get { return result.HasOptionalUint64; }
  3492. }
  3493. public ulong OptionalUint64 {
  3494. get { return result.OptionalUint64; }
  3495. set { SetOptionalUint64(value); }
  3496. }
  3497. public Builder SetOptionalUint64(ulong value) {
  3498. result.hasOptionalUint64 = true;
  3499. result.optionalUint64_ = value;
  3500. return this;
  3501. }
  3502. public Builder ClearOptionalUint64() {
  3503. result.hasOptionalUint64 = false;
  3504. result.optionalUint64_ = 0UL;
  3505. return this;
  3506. }
  3507. // optional sint32 optional_sint32 = 5;
  3508. public bool HasOptionalSint32 {
  3509. get { return result.HasOptionalSint32; }
  3510. }
  3511. public int OptionalSint32 {
  3512. get { return result.OptionalSint32; }
  3513. set { SetOptionalSint32(value); }
  3514. }
  3515. public Builder SetOptionalSint32(int value) {
  3516. result.hasOptionalSint32 = true;
  3517. result.optionalSint32_ = value;
  3518. return this;
  3519. }
  3520. public Builder ClearOptionalSint32() {
  3521. result.hasOptionalSint32 = false;
  3522. result.optionalSint32_ = 0;
  3523. return this;
  3524. }
  3525. // optional sint64 optional_sint64 = 6;
  3526. public bool HasOptionalSint64 {
  3527. get { return result.HasOptionalSint64; }
  3528. }
  3529. public long OptionalSint64 {
  3530. get { return result.OptionalSint64; }
  3531. set { SetOptionalSint64(value); }
  3532. }
  3533. public Builder SetOptionalSint64(long value) {
  3534. result.hasOptionalSint64 = true;
  3535. result.optionalSint64_ = value;
  3536. return this;
  3537. }
  3538. public Builder ClearOptionalSint64() {
  3539. result.hasOptionalSint64 = false;
  3540. result.optionalSint64_ = 0L;
  3541. return this;
  3542. }
  3543. // optional fixed32 optional_fixed32 = 7;
  3544. public bool HasOptionalFixed32 {
  3545. get { return result.HasOptionalFixed32; }
  3546. }
  3547. public uint OptionalFixed32 {
  3548. get { return result.OptionalFixed32; }
  3549. set { SetOptionalFixed32(value); }
  3550. }
  3551. public Builder SetOptionalFixed32(uint value) {
  3552. result.hasOptionalFixed32 = true;
  3553. result.optionalFixed32_ = value;
  3554. return this;
  3555. }
  3556. public Builder ClearOptionalFixed32() {
  3557. result.hasOptionalFixed32 = false;
  3558. result.optionalFixed32_ = 0;
  3559. return this;
  3560. }
  3561. // optional fixed64 optional_fixed64 = 8;
  3562. public bool HasOptionalFixed64 {
  3563. get { return result.HasOptionalFixed64; }
  3564. }
  3565. public ulong OptionalFixed64 {
  3566. get { return result.OptionalFixed64; }
  3567. set { SetOptionalFixed64(value); }
  3568. }
  3569. public Builder SetOptionalFixed64(ulong value) {
  3570. result.hasOptionalFixed64 = true;
  3571. result.optionalFixed64_ = value;
  3572. return this;
  3573. }
  3574. public Builder ClearOptionalFixed64() {
  3575. result.hasOptionalFixed64 = false;
  3576. result.optionalFixed64_ = 0UL;
  3577. return this;
  3578. }
  3579. // optional sfixed32 optional_sfixed32 = 9;
  3580. public bool HasOptionalSfixed32 {
  3581. get { return result.HasOptionalSfixed32; }
  3582. }
  3583. public int OptionalSfixed32 {
  3584. get { return result.OptionalSfixed32; }
  3585. set { SetOptionalSfixed32(value); }
  3586. }
  3587. public Builder SetOptionalSfixed32(int value) {
  3588. result.hasOptionalSfixed32 = true;
  3589. result.optionalSfixed32_ = value;
  3590. return this;
  3591. }
  3592. public Builder ClearOptionalSfixed32() {
  3593. result.hasOptionalSfixed32 = false;
  3594. result.optionalSfixed32_ = 0;
  3595. return this;
  3596. }
  3597. // optional sfixed64 optional_sfixed64 = 10;
  3598. public bool HasOptionalSfixed64 {
  3599. get { return result.HasOptionalSfixed64; }
  3600. }
  3601. public long OptionalSfixed64 {
  3602. get { return result.OptionalSfixed64; }
  3603. set { SetOptionalSfixed64(value); }
  3604. }
  3605. public Builder SetOptionalSfixed64(long value) {
  3606. result.hasOptionalSfixed64 = true;
  3607. result.optionalSfixed64_ = value;
  3608. return this;
  3609. }
  3610. public Builder ClearOptionalSfixed64() {
  3611. result.hasOptionalSfixed64 = false;
  3612. result.optionalSfixed64_ = 0L;
  3613. return this;
  3614. }
  3615. // optional float optional_float = 11;
  3616. public bool HasOptionalFloat {
  3617. get { return result.HasOptionalFloat; }
  3618. }
  3619. public float OptionalFloat {
  3620. get { return result.OptionalFloat; }
  3621. set { SetOptionalFloat(value); }
  3622. }
  3623. public Builder SetOptionalFloat(float value) {
  3624. result.hasOptionalFloat = true;
  3625. result.optionalFloat_ = value;
  3626. return this;
  3627. }
  3628. public Builder ClearOptionalFloat() {
  3629. result.hasOptionalFloat = false;
  3630. result.optionalFloat_ = 0F;
  3631. return this;
  3632. }
  3633. // optional double optional_double = 12;
  3634. public bool HasOptionalDouble {
  3635. get { return result.HasOptionalDouble; }
  3636. }
  3637. public double OptionalDouble {
  3638. get { return result.OptionalDouble; }
  3639. set { SetOptionalDouble(value); }
  3640. }
  3641. public Builder SetOptionalDouble(double value) {
  3642. result.hasOptionalDouble = true;
  3643. result.optionalDouble_ = value;
  3644. return this;
  3645. }
  3646. public Builder ClearOptionalDouble() {
  3647. result.hasOptionalDouble = false;
  3648. result.optionalDouble_ = 0D;
  3649. return this;
  3650. }
  3651. // optional bool optional_bool = 13;
  3652. public bool HasOptionalBool {
  3653. get { return result.HasOptionalBool; }
  3654. }
  3655. public bool OptionalBool {
  3656. get { return result.OptionalBool; }
  3657. set { SetOptionalBool(value); }
  3658. }
  3659. public Builder SetOptionalBool(bool value) {
  3660. result.hasOptionalBool = true;
  3661. result.optionalBool_ = value;
  3662. return this;
  3663. }
  3664. public Builder ClearOptionalBool() {
  3665. result.hasOptionalBool = false;
  3666. result.optionalBool_ = false;
  3667. return this;
  3668. }
  3669. // optional string optional_string = 14;
  3670. public bool HasOptionalString {
  3671. get { return result.HasOptionalString; }
  3672. }
  3673. public string OptionalString {
  3674. get { return result.OptionalString; }
  3675. set { SetOptionalString(value); }
  3676. }
  3677. public Builder SetOptionalString(string value) {
  3678. result.hasOptionalString = true;
  3679. result.optionalString_ = value;
  3680. return this;
  3681. }
  3682. public Builder ClearOptionalString() {
  3683. result.hasOptionalString = false;
  3684. result.optionalString_ = "";
  3685. return this;
  3686. }
  3687. // optional bytes optional_bytes = 15;
  3688. public bool HasOptionalBytes {
  3689. get { return result.HasOptionalBytes; }
  3690. }
  3691. public pb::ByteString OptionalBytes {
  3692. get { return result.OptionalBytes; }
  3693. set { SetOptionalBytes(value); }
  3694. }
  3695. public Builder SetOptionalBytes(pb::ByteString value) {
  3696. result.hasOptionalBytes = true;
  3697. result.optionalBytes_ = value;
  3698. return this;
  3699. }
  3700. public Builder ClearOptionalBytes() {
  3701. result.hasOptionalBytes = false;
  3702. result.optionalBytes_ = pb::ByteString.Empty;
  3703. return this;
  3704. }
  3705. // optional group OptionalGroup = 16 {
  3706. public bool HasOptionalGroup {
  3707. get { return result.HasOptionalGroup; }
  3708. }
  3709. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup {
  3710. get { return result.OptionalGroup; }
  3711. set { SetOptionalGroup(value); }
  3712. }
  3713. public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) {
  3714. result.hasOptionalGroup = true;
  3715. result.optionalGroup_ = value;
  3716. return this;
  3717. }
  3718. public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder builderForValue) {
  3719. result.hasOptionalGroup = true;
  3720. result.optionalGroup_ = builderForValue.Build();
  3721. return this;
  3722. }
  3723. public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) {
  3724. if (result.HasOptionalGroup &&
  3725. result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) {
  3726. result.optionalGroup_ =
  3727. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
  3728. } else {
  3729. result.optionalGroup_ = value;
  3730. }
  3731. result.hasOptionalGroup = true;
  3732. return this;
  3733. }
  3734. public Builder ClearOptionalGroup() {
  3735. result.hasOptionalGroup = false;
  3736. result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance;
  3737. return this;
  3738. }
  3739. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  3740. public bool HasOptionalNestedMessage {
  3741. get { return result.HasOptionalNestedMessage; }
  3742. }
  3743. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  3744. get { return result.OptionalNestedMessage; }
  3745. set { SetOptionalNestedMessage(value); }
  3746. }
  3747. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  3748. result.hasOptionalNestedMessage = true;
  3749. result.optionalNestedMessage_ = value;
  3750. return this;
  3751. }
  3752. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  3753. result.hasOptionalNestedMessage = true;
  3754. result.optionalNestedMessage_ = builderForValue.Build();
  3755. return this;
  3756. }
  3757. public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  3758. if (result.HasOptionalNestedMessage &&
  3759. result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
  3760. result.optionalNestedMessage_ =
  3761. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  3762. } else {
  3763. result.optionalNestedMessage_ = value;
  3764. }
  3765. result.hasOptionalNestedMessage = true;
  3766. return this;
  3767. }
  3768. public Builder ClearOptionalNestedMessage() {
  3769. result.hasOptionalNestedMessage = false;
  3770. result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
  3771. return this;
  3772. }
  3773. // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
  3774. public bool HasOptionalForeignMessage {
  3775. get { return result.HasOptionalForeignMessage; }
  3776. }
  3777. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage {
  3778. get { return result.OptionalForeignMessage; }
  3779. set { SetOptionalForeignMessage(value); }
  3780. }
  3781. public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  3782. result.hasOptionalForeignMessage = true;
  3783. result.optionalForeignMessage_ = value;
  3784. return this;
  3785. }
  3786. public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  3787. result.hasOptionalForeignMessage = true;
  3788. result.optionalForeignMessage_ = builderForValue.Build();
  3789. return this;
  3790. }
  3791. public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  3792. if (result.HasOptionalForeignMessage &&
  3793. result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
  3794. result.optionalForeignMessage_ =
  3795. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial();
  3796. } else {
  3797. result.optionalForeignMessage_ = value;
  3798. }
  3799. result.hasOptionalForeignMessage = true;
  3800. return this;
  3801. }
  3802. public Builder ClearOptionalForeignMessage() {
  3803. result.hasOptionalForeignMessage = false;
  3804. result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
  3805. return this;
  3806. }
  3807. // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  3808. public bool HasOptionalImportMessage {
  3809. get { return result.HasOptionalImportMessage; }
  3810. }
  3811. public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage {
  3812. get { return result.OptionalImportMessage; }
  3813. set { SetOptionalImportMessage(value); }
  3814. }
  3815. public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  3816. result.hasOptionalImportMessage = true;
  3817. result.optionalImportMessage_ = value;
  3818. return this;
  3819. }
  3820. public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
  3821. result.hasOptionalImportMessage = true;
  3822. result.optionalImportMessage_ = builderForValue.Build();
  3823. return this;
  3824. }
  3825. public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  3826. if (result.HasOptionalImportMessage &&
  3827. result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance) {
  3828. result.optionalImportMessage_ =
  3829. global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial();
  3830. } else {
  3831. result.optionalImportMessage_ = value;
  3832. }
  3833. result.hasOptionalImportMessage = true;
  3834. return this;
  3835. }
  3836. public Builder ClearOptionalImportMessage() {
  3837. result.hasOptionalImportMessage = false;
  3838. result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance;
  3839. return this;
  3840. }
  3841. // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  3842. public bool HasOptionalNestedEnum {
  3843. get { return result.HasOptionalNestedEnum; }
  3844. }
  3845. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
  3846. get { return result.OptionalNestedEnum; }
  3847. set { SetOptionalNestedEnum(value); }
  3848. }
  3849. public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  3850. result.hasOptionalNestedEnum = true;
  3851. result.optionalNestedEnum_ = value;
  3852. return this;
  3853. }
  3854. public Builder ClearOptionalNestedEnum() {
  3855. result.hasOptionalNestedEnum = false;
  3856. result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO;
  3857. return this;
  3858. }
  3859. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  3860. public bool HasOptionalForeignEnum {
  3861. get { return result.HasOptionalForeignEnum; }
  3862. }
  3863. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum {
  3864. get { return result.OptionalForeignEnum; }
  3865. set { SetOptionalForeignEnum(value); }
  3866. }
  3867. public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  3868. result.hasOptionalForeignEnum = true;
  3869. result.optionalForeignEnum_ = value;
  3870. return this;
  3871. }
  3872. public Builder ClearOptionalForeignEnum() {
  3873. result.hasOptionalForeignEnum = false;
  3874. result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  3875. return this;
  3876. }
  3877. // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
  3878. public bool HasOptionalImportEnum {
  3879. get { return result.HasOptionalImportEnum; }
  3880. }
  3881. public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum {
  3882. get { return result.OptionalImportEnum; }
  3883. set { SetOptionalImportEnum(value); }
  3884. }
  3885. public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  3886. result.hasOptionalImportEnum = true;
  3887. result.optionalImportEnum_ = value;
  3888. return this;
  3889. }
  3890. public Builder ClearOptionalImportEnum() {
  3891. result.hasOptionalImportEnum = false;
  3892. result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO;
  3893. return this;
  3894. }
  3895. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  3896. public bool HasOptionalStringPiece {
  3897. get { return result.HasOptionalStringPiece; }
  3898. }
  3899. public string OptionalStringPiece {
  3900. get { return result.OptionalStringPiece; }
  3901. set { SetOptionalStringPiece(value); }
  3902. }
  3903. public Builder SetOptionalStringPiece(string value) {
  3904. result.hasOptionalStringPiece = true;
  3905. result.optionalStringPiece_ = value;
  3906. return this;
  3907. }
  3908. public Builder ClearOptionalStringPiece() {
  3909. result.hasOptionalStringPiece = false;
  3910. result.optionalStringPiece_ = "";
  3911. return this;
  3912. }
  3913. // optional string optional_cord = 25 [ctype = CORD];
  3914. public bool HasOptionalCord {
  3915. get { return result.HasOptionalCord; }
  3916. }
  3917. public string OptionalCord {
  3918. get { return result.OptionalCord; }
  3919. set { SetOptionalCord(value); }
  3920. }
  3921. public Builder SetOptionalCord(string value) {
  3922. result.hasOptionalCord = true;
  3923. result.optionalCord_ = value;
  3924. return this;
  3925. }
  3926. public Builder ClearOptionalCord() {
  3927. result.hasOptionalCord = false;
  3928. result.optionalCord_ = "";
  3929. return this;
  3930. }
  3931. // repeated int32 repeated_int32 = 31;
  3932. public scg::IList<int> RepeatedInt32List {
  3933. get { return pbc::Lists<int>.AsReadOnly(result.repeatedInt32_); }
  3934. }
  3935. public int RepeatedInt32Count {
  3936. get { return result.RepeatedInt32Count; }
  3937. }
  3938. public int GetRepeatedInt32(int index) {
  3939. return result.GetRepeatedInt32(index);
  3940. }
  3941. public Builder SetRepeatedInt32(int index, int value) {
  3942. result.repeatedInt32_[index] = value;
  3943. return this;
  3944. }
  3945. public Builder AddRepeatedInt32(int value) {
  3946. if (result.repeatedInt32_.Count == 0) {
  3947. result.repeatedInt32_ = new scg::List<int>();
  3948. }
  3949. result.repeatedInt32_.Add(value);
  3950. return this;
  3951. }
  3952. public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
  3953. if (result.repeatedInt32_.Count == 0) {
  3954. result.repeatedInt32_ = new scg::List<int>();
  3955. }
  3956. base.AddRange(values, result.repeatedInt32_);
  3957. return this;
  3958. }
  3959. public Builder ClearRepeatedInt32() {
  3960. result.repeatedInt32_ = pbc::Lists<int>.Empty;
  3961. return this;
  3962. }
  3963. // repeated int64 repeated_int64 = 32;
  3964. public scg::IList<long> RepeatedInt64List {
  3965. get { return pbc::Lists<long>.AsReadOnly(result.repeatedInt64_); }
  3966. }
  3967. public int RepeatedInt64Count {
  3968. get { return result.RepeatedInt64Count; }
  3969. }
  3970. public long GetRepeatedInt64(int index) {
  3971. return result.GetRepeatedInt64(index);
  3972. }
  3973. public Builder SetRepeatedInt64(int index, long value) {
  3974. result.repeatedInt64_[index] = value;
  3975. return this;
  3976. }
  3977. public Builder AddRepeatedInt64(long value) {
  3978. if (result.repeatedInt64_.Count == 0) {
  3979. result.repeatedInt64_ = new scg::List<long>();
  3980. }
  3981. result.repeatedInt64_.Add(value);
  3982. return this;
  3983. }
  3984. public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
  3985. if (result.repeatedInt64_.Count == 0) {
  3986. result.repeatedInt64_ = new scg::List<long>();
  3987. }
  3988. base.AddRange(values, result.repeatedInt64_);
  3989. return this;
  3990. }
  3991. public Builder ClearRepeatedInt64() {
  3992. result.repeatedInt64_ = pbc::Lists<long>.Empty;
  3993. return this;
  3994. }
  3995. // repeated uint32 repeated_uint32 = 33;
  3996. public scg::IList<uint> RepeatedUint32List {
  3997. get { return pbc::Lists<uint>.AsReadOnly(result.repeatedUint32_); }
  3998. }
  3999. public int RepeatedUint32Count {
  4000. get { return result.RepeatedUint32Count; }
  4001. }
  4002. public uint GetRepeatedUint32(int index) {
  4003. return result.GetRepeatedUint32(index);
  4004. }
  4005. public Builder SetRepeatedUint32(int index, uint value) {
  4006. result.repeatedUint32_[index] = value;
  4007. return this;
  4008. }
  4009. public Builder AddRepeatedUint32(uint value) {
  4010. if (result.repeatedUint32_.Count == 0) {
  4011. result.repeatedUint32_ = new scg::List<uint>();
  4012. }
  4013. result.repeatedUint32_.Add(value);
  4014. return this;
  4015. }
  4016. public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) {
  4017. if (result.repeatedUint32_.Count == 0) {
  4018. result.repeatedUint32_ = new scg::List<uint>();
  4019. }
  4020. base.AddRange(values, result.repeatedUint32_);
  4021. return this;
  4022. }
  4023. public Builder ClearRepeatedUint32() {
  4024. result.repeatedUint32_ = pbc::Lists<uint>.Empty;
  4025. return this;
  4026. }
  4027. // repeated uint64 repeated_uint64 = 34;
  4028. public scg::IList<ulong> RepeatedUint64List {
  4029. get { return pbc::Lists<ulong>.AsReadOnly(result.repeatedUint64_); }
  4030. }
  4031. public int RepeatedUint64Count {
  4032. get { return result.RepeatedUint64Count; }
  4033. }
  4034. public ulong GetRepeatedUint64(int index) {
  4035. return result.GetRepeatedUint64(index);
  4036. }
  4037. public Builder SetRepeatedUint64(int index, ulong value) {
  4038. result.repeatedUint64_[index] = value;
  4039. return this;
  4040. }
  4041. public Builder AddRepeatedUint64(ulong value) {
  4042. if (result.repeatedUint64_.Count == 0) {
  4043. result.repeatedUint64_ = new scg::List<ulong>();
  4044. }
  4045. result.repeatedUint64_.Add(value);
  4046. return this;
  4047. }
  4048. public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
  4049. if (result.repeatedUint64_.Count == 0) {
  4050. result.repeatedUint64_ = new scg::List<ulong>();
  4051. }
  4052. base.AddRange(values, result.repeatedUint64_);
  4053. return this;
  4054. }
  4055. public Builder ClearRepeatedUint64() {
  4056. result.repeatedUint64_ = pbc::Lists<ulong>.Empty;
  4057. return this;
  4058. }
  4059. // repeated sint32 repeated_sint32 = 35;
  4060. public scg::IList<int> RepeatedSint32List {
  4061. get { return pbc::Lists<int>.AsReadOnly(result.repeatedSint32_); }
  4062. }
  4063. public int RepeatedSint32Count {
  4064. get { return result.RepeatedSint32Count; }
  4065. }
  4066. public int GetRepeatedSint32(int index) {
  4067. return result.GetRepeatedSint32(index);
  4068. }
  4069. public Builder SetRepeatedSint32(int index, int value) {
  4070. result.repeatedSint32_[index] = value;
  4071. return this;
  4072. }
  4073. public Builder AddRepeatedSint32(int value) {
  4074. if (result.repeatedSint32_.Count == 0) {
  4075. result.repeatedSint32_ = new scg::List<int>();
  4076. }
  4077. result.repeatedSint32_.Add(value);
  4078. return this;
  4079. }
  4080. public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) {
  4081. if (result.repeatedSint32_.Count == 0) {
  4082. result.repeatedSint32_ = new scg::List<int>();
  4083. }
  4084. base.AddRange(values, result.repeatedSint32_);
  4085. return this;
  4086. }
  4087. public Builder ClearRepeatedSint32() {
  4088. result.repeatedSint32_ = pbc::Lists<int>.Empty;
  4089. return this;
  4090. }
  4091. // repeated sint64 repeated_sint64 = 36;
  4092. public scg::IList<long> RepeatedSint64List {
  4093. get { return pbc::Lists<long>.AsReadOnly(result.repeatedSint64_); }
  4094. }
  4095. public int RepeatedSint64Count {
  4096. get { return result.RepeatedSint64Count; }
  4097. }
  4098. public long GetRepeatedSint64(int index) {
  4099. return result.GetRepeatedSint64(index);
  4100. }
  4101. public Builder SetRepeatedSint64(int index, long value) {
  4102. result.repeatedSint64_[index] = value;
  4103. return this;
  4104. }
  4105. public Builder AddRepeatedSint64(long value) {
  4106. if (result.repeatedSint64_.Count == 0) {
  4107. result.repeatedSint64_ = new scg::List<long>();
  4108. }
  4109. result.repeatedSint64_.Add(value);
  4110. return this;
  4111. }
  4112. public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) {
  4113. if (result.repeatedSint64_.Count == 0) {
  4114. result.repeatedSint64_ = new scg::List<long>();
  4115. }
  4116. base.AddRange(values, result.repeatedSint64_);
  4117. return this;
  4118. }
  4119. public Builder ClearRepeatedSint64() {
  4120. result.repeatedSint64_ = pbc::Lists<long>.Empty;
  4121. return this;
  4122. }
  4123. // repeated fixed32 repeated_fixed32 = 37;
  4124. public scg::IList<uint> RepeatedFixed32List {
  4125. get { return pbc::Lists<uint>.AsReadOnly(result.repeatedFixed32_); }
  4126. }
  4127. public int RepeatedFixed32Count {
  4128. get { return result.RepeatedFixed32Count; }
  4129. }
  4130. public uint GetRepeatedFixed32(int index) {
  4131. return result.GetRepeatedFixed32(index);
  4132. }
  4133. public Builder SetRepeatedFixed32(int index, uint value) {
  4134. result.repeatedFixed32_[index] = value;
  4135. return this;
  4136. }
  4137. public Builder AddRepeatedFixed32(uint value) {
  4138. if (result.repeatedFixed32_.Count == 0) {
  4139. result.repeatedFixed32_ = new scg::List<uint>();
  4140. }
  4141. result.repeatedFixed32_.Add(value);
  4142. return this;
  4143. }
  4144. public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
  4145. if (result.repeatedFixed32_.Count == 0) {
  4146. result.repeatedFixed32_ = new scg::List<uint>();
  4147. }
  4148. base.AddRange(values, result.repeatedFixed32_);
  4149. return this;
  4150. }
  4151. public Builder ClearRepeatedFixed32() {
  4152. result.repeatedFixed32_ = pbc::Lists<uint>.Empty;
  4153. return this;
  4154. }
  4155. // repeated fixed64 repeated_fixed64 = 38;
  4156. public scg::IList<ulong> RepeatedFixed64List {
  4157. get { return pbc::Lists<ulong>.AsReadOnly(result.repeatedFixed64_); }
  4158. }
  4159. public int RepeatedFixed64Count {
  4160. get { return result.RepeatedFixed64Count; }
  4161. }
  4162. public ulong GetRepeatedFixed64(int index) {
  4163. return result.GetRepeatedFixed64(index);
  4164. }
  4165. public Builder SetRepeatedFixed64(int index, ulong value) {
  4166. result.repeatedFixed64_[index] = value;
  4167. return this;
  4168. }
  4169. public Builder AddRepeatedFixed64(ulong value) {
  4170. if (result.repeatedFixed64_.Count == 0) {
  4171. result.repeatedFixed64_ = new scg::List<ulong>();
  4172. }
  4173. result.repeatedFixed64_.Add(value);
  4174. return this;
  4175. }
  4176. public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
  4177. if (result.repeatedFixed64_.Count == 0) {
  4178. result.repeatedFixed64_ = new scg::List<ulong>();
  4179. }
  4180. base.AddRange(values, result.repeatedFixed64_);
  4181. return this;
  4182. }
  4183. public Builder ClearRepeatedFixed64() {
  4184. result.repeatedFixed64_ = pbc::Lists<ulong>.Empty;
  4185. return this;
  4186. }
  4187. // repeated sfixed32 repeated_sfixed32 = 39;
  4188. public scg::IList<int> RepeatedSfixed32List {
  4189. get { return pbc::Lists<int>.AsReadOnly(result.repeatedSfixed32_); }
  4190. }
  4191. public int RepeatedSfixed32Count {
  4192. get { return result.RepeatedSfixed32Count; }
  4193. }
  4194. public int GetRepeatedSfixed32(int index) {
  4195. return result.GetRepeatedSfixed32(index);
  4196. }
  4197. public Builder SetRepeatedSfixed32(int index, int value) {
  4198. result.repeatedSfixed32_[index] = value;
  4199. return this;
  4200. }
  4201. public Builder AddRepeatedSfixed32(int value) {
  4202. if (result.repeatedSfixed32_.Count == 0) {
  4203. result.repeatedSfixed32_ = new scg::List<int>();
  4204. }
  4205. result.repeatedSfixed32_.Add(value);
  4206. return this;
  4207. }
  4208. public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) {
  4209. if (result.repeatedSfixed32_.Count == 0) {
  4210. result.repeatedSfixed32_ = new scg::List<int>();
  4211. }
  4212. base.AddRange(values, result.repeatedSfixed32_);
  4213. return this;
  4214. }
  4215. public Builder ClearRepeatedSfixed32() {
  4216. result.repeatedSfixed32_ = pbc::Lists<int>.Empty;
  4217. return this;
  4218. }
  4219. // repeated sfixed64 repeated_sfixed64 = 40;
  4220. public scg::IList<long> RepeatedSfixed64List {
  4221. get { return pbc::Lists<long>.AsReadOnly(result.repeatedSfixed64_); }
  4222. }
  4223. public int RepeatedSfixed64Count {
  4224. get { return result.RepeatedSfixed64Count; }
  4225. }
  4226. public long GetRepeatedSfixed64(int index) {
  4227. return result.GetRepeatedSfixed64(index);
  4228. }
  4229. public Builder SetRepeatedSfixed64(int index, long value) {
  4230. result.repeatedSfixed64_[index] = value;
  4231. return this;
  4232. }
  4233. public Builder AddRepeatedSfixed64(long value) {
  4234. if (result.repeatedSfixed64_.Count == 0) {
  4235. result.repeatedSfixed64_ = new scg::List<long>();
  4236. }
  4237. result.repeatedSfixed64_.Add(value);
  4238. return this;
  4239. }
  4240. public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) {
  4241. if (result.repeatedSfixed64_.Count == 0) {
  4242. result.repeatedSfixed64_ = new scg::List<long>();
  4243. }
  4244. base.AddRange(values, result.repeatedSfixed64_);
  4245. return this;
  4246. }
  4247. public Builder ClearRepeatedSfixed64() {
  4248. result.repeatedSfixed64_ = pbc::Lists<long>.Empty;
  4249. return this;
  4250. }
  4251. // repeated float repeated_float = 41;
  4252. public scg::IList<float> RepeatedFloatList {
  4253. get { return pbc::Lists<float>.AsReadOnly(result.repeatedFloat_); }
  4254. }
  4255. public int RepeatedFloatCount {
  4256. get { return result.RepeatedFloatCount; }
  4257. }
  4258. public float GetRepeatedFloat(int index) {
  4259. return result.GetRepeatedFloat(index);
  4260. }
  4261. public Builder SetRepeatedFloat(int index, float value) {
  4262. result.repeatedFloat_[index] = value;
  4263. return this;
  4264. }
  4265. public Builder AddRepeatedFloat(float value) {
  4266. if (result.repeatedFloat_.Count == 0) {
  4267. result.repeatedFloat_ = new scg::List<float>();
  4268. }
  4269. result.repeatedFloat_.Add(value);
  4270. return this;
  4271. }
  4272. public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
  4273. if (result.repeatedFloat_.Count == 0) {
  4274. result.repeatedFloat_ = new scg::List<float>();
  4275. }
  4276. base.AddRange(values, result.repeatedFloat_);
  4277. return this;
  4278. }
  4279. public Builder ClearRepeatedFloat() {
  4280. result.repeatedFloat_ = pbc::Lists<float>.Empty;
  4281. return this;
  4282. }
  4283. // repeated double repeated_double = 42;
  4284. public scg::IList<double> RepeatedDoubleList {
  4285. get { return pbc::Lists<double>.AsReadOnly(result.repeatedDouble_); }
  4286. }
  4287. public int RepeatedDoubleCount {
  4288. get { return result.RepeatedDoubleCount; }
  4289. }
  4290. public double GetRepeatedDouble(int index) {
  4291. return result.GetRepeatedDouble(index);
  4292. }
  4293. public Builder SetRepeatedDouble(int index, double value) {
  4294. result.repeatedDouble_[index] = value;
  4295. return this;
  4296. }
  4297. public Builder AddRepeatedDouble(double value) {
  4298. if (result.repeatedDouble_.Count == 0) {
  4299. result.repeatedDouble_ = new scg::List<double>();
  4300. }
  4301. result.repeatedDouble_.Add(value);
  4302. return this;
  4303. }
  4304. public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) {
  4305. if (result.repeatedDouble_.Count == 0) {
  4306. result.repeatedDouble_ = new scg::List<double>();
  4307. }
  4308. base.AddRange(values, result.repeatedDouble_);
  4309. return this;
  4310. }
  4311. public Builder ClearRepeatedDouble() {
  4312. result.repeatedDouble_ = pbc::Lists<double>.Empty;
  4313. return this;
  4314. }
  4315. // repeated bool repeated_bool = 43;
  4316. public scg::IList<bool> RepeatedBoolList {
  4317. get { return pbc::Lists<bool>.AsReadOnly(result.repeatedBool_); }
  4318. }
  4319. public int RepeatedBoolCount {
  4320. get { return result.RepeatedBoolCount; }
  4321. }
  4322. public bool GetRepeatedBool(int index) {
  4323. return result.GetRepeatedBool(index);
  4324. }
  4325. public Builder SetRepeatedBool(int index, bool value) {
  4326. result.repeatedBool_[index] = value;
  4327. return this;
  4328. }
  4329. public Builder AddRepeatedBool(bool value) {
  4330. if (result.repeatedBool_.Count == 0) {
  4331. result.repeatedBool_ = new scg::List<bool>();
  4332. }
  4333. result.repeatedBool_.Add(value);
  4334. return this;
  4335. }
  4336. public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) {
  4337. if (result.repeatedBool_.Count == 0) {
  4338. result.repeatedBool_ = new scg::List<bool>();
  4339. }
  4340. base.AddRange(values, result.repeatedBool_);
  4341. return this;
  4342. }
  4343. public Builder ClearRepeatedBool() {
  4344. result.repeatedBool_ = pbc::Lists<bool>.Empty;
  4345. return this;
  4346. }
  4347. // repeated string repeated_string = 44;
  4348. public scg::IList<string> RepeatedStringList {
  4349. get { return pbc::Lists<string>.AsReadOnly(result.repeatedString_); }
  4350. }
  4351. public int RepeatedStringCount {
  4352. get { return result.RepeatedStringCount; }
  4353. }
  4354. public string GetRepeatedString(int index) {
  4355. return result.GetRepeatedString(index);
  4356. }
  4357. public Builder SetRepeatedString(int index, string value) {
  4358. result.repeatedString_[index] = value;
  4359. return this;
  4360. }
  4361. public Builder AddRepeatedString(string value) {
  4362. if (result.repeatedString_.Count == 0) {
  4363. result.repeatedString_ = new scg::List<string>();
  4364. }
  4365. result.repeatedString_.Add(value);
  4366. return this;
  4367. }
  4368. public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) {
  4369. if (result.repeatedString_.Count == 0) {
  4370. result.repeatedString_ = new scg::List<string>();
  4371. }
  4372. base.AddRange(values, result.repeatedString_);
  4373. return this;
  4374. }
  4375. public Builder ClearRepeatedString() {
  4376. result.repeatedString_ = pbc::Lists<string>.Empty;
  4377. return this;
  4378. }
  4379. // repeated bytes repeated_bytes = 45;
  4380. public scg::IList<pb::ByteString> RepeatedBytesList {
  4381. get { return pbc::Lists<pb::ByteString>.AsReadOnly(result.repeatedBytes_); }
  4382. }
  4383. public int RepeatedBytesCount {
  4384. get { return result.RepeatedBytesCount; }
  4385. }
  4386. public pb::ByteString GetRepeatedBytes(int index) {
  4387. return result.GetRepeatedBytes(index);
  4388. }
  4389. public Builder SetRepeatedBytes(int index, pb::ByteString value) {
  4390. result.repeatedBytes_[index] = value;
  4391. return this;
  4392. }
  4393. public Builder AddRepeatedBytes(pb::ByteString value) {
  4394. if (result.repeatedBytes_.Count == 0) {
  4395. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  4396. }
  4397. result.repeatedBytes_.Add(value);
  4398. return this;
  4399. }
  4400. public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) {
  4401. if (result.repeatedBytes_.Count == 0) {
  4402. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  4403. }
  4404. base.AddRange(values, result.repeatedBytes_);
  4405. return this;
  4406. }
  4407. public Builder ClearRepeatedBytes() {
  4408. result.repeatedBytes_ = pbc::Lists<pb::ByteString>.Empty;
  4409. return this;
  4410. }
  4411. // repeated group RepeatedGroup = 46 {
  4412. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
  4413. get { return pbc::Lists.AsReadOnly(result.repeatedGroup_); }
  4414. }
  4415. public int RepeatedGroupCount {
  4416. get { return result.RepeatedGroupCount; }
  4417. }
  4418. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
  4419. return result.GetRepeatedGroup(index);
  4420. }
  4421. public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) {
  4422. result.repeatedGroup_[index] = value;
  4423. return this;
  4424. }
  4425. public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
  4426. result.repeatedGroup_[index] = builderForValue.Build();
  4427. return this;
  4428. }
  4429. public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) {
  4430. if (result.repeatedGroup_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty) {
  4431. result.repeatedGroup_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
  4432. }
  4433. result.repeatedGroup_.Add(value);
  4434. return this;
  4435. }
  4436. public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
  4437. if (result.repeatedGroup_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty) {
  4438. result.repeatedGroup_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
  4439. }
  4440. result.repeatedGroup_.Add(builderForValue.Build());
  4441. return this;
  4442. }
  4443. public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> values) {
  4444. if (result.repeatedGroup_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty) {
  4445. result.repeatedGroup_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
  4446. }
  4447. base.AddRange(values, result.repeatedGroup_);
  4448. return this;
  4449. }
  4450. public Builder ClearRepeatedGroup() {
  4451. result.repeatedGroup_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty;
  4452. return this;
  4453. }
  4454. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  4455. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
  4456. get { return pbc::Lists.AsReadOnly(result.repeatedNestedMessage_); }
  4457. }
  4458. public int RepeatedNestedMessageCount {
  4459. get { return result.RepeatedNestedMessageCount; }
  4460. }
  4461. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
  4462. return result.GetRepeatedNestedMessage(index);
  4463. }
  4464. public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  4465. result.repeatedNestedMessage_[index] = value;
  4466. return this;
  4467. }
  4468. public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  4469. result.repeatedNestedMessage_[index] = builderForValue.Build();
  4470. return this;
  4471. }
  4472. public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  4473. if (result.repeatedNestedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty) {
  4474. result.repeatedNestedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
  4475. }
  4476. result.repeatedNestedMessage_.Add(value);
  4477. return this;
  4478. }
  4479. public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  4480. if (result.repeatedNestedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty) {
  4481. result.repeatedNestedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
  4482. }
  4483. result.repeatedNestedMessage_.Add(builderForValue.Build());
  4484. return this;
  4485. }
  4486. public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> values) {
  4487. if (result.repeatedNestedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty) {
  4488. result.repeatedNestedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
  4489. }
  4490. base.AddRange(values, result.repeatedNestedMessage_);
  4491. return this;
  4492. }
  4493. public Builder ClearRepeatedNestedMessage() {
  4494. result.repeatedNestedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty;
  4495. return this;
  4496. }
  4497. // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
  4498. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList {
  4499. get { return pbc::Lists.AsReadOnly(result.repeatedForeignMessage_); }
  4500. }
  4501. public int RepeatedForeignMessageCount {
  4502. get { return result.RepeatedForeignMessageCount; }
  4503. }
  4504. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) {
  4505. return result.GetRepeatedForeignMessage(index);
  4506. }
  4507. public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  4508. result.repeatedForeignMessage_[index] = value;
  4509. return this;
  4510. }
  4511. public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  4512. result.repeatedForeignMessage_[index] = builderForValue.Build();
  4513. return this;
  4514. }
  4515. public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  4516. if (result.repeatedForeignMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  4517. result.repeatedForeignMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  4518. }
  4519. result.repeatedForeignMessage_.Add(value);
  4520. return this;
  4521. }
  4522. public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  4523. if (result.repeatedForeignMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  4524. result.repeatedForeignMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  4525. }
  4526. result.repeatedForeignMessage_.Add(builderForValue.Build());
  4527. return this;
  4528. }
  4529. public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
  4530. if (result.repeatedForeignMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  4531. result.repeatedForeignMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  4532. }
  4533. base.AddRange(values, result.repeatedForeignMessage_);
  4534. return this;
  4535. }
  4536. public Builder ClearRepeatedForeignMessage() {
  4537. result.repeatedForeignMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  4538. return this;
  4539. }
  4540. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  4541. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList {
  4542. get { return pbc::Lists.AsReadOnly(result.repeatedImportMessage_); }
  4543. }
  4544. public int RepeatedImportMessageCount {
  4545. get { return result.RepeatedImportMessageCount; }
  4546. }
  4547. public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) {
  4548. return result.GetRepeatedImportMessage(index);
  4549. }
  4550. public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  4551. result.repeatedImportMessage_[index] = value;
  4552. return this;
  4553. }
  4554. public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
  4555. result.repeatedImportMessage_[index] = builderForValue.Build();
  4556. return this;
  4557. }
  4558. public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  4559. if (result.repeatedImportMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty) {
  4560. result.repeatedImportMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
  4561. }
  4562. result.repeatedImportMessage_.Add(value);
  4563. return this;
  4564. }
  4565. public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
  4566. if (result.repeatedImportMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty) {
  4567. result.repeatedImportMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
  4568. }
  4569. result.repeatedImportMessage_.Add(builderForValue.Build());
  4570. return this;
  4571. }
  4572. public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessage> values) {
  4573. if (result.repeatedImportMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty) {
  4574. result.repeatedImportMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
  4575. }
  4576. base.AddRange(values, result.repeatedImportMessage_);
  4577. return this;
  4578. }
  4579. public Builder ClearRepeatedImportMessage() {
  4580. result.repeatedImportMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty;
  4581. return this;
  4582. }
  4583. // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  4584. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
  4585. get { return pbc::Lists.AsReadOnly(result.repeatedNestedEnum_); }
  4586. }
  4587. public int RepeatedNestedEnumCount {
  4588. get { return result.RepeatedNestedEnumCount; }
  4589. }
  4590. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
  4591. return result.GetRepeatedNestedEnum(index);
  4592. }
  4593. public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  4594. result.repeatedNestedEnum_[index] = value;
  4595. return this;
  4596. }
  4597. public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  4598. if (result.repeatedNestedEnum_.Count == 0) {
  4599. result.repeatedNestedEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>();
  4600. }
  4601. result.repeatedNestedEnum_.Add(value);
  4602. return this;
  4603. }
  4604. public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> values) {
  4605. if (result.repeatedNestedEnum_.Count == 0) {
  4606. result.repeatedNestedEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>();
  4607. }
  4608. base.AddRange(values, result.repeatedNestedEnum_);
  4609. return this;
  4610. }
  4611. public Builder ClearRepeatedNestedEnum() {
  4612. result.repeatedNestedEnum_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.Empty;
  4613. return this;
  4614. }
  4615. // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
  4616. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList {
  4617. get { return pbc::Lists.AsReadOnly(result.repeatedForeignEnum_); }
  4618. }
  4619. public int RepeatedForeignEnumCount {
  4620. get { return result.RepeatedForeignEnumCount; }
  4621. }
  4622. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) {
  4623. return result.GetRepeatedForeignEnum(index);
  4624. }
  4625. public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  4626. result.repeatedForeignEnum_[index] = value;
  4627. return this;
  4628. }
  4629. public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  4630. if (result.repeatedForeignEnum_.Count == 0) {
  4631. result.repeatedForeignEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  4632. }
  4633. result.repeatedForeignEnum_.Add(value);
  4634. return this;
  4635. }
  4636. public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
  4637. if (result.repeatedForeignEnum_.Count == 0) {
  4638. result.repeatedForeignEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  4639. }
  4640. base.AddRange(values, result.repeatedForeignEnum_);
  4641. return this;
  4642. }
  4643. public Builder ClearRepeatedForeignEnum() {
  4644. result.repeatedForeignEnum_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.Empty;
  4645. return this;
  4646. }
  4647. // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
  4648. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList {
  4649. get { return pbc::Lists.AsReadOnly(result.repeatedImportEnum_); }
  4650. }
  4651. public int RepeatedImportEnumCount {
  4652. get { return result.RepeatedImportEnumCount; }
  4653. }
  4654. public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) {
  4655. return result.GetRepeatedImportEnum(index);
  4656. }
  4657. public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  4658. result.repeatedImportEnum_[index] = value;
  4659. return this;
  4660. }
  4661. public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  4662. if (result.repeatedImportEnum_.Count == 0) {
  4663. result.repeatedImportEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportEnum>();
  4664. }
  4665. result.repeatedImportEnum_.Add(value);
  4666. return this;
  4667. }
  4668. public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnum> values) {
  4669. if (result.repeatedImportEnum_.Count == 0) {
  4670. result.repeatedImportEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportEnum>();
  4671. }
  4672. base.AddRange(values, result.repeatedImportEnum_);
  4673. return this;
  4674. }
  4675. public Builder ClearRepeatedImportEnum() {
  4676. result.repeatedImportEnum_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.Empty;
  4677. return this;
  4678. }
  4679. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  4680. public scg::IList<string> RepeatedStringPieceList {
  4681. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringPiece_); }
  4682. }
  4683. public int RepeatedStringPieceCount {
  4684. get { return result.RepeatedStringPieceCount; }
  4685. }
  4686. public string GetRepeatedStringPiece(int index) {
  4687. return result.GetRepeatedStringPiece(index);
  4688. }
  4689. public Builder SetRepeatedStringPiece(int index, string value) {
  4690. result.repeatedStringPiece_[index] = value;
  4691. return this;
  4692. }
  4693. public Builder AddRepeatedStringPiece(string value) {
  4694. if (result.repeatedStringPiece_.Count == 0) {
  4695. result.repeatedStringPiece_ = new scg::List<string>();
  4696. }
  4697. result.repeatedStringPiece_.Add(value);
  4698. return this;
  4699. }
  4700. public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) {
  4701. if (result.repeatedStringPiece_.Count == 0) {
  4702. result.repeatedStringPiece_ = new scg::List<string>();
  4703. }
  4704. base.AddRange(values, result.repeatedStringPiece_);
  4705. return this;
  4706. }
  4707. public Builder ClearRepeatedStringPiece() {
  4708. result.repeatedStringPiece_ = pbc::Lists<string>.Empty;
  4709. return this;
  4710. }
  4711. // repeated string repeated_cord = 55 [ctype = CORD];
  4712. public scg::IList<string> RepeatedCordList {
  4713. get { return pbc::Lists<string>.AsReadOnly(result.repeatedCord_); }
  4714. }
  4715. public int RepeatedCordCount {
  4716. get { return result.RepeatedCordCount; }
  4717. }
  4718. public string GetRepeatedCord(int index) {
  4719. return result.GetRepeatedCord(index);
  4720. }
  4721. public Builder SetRepeatedCord(int index, string value) {
  4722. result.repeatedCord_[index] = value;
  4723. return this;
  4724. }
  4725. public Builder AddRepeatedCord(string value) {
  4726. if (result.repeatedCord_.Count == 0) {
  4727. result.repeatedCord_ = new scg::List<string>();
  4728. }
  4729. result.repeatedCord_.Add(value);
  4730. return this;
  4731. }
  4732. public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) {
  4733. if (result.repeatedCord_.Count == 0) {
  4734. result.repeatedCord_ = new scg::List<string>();
  4735. }
  4736. base.AddRange(values, result.repeatedCord_);
  4737. return this;
  4738. }
  4739. public Builder ClearRepeatedCord() {
  4740. result.repeatedCord_ = pbc::Lists<string>.Empty;
  4741. return this;
  4742. }
  4743. // optional int32 default_int32 = 61 [default = 41];
  4744. public bool HasDefaultInt32 {
  4745. get { return result.HasDefaultInt32; }
  4746. }
  4747. public int DefaultInt32 {
  4748. get { return result.DefaultInt32; }
  4749. set { SetDefaultInt32(value); }
  4750. }
  4751. public Builder SetDefaultInt32(int value) {
  4752. result.hasDefaultInt32 = true;
  4753. result.defaultInt32_ = value;
  4754. return this;
  4755. }
  4756. public Builder ClearDefaultInt32() {
  4757. result.hasDefaultInt32 = false;
  4758. result.defaultInt32_ = 41;
  4759. return this;
  4760. }
  4761. // optional int64 default_int64 = 62 [default = 42];
  4762. public bool HasDefaultInt64 {
  4763. get { return result.HasDefaultInt64; }
  4764. }
  4765. public long DefaultInt64 {
  4766. get { return result.DefaultInt64; }
  4767. set { SetDefaultInt64(value); }
  4768. }
  4769. public Builder SetDefaultInt64(long value) {
  4770. result.hasDefaultInt64 = true;
  4771. result.defaultInt64_ = value;
  4772. return this;
  4773. }
  4774. public Builder ClearDefaultInt64() {
  4775. result.hasDefaultInt64 = false;
  4776. result.defaultInt64_ = 42L;
  4777. return this;
  4778. }
  4779. // optional uint32 default_uint32 = 63 [default = 43];
  4780. public bool HasDefaultUint32 {
  4781. get { return result.HasDefaultUint32; }
  4782. }
  4783. public uint DefaultUint32 {
  4784. get { return result.DefaultUint32; }
  4785. set { SetDefaultUint32(value); }
  4786. }
  4787. public Builder SetDefaultUint32(uint value) {
  4788. result.hasDefaultUint32 = true;
  4789. result.defaultUint32_ = value;
  4790. return this;
  4791. }
  4792. public Builder ClearDefaultUint32() {
  4793. result.hasDefaultUint32 = false;
  4794. result.defaultUint32_ = 43;
  4795. return this;
  4796. }
  4797. // optional uint64 default_uint64 = 64 [default = 44];
  4798. public bool HasDefaultUint64 {
  4799. get { return result.HasDefaultUint64; }
  4800. }
  4801. public ulong DefaultUint64 {
  4802. get { return result.DefaultUint64; }
  4803. set { SetDefaultUint64(value); }
  4804. }
  4805. public Builder SetDefaultUint64(ulong value) {
  4806. result.hasDefaultUint64 = true;
  4807. result.defaultUint64_ = value;
  4808. return this;
  4809. }
  4810. public Builder ClearDefaultUint64() {
  4811. result.hasDefaultUint64 = false;
  4812. result.defaultUint64_ = 44UL;
  4813. return this;
  4814. }
  4815. // optional sint32 default_sint32 = 65 [default = -45];
  4816. public bool HasDefaultSint32 {
  4817. get { return result.HasDefaultSint32; }
  4818. }
  4819. public int DefaultSint32 {
  4820. get { return result.DefaultSint32; }
  4821. set { SetDefaultSint32(value); }
  4822. }
  4823. public Builder SetDefaultSint32(int value) {
  4824. result.hasDefaultSint32 = true;
  4825. result.defaultSint32_ = value;
  4826. return this;
  4827. }
  4828. public Builder ClearDefaultSint32() {
  4829. result.hasDefaultSint32 = false;
  4830. result.defaultSint32_ = -45;
  4831. return this;
  4832. }
  4833. // optional sint64 default_sint64 = 66 [default = 46];
  4834. public bool HasDefaultSint64 {
  4835. get { return result.HasDefaultSint64; }
  4836. }
  4837. public long DefaultSint64 {
  4838. get { return result.DefaultSint64; }
  4839. set { SetDefaultSint64(value); }
  4840. }
  4841. public Builder SetDefaultSint64(long value) {
  4842. result.hasDefaultSint64 = true;
  4843. result.defaultSint64_ = value;
  4844. return this;
  4845. }
  4846. public Builder ClearDefaultSint64() {
  4847. result.hasDefaultSint64 = false;
  4848. result.defaultSint64_ = 46L;
  4849. return this;
  4850. }
  4851. // optional fixed32 default_fixed32 = 67 [default = 47];
  4852. public bool HasDefaultFixed32 {
  4853. get { return result.HasDefaultFixed32; }
  4854. }
  4855. public uint DefaultFixed32 {
  4856. get { return result.DefaultFixed32; }
  4857. set { SetDefaultFixed32(value); }
  4858. }
  4859. public Builder SetDefaultFixed32(uint value) {
  4860. result.hasDefaultFixed32 = true;
  4861. result.defaultFixed32_ = value;
  4862. return this;
  4863. }
  4864. public Builder ClearDefaultFixed32() {
  4865. result.hasDefaultFixed32 = false;
  4866. result.defaultFixed32_ = 47;
  4867. return this;
  4868. }
  4869. // optional fixed64 default_fixed64 = 68 [default = 48];
  4870. public bool HasDefaultFixed64 {
  4871. get { return result.HasDefaultFixed64; }
  4872. }
  4873. public ulong DefaultFixed64 {
  4874. get { return result.DefaultFixed64; }
  4875. set { SetDefaultFixed64(value); }
  4876. }
  4877. public Builder SetDefaultFixed64(ulong value) {
  4878. result.hasDefaultFixed64 = true;
  4879. result.defaultFixed64_ = value;
  4880. return this;
  4881. }
  4882. public Builder ClearDefaultFixed64() {
  4883. result.hasDefaultFixed64 = false;
  4884. result.defaultFixed64_ = 48UL;
  4885. return this;
  4886. }
  4887. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  4888. public bool HasDefaultSfixed32 {
  4889. get { return result.HasDefaultSfixed32; }
  4890. }
  4891. public int DefaultSfixed32 {
  4892. get { return result.DefaultSfixed32; }
  4893. set { SetDefaultSfixed32(value); }
  4894. }
  4895. public Builder SetDefaultSfixed32(int value) {
  4896. result.hasDefaultSfixed32 = true;
  4897. result.defaultSfixed32_ = value;
  4898. return this;
  4899. }
  4900. public Builder ClearDefaultSfixed32() {
  4901. result.hasDefaultSfixed32 = false;
  4902. result.defaultSfixed32_ = 49;
  4903. return this;
  4904. }
  4905. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  4906. public bool HasDefaultSfixed64 {
  4907. get { return result.HasDefaultSfixed64; }
  4908. }
  4909. public long DefaultSfixed64 {
  4910. get { return result.DefaultSfixed64; }
  4911. set { SetDefaultSfixed64(value); }
  4912. }
  4913. public Builder SetDefaultSfixed64(long value) {
  4914. result.hasDefaultSfixed64 = true;
  4915. result.defaultSfixed64_ = value;
  4916. return this;
  4917. }
  4918. public Builder ClearDefaultSfixed64() {
  4919. result.hasDefaultSfixed64 = false;
  4920. result.defaultSfixed64_ = -50L;
  4921. return this;
  4922. }
  4923. // optional float default_float = 71 [default = 51.5];
  4924. public bool HasDefaultFloat {
  4925. get { return result.HasDefaultFloat; }
  4926. }
  4927. public float DefaultFloat {
  4928. get { return result.DefaultFloat; }
  4929. set { SetDefaultFloat(value); }
  4930. }
  4931. public Builder SetDefaultFloat(float value) {
  4932. result.hasDefaultFloat = true;
  4933. result.defaultFloat_ = value;
  4934. return this;
  4935. }
  4936. public Builder ClearDefaultFloat() {
  4937. result.hasDefaultFloat = false;
  4938. result.defaultFloat_ = 51.5F;
  4939. return this;
  4940. }
  4941. // optional double default_double = 72 [default = 52000];
  4942. public bool HasDefaultDouble {
  4943. get { return result.HasDefaultDouble; }
  4944. }
  4945. public double DefaultDouble {
  4946. get { return result.DefaultDouble; }
  4947. set { SetDefaultDouble(value); }
  4948. }
  4949. public Builder SetDefaultDouble(double value) {
  4950. result.hasDefaultDouble = true;
  4951. result.defaultDouble_ = value;
  4952. return this;
  4953. }
  4954. public Builder ClearDefaultDouble() {
  4955. result.hasDefaultDouble = false;
  4956. result.defaultDouble_ = 52000D;
  4957. return this;
  4958. }
  4959. // optional bool default_bool = 73 [default = true];
  4960. public bool HasDefaultBool {
  4961. get { return result.HasDefaultBool; }
  4962. }
  4963. public bool DefaultBool {
  4964. get { return result.DefaultBool; }
  4965. set { SetDefaultBool(value); }
  4966. }
  4967. public Builder SetDefaultBool(bool value) {
  4968. result.hasDefaultBool = true;
  4969. result.defaultBool_ = value;
  4970. return this;
  4971. }
  4972. public Builder ClearDefaultBool() {
  4973. result.hasDefaultBool = false;
  4974. result.defaultBool_ = true;
  4975. return this;
  4976. }
  4977. // optional string default_string = 74 [default = "hello"];
  4978. public bool HasDefaultString {
  4979. get { return result.HasDefaultString; }
  4980. }
  4981. public string DefaultString {
  4982. get { return result.DefaultString; }
  4983. set { SetDefaultString(value); }
  4984. }
  4985. public Builder SetDefaultString(string value) {
  4986. result.hasDefaultString = true;
  4987. result.defaultString_ = value;
  4988. return this;
  4989. }
  4990. public Builder ClearDefaultString() {
  4991. result.hasDefaultString = false;
  4992. result.defaultString_ = "hello";
  4993. return this;
  4994. }
  4995. // optional bytes default_bytes = 75 [default = "world"];
  4996. public bool HasDefaultBytes {
  4997. get { return result.HasDefaultBytes; }
  4998. }
  4999. public pb::ByteString DefaultBytes {
  5000. get { return result.DefaultBytes; }
  5001. set { SetDefaultBytes(value); }
  5002. }
  5003. public Builder SetDefaultBytes(pb::ByteString value) {
  5004. result.hasDefaultBytes = true;
  5005. result.defaultBytes_ = value;
  5006. return this;
  5007. }
  5008. public Builder ClearDefaultBytes() {
  5009. result.hasDefaultBytes = false;
  5010. result.defaultBytes_ = ((pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue);
  5011. return this;
  5012. }
  5013. // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
  5014. public bool HasDefaultNestedEnum {
  5015. get { return result.HasDefaultNestedEnum; }
  5016. }
  5017. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum {
  5018. get { return result.DefaultNestedEnum; }
  5019. set { SetDefaultNestedEnum(value); }
  5020. }
  5021. public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  5022. result.hasDefaultNestedEnum = true;
  5023. result.defaultNestedEnum_ = value;
  5024. return this;
  5025. }
  5026. public Builder ClearDefaultNestedEnum() {
  5027. result.hasDefaultNestedEnum = false;
  5028. result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR;
  5029. return this;
  5030. }
  5031. // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
  5032. public bool HasDefaultForeignEnum {
  5033. get { return result.HasDefaultForeignEnum; }
  5034. }
  5035. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum {
  5036. get { return result.DefaultForeignEnum; }
  5037. set { SetDefaultForeignEnum(value); }
  5038. }
  5039. public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  5040. result.hasDefaultForeignEnum = true;
  5041. result.defaultForeignEnum_ = value;
  5042. return this;
  5043. }
  5044. public Builder ClearDefaultForeignEnum() {
  5045. result.hasDefaultForeignEnum = false;
  5046. result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR;
  5047. return this;
  5048. }
  5049. // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
  5050. public bool HasDefaultImportEnum {
  5051. get { return result.HasDefaultImportEnum; }
  5052. }
  5053. public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum {
  5054. get { return result.DefaultImportEnum; }
  5055. set { SetDefaultImportEnum(value); }
  5056. }
  5057. public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  5058. result.hasDefaultImportEnum = true;
  5059. result.defaultImportEnum_ = value;
  5060. return this;
  5061. }
  5062. public Builder ClearDefaultImportEnum() {
  5063. result.hasDefaultImportEnum = false;
  5064. result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR;
  5065. return this;
  5066. }
  5067. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  5068. public bool HasDefaultStringPiece {
  5069. get { return result.HasDefaultStringPiece; }
  5070. }
  5071. public string DefaultStringPiece {
  5072. get { return result.DefaultStringPiece; }
  5073. set { SetDefaultStringPiece(value); }
  5074. }
  5075. public Builder SetDefaultStringPiece(string value) {
  5076. result.hasDefaultStringPiece = true;
  5077. result.defaultStringPiece_ = value;
  5078. return this;
  5079. }
  5080. public Builder ClearDefaultStringPiece() {
  5081. result.hasDefaultStringPiece = false;
  5082. result.defaultStringPiece_ = "abc";
  5083. return this;
  5084. }
  5085. // optional string default_cord = 85 [default = "123", ctype = CORD];
  5086. public bool HasDefaultCord {
  5087. get { return result.HasDefaultCord; }
  5088. }
  5089. public string DefaultCord {
  5090. get { return result.DefaultCord; }
  5091. set { SetDefaultCord(value); }
  5092. }
  5093. public Builder SetDefaultCord(string value) {
  5094. result.hasDefaultCord = true;
  5095. result.defaultCord_ = value;
  5096. return this;
  5097. }
  5098. public Builder ClearDefaultCord() {
  5099. result.hasDefaultCord = false;
  5100. result.defaultCord_ = "123";
  5101. return this;
  5102. }
  5103. }
  5104. }
  5105. public sealed partial class ForeignMessage : pb::GeneratedMessage<ForeignMessage, ForeignMessage.Builder> {
  5106. private static readonly ForeignMessage defaultInstance = new ForeignMessage();
  5107. public static ForeignMessage DefaultInstance {
  5108. get { return defaultInstance; }
  5109. }
  5110. public override ForeignMessage DefaultInstanceForType {
  5111. get { return defaultInstance; }
  5112. }
  5113. public static pbd::MessageDescriptor Descriptor {
  5114. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__Descriptor; }
  5115. }
  5116. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5117. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; }
  5118. }
  5119. // optional int32 c = 1;
  5120. private bool hasC;
  5121. private int c_ = 0;
  5122. public bool HasC {
  5123. get { return hasC; }
  5124. }
  5125. public int C {
  5126. get { return c_; }
  5127. }
  5128. public override bool IsInitialized {
  5129. get {
  5130. return true;
  5131. }
  5132. }
  5133. public override void WriteTo(pb::CodedOutputStream output) {
  5134. if (HasC) {
  5135. output.WriteInt32(1, C);
  5136. }
  5137. UnknownFields.WriteTo(output);
  5138. }
  5139. private int memoizedSerializedSize = -1;
  5140. public override int SerializedSize {
  5141. get {
  5142. int size = memoizedSerializedSize;
  5143. if (size != -1) return size;
  5144. size = 0;
  5145. if (HasC) {
  5146. size += pb::CodedOutputStream.ComputeInt32Size(1, C);
  5147. }
  5148. size += UnknownFields.SerializedSize;
  5149. memoizedSerializedSize = size;
  5150. return size;
  5151. }
  5152. }
  5153. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(pb::ByteString data) {
  5154. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5155. }
  5156. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(pb::ByteString data,
  5157. pb::ExtensionRegistry extensionRegistry) {
  5158. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5159. .BuildParsed();
  5160. }
  5161. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(byte[] data) {
  5162. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5163. }
  5164. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(byte[] data,
  5165. pb::ExtensionRegistry extensionRegistry) {
  5166. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5167. .BuildParsed();
  5168. }
  5169. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(global::System.IO.Stream input) {
  5170. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5171. }
  5172. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(
  5173. global::System.IO.Stream input,
  5174. pb::ExtensionRegistry extensionRegistry) {
  5175. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5176. .BuildParsed();
  5177. }
  5178. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(pb::CodedInputStream input) {
  5179. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5180. }
  5181. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(pb::CodedInputStream input,
  5182. pb::ExtensionRegistry extensionRegistry) {
  5183. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5184. .BuildParsed();
  5185. }
  5186. public static Builder CreateBuilder() { return new Builder(); }
  5187. public override Builder CreateBuilderForType() { return new Builder(); }
  5188. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.ForeignMessage prototype) {
  5189. return (Builder) new Builder().MergeFrom(prototype);
  5190. }
  5191. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, Builder> {
  5192. protected override Builder ThisBuilder {
  5193. get { return this; }
  5194. }
  5195. // Construct using global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder()
  5196. internal Builder() {}
  5197. global::Google.ProtocolBuffers.TestProtos.ForeignMessage result = new global::Google.ProtocolBuffers.TestProtos.ForeignMessage();
  5198. protected override global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageBeingBuilt {
  5199. get { return result; }
  5200. }
  5201. public override Builder Clear() {
  5202. result = new global::Google.ProtocolBuffers.TestProtos.ForeignMessage();
  5203. return this;
  5204. }
  5205. public override Builder Clone() {
  5206. return new Builder().MergeFrom(result);
  5207. }
  5208. public override pbd::MessageDescriptor DescriptorForType {
  5209. get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Descriptor; }
  5210. }
  5211. public override global::Google.ProtocolBuffers.TestProtos.ForeignMessage DefaultInstanceForType {
  5212. get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; }
  5213. }
  5214. public override global::Google.ProtocolBuffers.TestProtos.ForeignMessage BuildPartial() {
  5215. global::Google.ProtocolBuffers.TestProtos.ForeignMessage returnMe = result;
  5216. result = null;
  5217. return returnMe;
  5218. }
  5219. public override Builder MergeFrom(pb::IMessage other) {
  5220. if (other is global::Google.ProtocolBuffers.TestProtos.ForeignMessage) {
  5221. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.ForeignMessage) other);
  5222. } else {
  5223. base.MergeFrom(other);
  5224. return this;
  5225. }
  5226. }
  5227. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.ForeignMessage other) {
  5228. if (other == global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) return this;
  5229. if (other.HasC) {
  5230. C = other.C;
  5231. }
  5232. this.MergeUnknownFields(other.UnknownFields);
  5233. return this;
  5234. }
  5235. public override Builder MergeFrom(pb::CodedInputStream input) {
  5236. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5237. }
  5238. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5239. pb::UnknownFieldSet.Builder unknownFields =
  5240. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5241. while (true) {
  5242. uint tag = input.ReadTag();
  5243. switch (tag) {
  5244. case 0:
  5245. this.UnknownFields = unknownFields.Build();
  5246. return this;
  5247. default: {
  5248. if (!ParseUnknownField(input, unknownFields,
  5249. extensionRegistry, tag)) {
  5250. this.UnknownFields = unknownFields.Build();
  5251. return this;
  5252. }
  5253. break;
  5254. }
  5255. case 8: {
  5256. C = input.ReadInt32();
  5257. break;
  5258. }
  5259. }
  5260. }
  5261. }
  5262. // optional int32 c = 1;
  5263. public bool HasC {
  5264. get { return result.HasC; }
  5265. }
  5266. public int C {
  5267. get { return result.C; }
  5268. set { SetC(value); }
  5269. }
  5270. public Builder SetC(int value) {
  5271. result.hasC = true;
  5272. result.c_ = value;
  5273. return this;
  5274. }
  5275. public Builder ClearC() {
  5276. result.hasC = false;
  5277. result.c_ = 0;
  5278. return this;
  5279. }
  5280. }
  5281. }
  5282. public sealed partial class TestAllExtensions : pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder> {
  5283. private static readonly TestAllExtensions defaultInstance = new TestAllExtensions();
  5284. public static TestAllExtensions DefaultInstance {
  5285. get { return defaultInstance; }
  5286. }
  5287. public override TestAllExtensions DefaultInstanceForType {
  5288. get { return defaultInstance; }
  5289. }
  5290. public static pbd::MessageDescriptor Descriptor {
  5291. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__Descriptor; }
  5292. }
  5293. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5294. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable; }
  5295. }
  5296. public override bool IsInitialized {
  5297. get {
  5298. if (!ExtensionsAreInitialized) return false;
  5299. return true;
  5300. }
  5301. }
  5302. public override void WriteTo(pb::CodedOutputStream output) {
  5303. pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  5304. extensionWriter.WriteUntil(536870912, output);
  5305. UnknownFields.WriteTo(output);
  5306. }
  5307. private int memoizedSerializedSize = -1;
  5308. public override int SerializedSize {
  5309. get {
  5310. int size = memoizedSerializedSize;
  5311. if (size != -1) return size;
  5312. size = 0;
  5313. size += ExtensionsSerializedSize;
  5314. size += UnknownFields.SerializedSize;
  5315. memoizedSerializedSize = size;
  5316. return size;
  5317. }
  5318. }
  5319. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(pb::ByteString data) {
  5320. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5321. }
  5322. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(pb::ByteString data,
  5323. pb::ExtensionRegistry extensionRegistry) {
  5324. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5325. .BuildParsed();
  5326. }
  5327. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(byte[] data) {
  5328. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5329. }
  5330. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(byte[] data,
  5331. pb::ExtensionRegistry extensionRegistry) {
  5332. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5333. .BuildParsed();
  5334. }
  5335. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(global::System.IO.Stream input) {
  5336. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5337. }
  5338. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(
  5339. global::System.IO.Stream input,
  5340. pb::ExtensionRegistry extensionRegistry) {
  5341. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5342. .BuildParsed();
  5343. }
  5344. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(pb::CodedInputStream input) {
  5345. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5346. }
  5347. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(pb::CodedInputStream input,
  5348. pb::ExtensionRegistry extensionRegistry) {
  5349. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5350. .BuildParsed();
  5351. }
  5352. public static Builder CreateBuilder() { return new Builder(); }
  5353. public override Builder CreateBuilderForType() { return new Builder(); }
  5354. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllExtensions prototype) {
  5355. return (Builder) new Builder().MergeFrom(prototype);
  5356. }
  5357. public sealed partial class Builder : pb::ExtendableBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder> {
  5358. protected override Builder ThisBuilder {
  5359. get { return this; }
  5360. }
  5361. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.CreateBuilder()
  5362. internal Builder() {}
  5363. global::Google.ProtocolBuffers.TestProtos.TestAllExtensions result = new global::Google.ProtocolBuffers.TestProtos.TestAllExtensions();
  5364. protected override global::Google.ProtocolBuffers.TestProtos.TestAllExtensions MessageBeingBuilt {
  5365. get { return result; }
  5366. }
  5367. public override Builder Clear() {
  5368. result = new global::Google.ProtocolBuffers.TestProtos.TestAllExtensions();
  5369. return this;
  5370. }
  5371. public override Builder Clone() {
  5372. return new Builder().MergeFrom(result);
  5373. }
  5374. public override pbd::MessageDescriptor DescriptorForType {
  5375. get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Descriptor; }
  5376. }
  5377. public override global::Google.ProtocolBuffers.TestProtos.TestAllExtensions DefaultInstanceForType {
  5378. get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.DefaultInstance; }
  5379. }
  5380. public override global::Google.ProtocolBuffers.TestProtos.TestAllExtensions BuildPartial() {
  5381. global::Google.ProtocolBuffers.TestProtos.TestAllExtensions returnMe = result;
  5382. result = null;
  5383. return returnMe;
  5384. }
  5385. public override Builder MergeFrom(pb::IMessage other) {
  5386. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllExtensions) {
  5387. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllExtensions) other);
  5388. } else {
  5389. base.MergeFrom(other);
  5390. return this;
  5391. }
  5392. }
  5393. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllExtensions other) {
  5394. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.DefaultInstance) return this;
  5395. this.MergeUnknownFields(other.UnknownFields);
  5396. return this;
  5397. }
  5398. public override Builder MergeFrom(pb::CodedInputStream input) {
  5399. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5400. }
  5401. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5402. pb::UnknownFieldSet.Builder unknownFields =
  5403. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5404. while (true) {
  5405. uint tag = input.ReadTag();
  5406. switch (tag) {
  5407. case 0:
  5408. this.UnknownFields = unknownFields.Build();
  5409. return this;
  5410. default: {
  5411. if (!ParseUnknownField(input, unknownFields,
  5412. extensionRegistry, tag)) {
  5413. this.UnknownFields = unknownFields.Build();
  5414. return this;
  5415. }
  5416. break;
  5417. }
  5418. }
  5419. }
  5420. }
  5421. }
  5422. }
  5423. public sealed partial class OptionalGroup_extension : pb::GeneratedMessage<OptionalGroup_extension, OptionalGroup_extension.Builder> {
  5424. private static readonly OptionalGroup_extension defaultInstance = new OptionalGroup_extension();
  5425. public static OptionalGroup_extension DefaultInstance {
  5426. get { return defaultInstance; }
  5427. }
  5428. public override OptionalGroup_extension DefaultInstanceForType {
  5429. get { return defaultInstance; }
  5430. }
  5431. public static pbd::MessageDescriptor Descriptor {
  5432. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor; }
  5433. }
  5434. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5435. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable; }
  5436. }
  5437. // optional int32 a = 17;
  5438. private bool hasA;
  5439. private int a_ = 0;
  5440. public bool HasA {
  5441. get { return hasA; }
  5442. }
  5443. public int A {
  5444. get { return a_; }
  5445. }
  5446. public override bool IsInitialized {
  5447. get {
  5448. return true;
  5449. }
  5450. }
  5451. public override void WriteTo(pb::CodedOutputStream output) {
  5452. if (HasA) {
  5453. output.WriteInt32(17, A);
  5454. }
  5455. UnknownFields.WriteTo(output);
  5456. }
  5457. private int memoizedSerializedSize = -1;
  5458. public override int SerializedSize {
  5459. get {
  5460. int size = memoizedSerializedSize;
  5461. if (size != -1) return size;
  5462. size = 0;
  5463. if (HasA) {
  5464. size += pb::CodedOutputStream.ComputeInt32Size(17, A);
  5465. }
  5466. size += UnknownFields.SerializedSize;
  5467. memoizedSerializedSize = size;
  5468. return size;
  5469. }
  5470. }
  5471. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(pb::ByteString data) {
  5472. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5473. }
  5474. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(pb::ByteString data,
  5475. pb::ExtensionRegistry extensionRegistry) {
  5476. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5477. .BuildParsed();
  5478. }
  5479. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(byte[] data) {
  5480. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5481. }
  5482. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(byte[] data,
  5483. pb::ExtensionRegistry extensionRegistry) {
  5484. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5485. .BuildParsed();
  5486. }
  5487. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(global::System.IO.Stream input) {
  5488. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5489. }
  5490. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(
  5491. global::System.IO.Stream input,
  5492. pb::ExtensionRegistry extensionRegistry) {
  5493. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5494. .BuildParsed();
  5495. }
  5496. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(pb::CodedInputStream input) {
  5497. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5498. }
  5499. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(pb::CodedInputStream input,
  5500. pb::ExtensionRegistry extensionRegistry) {
  5501. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5502. .BuildParsed();
  5503. }
  5504. public static Builder CreateBuilder() { return new Builder(); }
  5505. public override Builder CreateBuilderForType() { return new Builder(); }
  5506. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension prototype) {
  5507. return (Builder) new Builder().MergeFrom(prototype);
  5508. }
  5509. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, Builder> {
  5510. protected override Builder ThisBuilder {
  5511. get { return this; }
  5512. }
  5513. // Construct using global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.CreateBuilder()
  5514. internal Builder() {}
  5515. global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension result = new global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension();
  5516. protected override global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension MessageBeingBuilt {
  5517. get { return result; }
  5518. }
  5519. public override Builder Clear() {
  5520. result = new global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension();
  5521. return this;
  5522. }
  5523. public override Builder Clone() {
  5524. return new Builder().MergeFrom(result);
  5525. }
  5526. public override pbd::MessageDescriptor DescriptorForType {
  5527. get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Descriptor; }
  5528. }
  5529. public override global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension DefaultInstanceForType {
  5530. get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.DefaultInstance; }
  5531. }
  5532. public override global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension BuildPartial() {
  5533. global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension returnMe = result;
  5534. result = null;
  5535. return returnMe;
  5536. }
  5537. public override Builder MergeFrom(pb::IMessage other) {
  5538. if (other is global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension) {
  5539. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension) other);
  5540. } else {
  5541. base.MergeFrom(other);
  5542. return this;
  5543. }
  5544. }
  5545. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension other) {
  5546. if (other == global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.DefaultInstance) return this;
  5547. if (other.HasA) {
  5548. A = other.A;
  5549. }
  5550. this.MergeUnknownFields(other.UnknownFields);
  5551. return this;
  5552. }
  5553. public override Builder MergeFrom(pb::CodedInputStream input) {
  5554. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5555. }
  5556. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5557. pb::UnknownFieldSet.Builder unknownFields =
  5558. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5559. while (true) {
  5560. uint tag = input.ReadTag();
  5561. switch (tag) {
  5562. case 0:
  5563. this.UnknownFields = unknownFields.Build();
  5564. return this;
  5565. default: {
  5566. if (!ParseUnknownField(input, unknownFields,
  5567. extensionRegistry, tag)) {
  5568. this.UnknownFields = unknownFields.Build();
  5569. return this;
  5570. }
  5571. break;
  5572. }
  5573. case 136: {
  5574. A = input.ReadInt32();
  5575. break;
  5576. }
  5577. }
  5578. }
  5579. }
  5580. // optional int32 a = 17;
  5581. public bool HasA {
  5582. get { return result.HasA; }
  5583. }
  5584. public int A {
  5585. get { return result.A; }
  5586. set { SetA(value); }
  5587. }
  5588. public Builder SetA(int value) {
  5589. result.hasA = true;
  5590. result.a_ = value;
  5591. return this;
  5592. }
  5593. public Builder ClearA() {
  5594. result.hasA = false;
  5595. result.a_ = 0;
  5596. return this;
  5597. }
  5598. }
  5599. }
  5600. public sealed partial class RepeatedGroup_extension : pb::GeneratedMessage<RepeatedGroup_extension, RepeatedGroup_extension.Builder> {
  5601. private static readonly RepeatedGroup_extension defaultInstance = new RepeatedGroup_extension();
  5602. public static RepeatedGroup_extension DefaultInstance {
  5603. get { return defaultInstance; }
  5604. }
  5605. public override RepeatedGroup_extension DefaultInstanceForType {
  5606. get { return defaultInstance; }
  5607. }
  5608. public static pbd::MessageDescriptor Descriptor {
  5609. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor; }
  5610. }
  5611. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5612. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable; }
  5613. }
  5614. // optional int32 a = 47;
  5615. private bool hasA;
  5616. private int a_ = 0;
  5617. public bool HasA {
  5618. get { return hasA; }
  5619. }
  5620. public int A {
  5621. get { return a_; }
  5622. }
  5623. public override bool IsInitialized {
  5624. get {
  5625. return true;
  5626. }
  5627. }
  5628. public override void WriteTo(pb::CodedOutputStream output) {
  5629. if (HasA) {
  5630. output.WriteInt32(47, A);
  5631. }
  5632. UnknownFields.WriteTo(output);
  5633. }
  5634. private int memoizedSerializedSize = -1;
  5635. public override int SerializedSize {
  5636. get {
  5637. int size = memoizedSerializedSize;
  5638. if (size != -1) return size;
  5639. size = 0;
  5640. if (HasA) {
  5641. size += pb::CodedOutputStream.ComputeInt32Size(47, A);
  5642. }
  5643. size += UnknownFields.SerializedSize;
  5644. memoizedSerializedSize = size;
  5645. return size;
  5646. }
  5647. }
  5648. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(pb::ByteString data) {
  5649. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5650. }
  5651. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(pb::ByteString data,
  5652. pb::ExtensionRegistry extensionRegistry) {
  5653. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5654. .BuildParsed();
  5655. }
  5656. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(byte[] data) {
  5657. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5658. }
  5659. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(byte[] data,
  5660. pb::ExtensionRegistry extensionRegistry) {
  5661. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5662. .BuildParsed();
  5663. }
  5664. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(global::System.IO.Stream input) {
  5665. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5666. }
  5667. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(
  5668. global::System.IO.Stream input,
  5669. pb::ExtensionRegistry extensionRegistry) {
  5670. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5671. .BuildParsed();
  5672. }
  5673. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(pb::CodedInputStream input) {
  5674. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5675. }
  5676. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(pb::CodedInputStream input,
  5677. pb::ExtensionRegistry extensionRegistry) {
  5678. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5679. .BuildParsed();
  5680. }
  5681. public static Builder CreateBuilder() { return new Builder(); }
  5682. public override Builder CreateBuilderForType() { return new Builder(); }
  5683. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension prototype) {
  5684. return (Builder) new Builder().MergeFrom(prototype);
  5685. }
  5686. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, Builder> {
  5687. protected override Builder ThisBuilder {
  5688. get { return this; }
  5689. }
  5690. // Construct using global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.CreateBuilder()
  5691. internal Builder() {}
  5692. global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension result = new global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension();
  5693. protected override global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension MessageBeingBuilt {
  5694. get { return result; }
  5695. }
  5696. public override Builder Clear() {
  5697. result = new global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension();
  5698. return this;
  5699. }
  5700. public override Builder Clone() {
  5701. return new Builder().MergeFrom(result);
  5702. }
  5703. public override pbd::MessageDescriptor DescriptorForType {
  5704. get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Descriptor; }
  5705. }
  5706. public override global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension DefaultInstanceForType {
  5707. get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.DefaultInstance; }
  5708. }
  5709. public override global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension BuildPartial() {
  5710. global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension returnMe = result;
  5711. result = null;
  5712. return returnMe;
  5713. }
  5714. public override Builder MergeFrom(pb::IMessage other) {
  5715. if (other is global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension) {
  5716. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension) other);
  5717. } else {
  5718. base.MergeFrom(other);
  5719. return this;
  5720. }
  5721. }
  5722. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension other) {
  5723. if (other == global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.DefaultInstance) return this;
  5724. if (other.HasA) {
  5725. A = other.A;
  5726. }
  5727. this.MergeUnknownFields(other.UnknownFields);
  5728. return this;
  5729. }
  5730. public override Builder MergeFrom(pb::CodedInputStream input) {
  5731. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5732. }
  5733. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5734. pb::UnknownFieldSet.Builder unknownFields =
  5735. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5736. while (true) {
  5737. uint tag = input.ReadTag();
  5738. switch (tag) {
  5739. case 0:
  5740. this.UnknownFields = unknownFields.Build();
  5741. return this;
  5742. default: {
  5743. if (!ParseUnknownField(input, unknownFields,
  5744. extensionRegistry, tag)) {
  5745. this.UnknownFields = unknownFields.Build();
  5746. return this;
  5747. }
  5748. break;
  5749. }
  5750. case 376: {
  5751. A = input.ReadInt32();
  5752. break;
  5753. }
  5754. }
  5755. }
  5756. }
  5757. // optional int32 a = 47;
  5758. public bool HasA {
  5759. get { return result.HasA; }
  5760. }
  5761. public int A {
  5762. get { return result.A; }
  5763. set { SetA(value); }
  5764. }
  5765. public Builder SetA(int value) {
  5766. result.hasA = true;
  5767. result.a_ = value;
  5768. return this;
  5769. }
  5770. public Builder ClearA() {
  5771. result.hasA = false;
  5772. result.a_ = 0;
  5773. return this;
  5774. }
  5775. }
  5776. }
  5777. public sealed partial class TestRequired : pb::GeneratedMessage<TestRequired, TestRequired.Builder> {
  5778. private static readonly TestRequired defaultInstance = new TestRequired();
  5779. public static TestRequired DefaultInstance {
  5780. get { return defaultInstance; }
  5781. }
  5782. public override TestRequired DefaultInstanceForType {
  5783. get { return defaultInstance; }
  5784. }
  5785. public static pbd::MessageDescriptor Descriptor {
  5786. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__Descriptor; }
  5787. }
  5788. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  5789. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__FieldAccessorTable; }
  5790. }
  5791. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestRequired> Single =
  5792. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(Descriptor.Extensions[0]);
  5793. public static readonly
  5794. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired>> Multi =
  5795. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(Descriptor.Extensions[1]);
  5796. #region Nested types
  5797. public static class Types {
  5798. }
  5799. #endregion
  5800. // required int32 a = 1;
  5801. private bool hasA;
  5802. private int a_ = 0;
  5803. public bool HasA {
  5804. get { return hasA; }
  5805. }
  5806. public int A {
  5807. get { return a_; }
  5808. }
  5809. // optional int32 dummy2 = 2;
  5810. private bool hasDummy2;
  5811. private int dummy2_ = 0;
  5812. public bool HasDummy2 {
  5813. get { return hasDummy2; }
  5814. }
  5815. public int Dummy2 {
  5816. get { return dummy2_; }
  5817. }
  5818. // required int32 b = 3;
  5819. private bool hasB;
  5820. private int b_ = 0;
  5821. public bool HasB {
  5822. get { return hasB; }
  5823. }
  5824. public int B {
  5825. get { return b_; }
  5826. }
  5827. // optional int32 dummy4 = 4;
  5828. private bool hasDummy4;
  5829. private int dummy4_ = 0;
  5830. public bool HasDummy4 {
  5831. get { return hasDummy4; }
  5832. }
  5833. public int Dummy4 {
  5834. get { return dummy4_; }
  5835. }
  5836. // optional int32 dummy5 = 5;
  5837. private bool hasDummy5;
  5838. private int dummy5_ = 0;
  5839. public bool HasDummy5 {
  5840. get { return hasDummy5; }
  5841. }
  5842. public int Dummy5 {
  5843. get { return dummy5_; }
  5844. }
  5845. // optional int32 dummy6 = 6;
  5846. private bool hasDummy6;
  5847. private int dummy6_ = 0;
  5848. public bool HasDummy6 {
  5849. get { return hasDummy6; }
  5850. }
  5851. public int Dummy6 {
  5852. get { return dummy6_; }
  5853. }
  5854. // optional int32 dummy7 = 7;
  5855. private bool hasDummy7;
  5856. private int dummy7_ = 0;
  5857. public bool HasDummy7 {
  5858. get { return hasDummy7; }
  5859. }
  5860. public int Dummy7 {
  5861. get { return dummy7_; }
  5862. }
  5863. // optional int32 dummy8 = 8;
  5864. private bool hasDummy8;
  5865. private int dummy8_ = 0;
  5866. public bool HasDummy8 {
  5867. get { return hasDummy8; }
  5868. }
  5869. public int Dummy8 {
  5870. get { return dummy8_; }
  5871. }
  5872. // optional int32 dummy9 = 9;
  5873. private bool hasDummy9;
  5874. private int dummy9_ = 0;
  5875. public bool HasDummy9 {
  5876. get { return hasDummy9; }
  5877. }
  5878. public int Dummy9 {
  5879. get { return dummy9_; }
  5880. }
  5881. // optional int32 dummy10 = 10;
  5882. private bool hasDummy10;
  5883. private int dummy10_ = 0;
  5884. public bool HasDummy10 {
  5885. get { return hasDummy10; }
  5886. }
  5887. public int Dummy10 {
  5888. get { return dummy10_; }
  5889. }
  5890. // optional int32 dummy11 = 11;
  5891. private bool hasDummy11;
  5892. private int dummy11_ = 0;
  5893. public bool HasDummy11 {
  5894. get { return hasDummy11; }
  5895. }
  5896. public int Dummy11 {
  5897. get { return dummy11_; }
  5898. }
  5899. // optional int32 dummy12 = 12;
  5900. private bool hasDummy12;
  5901. private int dummy12_ = 0;
  5902. public bool HasDummy12 {
  5903. get { return hasDummy12; }
  5904. }
  5905. public int Dummy12 {
  5906. get { return dummy12_; }
  5907. }
  5908. // optional int32 dummy13 = 13;
  5909. private bool hasDummy13;
  5910. private int dummy13_ = 0;
  5911. public bool HasDummy13 {
  5912. get { return hasDummy13; }
  5913. }
  5914. public int Dummy13 {
  5915. get { return dummy13_; }
  5916. }
  5917. // optional int32 dummy14 = 14;
  5918. private bool hasDummy14;
  5919. private int dummy14_ = 0;
  5920. public bool HasDummy14 {
  5921. get { return hasDummy14; }
  5922. }
  5923. public int Dummy14 {
  5924. get { return dummy14_; }
  5925. }
  5926. // optional int32 dummy15 = 15;
  5927. private bool hasDummy15;
  5928. private int dummy15_ = 0;
  5929. public bool HasDummy15 {
  5930. get { return hasDummy15; }
  5931. }
  5932. public int Dummy15 {
  5933. get { return dummy15_; }
  5934. }
  5935. // optional int32 dummy16 = 16;
  5936. private bool hasDummy16;
  5937. private int dummy16_ = 0;
  5938. public bool HasDummy16 {
  5939. get { return hasDummy16; }
  5940. }
  5941. public int Dummy16 {
  5942. get { return dummy16_; }
  5943. }
  5944. // optional int32 dummy17 = 17;
  5945. private bool hasDummy17;
  5946. private int dummy17_ = 0;
  5947. public bool HasDummy17 {
  5948. get { return hasDummy17; }
  5949. }
  5950. public int Dummy17 {
  5951. get { return dummy17_; }
  5952. }
  5953. // optional int32 dummy18 = 18;
  5954. private bool hasDummy18;
  5955. private int dummy18_ = 0;
  5956. public bool HasDummy18 {
  5957. get { return hasDummy18; }
  5958. }
  5959. public int Dummy18 {
  5960. get { return dummy18_; }
  5961. }
  5962. // optional int32 dummy19 = 19;
  5963. private bool hasDummy19;
  5964. private int dummy19_ = 0;
  5965. public bool HasDummy19 {
  5966. get { return hasDummy19; }
  5967. }
  5968. public int Dummy19 {
  5969. get { return dummy19_; }
  5970. }
  5971. // optional int32 dummy20 = 20;
  5972. private bool hasDummy20;
  5973. private int dummy20_ = 0;
  5974. public bool HasDummy20 {
  5975. get { return hasDummy20; }
  5976. }
  5977. public int Dummy20 {
  5978. get { return dummy20_; }
  5979. }
  5980. // optional int32 dummy21 = 21;
  5981. private bool hasDummy21;
  5982. private int dummy21_ = 0;
  5983. public bool HasDummy21 {
  5984. get { return hasDummy21; }
  5985. }
  5986. public int Dummy21 {
  5987. get { return dummy21_; }
  5988. }
  5989. // optional int32 dummy22 = 22;
  5990. private bool hasDummy22;
  5991. private int dummy22_ = 0;
  5992. public bool HasDummy22 {
  5993. get { return hasDummy22; }
  5994. }
  5995. public int Dummy22 {
  5996. get { return dummy22_; }
  5997. }
  5998. // optional int32 dummy23 = 23;
  5999. private bool hasDummy23;
  6000. private int dummy23_ = 0;
  6001. public bool HasDummy23 {
  6002. get { return hasDummy23; }
  6003. }
  6004. public int Dummy23 {
  6005. get { return dummy23_; }
  6006. }
  6007. // optional int32 dummy24 = 24;
  6008. private bool hasDummy24;
  6009. private int dummy24_ = 0;
  6010. public bool HasDummy24 {
  6011. get { return hasDummy24; }
  6012. }
  6013. public int Dummy24 {
  6014. get { return dummy24_; }
  6015. }
  6016. // optional int32 dummy25 = 25;
  6017. private bool hasDummy25;
  6018. private int dummy25_ = 0;
  6019. public bool HasDummy25 {
  6020. get { return hasDummy25; }
  6021. }
  6022. public int Dummy25 {
  6023. get { return dummy25_; }
  6024. }
  6025. // optional int32 dummy26 = 26;
  6026. private bool hasDummy26;
  6027. private int dummy26_ = 0;
  6028. public bool HasDummy26 {
  6029. get { return hasDummy26; }
  6030. }
  6031. public int Dummy26 {
  6032. get { return dummy26_; }
  6033. }
  6034. // optional int32 dummy27 = 27;
  6035. private bool hasDummy27;
  6036. private int dummy27_ = 0;
  6037. public bool HasDummy27 {
  6038. get { return hasDummy27; }
  6039. }
  6040. public int Dummy27 {
  6041. get { return dummy27_; }
  6042. }
  6043. // optional int32 dummy28 = 28;
  6044. private bool hasDummy28;
  6045. private int dummy28_ = 0;
  6046. public bool HasDummy28 {
  6047. get { return hasDummy28; }
  6048. }
  6049. public int Dummy28 {
  6050. get { return dummy28_; }
  6051. }
  6052. // optional int32 dummy29 = 29;
  6053. private bool hasDummy29;
  6054. private int dummy29_ = 0;
  6055. public bool HasDummy29 {
  6056. get { return hasDummy29; }
  6057. }
  6058. public int Dummy29 {
  6059. get { return dummy29_; }
  6060. }
  6061. // optional int32 dummy30 = 30;
  6062. private bool hasDummy30;
  6063. private int dummy30_ = 0;
  6064. public bool HasDummy30 {
  6065. get { return hasDummy30; }
  6066. }
  6067. public int Dummy30 {
  6068. get { return dummy30_; }
  6069. }
  6070. // optional int32 dummy31 = 31;
  6071. private bool hasDummy31;
  6072. private int dummy31_ = 0;
  6073. public bool HasDummy31 {
  6074. get { return hasDummy31; }
  6075. }
  6076. public int Dummy31 {
  6077. get { return dummy31_; }
  6078. }
  6079. // optional int32 dummy32 = 32;
  6080. private bool hasDummy32;
  6081. private int dummy32_ = 0;
  6082. public bool HasDummy32 {
  6083. get { return hasDummy32; }
  6084. }
  6085. public int Dummy32 {
  6086. get { return dummy32_; }
  6087. }
  6088. // required int32 c = 33;
  6089. private bool hasC;
  6090. private int c_ = 0;
  6091. public bool HasC {
  6092. get { return hasC; }
  6093. }
  6094. public int C {
  6095. get { return c_; }
  6096. }
  6097. public override bool IsInitialized {
  6098. get {
  6099. if (!hasA) return false;
  6100. if (!hasB) return false;
  6101. if (!hasC) return false;
  6102. return true;
  6103. }
  6104. }
  6105. public override void WriteTo(pb::CodedOutputStream output) {
  6106. if (HasA) {
  6107. output.WriteInt32(1, A);
  6108. }
  6109. if (HasDummy2) {
  6110. output.WriteInt32(2, Dummy2);
  6111. }
  6112. if (HasB) {
  6113. output.WriteInt32(3, B);
  6114. }
  6115. if (HasDummy4) {
  6116. output.WriteInt32(4, Dummy4);
  6117. }
  6118. if (HasDummy5) {
  6119. output.WriteInt32(5, Dummy5);
  6120. }
  6121. if (HasDummy6) {
  6122. output.WriteInt32(6, Dummy6);
  6123. }
  6124. if (HasDummy7) {
  6125. output.WriteInt32(7, Dummy7);
  6126. }
  6127. if (HasDummy8) {
  6128. output.WriteInt32(8, Dummy8);
  6129. }
  6130. if (HasDummy9) {
  6131. output.WriteInt32(9, Dummy9);
  6132. }
  6133. if (HasDummy10) {
  6134. output.WriteInt32(10, Dummy10);
  6135. }
  6136. if (HasDummy11) {
  6137. output.WriteInt32(11, Dummy11);
  6138. }
  6139. if (HasDummy12) {
  6140. output.WriteInt32(12, Dummy12);
  6141. }
  6142. if (HasDummy13) {
  6143. output.WriteInt32(13, Dummy13);
  6144. }
  6145. if (HasDummy14) {
  6146. output.WriteInt32(14, Dummy14);
  6147. }
  6148. if (HasDummy15) {
  6149. output.WriteInt32(15, Dummy15);
  6150. }
  6151. if (HasDummy16) {
  6152. output.WriteInt32(16, Dummy16);
  6153. }
  6154. if (HasDummy17) {
  6155. output.WriteInt32(17, Dummy17);
  6156. }
  6157. if (HasDummy18) {
  6158. output.WriteInt32(18, Dummy18);
  6159. }
  6160. if (HasDummy19) {
  6161. output.WriteInt32(19, Dummy19);
  6162. }
  6163. if (HasDummy20) {
  6164. output.WriteInt32(20, Dummy20);
  6165. }
  6166. if (HasDummy21) {
  6167. output.WriteInt32(21, Dummy21);
  6168. }
  6169. if (HasDummy22) {
  6170. output.WriteInt32(22, Dummy22);
  6171. }
  6172. if (HasDummy23) {
  6173. output.WriteInt32(23, Dummy23);
  6174. }
  6175. if (HasDummy24) {
  6176. output.WriteInt32(24, Dummy24);
  6177. }
  6178. if (HasDummy25) {
  6179. output.WriteInt32(25, Dummy25);
  6180. }
  6181. if (HasDummy26) {
  6182. output.WriteInt32(26, Dummy26);
  6183. }
  6184. if (HasDummy27) {
  6185. output.WriteInt32(27, Dummy27);
  6186. }
  6187. if (HasDummy28) {
  6188. output.WriteInt32(28, Dummy28);
  6189. }
  6190. if (HasDummy29) {
  6191. output.WriteInt32(29, Dummy29);
  6192. }
  6193. if (HasDummy30) {
  6194. output.WriteInt32(30, Dummy30);
  6195. }
  6196. if (HasDummy31) {
  6197. output.WriteInt32(31, Dummy31);
  6198. }
  6199. if (HasDummy32) {
  6200. output.WriteInt32(32, Dummy32);
  6201. }
  6202. if (HasC) {
  6203. output.WriteInt32(33, C);
  6204. }
  6205. UnknownFields.WriteTo(output);
  6206. }
  6207. private int memoizedSerializedSize = -1;
  6208. public override int SerializedSize {
  6209. get {
  6210. int size = memoizedSerializedSize;
  6211. if (size != -1) return size;
  6212. size = 0;
  6213. if (HasA) {
  6214. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  6215. }
  6216. if (HasDummy2) {
  6217. size += pb::CodedOutputStream.ComputeInt32Size(2, Dummy2);
  6218. }
  6219. if (HasB) {
  6220. size += pb::CodedOutputStream.ComputeInt32Size(3, B);
  6221. }
  6222. if (HasDummy4) {
  6223. size += pb::CodedOutputStream.ComputeInt32Size(4, Dummy4);
  6224. }
  6225. if (HasDummy5) {
  6226. size += pb::CodedOutputStream.ComputeInt32Size(5, Dummy5);
  6227. }
  6228. if (HasDummy6) {
  6229. size += pb::CodedOutputStream.ComputeInt32Size(6, Dummy6);
  6230. }
  6231. if (HasDummy7) {
  6232. size += pb::CodedOutputStream.ComputeInt32Size(7, Dummy7);
  6233. }
  6234. if (HasDummy8) {
  6235. size += pb::CodedOutputStream.ComputeInt32Size(8, Dummy8);
  6236. }
  6237. if (HasDummy9) {
  6238. size += pb::CodedOutputStream.ComputeInt32Size(9, Dummy9);
  6239. }
  6240. if (HasDummy10) {
  6241. size += pb::CodedOutputStream.ComputeInt32Size(10, Dummy10);
  6242. }
  6243. if (HasDummy11) {
  6244. size += pb::CodedOutputStream.ComputeInt32Size(11, Dummy11);
  6245. }
  6246. if (HasDummy12) {
  6247. size += pb::CodedOutputStream.ComputeInt32Size(12, Dummy12);
  6248. }
  6249. if (HasDummy13) {
  6250. size += pb::CodedOutputStream.ComputeInt32Size(13, Dummy13);
  6251. }
  6252. if (HasDummy14) {
  6253. size += pb::CodedOutputStream.ComputeInt32Size(14, Dummy14);
  6254. }
  6255. if (HasDummy15) {
  6256. size += pb::CodedOutputStream.ComputeInt32Size(15, Dummy15);
  6257. }
  6258. if (HasDummy16) {
  6259. size += pb::CodedOutputStream.ComputeInt32Size(16, Dummy16);
  6260. }
  6261. if (HasDummy17) {
  6262. size += pb::CodedOutputStream.ComputeInt32Size(17, Dummy17);
  6263. }
  6264. if (HasDummy18) {
  6265. size += pb::CodedOutputStream.ComputeInt32Size(18, Dummy18);
  6266. }
  6267. if (HasDummy19) {
  6268. size += pb::CodedOutputStream.ComputeInt32Size(19, Dummy19);
  6269. }
  6270. if (HasDummy20) {
  6271. size += pb::CodedOutputStream.ComputeInt32Size(20, Dummy20);
  6272. }
  6273. if (HasDummy21) {
  6274. size += pb::CodedOutputStream.ComputeInt32Size(21, Dummy21);
  6275. }
  6276. if (HasDummy22) {
  6277. size += pb::CodedOutputStream.ComputeInt32Size(22, Dummy22);
  6278. }
  6279. if (HasDummy23) {
  6280. size += pb::CodedOutputStream.ComputeInt32Size(23, Dummy23);
  6281. }
  6282. if (HasDummy24) {
  6283. size += pb::CodedOutputStream.ComputeInt32Size(24, Dummy24);
  6284. }
  6285. if (HasDummy25) {
  6286. size += pb::CodedOutputStream.ComputeInt32Size(25, Dummy25);
  6287. }
  6288. if (HasDummy26) {
  6289. size += pb::CodedOutputStream.ComputeInt32Size(26, Dummy26);
  6290. }
  6291. if (HasDummy27) {
  6292. size += pb::CodedOutputStream.ComputeInt32Size(27, Dummy27);
  6293. }
  6294. if (HasDummy28) {
  6295. size += pb::CodedOutputStream.ComputeInt32Size(28, Dummy28);
  6296. }
  6297. if (HasDummy29) {
  6298. size += pb::CodedOutputStream.ComputeInt32Size(29, Dummy29);
  6299. }
  6300. if (HasDummy30) {
  6301. size += pb::CodedOutputStream.ComputeInt32Size(30, Dummy30);
  6302. }
  6303. if (HasDummy31) {
  6304. size += pb::CodedOutputStream.ComputeInt32Size(31, Dummy31);
  6305. }
  6306. if (HasDummy32) {
  6307. size += pb::CodedOutputStream.ComputeInt32Size(32, Dummy32);
  6308. }
  6309. if (HasC) {
  6310. size += pb::CodedOutputStream.ComputeInt32Size(33, C);
  6311. }
  6312. size += UnknownFields.SerializedSize;
  6313. memoizedSerializedSize = size;
  6314. return size;
  6315. }
  6316. }
  6317. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(pb::ByteString data) {
  6318. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6319. }
  6320. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(pb::ByteString data,
  6321. pb::ExtensionRegistry extensionRegistry) {
  6322. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  6323. .BuildParsed();
  6324. }
  6325. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(byte[] data) {
  6326. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6327. }
  6328. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(byte[] data,
  6329. pb::ExtensionRegistry extensionRegistry) {
  6330. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  6331. .BuildParsed();
  6332. }
  6333. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(global::System.IO.Stream input) {
  6334. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6335. }
  6336. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(
  6337. global::System.IO.Stream input,
  6338. pb::ExtensionRegistry extensionRegistry) {
  6339. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  6340. .BuildParsed();
  6341. }
  6342. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(pb::CodedInputStream input) {
  6343. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6344. }
  6345. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(pb::CodedInputStream input,
  6346. pb::ExtensionRegistry extensionRegistry) {
  6347. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  6348. .BuildParsed();
  6349. }
  6350. public static Builder CreateBuilder() { return new Builder(); }
  6351. public override Builder CreateBuilderForType() { return new Builder(); }
  6352. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestRequired prototype) {
  6353. return (Builder) new Builder().MergeFrom(prototype);
  6354. }
  6355. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestRequired, Builder> {
  6356. protected override Builder ThisBuilder {
  6357. get { return this; }
  6358. }
  6359. // Construct using global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder()
  6360. internal Builder() {}
  6361. global::Google.ProtocolBuffers.TestProtos.TestRequired result = new global::Google.ProtocolBuffers.TestProtos.TestRequired();
  6362. protected override global::Google.ProtocolBuffers.TestProtos.TestRequired MessageBeingBuilt {
  6363. get { return result; }
  6364. }
  6365. public override Builder Clear() {
  6366. result = new global::Google.ProtocolBuffers.TestProtos.TestRequired();
  6367. return this;
  6368. }
  6369. public override Builder Clone() {
  6370. return new Builder().MergeFrom(result);
  6371. }
  6372. public override pbd::MessageDescriptor DescriptorForType {
  6373. get { return global::Google.ProtocolBuffers.TestProtos.TestRequired.Descriptor; }
  6374. }
  6375. public override global::Google.ProtocolBuffers.TestProtos.TestRequired DefaultInstanceForType {
  6376. get { return global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance; }
  6377. }
  6378. public override global::Google.ProtocolBuffers.TestProtos.TestRequired BuildPartial() {
  6379. global::Google.ProtocolBuffers.TestProtos.TestRequired returnMe = result;
  6380. result = null;
  6381. return returnMe;
  6382. }
  6383. public override Builder MergeFrom(pb::IMessage other) {
  6384. if (other is global::Google.ProtocolBuffers.TestProtos.TestRequired) {
  6385. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestRequired) other);
  6386. } else {
  6387. base.MergeFrom(other);
  6388. return this;
  6389. }
  6390. }
  6391. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestRequired other) {
  6392. if (other == global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) return this;
  6393. if (other.HasA) {
  6394. A = other.A;
  6395. }
  6396. if (other.HasDummy2) {
  6397. Dummy2 = other.Dummy2;
  6398. }
  6399. if (other.HasB) {
  6400. B = other.B;
  6401. }
  6402. if (other.HasDummy4) {
  6403. Dummy4 = other.Dummy4;
  6404. }
  6405. if (other.HasDummy5) {
  6406. Dummy5 = other.Dummy5;
  6407. }
  6408. if (other.HasDummy6) {
  6409. Dummy6 = other.Dummy6;
  6410. }
  6411. if (other.HasDummy7) {
  6412. Dummy7 = other.Dummy7;
  6413. }
  6414. if (other.HasDummy8) {
  6415. Dummy8 = other.Dummy8;
  6416. }
  6417. if (other.HasDummy9) {
  6418. Dummy9 = other.Dummy9;
  6419. }
  6420. if (other.HasDummy10) {
  6421. Dummy10 = other.Dummy10;
  6422. }
  6423. if (other.HasDummy11) {
  6424. Dummy11 = other.Dummy11;
  6425. }
  6426. if (other.HasDummy12) {
  6427. Dummy12 = other.Dummy12;
  6428. }
  6429. if (other.HasDummy13) {
  6430. Dummy13 = other.Dummy13;
  6431. }
  6432. if (other.HasDummy14) {
  6433. Dummy14 = other.Dummy14;
  6434. }
  6435. if (other.HasDummy15) {
  6436. Dummy15 = other.Dummy15;
  6437. }
  6438. if (other.HasDummy16) {
  6439. Dummy16 = other.Dummy16;
  6440. }
  6441. if (other.HasDummy17) {
  6442. Dummy17 = other.Dummy17;
  6443. }
  6444. if (other.HasDummy18) {
  6445. Dummy18 = other.Dummy18;
  6446. }
  6447. if (other.HasDummy19) {
  6448. Dummy19 = other.Dummy19;
  6449. }
  6450. if (other.HasDummy20) {
  6451. Dummy20 = other.Dummy20;
  6452. }
  6453. if (other.HasDummy21) {
  6454. Dummy21 = other.Dummy21;
  6455. }
  6456. if (other.HasDummy22) {
  6457. Dummy22 = other.Dummy22;
  6458. }
  6459. if (other.HasDummy23) {
  6460. Dummy23 = other.Dummy23;
  6461. }
  6462. if (other.HasDummy24) {
  6463. Dummy24 = other.Dummy24;
  6464. }
  6465. if (other.HasDummy25) {
  6466. Dummy25 = other.Dummy25;
  6467. }
  6468. if (other.HasDummy26) {
  6469. Dummy26 = other.Dummy26;
  6470. }
  6471. if (other.HasDummy27) {
  6472. Dummy27 = other.Dummy27;
  6473. }
  6474. if (other.HasDummy28) {
  6475. Dummy28 = other.Dummy28;
  6476. }
  6477. if (other.HasDummy29) {
  6478. Dummy29 = other.Dummy29;
  6479. }
  6480. if (other.HasDummy30) {
  6481. Dummy30 = other.Dummy30;
  6482. }
  6483. if (other.HasDummy31) {
  6484. Dummy31 = other.Dummy31;
  6485. }
  6486. if (other.HasDummy32) {
  6487. Dummy32 = other.Dummy32;
  6488. }
  6489. if (other.HasC) {
  6490. C = other.C;
  6491. }
  6492. this.MergeUnknownFields(other.UnknownFields);
  6493. return this;
  6494. }
  6495. public override Builder MergeFrom(pb::CodedInputStream input) {
  6496. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  6497. }
  6498. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6499. pb::UnknownFieldSet.Builder unknownFields =
  6500. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6501. while (true) {
  6502. uint tag = input.ReadTag();
  6503. switch (tag) {
  6504. case 0:
  6505. this.UnknownFields = unknownFields.Build();
  6506. return this;
  6507. default: {
  6508. if (!ParseUnknownField(input, unknownFields,
  6509. extensionRegistry, tag)) {
  6510. this.UnknownFields = unknownFields.Build();
  6511. return this;
  6512. }
  6513. break;
  6514. }
  6515. case 8: {
  6516. A = input.ReadInt32();
  6517. break;
  6518. }
  6519. case 16: {
  6520. Dummy2 = input.ReadInt32();
  6521. break;
  6522. }
  6523. case 24: {
  6524. B = input.ReadInt32();
  6525. break;
  6526. }
  6527. case 32: {
  6528. Dummy4 = input.ReadInt32();
  6529. break;
  6530. }
  6531. case 40: {
  6532. Dummy5 = input.ReadInt32();
  6533. break;
  6534. }
  6535. case 48: {
  6536. Dummy6 = input.ReadInt32();
  6537. break;
  6538. }
  6539. case 56: {
  6540. Dummy7 = input.ReadInt32();
  6541. break;
  6542. }
  6543. case 64: {
  6544. Dummy8 = input.ReadInt32();
  6545. break;
  6546. }
  6547. case 72: {
  6548. Dummy9 = input.ReadInt32();
  6549. break;
  6550. }
  6551. case 80: {
  6552. Dummy10 = input.ReadInt32();
  6553. break;
  6554. }
  6555. case 88: {
  6556. Dummy11 = input.ReadInt32();
  6557. break;
  6558. }
  6559. case 96: {
  6560. Dummy12 = input.ReadInt32();
  6561. break;
  6562. }
  6563. case 104: {
  6564. Dummy13 = input.ReadInt32();
  6565. break;
  6566. }
  6567. case 112: {
  6568. Dummy14 = input.ReadInt32();
  6569. break;
  6570. }
  6571. case 120: {
  6572. Dummy15 = input.ReadInt32();
  6573. break;
  6574. }
  6575. case 128: {
  6576. Dummy16 = input.ReadInt32();
  6577. break;
  6578. }
  6579. case 136: {
  6580. Dummy17 = input.ReadInt32();
  6581. break;
  6582. }
  6583. case 144: {
  6584. Dummy18 = input.ReadInt32();
  6585. break;
  6586. }
  6587. case 152: {
  6588. Dummy19 = input.ReadInt32();
  6589. break;
  6590. }
  6591. case 160: {
  6592. Dummy20 = input.ReadInt32();
  6593. break;
  6594. }
  6595. case 168: {
  6596. Dummy21 = input.ReadInt32();
  6597. break;
  6598. }
  6599. case 176: {
  6600. Dummy22 = input.ReadInt32();
  6601. break;
  6602. }
  6603. case 184: {
  6604. Dummy23 = input.ReadInt32();
  6605. break;
  6606. }
  6607. case 192: {
  6608. Dummy24 = input.ReadInt32();
  6609. break;
  6610. }
  6611. case 200: {
  6612. Dummy25 = input.ReadInt32();
  6613. break;
  6614. }
  6615. case 208: {
  6616. Dummy26 = input.ReadInt32();
  6617. break;
  6618. }
  6619. case 216: {
  6620. Dummy27 = input.ReadInt32();
  6621. break;
  6622. }
  6623. case 224: {
  6624. Dummy28 = input.ReadInt32();
  6625. break;
  6626. }
  6627. case 232: {
  6628. Dummy29 = input.ReadInt32();
  6629. break;
  6630. }
  6631. case 240: {
  6632. Dummy30 = input.ReadInt32();
  6633. break;
  6634. }
  6635. case 248: {
  6636. Dummy31 = input.ReadInt32();
  6637. break;
  6638. }
  6639. case 256: {
  6640. Dummy32 = input.ReadInt32();
  6641. break;
  6642. }
  6643. case 264: {
  6644. C = input.ReadInt32();
  6645. break;
  6646. }
  6647. }
  6648. }
  6649. }
  6650. // required int32 a = 1;
  6651. public bool HasA {
  6652. get { return result.HasA; }
  6653. }
  6654. public int A {
  6655. get { return result.A; }
  6656. set { SetA(value); }
  6657. }
  6658. public Builder SetA(int value) {
  6659. result.hasA = true;
  6660. result.a_ = value;
  6661. return this;
  6662. }
  6663. public Builder ClearA() {
  6664. result.hasA = false;
  6665. result.a_ = 0;
  6666. return this;
  6667. }
  6668. // optional int32 dummy2 = 2;
  6669. public bool HasDummy2 {
  6670. get { return result.HasDummy2; }
  6671. }
  6672. public int Dummy2 {
  6673. get { return result.Dummy2; }
  6674. set { SetDummy2(value); }
  6675. }
  6676. public Builder SetDummy2(int value) {
  6677. result.hasDummy2 = true;
  6678. result.dummy2_ = value;
  6679. return this;
  6680. }
  6681. public Builder ClearDummy2() {
  6682. result.hasDummy2 = false;
  6683. result.dummy2_ = 0;
  6684. return this;
  6685. }
  6686. // required int32 b = 3;
  6687. public bool HasB {
  6688. get { return result.HasB; }
  6689. }
  6690. public int B {
  6691. get { return result.B; }
  6692. set { SetB(value); }
  6693. }
  6694. public Builder SetB(int value) {
  6695. result.hasB = true;
  6696. result.b_ = value;
  6697. return this;
  6698. }
  6699. public Builder ClearB() {
  6700. result.hasB = false;
  6701. result.b_ = 0;
  6702. return this;
  6703. }
  6704. // optional int32 dummy4 = 4;
  6705. public bool HasDummy4 {
  6706. get { return result.HasDummy4; }
  6707. }
  6708. public int Dummy4 {
  6709. get { return result.Dummy4; }
  6710. set { SetDummy4(value); }
  6711. }
  6712. public Builder SetDummy4(int value) {
  6713. result.hasDummy4 = true;
  6714. result.dummy4_ = value;
  6715. return this;
  6716. }
  6717. public Builder ClearDummy4() {
  6718. result.hasDummy4 = false;
  6719. result.dummy4_ = 0;
  6720. return this;
  6721. }
  6722. // optional int32 dummy5 = 5;
  6723. public bool HasDummy5 {
  6724. get { return result.HasDummy5; }
  6725. }
  6726. public int Dummy5 {
  6727. get { return result.Dummy5; }
  6728. set { SetDummy5(value); }
  6729. }
  6730. public Builder SetDummy5(int value) {
  6731. result.hasDummy5 = true;
  6732. result.dummy5_ = value;
  6733. return this;
  6734. }
  6735. public Builder ClearDummy5() {
  6736. result.hasDummy5 = false;
  6737. result.dummy5_ = 0;
  6738. return this;
  6739. }
  6740. // optional int32 dummy6 = 6;
  6741. public bool HasDummy6 {
  6742. get { return result.HasDummy6; }
  6743. }
  6744. public int Dummy6 {
  6745. get { return result.Dummy6; }
  6746. set { SetDummy6(value); }
  6747. }
  6748. public Builder SetDummy6(int value) {
  6749. result.hasDummy6 = true;
  6750. result.dummy6_ = value;
  6751. return this;
  6752. }
  6753. public Builder ClearDummy6() {
  6754. result.hasDummy6 = false;
  6755. result.dummy6_ = 0;
  6756. return this;
  6757. }
  6758. // optional int32 dummy7 = 7;
  6759. public bool HasDummy7 {
  6760. get { return result.HasDummy7; }
  6761. }
  6762. public int Dummy7 {
  6763. get { return result.Dummy7; }
  6764. set { SetDummy7(value); }
  6765. }
  6766. public Builder SetDummy7(int value) {
  6767. result.hasDummy7 = true;
  6768. result.dummy7_ = value;
  6769. return this;
  6770. }
  6771. public Builder ClearDummy7() {
  6772. result.hasDummy7 = false;
  6773. result.dummy7_ = 0;
  6774. return this;
  6775. }
  6776. // optional int32 dummy8 = 8;
  6777. public bool HasDummy8 {
  6778. get { return result.HasDummy8; }
  6779. }
  6780. public int Dummy8 {
  6781. get { return result.Dummy8; }
  6782. set { SetDummy8(value); }
  6783. }
  6784. public Builder SetDummy8(int value) {
  6785. result.hasDummy8 = true;
  6786. result.dummy8_ = value;
  6787. return this;
  6788. }
  6789. public Builder ClearDummy8() {
  6790. result.hasDummy8 = false;
  6791. result.dummy8_ = 0;
  6792. return this;
  6793. }
  6794. // optional int32 dummy9 = 9;
  6795. public bool HasDummy9 {
  6796. get { return result.HasDummy9; }
  6797. }
  6798. public int Dummy9 {
  6799. get { return result.Dummy9; }
  6800. set { SetDummy9(value); }
  6801. }
  6802. public Builder SetDummy9(int value) {
  6803. result.hasDummy9 = true;
  6804. result.dummy9_ = value;
  6805. return this;
  6806. }
  6807. public Builder ClearDummy9() {
  6808. result.hasDummy9 = false;
  6809. result.dummy9_ = 0;
  6810. return this;
  6811. }
  6812. // optional int32 dummy10 = 10;
  6813. public bool HasDummy10 {
  6814. get { return result.HasDummy10; }
  6815. }
  6816. public int Dummy10 {
  6817. get { return result.Dummy10; }
  6818. set { SetDummy10(value); }
  6819. }
  6820. public Builder SetDummy10(int value) {
  6821. result.hasDummy10 = true;
  6822. result.dummy10_ = value;
  6823. return this;
  6824. }
  6825. public Builder ClearDummy10() {
  6826. result.hasDummy10 = false;
  6827. result.dummy10_ = 0;
  6828. return this;
  6829. }
  6830. // optional int32 dummy11 = 11;
  6831. public bool HasDummy11 {
  6832. get { return result.HasDummy11; }
  6833. }
  6834. public int Dummy11 {
  6835. get { return result.Dummy11; }
  6836. set { SetDummy11(value); }
  6837. }
  6838. public Builder SetDummy11(int value) {
  6839. result.hasDummy11 = true;
  6840. result.dummy11_ = value;
  6841. return this;
  6842. }
  6843. public Builder ClearDummy11() {
  6844. result.hasDummy11 = false;
  6845. result.dummy11_ = 0;
  6846. return this;
  6847. }
  6848. // optional int32 dummy12 = 12;
  6849. public bool HasDummy12 {
  6850. get { return result.HasDummy12; }
  6851. }
  6852. public int Dummy12 {
  6853. get { return result.Dummy12; }
  6854. set { SetDummy12(value); }
  6855. }
  6856. public Builder SetDummy12(int value) {
  6857. result.hasDummy12 = true;
  6858. result.dummy12_ = value;
  6859. return this;
  6860. }
  6861. public Builder ClearDummy12() {
  6862. result.hasDummy12 = false;
  6863. result.dummy12_ = 0;
  6864. return this;
  6865. }
  6866. // optional int32 dummy13 = 13;
  6867. public bool HasDummy13 {
  6868. get { return result.HasDummy13; }
  6869. }
  6870. public int Dummy13 {
  6871. get { return result.Dummy13; }
  6872. set { SetDummy13(value); }
  6873. }
  6874. public Builder SetDummy13(int value) {
  6875. result.hasDummy13 = true;
  6876. result.dummy13_ = value;
  6877. return this;
  6878. }
  6879. public Builder ClearDummy13() {
  6880. result.hasDummy13 = false;
  6881. result.dummy13_ = 0;
  6882. return this;
  6883. }
  6884. // optional int32 dummy14 = 14;
  6885. public bool HasDummy14 {
  6886. get { return result.HasDummy14; }
  6887. }
  6888. public int Dummy14 {
  6889. get { return result.Dummy14; }
  6890. set { SetDummy14(value); }
  6891. }
  6892. public Builder SetDummy14(int value) {
  6893. result.hasDummy14 = true;
  6894. result.dummy14_ = value;
  6895. return this;
  6896. }
  6897. public Builder ClearDummy14() {
  6898. result.hasDummy14 = false;
  6899. result.dummy14_ = 0;
  6900. return this;
  6901. }
  6902. // optional int32 dummy15 = 15;
  6903. public bool HasDummy15 {
  6904. get { return result.HasDummy15; }
  6905. }
  6906. public int Dummy15 {
  6907. get { return result.Dummy15; }
  6908. set { SetDummy15(value); }
  6909. }
  6910. public Builder SetDummy15(int value) {
  6911. result.hasDummy15 = true;
  6912. result.dummy15_ = value;
  6913. return this;
  6914. }
  6915. public Builder ClearDummy15() {
  6916. result.hasDummy15 = false;
  6917. result.dummy15_ = 0;
  6918. return this;
  6919. }
  6920. // optional int32 dummy16 = 16;
  6921. public bool HasDummy16 {
  6922. get { return result.HasDummy16; }
  6923. }
  6924. public int Dummy16 {
  6925. get { return result.Dummy16; }
  6926. set { SetDummy16(value); }
  6927. }
  6928. public Builder SetDummy16(int value) {
  6929. result.hasDummy16 = true;
  6930. result.dummy16_ = value;
  6931. return this;
  6932. }
  6933. public Builder ClearDummy16() {
  6934. result.hasDummy16 = false;
  6935. result.dummy16_ = 0;
  6936. return this;
  6937. }
  6938. // optional int32 dummy17 = 17;
  6939. public bool HasDummy17 {
  6940. get { return result.HasDummy17; }
  6941. }
  6942. public int Dummy17 {
  6943. get { return result.Dummy17; }
  6944. set { SetDummy17(value); }
  6945. }
  6946. public Builder SetDummy17(int value) {
  6947. result.hasDummy17 = true;
  6948. result.dummy17_ = value;
  6949. return this;
  6950. }
  6951. public Builder ClearDummy17() {
  6952. result.hasDummy17 = false;
  6953. result.dummy17_ = 0;
  6954. return this;
  6955. }
  6956. // optional int32 dummy18 = 18;
  6957. public bool HasDummy18 {
  6958. get { return result.HasDummy18; }
  6959. }
  6960. public int Dummy18 {
  6961. get { return result.Dummy18; }
  6962. set { SetDummy18(value); }
  6963. }
  6964. public Builder SetDummy18(int value) {
  6965. result.hasDummy18 = true;
  6966. result.dummy18_ = value;
  6967. return this;
  6968. }
  6969. public Builder ClearDummy18() {
  6970. result.hasDummy18 = false;
  6971. result.dummy18_ = 0;
  6972. return this;
  6973. }
  6974. // optional int32 dummy19 = 19;
  6975. public bool HasDummy19 {
  6976. get { return result.HasDummy19; }
  6977. }
  6978. public int Dummy19 {
  6979. get { return result.Dummy19; }
  6980. set { SetDummy19(value); }
  6981. }
  6982. public Builder SetDummy19(int value) {
  6983. result.hasDummy19 = true;
  6984. result.dummy19_ = value;
  6985. return this;
  6986. }
  6987. public Builder ClearDummy19() {
  6988. result.hasDummy19 = false;
  6989. result.dummy19_ = 0;
  6990. return this;
  6991. }
  6992. // optional int32 dummy20 = 20;
  6993. public bool HasDummy20 {
  6994. get { return result.HasDummy20; }
  6995. }
  6996. public int Dummy20 {
  6997. get { return result.Dummy20; }
  6998. set { SetDummy20(value); }
  6999. }
  7000. public Builder SetDummy20(int value) {
  7001. result.hasDummy20 = true;
  7002. result.dummy20_ = value;
  7003. return this;
  7004. }
  7005. public Builder ClearDummy20() {
  7006. result.hasDummy20 = false;
  7007. result.dummy20_ = 0;
  7008. return this;
  7009. }
  7010. // optional int32 dummy21 = 21;
  7011. public bool HasDummy21 {
  7012. get { return result.HasDummy21; }
  7013. }
  7014. public int Dummy21 {
  7015. get { return result.Dummy21; }
  7016. set { SetDummy21(value); }
  7017. }
  7018. public Builder SetDummy21(int value) {
  7019. result.hasDummy21 = true;
  7020. result.dummy21_ = value;
  7021. return this;
  7022. }
  7023. public Builder ClearDummy21() {
  7024. result.hasDummy21 = false;
  7025. result.dummy21_ = 0;
  7026. return this;
  7027. }
  7028. // optional int32 dummy22 = 22;
  7029. public bool HasDummy22 {
  7030. get { return result.HasDummy22; }
  7031. }
  7032. public int Dummy22 {
  7033. get { return result.Dummy22; }
  7034. set { SetDummy22(value); }
  7035. }
  7036. public Builder SetDummy22(int value) {
  7037. result.hasDummy22 = true;
  7038. result.dummy22_ = value;
  7039. return this;
  7040. }
  7041. public Builder ClearDummy22() {
  7042. result.hasDummy22 = false;
  7043. result.dummy22_ = 0;
  7044. return this;
  7045. }
  7046. // optional int32 dummy23 = 23;
  7047. public bool HasDummy23 {
  7048. get { return result.HasDummy23; }
  7049. }
  7050. public int Dummy23 {
  7051. get { return result.Dummy23; }
  7052. set { SetDummy23(value); }
  7053. }
  7054. public Builder SetDummy23(int value) {
  7055. result.hasDummy23 = true;
  7056. result.dummy23_ = value;
  7057. return this;
  7058. }
  7059. public Builder ClearDummy23() {
  7060. result.hasDummy23 = false;
  7061. result.dummy23_ = 0;
  7062. return this;
  7063. }
  7064. // optional int32 dummy24 = 24;
  7065. public bool HasDummy24 {
  7066. get { return result.HasDummy24; }
  7067. }
  7068. public int Dummy24 {
  7069. get { return result.Dummy24; }
  7070. set { SetDummy24(value); }
  7071. }
  7072. public Builder SetDummy24(int value) {
  7073. result.hasDummy24 = true;
  7074. result.dummy24_ = value;
  7075. return this;
  7076. }
  7077. public Builder ClearDummy24() {
  7078. result.hasDummy24 = false;
  7079. result.dummy24_ = 0;
  7080. return this;
  7081. }
  7082. // optional int32 dummy25 = 25;
  7083. public bool HasDummy25 {
  7084. get { return result.HasDummy25; }
  7085. }
  7086. public int Dummy25 {
  7087. get { return result.Dummy25; }
  7088. set { SetDummy25(value); }
  7089. }
  7090. public Builder SetDummy25(int value) {
  7091. result.hasDummy25 = true;
  7092. result.dummy25_ = value;
  7093. return this;
  7094. }
  7095. public Builder ClearDummy25() {
  7096. result.hasDummy25 = false;
  7097. result.dummy25_ = 0;
  7098. return this;
  7099. }
  7100. // optional int32 dummy26 = 26;
  7101. public bool HasDummy26 {
  7102. get { return result.HasDummy26; }
  7103. }
  7104. public int Dummy26 {
  7105. get { return result.Dummy26; }
  7106. set { SetDummy26(value); }
  7107. }
  7108. public Builder SetDummy26(int value) {
  7109. result.hasDummy26 = true;
  7110. result.dummy26_ = value;
  7111. return this;
  7112. }
  7113. public Builder ClearDummy26() {
  7114. result.hasDummy26 = false;
  7115. result.dummy26_ = 0;
  7116. return this;
  7117. }
  7118. // optional int32 dummy27 = 27;
  7119. public bool HasDummy27 {
  7120. get { return result.HasDummy27; }
  7121. }
  7122. public int Dummy27 {
  7123. get { return result.Dummy27; }
  7124. set { SetDummy27(value); }
  7125. }
  7126. public Builder SetDummy27(int value) {
  7127. result.hasDummy27 = true;
  7128. result.dummy27_ = value;
  7129. return this;
  7130. }
  7131. public Builder ClearDummy27() {
  7132. result.hasDummy27 = false;
  7133. result.dummy27_ = 0;
  7134. return this;
  7135. }
  7136. // optional int32 dummy28 = 28;
  7137. public bool HasDummy28 {
  7138. get { return result.HasDummy28; }
  7139. }
  7140. public int Dummy28 {
  7141. get { return result.Dummy28; }
  7142. set { SetDummy28(value); }
  7143. }
  7144. public Builder SetDummy28(int value) {
  7145. result.hasDummy28 = true;
  7146. result.dummy28_ = value;
  7147. return this;
  7148. }
  7149. public Builder ClearDummy28() {
  7150. result.hasDummy28 = false;
  7151. result.dummy28_ = 0;
  7152. return this;
  7153. }
  7154. // optional int32 dummy29 = 29;
  7155. public bool HasDummy29 {
  7156. get { return result.HasDummy29; }
  7157. }
  7158. public int Dummy29 {
  7159. get { return result.Dummy29; }
  7160. set { SetDummy29(value); }
  7161. }
  7162. public Builder SetDummy29(int value) {
  7163. result.hasDummy29 = true;
  7164. result.dummy29_ = value;
  7165. return this;
  7166. }
  7167. public Builder ClearDummy29() {
  7168. result.hasDummy29 = false;
  7169. result.dummy29_ = 0;
  7170. return this;
  7171. }
  7172. // optional int32 dummy30 = 30;
  7173. public bool HasDummy30 {
  7174. get { return result.HasDummy30; }
  7175. }
  7176. public int Dummy30 {
  7177. get { return result.Dummy30; }
  7178. set { SetDummy30(value); }
  7179. }
  7180. public Builder SetDummy30(int value) {
  7181. result.hasDummy30 = true;
  7182. result.dummy30_ = value;
  7183. return this;
  7184. }
  7185. public Builder ClearDummy30() {
  7186. result.hasDummy30 = false;
  7187. result.dummy30_ = 0;
  7188. return this;
  7189. }
  7190. // optional int32 dummy31 = 31;
  7191. public bool HasDummy31 {
  7192. get { return result.HasDummy31; }
  7193. }
  7194. public int Dummy31 {
  7195. get { return result.Dummy31; }
  7196. set { SetDummy31(value); }
  7197. }
  7198. public Builder SetDummy31(int value) {
  7199. result.hasDummy31 = true;
  7200. result.dummy31_ = value;
  7201. return this;
  7202. }
  7203. public Builder ClearDummy31() {
  7204. result.hasDummy31 = false;
  7205. result.dummy31_ = 0;
  7206. return this;
  7207. }
  7208. // optional int32 dummy32 = 32;
  7209. public bool HasDummy32 {
  7210. get { return result.HasDummy32; }
  7211. }
  7212. public int Dummy32 {
  7213. get { return result.Dummy32; }
  7214. set { SetDummy32(value); }
  7215. }
  7216. public Builder SetDummy32(int value) {
  7217. result.hasDummy32 = true;
  7218. result.dummy32_ = value;
  7219. return this;
  7220. }
  7221. public Builder ClearDummy32() {
  7222. result.hasDummy32 = false;
  7223. result.dummy32_ = 0;
  7224. return this;
  7225. }
  7226. // required int32 c = 33;
  7227. public bool HasC {
  7228. get { return result.HasC; }
  7229. }
  7230. public int C {
  7231. get { return result.C; }
  7232. set { SetC(value); }
  7233. }
  7234. public Builder SetC(int value) {
  7235. result.hasC = true;
  7236. result.c_ = value;
  7237. return this;
  7238. }
  7239. public Builder ClearC() {
  7240. result.hasC = false;
  7241. result.c_ = 0;
  7242. return this;
  7243. }
  7244. }
  7245. }
  7246. public sealed partial class TestRequiredForeign : pb::GeneratedMessage<TestRequiredForeign, TestRequiredForeign.Builder> {
  7247. private static readonly TestRequiredForeign defaultInstance = new TestRequiredForeign();
  7248. public static TestRequiredForeign DefaultInstance {
  7249. get { return defaultInstance; }
  7250. }
  7251. public override TestRequiredForeign DefaultInstanceForType {
  7252. get { return defaultInstance; }
  7253. }
  7254. public static pbd::MessageDescriptor Descriptor {
  7255. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__Descriptor; }
  7256. }
  7257. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  7258. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable; }
  7259. }
  7260. // optional .protobuf_unittest.TestRequired optional_message = 1;
  7261. private bool hasOptionalMessage;
  7262. private global::Google.ProtocolBuffers.TestProtos.TestRequired optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance;
  7263. public bool HasOptionalMessage {
  7264. get { return hasOptionalMessage; }
  7265. }
  7266. public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage {
  7267. get { return optionalMessage_; }
  7268. }
  7269. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  7270. private scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> repeatedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty;
  7271. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList {
  7272. get { return repeatedMessage_; }
  7273. }
  7274. public int RepeatedMessageCount
  7275. { get { return repeatedMessage_.Count; }
  7276. }
  7277. public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) {
  7278. return repeatedMessage_ [index];
  7279. }
  7280. // optional int32 dummy = 3;
  7281. private bool hasDummy;
  7282. private int dummy_ = 0;
  7283. public bool HasDummy {
  7284. get { return hasDummy; }
  7285. }
  7286. public int Dummy {
  7287. get { return dummy_; }
  7288. }
  7289. public override bool IsInitialized {
  7290. get {
  7291. if (HasOptionalMessage) {
  7292. if (!OptionalMessage.IsInitialized) return false;
  7293. }
  7294. foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
  7295. if (!element.IsInitialized) return false;
  7296. }
  7297. return true;
  7298. }
  7299. }
  7300. public override void WriteTo(pb::CodedOutputStream output) {
  7301. if (HasOptionalMessage) {
  7302. output.WriteMessage(1, OptionalMessage);
  7303. }
  7304. foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
  7305. output.WriteMessage(2, element);
  7306. }
  7307. if (HasDummy) {
  7308. output.WriteInt32(3, Dummy);
  7309. }
  7310. UnknownFields.WriteTo(output);
  7311. }
  7312. private int memoizedSerializedSize = -1;
  7313. public override int SerializedSize {
  7314. get {
  7315. int size = memoizedSerializedSize;
  7316. if (size != -1) return size;
  7317. size = 0;
  7318. if (HasOptionalMessage) {
  7319. size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalMessage);
  7320. }
  7321. foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
  7322. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  7323. }
  7324. if (HasDummy) {
  7325. size += pb::CodedOutputStream.ComputeInt32Size(3, Dummy);
  7326. }
  7327. size += UnknownFields.SerializedSize;
  7328. memoizedSerializedSize = size;
  7329. return size;
  7330. }
  7331. }
  7332. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(pb::ByteString data) {
  7333. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7334. }
  7335. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(pb::ByteString data,
  7336. pb::ExtensionRegistry extensionRegistry) {
  7337. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7338. .BuildParsed();
  7339. }
  7340. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(byte[] data) {
  7341. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7342. }
  7343. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(byte[] data,
  7344. pb::ExtensionRegistry extensionRegistry) {
  7345. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7346. .BuildParsed();
  7347. }
  7348. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(global::System.IO.Stream input) {
  7349. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7350. }
  7351. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(
  7352. global::System.IO.Stream input,
  7353. pb::ExtensionRegistry extensionRegistry) {
  7354. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7355. .BuildParsed();
  7356. }
  7357. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(pb::CodedInputStream input) {
  7358. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7359. }
  7360. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(pb::CodedInputStream input,
  7361. pb::ExtensionRegistry extensionRegistry) {
  7362. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7363. .BuildParsed();
  7364. }
  7365. public static Builder CreateBuilder() { return new Builder(); }
  7366. public override Builder CreateBuilderForType() { return new Builder(); }
  7367. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign prototype) {
  7368. return (Builder) new Builder().MergeFrom(prototype);
  7369. }
  7370. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, Builder> {
  7371. protected override Builder ThisBuilder {
  7372. get { return this; }
  7373. }
  7374. // Construct using global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.CreateBuilder()
  7375. internal Builder() {}
  7376. global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign result = new global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign();
  7377. protected override global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign MessageBeingBuilt {
  7378. get { return result; }
  7379. }
  7380. public override Builder Clear() {
  7381. result = new global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign();
  7382. return this;
  7383. }
  7384. public override Builder Clone() {
  7385. return new Builder().MergeFrom(result);
  7386. }
  7387. public override pbd::MessageDescriptor DescriptorForType {
  7388. get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Descriptor; }
  7389. }
  7390. public override global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign DefaultInstanceForType {
  7391. get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.DefaultInstance; }
  7392. }
  7393. public override global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign BuildPartial() {
  7394. if (result.repeatedMessage_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty) {
  7395. result.repeatedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.AsReadOnly(result.repeatedMessage_);
  7396. }
  7397. global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign returnMe = result;
  7398. result = null;
  7399. return returnMe;
  7400. }
  7401. public override Builder MergeFrom(pb::IMessage other) {
  7402. if (other is global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign) {
  7403. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign) other);
  7404. } else {
  7405. base.MergeFrom(other);
  7406. return this;
  7407. }
  7408. }
  7409. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign other) {
  7410. if (other == global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.DefaultInstance) return this;
  7411. if (other.HasOptionalMessage) {
  7412. MergeOptionalMessage(other.OptionalMessage);
  7413. }
  7414. if (other.repeatedMessage_.Count != 0) {
  7415. if (result.repeatedMessage_.Count == 0) {
  7416. result.repeatedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
  7417. }
  7418. base.AddRange(other.repeatedMessage_, result.repeatedMessage_);
  7419. }
  7420. if (other.HasDummy) {
  7421. Dummy = other.Dummy;
  7422. }
  7423. this.MergeUnknownFields(other.UnknownFields);
  7424. return this;
  7425. }
  7426. public override Builder MergeFrom(pb::CodedInputStream input) {
  7427. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7428. }
  7429. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7430. pb::UnknownFieldSet.Builder unknownFields =
  7431. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7432. while (true) {
  7433. uint tag = input.ReadTag();
  7434. switch (tag) {
  7435. case 0:
  7436. this.UnknownFields = unknownFields.Build();
  7437. return this;
  7438. default: {
  7439. if (!ParseUnknownField(input, unknownFields,
  7440. extensionRegistry, tag)) {
  7441. this.UnknownFields = unknownFields.Build();
  7442. return this;
  7443. }
  7444. break;
  7445. }
  7446. case 10: {
  7447. global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder();
  7448. if (HasOptionalMessage) {
  7449. subBuilder.MergeFrom(OptionalMessage);
  7450. }
  7451. input.ReadMessage(subBuilder, extensionRegistry);
  7452. OptionalMessage = subBuilder.BuildPartial();
  7453. break;
  7454. }
  7455. case 18: {
  7456. global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder();
  7457. input.ReadMessage(subBuilder, extensionRegistry);
  7458. AddRepeatedMessage(subBuilder.BuildPartial());
  7459. break;
  7460. }
  7461. case 24: {
  7462. Dummy = input.ReadInt32();
  7463. break;
  7464. }
  7465. }
  7466. }
  7467. }
  7468. // optional .protobuf_unittest.TestRequired optional_message = 1;
  7469. public bool HasOptionalMessage {
  7470. get { return result.HasOptionalMessage; }
  7471. }
  7472. public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage {
  7473. get { return result.OptionalMessage; }
  7474. set { SetOptionalMessage(value); }
  7475. }
  7476. public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  7477. result.hasOptionalMessage = true;
  7478. result.optionalMessage_ = value;
  7479. return this;
  7480. }
  7481. public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
  7482. result.hasOptionalMessage = true;
  7483. result.optionalMessage_ = builderForValue.Build();
  7484. return this;
  7485. }
  7486. public Builder MergeOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  7487. if (result.HasOptionalMessage &&
  7488. result.optionalMessage_ != global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) {
  7489. result.optionalMessage_ =
  7490. global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(result.optionalMessage_).MergeFrom(value).BuildPartial();
  7491. } else {
  7492. result.optionalMessage_ = value;
  7493. }
  7494. result.hasOptionalMessage = true;
  7495. return this;
  7496. }
  7497. public Builder ClearOptionalMessage() {
  7498. result.hasOptionalMessage = false;
  7499. result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance;
  7500. return this;
  7501. }
  7502. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  7503. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList {
  7504. get { return pbc::Lists.AsReadOnly(result.repeatedMessage_); }
  7505. }
  7506. public int RepeatedMessageCount {
  7507. get { return result.RepeatedMessageCount; }
  7508. }
  7509. public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) {
  7510. return result.GetRepeatedMessage(index);
  7511. }
  7512. public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  7513. result.repeatedMessage_[index] = value;
  7514. return this;
  7515. }
  7516. public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
  7517. result.repeatedMessage_[index] = builderForValue.Build();
  7518. return this;
  7519. }
  7520. public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  7521. if (result.repeatedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty) {
  7522. result.repeatedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
  7523. }
  7524. result.repeatedMessage_.Add(value);
  7525. return this;
  7526. }
  7527. public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
  7528. if (result.repeatedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty) {
  7529. result.repeatedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
  7530. }
  7531. result.repeatedMessage_.Add(builderForValue.Build());
  7532. return this;
  7533. }
  7534. public Builder AddRangeRepeatedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestRequired> values) {
  7535. if (result.repeatedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty) {
  7536. result.repeatedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
  7537. }
  7538. base.AddRange(values, result.repeatedMessage_);
  7539. return this;
  7540. }
  7541. public Builder ClearRepeatedMessage() {
  7542. result.repeatedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty;
  7543. return this;
  7544. }
  7545. // optional int32 dummy = 3;
  7546. public bool HasDummy {
  7547. get { return result.HasDummy; }
  7548. }
  7549. public int Dummy {
  7550. get { return result.Dummy; }
  7551. set { SetDummy(value); }
  7552. }
  7553. public Builder SetDummy(int value) {
  7554. result.hasDummy = true;
  7555. result.dummy_ = value;
  7556. return this;
  7557. }
  7558. public Builder ClearDummy() {
  7559. result.hasDummy = false;
  7560. result.dummy_ = 0;
  7561. return this;
  7562. }
  7563. }
  7564. }
  7565. public sealed partial class TestForeignNested : pb::GeneratedMessage<TestForeignNested, TestForeignNested.Builder> {
  7566. private static readonly TestForeignNested defaultInstance = new TestForeignNested();
  7567. public static TestForeignNested DefaultInstance {
  7568. get { return defaultInstance; }
  7569. }
  7570. public override TestForeignNested DefaultInstanceForType {
  7571. get { return defaultInstance; }
  7572. }
  7573. public static pbd::MessageDescriptor Descriptor {
  7574. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__Descriptor; }
  7575. }
  7576. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  7577. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; }
  7578. }
  7579. // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
  7580. private bool hasForeignNested;
  7581. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
  7582. public bool HasForeignNested {
  7583. get { return hasForeignNested; }
  7584. }
  7585. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
  7586. get { return foreignNested_; }
  7587. }
  7588. public override bool IsInitialized {
  7589. get {
  7590. return true;
  7591. }
  7592. }
  7593. public override void WriteTo(pb::CodedOutputStream output) {
  7594. if (HasForeignNested) {
  7595. output.WriteMessage(1, ForeignNested);
  7596. }
  7597. UnknownFields.WriteTo(output);
  7598. }
  7599. private int memoizedSerializedSize = -1;
  7600. public override int SerializedSize {
  7601. get {
  7602. int size = memoizedSerializedSize;
  7603. if (size != -1) return size;
  7604. size = 0;
  7605. if (HasForeignNested) {
  7606. size += pb::CodedOutputStream.ComputeMessageSize(1, ForeignNested);
  7607. }
  7608. size += UnknownFields.SerializedSize;
  7609. memoizedSerializedSize = size;
  7610. return size;
  7611. }
  7612. }
  7613. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(pb::ByteString data) {
  7614. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7615. }
  7616. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(pb::ByteString data,
  7617. pb::ExtensionRegistry extensionRegistry) {
  7618. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7619. .BuildParsed();
  7620. }
  7621. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(byte[] data) {
  7622. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7623. }
  7624. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(byte[] data,
  7625. pb::ExtensionRegistry extensionRegistry) {
  7626. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7627. .BuildParsed();
  7628. }
  7629. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(global::System.IO.Stream input) {
  7630. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7631. }
  7632. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(
  7633. global::System.IO.Stream input,
  7634. pb::ExtensionRegistry extensionRegistry) {
  7635. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7636. .BuildParsed();
  7637. }
  7638. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(pb::CodedInputStream input) {
  7639. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7640. }
  7641. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(pb::CodedInputStream input,
  7642. pb::ExtensionRegistry extensionRegistry) {
  7643. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7644. .BuildParsed();
  7645. }
  7646. public static Builder CreateBuilder() { return new Builder(); }
  7647. public override Builder CreateBuilderForType() { return new Builder(); }
  7648. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestForeignNested prototype) {
  7649. return (Builder) new Builder().MergeFrom(prototype);
  7650. }
  7651. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, Builder> {
  7652. protected override Builder ThisBuilder {
  7653. get { return this; }
  7654. }
  7655. // Construct using global::Google.ProtocolBuffers.TestProtos.TestForeignNested.CreateBuilder()
  7656. internal Builder() {}
  7657. global::Google.ProtocolBuffers.TestProtos.TestForeignNested result = new global::Google.ProtocolBuffers.TestProtos.TestForeignNested();
  7658. protected override global::Google.ProtocolBuffers.TestProtos.TestForeignNested MessageBeingBuilt {
  7659. get { return result; }
  7660. }
  7661. public override Builder Clear() {
  7662. result = new global::Google.ProtocolBuffers.TestProtos.TestForeignNested();
  7663. return this;
  7664. }
  7665. public override Builder Clone() {
  7666. return new Builder().MergeFrom(result);
  7667. }
  7668. public override pbd::MessageDescriptor DescriptorForType {
  7669. get { return global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Descriptor; }
  7670. }
  7671. public override global::Google.ProtocolBuffers.TestProtos.TestForeignNested DefaultInstanceForType {
  7672. get { return global::Google.ProtocolBuffers.TestProtos.TestForeignNested.DefaultInstance; }
  7673. }
  7674. public override global::Google.ProtocolBuffers.TestProtos.TestForeignNested BuildPartial() {
  7675. global::Google.ProtocolBuffers.TestProtos.TestForeignNested returnMe = result;
  7676. result = null;
  7677. return returnMe;
  7678. }
  7679. public override Builder MergeFrom(pb::IMessage other) {
  7680. if (other is global::Google.ProtocolBuffers.TestProtos.TestForeignNested) {
  7681. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestForeignNested) other);
  7682. } else {
  7683. base.MergeFrom(other);
  7684. return this;
  7685. }
  7686. }
  7687. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestForeignNested other) {
  7688. if (other == global::Google.ProtocolBuffers.TestProtos.TestForeignNested.DefaultInstance) return this;
  7689. if (other.HasForeignNested) {
  7690. MergeForeignNested(other.ForeignNested);
  7691. }
  7692. this.MergeUnknownFields(other.UnknownFields);
  7693. return this;
  7694. }
  7695. public override Builder MergeFrom(pb::CodedInputStream input) {
  7696. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7697. }
  7698. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7699. pb::UnknownFieldSet.Builder unknownFields =
  7700. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7701. while (true) {
  7702. uint tag = input.ReadTag();
  7703. switch (tag) {
  7704. case 0:
  7705. this.UnknownFields = unknownFields.Build();
  7706. return this;
  7707. default: {
  7708. if (!ParseUnknownField(input, unknownFields,
  7709. extensionRegistry, tag)) {
  7710. this.UnknownFields = unknownFields.Build();
  7711. return this;
  7712. }
  7713. break;
  7714. }
  7715. case 10: {
  7716. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
  7717. if (HasForeignNested) {
  7718. subBuilder.MergeFrom(ForeignNested);
  7719. }
  7720. input.ReadMessage(subBuilder, extensionRegistry);
  7721. ForeignNested = subBuilder.BuildPartial();
  7722. break;
  7723. }
  7724. }
  7725. }
  7726. }
  7727. // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
  7728. public bool HasForeignNested {
  7729. get { return result.HasForeignNested; }
  7730. }
  7731. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
  7732. get { return result.ForeignNested; }
  7733. set { SetForeignNested(value); }
  7734. }
  7735. public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  7736. result.hasForeignNested = true;
  7737. result.foreignNested_ = value;
  7738. return this;
  7739. }
  7740. public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  7741. result.hasForeignNested = true;
  7742. result.foreignNested_ = builderForValue.Build();
  7743. return this;
  7744. }
  7745. public Builder MergeForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  7746. if (result.HasForeignNested &&
  7747. result.foreignNested_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
  7748. result.foreignNested_ =
  7749. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.foreignNested_).MergeFrom(value).BuildPartial();
  7750. } else {
  7751. result.foreignNested_ = value;
  7752. }
  7753. result.hasForeignNested = true;
  7754. return this;
  7755. }
  7756. public Builder ClearForeignNested() {
  7757. result.hasForeignNested = false;
  7758. result.foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
  7759. return this;
  7760. }
  7761. }
  7762. }
  7763. public sealed partial class TestEmptyMessage : pb::GeneratedMessage<TestEmptyMessage, TestEmptyMessage.Builder> {
  7764. private static readonly TestEmptyMessage defaultInstance = new TestEmptyMessage();
  7765. public static TestEmptyMessage DefaultInstance {
  7766. get { return defaultInstance; }
  7767. }
  7768. public override TestEmptyMessage DefaultInstanceForType {
  7769. get { return defaultInstance; }
  7770. }
  7771. public static pbd::MessageDescriptor Descriptor {
  7772. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__Descriptor; }
  7773. }
  7774. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  7775. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable; }
  7776. }
  7777. public override bool IsInitialized {
  7778. get {
  7779. return true;
  7780. }
  7781. }
  7782. public override void WriteTo(pb::CodedOutputStream output) {
  7783. UnknownFields.WriteTo(output);
  7784. }
  7785. private int memoizedSerializedSize = -1;
  7786. public override int SerializedSize {
  7787. get {
  7788. int size = memoizedSerializedSize;
  7789. if (size != -1) return size;
  7790. size = 0;
  7791. size += UnknownFields.SerializedSize;
  7792. memoizedSerializedSize = size;
  7793. return size;
  7794. }
  7795. }
  7796. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(pb::ByteString data) {
  7797. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7798. }
  7799. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(pb::ByteString data,
  7800. pb::ExtensionRegistry extensionRegistry) {
  7801. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7802. .BuildParsed();
  7803. }
  7804. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(byte[] data) {
  7805. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7806. }
  7807. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(byte[] data,
  7808. pb::ExtensionRegistry extensionRegistry) {
  7809. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7810. .BuildParsed();
  7811. }
  7812. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(global::System.IO.Stream input) {
  7813. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7814. }
  7815. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(
  7816. global::System.IO.Stream input,
  7817. pb::ExtensionRegistry extensionRegistry) {
  7818. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7819. .BuildParsed();
  7820. }
  7821. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(pb::CodedInputStream input) {
  7822. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7823. }
  7824. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(pb::CodedInputStream input,
  7825. pb::ExtensionRegistry extensionRegistry) {
  7826. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7827. .BuildParsed();
  7828. }
  7829. public static Builder CreateBuilder() { return new Builder(); }
  7830. public override Builder CreateBuilderForType() { return new Builder(); }
  7831. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage prototype) {
  7832. return (Builder) new Builder().MergeFrom(prototype);
  7833. }
  7834. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, Builder> {
  7835. protected override Builder ThisBuilder {
  7836. get { return this; }
  7837. }
  7838. // Construct using global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.CreateBuilder()
  7839. internal Builder() {}
  7840. global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage result = new global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage();
  7841. protected override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage MessageBeingBuilt {
  7842. get { return result; }
  7843. }
  7844. public override Builder Clear() {
  7845. result = new global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage();
  7846. return this;
  7847. }
  7848. public override Builder Clone() {
  7849. return new Builder().MergeFrom(result);
  7850. }
  7851. public override pbd::MessageDescriptor DescriptorForType {
  7852. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Descriptor; }
  7853. }
  7854. public override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage DefaultInstanceForType {
  7855. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.DefaultInstance; }
  7856. }
  7857. public override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage BuildPartial() {
  7858. global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage returnMe = result;
  7859. result = null;
  7860. return returnMe;
  7861. }
  7862. public override Builder MergeFrom(pb::IMessage other) {
  7863. if (other is global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage) {
  7864. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage) other);
  7865. } else {
  7866. base.MergeFrom(other);
  7867. return this;
  7868. }
  7869. }
  7870. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage other) {
  7871. if (other == global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.DefaultInstance) return this;
  7872. this.MergeUnknownFields(other.UnknownFields);
  7873. return this;
  7874. }
  7875. public override Builder MergeFrom(pb::CodedInputStream input) {
  7876. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7877. }
  7878. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7879. pb::UnknownFieldSet.Builder unknownFields =
  7880. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7881. while (true) {
  7882. uint tag = input.ReadTag();
  7883. switch (tag) {
  7884. case 0:
  7885. this.UnknownFields = unknownFields.Build();
  7886. return this;
  7887. default: {
  7888. if (!ParseUnknownField(input, unknownFields,
  7889. extensionRegistry, tag)) {
  7890. this.UnknownFields = unknownFields.Build();
  7891. return this;
  7892. }
  7893. break;
  7894. }
  7895. }
  7896. }
  7897. }
  7898. }
  7899. }
  7900. public sealed partial class TestEmptyMessageWithExtensions : pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> {
  7901. private static readonly TestEmptyMessageWithExtensions defaultInstance = new TestEmptyMessageWithExtensions();
  7902. public static TestEmptyMessageWithExtensions DefaultInstance {
  7903. get { return defaultInstance; }
  7904. }
  7905. public override TestEmptyMessageWithExtensions DefaultInstanceForType {
  7906. get { return defaultInstance; }
  7907. }
  7908. public static pbd::MessageDescriptor Descriptor {
  7909. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor; }
  7910. }
  7911. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  7912. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable; }
  7913. }
  7914. public override bool IsInitialized {
  7915. get {
  7916. if (!ExtensionsAreInitialized) return false;
  7917. return true;
  7918. }
  7919. }
  7920. public override void WriteTo(pb::CodedOutputStream output) {
  7921. pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  7922. extensionWriter.WriteUntil(536870912, output);
  7923. UnknownFields.WriteTo(output);
  7924. }
  7925. private int memoizedSerializedSize = -1;
  7926. public override int SerializedSize {
  7927. get {
  7928. int size = memoizedSerializedSize;
  7929. if (size != -1) return size;
  7930. size = 0;
  7931. size += ExtensionsSerializedSize;
  7932. size += UnknownFields.SerializedSize;
  7933. memoizedSerializedSize = size;
  7934. return size;
  7935. }
  7936. }
  7937. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data) {
  7938. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7939. }
  7940. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data,
  7941. pb::ExtensionRegistry extensionRegistry) {
  7942. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7943. .BuildParsed();
  7944. }
  7945. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(byte[] data) {
  7946. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7947. }
  7948. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(byte[] data,
  7949. pb::ExtensionRegistry extensionRegistry) {
  7950. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7951. .BuildParsed();
  7952. }
  7953. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input) {
  7954. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7955. }
  7956. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(
  7957. global::System.IO.Stream input,
  7958. pb::ExtensionRegistry extensionRegistry) {
  7959. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7960. .BuildParsed();
  7961. }
  7962. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input) {
  7963. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7964. }
  7965. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input,
  7966. pb::ExtensionRegistry extensionRegistry) {
  7967. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7968. .BuildParsed();
  7969. }
  7970. public static Builder CreateBuilder() { return new Builder(); }
  7971. public override Builder CreateBuilderForType() { return new Builder(); }
  7972. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions prototype) {
  7973. return (Builder) new Builder().MergeFrom(prototype);
  7974. }
  7975. public sealed partial class Builder : pb::ExtendableBuilder<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder> {
  7976. protected override Builder ThisBuilder {
  7977. get { return this; }
  7978. }
  7979. // Construct using global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.CreateBuilder()
  7980. internal Builder() {}
  7981. global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions result = new global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions();
  7982. protected override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions MessageBeingBuilt {
  7983. get { return result; }
  7984. }
  7985. public override Builder Clear() {
  7986. result = new global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions();
  7987. return this;
  7988. }
  7989. public override Builder Clone() {
  7990. return new Builder().MergeFrom(result);
  7991. }
  7992. public override pbd::MessageDescriptor DescriptorForType {
  7993. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Descriptor; }
  7994. }
  7995. public override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions DefaultInstanceForType {
  7996. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.DefaultInstance; }
  7997. }
  7998. public override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions BuildPartial() {
  7999. global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions returnMe = result;
  8000. result = null;
  8001. return returnMe;
  8002. }
  8003. public override Builder MergeFrom(pb::IMessage other) {
  8004. if (other is global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions) {
  8005. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions) other);
  8006. } else {
  8007. base.MergeFrom(other);
  8008. return this;
  8009. }
  8010. }
  8011. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions other) {
  8012. if (other == global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.DefaultInstance) return this;
  8013. this.MergeUnknownFields(other.UnknownFields);
  8014. return this;
  8015. }
  8016. public override Builder MergeFrom(pb::CodedInputStream input) {
  8017. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8018. }
  8019. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8020. pb::UnknownFieldSet.Builder unknownFields =
  8021. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8022. while (true) {
  8023. uint tag = input.ReadTag();
  8024. switch (tag) {
  8025. case 0:
  8026. this.UnknownFields = unknownFields.Build();
  8027. return this;
  8028. default: {
  8029. if (!ParseUnknownField(input, unknownFields,
  8030. extensionRegistry, tag)) {
  8031. this.UnknownFields = unknownFields.Build();
  8032. return this;
  8033. }
  8034. break;
  8035. }
  8036. }
  8037. }
  8038. }
  8039. }
  8040. }
  8041. public sealed partial class TestReallyLargeTagNumber : pb::GeneratedMessage<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> {
  8042. private static readonly TestReallyLargeTagNumber defaultInstance = new TestReallyLargeTagNumber();
  8043. public static TestReallyLargeTagNumber DefaultInstance {
  8044. get { return defaultInstance; }
  8045. }
  8046. public override TestReallyLargeTagNumber DefaultInstanceForType {
  8047. get { return defaultInstance; }
  8048. }
  8049. public static pbd::MessageDescriptor Descriptor {
  8050. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor; }
  8051. }
  8052. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8053. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; }
  8054. }
  8055. // optional int32 a = 1;
  8056. private bool hasA;
  8057. private int a_ = 0;
  8058. public bool HasA {
  8059. get { return hasA; }
  8060. }
  8061. public int A {
  8062. get { return a_; }
  8063. }
  8064. // optional int32 bb = 268435455;
  8065. private bool hasBb;
  8066. private int bb_ = 0;
  8067. public bool HasBb {
  8068. get { return hasBb; }
  8069. }
  8070. public int Bb {
  8071. get { return bb_; }
  8072. }
  8073. public override bool IsInitialized {
  8074. get {
  8075. return true;
  8076. }
  8077. }
  8078. public override void WriteTo(pb::CodedOutputStream output) {
  8079. if (HasA) {
  8080. output.WriteInt32(1, A);
  8081. }
  8082. if (HasBb) {
  8083. output.WriteInt32(268435455, Bb);
  8084. }
  8085. UnknownFields.WriteTo(output);
  8086. }
  8087. private int memoizedSerializedSize = -1;
  8088. public override int SerializedSize {
  8089. get {
  8090. int size = memoizedSerializedSize;
  8091. if (size != -1) return size;
  8092. size = 0;
  8093. if (HasA) {
  8094. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  8095. }
  8096. if (HasBb) {
  8097. size += pb::CodedOutputStream.ComputeInt32Size(268435455, Bb);
  8098. }
  8099. size += UnknownFields.SerializedSize;
  8100. memoizedSerializedSize = size;
  8101. return size;
  8102. }
  8103. }
  8104. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(pb::ByteString data) {
  8105. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8106. }
  8107. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(pb::ByteString data,
  8108. pb::ExtensionRegistry extensionRegistry) {
  8109. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8110. .BuildParsed();
  8111. }
  8112. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(byte[] data) {
  8113. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8114. }
  8115. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(byte[] data,
  8116. pb::ExtensionRegistry extensionRegistry) {
  8117. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8118. .BuildParsed();
  8119. }
  8120. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input) {
  8121. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8122. }
  8123. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(
  8124. global::System.IO.Stream input,
  8125. pb::ExtensionRegistry extensionRegistry) {
  8126. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8127. .BuildParsed();
  8128. }
  8129. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input) {
  8130. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8131. }
  8132. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input,
  8133. pb::ExtensionRegistry extensionRegistry) {
  8134. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8135. .BuildParsed();
  8136. }
  8137. public static Builder CreateBuilder() { return new Builder(); }
  8138. public override Builder CreateBuilderForType() { return new Builder(); }
  8139. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber prototype) {
  8140. return (Builder) new Builder().MergeFrom(prototype);
  8141. }
  8142. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, Builder> {
  8143. protected override Builder ThisBuilder {
  8144. get { return this; }
  8145. }
  8146. // Construct using global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.CreateBuilder()
  8147. internal Builder() {}
  8148. global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber result = new global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber();
  8149. protected override global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber MessageBeingBuilt {
  8150. get { return result; }
  8151. }
  8152. public override Builder Clear() {
  8153. result = new global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber();
  8154. return this;
  8155. }
  8156. public override Builder Clone() {
  8157. return new Builder().MergeFrom(result);
  8158. }
  8159. public override pbd::MessageDescriptor DescriptorForType {
  8160. get { return global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Descriptor; }
  8161. }
  8162. public override global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber DefaultInstanceForType {
  8163. get { return global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.DefaultInstance; }
  8164. }
  8165. public override global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber BuildPartial() {
  8166. global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber returnMe = result;
  8167. result = null;
  8168. return returnMe;
  8169. }
  8170. public override Builder MergeFrom(pb::IMessage other) {
  8171. if (other is global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber) {
  8172. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber) other);
  8173. } else {
  8174. base.MergeFrom(other);
  8175. return this;
  8176. }
  8177. }
  8178. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber other) {
  8179. if (other == global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.DefaultInstance) return this;
  8180. if (other.HasA) {
  8181. A = other.A;
  8182. }
  8183. if (other.HasBb) {
  8184. Bb = other.Bb;
  8185. }
  8186. this.MergeUnknownFields(other.UnknownFields);
  8187. return this;
  8188. }
  8189. public override Builder MergeFrom(pb::CodedInputStream input) {
  8190. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8191. }
  8192. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8193. pb::UnknownFieldSet.Builder unknownFields =
  8194. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8195. while (true) {
  8196. uint tag = input.ReadTag();
  8197. switch (tag) {
  8198. case 0:
  8199. this.UnknownFields = unknownFields.Build();
  8200. return this;
  8201. default: {
  8202. if (!ParseUnknownField(input, unknownFields,
  8203. extensionRegistry, tag)) {
  8204. this.UnknownFields = unknownFields.Build();
  8205. return this;
  8206. }
  8207. break;
  8208. }
  8209. case 8: {
  8210. A = input.ReadInt32();
  8211. break;
  8212. }
  8213. case 2147483640: {
  8214. Bb = input.ReadInt32();
  8215. break;
  8216. }
  8217. }
  8218. }
  8219. }
  8220. // optional int32 a = 1;
  8221. public bool HasA {
  8222. get { return result.HasA; }
  8223. }
  8224. public int A {
  8225. get { return result.A; }
  8226. set { SetA(value); }
  8227. }
  8228. public Builder SetA(int value) {
  8229. result.hasA = true;
  8230. result.a_ = value;
  8231. return this;
  8232. }
  8233. public Builder ClearA() {
  8234. result.hasA = false;
  8235. result.a_ = 0;
  8236. return this;
  8237. }
  8238. // optional int32 bb = 268435455;
  8239. public bool HasBb {
  8240. get { return result.HasBb; }
  8241. }
  8242. public int Bb {
  8243. get { return result.Bb; }
  8244. set { SetBb(value); }
  8245. }
  8246. public Builder SetBb(int value) {
  8247. result.hasBb = true;
  8248. result.bb_ = value;
  8249. return this;
  8250. }
  8251. public Builder ClearBb() {
  8252. result.hasBb = false;
  8253. result.bb_ = 0;
  8254. return this;
  8255. }
  8256. }
  8257. }
  8258. public sealed partial class TestRecursiveMessage : pb::GeneratedMessage<TestRecursiveMessage, TestRecursiveMessage.Builder> {
  8259. private static readonly TestRecursiveMessage defaultInstance = new TestRecursiveMessage();
  8260. public static TestRecursiveMessage DefaultInstance {
  8261. get { return defaultInstance; }
  8262. }
  8263. public override TestRecursiveMessage DefaultInstanceForType {
  8264. get { return defaultInstance; }
  8265. }
  8266. public static pbd::MessageDescriptor Descriptor {
  8267. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor; }
  8268. }
  8269. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8270. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; }
  8271. }
  8272. // optional .protobuf_unittest.TestRecursiveMessage a = 1;
  8273. private bool hasA;
  8274. private global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance;
  8275. public bool HasA {
  8276. get { return hasA; }
  8277. }
  8278. public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A {
  8279. get { return a_; }
  8280. }
  8281. // optional int32 i = 2;
  8282. private bool hasI;
  8283. private int i_ = 0;
  8284. public bool HasI {
  8285. get { return hasI; }
  8286. }
  8287. public int I {
  8288. get { return i_; }
  8289. }
  8290. public override bool IsInitialized {
  8291. get {
  8292. return true;
  8293. }
  8294. }
  8295. public override void WriteTo(pb::CodedOutputStream output) {
  8296. if (HasA) {
  8297. output.WriteMessage(1, A);
  8298. }
  8299. if (HasI) {
  8300. output.WriteInt32(2, I);
  8301. }
  8302. UnknownFields.WriteTo(output);
  8303. }
  8304. private int memoizedSerializedSize = -1;
  8305. public override int SerializedSize {
  8306. get {
  8307. int size = memoizedSerializedSize;
  8308. if (size != -1) return size;
  8309. size = 0;
  8310. if (HasA) {
  8311. size += pb::CodedOutputStream.ComputeMessageSize(1, A);
  8312. }
  8313. if (HasI) {
  8314. size += pb::CodedOutputStream.ComputeInt32Size(2, I);
  8315. }
  8316. size += UnknownFields.SerializedSize;
  8317. memoizedSerializedSize = size;
  8318. return size;
  8319. }
  8320. }
  8321. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(pb::ByteString data) {
  8322. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8323. }
  8324. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(pb::ByteString data,
  8325. pb::ExtensionRegistry extensionRegistry) {
  8326. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8327. .BuildParsed();
  8328. }
  8329. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(byte[] data) {
  8330. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8331. }
  8332. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(byte[] data,
  8333. pb::ExtensionRegistry extensionRegistry) {
  8334. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8335. .BuildParsed();
  8336. }
  8337. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(global::System.IO.Stream input) {
  8338. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8339. }
  8340. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(
  8341. global::System.IO.Stream input,
  8342. pb::ExtensionRegistry extensionRegistry) {
  8343. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8344. .BuildParsed();
  8345. }
  8346. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(pb::CodedInputStream input) {
  8347. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8348. }
  8349. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(pb::CodedInputStream input,
  8350. pb::ExtensionRegistry extensionRegistry) {
  8351. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8352. .BuildParsed();
  8353. }
  8354. public static Builder CreateBuilder() { return new Builder(); }
  8355. public override Builder CreateBuilderForType() { return new Builder(); }
  8356. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage prototype) {
  8357. return (Builder) new Builder().MergeFrom(prototype);
  8358. }
  8359. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, Builder> {
  8360. protected override Builder ThisBuilder {
  8361. get { return this; }
  8362. }
  8363. // Construct using global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder()
  8364. internal Builder() {}
  8365. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage result = new global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage();
  8366. protected override global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage MessageBeingBuilt {
  8367. get { return result; }
  8368. }
  8369. public override Builder Clear() {
  8370. result = new global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage();
  8371. return this;
  8372. }
  8373. public override Builder Clone() {
  8374. return new Builder().MergeFrom(result);
  8375. }
  8376. public override pbd::MessageDescriptor DescriptorForType {
  8377. get { return global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Descriptor; }
  8378. }
  8379. public override global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage DefaultInstanceForType {
  8380. get { return global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance; }
  8381. }
  8382. public override global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage BuildPartial() {
  8383. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage returnMe = result;
  8384. result = null;
  8385. return returnMe;
  8386. }
  8387. public override Builder MergeFrom(pb::IMessage other) {
  8388. if (other is global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage) {
  8389. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage) other);
  8390. } else {
  8391. base.MergeFrom(other);
  8392. return this;
  8393. }
  8394. }
  8395. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage other) {
  8396. if (other == global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) return this;
  8397. if (other.HasA) {
  8398. MergeA(other.A);
  8399. }
  8400. if (other.HasI) {
  8401. I = other.I;
  8402. }
  8403. this.MergeUnknownFields(other.UnknownFields);
  8404. return this;
  8405. }
  8406. public override Builder MergeFrom(pb::CodedInputStream input) {
  8407. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8408. }
  8409. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8410. pb::UnknownFieldSet.Builder unknownFields =
  8411. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8412. while (true) {
  8413. uint tag = input.ReadTag();
  8414. switch (tag) {
  8415. case 0:
  8416. this.UnknownFields = unknownFields.Build();
  8417. return this;
  8418. default: {
  8419. if (!ParseUnknownField(input, unknownFields,
  8420. extensionRegistry, tag)) {
  8421. this.UnknownFields = unknownFields.Build();
  8422. return this;
  8423. }
  8424. break;
  8425. }
  8426. case 10: {
  8427. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder();
  8428. if (HasA) {
  8429. subBuilder.MergeFrom(A);
  8430. }
  8431. input.ReadMessage(subBuilder, extensionRegistry);
  8432. A = subBuilder.BuildPartial();
  8433. break;
  8434. }
  8435. case 16: {
  8436. I = input.ReadInt32();
  8437. break;
  8438. }
  8439. }
  8440. }
  8441. }
  8442. // optional .protobuf_unittest.TestRecursiveMessage a = 1;
  8443. public bool HasA {
  8444. get { return result.HasA; }
  8445. }
  8446. public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A {
  8447. get { return result.A; }
  8448. set { SetA(value); }
  8449. }
  8450. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) {
  8451. result.hasA = true;
  8452. result.a_ = value;
  8453. return this;
  8454. }
  8455. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder builderForValue) {
  8456. result.hasA = true;
  8457. result.a_ = builderForValue.Build();
  8458. return this;
  8459. }
  8460. public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) {
  8461. if (result.HasA &&
  8462. result.a_ != global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) {
  8463. result.a_ =
  8464. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
  8465. } else {
  8466. result.a_ = value;
  8467. }
  8468. result.hasA = true;
  8469. return this;
  8470. }
  8471. public Builder ClearA() {
  8472. result.hasA = false;
  8473. result.a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance;
  8474. return this;
  8475. }
  8476. // optional int32 i = 2;
  8477. public bool HasI {
  8478. get { return result.HasI; }
  8479. }
  8480. public int I {
  8481. get { return result.I; }
  8482. set { SetI(value); }
  8483. }
  8484. public Builder SetI(int value) {
  8485. result.hasI = true;
  8486. result.i_ = value;
  8487. return this;
  8488. }
  8489. public Builder ClearI() {
  8490. result.hasI = false;
  8491. result.i_ = 0;
  8492. return this;
  8493. }
  8494. }
  8495. }
  8496. public sealed partial class TestMutualRecursionA : pb::GeneratedMessage<TestMutualRecursionA, TestMutualRecursionA.Builder> {
  8497. private static readonly TestMutualRecursionA defaultInstance = new TestMutualRecursionA();
  8498. public static TestMutualRecursionA DefaultInstance {
  8499. get { return defaultInstance; }
  8500. }
  8501. public override TestMutualRecursionA DefaultInstanceForType {
  8502. get { return defaultInstance; }
  8503. }
  8504. public static pbd::MessageDescriptor Descriptor {
  8505. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor; }
  8506. }
  8507. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8508. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; }
  8509. }
  8510. // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
  8511. private bool hasBb;
  8512. private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance;
  8513. public bool HasBb {
  8514. get { return hasBb; }
  8515. }
  8516. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb {
  8517. get { return bb_; }
  8518. }
  8519. public override bool IsInitialized {
  8520. get {
  8521. return true;
  8522. }
  8523. }
  8524. public override void WriteTo(pb::CodedOutputStream output) {
  8525. if (HasBb) {
  8526. output.WriteMessage(1, Bb);
  8527. }
  8528. UnknownFields.WriteTo(output);
  8529. }
  8530. private int memoizedSerializedSize = -1;
  8531. public override int SerializedSize {
  8532. get {
  8533. int size = memoizedSerializedSize;
  8534. if (size != -1) return size;
  8535. size = 0;
  8536. if (HasBb) {
  8537. size += pb::CodedOutputStream.ComputeMessageSize(1, Bb);
  8538. }
  8539. size += UnknownFields.SerializedSize;
  8540. memoizedSerializedSize = size;
  8541. return size;
  8542. }
  8543. }
  8544. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(pb::ByteString data) {
  8545. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8546. }
  8547. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(pb::ByteString data,
  8548. pb::ExtensionRegistry extensionRegistry) {
  8549. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8550. .BuildParsed();
  8551. }
  8552. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(byte[] data) {
  8553. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8554. }
  8555. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(byte[] data,
  8556. pb::ExtensionRegistry extensionRegistry) {
  8557. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8558. .BuildParsed();
  8559. }
  8560. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(global::System.IO.Stream input) {
  8561. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8562. }
  8563. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(
  8564. global::System.IO.Stream input,
  8565. pb::ExtensionRegistry extensionRegistry) {
  8566. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8567. .BuildParsed();
  8568. }
  8569. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(pb::CodedInputStream input) {
  8570. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8571. }
  8572. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(pb::CodedInputStream input,
  8573. pb::ExtensionRegistry extensionRegistry) {
  8574. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8575. .BuildParsed();
  8576. }
  8577. public static Builder CreateBuilder() { return new Builder(); }
  8578. public override Builder CreateBuilderForType() { return new Builder(); }
  8579. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA prototype) {
  8580. return (Builder) new Builder().MergeFrom(prototype);
  8581. }
  8582. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, Builder> {
  8583. protected override Builder ThisBuilder {
  8584. get { return this; }
  8585. }
  8586. // Construct using global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder()
  8587. internal Builder() {}
  8588. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA result = new global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA();
  8589. protected override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA MessageBeingBuilt {
  8590. get { return result; }
  8591. }
  8592. public override Builder Clear() {
  8593. result = new global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA();
  8594. return this;
  8595. }
  8596. public override Builder Clone() {
  8597. return new Builder().MergeFrom(result);
  8598. }
  8599. public override pbd::MessageDescriptor DescriptorForType {
  8600. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Descriptor; }
  8601. }
  8602. public override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA DefaultInstanceForType {
  8603. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance; }
  8604. }
  8605. public override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA BuildPartial() {
  8606. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA returnMe = result;
  8607. result = null;
  8608. return returnMe;
  8609. }
  8610. public override Builder MergeFrom(pb::IMessage other) {
  8611. if (other is global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA) {
  8612. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA) other);
  8613. } else {
  8614. base.MergeFrom(other);
  8615. return this;
  8616. }
  8617. }
  8618. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA other) {
  8619. if (other == global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) return this;
  8620. if (other.HasBb) {
  8621. MergeBb(other.Bb);
  8622. }
  8623. this.MergeUnknownFields(other.UnknownFields);
  8624. return this;
  8625. }
  8626. public override Builder MergeFrom(pb::CodedInputStream input) {
  8627. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8628. }
  8629. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8630. pb::UnknownFieldSet.Builder unknownFields =
  8631. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8632. while (true) {
  8633. uint tag = input.ReadTag();
  8634. switch (tag) {
  8635. case 0:
  8636. this.UnknownFields = unknownFields.Build();
  8637. return this;
  8638. default: {
  8639. if (!ParseUnknownField(input, unknownFields,
  8640. extensionRegistry, tag)) {
  8641. this.UnknownFields = unknownFields.Build();
  8642. return this;
  8643. }
  8644. break;
  8645. }
  8646. case 10: {
  8647. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder();
  8648. if (HasBb) {
  8649. subBuilder.MergeFrom(Bb);
  8650. }
  8651. input.ReadMessage(subBuilder, extensionRegistry);
  8652. Bb = subBuilder.BuildPartial();
  8653. break;
  8654. }
  8655. }
  8656. }
  8657. }
  8658. // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
  8659. public bool HasBb {
  8660. get { return result.HasBb; }
  8661. }
  8662. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb {
  8663. get { return result.Bb; }
  8664. set { SetBb(value); }
  8665. }
  8666. public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) {
  8667. result.hasBb = true;
  8668. result.bb_ = value;
  8669. return this;
  8670. }
  8671. public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder builderForValue) {
  8672. result.hasBb = true;
  8673. result.bb_ = builderForValue.Build();
  8674. return this;
  8675. }
  8676. public Builder MergeBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) {
  8677. if (result.HasBb &&
  8678. result.bb_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) {
  8679. result.bb_ =
  8680. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder(result.bb_).MergeFrom(value).BuildPartial();
  8681. } else {
  8682. result.bb_ = value;
  8683. }
  8684. result.hasBb = true;
  8685. return this;
  8686. }
  8687. public Builder ClearBb() {
  8688. result.hasBb = false;
  8689. result.bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance;
  8690. return this;
  8691. }
  8692. }
  8693. }
  8694. public sealed partial class TestMutualRecursionB : pb::GeneratedMessage<TestMutualRecursionB, TestMutualRecursionB.Builder> {
  8695. private static readonly TestMutualRecursionB defaultInstance = new TestMutualRecursionB();
  8696. public static TestMutualRecursionB DefaultInstance {
  8697. get { return defaultInstance; }
  8698. }
  8699. public override TestMutualRecursionB DefaultInstanceForType {
  8700. get { return defaultInstance; }
  8701. }
  8702. public static pbd::MessageDescriptor Descriptor {
  8703. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor; }
  8704. }
  8705. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8706. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; }
  8707. }
  8708. // optional .protobuf_unittest.TestMutualRecursionA a = 1;
  8709. private bool hasA;
  8710. private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance;
  8711. public bool HasA {
  8712. get { return hasA; }
  8713. }
  8714. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A {
  8715. get { return a_; }
  8716. }
  8717. // optional int32 optional_int32 = 2;
  8718. private bool hasOptionalInt32;
  8719. private int optionalInt32_ = 0;
  8720. public bool HasOptionalInt32 {
  8721. get { return hasOptionalInt32; }
  8722. }
  8723. public int OptionalInt32 {
  8724. get { return optionalInt32_; }
  8725. }
  8726. public override bool IsInitialized {
  8727. get {
  8728. return true;
  8729. }
  8730. }
  8731. public override void WriteTo(pb::CodedOutputStream output) {
  8732. if (HasA) {
  8733. output.WriteMessage(1, A);
  8734. }
  8735. if (HasOptionalInt32) {
  8736. output.WriteInt32(2, OptionalInt32);
  8737. }
  8738. UnknownFields.WriteTo(output);
  8739. }
  8740. private int memoizedSerializedSize = -1;
  8741. public override int SerializedSize {
  8742. get {
  8743. int size = memoizedSerializedSize;
  8744. if (size != -1) return size;
  8745. size = 0;
  8746. if (HasA) {
  8747. size += pb::CodedOutputStream.ComputeMessageSize(1, A);
  8748. }
  8749. if (HasOptionalInt32) {
  8750. size += pb::CodedOutputStream.ComputeInt32Size(2, OptionalInt32);
  8751. }
  8752. size += UnknownFields.SerializedSize;
  8753. memoizedSerializedSize = size;
  8754. return size;
  8755. }
  8756. }
  8757. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(pb::ByteString data) {
  8758. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8759. }
  8760. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(pb::ByteString data,
  8761. pb::ExtensionRegistry extensionRegistry) {
  8762. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8763. .BuildParsed();
  8764. }
  8765. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(byte[] data) {
  8766. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8767. }
  8768. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(byte[] data,
  8769. pb::ExtensionRegistry extensionRegistry) {
  8770. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8771. .BuildParsed();
  8772. }
  8773. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(global::System.IO.Stream input) {
  8774. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8775. }
  8776. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(
  8777. global::System.IO.Stream input,
  8778. pb::ExtensionRegistry extensionRegistry) {
  8779. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8780. .BuildParsed();
  8781. }
  8782. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(pb::CodedInputStream input) {
  8783. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8784. }
  8785. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(pb::CodedInputStream input,
  8786. pb::ExtensionRegistry extensionRegistry) {
  8787. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8788. .BuildParsed();
  8789. }
  8790. public static Builder CreateBuilder() { return new Builder(); }
  8791. public override Builder CreateBuilderForType() { return new Builder(); }
  8792. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB prototype) {
  8793. return (Builder) new Builder().MergeFrom(prototype);
  8794. }
  8795. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, Builder> {
  8796. protected override Builder ThisBuilder {
  8797. get { return this; }
  8798. }
  8799. // Construct using global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder()
  8800. internal Builder() {}
  8801. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB result = new global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB();
  8802. protected override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB MessageBeingBuilt {
  8803. get { return result; }
  8804. }
  8805. public override Builder Clear() {
  8806. result = new global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB();
  8807. return this;
  8808. }
  8809. public override Builder Clone() {
  8810. return new Builder().MergeFrom(result);
  8811. }
  8812. public override pbd::MessageDescriptor DescriptorForType {
  8813. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Descriptor; }
  8814. }
  8815. public override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB DefaultInstanceForType {
  8816. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance; }
  8817. }
  8818. public override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB BuildPartial() {
  8819. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB returnMe = result;
  8820. result = null;
  8821. return returnMe;
  8822. }
  8823. public override Builder MergeFrom(pb::IMessage other) {
  8824. if (other is global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB) {
  8825. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB) other);
  8826. } else {
  8827. base.MergeFrom(other);
  8828. return this;
  8829. }
  8830. }
  8831. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB other) {
  8832. if (other == global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) return this;
  8833. if (other.HasA) {
  8834. MergeA(other.A);
  8835. }
  8836. if (other.HasOptionalInt32) {
  8837. OptionalInt32 = other.OptionalInt32;
  8838. }
  8839. this.MergeUnknownFields(other.UnknownFields);
  8840. return this;
  8841. }
  8842. public override Builder MergeFrom(pb::CodedInputStream input) {
  8843. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8844. }
  8845. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8846. pb::UnknownFieldSet.Builder unknownFields =
  8847. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8848. while (true) {
  8849. uint tag = input.ReadTag();
  8850. switch (tag) {
  8851. case 0:
  8852. this.UnknownFields = unknownFields.Build();
  8853. return this;
  8854. default: {
  8855. if (!ParseUnknownField(input, unknownFields,
  8856. extensionRegistry, tag)) {
  8857. this.UnknownFields = unknownFields.Build();
  8858. return this;
  8859. }
  8860. break;
  8861. }
  8862. case 10: {
  8863. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder();
  8864. if (HasA) {
  8865. subBuilder.MergeFrom(A);
  8866. }
  8867. input.ReadMessage(subBuilder, extensionRegistry);
  8868. A = subBuilder.BuildPartial();
  8869. break;
  8870. }
  8871. case 16: {
  8872. OptionalInt32 = input.ReadInt32();
  8873. break;
  8874. }
  8875. }
  8876. }
  8877. }
  8878. // optional .protobuf_unittest.TestMutualRecursionA a = 1;
  8879. public bool HasA {
  8880. get { return result.HasA; }
  8881. }
  8882. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A {
  8883. get { return result.A; }
  8884. set { SetA(value); }
  8885. }
  8886. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) {
  8887. result.hasA = true;
  8888. result.a_ = value;
  8889. return this;
  8890. }
  8891. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder builderForValue) {
  8892. result.hasA = true;
  8893. result.a_ = builderForValue.Build();
  8894. return this;
  8895. }
  8896. public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) {
  8897. if (result.HasA &&
  8898. result.a_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) {
  8899. result.a_ =
  8900. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
  8901. } else {
  8902. result.a_ = value;
  8903. }
  8904. result.hasA = true;
  8905. return this;
  8906. }
  8907. public Builder ClearA() {
  8908. result.hasA = false;
  8909. result.a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance;
  8910. return this;
  8911. }
  8912. // optional int32 optional_int32 = 2;
  8913. public bool HasOptionalInt32 {
  8914. get { return result.HasOptionalInt32; }
  8915. }
  8916. public int OptionalInt32 {
  8917. get { return result.OptionalInt32; }
  8918. set { SetOptionalInt32(value); }
  8919. }
  8920. public Builder SetOptionalInt32(int value) {
  8921. result.hasOptionalInt32 = true;
  8922. result.optionalInt32_ = value;
  8923. return this;
  8924. }
  8925. public Builder ClearOptionalInt32() {
  8926. result.hasOptionalInt32 = false;
  8927. result.optionalInt32_ = 0;
  8928. return this;
  8929. }
  8930. }
  8931. }
  8932. public sealed partial class TestDupFieldNumber : pb::GeneratedMessage<TestDupFieldNumber, TestDupFieldNumber.Builder> {
  8933. private static readonly TestDupFieldNumber defaultInstance = new TestDupFieldNumber();
  8934. public static TestDupFieldNumber DefaultInstance {
  8935. get { return defaultInstance; }
  8936. }
  8937. public override TestDupFieldNumber DefaultInstanceForType {
  8938. get { return defaultInstance; }
  8939. }
  8940. public static pbd::MessageDescriptor Descriptor {
  8941. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor; }
  8942. }
  8943. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8944. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable; }
  8945. }
  8946. #region Nested types
  8947. public static class Types {
  8948. public sealed partial class Foo : pb::GeneratedMessage<Foo, Foo.Builder> {
  8949. private static readonly Foo defaultInstance = new Foo();
  8950. public static Foo DefaultInstance {
  8951. get { return defaultInstance; }
  8952. }
  8953. public override Foo DefaultInstanceForType {
  8954. get { return defaultInstance; }
  8955. }
  8956. public static pbd::MessageDescriptor Descriptor {
  8957. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor; }
  8958. }
  8959. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  8960. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable; }
  8961. }
  8962. // optional int32 a = 1;
  8963. private bool hasA;
  8964. private int a_ = 0;
  8965. public bool HasA {
  8966. get { return hasA; }
  8967. }
  8968. public int A {
  8969. get { return a_; }
  8970. }
  8971. public override bool IsInitialized {
  8972. get {
  8973. return true;
  8974. }
  8975. }
  8976. public override void WriteTo(pb::CodedOutputStream output) {
  8977. if (HasA) {
  8978. output.WriteInt32(1, A);
  8979. }
  8980. UnknownFields.WriteTo(output);
  8981. }
  8982. private int memoizedSerializedSize = -1;
  8983. public override int SerializedSize {
  8984. get {
  8985. int size = memoizedSerializedSize;
  8986. if (size != -1) return size;
  8987. size = 0;
  8988. if (HasA) {
  8989. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  8990. }
  8991. size += UnknownFields.SerializedSize;
  8992. memoizedSerializedSize = size;
  8993. return size;
  8994. }
  8995. }
  8996. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(pb::ByteString data) {
  8997. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8998. }
  8999. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(pb::ByteString data,
  9000. pb::ExtensionRegistry extensionRegistry) {
  9001. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9002. .BuildParsed();
  9003. }
  9004. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(byte[] data) {
  9005. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9006. }
  9007. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(byte[] data,
  9008. pb::ExtensionRegistry extensionRegistry) {
  9009. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9010. .BuildParsed();
  9011. }
  9012. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(global::System.IO.Stream input) {
  9013. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9014. }
  9015. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(
  9016. global::System.IO.Stream input,
  9017. pb::ExtensionRegistry extensionRegistry) {
  9018. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9019. .BuildParsed();
  9020. }
  9021. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(pb::CodedInputStream input) {
  9022. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9023. }
  9024. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(pb::CodedInputStream input,
  9025. pb::ExtensionRegistry extensionRegistry) {
  9026. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9027. .BuildParsed();
  9028. }
  9029. public static Builder CreateBuilder() { return new Builder(); }
  9030. public override Builder CreateBuilderForType() { return new Builder(); }
  9031. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo prototype) {
  9032. return (Builder) new Builder().MergeFrom(prototype);
  9033. }
  9034. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo, Builder> {
  9035. protected override Builder ThisBuilder {
  9036. get { return this; }
  9037. }
  9038. // Construct using global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder()
  9039. internal Builder() {}
  9040. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo();
  9041. protected override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo MessageBeingBuilt {
  9042. get { return result; }
  9043. }
  9044. public override Builder Clear() {
  9045. result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo();
  9046. return this;
  9047. }
  9048. public override Builder Clone() {
  9049. return new Builder().MergeFrom(result);
  9050. }
  9051. public override pbd::MessageDescriptor DescriptorForType {
  9052. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Descriptor; }
  9053. }
  9054. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo DefaultInstanceForType {
  9055. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance; }
  9056. }
  9057. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo BuildPartial() {
  9058. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo returnMe = result;
  9059. result = null;
  9060. return returnMe;
  9061. }
  9062. public override Builder MergeFrom(pb::IMessage other) {
  9063. if (other is global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo) {
  9064. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo) other);
  9065. } else {
  9066. base.MergeFrom(other);
  9067. return this;
  9068. }
  9069. }
  9070. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo other) {
  9071. if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) return this;
  9072. if (other.HasA) {
  9073. A = other.A;
  9074. }
  9075. this.MergeUnknownFields(other.UnknownFields);
  9076. return this;
  9077. }
  9078. public override Builder MergeFrom(pb::CodedInputStream input) {
  9079. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9080. }
  9081. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9082. pb::UnknownFieldSet.Builder unknownFields =
  9083. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9084. while (true) {
  9085. uint tag = input.ReadTag();
  9086. switch (tag) {
  9087. case 0:
  9088. this.UnknownFields = unknownFields.Build();
  9089. return this;
  9090. default: {
  9091. if (!ParseUnknownField(input, unknownFields,
  9092. extensionRegistry, tag)) {
  9093. this.UnknownFields = unknownFields.Build();
  9094. return this;
  9095. }
  9096. break;
  9097. }
  9098. case 8: {
  9099. A = input.ReadInt32();
  9100. break;
  9101. }
  9102. }
  9103. }
  9104. }
  9105. // optional int32 a = 1;
  9106. public bool HasA {
  9107. get { return result.HasA; }
  9108. }
  9109. public int A {
  9110. get { return result.A; }
  9111. set { SetA(value); }
  9112. }
  9113. public Builder SetA(int value) {
  9114. result.hasA = true;
  9115. result.a_ = value;
  9116. return this;
  9117. }
  9118. public Builder ClearA() {
  9119. result.hasA = false;
  9120. result.a_ = 0;
  9121. return this;
  9122. }
  9123. }
  9124. }
  9125. public sealed partial class Bar : pb::GeneratedMessage<Bar, Bar.Builder> {
  9126. private static readonly Bar defaultInstance = new Bar();
  9127. public static Bar DefaultInstance {
  9128. get { return defaultInstance; }
  9129. }
  9130. public override Bar DefaultInstanceForType {
  9131. get { return defaultInstance; }
  9132. }
  9133. public static pbd::MessageDescriptor Descriptor {
  9134. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor; }
  9135. }
  9136. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  9137. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable; }
  9138. }
  9139. // optional int32 a = 1;
  9140. private bool hasA;
  9141. private int a_ = 0;
  9142. public bool HasA {
  9143. get { return hasA; }
  9144. }
  9145. public int A {
  9146. get { return a_; }
  9147. }
  9148. public override bool IsInitialized {
  9149. get {
  9150. return true;
  9151. }
  9152. }
  9153. public override void WriteTo(pb::CodedOutputStream output) {
  9154. if (HasA) {
  9155. output.WriteInt32(1, A);
  9156. }
  9157. UnknownFields.WriteTo(output);
  9158. }
  9159. private int memoizedSerializedSize = -1;
  9160. public override int SerializedSize {
  9161. get {
  9162. int size = memoizedSerializedSize;
  9163. if (size != -1) return size;
  9164. size = 0;
  9165. if (HasA) {
  9166. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  9167. }
  9168. size += UnknownFields.SerializedSize;
  9169. memoizedSerializedSize = size;
  9170. return size;
  9171. }
  9172. }
  9173. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(pb::ByteString data) {
  9174. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9175. }
  9176. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(pb::ByteString data,
  9177. pb::ExtensionRegistry extensionRegistry) {
  9178. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9179. .BuildParsed();
  9180. }
  9181. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(byte[] data) {
  9182. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9183. }
  9184. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(byte[] data,
  9185. pb::ExtensionRegistry extensionRegistry) {
  9186. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9187. .BuildParsed();
  9188. }
  9189. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(global::System.IO.Stream input) {
  9190. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9191. }
  9192. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(
  9193. global::System.IO.Stream input,
  9194. pb::ExtensionRegistry extensionRegistry) {
  9195. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9196. .BuildParsed();
  9197. }
  9198. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(pb::CodedInputStream input) {
  9199. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9200. }
  9201. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(pb::CodedInputStream input,
  9202. pb::ExtensionRegistry extensionRegistry) {
  9203. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9204. .BuildParsed();
  9205. }
  9206. public static Builder CreateBuilder() { return new Builder(); }
  9207. public override Builder CreateBuilderForType() { return new Builder(); }
  9208. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar prototype) {
  9209. return (Builder) new Builder().MergeFrom(prototype);
  9210. }
  9211. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar, Builder> {
  9212. protected override Builder ThisBuilder {
  9213. get { return this; }
  9214. }
  9215. // Construct using global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder()
  9216. internal Builder() {}
  9217. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar();
  9218. protected override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar MessageBeingBuilt {
  9219. get { return result; }
  9220. }
  9221. public override Builder Clear() {
  9222. result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar();
  9223. return this;
  9224. }
  9225. public override Builder Clone() {
  9226. return new Builder().MergeFrom(result);
  9227. }
  9228. public override pbd::MessageDescriptor DescriptorForType {
  9229. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Descriptor; }
  9230. }
  9231. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar DefaultInstanceForType {
  9232. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance; }
  9233. }
  9234. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar BuildPartial() {
  9235. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar returnMe = result;
  9236. result = null;
  9237. return returnMe;
  9238. }
  9239. public override Builder MergeFrom(pb::IMessage other) {
  9240. if (other is global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar) {
  9241. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar) other);
  9242. } else {
  9243. base.MergeFrom(other);
  9244. return this;
  9245. }
  9246. }
  9247. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar other) {
  9248. if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) return this;
  9249. if (other.HasA) {
  9250. A = other.A;
  9251. }
  9252. this.MergeUnknownFields(other.UnknownFields);
  9253. return this;
  9254. }
  9255. public override Builder MergeFrom(pb::CodedInputStream input) {
  9256. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9257. }
  9258. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9259. pb::UnknownFieldSet.Builder unknownFields =
  9260. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9261. while (true) {
  9262. uint tag = input.ReadTag();
  9263. switch (tag) {
  9264. case 0:
  9265. this.UnknownFields = unknownFields.Build();
  9266. return this;
  9267. default: {
  9268. if (!ParseUnknownField(input, unknownFields,
  9269. extensionRegistry, tag)) {
  9270. this.UnknownFields = unknownFields.Build();
  9271. return this;
  9272. }
  9273. break;
  9274. }
  9275. case 8: {
  9276. A = input.ReadInt32();
  9277. break;
  9278. }
  9279. }
  9280. }
  9281. }
  9282. // optional int32 a = 1;
  9283. public bool HasA {
  9284. get { return result.HasA; }
  9285. }
  9286. public int A {
  9287. get { return result.A; }
  9288. set { SetA(value); }
  9289. }
  9290. public Builder SetA(int value) {
  9291. result.hasA = true;
  9292. result.a_ = value;
  9293. return this;
  9294. }
  9295. public Builder ClearA() {
  9296. result.hasA = false;
  9297. result.a_ = 0;
  9298. return this;
  9299. }
  9300. }
  9301. }
  9302. }
  9303. #endregion
  9304. // optional int32 a = 1;
  9305. private bool hasA;
  9306. private int a_ = 0;
  9307. public bool HasA {
  9308. get { return hasA; }
  9309. }
  9310. public int A {
  9311. get { return a_; }
  9312. }
  9313. // optional group Foo = 2 {
  9314. private bool hasFoo;
  9315. private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance;
  9316. public bool HasFoo {
  9317. get { return hasFoo; }
  9318. }
  9319. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo {
  9320. get { return foo_; }
  9321. }
  9322. // optional group Bar = 3 {
  9323. private bool hasBar;
  9324. private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance;
  9325. public bool HasBar {
  9326. get { return hasBar; }
  9327. }
  9328. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar {
  9329. get { return bar_; }
  9330. }
  9331. public override bool IsInitialized {
  9332. get {
  9333. return true;
  9334. }
  9335. }
  9336. public override void WriteTo(pb::CodedOutputStream output) {
  9337. if (HasA) {
  9338. output.WriteInt32(1, A);
  9339. }
  9340. if (HasFoo) {
  9341. output.WriteGroup(2, Foo);
  9342. }
  9343. if (HasBar) {
  9344. output.WriteGroup(3, Bar);
  9345. }
  9346. UnknownFields.WriteTo(output);
  9347. }
  9348. private int memoizedSerializedSize = -1;
  9349. public override int SerializedSize {
  9350. get {
  9351. int size = memoizedSerializedSize;
  9352. if (size != -1) return size;
  9353. size = 0;
  9354. if (HasA) {
  9355. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  9356. }
  9357. if (HasFoo) {
  9358. size += pb::CodedOutputStream.ComputeGroupSize(2, Foo);
  9359. }
  9360. if (HasBar) {
  9361. size += pb::CodedOutputStream.ComputeGroupSize(3, Bar);
  9362. }
  9363. size += UnknownFields.SerializedSize;
  9364. memoizedSerializedSize = size;
  9365. return size;
  9366. }
  9367. }
  9368. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(pb::ByteString data) {
  9369. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9370. }
  9371. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(pb::ByteString data,
  9372. pb::ExtensionRegistry extensionRegistry) {
  9373. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9374. .BuildParsed();
  9375. }
  9376. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(byte[] data) {
  9377. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9378. }
  9379. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(byte[] data,
  9380. pb::ExtensionRegistry extensionRegistry) {
  9381. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9382. .BuildParsed();
  9383. }
  9384. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(global::System.IO.Stream input) {
  9385. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9386. }
  9387. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(
  9388. global::System.IO.Stream input,
  9389. pb::ExtensionRegistry extensionRegistry) {
  9390. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9391. .BuildParsed();
  9392. }
  9393. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(pb::CodedInputStream input) {
  9394. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9395. }
  9396. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(pb::CodedInputStream input,
  9397. pb::ExtensionRegistry extensionRegistry) {
  9398. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9399. .BuildParsed();
  9400. }
  9401. public static Builder CreateBuilder() { return new Builder(); }
  9402. public override Builder CreateBuilderForType() { return new Builder(); }
  9403. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber prototype) {
  9404. return (Builder) new Builder().MergeFrom(prototype);
  9405. }
  9406. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, Builder> {
  9407. protected override Builder ThisBuilder {
  9408. get { return this; }
  9409. }
  9410. // Construct using global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.CreateBuilder()
  9411. internal Builder() {}
  9412. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber();
  9413. protected override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber MessageBeingBuilt {
  9414. get { return result; }
  9415. }
  9416. public override Builder Clear() {
  9417. result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber();
  9418. return this;
  9419. }
  9420. public override Builder Clone() {
  9421. return new Builder().MergeFrom(result);
  9422. }
  9423. public override pbd::MessageDescriptor DescriptorForType {
  9424. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Descriptor; }
  9425. }
  9426. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber DefaultInstanceForType {
  9427. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.DefaultInstance; }
  9428. }
  9429. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber BuildPartial() {
  9430. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber returnMe = result;
  9431. result = null;
  9432. return returnMe;
  9433. }
  9434. public override Builder MergeFrom(pb::IMessage other) {
  9435. if (other is global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber) {
  9436. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber) other);
  9437. } else {
  9438. base.MergeFrom(other);
  9439. return this;
  9440. }
  9441. }
  9442. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber other) {
  9443. if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.DefaultInstance) return this;
  9444. if (other.HasA) {
  9445. A = other.A;
  9446. }
  9447. if (other.HasFoo) {
  9448. MergeFoo(other.Foo);
  9449. }
  9450. if (other.HasBar) {
  9451. MergeBar(other.Bar);
  9452. }
  9453. this.MergeUnknownFields(other.UnknownFields);
  9454. return this;
  9455. }
  9456. public override Builder MergeFrom(pb::CodedInputStream input) {
  9457. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9458. }
  9459. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9460. pb::UnknownFieldSet.Builder unknownFields =
  9461. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9462. while (true) {
  9463. uint tag = input.ReadTag();
  9464. switch (tag) {
  9465. case 0:
  9466. this.UnknownFields = unknownFields.Build();
  9467. return this;
  9468. default: {
  9469. if (!ParseUnknownField(input, unknownFields,
  9470. extensionRegistry, tag)) {
  9471. this.UnknownFields = unknownFields.Build();
  9472. return this;
  9473. }
  9474. break;
  9475. }
  9476. case 8: {
  9477. A = input.ReadInt32();
  9478. break;
  9479. }
  9480. case 19: {
  9481. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder();
  9482. if (HasFoo) {
  9483. subBuilder.MergeFrom(Foo);
  9484. }
  9485. input.ReadGroup(2, subBuilder, extensionRegistry);
  9486. Foo = subBuilder.BuildPartial();
  9487. break;
  9488. }
  9489. case 27: {
  9490. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder();
  9491. if (HasBar) {
  9492. subBuilder.MergeFrom(Bar);
  9493. }
  9494. input.ReadGroup(3, subBuilder, extensionRegistry);
  9495. Bar = subBuilder.BuildPartial();
  9496. break;
  9497. }
  9498. }
  9499. }
  9500. }
  9501. // optional int32 a = 1;
  9502. public bool HasA {
  9503. get { return result.HasA; }
  9504. }
  9505. public int A {
  9506. get { return result.A; }
  9507. set { SetA(value); }
  9508. }
  9509. public Builder SetA(int value) {
  9510. result.hasA = true;
  9511. result.a_ = value;
  9512. return this;
  9513. }
  9514. public Builder ClearA() {
  9515. result.hasA = false;
  9516. result.a_ = 0;
  9517. return this;
  9518. }
  9519. // optional group Foo = 2 {
  9520. public bool HasFoo {
  9521. get { return result.HasFoo; }
  9522. }
  9523. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo {
  9524. get { return result.Foo; }
  9525. set { SetFoo(value); }
  9526. }
  9527. public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) {
  9528. result.hasFoo = true;
  9529. result.foo_ = value;
  9530. return this;
  9531. }
  9532. public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder builderForValue) {
  9533. result.hasFoo = true;
  9534. result.foo_ = builderForValue.Build();
  9535. return this;
  9536. }
  9537. public Builder MergeFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) {
  9538. if (result.HasFoo &&
  9539. result.foo_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) {
  9540. result.foo_ =
  9541. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder(result.foo_).MergeFrom(value).BuildPartial();
  9542. } else {
  9543. result.foo_ = value;
  9544. }
  9545. result.hasFoo = true;
  9546. return this;
  9547. }
  9548. public Builder ClearFoo() {
  9549. result.hasFoo = false;
  9550. result.foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance;
  9551. return this;
  9552. }
  9553. // optional group Bar = 3 {
  9554. public bool HasBar {
  9555. get { return result.HasBar; }
  9556. }
  9557. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar {
  9558. get { return result.Bar; }
  9559. set { SetBar(value); }
  9560. }
  9561. public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) {
  9562. result.hasBar = true;
  9563. result.bar_ = value;
  9564. return this;
  9565. }
  9566. public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder builderForValue) {
  9567. result.hasBar = true;
  9568. result.bar_ = builderForValue.Build();
  9569. return this;
  9570. }
  9571. public Builder MergeBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) {
  9572. if (result.HasBar &&
  9573. result.bar_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) {
  9574. result.bar_ =
  9575. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder(result.bar_).MergeFrom(value).BuildPartial();
  9576. } else {
  9577. result.bar_ = value;
  9578. }
  9579. result.hasBar = true;
  9580. return this;
  9581. }
  9582. public Builder ClearBar() {
  9583. result.hasBar = false;
  9584. result.bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance;
  9585. return this;
  9586. }
  9587. }
  9588. }
  9589. public sealed partial class TestNestedMessageHasBits : pb::GeneratedMessage<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> {
  9590. private static readonly TestNestedMessageHasBits defaultInstance = new TestNestedMessageHasBits();
  9591. public static TestNestedMessageHasBits DefaultInstance {
  9592. get { return defaultInstance; }
  9593. }
  9594. public override TestNestedMessageHasBits DefaultInstanceForType {
  9595. get { return defaultInstance; }
  9596. }
  9597. public static pbd::MessageDescriptor Descriptor {
  9598. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor; }
  9599. }
  9600. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  9601. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable; }
  9602. }
  9603. #region Nested types
  9604. public static class Types {
  9605. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  9606. private static readonly NestedMessage defaultInstance = new NestedMessage();
  9607. public static NestedMessage DefaultInstance {
  9608. get { return defaultInstance; }
  9609. }
  9610. public override NestedMessage DefaultInstanceForType {
  9611. get { return defaultInstance; }
  9612. }
  9613. public static pbd::MessageDescriptor Descriptor {
  9614. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor; }
  9615. }
  9616. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  9617. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable; }
  9618. }
  9619. // repeated int32 nestedmessage_repeated_int32 = 1;
  9620. private scg::IList<int> nestedmessageRepeatedInt32_ = pbc::Lists<int>.Empty;
  9621. public scg::IList<int> NestedmessageRepeatedInt32List {
  9622. get { return nestedmessageRepeatedInt32_; }
  9623. }
  9624. public int NestedmessageRepeatedInt32Count {
  9625. get { return nestedmessageRepeatedInt32_.Count; }
  9626. }
  9627. public int GetNestedmessageRepeatedInt32(int index) {
  9628. return nestedmessageRepeatedInt32_[index];
  9629. }
  9630. // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
  9631. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> nestedmessageRepeatedForeignmessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  9632. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList {
  9633. get { return nestedmessageRepeatedForeignmessage_; }
  9634. }
  9635. public int NestedmessageRepeatedForeignmessageCount
  9636. { get { return nestedmessageRepeatedForeignmessage_.Count; }
  9637. }
  9638. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
  9639. return nestedmessageRepeatedForeignmessage_ [index];
  9640. }
  9641. public override bool IsInitialized {
  9642. get {
  9643. return true;
  9644. }
  9645. }
  9646. public override void WriteTo(pb::CodedOutputStream output) {
  9647. foreach (int element in NestedmessageRepeatedInt32List) {
  9648. output.WriteInt32(1, element);
  9649. }
  9650. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
  9651. output.WriteMessage(2, element);
  9652. }
  9653. UnknownFields.WriteTo(output);
  9654. }
  9655. private int memoizedSerializedSize = -1;
  9656. public override int SerializedSize {
  9657. get {
  9658. int size = memoizedSerializedSize;
  9659. if (size != -1) return size;
  9660. size = 0;
  9661. foreach (int element in NestedmessageRepeatedInt32List) {
  9662. size += pb::CodedOutputStream
  9663. .ComputeInt32Size(1, element);
  9664. }
  9665. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
  9666. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  9667. }
  9668. size += UnknownFields.SerializedSize;
  9669. memoizedSerializedSize = size;
  9670. return size;
  9671. }
  9672. }
  9673. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::ByteString data) {
  9674. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9675. }
  9676. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::ByteString data,
  9677. pb::ExtensionRegistry extensionRegistry) {
  9678. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9679. .BuildParsed();
  9680. }
  9681. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(byte[] data) {
  9682. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9683. }
  9684. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(byte[] data,
  9685. pb::ExtensionRegistry extensionRegistry) {
  9686. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9687. .BuildParsed();
  9688. }
  9689. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(global::System.IO.Stream input) {
  9690. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9691. }
  9692. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(
  9693. global::System.IO.Stream input,
  9694. pb::ExtensionRegistry extensionRegistry) {
  9695. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9696. .BuildParsed();
  9697. }
  9698. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::CodedInputStream input) {
  9699. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9700. }
  9701. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::CodedInputStream input,
  9702. pb::ExtensionRegistry extensionRegistry) {
  9703. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9704. .BuildParsed();
  9705. }
  9706. public static Builder CreateBuilder() { return new Builder(); }
  9707. public override Builder CreateBuilderForType() { return new Builder(); }
  9708. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage prototype) {
  9709. return (Builder) new Builder().MergeFrom(prototype);
  9710. }
  9711. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage, Builder> {
  9712. protected override Builder ThisBuilder {
  9713. get { return this; }
  9714. }
  9715. // Construct using global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder()
  9716. internal Builder() {}
  9717. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage result = new global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage();
  9718. protected override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage MessageBeingBuilt {
  9719. get { return result; }
  9720. }
  9721. public override Builder Clear() {
  9722. result = new global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage();
  9723. return this;
  9724. }
  9725. public override Builder Clone() {
  9726. return new Builder().MergeFrom(result);
  9727. }
  9728. public override pbd::MessageDescriptor DescriptorForType {
  9729. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Descriptor; }
  9730. }
  9731. public override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage DefaultInstanceForType {
  9732. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; }
  9733. }
  9734. public override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage BuildPartial() {
  9735. result.nestedmessageRepeatedInt32_ = pbc::Lists<int>.AsReadOnly(result.nestedmessageRepeatedInt32_);
  9736. if (result.nestedmessageRepeatedForeignmessage_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  9737. result.nestedmessageRepeatedForeignmessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.AsReadOnly(result.nestedmessageRepeatedForeignmessage_);
  9738. }
  9739. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage returnMe = result;
  9740. result = null;
  9741. return returnMe;
  9742. }
  9743. public override Builder MergeFrom(pb::IMessage other) {
  9744. if (other is global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage) {
  9745. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage) other);
  9746. } else {
  9747. base.MergeFrom(other);
  9748. return this;
  9749. }
  9750. }
  9751. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage other) {
  9752. if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) return this;
  9753. if (other.nestedmessageRepeatedInt32_.Count != 0) {
  9754. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9755. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9756. }
  9757. base.AddRange(other.nestedmessageRepeatedInt32_, result.nestedmessageRepeatedInt32_);
  9758. }
  9759. if (other.nestedmessageRepeatedForeignmessage_.Count != 0) {
  9760. if (result.nestedmessageRepeatedForeignmessage_.Count == 0) {
  9761. result.nestedmessageRepeatedForeignmessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  9762. }
  9763. base.AddRange(other.nestedmessageRepeatedForeignmessage_, result.nestedmessageRepeatedForeignmessage_);
  9764. }
  9765. this.MergeUnknownFields(other.UnknownFields);
  9766. return this;
  9767. }
  9768. public override Builder MergeFrom(pb::CodedInputStream input) {
  9769. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9770. }
  9771. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9772. pb::UnknownFieldSet.Builder unknownFields =
  9773. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9774. while (true) {
  9775. uint tag = input.ReadTag();
  9776. switch (tag) {
  9777. case 0:
  9778. this.UnknownFields = unknownFields.Build();
  9779. return this;
  9780. default: {
  9781. if (!ParseUnknownField(input, unknownFields,
  9782. extensionRegistry, tag)) {
  9783. this.UnknownFields = unknownFields.Build();
  9784. return this;
  9785. }
  9786. break;
  9787. }
  9788. case 8: {
  9789. AddNestedmessageRepeatedInt32(input.ReadInt32());
  9790. break;
  9791. }
  9792. case 18: {
  9793. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  9794. input.ReadMessage(subBuilder, extensionRegistry);
  9795. AddNestedmessageRepeatedForeignmessage(subBuilder.BuildPartial());
  9796. break;
  9797. }
  9798. }
  9799. }
  9800. }
  9801. // repeated int32 nestedmessage_repeated_int32 = 1;
  9802. public scg::IList<int> NestedmessageRepeatedInt32List {
  9803. get { return pbc::Lists<int>.AsReadOnly(result.nestedmessageRepeatedInt32_); }
  9804. }
  9805. public int NestedmessageRepeatedInt32Count {
  9806. get { return result.NestedmessageRepeatedInt32Count; }
  9807. }
  9808. public int GetNestedmessageRepeatedInt32(int index) {
  9809. return result.GetNestedmessageRepeatedInt32(index);
  9810. }
  9811. public Builder SetNestedmessageRepeatedInt32(int index, int value) {
  9812. result.nestedmessageRepeatedInt32_[index] = value;
  9813. return this;
  9814. }
  9815. public Builder AddNestedmessageRepeatedInt32(int value) {
  9816. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9817. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9818. }
  9819. result.nestedmessageRepeatedInt32_.Add(value);
  9820. return this;
  9821. }
  9822. public Builder AddRangeNestedmessageRepeatedInt32(scg::IEnumerable<int> values) {
  9823. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9824. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9825. }
  9826. base.AddRange(values, result.nestedmessageRepeatedInt32_);
  9827. return this;
  9828. }
  9829. public Builder ClearNestedmessageRepeatedInt32() {
  9830. result.nestedmessageRepeatedInt32_ = pbc::Lists<int>.Empty;
  9831. return this;
  9832. }
  9833. // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
  9834. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList {
  9835. get { return pbc::Lists.AsReadOnly(result.nestedmessageRepeatedForeignmessage_); }
  9836. }
  9837. public int NestedmessageRepeatedForeignmessageCount {
  9838. get { return result.NestedmessageRepeatedForeignmessageCount; }
  9839. }
  9840. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
  9841. return result.GetNestedmessageRepeatedForeignmessage(index);
  9842. }
  9843. public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  9844. result.nestedmessageRepeatedForeignmessage_[index] = value;
  9845. return this;
  9846. }
  9847. public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  9848. result.nestedmessageRepeatedForeignmessage_[index] = builderForValue.Build();
  9849. return this;
  9850. }
  9851. public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  9852. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  9853. result.nestedmessageRepeatedForeignmessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  9854. }
  9855. result.nestedmessageRepeatedForeignmessage_.Add(value);
  9856. return this;
  9857. }
  9858. public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  9859. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  9860. result.nestedmessageRepeatedForeignmessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  9861. }
  9862. result.nestedmessageRepeatedForeignmessage_.Add(builderForValue.Build());
  9863. return this;
  9864. }
  9865. public Builder AddRangeNestedmessageRepeatedForeignmessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
  9866. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  9867. result.nestedmessageRepeatedForeignmessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  9868. }
  9869. base.AddRange(values, result.nestedmessageRepeatedForeignmessage_);
  9870. return this;
  9871. }
  9872. public Builder ClearNestedmessageRepeatedForeignmessage() {
  9873. result.nestedmessageRepeatedForeignmessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  9874. return this;
  9875. }
  9876. }
  9877. }
  9878. }
  9879. #endregion
  9880. // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
  9881. private bool hasOptionalNestedMessage;
  9882. private global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
  9883. public bool HasOptionalNestedMessage {
  9884. get { return hasOptionalNestedMessage; }
  9885. }
  9886. public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  9887. get { return optionalNestedMessage_; }
  9888. }
  9889. public override bool IsInitialized {
  9890. get {
  9891. return true;
  9892. }
  9893. }
  9894. public override void WriteTo(pb::CodedOutputStream output) {
  9895. if (HasOptionalNestedMessage) {
  9896. output.WriteMessage(1, OptionalNestedMessage);
  9897. }
  9898. UnknownFields.WriteTo(output);
  9899. }
  9900. private int memoizedSerializedSize = -1;
  9901. public override int SerializedSize {
  9902. get {
  9903. int size = memoizedSerializedSize;
  9904. if (size != -1) return size;
  9905. size = 0;
  9906. if (HasOptionalNestedMessage) {
  9907. size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalNestedMessage);
  9908. }
  9909. size += UnknownFields.SerializedSize;
  9910. memoizedSerializedSize = size;
  9911. return size;
  9912. }
  9913. }
  9914. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(pb::ByteString data) {
  9915. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9916. }
  9917. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(pb::ByteString data,
  9918. pb::ExtensionRegistry extensionRegistry) {
  9919. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9920. .BuildParsed();
  9921. }
  9922. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(byte[] data) {
  9923. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9924. }
  9925. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(byte[] data,
  9926. pb::ExtensionRegistry extensionRegistry) {
  9927. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9928. .BuildParsed();
  9929. }
  9930. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input) {
  9931. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9932. }
  9933. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(
  9934. global::System.IO.Stream input,
  9935. pb::ExtensionRegistry extensionRegistry) {
  9936. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9937. .BuildParsed();
  9938. }
  9939. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input) {
  9940. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9941. }
  9942. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input,
  9943. pb::ExtensionRegistry extensionRegistry) {
  9944. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9945. .BuildParsed();
  9946. }
  9947. public static Builder CreateBuilder() { return new Builder(); }
  9948. public override Builder CreateBuilderForType() { return new Builder(); }
  9949. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits prototype) {
  9950. return (Builder) new Builder().MergeFrom(prototype);
  9951. }
  9952. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, Builder> {
  9953. protected override Builder ThisBuilder {
  9954. get { return this; }
  9955. }
  9956. // Construct using global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.CreateBuilder()
  9957. internal Builder() {}
  9958. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits result = new global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits();
  9959. protected override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits MessageBeingBuilt {
  9960. get { return result; }
  9961. }
  9962. public override Builder Clear() {
  9963. result = new global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits();
  9964. return this;
  9965. }
  9966. public override Builder Clone() {
  9967. return new Builder().MergeFrom(result);
  9968. }
  9969. public override pbd::MessageDescriptor DescriptorForType {
  9970. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Descriptor; }
  9971. }
  9972. public override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits DefaultInstanceForType {
  9973. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.DefaultInstance; }
  9974. }
  9975. public override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits BuildPartial() {
  9976. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits returnMe = result;
  9977. result = null;
  9978. return returnMe;
  9979. }
  9980. public override Builder MergeFrom(pb::IMessage other) {
  9981. if (other is global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits) {
  9982. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits) other);
  9983. } else {
  9984. base.MergeFrom(other);
  9985. return this;
  9986. }
  9987. }
  9988. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits other) {
  9989. if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.DefaultInstance) return this;
  9990. if (other.HasOptionalNestedMessage) {
  9991. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  9992. }
  9993. this.MergeUnknownFields(other.UnknownFields);
  9994. return this;
  9995. }
  9996. public override Builder MergeFrom(pb::CodedInputStream input) {
  9997. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9998. }
  9999. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10000. pb::UnknownFieldSet.Builder unknownFields =
  10001. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10002. while (true) {
  10003. uint tag = input.ReadTag();
  10004. switch (tag) {
  10005. case 0:
  10006. this.UnknownFields = unknownFields.Build();
  10007. return this;
  10008. default: {
  10009. if (!ParseUnknownField(input, unknownFields,
  10010. extensionRegistry, tag)) {
  10011. this.UnknownFields = unknownFields.Build();
  10012. return this;
  10013. }
  10014. break;
  10015. }
  10016. case 10: {
  10017. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder();
  10018. if (HasOptionalNestedMessage) {
  10019. subBuilder.MergeFrom(OptionalNestedMessage);
  10020. }
  10021. input.ReadMessage(subBuilder, extensionRegistry);
  10022. OptionalNestedMessage = subBuilder.BuildPartial();
  10023. break;
  10024. }
  10025. }
  10026. }
  10027. }
  10028. // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
  10029. public bool HasOptionalNestedMessage {
  10030. get { return result.HasOptionalNestedMessage; }
  10031. }
  10032. public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  10033. get { return result.OptionalNestedMessage; }
  10034. set { SetOptionalNestedMessage(value); }
  10035. }
  10036. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) {
  10037. result.hasOptionalNestedMessage = true;
  10038. result.optionalNestedMessage_ = value;
  10039. return this;
  10040. }
  10041. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder builderForValue) {
  10042. result.hasOptionalNestedMessage = true;
  10043. result.optionalNestedMessage_ = builderForValue.Build();
  10044. return this;
  10045. }
  10046. public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) {
  10047. if (result.HasOptionalNestedMessage &&
  10048. result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) {
  10049. result.optionalNestedMessage_ =
  10050. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  10051. } else {
  10052. result.optionalNestedMessage_ = value;
  10053. }
  10054. result.hasOptionalNestedMessage = true;
  10055. return this;
  10056. }
  10057. public Builder ClearOptionalNestedMessage() {
  10058. result.hasOptionalNestedMessage = false;
  10059. result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
  10060. return this;
  10061. }
  10062. }
  10063. }
  10064. public sealed partial class TestCamelCaseFieldNames : pb::GeneratedMessage<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> {
  10065. private static readonly TestCamelCaseFieldNames defaultInstance = new TestCamelCaseFieldNames();
  10066. public static TestCamelCaseFieldNames DefaultInstance {
  10067. get { return defaultInstance; }
  10068. }
  10069. public override TestCamelCaseFieldNames DefaultInstanceForType {
  10070. get { return defaultInstance; }
  10071. }
  10072. public static pbd::MessageDescriptor Descriptor {
  10073. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor; }
  10074. }
  10075. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  10076. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; }
  10077. }
  10078. // optional int32 PrimitiveField = 1;
  10079. private bool hasPrimitiveField;
  10080. private int primitiveField_ = 0;
  10081. public bool HasPrimitiveField {
  10082. get { return hasPrimitiveField; }
  10083. }
  10084. public int PrimitiveField {
  10085. get { return primitiveField_; }
  10086. }
  10087. // optional string StringField = 2;
  10088. private bool hasStringField;
  10089. private string stringField_ = "";
  10090. public bool HasStringField {
  10091. get { return hasStringField; }
  10092. }
  10093. public string StringField {
  10094. get { return stringField_; }
  10095. }
  10096. // optional .protobuf_unittest.ForeignEnum EnumField = 3;
  10097. private bool hasEnumField;
  10098. private global::Google.ProtocolBuffers.TestProtos.ForeignEnum enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  10099. public bool HasEnumField {
  10100. get { return hasEnumField; }
  10101. }
  10102. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField { get { return enumField_; }}
  10103. // optional .protobuf_unittest.ForeignMessage MessageField = 4;
  10104. private bool hasMessageField;
  10105. private global::Google.ProtocolBuffers.TestProtos.ForeignMessage messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
  10106. public bool HasMessageField {
  10107. get { return hasMessageField; }
  10108. }
  10109. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField {
  10110. get { return messageField_; }
  10111. }
  10112. // optional string StringPieceField = 5 [ctype = STRING_PIECE];
  10113. private bool hasStringPieceField;
  10114. private string stringPieceField_ = "";
  10115. public bool HasStringPieceField {
  10116. get { return hasStringPieceField; }
  10117. }
  10118. public string StringPieceField {
  10119. get { return stringPieceField_; }
  10120. }
  10121. // optional string CordField = 6 [ctype = CORD];
  10122. private bool hasCordField;
  10123. private string cordField_ = "";
  10124. public bool HasCordField {
  10125. get { return hasCordField; }
  10126. }
  10127. public string CordField {
  10128. get { return cordField_; }
  10129. }
  10130. // repeated int32 RepeatedPrimitiveField = 7;
  10131. private scg::IList<int> repeatedPrimitiveField_ = pbc::Lists<int>.Empty;
  10132. public scg::IList<int> RepeatedPrimitiveFieldList {
  10133. get { return repeatedPrimitiveField_; }
  10134. }
  10135. public int RepeatedPrimitiveFieldCount {
  10136. get { return repeatedPrimitiveField_.Count; }
  10137. }
  10138. public int GetRepeatedPrimitiveField(int index) {
  10139. return repeatedPrimitiveField_[index];
  10140. }
  10141. // repeated string RepeatedStringField = 8;
  10142. private scg::IList<string> repeatedStringField_ = pbc::Lists<string>.Empty;
  10143. public scg::IList<string> RepeatedStringFieldList {
  10144. get { return repeatedStringField_; }
  10145. }
  10146. public int RepeatedStringFieldCount {
  10147. get { return repeatedStringField_.Count; }
  10148. }
  10149. public string GetRepeatedStringField(int index) {
  10150. return repeatedStringField_[index];
  10151. }
  10152. // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
  10153. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedEnumField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> ();
  10154. public scg.IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList {
  10155. get { return pbc::Lists.AsReadOnly(repeatedEnumField_); }
  10156. }
  10157. public int RepeatedEnumFieldCount {
  10158. get { return repeatedEnumField_.Count; }
  10159. }
  10160. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) {
  10161. return repeatedEnumField_[index];
  10162. }
  10163. // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
  10164. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedMessageField_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  10165. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList {
  10166. get { return repeatedMessageField_; }
  10167. }
  10168. public int RepeatedMessageFieldCount
  10169. { get { return repeatedMessageField_.Count; }
  10170. }
  10171. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) {
  10172. return repeatedMessageField_ [index];
  10173. }
  10174. // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
  10175. private scg::IList<string> repeatedStringPieceField_ = pbc::Lists<string>.Empty;
  10176. public scg::IList<string> RepeatedStringPieceFieldList {
  10177. get { return repeatedStringPieceField_; }
  10178. }
  10179. public int RepeatedStringPieceFieldCount {
  10180. get { return repeatedStringPieceField_.Count; }
  10181. }
  10182. public string GetRepeatedStringPieceField(int index) {
  10183. return repeatedStringPieceField_[index];
  10184. }
  10185. // repeated string RepeatedCordField = 12 [ctype = CORD];
  10186. private scg::IList<string> repeatedCordField_ = pbc::Lists<string>.Empty;
  10187. public scg::IList<string> RepeatedCordFieldList {
  10188. get { return repeatedCordField_; }
  10189. }
  10190. public int RepeatedCordFieldCount {
  10191. get { return repeatedCordField_.Count; }
  10192. }
  10193. public string GetRepeatedCordField(int index) {
  10194. return repeatedCordField_[index];
  10195. }
  10196. public override bool IsInitialized {
  10197. get {
  10198. return true;
  10199. }
  10200. }
  10201. public override void WriteTo(pb::CodedOutputStream output) {
  10202. if (HasPrimitiveField) {
  10203. output.WriteInt32(1, PrimitiveField);
  10204. }
  10205. if (HasStringField) {
  10206. output.WriteString(2, StringField);
  10207. }
  10208. if (HasEnumField) {
  10209. output.WriteEnum(3, (int) EnumField);
  10210. }
  10211. if (HasMessageField) {
  10212. output.WriteMessage(4, MessageField);
  10213. }
  10214. if (HasStringPieceField) {
  10215. output.WriteString(5, StringPieceField);
  10216. }
  10217. if (HasCordField) {
  10218. output.WriteString(6, CordField);
  10219. }
  10220. foreach (int element in RepeatedPrimitiveFieldList) {
  10221. output.WriteInt32(7, element);
  10222. }
  10223. foreach (string element in RepeatedStringFieldList) {
  10224. output.WriteString(8, element);
  10225. }
  10226. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedEnumFieldList) {
  10227. output.WriteEnum(9, (int) element);
  10228. }
  10229. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) {
  10230. output.WriteMessage(10, element);
  10231. }
  10232. foreach (string element in RepeatedStringPieceFieldList) {
  10233. output.WriteString(11, element);
  10234. }
  10235. foreach (string element in RepeatedCordFieldList) {
  10236. output.WriteString(12, element);
  10237. }
  10238. UnknownFields.WriteTo(output);
  10239. }
  10240. private int memoizedSerializedSize = -1;
  10241. public override int SerializedSize {
  10242. get {
  10243. int size = memoizedSerializedSize;
  10244. if (size != -1) return size;
  10245. size = 0;
  10246. if (HasPrimitiveField) {
  10247. size += pb::CodedOutputStream.ComputeInt32Size(1, PrimitiveField);
  10248. }
  10249. if (HasStringField) {
  10250. size += pb::CodedOutputStream.ComputeStringSize(2, StringField);
  10251. }
  10252. if (HasEnumField) {
  10253. size += pb::CodedOutputStream
  10254. .ComputeEnumSize(3, (int) EnumField);
  10255. }
  10256. if (HasMessageField) {
  10257. size += pb::CodedOutputStream.ComputeMessageSize(4, MessageField);
  10258. }
  10259. if (HasStringPieceField) {
  10260. size += pb::CodedOutputStream.ComputeStringSize(5, StringPieceField);
  10261. }
  10262. if (HasCordField) {
  10263. size += pb::CodedOutputStream.ComputeStringSize(6, CordField);
  10264. }
  10265. foreach (int element in RepeatedPrimitiveFieldList) {
  10266. size += pb::CodedOutputStream
  10267. .ComputeInt32Size(7, element);
  10268. }
  10269. foreach (string element in RepeatedStringFieldList) {
  10270. size += pb::CodedOutputStream
  10271. .ComputeStringSize(8, element);
  10272. }
  10273. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedEnumFieldList) {
  10274. size += pb::CodedOutputStream
  10275. .ComputeEnumSize(9, (int) element);
  10276. }
  10277. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) {
  10278. size += pb::CodedOutputStream.ComputeMessageSize(10, element);
  10279. }
  10280. foreach (string element in RepeatedStringPieceFieldList) {
  10281. size += pb::CodedOutputStream
  10282. .ComputeStringSize(11, element);
  10283. }
  10284. foreach (string element in RepeatedCordFieldList) {
  10285. size += pb::CodedOutputStream
  10286. .ComputeStringSize(12, element);
  10287. }
  10288. size += UnknownFields.SerializedSize;
  10289. memoizedSerializedSize = size;
  10290. return size;
  10291. }
  10292. }
  10293. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(pb::ByteString data) {
  10294. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10295. }
  10296. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(pb::ByteString data,
  10297. pb::ExtensionRegistry extensionRegistry) {
  10298. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10299. .BuildParsed();
  10300. }
  10301. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(byte[] data) {
  10302. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10303. }
  10304. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(byte[] data,
  10305. pb::ExtensionRegistry extensionRegistry) {
  10306. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10307. .BuildParsed();
  10308. }
  10309. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input) {
  10310. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10311. }
  10312. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(
  10313. global::System.IO.Stream input,
  10314. pb::ExtensionRegistry extensionRegistry) {
  10315. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10316. .BuildParsed();
  10317. }
  10318. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input) {
  10319. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10320. }
  10321. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input,
  10322. pb::ExtensionRegistry extensionRegistry) {
  10323. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10324. .BuildParsed();
  10325. }
  10326. public static Builder CreateBuilder() { return new Builder(); }
  10327. public override Builder CreateBuilderForType() { return new Builder(); }
  10328. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames prototype) {
  10329. return (Builder) new Builder().MergeFrom(prototype);
  10330. }
  10331. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, Builder> {
  10332. protected override Builder ThisBuilder {
  10333. get { return this; }
  10334. }
  10335. // Construct using global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.CreateBuilder()
  10336. internal Builder() {}
  10337. global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames result = new global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames();
  10338. protected override global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames MessageBeingBuilt {
  10339. get { return result; }
  10340. }
  10341. public override Builder Clear() {
  10342. result = new global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames();
  10343. return this;
  10344. }
  10345. public override Builder Clone() {
  10346. return new Builder().MergeFrom(result);
  10347. }
  10348. public override pbd::MessageDescriptor DescriptorForType {
  10349. get { return global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Descriptor; }
  10350. }
  10351. public override global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames DefaultInstanceForType {
  10352. get { return global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.DefaultInstance; }
  10353. }
  10354. public override global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames BuildPartial() {
  10355. result.repeatedPrimitiveField_ = pbc::Lists<int>.AsReadOnly(result.repeatedPrimitiveField_);
  10356. result.repeatedStringField_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringField_);
  10357. result.repeatedEnumField_ = pbc::Lists.AsReadOnly(result.repeatedEnumField_);
  10358. if (result.repeatedMessageField_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  10359. result.repeatedMessageField_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.AsReadOnly(result.repeatedMessageField_);
  10360. }
  10361. result.repeatedStringPieceField_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringPieceField_);
  10362. result.repeatedCordField_ = pbc::Lists<string>.AsReadOnly(result.repeatedCordField_);
  10363. global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames returnMe = result;
  10364. result = null;
  10365. return returnMe;
  10366. }
  10367. public override Builder MergeFrom(pb::IMessage other) {
  10368. if (other is global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames) {
  10369. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames) other);
  10370. } else {
  10371. base.MergeFrom(other);
  10372. return this;
  10373. }
  10374. }
  10375. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames other) {
  10376. if (other == global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.DefaultInstance) return this;
  10377. if (other.HasPrimitiveField) {
  10378. PrimitiveField = other.PrimitiveField;
  10379. }
  10380. if (other.HasStringField) {
  10381. StringField = other.StringField;
  10382. }
  10383. if (other.HasEnumField) {
  10384. EnumField = other.EnumField;
  10385. }
  10386. if (other.HasMessageField) {
  10387. MergeMessageField(other.MessageField);
  10388. }
  10389. if (other.HasStringPieceField) {
  10390. StringPieceField = other.StringPieceField;
  10391. }
  10392. if (other.HasCordField) {
  10393. CordField = other.CordField;
  10394. }
  10395. if (other.repeatedPrimitiveField_.Count != 0) {
  10396. if (result.repeatedPrimitiveField_.Count == 0) {
  10397. result.repeatedPrimitiveField_ = new scg::List<int>();
  10398. }
  10399. base.AddRange(other.repeatedPrimitiveField_, result.repeatedPrimitiveField_);
  10400. }
  10401. if (other.repeatedStringField_.Count != 0) {
  10402. if (result.repeatedStringField_.Count == 0) {
  10403. result.repeatedStringField_ = new scg::List<string>();
  10404. }
  10405. base.AddRange(other.repeatedStringField_, result.repeatedStringField_);
  10406. }
  10407. if (other.repeatedEnumField_.Count != 0) {
  10408. if (result.repeatedEnumField_.Count == 0) {
  10409. result.repeatedEnumField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  10410. }
  10411. base.AddRange(other.repeatedEnumField_, result.repeatedEnumField_);
  10412. }
  10413. if (other.repeatedMessageField_.Count != 0) {
  10414. if (result.repeatedMessageField_.Count == 0) {
  10415. result.repeatedMessageField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  10416. }
  10417. base.AddRange(other.repeatedMessageField_, result.repeatedMessageField_);
  10418. }
  10419. if (other.repeatedStringPieceField_.Count != 0) {
  10420. if (result.repeatedStringPieceField_.Count == 0) {
  10421. result.repeatedStringPieceField_ = new scg::List<string>();
  10422. }
  10423. base.AddRange(other.repeatedStringPieceField_, result.repeatedStringPieceField_);
  10424. }
  10425. if (other.repeatedCordField_.Count != 0) {
  10426. if (result.repeatedCordField_.Count == 0) {
  10427. result.repeatedCordField_ = new scg::List<string>();
  10428. }
  10429. base.AddRange(other.repeatedCordField_, result.repeatedCordField_);
  10430. }
  10431. this.MergeUnknownFields(other.UnknownFields);
  10432. return this;
  10433. }
  10434. public override Builder MergeFrom(pb::CodedInputStream input) {
  10435. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  10436. }
  10437. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10438. pb::UnknownFieldSet.Builder unknownFields =
  10439. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10440. while (true) {
  10441. uint tag = input.ReadTag();
  10442. switch (tag) {
  10443. case 0:
  10444. this.UnknownFields = unknownFields.Build();
  10445. return this;
  10446. default: {
  10447. if (!ParseUnknownField(input, unknownFields,
  10448. extensionRegistry, tag)) {
  10449. this.UnknownFields = unknownFields.Build();
  10450. return this;
  10451. }
  10452. break;
  10453. }
  10454. case 8: {
  10455. PrimitiveField = input.ReadInt32();
  10456. break;
  10457. }
  10458. case 18: {
  10459. StringField = input.ReadString();
  10460. break;
  10461. }
  10462. case 24: {
  10463. int rawValue = input.ReadEnum();
  10464. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
  10465. unknownFields.MergeVarintField(3, (ulong) rawValue);
  10466. } else {
  10467. EnumField = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  10468. }
  10469. break;
  10470. }
  10471. case 34: {
  10472. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  10473. if (HasMessageField) {
  10474. subBuilder.MergeFrom(MessageField);
  10475. }
  10476. input.ReadMessage(subBuilder, extensionRegistry);
  10477. MessageField = subBuilder.BuildPartial();
  10478. break;
  10479. }
  10480. case 42: {
  10481. StringPieceField = input.ReadString();
  10482. break;
  10483. }
  10484. case 50: {
  10485. CordField = input.ReadString();
  10486. break;
  10487. }
  10488. case 56: {
  10489. AddRepeatedPrimitiveField(input.ReadInt32());
  10490. break;
  10491. }
  10492. case 66: {
  10493. AddRepeatedStringField(input.ReadString());
  10494. break;
  10495. }
  10496. case 72: {
  10497. int rawValue = input.ReadEnum();
  10498. global::Google.ProtocolBuffers.TestProtos.ForeignEnum value = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  10499. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), value)) {
  10500. unknownFields.MergeVarintField(9, (ulong) rawValue);
  10501. } else {
  10502. AddRepeatedEnumField(value);
  10503. }
  10504. break;
  10505. }
  10506. case 82: {
  10507. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  10508. input.ReadMessage(subBuilder, extensionRegistry);
  10509. AddRepeatedMessageField(subBuilder.BuildPartial());
  10510. break;
  10511. }
  10512. case 90: {
  10513. AddRepeatedStringPieceField(input.ReadString());
  10514. break;
  10515. }
  10516. case 98: {
  10517. AddRepeatedCordField(input.ReadString());
  10518. break;
  10519. }
  10520. }
  10521. }
  10522. }
  10523. // optional int32 PrimitiveField = 1;
  10524. public bool HasPrimitiveField {
  10525. get { return result.HasPrimitiveField; }
  10526. }
  10527. public int PrimitiveField {
  10528. get { return result.PrimitiveField; }
  10529. set { SetPrimitiveField(value); }
  10530. }
  10531. public Builder SetPrimitiveField(int value) {
  10532. result.hasPrimitiveField = true;
  10533. result.primitiveField_ = value;
  10534. return this;
  10535. }
  10536. public Builder ClearPrimitiveField() {
  10537. result.hasPrimitiveField = false;
  10538. result.primitiveField_ = 0;
  10539. return this;
  10540. }
  10541. // optional string StringField = 2;
  10542. public bool HasStringField {
  10543. get { return result.HasStringField; }
  10544. }
  10545. public string StringField {
  10546. get { return result.StringField; }
  10547. set { SetStringField(value); }
  10548. }
  10549. public Builder SetStringField(string value) {
  10550. result.hasStringField = true;
  10551. result.stringField_ = value;
  10552. return this;
  10553. }
  10554. public Builder ClearStringField() {
  10555. result.hasStringField = false;
  10556. result.stringField_ = "";
  10557. return this;
  10558. }
  10559. // optional .protobuf_unittest.ForeignEnum EnumField = 3;
  10560. public bool HasEnumField {
  10561. get { return result.HasEnumField; }
  10562. }
  10563. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField {
  10564. get { return result.EnumField; }
  10565. set { SetEnumField(value); }
  10566. }
  10567. public Builder SetEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  10568. result.hasEnumField = true;
  10569. result.enumField_ = value;
  10570. return this;
  10571. }
  10572. public Builder ClearEnumField() {
  10573. result.hasEnumField = false;
  10574. result.enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  10575. return this;
  10576. }
  10577. // optional .protobuf_unittest.ForeignMessage MessageField = 4;
  10578. public bool HasMessageField {
  10579. get { return result.HasMessageField; }
  10580. }
  10581. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField {
  10582. get { return result.MessageField; }
  10583. set { SetMessageField(value); }
  10584. }
  10585. public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  10586. result.hasMessageField = true;
  10587. result.messageField_ = value;
  10588. return this;
  10589. }
  10590. public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  10591. result.hasMessageField = true;
  10592. result.messageField_ = builderForValue.Build();
  10593. return this;
  10594. }
  10595. public Builder MergeMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  10596. if (result.HasMessageField &&
  10597. result.messageField_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
  10598. result.messageField_ =
  10599. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.messageField_).MergeFrom(value).BuildPartial();
  10600. } else {
  10601. result.messageField_ = value;
  10602. }
  10603. result.hasMessageField = true;
  10604. return this;
  10605. }
  10606. public Builder ClearMessageField() {
  10607. result.hasMessageField = false;
  10608. result.messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
  10609. return this;
  10610. }
  10611. // optional string StringPieceField = 5 [ctype = STRING_PIECE];
  10612. public bool HasStringPieceField {
  10613. get { return result.HasStringPieceField; }
  10614. }
  10615. public string StringPieceField {
  10616. get { return result.StringPieceField; }
  10617. set { SetStringPieceField(value); }
  10618. }
  10619. public Builder SetStringPieceField(string value) {
  10620. result.hasStringPieceField = true;
  10621. result.stringPieceField_ = value;
  10622. return this;
  10623. }
  10624. public Builder ClearStringPieceField() {
  10625. result.hasStringPieceField = false;
  10626. result.stringPieceField_ = "";
  10627. return this;
  10628. }
  10629. // optional string CordField = 6 [ctype = CORD];
  10630. public bool HasCordField {
  10631. get { return result.HasCordField; }
  10632. }
  10633. public string CordField {
  10634. get { return result.CordField; }
  10635. set { SetCordField(value); }
  10636. }
  10637. public Builder SetCordField(string value) {
  10638. result.hasCordField = true;
  10639. result.cordField_ = value;
  10640. return this;
  10641. }
  10642. public Builder ClearCordField() {
  10643. result.hasCordField = false;
  10644. result.cordField_ = "";
  10645. return this;
  10646. }
  10647. // repeated int32 RepeatedPrimitiveField = 7;
  10648. public scg::IList<int> RepeatedPrimitiveFieldList {
  10649. get { return pbc::Lists<int>.AsReadOnly(result.repeatedPrimitiveField_); }
  10650. }
  10651. public int RepeatedPrimitiveFieldCount {
  10652. get { return result.RepeatedPrimitiveFieldCount; }
  10653. }
  10654. public int GetRepeatedPrimitiveField(int index) {
  10655. return result.GetRepeatedPrimitiveField(index);
  10656. }
  10657. public Builder SetRepeatedPrimitiveField(int index, int value) {
  10658. result.repeatedPrimitiveField_[index] = value;
  10659. return this;
  10660. }
  10661. public Builder AddRepeatedPrimitiveField(int value) {
  10662. if (result.repeatedPrimitiveField_.Count == 0) {
  10663. result.repeatedPrimitiveField_ = new scg::List<int>();
  10664. }
  10665. result.repeatedPrimitiveField_.Add(value);
  10666. return this;
  10667. }
  10668. public Builder AddRangeRepeatedPrimitiveField(scg::IEnumerable<int> values) {
  10669. if (result.repeatedPrimitiveField_.Count == 0) {
  10670. result.repeatedPrimitiveField_ = new scg::List<int>();
  10671. }
  10672. base.AddRange(values, result.repeatedPrimitiveField_);
  10673. return this;
  10674. }
  10675. public Builder ClearRepeatedPrimitiveField() {
  10676. result.repeatedPrimitiveField_ = pbc::Lists<int>.Empty;
  10677. return this;
  10678. }
  10679. // repeated string RepeatedStringField = 8;
  10680. public scg::IList<string> RepeatedStringFieldList {
  10681. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringField_); }
  10682. }
  10683. public int RepeatedStringFieldCount {
  10684. get { return result.RepeatedStringFieldCount; }
  10685. }
  10686. public string GetRepeatedStringField(int index) {
  10687. return result.GetRepeatedStringField(index);
  10688. }
  10689. public Builder SetRepeatedStringField(int index, string value) {
  10690. result.repeatedStringField_[index] = value;
  10691. return this;
  10692. }
  10693. public Builder AddRepeatedStringField(string value) {
  10694. if (result.repeatedStringField_.Count == 0) {
  10695. result.repeatedStringField_ = new scg::List<string>();
  10696. }
  10697. result.repeatedStringField_.Add(value);
  10698. return this;
  10699. }
  10700. public Builder AddRangeRepeatedStringField(scg::IEnumerable<string> values) {
  10701. if (result.repeatedStringField_.Count == 0) {
  10702. result.repeatedStringField_ = new scg::List<string>();
  10703. }
  10704. base.AddRange(values, result.repeatedStringField_);
  10705. return this;
  10706. }
  10707. public Builder ClearRepeatedStringField() {
  10708. result.repeatedStringField_ = pbc::Lists<string>.Empty;
  10709. return this;
  10710. }
  10711. // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
  10712. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList {
  10713. get { return pbc::Lists.AsReadOnly(result.repeatedEnumField_); }
  10714. }
  10715. public int RepeatedEnumFieldCount {
  10716. get { return result.RepeatedEnumFieldCount; }
  10717. }
  10718. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) {
  10719. return result.GetRepeatedEnumField(index);
  10720. }
  10721. public Builder SetRepeatedEnumField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  10722. result.repeatedEnumField_[index] = value;
  10723. return this;
  10724. }
  10725. public Builder AddRepeatedEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  10726. if (result.repeatedEnumField_.Count == 0) {
  10727. result.repeatedEnumField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  10728. }
  10729. result.repeatedEnumField_.Add(value);
  10730. return this;
  10731. }
  10732. public Builder AddRangeRepeatedEnumField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
  10733. if (result.repeatedEnumField_.Count == 0) {
  10734. result.repeatedEnumField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  10735. }
  10736. base.AddRange(values, result.repeatedEnumField_);
  10737. return this;
  10738. }
  10739. public Builder ClearRepeatedEnumField() {
  10740. result.repeatedEnumField_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.Empty;
  10741. return this;
  10742. }
  10743. // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
  10744. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList {
  10745. get { return pbc::Lists.AsReadOnly(result.repeatedMessageField_); }
  10746. }
  10747. public int RepeatedMessageFieldCount {
  10748. get { return result.RepeatedMessageFieldCount; }
  10749. }
  10750. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) {
  10751. return result.GetRepeatedMessageField(index);
  10752. }
  10753. public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  10754. result.repeatedMessageField_[index] = value;
  10755. return this;
  10756. }
  10757. public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  10758. result.repeatedMessageField_[index] = builderForValue.Build();
  10759. return this;
  10760. }
  10761. public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  10762. if (result.repeatedMessageField_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  10763. result.repeatedMessageField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  10764. }
  10765. result.repeatedMessageField_.Add(value);
  10766. return this;
  10767. }
  10768. public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  10769. if (result.repeatedMessageField_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  10770. result.repeatedMessageField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  10771. }
  10772. result.repeatedMessageField_.Add(builderForValue.Build());
  10773. return this;
  10774. }
  10775. public Builder AddRangeRepeatedMessageField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
  10776. if (result.repeatedMessageField_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  10777. result.repeatedMessageField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  10778. }
  10779. base.AddRange(values, result.repeatedMessageField_);
  10780. return this;
  10781. }
  10782. public Builder ClearRepeatedMessageField() {
  10783. result.repeatedMessageField_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  10784. return this;
  10785. }
  10786. // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
  10787. public scg::IList<string> RepeatedStringPieceFieldList {
  10788. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringPieceField_); }
  10789. }
  10790. public int RepeatedStringPieceFieldCount {
  10791. get { return result.RepeatedStringPieceFieldCount; }
  10792. }
  10793. public string GetRepeatedStringPieceField(int index) {
  10794. return result.GetRepeatedStringPieceField(index);
  10795. }
  10796. public Builder SetRepeatedStringPieceField(int index, string value) {
  10797. result.repeatedStringPieceField_[index] = value;
  10798. return this;
  10799. }
  10800. public Builder AddRepeatedStringPieceField(string value) {
  10801. if (result.repeatedStringPieceField_.Count == 0) {
  10802. result.repeatedStringPieceField_ = new scg::List<string>();
  10803. }
  10804. result.repeatedStringPieceField_.Add(value);
  10805. return this;
  10806. }
  10807. public Builder AddRangeRepeatedStringPieceField(scg::IEnumerable<string> values) {
  10808. if (result.repeatedStringPieceField_.Count == 0) {
  10809. result.repeatedStringPieceField_ = new scg::List<string>();
  10810. }
  10811. base.AddRange(values, result.repeatedStringPieceField_);
  10812. return this;
  10813. }
  10814. public Builder ClearRepeatedStringPieceField() {
  10815. result.repeatedStringPieceField_ = pbc::Lists<string>.Empty;
  10816. return this;
  10817. }
  10818. // repeated string RepeatedCordField = 12 [ctype = CORD];
  10819. public scg::IList<string> RepeatedCordFieldList {
  10820. get { return pbc::Lists<string>.AsReadOnly(result.repeatedCordField_); }
  10821. }
  10822. public int RepeatedCordFieldCount {
  10823. get { return result.RepeatedCordFieldCount; }
  10824. }
  10825. public string GetRepeatedCordField(int index) {
  10826. return result.GetRepeatedCordField(index);
  10827. }
  10828. public Builder SetRepeatedCordField(int index, string value) {
  10829. result.repeatedCordField_[index] = value;
  10830. return this;
  10831. }
  10832. public Builder AddRepeatedCordField(string value) {
  10833. if (result.repeatedCordField_.Count == 0) {
  10834. result.repeatedCordField_ = new scg::List<string>();
  10835. }
  10836. result.repeatedCordField_.Add(value);
  10837. return this;
  10838. }
  10839. public Builder AddRangeRepeatedCordField(scg::IEnumerable<string> values) {
  10840. if (result.repeatedCordField_.Count == 0) {
  10841. result.repeatedCordField_ = new scg::List<string>();
  10842. }
  10843. base.AddRange(values, result.repeatedCordField_);
  10844. return this;
  10845. }
  10846. public Builder ClearRepeatedCordField() {
  10847. result.repeatedCordField_ = pbc::Lists<string>.Empty;
  10848. return this;
  10849. }
  10850. }
  10851. }
  10852. public sealed partial class TestFieldOrderings : pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder> {
  10853. private static readonly TestFieldOrderings defaultInstance = new TestFieldOrderings();
  10854. public static TestFieldOrderings DefaultInstance {
  10855. get { return defaultInstance; }
  10856. }
  10857. public override TestFieldOrderings DefaultInstanceForType {
  10858. get { return defaultInstance; }
  10859. }
  10860. public static pbd::MessageDescriptor Descriptor {
  10861. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__Descriptor; }
  10862. }
  10863. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  10864. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; }
  10865. }
  10866. // optional string my_string = 11;
  10867. private bool hasMyString;
  10868. private string myString_ = "";
  10869. public bool HasMyString {
  10870. get { return hasMyString; }
  10871. }
  10872. public string MyString {
  10873. get { return myString_; }
  10874. }
  10875. // optional int64 my_int = 1;
  10876. private bool hasMyInt;
  10877. private long myInt_ = 0L;
  10878. public bool HasMyInt {
  10879. get { return hasMyInt; }
  10880. }
  10881. public long MyInt {
  10882. get { return myInt_; }
  10883. }
  10884. // optional float my_float = 101;
  10885. private bool hasMyFloat;
  10886. private float myFloat_ = 0F;
  10887. public bool HasMyFloat {
  10888. get { return hasMyFloat; }
  10889. }
  10890. public float MyFloat {
  10891. get { return myFloat_; }
  10892. }
  10893. public override bool IsInitialized {
  10894. get {
  10895. if (!ExtensionsAreInitialized) return false;
  10896. return true;
  10897. }
  10898. }
  10899. public override void WriteTo(pb::CodedOutputStream output) {
  10900. pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  10901. if (HasMyInt) {
  10902. output.WriteInt64(1, MyInt);
  10903. }
  10904. extensionWriter.WriteUntil(11, output);
  10905. if (HasMyString) {
  10906. output.WriteString(11, MyString);
  10907. }
  10908. extensionWriter.WriteUntil(101, output);
  10909. if (HasMyFloat) {
  10910. output.WriteFloat(101, MyFloat);
  10911. }
  10912. UnknownFields.WriteTo(output);
  10913. }
  10914. private int memoizedSerializedSize = -1;
  10915. public override int SerializedSize {
  10916. get {
  10917. int size = memoizedSerializedSize;
  10918. if (size != -1) return size;
  10919. size = 0;
  10920. if (HasMyInt) {
  10921. size += pb::CodedOutputStream.ComputeInt64Size(1, MyInt);
  10922. }
  10923. if (HasMyString) {
  10924. size += pb::CodedOutputStream.ComputeStringSize(11, MyString);
  10925. }
  10926. if (HasMyFloat) {
  10927. size += pb::CodedOutputStream.ComputeFloatSize(101, MyFloat);
  10928. }
  10929. size += ExtensionsSerializedSize;
  10930. size += UnknownFields.SerializedSize;
  10931. memoizedSerializedSize = size;
  10932. return size;
  10933. }
  10934. }
  10935. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(pb::ByteString data) {
  10936. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10937. }
  10938. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(pb::ByteString data,
  10939. pb::ExtensionRegistry extensionRegistry) {
  10940. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10941. .BuildParsed();
  10942. }
  10943. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(byte[] data) {
  10944. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10945. }
  10946. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(byte[] data,
  10947. pb::ExtensionRegistry extensionRegistry) {
  10948. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10949. .BuildParsed();
  10950. }
  10951. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(global::System.IO.Stream input) {
  10952. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10953. }
  10954. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(
  10955. global::System.IO.Stream input,
  10956. pb::ExtensionRegistry extensionRegistry) {
  10957. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10958. .BuildParsed();
  10959. }
  10960. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(pb::CodedInputStream input) {
  10961. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10962. }
  10963. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(pb::CodedInputStream input,
  10964. pb::ExtensionRegistry extensionRegistry) {
  10965. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10966. .BuildParsed();
  10967. }
  10968. public static Builder CreateBuilder() { return new Builder(); }
  10969. public override Builder CreateBuilderForType() { return new Builder(); }
  10970. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings prototype) {
  10971. return (Builder) new Builder().MergeFrom(prototype);
  10972. }
  10973. public sealed partial class Builder : pb::ExtendableBuilder<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder> {
  10974. protected override Builder ThisBuilder {
  10975. get { return this; }
  10976. }
  10977. // Construct using global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.CreateBuilder()
  10978. internal Builder() {}
  10979. global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings result = new global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings();
  10980. protected override global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings MessageBeingBuilt {
  10981. get { return result; }
  10982. }
  10983. public override Builder Clear() {
  10984. result = new global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings();
  10985. return this;
  10986. }
  10987. public override Builder Clone() {
  10988. return new Builder().MergeFrom(result);
  10989. }
  10990. public override pbd::MessageDescriptor DescriptorForType {
  10991. get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Descriptor; }
  10992. }
  10993. public override global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings DefaultInstanceForType {
  10994. get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.DefaultInstance; }
  10995. }
  10996. public override global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings BuildPartial() {
  10997. global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings returnMe = result;
  10998. result = null;
  10999. return returnMe;
  11000. }
  11001. public override Builder MergeFrom(pb::IMessage other) {
  11002. if (other is global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings) {
  11003. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings) other);
  11004. } else {
  11005. base.MergeFrom(other);
  11006. return this;
  11007. }
  11008. }
  11009. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings other) {
  11010. if (other == global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.DefaultInstance) return this;
  11011. if (other.HasMyString) {
  11012. MyString = other.MyString;
  11013. }
  11014. if (other.HasMyInt) {
  11015. MyInt = other.MyInt;
  11016. }
  11017. if (other.HasMyFloat) {
  11018. MyFloat = other.MyFloat;
  11019. }
  11020. this.MergeUnknownFields(other.UnknownFields);
  11021. return this;
  11022. }
  11023. public override Builder MergeFrom(pb::CodedInputStream input) {
  11024. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11025. }
  11026. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11027. pb::UnknownFieldSet.Builder unknownFields =
  11028. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11029. while (true) {
  11030. uint tag = input.ReadTag();
  11031. switch (tag) {
  11032. case 0:
  11033. this.UnknownFields = unknownFields.Build();
  11034. return this;
  11035. default: {
  11036. if (!ParseUnknownField(input, unknownFields,
  11037. extensionRegistry, tag)) {
  11038. this.UnknownFields = unknownFields.Build();
  11039. return this;
  11040. }
  11041. break;
  11042. }
  11043. case 8: {
  11044. MyInt = input.ReadInt64();
  11045. break;
  11046. }
  11047. case 90: {
  11048. MyString = input.ReadString();
  11049. break;
  11050. }
  11051. case 813: {
  11052. MyFloat = input.ReadFloat();
  11053. break;
  11054. }
  11055. }
  11056. }
  11057. }
  11058. // optional string my_string = 11;
  11059. public bool HasMyString {
  11060. get { return result.HasMyString; }
  11061. }
  11062. public string MyString {
  11063. get { return result.MyString; }
  11064. set { SetMyString(value); }
  11065. }
  11066. public Builder SetMyString(string value) {
  11067. result.hasMyString = true;
  11068. result.myString_ = value;
  11069. return this;
  11070. }
  11071. public Builder ClearMyString() {
  11072. result.hasMyString = false;
  11073. result.myString_ = "";
  11074. return this;
  11075. }
  11076. // optional int64 my_int = 1;
  11077. public bool HasMyInt {
  11078. get { return result.HasMyInt; }
  11079. }
  11080. public long MyInt {
  11081. get { return result.MyInt; }
  11082. set { SetMyInt(value); }
  11083. }
  11084. public Builder SetMyInt(long value) {
  11085. result.hasMyInt = true;
  11086. result.myInt_ = value;
  11087. return this;
  11088. }
  11089. public Builder ClearMyInt() {
  11090. result.hasMyInt = false;
  11091. result.myInt_ = 0L;
  11092. return this;
  11093. }
  11094. // optional float my_float = 101;
  11095. public bool HasMyFloat {
  11096. get { return result.HasMyFloat; }
  11097. }
  11098. public float MyFloat {
  11099. get { return result.MyFloat; }
  11100. set { SetMyFloat(value); }
  11101. }
  11102. public Builder SetMyFloat(float value) {
  11103. result.hasMyFloat = true;
  11104. result.myFloat_ = value;
  11105. return this;
  11106. }
  11107. public Builder ClearMyFloat() {
  11108. result.hasMyFloat = false;
  11109. result.myFloat_ = 0F;
  11110. return this;
  11111. }
  11112. }
  11113. }
  11114. public sealed partial class TestExtremeDefaultValues : pb::GeneratedMessage<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> {
  11115. private static readonly TestExtremeDefaultValues defaultInstance = new TestExtremeDefaultValues();
  11116. public static TestExtremeDefaultValues DefaultInstance {
  11117. get { return defaultInstance; }
  11118. }
  11119. public override TestExtremeDefaultValues DefaultInstanceForType {
  11120. get { return defaultInstance; }
  11121. }
  11122. public static pbd::MessageDescriptor Descriptor {
  11123. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor; }
  11124. }
  11125. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11126. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable; }
  11127. }
  11128. // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
  11129. private bool hasEscapedBytes;
  11130. private pb::ByteString escapedBytes_ = ((pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue);
  11131. public bool HasEscapedBytes {
  11132. get { return hasEscapedBytes; }
  11133. }
  11134. public pb::ByteString EscapedBytes {
  11135. get { return escapedBytes_; }
  11136. }
  11137. // optional uint32 large_uint32 = 2 [default = 4294967295];
  11138. private bool hasLargeUint32;
  11139. private uint largeUint32_ = 4294967295;
  11140. public bool HasLargeUint32 {
  11141. get { return hasLargeUint32; }
  11142. }
  11143. public uint LargeUint32 {
  11144. get { return largeUint32_; }
  11145. }
  11146. // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
  11147. private bool hasLargeUint64;
  11148. private ulong largeUint64_ = 18446744073709551615UL;
  11149. public bool HasLargeUint64 {
  11150. get { return hasLargeUint64; }
  11151. }
  11152. public ulong LargeUint64 {
  11153. get { return largeUint64_; }
  11154. }
  11155. // optional int32 small_int32 = 4 [default = -2147483647];
  11156. private bool hasSmallInt32;
  11157. private int smallInt32_ = -2147483647;
  11158. public bool HasSmallInt32 {
  11159. get { return hasSmallInt32; }
  11160. }
  11161. public int SmallInt32 {
  11162. get { return smallInt32_; }
  11163. }
  11164. // optional int64 small_int64 = 5 [default = -9223372036854775807];
  11165. private bool hasSmallInt64;
  11166. private long smallInt64_ = -9223372036854775807L;
  11167. public bool HasSmallInt64 {
  11168. get { return hasSmallInt64; }
  11169. }
  11170. public long SmallInt64 {
  11171. get { return smallInt64_; }
  11172. }
  11173. // optional string utf8_string = 6 [default = "\341\210\264"];
  11174. private bool hasUtf8String;
  11175. private string utf8String_ = ((string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue);
  11176. public bool HasUtf8String {
  11177. get { return hasUtf8String; }
  11178. }
  11179. public string Utf8String {
  11180. get { return utf8String_; }
  11181. }
  11182. public override bool IsInitialized {
  11183. get {
  11184. return true;
  11185. }
  11186. }
  11187. public override void WriteTo(pb::CodedOutputStream output) {
  11188. if (HasEscapedBytes) {
  11189. output.WriteBytes(1, EscapedBytes);
  11190. }
  11191. if (HasLargeUint32) {
  11192. output.WriteUInt32(2, LargeUint32);
  11193. }
  11194. if (HasLargeUint64) {
  11195. output.WriteUInt64(3, LargeUint64);
  11196. }
  11197. if (HasSmallInt32) {
  11198. output.WriteInt32(4, SmallInt32);
  11199. }
  11200. if (HasSmallInt64) {
  11201. output.WriteInt64(5, SmallInt64);
  11202. }
  11203. if (HasUtf8String) {
  11204. output.WriteString(6, Utf8String);
  11205. }
  11206. UnknownFields.WriteTo(output);
  11207. }
  11208. private int memoizedSerializedSize = -1;
  11209. public override int SerializedSize {
  11210. get {
  11211. int size = memoizedSerializedSize;
  11212. if (size != -1) return size;
  11213. size = 0;
  11214. if (HasEscapedBytes) {
  11215. size += pb::CodedOutputStream.ComputeBytesSize(1, EscapedBytes);
  11216. }
  11217. if (HasLargeUint32) {
  11218. size += pb::CodedOutputStream.ComputeUInt32Size(2, LargeUint32);
  11219. }
  11220. if (HasLargeUint64) {
  11221. size += pb::CodedOutputStream.ComputeUInt64Size(3, LargeUint64);
  11222. }
  11223. if (HasSmallInt32) {
  11224. size += pb::CodedOutputStream.ComputeInt32Size(4, SmallInt32);
  11225. }
  11226. if (HasSmallInt64) {
  11227. size += pb::CodedOutputStream.ComputeInt64Size(5, SmallInt64);
  11228. }
  11229. if (HasUtf8String) {
  11230. size += pb::CodedOutputStream.ComputeStringSize(6, Utf8String);
  11231. }
  11232. size += UnknownFields.SerializedSize;
  11233. memoizedSerializedSize = size;
  11234. return size;
  11235. }
  11236. }
  11237. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(pb::ByteString data) {
  11238. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11239. }
  11240. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(pb::ByteString data,
  11241. pb::ExtensionRegistry extensionRegistry) {
  11242. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11243. .BuildParsed();
  11244. }
  11245. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(byte[] data) {
  11246. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11247. }
  11248. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(byte[] data,
  11249. pb::ExtensionRegistry extensionRegistry) {
  11250. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11251. .BuildParsed();
  11252. }
  11253. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input) {
  11254. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11255. }
  11256. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(
  11257. global::System.IO.Stream input,
  11258. pb::ExtensionRegistry extensionRegistry) {
  11259. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11260. .BuildParsed();
  11261. }
  11262. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input) {
  11263. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11264. }
  11265. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input,
  11266. pb::ExtensionRegistry extensionRegistry) {
  11267. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11268. .BuildParsed();
  11269. }
  11270. public static Builder CreateBuilder() { return new Builder(); }
  11271. public override Builder CreateBuilderForType() { return new Builder(); }
  11272. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues prototype) {
  11273. return (Builder) new Builder().MergeFrom(prototype);
  11274. }
  11275. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, Builder> {
  11276. protected override Builder ThisBuilder {
  11277. get { return this; }
  11278. }
  11279. // Construct using global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.CreateBuilder()
  11280. internal Builder() {}
  11281. global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues result = new global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues();
  11282. protected override global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues MessageBeingBuilt {
  11283. get { return result; }
  11284. }
  11285. public override Builder Clear() {
  11286. result = new global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues();
  11287. return this;
  11288. }
  11289. public override Builder Clone() {
  11290. return new Builder().MergeFrom(result);
  11291. }
  11292. public override pbd::MessageDescriptor DescriptorForType {
  11293. get { return global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor; }
  11294. }
  11295. public override global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues DefaultInstanceForType {
  11296. get { return global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.DefaultInstance; }
  11297. }
  11298. public override global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues BuildPartial() {
  11299. global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues returnMe = result;
  11300. result = null;
  11301. return returnMe;
  11302. }
  11303. public override Builder MergeFrom(pb::IMessage other) {
  11304. if (other is global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues) {
  11305. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues) other);
  11306. } else {
  11307. base.MergeFrom(other);
  11308. return this;
  11309. }
  11310. }
  11311. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues other) {
  11312. if (other == global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.DefaultInstance) return this;
  11313. if (other.HasEscapedBytes) {
  11314. EscapedBytes = other.EscapedBytes;
  11315. }
  11316. if (other.HasLargeUint32) {
  11317. LargeUint32 = other.LargeUint32;
  11318. }
  11319. if (other.HasLargeUint64) {
  11320. LargeUint64 = other.LargeUint64;
  11321. }
  11322. if (other.HasSmallInt32) {
  11323. SmallInt32 = other.SmallInt32;
  11324. }
  11325. if (other.HasSmallInt64) {
  11326. SmallInt64 = other.SmallInt64;
  11327. }
  11328. if (other.HasUtf8String) {
  11329. Utf8String = other.Utf8String;
  11330. }
  11331. this.MergeUnknownFields(other.UnknownFields);
  11332. return this;
  11333. }
  11334. public override Builder MergeFrom(pb::CodedInputStream input) {
  11335. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11336. }
  11337. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11338. pb::UnknownFieldSet.Builder unknownFields =
  11339. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11340. while (true) {
  11341. uint tag = input.ReadTag();
  11342. switch (tag) {
  11343. case 0:
  11344. this.UnknownFields = unknownFields.Build();
  11345. return this;
  11346. default: {
  11347. if (!ParseUnknownField(input, unknownFields,
  11348. extensionRegistry, tag)) {
  11349. this.UnknownFields = unknownFields.Build();
  11350. return this;
  11351. }
  11352. break;
  11353. }
  11354. case 10: {
  11355. EscapedBytes = input.ReadBytes();
  11356. break;
  11357. }
  11358. case 16: {
  11359. LargeUint32 = input.ReadUInt32();
  11360. break;
  11361. }
  11362. case 24: {
  11363. LargeUint64 = input.ReadUInt64();
  11364. break;
  11365. }
  11366. case 32: {
  11367. SmallInt32 = input.ReadInt32();
  11368. break;
  11369. }
  11370. case 40: {
  11371. SmallInt64 = input.ReadInt64();
  11372. break;
  11373. }
  11374. case 50: {
  11375. Utf8String = input.ReadString();
  11376. break;
  11377. }
  11378. }
  11379. }
  11380. }
  11381. // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
  11382. public bool HasEscapedBytes {
  11383. get { return result.HasEscapedBytes; }
  11384. }
  11385. public pb::ByteString EscapedBytes {
  11386. get { return result.EscapedBytes; }
  11387. set { SetEscapedBytes(value); }
  11388. }
  11389. public Builder SetEscapedBytes(pb::ByteString value) {
  11390. result.hasEscapedBytes = true;
  11391. result.escapedBytes_ = value;
  11392. return this;
  11393. }
  11394. public Builder ClearEscapedBytes() {
  11395. result.hasEscapedBytes = false;
  11396. result.escapedBytes_ = ((pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue);
  11397. return this;
  11398. }
  11399. // optional uint32 large_uint32 = 2 [default = 4294967295];
  11400. public bool HasLargeUint32 {
  11401. get { return result.HasLargeUint32; }
  11402. }
  11403. public uint LargeUint32 {
  11404. get { return result.LargeUint32; }
  11405. set { SetLargeUint32(value); }
  11406. }
  11407. public Builder SetLargeUint32(uint value) {
  11408. result.hasLargeUint32 = true;
  11409. result.largeUint32_ = value;
  11410. return this;
  11411. }
  11412. public Builder ClearLargeUint32() {
  11413. result.hasLargeUint32 = false;
  11414. result.largeUint32_ = 4294967295;
  11415. return this;
  11416. }
  11417. // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
  11418. public bool HasLargeUint64 {
  11419. get { return result.HasLargeUint64; }
  11420. }
  11421. public ulong LargeUint64 {
  11422. get { return result.LargeUint64; }
  11423. set { SetLargeUint64(value); }
  11424. }
  11425. public Builder SetLargeUint64(ulong value) {
  11426. result.hasLargeUint64 = true;
  11427. result.largeUint64_ = value;
  11428. return this;
  11429. }
  11430. public Builder ClearLargeUint64() {
  11431. result.hasLargeUint64 = false;
  11432. result.largeUint64_ = 18446744073709551615UL;
  11433. return this;
  11434. }
  11435. // optional int32 small_int32 = 4 [default = -2147483647];
  11436. public bool HasSmallInt32 {
  11437. get { return result.HasSmallInt32; }
  11438. }
  11439. public int SmallInt32 {
  11440. get { return result.SmallInt32; }
  11441. set { SetSmallInt32(value); }
  11442. }
  11443. public Builder SetSmallInt32(int value) {
  11444. result.hasSmallInt32 = true;
  11445. result.smallInt32_ = value;
  11446. return this;
  11447. }
  11448. public Builder ClearSmallInt32() {
  11449. result.hasSmallInt32 = false;
  11450. result.smallInt32_ = -2147483647;
  11451. return this;
  11452. }
  11453. // optional int64 small_int64 = 5 [default = -9223372036854775807];
  11454. public bool HasSmallInt64 {
  11455. get { return result.HasSmallInt64; }
  11456. }
  11457. public long SmallInt64 {
  11458. get { return result.SmallInt64; }
  11459. set { SetSmallInt64(value); }
  11460. }
  11461. public Builder SetSmallInt64(long value) {
  11462. result.hasSmallInt64 = true;
  11463. result.smallInt64_ = value;
  11464. return this;
  11465. }
  11466. public Builder ClearSmallInt64() {
  11467. result.hasSmallInt64 = false;
  11468. result.smallInt64_ = -9223372036854775807L;
  11469. return this;
  11470. }
  11471. // optional string utf8_string = 6 [default = "\341\210\264"];
  11472. public bool HasUtf8String {
  11473. get { return result.HasUtf8String; }
  11474. }
  11475. public string Utf8String {
  11476. get { return result.Utf8String; }
  11477. set { SetUtf8String(value); }
  11478. }
  11479. public Builder SetUtf8String(string value) {
  11480. result.hasUtf8String = true;
  11481. result.utf8String_ = value;
  11482. return this;
  11483. }
  11484. public Builder ClearUtf8String() {
  11485. result.hasUtf8String = false;
  11486. result.utf8String_ = ((string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue);
  11487. return this;
  11488. }
  11489. }
  11490. }
  11491. public sealed partial class FooRequest : pb::GeneratedMessage<FooRequest, FooRequest.Builder> {
  11492. private static readonly FooRequest defaultInstance = new FooRequest();
  11493. public static FooRequest DefaultInstance {
  11494. get { return defaultInstance; }
  11495. }
  11496. public override FooRequest DefaultInstanceForType {
  11497. get { return defaultInstance; }
  11498. }
  11499. public static pbd::MessageDescriptor Descriptor {
  11500. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__Descriptor; }
  11501. }
  11502. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11503. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; }
  11504. }
  11505. public override bool IsInitialized {
  11506. get {
  11507. return true;
  11508. }
  11509. }
  11510. public override void WriteTo(pb::CodedOutputStream output) {
  11511. UnknownFields.WriteTo(output);
  11512. }
  11513. private int memoizedSerializedSize = -1;
  11514. public override int SerializedSize {
  11515. get {
  11516. int size = memoizedSerializedSize;
  11517. if (size != -1) return size;
  11518. size = 0;
  11519. size += UnknownFields.SerializedSize;
  11520. memoizedSerializedSize = size;
  11521. return size;
  11522. }
  11523. }
  11524. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(pb::ByteString data) {
  11525. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11526. }
  11527. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(pb::ByteString data,
  11528. pb::ExtensionRegistry extensionRegistry) {
  11529. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11530. .BuildParsed();
  11531. }
  11532. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(byte[] data) {
  11533. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11534. }
  11535. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(byte[] data,
  11536. pb::ExtensionRegistry extensionRegistry) {
  11537. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11538. .BuildParsed();
  11539. }
  11540. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(global::System.IO.Stream input) {
  11541. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11542. }
  11543. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(
  11544. global::System.IO.Stream input,
  11545. pb::ExtensionRegistry extensionRegistry) {
  11546. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11547. .BuildParsed();
  11548. }
  11549. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(pb::CodedInputStream input) {
  11550. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11551. }
  11552. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(pb::CodedInputStream input,
  11553. pb::ExtensionRegistry extensionRegistry) {
  11554. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11555. .BuildParsed();
  11556. }
  11557. public static Builder CreateBuilder() { return new Builder(); }
  11558. public override Builder CreateBuilderForType() { return new Builder(); }
  11559. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.FooRequest prototype) {
  11560. return (Builder) new Builder().MergeFrom(prototype);
  11561. }
  11562. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.FooRequest, Builder> {
  11563. protected override Builder ThisBuilder {
  11564. get { return this; }
  11565. }
  11566. // Construct using global::Google.ProtocolBuffers.TestProtos.FooRequest.CreateBuilder()
  11567. internal Builder() {}
  11568. global::Google.ProtocolBuffers.TestProtos.FooRequest result = new global::Google.ProtocolBuffers.TestProtos.FooRequest();
  11569. protected override global::Google.ProtocolBuffers.TestProtos.FooRequest MessageBeingBuilt {
  11570. get { return result; }
  11571. }
  11572. public override Builder Clear() {
  11573. result = new global::Google.ProtocolBuffers.TestProtos.FooRequest();
  11574. return this;
  11575. }
  11576. public override Builder Clone() {
  11577. return new Builder().MergeFrom(result);
  11578. }
  11579. public override pbd::MessageDescriptor DescriptorForType {
  11580. get { return global::Google.ProtocolBuffers.TestProtos.FooRequest.Descriptor; }
  11581. }
  11582. public override global::Google.ProtocolBuffers.TestProtos.FooRequest DefaultInstanceForType {
  11583. get { return global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance; }
  11584. }
  11585. public override global::Google.ProtocolBuffers.TestProtos.FooRequest BuildPartial() {
  11586. global::Google.ProtocolBuffers.TestProtos.FooRequest returnMe = result;
  11587. result = null;
  11588. return returnMe;
  11589. }
  11590. public override Builder MergeFrom(pb::IMessage other) {
  11591. if (other is global::Google.ProtocolBuffers.TestProtos.FooRequest) {
  11592. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.FooRequest) other);
  11593. } else {
  11594. base.MergeFrom(other);
  11595. return this;
  11596. }
  11597. }
  11598. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.FooRequest other) {
  11599. if (other == global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance) return this;
  11600. this.MergeUnknownFields(other.UnknownFields);
  11601. return this;
  11602. }
  11603. public override Builder MergeFrom(pb::CodedInputStream input) {
  11604. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11605. }
  11606. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11607. pb::UnknownFieldSet.Builder unknownFields =
  11608. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11609. while (true) {
  11610. uint tag = input.ReadTag();
  11611. switch (tag) {
  11612. case 0:
  11613. this.UnknownFields = unknownFields.Build();
  11614. return this;
  11615. default: {
  11616. if (!ParseUnknownField(input, unknownFields,
  11617. extensionRegistry, tag)) {
  11618. this.UnknownFields = unknownFields.Build();
  11619. return this;
  11620. }
  11621. break;
  11622. }
  11623. }
  11624. }
  11625. }
  11626. }
  11627. }
  11628. public sealed partial class FooResponse : pb::GeneratedMessage<FooResponse, FooResponse.Builder> {
  11629. private static readonly FooResponse defaultInstance = new FooResponse();
  11630. public static FooResponse DefaultInstance {
  11631. get { return defaultInstance; }
  11632. }
  11633. public override FooResponse DefaultInstanceForType {
  11634. get { return defaultInstance; }
  11635. }
  11636. public static pbd::MessageDescriptor Descriptor {
  11637. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__Descriptor; }
  11638. }
  11639. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11640. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; }
  11641. }
  11642. public override bool IsInitialized {
  11643. get {
  11644. return true;
  11645. }
  11646. }
  11647. public override void WriteTo(pb::CodedOutputStream output) {
  11648. UnknownFields.WriteTo(output);
  11649. }
  11650. private int memoizedSerializedSize = -1;
  11651. public override int SerializedSize {
  11652. get {
  11653. int size = memoizedSerializedSize;
  11654. if (size != -1) return size;
  11655. size = 0;
  11656. size += UnknownFields.SerializedSize;
  11657. memoizedSerializedSize = size;
  11658. return size;
  11659. }
  11660. }
  11661. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(pb::ByteString data) {
  11662. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11663. }
  11664. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(pb::ByteString data,
  11665. pb::ExtensionRegistry extensionRegistry) {
  11666. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11667. .BuildParsed();
  11668. }
  11669. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(byte[] data) {
  11670. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11671. }
  11672. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(byte[] data,
  11673. pb::ExtensionRegistry extensionRegistry) {
  11674. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11675. .BuildParsed();
  11676. }
  11677. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(global::System.IO.Stream input) {
  11678. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11679. }
  11680. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(
  11681. global::System.IO.Stream input,
  11682. pb::ExtensionRegistry extensionRegistry) {
  11683. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11684. .BuildParsed();
  11685. }
  11686. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(pb::CodedInputStream input) {
  11687. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11688. }
  11689. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(pb::CodedInputStream input,
  11690. pb::ExtensionRegistry extensionRegistry) {
  11691. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11692. .BuildParsed();
  11693. }
  11694. public static Builder CreateBuilder() { return new Builder(); }
  11695. public override Builder CreateBuilderForType() { return new Builder(); }
  11696. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.FooResponse prototype) {
  11697. return (Builder) new Builder().MergeFrom(prototype);
  11698. }
  11699. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.FooResponse, Builder> {
  11700. protected override Builder ThisBuilder {
  11701. get { return this; }
  11702. }
  11703. // Construct using global::Google.ProtocolBuffers.TestProtos.FooResponse.CreateBuilder()
  11704. internal Builder() {}
  11705. global::Google.ProtocolBuffers.TestProtos.FooResponse result = new global::Google.ProtocolBuffers.TestProtos.FooResponse();
  11706. protected override global::Google.ProtocolBuffers.TestProtos.FooResponse MessageBeingBuilt {
  11707. get { return result; }
  11708. }
  11709. public override Builder Clear() {
  11710. result = new global::Google.ProtocolBuffers.TestProtos.FooResponse();
  11711. return this;
  11712. }
  11713. public override Builder Clone() {
  11714. return new Builder().MergeFrom(result);
  11715. }
  11716. public override pbd::MessageDescriptor DescriptorForType {
  11717. get { return global::Google.ProtocolBuffers.TestProtos.FooResponse.Descriptor; }
  11718. }
  11719. public override global::Google.ProtocolBuffers.TestProtos.FooResponse DefaultInstanceForType {
  11720. get { return global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance; }
  11721. }
  11722. public override global::Google.ProtocolBuffers.TestProtos.FooResponse BuildPartial() {
  11723. global::Google.ProtocolBuffers.TestProtos.FooResponse returnMe = result;
  11724. result = null;
  11725. return returnMe;
  11726. }
  11727. public override Builder MergeFrom(pb::IMessage other) {
  11728. if (other is global::Google.ProtocolBuffers.TestProtos.FooResponse) {
  11729. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.FooResponse) other);
  11730. } else {
  11731. base.MergeFrom(other);
  11732. return this;
  11733. }
  11734. }
  11735. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.FooResponse other) {
  11736. if (other == global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance) return this;
  11737. this.MergeUnknownFields(other.UnknownFields);
  11738. return this;
  11739. }
  11740. public override Builder MergeFrom(pb::CodedInputStream input) {
  11741. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11742. }
  11743. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11744. pb::UnknownFieldSet.Builder unknownFields =
  11745. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11746. while (true) {
  11747. uint tag = input.ReadTag();
  11748. switch (tag) {
  11749. case 0:
  11750. this.UnknownFields = unknownFields.Build();
  11751. return this;
  11752. default: {
  11753. if (!ParseUnknownField(input, unknownFields,
  11754. extensionRegistry, tag)) {
  11755. this.UnknownFields = unknownFields.Build();
  11756. return this;
  11757. }
  11758. break;
  11759. }
  11760. }
  11761. }
  11762. }
  11763. }
  11764. }
  11765. public sealed partial class BarRequest : pb::GeneratedMessage<BarRequest, BarRequest.Builder> {
  11766. private static readonly BarRequest defaultInstance = new BarRequest();
  11767. public static BarRequest DefaultInstance {
  11768. get { return defaultInstance; }
  11769. }
  11770. public override BarRequest DefaultInstanceForType {
  11771. get { return defaultInstance; }
  11772. }
  11773. public static pbd::MessageDescriptor Descriptor {
  11774. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__Descriptor; }
  11775. }
  11776. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11777. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; }
  11778. }
  11779. public override bool IsInitialized {
  11780. get {
  11781. return true;
  11782. }
  11783. }
  11784. public override void WriteTo(pb::CodedOutputStream output) {
  11785. UnknownFields.WriteTo(output);
  11786. }
  11787. private int memoizedSerializedSize = -1;
  11788. public override int SerializedSize {
  11789. get {
  11790. int size = memoizedSerializedSize;
  11791. if (size != -1) return size;
  11792. size = 0;
  11793. size += UnknownFields.SerializedSize;
  11794. memoizedSerializedSize = size;
  11795. return size;
  11796. }
  11797. }
  11798. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(pb::ByteString data) {
  11799. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11800. }
  11801. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(pb::ByteString data,
  11802. pb::ExtensionRegistry extensionRegistry) {
  11803. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11804. .BuildParsed();
  11805. }
  11806. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(byte[] data) {
  11807. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11808. }
  11809. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(byte[] data,
  11810. pb::ExtensionRegistry extensionRegistry) {
  11811. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11812. .BuildParsed();
  11813. }
  11814. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(global::System.IO.Stream input) {
  11815. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11816. }
  11817. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(
  11818. global::System.IO.Stream input,
  11819. pb::ExtensionRegistry extensionRegistry) {
  11820. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11821. .BuildParsed();
  11822. }
  11823. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(pb::CodedInputStream input) {
  11824. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11825. }
  11826. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(pb::CodedInputStream input,
  11827. pb::ExtensionRegistry extensionRegistry) {
  11828. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11829. .BuildParsed();
  11830. }
  11831. public static Builder CreateBuilder() { return new Builder(); }
  11832. public override Builder CreateBuilderForType() { return new Builder(); }
  11833. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.BarRequest prototype) {
  11834. return (Builder) new Builder().MergeFrom(prototype);
  11835. }
  11836. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.BarRequest, Builder> {
  11837. protected override Builder ThisBuilder {
  11838. get { return this; }
  11839. }
  11840. // Construct using global::Google.ProtocolBuffers.TestProtos.BarRequest.CreateBuilder()
  11841. internal Builder() {}
  11842. global::Google.ProtocolBuffers.TestProtos.BarRequest result = new global::Google.ProtocolBuffers.TestProtos.BarRequest();
  11843. protected override global::Google.ProtocolBuffers.TestProtos.BarRequest MessageBeingBuilt {
  11844. get { return result; }
  11845. }
  11846. public override Builder Clear() {
  11847. result = new global::Google.ProtocolBuffers.TestProtos.BarRequest();
  11848. return this;
  11849. }
  11850. public override Builder Clone() {
  11851. return new Builder().MergeFrom(result);
  11852. }
  11853. public override pbd::MessageDescriptor DescriptorForType {
  11854. get { return global::Google.ProtocolBuffers.TestProtos.BarRequest.Descriptor; }
  11855. }
  11856. public override global::Google.ProtocolBuffers.TestProtos.BarRequest DefaultInstanceForType {
  11857. get { return global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance; }
  11858. }
  11859. public override global::Google.ProtocolBuffers.TestProtos.BarRequest BuildPartial() {
  11860. global::Google.ProtocolBuffers.TestProtos.BarRequest returnMe = result;
  11861. result = null;
  11862. return returnMe;
  11863. }
  11864. public override Builder MergeFrom(pb::IMessage other) {
  11865. if (other is global::Google.ProtocolBuffers.TestProtos.BarRequest) {
  11866. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.BarRequest) other);
  11867. } else {
  11868. base.MergeFrom(other);
  11869. return this;
  11870. }
  11871. }
  11872. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.BarRequest other) {
  11873. if (other == global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance) return this;
  11874. this.MergeUnknownFields(other.UnknownFields);
  11875. return this;
  11876. }
  11877. public override Builder MergeFrom(pb::CodedInputStream input) {
  11878. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11879. }
  11880. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11881. pb::UnknownFieldSet.Builder unknownFields =
  11882. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11883. while (true) {
  11884. uint tag = input.ReadTag();
  11885. switch (tag) {
  11886. case 0:
  11887. this.UnknownFields = unknownFields.Build();
  11888. return this;
  11889. default: {
  11890. if (!ParseUnknownField(input, unknownFields,
  11891. extensionRegistry, tag)) {
  11892. this.UnknownFields = unknownFields.Build();
  11893. return this;
  11894. }
  11895. break;
  11896. }
  11897. }
  11898. }
  11899. }
  11900. }
  11901. }
  11902. public sealed partial class BarResponse : pb::GeneratedMessage<BarResponse, BarResponse.Builder> {
  11903. private static readonly BarResponse defaultInstance = new BarResponse();
  11904. public static BarResponse DefaultInstance {
  11905. get { return defaultInstance; }
  11906. }
  11907. public override BarResponse DefaultInstanceForType {
  11908. get { return defaultInstance; }
  11909. }
  11910. public static pbd::MessageDescriptor Descriptor {
  11911. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__Descriptor; }
  11912. }
  11913. protected override pb::FieldAccess.FieldAccessorTable InternalFieldAccessors {
  11914. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; }
  11915. }
  11916. public override bool IsInitialized {
  11917. get {
  11918. return true;
  11919. }
  11920. }
  11921. public override void WriteTo(pb::CodedOutputStream output) {
  11922. UnknownFields.WriteTo(output);
  11923. }
  11924. private int memoizedSerializedSize = -1;
  11925. public override int SerializedSize {
  11926. get {
  11927. int size = memoizedSerializedSize;
  11928. if (size != -1) return size;
  11929. size = 0;
  11930. size += UnknownFields.SerializedSize;
  11931. memoizedSerializedSize = size;
  11932. return size;
  11933. }
  11934. }
  11935. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(pb::ByteString data) {
  11936. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11937. }
  11938. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(pb::ByteString data,
  11939. pb::ExtensionRegistry extensionRegistry) {
  11940. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11941. .BuildParsed();
  11942. }
  11943. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(byte[] data) {
  11944. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11945. }
  11946. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(byte[] data,
  11947. pb::ExtensionRegistry extensionRegistry) {
  11948. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11949. .BuildParsed();
  11950. }
  11951. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(global::System.IO.Stream input) {
  11952. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11953. }
  11954. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(
  11955. global::System.IO.Stream input,
  11956. pb::ExtensionRegistry extensionRegistry) {
  11957. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11958. .BuildParsed();
  11959. }
  11960. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(pb::CodedInputStream input) {
  11961. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11962. }
  11963. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(pb::CodedInputStream input,
  11964. pb::ExtensionRegistry extensionRegistry) {
  11965. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11966. .BuildParsed();
  11967. }
  11968. public static Builder CreateBuilder() { return new Builder(); }
  11969. public override Builder CreateBuilderForType() { return new Builder(); }
  11970. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.BarResponse prototype) {
  11971. return (Builder) new Builder().MergeFrom(prototype);
  11972. }
  11973. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.BarResponse, Builder> {
  11974. protected override Builder ThisBuilder {
  11975. get { return this; }
  11976. }
  11977. // Construct using global::Google.ProtocolBuffers.TestProtos.BarResponse.CreateBuilder()
  11978. internal Builder() {}
  11979. global::Google.ProtocolBuffers.TestProtos.BarResponse result = new global::Google.ProtocolBuffers.TestProtos.BarResponse();
  11980. protected override global::Google.ProtocolBuffers.TestProtos.BarResponse MessageBeingBuilt {
  11981. get { return result; }
  11982. }
  11983. public override Builder Clear() {
  11984. result = new global::Google.ProtocolBuffers.TestProtos.BarResponse();
  11985. return this;
  11986. }
  11987. public override Builder Clone() {
  11988. return new Builder().MergeFrom(result);
  11989. }
  11990. public override pbd::MessageDescriptor DescriptorForType {
  11991. get { return global::Google.ProtocolBuffers.TestProtos.BarResponse.Descriptor; }
  11992. }
  11993. public override global::Google.ProtocolBuffers.TestProtos.BarResponse DefaultInstanceForType {
  11994. get { return global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance; }
  11995. }
  11996. public override global::Google.ProtocolBuffers.TestProtos.BarResponse BuildPartial() {
  11997. global::Google.ProtocolBuffers.TestProtos.BarResponse returnMe = result;
  11998. result = null;
  11999. return returnMe;
  12000. }
  12001. public override Builder MergeFrom(pb::IMessage other) {
  12002. if (other is global::Google.ProtocolBuffers.TestProtos.BarResponse) {
  12003. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.BarResponse) other);
  12004. } else {
  12005. base.MergeFrom(other);
  12006. return this;
  12007. }
  12008. }
  12009. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.BarResponse other) {
  12010. if (other == global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance) return this;
  12011. this.MergeUnknownFields(other.UnknownFields);
  12012. return this;
  12013. }
  12014. public override Builder MergeFrom(pb::CodedInputStream input) {
  12015. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  12016. }
  12017. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  12018. pb::UnknownFieldSet.Builder unknownFields =
  12019. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  12020. while (true) {
  12021. uint tag = input.ReadTag();
  12022. switch (tag) {
  12023. case 0:
  12024. this.UnknownFields = unknownFields.Build();
  12025. return this;
  12026. default: {
  12027. if (!ParseUnknownField(input, unknownFields,
  12028. extensionRegistry, tag)) {
  12029. this.UnknownFields = unknownFields.Build();
  12030. return this;
  12031. }
  12032. break;
  12033. }
  12034. }
  12035. }
  12036. }
  12037. }
  12038. }
  12039. #endregion
  12040. #region Services
  12041. public abstract class TestService : pb::IService {
  12042. public abstract void Foo(
  12043. pb::IRpcController controller,
  12044. global::Google.ProtocolBuffers.TestProtos.FooRequest request,
  12045. global::System.Action<global::Google.ProtocolBuffers.TestProtos.FooResponse> done);
  12046. public abstract void Bar(
  12047. pb::IRpcController controller,
  12048. global::Google.ProtocolBuffers.TestProtos.BarRequest request,
  12049. global::System.Action<global::Google.ProtocolBuffers.TestProtos.BarResponse> done);
  12050. public static pbd::ServiceDescriptor Descriptor {
  12051. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Services[0]; }
  12052. }
  12053. public pbd::ServiceDescriptor DescriptorForType {
  12054. get { return Descriptor; }
  12055. }
  12056. public void CallMethod(
  12057. pbd::MethodDescriptor method,
  12058. pb::IRpcController controller,
  12059. pb::IMessage request,
  12060. global::System.Action<pb::IMessage> done) {
  12061. if (method.Service != Descriptor) {
  12062. throw new global::System.ArgumentException(
  12063. "Service.CallMethod() given method descriptor for wrong " +
  12064. "service type.");
  12065. }
  12066. switch(method.Index) {
  12067. case 0:
  12068. this.Foo(controller, (global::Google.ProtocolBuffers.TestProtos.FooRequest)request,
  12069. pb::RpcUtil.SpecializeCallback<global::Google.ProtocolBuffers.TestProtos.FooResponse>(
  12070. done));
  12071. return;
  12072. case 1:
  12073. this.Bar(controller, (global::Google.ProtocolBuffers.TestProtos.BarRequest)request,
  12074. pb::RpcUtil.SpecializeCallback<global::Google.ProtocolBuffers.TestProtos.BarResponse>(
  12075. done));
  12076. return;
  12077. default:
  12078. throw new global::System.InvalidOperationException("Can't get here.");
  12079. }
  12080. }
  12081. public pb::IMessage GetRequestPrototype(pbd::MethodDescriptor method) {
  12082. if (method.Service != Descriptor) {
  12083. throw new global::System.ArgumentException(
  12084. "Service.GetRequestPrototype() given method " +
  12085. "descriptor for wrong service type.");
  12086. }
  12087. switch(method.Index) {
  12088. case 0:
  12089. return global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance;
  12090. case 1:
  12091. return global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance;
  12092. default:
  12093. throw new global::System.ArgumentException("Can't get here.");
  12094. }
  12095. }
  12096. public pb::IMessage GetResponsePrototype(pbd::MethodDescriptor method) {
  12097. if (method.Service != Descriptor) {
  12098. throw new global::System.ArgumentException(
  12099. "Service.GetResponsePrototype() given method " +
  12100. "descriptor for wrong service type.");
  12101. }
  12102. switch(method.Index) {
  12103. case 0:
  12104. return global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance;
  12105. case 1:
  12106. return global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance;
  12107. default:
  12108. throw new global::System.ArgumentException("Can't get here.");
  12109. }
  12110. }
  12111. public static Stub CreateStub(
  12112. pb::IRpcChannel channel) {
  12113. return new Stub(channel);
  12114. }
  12115. public class Stub : global::Google.ProtocolBuffers.TestProtos.TestService {
  12116. internal Stub(pb::IRpcChannel channel) {
  12117. this.channel = channel;
  12118. }
  12119. private readonly pb::IRpcChannel channel;
  12120. public pb::IRpcChannel Channel {
  12121. get { return channel; }
  12122. }
  12123. public override void Foo(
  12124. pb::IRpcController controller,
  12125. global::Google.ProtocolBuffers.TestProtos.FooRequest request,
  12126. global::System.Action<global::Google.ProtocolBuffers.TestProtos.FooResponse> done) {
  12127. channel.CallMethod(
  12128. Descriptor.Methods[0],
  12129. controller,
  12130. request,
  12131. global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance,
  12132. pb::RpcUtil.GeneralizeCallback<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder>(done, global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance));
  12133. }
  12134. public override void Bar(
  12135. pb::IRpcController controller,
  12136. global::Google.ProtocolBuffers.TestProtos.BarRequest request,
  12137. global::System.Action<global::Google.ProtocolBuffers.TestProtos.BarResponse> done) {
  12138. channel.CallMethod(
  12139. Descriptor.Methods[1],
  12140. controller,
  12141. request,
  12142. global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance,
  12143. pb::RpcUtil.GeneralizeCallback<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder>(done, global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance));
  12144. }
  12145. }
  12146. }
  12147. #endregion
  12148. }